@lokalise/harmony 1.27.2 → 1.27.3-exp-fixTeamsTypes.2

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 (245) hide show
  1. package/dist/harmony100.cjs +7 -6
  2. package/dist/harmony100.cjs.map +1 -1
  3. package/dist/harmony100.mjs +6 -5
  4. package/dist/harmony100.mjs.map +1 -1
  5. package/dist/harmony101.cjs +18 -40
  6. package/dist/harmony101.cjs.map +1 -1
  7. package/dist/harmony101.mjs +18 -40
  8. package/dist/harmony101.mjs.map +1 -1
  9. package/dist/harmony102.cjs +13 -59
  10. package/dist/harmony102.cjs.map +1 -1
  11. package/dist/harmony102.mjs +13 -59
  12. package/dist/harmony102.mjs.map +1 -1
  13. package/dist/harmony103.cjs +16 -7
  14. package/dist/harmony103.cjs.map +1 -1
  15. package/dist/harmony103.mjs +16 -7
  16. package/dist/harmony103.mjs.map +1 -1
  17. package/dist/harmony104.cjs +99 -6
  18. package/dist/harmony104.cjs.map +1 -1
  19. package/dist/harmony104.mjs +81 -5
  20. package/dist/harmony104.mjs.map +1 -1
  21. package/dist/harmony105.cjs +63 -6
  22. package/dist/harmony105.cjs.map +1 -1
  23. package/dist/harmony105.mjs +62 -5
  24. package/dist/harmony105.mjs.map +1 -1
  25. package/dist/harmony106.cjs +89 -6
  26. package/dist/harmony106.cjs.map +1 -1
  27. package/dist/harmony106.mjs +88 -5
  28. package/dist/harmony106.mjs.map +1 -1
  29. package/dist/harmony107.cjs +19 -63
  30. package/dist/harmony107.cjs.map +1 -1
  31. package/dist/harmony107.mjs +18 -62
  32. package/dist/harmony107.mjs.map +1 -1
  33. package/dist/harmony108.cjs +6 -89
  34. package/dist/harmony108.cjs.map +1 -1
  35. package/dist/harmony108.mjs +5 -88
  36. package/dist/harmony108.mjs.map +1 -1
  37. package/dist/harmony109.cjs +5 -18
  38. package/dist/harmony109.cjs.map +1 -1
  39. package/dist/harmony109.mjs +5 -18
  40. package/dist/harmony109.mjs.map +1 -1
  41. package/dist/harmony110.cjs +7 -96
  42. package/dist/harmony110.cjs.map +1 -1
  43. package/dist/harmony110.mjs +7 -96
  44. package/dist/harmony110.mjs.map +1 -1
  45. package/dist/harmony111.cjs +57 -13
  46. package/dist/harmony111.cjs.map +1 -1
  47. package/dist/harmony111.mjs +57 -13
  48. package/dist/harmony111.mjs.map +1 -1
  49. package/dist/harmony112.cjs +60 -14
  50. package/dist/harmony112.cjs.map +1 -1
  51. package/dist/harmony112.mjs +60 -14
  52. package/dist/harmony112.mjs.map +1 -1
  53. package/dist/harmony113.cjs +19 -37
  54. package/dist/harmony113.cjs.map +1 -1
  55. package/dist/harmony113.mjs +18 -36
  56. package/dist/harmony113.mjs.map +1 -1
  57. package/dist/harmony114.cjs +87 -19
  58. package/dist/harmony114.cjs.map +1 -1
  59. package/dist/harmony114.mjs +87 -19
  60. package/dist/harmony114.mjs.map +1 -1
  61. package/dist/harmony115.cjs +13 -7
  62. package/dist/harmony115.cjs.map +1 -1
  63. package/dist/harmony115.mjs +13 -7
  64. package/dist/harmony115.mjs.map +1 -1
  65. package/dist/harmony116.cjs +14 -57
  66. package/dist/harmony116.cjs.map +1 -1
  67. package/dist/harmony116.mjs +14 -57
  68. package/dist/harmony116.mjs.map +1 -1
  69. package/dist/harmony117.cjs +33 -57
  70. package/dist/harmony117.cjs.map +1 -1
  71. package/dist/harmony117.mjs +33 -57
  72. package/dist/harmony117.mjs.map +1 -1
  73. package/dist/harmony118.cjs +29 -19
  74. package/dist/harmony118.cjs.map +1 -1
  75. package/dist/harmony118.mjs +28 -18
  76. package/dist/harmony118.mjs.map +1 -1
  77. package/dist/harmony119.cjs +1 -1
  78. package/dist/harmony119.mjs +1 -1
  79. package/dist/harmony120.cjs +1 -1
  80. package/dist/harmony120.mjs +1 -1
  81. package/dist/harmony121.cjs +2 -2
  82. package/dist/harmony121.mjs +2 -2
  83. package/dist/harmony122.cjs +46 -11
  84. package/dist/harmony122.cjs.map +1 -1
  85. package/dist/harmony122.mjs +46 -11
  86. package/dist/harmony122.mjs.map +1 -1
  87. package/dist/harmony123.cjs +13 -17
  88. package/dist/harmony123.cjs.map +1 -1
  89. package/dist/harmony123.mjs +12 -16
  90. package/dist/harmony123.mjs.map +1 -1
  91. package/dist/harmony124.cjs +10 -20
  92. package/dist/harmony124.cjs.map +1 -1
  93. package/dist/harmony124.mjs +10 -20
  94. package/dist/harmony124.mjs.map +1 -1
  95. package/dist/harmony125.cjs +14 -10
  96. package/dist/harmony125.cjs.map +1 -1
  97. package/dist/harmony125.mjs +14 -10
  98. package/dist/harmony125.mjs.map +1 -1
  99. package/dist/harmony126.cjs +20 -5
  100. package/dist/harmony126.cjs.map +1 -1
  101. package/dist/harmony126.mjs +20 -5
  102. package/dist/harmony126.mjs.map +1 -1
  103. package/dist/harmony127.cjs +11 -11
  104. package/dist/harmony127.cjs.map +1 -1
  105. package/dist/harmony127.mjs +11 -11
  106. package/dist/harmony127.mjs.map +1 -1
  107. package/dist/harmony128.cjs +5 -31
  108. package/dist/harmony128.cjs.map +1 -1
  109. package/dist/harmony128.mjs +5 -31
  110. package/dist/harmony128.mjs.map +1 -1
  111. package/dist/harmony129.cjs +11 -13
  112. package/dist/harmony129.cjs.map +1 -1
  113. package/dist/harmony129.mjs +11 -13
  114. package/dist/harmony129.mjs.map +1 -1
  115. package/dist/harmony130.cjs +31 -45
  116. package/dist/harmony130.cjs.map +1 -1
  117. package/dist/harmony130.mjs +31 -45
  118. package/dist/harmony130.mjs.map +1 -1
  119. package/dist/harmony131.cjs +15 -13
  120. package/dist/harmony131.cjs.map +1 -1
  121. package/dist/harmony131.mjs +14 -12
  122. package/dist/harmony131.mjs.map +1 -1
  123. package/dist/harmony15.cjs +1 -1
  124. package/dist/harmony15.mjs +1 -1
  125. package/dist/harmony22.cjs +1 -1
  126. package/dist/harmony22.mjs +1 -1
  127. package/dist/harmony23.cjs +1 -1
  128. package/dist/harmony23.mjs +1 -1
  129. package/dist/harmony30.cjs +1 -1
  130. package/dist/harmony30.mjs +1 -1
  131. package/dist/harmony59.cjs +20 -2
  132. package/dist/harmony59.cjs.map +1 -1
  133. package/dist/harmony59.mjs +20 -2
  134. package/dist/harmony59.mjs.map +1 -1
  135. package/dist/harmony64.cjs +1 -1
  136. package/dist/harmony64.mjs +1 -1
  137. package/dist/harmony66.cjs +1 -1
  138. package/dist/harmony66.mjs +1 -1
  139. package/dist/harmony67.cjs +1 -1
  140. package/dist/harmony67.mjs +1 -1
  141. package/dist/harmony68.cjs +1 -1
  142. package/dist/harmony68.mjs +1 -1
  143. package/dist/harmony69.cjs +2 -2
  144. package/dist/harmony69.mjs +2 -2
  145. package/dist/harmony70.cjs +2 -2
  146. package/dist/harmony70.mjs +2 -2
  147. package/dist/harmony71.cjs +2 -2
  148. package/dist/harmony71.mjs +2 -2
  149. package/dist/harmony72.cjs +2 -2
  150. package/dist/harmony72.mjs +2 -2
  151. package/dist/harmony73.cjs +3 -3
  152. package/dist/harmony73.mjs +3 -3
  153. package/dist/harmony74.cjs +6 -6
  154. package/dist/harmony74.mjs +6 -6
  155. package/dist/harmony77.cjs +2 -2
  156. package/dist/harmony77.mjs +2 -2
  157. package/dist/harmony79.cjs +7 -12
  158. package/dist/harmony79.cjs.map +1 -1
  159. package/dist/harmony79.mjs +6 -11
  160. package/dist/harmony79.mjs.map +1 -1
  161. package/dist/harmony80.cjs +8 -20
  162. package/dist/harmony80.cjs.map +1 -1
  163. package/dist/harmony80.mjs +8 -20
  164. package/dist/harmony80.mjs.map +1 -1
  165. package/dist/harmony81.cjs +6 -3
  166. package/dist/harmony81.cjs.map +1 -1
  167. package/dist/harmony81.mjs +6 -3
  168. package/dist/harmony81.mjs.map +1 -1
  169. package/dist/harmony82.cjs +57 -9
  170. package/dist/harmony82.cjs.map +1 -1
  171. package/dist/harmony82.mjs +56 -8
  172. package/dist/harmony82.mjs.map +1 -1
  173. package/dist/harmony83.cjs +32 -9
  174. package/dist/harmony83.cjs.map +1 -1
  175. package/dist/harmony83.mjs +31 -8
  176. package/dist/harmony83.mjs.map +1 -1
  177. package/dist/harmony84.cjs +5 -57
  178. package/dist/harmony84.cjs.map +1 -1
  179. package/dist/harmony84.mjs +5 -57
  180. package/dist/harmony84.mjs.map +1 -1
  181. package/dist/harmony85.cjs +9 -32
  182. package/dist/harmony85.cjs.map +1 -1
  183. package/dist/harmony85.mjs +8 -31
  184. package/dist/harmony85.mjs.map +1 -1
  185. package/dist/harmony86.cjs +25 -6
  186. package/dist/harmony86.cjs.map +1 -1
  187. package/dist/harmony86.mjs +24 -5
  188. package/dist/harmony86.mjs.map +1 -1
  189. package/dist/harmony87.cjs +3 -6
  190. package/dist/harmony87.cjs.map +1 -1
  191. package/dist/harmony87.mjs +3 -6
  192. package/dist/harmony87.mjs.map +1 -1
  193. package/dist/harmony88.cjs +21 -24
  194. package/dist/harmony88.cjs.map +1 -1
  195. package/dist/harmony88.mjs +20 -23
  196. package/dist/harmony88.mjs.map +1 -1
  197. package/dist/harmony89.cjs +9 -3
  198. package/dist/harmony89.cjs.map +1 -1
  199. package/dist/harmony89.mjs +9 -3
  200. package/dist/harmony89.mjs.map +1 -1
  201. package/dist/harmony90.cjs +9 -19
  202. package/dist/harmony90.cjs.map +1 -1
  203. package/dist/harmony90.mjs +11 -21
  204. package/dist/harmony90.mjs.map +1 -1
  205. package/dist/harmony91.cjs +20 -11
  206. package/dist/harmony91.cjs.map +1 -1
  207. package/dist/harmony91.mjs +20 -11
  208. package/dist/harmony91.mjs.map +1 -1
  209. package/dist/harmony92.cjs +22 -19
  210. package/dist/harmony92.cjs.map +1 -1
  211. package/dist/harmony92.mjs +21 -18
  212. package/dist/harmony92.mjs.map +1 -1
  213. package/dist/harmony93.cjs +4 -13
  214. package/dist/harmony93.cjs.map +1 -1
  215. package/dist/harmony93.mjs +4 -13
  216. package/dist/harmony93.mjs.map +1 -1
  217. package/dist/harmony94.cjs +129 -13
  218. package/dist/harmony94.cjs.map +1 -1
  219. package/dist/harmony94.mjs +129 -13
  220. package/dist/harmony94.mjs.map +1 -1
  221. package/dist/harmony95.cjs +12 -99
  222. package/dist/harmony95.cjs.map +1 -1
  223. package/dist/harmony95.mjs +11 -81
  224. package/dist/harmony95.mjs.map +1 -1
  225. package/dist/harmony96.cjs +6 -22
  226. package/dist/harmony96.cjs.map +1 -1
  227. package/dist/harmony96.mjs +5 -21
  228. package/dist/harmony96.mjs.map +1 -1
  229. package/dist/harmony97.cjs +39 -4
  230. package/dist/harmony97.cjs.map +1 -1
  231. package/dist/harmony97.mjs +39 -4
  232. package/dist/harmony97.mjs.map +1 -1
  233. package/dist/harmony98.cjs +55 -127
  234. package/dist/harmony98.cjs.map +1 -1
  235. package/dist/harmony98.mjs +55 -127
  236. package/dist/harmony98.mjs.map +1 -1
  237. package/dist/harmony99.cjs +7 -12
  238. package/dist/harmony99.cjs.map +1 -1
  239. package/dist/harmony99.mjs +6 -11
  240. package/dist/harmony99.mjs.map +1 -1
  241. package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +2 -2
  242. package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +2 -2
  243. package/dist/types/src/features/publicApi/team.d.ts +22 -22
  244. package/dist/types/src/features/publicApi/types/teamTypes.d.ts +34 -26
  245. package/package.json +1 -1
@@ -1,49 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const louis = require("@lokalise/louis");
5
- const React = require("react");
6
- const TasksContext = require("./harmony100.cjs");
7
- const TaskLanguageCompleted = ({ task, language }) => {
8
- const [loading, setLoading] = React.useState(false);
9
- const [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = React.useState(false);
10
- const { onLanguageCompleteConfirm, fetchTasks } = TasksContext.useTasks();
11
- const closePrompt = () => {
12
- setIsMarkAsDonePromptShown(false);
13
- };
14
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
15
- isMarkAsDonePromptShown && /* @__PURE__ */ jsxRuntime.jsx(
16
- louis.ConfirmModal,
17
- {
18
- opened: true,
19
- loading,
20
- title: `Are you finished with ${language.name}?`,
21
- confirmText: "Mark as done",
22
- closeText: "Cancel",
23
- onClose: closePrompt,
24
- onConfirm: async () => {
25
- setLoading(true);
26
- await onLanguageCompleteConfirm({ task, language, closePrompt });
27
- fetchTasks();
28
- },
29
- children: /* @__PURE__ */ jsxRuntime.jsxs(louis.Alert, { status: "info", children: [
30
- "Make sure you are finished and ",
31
- /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "mark it as done" }),
32
- " to notify your team admin. This action cannot be undone, and the language might no longer be available for you to edit."
33
- ] })
3
+ const _Symbol = require("./harmony129.cjs");
4
+ var _getRawTag;
5
+ var hasRequired_getRawTag;
6
+ function require_getRawTag() {
7
+ if (hasRequired_getRawTag) return _getRawTag;
8
+ hasRequired_getRawTag = 1;
9
+ var Symbol2 = _Symbol.__require();
10
+ var objectProto = Object.prototype;
11
+ var hasOwnProperty = objectProto.hasOwnProperty;
12
+ var nativeObjectToString = objectProto.toString;
13
+ var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
14
+ function getRawTag(value) {
15
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
16
+ try {
17
+ value[symToStringTag] = void 0;
18
+ var unmasked = true;
19
+ } catch (e) {
20
+ }
21
+ var result = nativeObjectToString.call(value);
22
+ if (unmasked) {
23
+ if (isOwn) {
24
+ value[symToStringTag] = tag;
25
+ } else {
26
+ delete value[symToStringTag];
34
27
  }
35
- ),
36
- /* @__PURE__ */ jsxRuntime.jsx(
37
- louis.Link,
38
- {
39
- disabled: loading,
40
- onClick: () => {
41
- setIsMarkAsDonePromptShown(true);
42
- },
43
- children: "Mark as done"
44
- }
45
- )
46
- ] });
47
- };
48
- exports.TaskLanguageCompleted = TaskLanguageCompleted;
28
+ }
29
+ return result;
30
+ }
31
+ _getRawTag = getRawTag;
32
+ return _getRawTag;
33
+ }
34
+ exports.__require = require_getRawTag;
49
35
  //# sourceMappingURL=harmony130.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony130.cjs","sources":["../src/components/Sidebar/Widgets/Tasks/TaskLanguageCompleted/TaskLanguageCompleted.tsx"],"sourcesContent":["import { Alert, ConfirmModal, Link } from '@lokalise/louis'\nimport { useState } from 'react'\nimport { useTasks } from '../TasksContext'\nimport type { SidebarTask, SidebarTaskLanguage } from '../types'\n\ntype TaskLanguageCompletedProps = {\n\ttask: SidebarTask\n\tlanguage: SidebarTaskLanguage\n}\n\nexport const TaskLanguageCompleted = ({ task, language }: TaskLanguageCompletedProps) => {\n\tconst [loading, setLoading] = useState(false)\n\n\tconst [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = useState(false)\n\n\tconst { onLanguageCompleteConfirm, fetchTasks } = useTasks()\n\n\tconst closePrompt = () => {\n\t\tsetIsMarkAsDonePromptShown(false)\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{isMarkAsDonePromptShown && (\n\t\t\t\t<ConfirmModal\n\t\t\t\t\topened\n\t\t\t\t\tloading={loading}\n\t\t\t\t\ttitle={`Are you finished with ${language.name}?`}\n\t\t\t\t\tconfirmText=\"Mark as done\"\n\t\t\t\t\tcloseText=\"Cancel\"\n\t\t\t\t\tonClose={closePrompt}\n\t\t\t\t\tonConfirm={async () => {\n\t\t\t\t\t\tsetLoading(true)\n\t\t\t\t\t\tawait onLanguageCompleteConfirm({ task, language, closePrompt })\n\t\t\t\t\t\tfetchTasks()\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Alert status=\"info\">\n\t\t\t\t\t\tMake sure you are finished and <strong>mark it as done</strong> to notify your team\n\t\t\t\t\t\tadmin. This action cannot be undone, and the language might no longer be available for\n\t\t\t\t\t\tyou to edit.\n\t\t\t\t\t</Alert>\n\t\t\t\t</ConfirmModal>\n\t\t\t)}\n\t\t\t<Link\n\t\t\t\tdisabled={loading}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tsetIsMarkAsDonePromptShown(true)\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tMark as done\n\t\t\t</Link>\n\t\t</>\n\t)\n}\n"],"names":["useState","useTasks","jsxs","Fragment","jsx","ConfirmModal","Alert","Link"],"mappings":";;;;;;AAUO,MAAM,wBAAwB,CAAC,EAAE,MAAM,eAA2C;AACxF,QAAM,CAAC,SAAS,UAAU,IAAIA,MAAAA,SAAS,KAAK;AAE5C,QAAM,CAAC,yBAAyB,0BAA0B,IAAIA,MAAAA,SAAS,KAAK;AAE5E,QAAM,EAAE,2BAA2B,WAAW,IAAIC,sBAAS;AAE3D,QAAM,cAAc,MAAM;AACzB,+BAA2B,KAAK;AAAA,EACjC;AAEA,SAEGC,2BAAA,KAAAC,qBAAA,EAAA,UAAA;AAAA,IACA,2BAAAC,2BAAA;AAAA,MAACC,MAAA;AAAA,MAAA;AAAA,QACA,QAAM;AAAA,QACN;AAAA,QACA,OAAO,yBAAyB,SAAS,IAAI;AAAA,QAC7C,aAAY;AAAA,QACZ,WAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW,YAAY;AACtB,qBAAW,IAAI;AACf,gBAAM,0BAA0B,EAAE,MAAM,UAAU,aAAa;AACpD,qBAAA;AAAA,QACZ;AAAA,QAEA,UAAAH,2BAAA,KAACI,MAAM,OAAA,EAAA,QAAO,QAAO,UAAA;AAAA,UAAA;AAAA,UACWF,2BAAAA,IAAC,YAAO,UAAe,kBAAA,CAAA;AAAA,UAAS;AAAA,QAAA,EAGhE,CAAA;AAAA,MAAA;AAAA,IACD;AAAA,IAEDA,2BAAA;AAAA,MAACG,MAAA;AAAA,MAAA;AAAA,QACA,UAAU;AAAA,QACV,SAAS,MAAM;AACd,qCAA2B,IAAI;AAAA,QAChC;AAAA,QACA,UAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAED,GACD;AAEF;;"}
1
+ {"version":3,"file":"harmony130.cjs","sources":["../node_modules/lodash/_getRawTag.js"],"sourcesContent":["var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n"],"names":["Symbol","require$$0"],"mappings":";;;;;;;;AAAA,MAAIA,UAASC,QAAAA,UAAoB;AAGjC,MAAI,cAAc,OAAO;AAGzB,MAAI,iBAAiB,YAAY;AAOjC,MAAI,uBAAuB,YAAY;AAGvC,MAAI,iBAAiBD,UAASA,QAAO,cAAc;AASnD,WAAS,UAAU,OAAO;AACxB,QAAI,QAAQ,eAAe,KAAK,OAAO,cAAc,GACjD,MAAM,MAAM,cAAc;AAE9B,QAAI;AACF,YAAM,cAAc,IAAI;AACxB,UAAI,WAAW;AAAA,IAChB,SAAQ,GAAG;AAAA,IAAA;AAEZ,QAAI,SAAS,qBAAqB,KAAK,KAAK;AAC5C,QAAI,UAAU;AACZ,UAAI,OAAO;AACT,cAAM,cAAc,IAAI;AAAA,MAC9B,OAAW;AACL,eAAO,MAAM,cAAc;AAAA,MACjC;AAAA,IACA;AACE,WAAO;AAAA,EACT;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
@@ -1,49 +1,35 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { ConfirmModal, Alert, Link } from "@lokalise/louis";
3
- import { useState } from "react";
4
- import { useTasks } from "./harmony100.mjs";
5
- const TaskLanguageCompleted = ({ task, language }) => {
6
- const [loading, setLoading] = useState(false);
7
- const [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = useState(false);
8
- const { onLanguageCompleteConfirm, fetchTasks } = useTasks();
9
- const closePrompt = () => {
10
- setIsMarkAsDonePromptShown(false);
11
- };
12
- return /* @__PURE__ */ jsxs(Fragment, { children: [
13
- isMarkAsDonePromptShown && /* @__PURE__ */ jsx(
14
- ConfirmModal,
15
- {
16
- opened: true,
17
- loading,
18
- title: `Are you finished with ${language.name}?`,
19
- confirmText: "Mark as done",
20
- closeText: "Cancel",
21
- onClose: closePrompt,
22
- onConfirm: async () => {
23
- setLoading(true);
24
- await onLanguageCompleteConfirm({ task, language, closePrompt });
25
- fetchTasks();
26
- },
27
- children: /* @__PURE__ */ jsxs(Alert, { status: "info", children: [
28
- "Make sure you are finished and ",
29
- /* @__PURE__ */ jsx("strong", { children: "mark it as done" }),
30
- " to notify your team admin. This action cannot be undone, and the language might no longer be available for you to edit."
31
- ] })
1
+ import { __require as require_Symbol } from "./harmony129.mjs";
2
+ var _getRawTag;
3
+ var hasRequired_getRawTag;
4
+ function require_getRawTag() {
5
+ if (hasRequired_getRawTag) return _getRawTag;
6
+ hasRequired_getRawTag = 1;
7
+ var Symbol = require_Symbol();
8
+ var objectProto = Object.prototype;
9
+ var hasOwnProperty = objectProto.hasOwnProperty;
10
+ var nativeObjectToString = objectProto.toString;
11
+ var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
12
+ function getRawTag(value) {
13
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
14
+ try {
15
+ value[symToStringTag] = void 0;
16
+ var unmasked = true;
17
+ } catch (e) {
18
+ }
19
+ var result = nativeObjectToString.call(value);
20
+ if (unmasked) {
21
+ if (isOwn) {
22
+ value[symToStringTag] = tag;
23
+ } else {
24
+ delete value[symToStringTag];
32
25
  }
33
- ),
34
- /* @__PURE__ */ jsx(
35
- Link,
36
- {
37
- disabled: loading,
38
- onClick: () => {
39
- setIsMarkAsDonePromptShown(true);
40
- },
41
- children: "Mark as done"
42
- }
43
- )
44
- ] });
45
- };
26
+ }
27
+ return result;
28
+ }
29
+ _getRawTag = getRawTag;
30
+ return _getRawTag;
31
+ }
46
32
  export {
47
- TaskLanguageCompleted
33
+ require_getRawTag as __require
48
34
  };
49
35
  //# sourceMappingURL=harmony130.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony130.mjs","sources":["../src/components/Sidebar/Widgets/Tasks/TaskLanguageCompleted/TaskLanguageCompleted.tsx"],"sourcesContent":["import { Alert, ConfirmModal, Link } from '@lokalise/louis'\nimport { useState } from 'react'\nimport { useTasks } from '../TasksContext'\nimport type { SidebarTask, SidebarTaskLanguage } from '../types'\n\ntype TaskLanguageCompletedProps = {\n\ttask: SidebarTask\n\tlanguage: SidebarTaskLanguage\n}\n\nexport const TaskLanguageCompleted = ({ task, language }: TaskLanguageCompletedProps) => {\n\tconst [loading, setLoading] = useState(false)\n\n\tconst [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = useState(false)\n\n\tconst { onLanguageCompleteConfirm, fetchTasks } = useTasks()\n\n\tconst closePrompt = () => {\n\t\tsetIsMarkAsDonePromptShown(false)\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{isMarkAsDonePromptShown && (\n\t\t\t\t<ConfirmModal\n\t\t\t\t\topened\n\t\t\t\t\tloading={loading}\n\t\t\t\t\ttitle={`Are you finished with ${language.name}?`}\n\t\t\t\t\tconfirmText=\"Mark as done\"\n\t\t\t\t\tcloseText=\"Cancel\"\n\t\t\t\t\tonClose={closePrompt}\n\t\t\t\t\tonConfirm={async () => {\n\t\t\t\t\t\tsetLoading(true)\n\t\t\t\t\t\tawait onLanguageCompleteConfirm({ task, language, closePrompt })\n\t\t\t\t\t\tfetchTasks()\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Alert status=\"info\">\n\t\t\t\t\t\tMake sure you are finished and <strong>mark it as done</strong> to notify your team\n\t\t\t\t\t\tadmin. This action cannot be undone, and the language might no longer be available for\n\t\t\t\t\t\tyou to edit.\n\t\t\t\t\t</Alert>\n\t\t\t\t</ConfirmModal>\n\t\t\t)}\n\t\t\t<Link\n\t\t\t\tdisabled={loading}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tsetIsMarkAsDonePromptShown(true)\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tMark as done\n\t\t\t</Link>\n\t\t</>\n\t)\n}\n"],"names":[],"mappings":";;;;AAUO,MAAM,wBAAwB,CAAC,EAAE,MAAM,eAA2C;AACxF,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,KAAK;AAE5C,QAAM,CAAC,yBAAyB,0BAA0B,IAAI,SAAS,KAAK;AAE5E,QAAM,EAAE,2BAA2B,WAAW,IAAI,SAAS;AAE3D,QAAM,cAAc,MAAM;AACzB,+BAA2B,KAAK;AAAA,EACjC;AAEA,SAEG,qBAAA,UAAA,EAAA,UAAA;AAAA,IACA,2BAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,QAAM;AAAA,QACN;AAAA,QACA,OAAO,yBAAyB,SAAS,IAAI;AAAA,QAC7C,aAAY;AAAA,QACZ,WAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW,YAAY;AACtB,qBAAW,IAAI;AACf,gBAAM,0BAA0B,EAAE,MAAM,UAAU,aAAa;AACpD,qBAAA;AAAA,QACZ;AAAA,QAEA,UAAA,qBAAC,OAAM,EAAA,QAAO,QAAO,UAAA;AAAA,UAAA;AAAA,UACW,oBAAC,YAAO,UAAe,kBAAA,CAAA;AAAA,UAAS;AAAA,QAAA,EAGhE,CAAA;AAAA,MAAA;AAAA,IACD;AAAA,IAED;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,UAAU;AAAA,QACV,SAAS,MAAM;AACd,qCAA2B,IAAI;AAAA,QAChC;AAAA,QACA,UAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAED,GACD;AAEF;"}
1
+ {"version":3,"file":"harmony130.mjs","sources":["../node_modules/lodash/_getRawTag.js"],"sourcesContent":["var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,SAASA,eAAoB;AAGjC,MAAI,cAAc,OAAO;AAGzB,MAAI,iBAAiB,YAAY;AAOjC,MAAI,uBAAuB,YAAY;AAGvC,MAAI,iBAAiB,SAAS,OAAO,cAAc;AASnD,WAAS,UAAU,OAAO;AACxB,QAAI,QAAQ,eAAe,KAAK,OAAO,cAAc,GACjD,MAAM,MAAM,cAAc;AAE9B,QAAI;AACF,YAAM,cAAc,IAAI;AACxB,UAAI,WAAW;AAAA,IAChB,SAAQ,GAAG;AAAA,IAAA;AAEZ,QAAI,SAAS,qBAAqB,KAAK,KAAK;AAC5C,QAAI,UAAU;AACZ,UAAI,OAAO;AACT,cAAM,cAAc,IAAI;AAAA,MAC9B,OAAW;AACL,eAAO,MAAM,cAAc;AAAA,MACjC;AAAA,IACA;AACE,WAAO;AAAA,EACT;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
@@ -1,15 +1,17 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const langRowCompleted = "_langRowCompleted_vpgdi_1";
4
- const langCellSecondary = "_langCellSecondary_vpgdi_15";
5
- const langStatus = "_langStatus_vpgdi_20";
6
- const styles = {
7
- langRowCompleted,
8
- langCellSecondary,
9
- langStatus
10
- };
11
- exports.default = styles;
12
- exports.langCellSecondary = langCellSecondary;
13
- exports.langRowCompleted = langRowCompleted;
14
- exports.langStatus = langStatus;
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ var _objectToString;
4
+ var hasRequired_objectToString;
5
+ function require_objectToString() {
6
+ if (hasRequired_objectToString) return _objectToString;
7
+ hasRequired_objectToString = 1;
8
+ var objectProto = Object.prototype;
9
+ var nativeObjectToString = objectProto.toString;
10
+ function objectToString(value) {
11
+ return nativeObjectToString.call(value);
12
+ }
13
+ _objectToString = objectToString;
14
+ return _objectToString;
15
+ }
16
+ exports.__require = require_objectToString;
15
17
  //# sourceMappingURL=harmony131.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony131.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"harmony131.cjs","sources":["../node_modules/lodash/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n"],"names":[],"mappings":";;;;;;;AACA,MAAI,cAAc,OAAO;AAOzB,MAAI,uBAAuB,YAAY;AASvC,WAAS,eAAe,OAAO;AAC7B,WAAO,qBAAqB,KAAK,KAAK;AAAA,EACxC;AAEA,oBAAiB;;;;","x_google_ignoreList":[0]}
@@ -1,15 +1,17 @@
1
- const langRowCompleted = "_langRowCompleted_vpgdi_1";
2
- const langCellSecondary = "_langCellSecondary_vpgdi_15";
3
- const langStatus = "_langStatus_vpgdi_20";
4
- const styles = {
5
- langRowCompleted,
6
- langCellSecondary,
7
- langStatus
8
- };
1
+ var _objectToString;
2
+ var hasRequired_objectToString;
3
+ function require_objectToString() {
4
+ if (hasRequired_objectToString) return _objectToString;
5
+ hasRequired_objectToString = 1;
6
+ var objectProto = Object.prototype;
7
+ var nativeObjectToString = objectProto.toString;
8
+ function objectToString(value) {
9
+ return nativeObjectToString.call(value);
10
+ }
11
+ _objectToString = objectToString;
12
+ return _objectToString;
13
+ }
9
14
  export {
10
- styles as default,
11
- langCellSecondary,
12
- langRowCompleted,
13
- langStatus
15
+ require_objectToString as __require
14
16
  };
15
17
  //# sourceMappingURL=harmony131.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony131.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"harmony131.mjs","sources":["../node_modules/lodash/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n"],"names":[],"mappings":";;;;;AACA,MAAI,cAAc,OAAO;AAOzB,MAAI,uBAAuB,YAAY;AASvC,WAAS,eAAe,OAAO;AAC7B,WAAO,qBAAqB,KAAK,KAAK;AAAA,EACxC;AAEA,oBAAiB;;;","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("./harmony92.cjs");
3
+ const jwtTokenPayload = require("./harmony101.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 "./harmony92.mjs";
1
+ import { JWT_TOKEN_PAYLOAD_SCHEMA } from "./harmony101.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("./harmony40.cjs");
4
4
  const React = require("react");
5
- const NewJwtIssuedEvent = require("./harmony93.cjs");
5
+ const NewJwtIssuedEvent = require("./harmony102.cjs");
6
6
  const cookieTokenUtils = require("./harmony16.cjs");
7
7
  function useGetPromotedClassicSessionJwtQuery(wretchClient, headers, teamId) {
8
8
  const csrf = cookieTokenUtils.getCsrfTokenFromCookie();
@@ -1,6 +1,6 @@
1
1
  import { useGetUserTokenQuery, getUserTokenKey } from "./harmony40.mjs";
2
2
  import { useRef, useEffect } from "react";
3
- import { NewJwtIssuedEvent } from "./harmony93.mjs";
3
+ import { NewJwtIssuedEvent } from "./harmony102.mjs";
4
4
  import { getCsrfTokenFromCookie } from "./harmony16.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("./harmony15.cjs");
5
- const NewJwtIssuedEvent = require("./harmony93.cjs");
5
+ const NewJwtIssuedEvent = require("./harmony102.cjs");
6
6
  const cookieTokenUtils = require("./harmony16.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 "./harmony15.mjs";
3
- import { NewJwtIssuedEvent } from "./harmony93.mjs";
3
+ import { NewJwtIssuedEvent } from "./harmony102.mjs";
4
4
  import { getJwtTokenFromCookie } from "./harmony16.mjs";
5
5
  function useAuthenticatedSessionPayload() {
6
6
  const [payload, setPayload] = useState();
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const apiContracts = require("./harmony94.cjs");
3
+ const apiContracts = require("./harmony103.cjs");
4
4
  const scoreTypes = require("./harmony56.cjs");
5
5
  const sharedTypes = require("./harmony57.cjs");
6
6
  const getScore = apiContracts.buildGetRoute({
@@ -1,4 +1,4 @@
1
- import { buildGetRoute } from "./harmony94.mjs";
1
+ import { buildGetRoute } from "./harmony103.mjs";
2
2
  import { GET_SCORE_RESPONSE_SCHEMA, GET_SCORE_REQUEST_QUERY_SCHEMA } from "./harmony56.mjs";
3
3
  import { BASE_API_ENDPOINT_HEADER_SCHEMA } from "./harmony57.mjs";
4
4
  const getScore = buildGetRoute({
@@ -4,7 +4,14 @@ const paginationTypes = require("./harmony52.cjs");
4
4
  const sharedTypes = require("./harmony57.cjs");
5
5
  const zod = require("zod");
6
6
  const TEAM_API_BASE_HEADERS_SCHEMA = sharedTypes.BASE_API_ENDPOINT_HEADER_SCHEMA;
7
- const TEAM_QUOTA_METRICS = ["keys", "projects", "mau", "trafficBytes", "ai_words"];
7
+ const TEAM_QUOTA_METRICS = [
8
+ "users",
9
+ "keys",
10
+ "projects",
11
+ "mau",
12
+ "trafficBytes",
13
+ "ai_words"
14
+ ];
8
15
  const TEAM_QUOTA_METRICS_SCHEMA = zod.z.enum(TEAM_QUOTA_METRICS);
9
16
  const TEAM_QUOTA_USAGE_SCHEMA = zod.z.record(TEAM_QUOTA_METRICS_SCHEMA, zod.z.number());
10
17
  const TEAM_QUOTA_ALLOWED_SCHEMA = zod.z.record(TEAM_QUOTA_METRICS_SCHEMA, zod.z.number());
@@ -12,12 +19,23 @@ const NORMALISED_TEAM_ID_SCHEMA = zod.z.union([
12
19
  zod.z.object({ id: zod.z.number() }),
13
20
  zod.z.object({ team_id: zod.z.number() }).transform(({ team_id }) => ({ id: team_id }))
14
21
  ]);
22
+ const EXTENDED_DATE_TIME_SCHEMA = zod.z.union([
23
+ zod.z.string().refine((val) => /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} \(.*\)$/.test(val), {
24
+ message: "Invalid datetime format"
25
+ }),
26
+ zod.z.string().datetime({ offset: true }),
27
+ zod.z.string().datetime()
28
+ ]);
15
29
  const BASE_TEAM_SCHEMA = NORMALISED_TEAM_ID_SCHEMA.and(
16
30
  zod.z.object({
17
31
  // TODO: This should not be optional, but the API is not consistent yet
18
32
  uuid: zod.z.string().uuid().optional(),
19
33
  name: zod.z.string(),
20
- created_at: zod.z.string().datetime(),
34
+ /**
35
+ * TODO - created_at is using custom format like 2024-10-03 09:45:52 (Etc/UTC)
36
+ * instead of ISO 8601 which is expected by ZOD and we need a custom datetime schema
37
+ */
38
+ created_at: EXTENDED_DATE_TIME_SCHEMA,
21
39
  created_at_timestamp: zod.z.number(),
22
40
  plan: zod.z.string()
23
41
  })
@@ -1 +1 @@
1
- {"version":3,"file":"harmony59.cjs","sources":["../src/features/publicApi/types/teamTypes.ts"],"sourcesContent":["import { PAGINATION_QUERY_PARAMS_SCHEMA } from '@features/publicApi/types/paginationTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { z } from 'zod'\n\nexport const TEAM_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamApiBaseHeaders = z.infer<typeof TEAM_API_BASE_HEADERS_SCHEMA>\n\nexport const TEAM_QUOTA_METRICS = ['keys', 'projects', 'mau', 'trafficBytes', 'ai_words'] as const\nexport const TEAM_QUOTA_METRICS_SCHEMA = z.enum(TEAM_QUOTA_METRICS)\nexport type TeamQuotaMetrics = z.infer<typeof TEAM_QUOTA_METRICS_SCHEMA>\n\nexport const TEAM_QUOTA_USAGE_SCHEMA = z.record(TEAM_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamQuotaUsage = z.infer<typeof TEAM_QUOTA_USAGE_SCHEMA>\n\nexport const TEAM_QUOTA_ALLOWED_SCHEMA = z.record(TEAM_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamQuotaAllowed = z.infer<typeof TEAM_QUOTA_ALLOWED_SCHEMA>\n\n// This is a MASSIVE HACK to make the API work with the old `team_id` field so that it's normalised to `id`\nconst NORMALISED_TEAM_ID_SCHEMA = z.union([\n\tz.object({ id: z.number() }),\n\tz.object({ team_id: z.number() }).transform(({ team_id }) => ({ id: team_id })),\n])\n\nconst BASE_TEAM_SCHEMA = NORMALISED_TEAM_ID_SCHEMA.and(\n\tz.object({\n\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\tuuid: z.string().uuid().optional(),\n\t\tname: z.string(),\n\t\tcreated_at: z.string().datetime(),\n\t\tcreated_at_timestamp: z.number(),\n\t\tplan: z.string(),\n\t}),\n)\n\nconst TEAM_QUOTA_SCHEMA = z.object({\n\tquota_usage: TEAM_QUOTA_USAGE_SCHEMA,\n\tquota_allowed: TEAM_QUOTA_ALLOWED_SCHEMA,\n})\n\nconst TEAM_META_SCHEMA = z.object({\n\tis_team_suspended: z.boolean(),\n\tis_end_of_trial_active: z.boolean(),\n\ttrial_days_left: z.number(),\n})\n\nexport const LIST_TEAMS_QUERY_SCHEMA = PAGINATION_QUERY_PARAMS_SCHEMA\nexport type ListTeamsQueryParams = z.infer<typeof LIST_TEAMS_QUERY_SCHEMA>\n\nexport const LIST_TEAMS_RESPONSE_SCHEMA = z.object({\n\tteams: z.array(BASE_TEAM_SCHEMA.and(TEAM_QUOTA_SCHEMA)),\n})\n\nexport type ListTeamsResponse = z.infer<typeof LIST_TEAMS_RESPONSE_SCHEMA>\n\nexport const RETRIEVE_TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.union([z.string().uuid(), z.number()]),\n})\n\nexport type RetrieveTeamPathParams = z.infer<typeof RETRIEVE_TEAM_PATH_PARAMS_SCHEMA>\n\nexport const RETRIEVE_TEAM_RESPONSE_SCHEMA = z.object({\n\tteam: BASE_TEAM_SCHEMA.and(TEAM_QUOTA_SCHEMA).and(TEAM_META_SCHEMA),\n})\n\nexport type RetrieveTeamResponse = z.infer<typeof RETRIEVE_TEAM_RESPONSE_SCHEMA>\n"],"names":["BASE_API_ENDPOINT_HEADER_SCHEMA","z","PAGINATION_QUERY_PARAMS_SCHEMA"],"mappings":";;;;;AAIO,MAAM,+BAA+BA,YAAAA;AAIrC,MAAM,qBAAqB,CAAC,QAAQ,YAAY,OAAO,gBAAgB,UAAU;AAC3E,MAAA,4BAA4BC,IAAAA,EAAE,KAAK,kBAAkB;AAG3D,MAAM,0BAA0BA,IAAAA,EAAE,OAAO,2BAA2BA,IAAAA,EAAE,OAAQ,CAAA;AAG9E,MAAM,4BAA4BA,IAAAA,EAAE,OAAO,2BAA2BA,IAAAA,EAAE,OAAQ,CAAA;AAIvF,MAAM,4BAA4BA,MAAE,MAAM;AAAA,EACzCA,MAAE,OAAO,EAAE,IAAIA,IAAAA,EAAE,UAAU;AAAA,EAC3BA,IAAAA,EAAE,OAAO,EAAE,SAASA,IAAA,EAAE,SAAU,CAAA,EAAE,UAAU,CAAC,EAAE,QAAA,OAAe,EAAE,IAAI,UAAU;AAC/E,CAAC;AAED,MAAM,mBAAmB,0BAA0B;AAAA,EAClDA,IAAAA,EAAE,OAAO;AAAA;AAAA,IAER,MAAMA,IAAAA,EAAE,OAAS,EAAA,KAAA,EAAO,SAAS;AAAA,IACjC,MAAMA,MAAE,OAAO;AAAA,IACf,YAAYA,IAAA,EAAE,OAAO,EAAE,SAAS;AAAA,IAChC,sBAAsBA,MAAE,OAAO;AAAA,IAC/B,MAAMA,MAAE,OAAO;AAAA,EACf,CAAA;AACF;AAEA,MAAM,oBAAoBA,MAAE,OAAO;AAAA,EAClC,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAED,MAAM,mBAAmBA,MAAE,OAAO;AAAA,EACjC,mBAAmBA,MAAE,QAAQ;AAAA,EAC7B,wBAAwBA,MAAE,QAAQ;AAAA,EAClC,iBAAiBA,MAAE,OAAO;AAC3B,CAAC;AAEM,MAAM,0BAA0BC,gBAAAA;AAG1B,MAAA,6BAA6BD,MAAE,OAAO;AAAA,EAClD,OAAOA,IAAAA,EAAE,MAAM,iBAAiB,IAAI,iBAAiB,CAAC;AACvD,CAAC;AAIY,MAAA,mCAAmCA,MAAE,OAAO;AAAA,EACxD,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAE,EAAA,OAAS,EAAA,KAAQ,GAAAA,MAAE,QAAQ,CAAC;AAChD,CAAC;AAIY,MAAA,gCAAgCA,MAAE,OAAO;AAAA,EACrD,MAAM,iBAAiB,IAAI,iBAAiB,EAAE,IAAI,gBAAgB;AACnE,CAAC;;;;;;;;;;"}
1
+ {"version":3,"file":"harmony59.cjs","sources":["../src/features/publicApi/types/teamTypes.ts"],"sourcesContent":["import { PAGINATION_QUERY_PARAMS_SCHEMA } from '@features/publicApi/types/paginationTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { z } from 'zod'\n\nexport const TEAM_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamApiBaseHeaders = z.infer<typeof TEAM_API_BASE_HEADERS_SCHEMA>\n\nexport const TEAM_QUOTA_METRICS = [\n\t'users',\n\t'keys',\n\t'projects',\n\t'mau',\n\t'trafficBytes',\n\t'ai_words',\n] as const\nexport const TEAM_QUOTA_METRICS_SCHEMA = z.enum(TEAM_QUOTA_METRICS)\nexport type TeamQuotaMetrics = z.infer<typeof TEAM_QUOTA_METRICS_SCHEMA>\n\nexport const TEAM_QUOTA_USAGE_SCHEMA = z.record(TEAM_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamQuotaUsage = z.infer<typeof TEAM_QUOTA_USAGE_SCHEMA>\n\nexport const TEAM_QUOTA_ALLOWED_SCHEMA = z.record(TEAM_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamQuotaAllowed = z.infer<typeof TEAM_QUOTA_ALLOWED_SCHEMA>\n\n// This is a MASSIVE HACK to make the API work with the old `team_id` field so that it's normalised to `id`\nconst NORMALISED_TEAM_ID_SCHEMA = z.union([\n\tz.object({ id: z.number() }),\n\tz.object({ team_id: z.number() }).transform(({ team_id }) => ({ id: team_id })),\n])\n\nconst EXTENDED_DATE_TIME_SCHEMA = z.union([\n\tz.string().refine((val) => /^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2} \\(.*\\)$/.test(val), {\n\t\tmessage: 'Invalid datetime format',\n\t}),\n\tz.string().datetime({ offset: true }),\n\tz.string().datetime(),\n])\n\nconst BASE_TEAM_SCHEMA = NORMALISED_TEAM_ID_SCHEMA.and(\n\tz.object({\n\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\tuuid: z.string().uuid().optional(),\n\t\tname: z.string(),\n\t\t/**\n\t\t * TODO - created_at is using custom format like 2024-10-03 09:45:52 (Etc/UTC)\n\t\t * instead of ISO 8601 which is expected by ZOD and we need a custom datetime schema\n\t\t */\n\t\tcreated_at: EXTENDED_DATE_TIME_SCHEMA,\n\t\tcreated_at_timestamp: z.number(),\n\t\tplan: z.string(),\n\t}),\n)\n\nconst TEAM_QUOTA_SCHEMA = z.object({\n\tquota_usage: TEAM_QUOTA_USAGE_SCHEMA,\n\tquota_allowed: TEAM_QUOTA_ALLOWED_SCHEMA,\n})\n\nconst TEAM_META_SCHEMA = z.object({\n\tis_team_suspended: z.boolean(),\n\tis_end_of_trial_active: z.boolean(),\n\ttrial_days_left: z.number(),\n})\n\nexport const LIST_TEAMS_QUERY_SCHEMA = PAGINATION_QUERY_PARAMS_SCHEMA\nexport type ListTeamsQueryParams = z.infer<typeof LIST_TEAMS_QUERY_SCHEMA>\n\nexport const LIST_TEAMS_RESPONSE_SCHEMA = z.object({\n\tteams: z.array(BASE_TEAM_SCHEMA.and(TEAM_QUOTA_SCHEMA)),\n})\n\nexport type ListTeamsResponse = z.infer<typeof LIST_TEAMS_RESPONSE_SCHEMA>\n\nexport const RETRIEVE_TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.union([z.string().uuid(), z.number()]),\n})\n\nexport type RetrieveTeamPathParams = z.infer<typeof RETRIEVE_TEAM_PATH_PARAMS_SCHEMA>\n\nexport const RETRIEVE_TEAM_RESPONSE_SCHEMA = z.object({\n\tteam: BASE_TEAM_SCHEMA.and(TEAM_QUOTA_SCHEMA).and(TEAM_META_SCHEMA),\n})\n\nexport type RetrieveTeamResponse = z.infer<typeof RETRIEVE_TEAM_RESPONSE_SCHEMA>\n"],"names":["BASE_API_ENDPOINT_HEADER_SCHEMA","z","PAGINATION_QUERY_PARAMS_SCHEMA"],"mappings":";;;;;AAIO,MAAM,+BAA+BA,YAAAA;AAIrC,MAAM,qBAAqB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AACa,MAAA,4BAA4BC,IAAAA,EAAE,KAAK,kBAAkB;AAG3D,MAAM,0BAA0BA,IAAAA,EAAE,OAAO,2BAA2BA,IAAAA,EAAE,OAAQ,CAAA;AAG9E,MAAM,4BAA4BA,IAAAA,EAAE,OAAO,2BAA2BA,IAAAA,EAAE,OAAQ,CAAA;AAIvF,MAAM,4BAA4BA,MAAE,MAAM;AAAA,EACzCA,MAAE,OAAO,EAAE,IAAIA,IAAAA,EAAE,UAAU;AAAA,EAC3BA,IAAAA,EAAE,OAAO,EAAE,SAASA,IAAA,EAAE,SAAU,CAAA,EAAE,UAAU,CAAC,EAAE,QAAA,OAAe,EAAE,IAAI,UAAU;AAC/E,CAAC;AAED,MAAM,4BAA4BA,MAAE,MAAM;AAAA,EACzCA,MAAE,OAAS,EAAA,OAAO,CAAC,QAAQ,+CAA+C,KAAK,GAAG,GAAG;AAAA,IACpF,SAAS;AAAA,EAAA,CACT;AAAA,EACDA,MAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,MAAM;AAAA,EACpCA,IAAA,EAAE,OAAO,EAAE,SAAS;AACrB,CAAC;AAED,MAAM,mBAAmB,0BAA0B;AAAA,EAClDA,IAAAA,EAAE,OAAO;AAAA;AAAA,IAER,MAAMA,IAAAA,EAAE,OAAS,EAAA,KAAA,EAAO,SAAS;AAAA,IACjC,MAAMA,MAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKf,YAAY;AAAA,IACZ,sBAAsBA,MAAE,OAAO;AAAA,IAC/B,MAAMA,MAAE,OAAO;AAAA,EACf,CAAA;AACF;AAEA,MAAM,oBAAoBA,MAAE,OAAO;AAAA,EAClC,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAED,MAAM,mBAAmBA,MAAE,OAAO;AAAA,EACjC,mBAAmBA,MAAE,QAAQ;AAAA,EAC7B,wBAAwBA,MAAE,QAAQ;AAAA,EAClC,iBAAiBA,MAAE,OAAO;AAC3B,CAAC;AAEM,MAAM,0BAA0BC,gBAAAA;AAG1B,MAAA,6BAA6BD,MAAE,OAAO;AAAA,EAClD,OAAOA,IAAAA,EAAE,MAAM,iBAAiB,IAAI,iBAAiB,CAAC;AACvD,CAAC;AAIY,MAAA,mCAAmCA,MAAE,OAAO;AAAA,EACxD,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAE,EAAA,OAAS,EAAA,KAAQ,GAAAA,MAAE,QAAQ,CAAC;AAChD,CAAC;AAIY,MAAA,gCAAgCA,MAAE,OAAO;AAAA,EACrD,MAAM,iBAAiB,IAAI,iBAAiB,EAAE,IAAI,gBAAgB;AACnE,CAAC;;;;;;;;;;"}
@@ -2,7 +2,14 @@ import { PAGINATION_QUERY_PARAMS_SCHEMA } from "./harmony52.mjs";
2
2
  import { BASE_API_ENDPOINT_HEADER_SCHEMA } from "./harmony57.mjs";
3
3
  import { z } from "zod";
4
4
  const TEAM_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA;
5
- const TEAM_QUOTA_METRICS = ["keys", "projects", "mau", "trafficBytes", "ai_words"];
5
+ const TEAM_QUOTA_METRICS = [
6
+ "users",
7
+ "keys",
8
+ "projects",
9
+ "mau",
10
+ "trafficBytes",
11
+ "ai_words"
12
+ ];
6
13
  const TEAM_QUOTA_METRICS_SCHEMA = z.enum(TEAM_QUOTA_METRICS);
7
14
  const TEAM_QUOTA_USAGE_SCHEMA = z.record(TEAM_QUOTA_METRICS_SCHEMA, z.number());
8
15
  const TEAM_QUOTA_ALLOWED_SCHEMA = z.record(TEAM_QUOTA_METRICS_SCHEMA, z.number());
@@ -10,12 +17,23 @@ const NORMALISED_TEAM_ID_SCHEMA = z.union([
10
17
  z.object({ id: z.number() }),
11
18
  z.object({ team_id: z.number() }).transform(({ team_id }) => ({ id: team_id }))
12
19
  ]);
20
+ const EXTENDED_DATE_TIME_SCHEMA = z.union([
21
+ z.string().refine((val) => /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} \(.*\)$/.test(val), {
22
+ message: "Invalid datetime format"
23
+ }),
24
+ z.string().datetime({ offset: true }),
25
+ z.string().datetime()
26
+ ]);
13
27
  const BASE_TEAM_SCHEMA = NORMALISED_TEAM_ID_SCHEMA.and(
14
28
  z.object({
15
29
  // TODO: This should not be optional, but the API is not consistent yet
16
30
  uuid: z.string().uuid().optional(),
17
31
  name: z.string(),
18
- created_at: z.string().datetime(),
32
+ /**
33
+ * TODO - created_at is using custom format like 2024-10-03 09:45:52 (Etc/UTC)
34
+ * instead of ISO 8601 which is expected by ZOD and we need a custom datetime schema
35
+ */
36
+ created_at: EXTENDED_DATE_TIME_SCHEMA,
19
37
  created_at_timestamp: z.number(),
20
38
  plan: z.string()
21
39
  })
@@ -1 +1 @@
1
- {"version":3,"file":"harmony59.mjs","sources":["../src/features/publicApi/types/teamTypes.ts"],"sourcesContent":["import { PAGINATION_QUERY_PARAMS_SCHEMA } from '@features/publicApi/types/paginationTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { z } from 'zod'\n\nexport const TEAM_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamApiBaseHeaders = z.infer<typeof TEAM_API_BASE_HEADERS_SCHEMA>\n\nexport const TEAM_QUOTA_METRICS = ['keys', 'projects', 'mau', 'trafficBytes', 'ai_words'] as const\nexport const TEAM_QUOTA_METRICS_SCHEMA = z.enum(TEAM_QUOTA_METRICS)\nexport type TeamQuotaMetrics = z.infer<typeof TEAM_QUOTA_METRICS_SCHEMA>\n\nexport const TEAM_QUOTA_USAGE_SCHEMA = z.record(TEAM_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamQuotaUsage = z.infer<typeof TEAM_QUOTA_USAGE_SCHEMA>\n\nexport const TEAM_QUOTA_ALLOWED_SCHEMA = z.record(TEAM_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamQuotaAllowed = z.infer<typeof TEAM_QUOTA_ALLOWED_SCHEMA>\n\n// This is a MASSIVE HACK to make the API work with the old `team_id` field so that it's normalised to `id`\nconst NORMALISED_TEAM_ID_SCHEMA = z.union([\n\tz.object({ id: z.number() }),\n\tz.object({ team_id: z.number() }).transform(({ team_id }) => ({ id: team_id })),\n])\n\nconst BASE_TEAM_SCHEMA = NORMALISED_TEAM_ID_SCHEMA.and(\n\tz.object({\n\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\tuuid: z.string().uuid().optional(),\n\t\tname: z.string(),\n\t\tcreated_at: z.string().datetime(),\n\t\tcreated_at_timestamp: z.number(),\n\t\tplan: z.string(),\n\t}),\n)\n\nconst TEAM_QUOTA_SCHEMA = z.object({\n\tquota_usage: TEAM_QUOTA_USAGE_SCHEMA,\n\tquota_allowed: TEAM_QUOTA_ALLOWED_SCHEMA,\n})\n\nconst TEAM_META_SCHEMA = z.object({\n\tis_team_suspended: z.boolean(),\n\tis_end_of_trial_active: z.boolean(),\n\ttrial_days_left: z.number(),\n})\n\nexport const LIST_TEAMS_QUERY_SCHEMA = PAGINATION_QUERY_PARAMS_SCHEMA\nexport type ListTeamsQueryParams = z.infer<typeof LIST_TEAMS_QUERY_SCHEMA>\n\nexport const LIST_TEAMS_RESPONSE_SCHEMA = z.object({\n\tteams: z.array(BASE_TEAM_SCHEMA.and(TEAM_QUOTA_SCHEMA)),\n})\n\nexport type ListTeamsResponse = z.infer<typeof LIST_TEAMS_RESPONSE_SCHEMA>\n\nexport const RETRIEVE_TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.union([z.string().uuid(), z.number()]),\n})\n\nexport type RetrieveTeamPathParams = z.infer<typeof RETRIEVE_TEAM_PATH_PARAMS_SCHEMA>\n\nexport const RETRIEVE_TEAM_RESPONSE_SCHEMA = z.object({\n\tteam: BASE_TEAM_SCHEMA.and(TEAM_QUOTA_SCHEMA).and(TEAM_META_SCHEMA),\n})\n\nexport type RetrieveTeamResponse = z.infer<typeof RETRIEVE_TEAM_RESPONSE_SCHEMA>\n"],"names":[],"mappings":";;;AAIO,MAAM,+BAA+B;AAIrC,MAAM,qBAAqB,CAAC,QAAQ,YAAY,OAAO,gBAAgB,UAAU;AAC3E,MAAA,4BAA4B,EAAE,KAAK,kBAAkB;AAG3D,MAAM,0BAA0B,EAAE,OAAO,2BAA2B,EAAE,OAAQ,CAAA;AAG9E,MAAM,4BAA4B,EAAE,OAAO,2BAA2B,EAAE,OAAQ,CAAA;AAIvF,MAAM,4BAA4B,EAAE,MAAM;AAAA,EACzC,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU;AAAA,EAC3B,EAAE,OAAO,EAAE,SAAS,EAAE,SAAU,CAAA,EAAE,UAAU,CAAC,EAAE,QAAA,OAAe,EAAE,IAAI,UAAU;AAC/E,CAAC;AAED,MAAM,mBAAmB,0BAA0B;AAAA,EAClD,EAAE,OAAO;AAAA;AAAA,IAER,MAAM,EAAE,OAAS,EAAA,KAAA,EAAO,SAAS;AAAA,IACjC,MAAM,EAAE,OAAO;AAAA,IACf,YAAY,EAAE,OAAO,EAAE,SAAS;AAAA,IAChC,sBAAsB,EAAE,OAAO;AAAA,IAC/B,MAAM,EAAE,OAAO;AAAA,EACf,CAAA;AACF;AAEA,MAAM,oBAAoB,EAAE,OAAO;AAAA,EAClC,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAED,MAAM,mBAAmB,EAAE,OAAO;AAAA,EACjC,mBAAmB,EAAE,QAAQ;AAAA,EAC7B,wBAAwB,EAAE,QAAQ;AAAA,EAClC,iBAAiB,EAAE,OAAO;AAC3B,CAAC;AAEM,MAAM,0BAA0B;AAG1B,MAAA,6BAA6B,EAAE,OAAO;AAAA,EAClD,OAAO,EAAE,MAAM,iBAAiB,IAAI,iBAAiB,CAAC;AACvD,CAAC;AAIY,MAAA,mCAAmC,EAAE,OAAO;AAAA,EACxD,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAS,EAAA,KAAQ,GAAA,EAAE,QAAQ,CAAC;AAChD,CAAC;AAIY,MAAA,gCAAgC,EAAE,OAAO;AAAA,EACrD,MAAM,iBAAiB,IAAI,iBAAiB,EAAE,IAAI,gBAAgB;AACnE,CAAC;"}
1
+ {"version":3,"file":"harmony59.mjs","sources":["../src/features/publicApi/types/teamTypes.ts"],"sourcesContent":["import { PAGINATION_QUERY_PARAMS_SCHEMA } from '@features/publicApi/types/paginationTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { z } from 'zod'\n\nexport const TEAM_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamApiBaseHeaders = z.infer<typeof TEAM_API_BASE_HEADERS_SCHEMA>\n\nexport const TEAM_QUOTA_METRICS = [\n\t'users',\n\t'keys',\n\t'projects',\n\t'mau',\n\t'trafficBytes',\n\t'ai_words',\n] as const\nexport const TEAM_QUOTA_METRICS_SCHEMA = z.enum(TEAM_QUOTA_METRICS)\nexport type TeamQuotaMetrics = z.infer<typeof TEAM_QUOTA_METRICS_SCHEMA>\n\nexport const TEAM_QUOTA_USAGE_SCHEMA = z.record(TEAM_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamQuotaUsage = z.infer<typeof TEAM_QUOTA_USAGE_SCHEMA>\n\nexport const TEAM_QUOTA_ALLOWED_SCHEMA = z.record(TEAM_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamQuotaAllowed = z.infer<typeof TEAM_QUOTA_ALLOWED_SCHEMA>\n\n// This is a MASSIVE HACK to make the API work with the old `team_id` field so that it's normalised to `id`\nconst NORMALISED_TEAM_ID_SCHEMA = z.union([\n\tz.object({ id: z.number() }),\n\tz.object({ team_id: z.number() }).transform(({ team_id }) => ({ id: team_id })),\n])\n\nconst EXTENDED_DATE_TIME_SCHEMA = z.union([\n\tz.string().refine((val) => /^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2} \\(.*\\)$/.test(val), {\n\t\tmessage: 'Invalid datetime format',\n\t}),\n\tz.string().datetime({ offset: true }),\n\tz.string().datetime(),\n])\n\nconst BASE_TEAM_SCHEMA = NORMALISED_TEAM_ID_SCHEMA.and(\n\tz.object({\n\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\tuuid: z.string().uuid().optional(),\n\t\tname: z.string(),\n\t\t/**\n\t\t * TODO - created_at is using custom format like 2024-10-03 09:45:52 (Etc/UTC)\n\t\t * instead of ISO 8601 which is expected by ZOD and we need a custom datetime schema\n\t\t */\n\t\tcreated_at: EXTENDED_DATE_TIME_SCHEMA,\n\t\tcreated_at_timestamp: z.number(),\n\t\tplan: z.string(),\n\t}),\n)\n\nconst TEAM_QUOTA_SCHEMA = z.object({\n\tquota_usage: TEAM_QUOTA_USAGE_SCHEMA,\n\tquota_allowed: TEAM_QUOTA_ALLOWED_SCHEMA,\n})\n\nconst TEAM_META_SCHEMA = z.object({\n\tis_team_suspended: z.boolean(),\n\tis_end_of_trial_active: z.boolean(),\n\ttrial_days_left: z.number(),\n})\n\nexport const LIST_TEAMS_QUERY_SCHEMA = PAGINATION_QUERY_PARAMS_SCHEMA\nexport type ListTeamsQueryParams = z.infer<typeof LIST_TEAMS_QUERY_SCHEMA>\n\nexport const LIST_TEAMS_RESPONSE_SCHEMA = z.object({\n\tteams: z.array(BASE_TEAM_SCHEMA.and(TEAM_QUOTA_SCHEMA)),\n})\n\nexport type ListTeamsResponse = z.infer<typeof LIST_TEAMS_RESPONSE_SCHEMA>\n\nexport const RETRIEVE_TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.union([z.string().uuid(), z.number()]),\n})\n\nexport type RetrieveTeamPathParams = z.infer<typeof RETRIEVE_TEAM_PATH_PARAMS_SCHEMA>\n\nexport const RETRIEVE_TEAM_RESPONSE_SCHEMA = z.object({\n\tteam: BASE_TEAM_SCHEMA.and(TEAM_QUOTA_SCHEMA).and(TEAM_META_SCHEMA),\n})\n\nexport type RetrieveTeamResponse = z.infer<typeof RETRIEVE_TEAM_RESPONSE_SCHEMA>\n"],"names":[],"mappings":";;;AAIO,MAAM,+BAA+B;AAIrC,MAAM,qBAAqB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AACa,MAAA,4BAA4B,EAAE,KAAK,kBAAkB;AAG3D,MAAM,0BAA0B,EAAE,OAAO,2BAA2B,EAAE,OAAQ,CAAA;AAG9E,MAAM,4BAA4B,EAAE,OAAO,2BAA2B,EAAE,OAAQ,CAAA;AAIvF,MAAM,4BAA4B,EAAE,MAAM;AAAA,EACzC,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU;AAAA,EAC3B,EAAE,OAAO,EAAE,SAAS,EAAE,SAAU,CAAA,EAAE,UAAU,CAAC,EAAE,QAAA,OAAe,EAAE,IAAI,UAAU;AAC/E,CAAC;AAED,MAAM,4BAA4B,EAAE,MAAM;AAAA,EACzC,EAAE,OAAS,EAAA,OAAO,CAAC,QAAQ,+CAA+C,KAAK,GAAG,GAAG;AAAA,IACpF,SAAS;AAAA,EAAA,CACT;AAAA,EACD,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,MAAM;AAAA,EACpC,EAAE,OAAO,EAAE,SAAS;AACrB,CAAC;AAED,MAAM,mBAAmB,0BAA0B;AAAA,EAClD,EAAE,OAAO;AAAA;AAAA,IAER,MAAM,EAAE,OAAS,EAAA,KAAA,EAAO,SAAS;AAAA,IACjC,MAAM,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKf,YAAY;AAAA,IACZ,sBAAsB,EAAE,OAAO;AAAA,IAC/B,MAAM,EAAE,OAAO;AAAA,EACf,CAAA;AACF;AAEA,MAAM,oBAAoB,EAAE,OAAO;AAAA,EAClC,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAED,MAAM,mBAAmB,EAAE,OAAO;AAAA,EACjC,mBAAmB,EAAE,QAAQ;AAAA,EAC7B,wBAAwB,EAAE,QAAQ;AAAA,EAClC,iBAAiB,EAAE,OAAO;AAC3B,CAAC;AAEM,MAAM,0BAA0B;AAG1B,MAAA,6BAA6B,EAAE,OAAO;AAAA,EAClD,OAAO,EAAE,MAAM,iBAAiB,IAAI,iBAAiB,CAAC;AACvD,CAAC;AAIY,MAAA,mCAAmC,EAAE,OAAO;AAAA,EACxD,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAS,EAAA,KAAQ,GAAA,EAAE,QAAQ,CAAC;AAChD,CAAC;AAIY,MAAA,gCAAgC,EAAE,OAAO;AAAA,EACrD,MAAM,iBAAiB,IAAI,iBAAiB,EAAE,IAAI,gBAAgB;AACnE,CAAC;"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const React = require("react");
4
- const utils = require("./harmony95.cjs");
4
+ const utils = require("./harmony104.cjs");
5
5
  function useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1e3, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize } = {}) {
6
6
  const skipResize = React.useRef(skipOnMount);
7
7
  const onResizeRef = utils.useCallbackRef(onResize);
@@ -1,5 +1,5 @@
1
1
  import { useRef, useState, useCallback, useEffect } from "react";
2
- import { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from "./harmony95.mjs";
2
+ import { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from "./harmony104.mjs";
3
3
  function useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1e3, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize } = {}) {
4
4
  const skipResize = useRef(skipOnMount);
5
5
  const onResizeRef = useCallbackRef(onResize);
@@ -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 Avatar_module = require("./harmony81.cjs");
4
+ const Avatar_module = require("./harmony79.cjs");
5
5
  const Avatar = ({
6
6
  src,
7
7
  href = "/",
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import styles from "./harmony81.mjs";
2
+ import styles from "./harmony79.mjs";
3
3
  const Avatar = ({
4
4
  src,
5
5
  href = "/",
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const louis = require("@lokalise/louis");
5
5
  const clsx = require("./harmony62.cjs");
6
- const IconLink_module = require("./harmony82.cjs");
6
+ const IconLink_module = require("./harmony80.cjs");
7
7
  const IconLink = ({ label, to, icon: Icon }) => {
8
8
  return /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsxRuntime.jsx(
9
9
  louis.Link,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Tooltip, Link } from "@lokalise/louis";
3
3
  import { clsx } from "./harmony62.mjs";
4
- import styles from "./harmony82.mjs";
4
+ import styles from "./harmony80.mjs";
5
5
  const IconLink = ({ label, to, icon: Icon }) => {
6
6
  return /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsx(
7
7
  Link,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const louis = require("@lokalise/louis");
5
5
  const clsx = require("./harmony62.cjs");
6
- const Menu_module = require("./harmony83.cjs");
6
+ const Menu_module = require("./harmony81.cjs");
7
7
  const Menu = ({ children, icon: Icon }) => {
8
8
  return /* @__PURE__ */ jsxRuntime.jsx(
9
9
  louis.Menu,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
3
3
  import { clsx } from "./harmony62.mjs";
4
- import styles from "./harmony83.mjs";
4
+ import styles from "./harmony81.mjs";
5
5
  const Menu = ({ children, icon: Icon }) => {
6
6
  return /* @__PURE__ */ jsx(
7
7
  Menu$1,
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const ProfileMenuContent = require("./harmony84.cjs");
5
- const ProfileMenuProvider = require("./harmony85.cjs");
4
+ const ProfileMenuContent = require("./harmony82.cjs");
5
+ const ProfileMenuProvider = require("./harmony83.cjs");
6
6
  const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuProvider.ProfileMenuProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContent.ProfileMenuContent, { children }) });
7
7
  exports.ProfileMenu = ProfileMenu;
8
8
  //# sourceMappingURL=harmony69.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { ProfileMenuContent } from "./harmony84.mjs";
3
- import { ProfileMenuProvider } from "./harmony85.mjs";
2
+ import { ProfileMenuContent } from "./harmony82.mjs";
3
+ import { ProfileMenuProvider } from "./harmony83.mjs";
4
4
  const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsx(ProfileMenuProvider, { config, children: /* @__PURE__ */ jsx(ProfileMenuContent, { children }) });
5
5
  export {
6
6
  ProfileMenu
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const louis = require("@lokalise/louis");
5
- const ProfileMenuContext = require("./harmony86.cjs");
6
- const ProfileSettingsMenuItem_module = require("./harmony87.cjs");
5
+ const ProfileMenuContext = require("./harmony84.cjs");
6
+ const ProfileSettingsMenuItem_module = require("./harmony85.cjs");
7
7
  const ProfileSettingsMenuItem = ({
8
8
  href,
9
9
  onClick,
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { MenuItem, MenuDivider } from "@lokalise/louis";
3
- import { useProfileMenu } from "./harmony86.mjs";
4
- import styles from "./harmony87.mjs";
3
+ import { useProfileMenu } from "./harmony84.mjs";
4
+ import styles from "./harmony85.mjs";
5
5
  const ProfileSettingsMenuItem = ({
6
6
  href,
7
7
  onClick,