@intlayer/design-system 3.5.5 → 3.5.6

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 (351) hide show
  1. package/dist/.vite/manifest.json +241 -17
  2. package/dist/CodeBlockShiki-BlmZyrr7.cjs +29 -0
  3. package/dist/CodeBlockShiki-BlmZyrr7.cjs.map +1 -0
  4. package/dist/CodeBlockShiki-CcpV9SVi.js +29 -0
  5. package/dist/CodeBlockShiki-CcpV9SVi.js.map +1 -0
  6. package/dist/Form-BB0kpER9.cjs +301 -0
  7. package/dist/Form-BB0kpER9.cjs.map +1 -0
  8. package/dist/Form-BDcoNTLV.cjs.map +1 -1
  9. package/dist/Form-DGLgTAdY.js +302 -0
  10. package/dist/Form-DGLgTAdY.js.map +1 -0
  11. package/dist/Form-DhsgC7kB.js.map +1 -1
  12. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts +11 -11
  13. package/dist/components/Breadcrumb/index.cjs +5 -2
  14. package/dist/components/Breadcrumb/index.cjs.map +1 -1
  15. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  16. package/dist/components/Breadcrumb/index.mjs +5 -2
  17. package/dist/components/Breadcrumb/index.mjs.map +1 -1
  18. package/dist/components/ClickOutsideDiv/index.cjs +26 -0
  19. package/dist/components/ClickOutsideDiv/index.cjs.map +1 -0
  20. package/dist/components/ClickOutsideDiv/index.d.ts +6 -0
  21. package/dist/components/ClickOutsideDiv/index.d.ts.map +1 -0
  22. package/dist/components/ClickOutsideDiv/index.mjs +26 -0
  23. package/dist/components/ClickOutsideDiv/index.mjs.map +1 -0
  24. package/dist/components/ContentEditor/ContentEditorCode.cjs +78 -0
  25. package/dist/components/ContentEditor/ContentEditorCode.cjs.map +1 -0
  26. package/dist/components/ContentEditor/ContentEditorCode.d.ts +11 -0
  27. package/dist/components/ContentEditor/ContentEditorCode.d.ts.map +1 -0
  28. package/dist/components/ContentEditor/ContentEditorCode.mjs +78 -0
  29. package/dist/components/ContentEditor/ContentEditorCode.mjs.map +1 -0
  30. package/dist/components/ContentEditor/ContentEditorTextArea.cjs +30 -26
  31. package/dist/components/ContentEditor/ContentEditorTextArea.cjs.map +1 -1
  32. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +2 -1
  33. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts.map +1 -1
  34. package/dist/components/ContentEditor/ContentEditorTextArea.mjs +30 -26
  35. package/dist/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -1
  36. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +3 -3
  37. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
  38. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +3 -3
  39. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
  40. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +4 -2
  41. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -1
  42. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts +2 -0
  43. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts.map +1 -1
  44. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +4 -2
  45. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -1
  46. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +161 -69
  47. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  48. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
  49. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +163 -71
  50. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  51. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +123 -0
  52. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
  53. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +14 -0
  54. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
  55. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +123 -0
  56. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
  57. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +9 -2
  58. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs.map +1 -1
  59. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs +15 -0
  60. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs.map +1 -1
  61. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +1 -0
  62. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts.map +1 -1
  63. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs +15 -0
  64. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs.map +1 -1
  65. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.d.ts +6 -0
  66. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.d.ts.map +1 -1
  67. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +9 -2
  68. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs.map +1 -1
  69. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +12 -4
  70. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  71. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +2 -0
  72. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
  73. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +12 -4
  74. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  75. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +7 -5
  76. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -1
  77. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts +2 -0
  78. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +1 -1
  79. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +7 -5
  80. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -1
  81. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +117 -55
  82. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +1 -1
  83. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts +4 -2
  84. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts.map +1 -1
  85. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +115 -53
  86. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +1 -1
  87. package/dist/components/DictionaryFieldEditor/LocaleSelector/LocaleSelector.d.ts +8 -0
  88. package/dist/components/DictionaryFieldEditor/LocaleSelector/LocaleSelector.d.ts.map +1 -0
  89. package/dist/components/DictionaryFieldEditor/LocaleSelector/LocaleSelectorContext.d.ts +13 -0
  90. package/dist/components/DictionaryFieldEditor/LocaleSelector/LocaleSelectorContext.d.ts.map +1 -0
  91. package/dist/components/DictionaryFieldEditor/LocaleSelector/localeSelector.content.d.ts +9 -0
  92. package/dist/components/DictionaryFieldEditor/LocaleSelector/localeSelector.content.d.ts.map +1 -0
  93. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +10 -10
  94. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
  95. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +10 -10
  96. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
  97. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs +23 -10
  98. package/dist/components/DictionaryFieldEditor/NodeEditor.cjs.map +1 -1
  99. package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts +2 -0
  100. package/dist/components/DictionaryFieldEditor/NodeEditor.d.ts.map +1 -1
  101. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs +23 -10
  102. package/dist/components/DictionaryFieldEditor/NodeEditor.mjs.map +1 -1
  103. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +1 -1
  104. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -1
  105. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +1 -1
  106. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
  107. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +2 -4
  108. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  109. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  110. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +3 -5
  111. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  112. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +13 -13
  113. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
  114. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +13 -13
  115. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
  116. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs +73 -0
  117. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs.map +1 -0
  118. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.d.ts +7 -0
  119. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.d.ts.map +1 -0
  120. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +73 -0
  121. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs.map +1 -0
  122. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +37 -0
  123. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs.map +1 -0
  124. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.d.ts +14 -0
  125. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.d.ts.map +1 -0
  126. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +37 -0
  127. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs.map +1 -0
  128. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/index.cjs +8 -0
  129. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/index.cjs.map +1 -0
  130. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/index.d.ts +3 -0
  131. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/index.d.ts.map +1 -0
  132. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/index.mjs +8 -0
  133. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/index.mjs.map +1 -0
  134. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.cjs +54 -0
  135. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.cjs.map +1 -0
  136. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts +10 -0
  137. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts.map +1 -0
  138. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.mjs +55 -0
  139. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.mjs.map +1 -0
  140. package/dist/components/DictionaryFieldEditor/index.cjs +5 -0
  141. package/dist/components/DictionaryFieldEditor/index.cjs.map +1 -1
  142. package/dist/components/DictionaryFieldEditor/index.d.ts +1 -0
  143. package/dist/components/DictionaryFieldEditor/index.d.ts.map +1 -1
  144. package/dist/components/DictionaryFieldEditor/index.mjs +6 -1
  145. package/dist/components/DictionaryFieldEditor/index.mjs.map +1 -1
  146. package/dist/components/EditableField/EditableFieldInput.cjs +5 -1
  147. package/dist/components/EditableField/EditableFieldInput.cjs.map +1 -1
  148. package/dist/components/EditableField/EditableFieldInput.d.ts.map +1 -1
  149. package/dist/components/EditableField/EditableFieldInput.mjs +6 -2
  150. package/dist/components/EditableField/EditableFieldInput.mjs.map +1 -1
  151. package/dist/components/EditableField/EditableFieldTextArea.cjs +2 -8
  152. package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -1
  153. package/dist/components/EditableField/EditableFieldTextArea.d.ts.map +1 -1
  154. package/dist/components/EditableField/EditableFieldTextArea.mjs +2 -8
  155. package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
  156. package/dist/components/Form/FormLabel.cjs +6 -2
  157. package/dist/components/Form/FormLabel.cjs.map +1 -1
  158. package/dist/components/Form/FormLabel.d.ts.map +1 -1
  159. package/dist/components/Form/FormLabel.mjs +6 -2
  160. package/dist/components/Form/FormLabel.mjs.map +1 -1
  161. package/dist/components/Form/elements/EditableFieldInputElement.d.ts +1 -1
  162. package/dist/components/Form/elements/EditableFieldInputElement.d.ts.map +1 -1
  163. package/dist/components/Form/elements/EditableFieldTextAreaElement.d.ts +1 -1
  164. package/dist/components/Form/elements/EditableFieldTextAreaElement.d.ts.map +1 -1
  165. package/dist/components/Form/elements/SelectElement.d.ts.map +1 -1
  166. package/dist/components/IDE/Code.cjs +77 -0
  167. package/dist/components/IDE/Code.cjs.map +1 -0
  168. package/dist/components/IDE/Code.d.ts +18 -0
  169. package/dist/components/IDE/Code.d.ts.map +1 -0
  170. package/dist/components/IDE/Code.mjs +77 -0
  171. package/dist/components/IDE/Code.mjs.map +1 -0
  172. package/dist/components/IDE/CodeBlock.cjs +54 -0
  173. package/dist/components/IDE/CodeBlock.cjs.map +1 -0
  174. package/dist/components/IDE/CodeBlock.d.ts +12 -0
  175. package/dist/components/IDE/CodeBlock.d.ts.map +1 -0
  176. package/dist/components/IDE/CodeBlock.mjs +54 -0
  177. package/dist/components/IDE/CodeBlock.mjs.map +1 -0
  178. package/dist/components/IDE/CodeBlockClient.cjs +55 -0
  179. package/dist/components/IDE/CodeBlockClient.cjs.map +1 -0
  180. package/dist/components/IDE/CodeBlockClient.mjs +55 -0
  181. package/dist/components/IDE/CodeBlockClient.mjs.map +1 -0
  182. package/dist/components/IDE/CodeBlockLoader.cjs +28 -0
  183. package/dist/components/IDE/CodeBlockLoader.cjs.map +1 -0
  184. package/dist/components/IDE/CodeBlockLoader.d.ts +4 -0
  185. package/dist/components/IDE/CodeBlockLoader.d.ts.map +1 -0
  186. package/dist/components/IDE/CodeBlockLoader.mjs +28 -0
  187. package/dist/components/IDE/CodeBlockLoader.mjs.map +1 -0
  188. package/dist/components/IDE/CodeBlockServer.cjs +53 -0
  189. package/dist/components/IDE/CodeBlockServer.cjs.map +1 -0
  190. package/dist/components/IDE/CodeBlockServer.d.ts +12 -0
  191. package/dist/components/IDE/CodeBlockServer.d.ts.map +1 -0
  192. package/dist/components/IDE/CodeBlockServer.mjs +53 -0
  193. package/dist/components/IDE/CodeBlockServer.mjs.map +1 -0
  194. package/dist/components/IDE/CodeBlockShiki.d.ts +3 -0
  195. package/dist/components/IDE/CodeBlockShiki.d.ts.map +1 -0
  196. package/dist/components/IDE/CodeBlockclient.d.ts +12 -0
  197. package/dist/components/IDE/CodeBlockclient.d.ts.map +1 -0
  198. package/dist/components/IDE/CodeConditionalRenderer.cjs +20 -0
  199. package/dist/components/IDE/CodeConditionalRenderer.cjs.map +1 -0
  200. package/dist/components/IDE/CodeConditionalRenderer.d.ts +4 -0
  201. package/dist/components/IDE/CodeConditionalRenderer.d.ts.map +1 -0
  202. package/dist/components/IDE/CodeConditionalRenderer.mjs +20 -0
  203. package/dist/components/IDE/CodeConditionalRenderer.mjs.map +1 -0
  204. package/dist/components/IDE/CodeContext.cjs +57 -0
  205. package/dist/components/IDE/CodeContext.cjs.map +1 -0
  206. package/dist/components/IDE/CodeContext.d.ts +26 -0
  207. package/dist/components/IDE/CodeContext.d.ts.map +1 -0
  208. package/dist/components/IDE/CodeContext.mjs +57 -0
  209. package/dist/components/IDE/CodeContext.mjs.map +1 -0
  210. package/dist/components/IDE/CodeFormatSelector.cjs +30 -0
  211. package/dist/components/IDE/CodeFormatSelector.cjs.map +1 -0
  212. package/dist/components/IDE/CodeFormatSelector.d.ts +3 -0
  213. package/dist/components/IDE/CodeFormatSelector.d.ts.map +1 -0
  214. package/dist/components/IDE/CodeFormatSelector.mjs +30 -0
  215. package/dist/components/IDE/CodeFormatSelector.mjs.map +1 -0
  216. package/dist/components/IDE/CodeRenderer.cjs +27 -0
  217. package/dist/components/IDE/CodeRenderer.cjs.map +1 -0
  218. package/dist/components/IDE/CodeRenderer.d.ts +5 -0
  219. package/dist/components/IDE/CodeRenderer.d.ts.map +1 -0
  220. package/dist/components/IDE/CodeRenderer.mjs +27 -0
  221. package/dist/components/IDE/CodeRenderer.mjs.map +1 -0
  222. package/dist/components/IDE/ContentDeclarationFormatSelector.cjs +28 -0
  223. package/dist/components/IDE/ContentDeclarationFormatSelector.cjs.map +1 -0
  224. package/dist/components/IDE/ContentDeclarationFormatSelector.d.ts +3 -0
  225. package/dist/components/IDE/ContentDeclarationFormatSelector.d.ts.map +1 -0
  226. package/dist/components/IDE/ContentDeclarationFormatSelector.mjs +28 -0
  227. package/dist/components/IDE/ContentDeclarationFormatSelector.mjs.map +1 -0
  228. package/dist/components/IDE/EditableCodeBlock.d.ts +9 -0
  229. package/dist/components/IDE/EditableCodeBlock.d.ts.map +1 -0
  230. package/dist/components/IDE/MarkDownRender.cjs +2 -3
  231. package/dist/components/IDE/MarkDownRender.cjs.map +1 -1
  232. package/dist/components/IDE/MarkDownRender.d.ts.map +1 -1
  233. package/dist/components/IDE/MarkDownRender.mjs +1 -2
  234. package/dist/components/IDE/MarkDownRender.mjs.map +1 -1
  235. package/dist/components/IDE/PackageManagerSelector.cjs +20 -0
  236. package/dist/components/IDE/PackageManagerSelector.cjs.map +1 -0
  237. package/dist/components/IDE/PackageManagerSelector.d.ts +3 -0
  238. package/dist/components/IDE/PackageManagerSelector.d.ts.map +1 -0
  239. package/dist/components/IDE/PackageManagerSelector.mjs +20 -0
  240. package/dist/components/IDE/PackageManagerSelector.mjs.map +1 -0
  241. package/dist/components/IDE/index.cjs +2 -2
  242. package/dist/components/IDE/index.d.ts +1 -1
  243. package/dist/components/IDE/index.d.ts.map +1 -1
  244. package/dist/components/IDE/index.mjs +1 -1
  245. package/dist/components/LocaleSwitcherContentDropDown/LocaleSelectorContext.d.ts +13 -0
  246. package/dist/components/LocaleSwitcherContentDropDown/LocaleSelectorContext.d.ts.map +1 -0
  247. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +218 -0
  248. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -0
  249. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.d.ts +8 -0
  250. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.d.ts.map +1 -0
  251. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +218 -0
  252. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -0
  253. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +42 -0
  254. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs.map +1 -0
  255. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.d.ts +15 -0
  256. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.d.ts.map +1 -0
  257. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +42 -0
  258. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs.map +1 -0
  259. package/dist/components/LocaleSwitcherContentDropDown/index.cjs +8 -0
  260. package/dist/components/LocaleSwitcherContentDropDown/index.cjs.map +1 -0
  261. package/dist/components/LocaleSwitcherContentDropDown/index.d.ts +3 -0
  262. package/dist/components/LocaleSwitcherContentDropDown/index.d.ts.map +1 -0
  263. package/dist/components/LocaleSwitcherContentDropDown/index.mjs +8 -0
  264. package/dist/components/LocaleSwitcherContentDropDown/index.mjs.map +1 -0
  265. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.cjs +118 -0
  266. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.cjs.map +1 -0
  267. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts +18 -0
  268. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts.map +1 -0
  269. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.mjs +119 -0
  270. package/dist/components/LocaleSwitcherContentDropDown/localeSwitcher.content.mjs.map +1 -0
  271. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +14 -22
  272. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.map +1 -1
  273. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts.map +1 -1
  274. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +14 -22
  275. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -1
  276. package/dist/components/MarkDownRender/index.cjs +20 -26
  277. package/dist/components/MarkDownRender/index.cjs.map +1 -1
  278. package/dist/components/MarkDownRender/index.d.ts +2 -0
  279. package/dist/components/MarkDownRender/index.d.ts.map +1 -1
  280. package/dist/components/MarkDownRender/index.mjs +20 -26
  281. package/dist/components/MarkDownRender/index.mjs.map +1 -1
  282. package/dist/components/Modal/Modal.cjs +3 -3
  283. package/dist/components/Modal/Modal.cjs.map +1 -1
  284. package/dist/components/Modal/Modal.d.ts +1 -1
  285. package/dist/components/Modal/Modal.d.ts.map +1 -1
  286. package/dist/components/Modal/Modal.mjs +3 -3
  287. package/dist/components/Modal/Modal.mjs.map +1 -1
  288. package/dist/components/SwitchSelector/index.cjs +4 -0
  289. package/dist/components/SwitchSelector/index.cjs.map +1 -1
  290. package/dist/components/SwitchSelector/index.d.ts.map +1 -1
  291. package/dist/components/SwitchSelector/index.mjs +5 -1
  292. package/dist/components/SwitchSelector/index.mjs.map +1 -1
  293. package/dist/components/index.cjs +16 -4
  294. package/dist/components/index.cjs.map +1 -1
  295. package/dist/components/index.d.ts +3 -1
  296. package/dist/components/index.d.ts.map +1 -1
  297. package/dist/components/index.mjs +15 -3
  298. package/dist/components/index.mjs.map +1 -1
  299. package/dist/hooks/index.cjs +8 -1
  300. package/dist/hooks/index.cjs.map +1 -1
  301. package/dist/hooks/index.mjs +9 -2
  302. package/dist/hooks/intlayerAPIHooks.cjs +80 -5
  303. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  304. package/dist/hooks/intlayerAPIHooks.d.ts +12 -2
  305. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  306. package/dist/hooks/intlayerAPIHooks.mjs +80 -5
  307. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  308. package/dist/hooks/useAsync/useAsyncStateStore.cjs +1 -5
  309. package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -1
  310. package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +1 -1
  311. package/dist/hooks/useAsync/useAsyncStateStore.mjs +1 -5
  312. package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -1
  313. package/dist/hooks/useGetAllDictionaries.cjs +4 -2
  314. package/dist/hooks/useGetAllDictionaries.cjs.map +1 -1
  315. package/dist/hooks/useGetAllDictionaries.d.ts +4 -1
  316. package/dist/hooks/useGetAllDictionaries.d.ts.map +1 -1
  317. package/dist/hooks/useGetAllDictionaries.mjs +4 -2
  318. package/dist/hooks/useGetAllDictionaries.mjs.map +1 -1
  319. package/dist/hooks/useIntlayerAPI.d.ts +11 -2
  320. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
  321. package/dist/hooks/usePersistedStore.cjs +17 -5
  322. package/dist/hooks/usePersistedStore.cjs.map +1 -1
  323. package/dist/hooks/usePersistedStore.d.ts.map +1 -1
  324. package/dist/hooks/usePersistedStore.mjs +17 -5
  325. package/dist/hooks/usePersistedStore.mjs.map +1 -1
  326. package/dist/libs/intlayer-api/ai.cjs +33 -3
  327. package/dist/libs/intlayer-api/ai.cjs.map +1 -1
  328. package/dist/libs/intlayer-api/ai.d.ts +9 -3
  329. package/dist/libs/intlayer-api/ai.d.ts.map +1 -1
  330. package/dist/libs/intlayer-api/ai.mjs +33 -3
  331. package/dist/libs/intlayer-api/ai.mjs.map +1 -1
  332. package/dist/libs/intlayer-api/dictionary.cjs +2 -2
  333. package/dist/libs/intlayer-api/dictionary.cjs.map +1 -1
  334. package/dist/libs/intlayer-api/dictionary.d.ts +3 -3
  335. package/dist/libs/intlayer-api/dictionary.d.ts.map +1 -1
  336. package/dist/libs/intlayer-api/dictionary.mjs +2 -2
  337. package/dist/libs/intlayer-api/dictionary.mjs.map +1 -1
  338. package/dist/libs/intlayer-api/index.cjs +3 -1
  339. package/dist/libs/intlayer-api/index.cjs.map +1 -1
  340. package/dist/libs/intlayer-api/index.d.ts +22 -4
  341. package/dist/libs/intlayer-api/index.d.ts.map +1 -1
  342. package/dist/libs/intlayer-api/index.mjs +3 -1
  343. package/dist/libs/intlayer-api/index.mjs.map +1 -1
  344. package/dist/libs/intlayer-api/tag.cjs +52 -0
  345. package/dist/libs/intlayer-api/tag.cjs.map +1 -0
  346. package/dist/libs/intlayer-api/tag.d.ts +16 -0
  347. package/dist/libs/intlayer-api/tag.d.ts.map +1 -0
  348. package/dist/libs/intlayer-api/tag.mjs +52 -0
  349. package/dist/libs/intlayer-api/tag.mjs.map +1 -0
  350. package/dist/tailwind.css +1 -1
  351. package/package.json +13 -14
@@ -25,8 +25,12 @@ exports.useAddNewAccessKey = hooks_intlayerAPIHooks.useAddNewAccessKey;
25
25
  exports.useAddOrganization = hooks_intlayerAPIHooks.useAddOrganization;
26
26
  exports.useAddOrganizationMember = hooks_intlayerAPIHooks.useAddOrganizationMember;
27
27
  exports.useAddProject = hooks_intlayerAPIHooks.useAddProject;
28
+ exports.useAddTag = hooks_intlayerAPIHooks.useAddTag;
28
29
  exports.useAskResetPassword = hooks_intlayerAPIHooks.useAskResetPassword;
29
- exports.useAuditFile = hooks_intlayerAPIHooks.useAuditFile;
30
+ exports.useAuditContentDeclaration = hooks_intlayerAPIHooks.useAuditContentDeclaration;
31
+ exports.useAuditContentDeclarationField = hooks_intlayerAPIHooks.useAuditContentDeclarationField;
32
+ exports.useAuditContentDeclarationMetadata = hooks_intlayerAPIHooks.useAuditContentDeclarationMetadata;
33
+ exports.useAuditTag = hooks_intlayerAPIHooks.useAuditTag;
30
34
  exports.useCancelSubscription = hooks_intlayerAPIHooks.useCancelSubscription;
31
35
  exports.useChangePassword = hooks_intlayerAPIHooks.useChangePassword;
32
36
  exports.useCheckIfUserHasPassword = hooks_intlayerAPIHooks.useCheckIfUserHasPassword;
@@ -35,6 +39,7 @@ exports.useDeleteAccessKey = hooks_intlayerAPIHooks.useDeleteAccessKey;
35
39
  exports.useDeleteDictionary = hooks_intlayerAPIHooks.useDeleteDictionary;
36
40
  exports.useDeleteOrganization = hooks_intlayerAPIHooks.useDeleteOrganization;
37
41
  exports.useDeleteProject = hooks_intlayerAPIHooks.useDeleteProject;
42
+ exports.useDeleteTag = hooks_intlayerAPIHooks.useDeleteTag;
38
43
  exports.useDeleteUser = hooks_intlayerAPIHooks.useDeleteUser;
39
44
  exports.useGetDictionaries = hooks_intlayerAPIHooks.useGetDictionaries;
40
45
  exports.useGetDictionariesKeys = hooks_intlayerAPIHooks.useGetDictionariesKeys;
@@ -42,6 +47,7 @@ exports.useGetDictionary = hooks_intlayerAPIHooks.useGetDictionary;
42
47
  exports.useGetOrganizations = hooks_intlayerAPIHooks.useGetOrganizations;
43
48
  exports.useGetProjects = hooks_intlayerAPIHooks.useGetProjects;
44
49
  exports.useGetSubscription = hooks_intlayerAPIHooks.useGetSubscription;
50
+ exports.useGetTags = hooks_intlayerAPIHooks.useGetTags;
45
51
  exports.useGetUserByAccount = hooks_intlayerAPIHooks.useGetUserByAccount;
46
52
  exports.useGetUsers = hooks_intlayerAPIHooks.useGetUsers;
47
53
  exports.useLogin = hooks_intlayerAPIHooks.useLogin;
@@ -59,6 +65,7 @@ exports.useUpdateOrganization = hooks_intlayerAPIHooks.useUpdateOrganization;
59
65
  exports.useUpdateOrganizationMembers = hooks_intlayerAPIHooks.useUpdateOrganizationMembers;
60
66
  exports.useUpdateProject = hooks_intlayerAPIHooks.useUpdateProject;
61
67
  exports.useUpdateProjectMembers = hooks_intlayerAPIHooks.useUpdateProjectMembers;
68
+ exports.useUpdateTag = hooks_intlayerAPIHooks.useUpdateTag;
62
69
  exports.useUpdateUser = hooks_intlayerAPIHooks.useUpdateUser;
63
70
  exports.useVerifyEmail = hooks_intlayerAPIHooks.useVerifyEmail;
64
71
  exports.useItemSelector = hooks_useItemSelector.useItemSelector;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -5,7 +5,7 @@ import { useIsMounted } from "./useIsMounted.mjs";
5
5
  import { useScrollDetection } from "./useScrollDetection.mjs";
6
6
  import { useAsync } from "./useAsync/useAsync.mjs";
7
7
  import { AsyncStateProvider, useAsyncState } from "./useAsync/useAsyncStateStore.mjs";
8
- import { useAddDictionary, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddProject, useAskResetPassword, useAuditFile, useCancelSubscription, useChangePassword, useCheckIfUserHasPassword, useCreateUser, useDeleteAccessKey, useDeleteDictionary, useDeleteOrganization, useDeleteProject, useDeleteUser, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetOrganizations, useGetProjects, useGetSubscription, useGetUserByAccount, useGetUsers, useLogin, useLogout, usePushDictionaries, useRefreshAccessKey, useRegister, useResetPassword, useSelectOrganization, useSelectProject, useUnselectOrganization, useUnselectProject, useUpdateDictionary, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateProject, useUpdateProjectMembers, useUpdateUser, useVerifyEmail } from "./intlayerAPIHooks.mjs";
8
+ import { useAddDictionary, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddProject, useAddTag, useAskResetPassword, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditTag, useCancelSubscription, useChangePassword, useCheckIfUserHasPassword, useCreateUser, useDeleteAccessKey, useDeleteDictionary, useDeleteOrganization, useDeleteProject, useDeleteTag, useDeleteUser, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetOrganizations, useGetProjects, useGetSubscription, useGetTags, useGetUserByAccount, useGetUsers, useLogin, useLogout, usePushDictionaries, useRefreshAccessKey, useRegister, useResetPassword, useSelectOrganization, useSelectProject, useUnselectOrganization, useUnselectProject, useUpdateDictionary, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateProject, useUpdateProjectMembers, useUpdateTag, useUpdateUser, useVerifyEmail } from "./intlayerAPIHooks.mjs";
9
9
  import { useItemSelector } from "./useItemSelector.mjs";
10
10
  import { useGetAllDictionaries } from "./useGetAllDictionaries.mjs";
11
11
  import { usePersistedStore } from "./usePersistedStore.mjs";
@@ -17,10 +17,14 @@ export {
17
17
  useAddOrganization,
18
18
  useAddOrganizationMember,
19
19
  useAddProject,
20
+ useAddTag,
20
21
  useAskResetPassword,
21
22
  useAsync,
22
23
  useAsyncState,
23
- useAuditFile,
24
+ useAuditContentDeclaration,
25
+ useAuditContentDeclarationField,
26
+ useAuditContentDeclarationMetadata,
27
+ useAuditTag,
24
28
  useCancelSubscription,
25
29
  useChangePassword,
26
30
  useCheckIfUserHasPassword,
@@ -29,6 +33,7 @@ export {
29
33
  useDeleteDictionary,
30
34
  useDeleteOrganization,
31
35
  useDeleteProject,
36
+ useDeleteTag,
32
37
  useDeleteUser,
33
38
  useDevice,
34
39
  useGetAllDictionaries,
@@ -39,6 +44,7 @@ export {
39
44
  useGetOrganizations,
40
45
  useGetProjects,
41
46
  useGetSubscription,
47
+ useGetTags,
42
48
  useGetUserByAccount,
43
49
  useGetUsers,
44
50
  useIsDarkMode,
@@ -62,6 +68,7 @@ export {
62
68
  useUpdateOrganizationMembers,
63
69
  useUpdateProject,
64
70
  useUpdateProjectMembers,
71
+ useUpdateTag,
65
72
  useUpdateUser,
66
73
  useVerifyEmail
67
74
  };
@@ -318,7 +318,11 @@ const usePushDictionaries = (args) => useAppAsync(
318
318
  "pushDictionaries",
319
319
  hooks_useIntlayerAPI.useIntlayerAuth().dictionary.pushDictionaries,
320
320
  {
321
- invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
321
+ invalidateQueries: [
322
+ "getDictionaries",
323
+ "getDictionary",
324
+ "getDictionariesKeys"
325
+ ],
322
326
  ...args
323
327
  }
324
328
  );
@@ -326,7 +330,7 @@ const useUpdateDictionary = (args) => useAppAsync(
326
330
  "updateDictionary",
327
331
  hooks_useIntlayerAPI.useIntlayerAuth().dictionary.updateDictionary,
328
332
  {
329
- invalidateQueries: ["getDictionaries"],
333
+ invalidateQueries: ["getDictionaries", "getDictionary"],
330
334
  ...args
331
335
  }
332
336
  );
@@ -334,10 +338,44 @@ const useDeleteDictionary = (args) => useAppAsync(
334
338
  "deleteDictionary",
335
339
  hooks_useIntlayerAPI.useIntlayerAuth().dictionary.deleteDictionary,
336
340
  {
337
- invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
341
+ invalidateQueries: [
342
+ "getDictionaries",
343
+ "getDictionary",
344
+ "getDictionariesKeys"
345
+ ],
338
346
  ...args
339
347
  }
340
348
  );
349
+ const useGetTags = (args) => useAppAsync(
350
+ "getTags",
351
+ hooks_useIntlayerAPI.useIntlayerAuth().tag.getTags,
352
+ {
353
+ cache: true,
354
+ store: true,
355
+ retryLimit: 3,
356
+ autoFetch: true,
357
+ revalidation: true,
358
+ revalidateTime: 5 * 60 * 1e3,
359
+ // 5 minutes
360
+ ...args
361
+ },
362
+ {
363
+ requireUser: true,
364
+ requireOrganization: true
365
+ }
366
+ );
367
+ const useAddTag = (args) => useAppAsync("addTag", hooks_useIntlayerAPI.useIntlayerAuth().tag.addTag, {
368
+ invalidateQueries: ["getTags"],
369
+ ...args
370
+ });
371
+ const useUpdateTag = (args) => useAppAsync("updateTag", hooks_useIntlayerAPI.useIntlayerAuth().tag.updateTag, {
372
+ invalidateQueries: ["getTags"],
373
+ ...args
374
+ });
375
+ const useDeleteTag = (args) => useAppAsync("deleteTag", hooks_useIntlayerAPI.useIntlayerAuth().tag.deleteTag, {
376
+ invalidateQueries: ["getTags"],
377
+ ...args
378
+ });
341
379
  const useGetSubscription = (args) => useAppAsync(
342
380
  "getSubscription",
343
381
  hooks_useIntlayerAPI.useIntlayerAuth().stripe.getSubscription,
@@ -356,7 +394,37 @@ const useCancelSubscription = (args) => useAppAsync(
356
394
  requireOrganization: true
357
395
  }
358
396
  );
359
- const useAuditFile = (args) => useAppAsync("auditFile", hooks_useIntlayerAPI.useIntlayerAuth().ai.auditFile, args, {
397
+ const useAuditContentDeclaration = (args) => useAppAsync(
398
+ "auditContentDeclaration",
399
+ hooks_useIntlayerAPI.useIntlayerAuth().ai.auditContentDeclaration,
400
+ args,
401
+ {
402
+ requireUser: true,
403
+ requireOrganization: true,
404
+ requireProject: true
405
+ }
406
+ );
407
+ const useAuditContentDeclarationMetadata = (args) => useAppAsync(
408
+ "auditContentDeclaration",
409
+ hooks_useIntlayerAPI.useIntlayerAuth().ai.auditContentDeclarationMetadata,
410
+ args,
411
+ {
412
+ requireUser: true,
413
+ requireOrganization: true,
414
+ requireProject: true
415
+ }
416
+ );
417
+ const useAuditContentDeclarationField = (args) => useAppAsync(
418
+ "auditContentDeclarationField",
419
+ hooks_useIntlayerAPI.useIntlayerAuth().ai.auditContentDeclarationField,
420
+ args,
421
+ {
422
+ requireUser: true,
423
+ requireOrganization: true,
424
+ requireProject: true
425
+ }
426
+ );
427
+ const useAuditTag = (args) => useAppAsync("auditTag", hooks_useIntlayerAPI.useIntlayerAuth().ai.auditTag, args, {
360
428
  requireUser: true,
361
429
  requireOrganization: true,
362
430
  requireProject: true
@@ -366,8 +434,12 @@ exports.useAddNewAccessKey = useAddNewAccessKey;
366
434
  exports.useAddOrganization = useAddOrganization;
367
435
  exports.useAddOrganizationMember = useAddOrganizationMember;
368
436
  exports.useAddProject = useAddProject;
437
+ exports.useAddTag = useAddTag;
369
438
  exports.useAskResetPassword = useAskResetPassword;
370
- exports.useAuditFile = useAuditFile;
439
+ exports.useAuditContentDeclaration = useAuditContentDeclaration;
440
+ exports.useAuditContentDeclarationField = useAuditContentDeclarationField;
441
+ exports.useAuditContentDeclarationMetadata = useAuditContentDeclarationMetadata;
442
+ exports.useAuditTag = useAuditTag;
371
443
  exports.useCancelSubscription = useCancelSubscription;
372
444
  exports.useChangePassword = useChangePassword;
373
445
  exports.useCheckIfUserHasPassword = useCheckIfUserHasPassword;
@@ -376,6 +448,7 @@ exports.useDeleteAccessKey = useDeleteAccessKey;
376
448
  exports.useDeleteDictionary = useDeleteDictionary;
377
449
  exports.useDeleteOrganization = useDeleteOrganization;
378
450
  exports.useDeleteProject = useDeleteProject;
451
+ exports.useDeleteTag = useDeleteTag;
379
452
  exports.useDeleteUser = useDeleteUser;
380
453
  exports.useGetDictionaries = useGetDictionaries;
381
454
  exports.useGetDictionariesKeys = useGetDictionariesKeys;
@@ -383,6 +456,7 @@ exports.useGetDictionary = useGetDictionary;
383
456
  exports.useGetOrganizations = useGetOrganizations;
384
457
  exports.useGetProjects = useGetProjects;
385
458
  exports.useGetSubscription = useGetSubscription;
459
+ exports.useGetTags = useGetTags;
386
460
  exports.useGetUserByAccount = useGetUserByAccount;
387
461
  exports.useGetUsers = useGetUsers;
388
462
  exports.useLogin = useLogin;
@@ -400,6 +474,7 @@ exports.useUpdateOrganization = useUpdateOrganization;
400
474
  exports.useUpdateOrganizationMembers = useUpdateOrganizationMembers;
401
475
  exports.useUpdateProject = useUpdateProject;
402
476
  exports.useUpdateProjectMembers = useUpdateProjectMembers;
477
+ exports.useUpdateTag = useUpdateTag;
403
478
  exports.useUpdateUser = useUpdateUser;
404
479
  exports.useVerifyEmail = useVerifyEmail;
405
480
  //# sourceMappingURL=intlayerAPIHooks.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"intlayerAPIHooks.cjs","sources":["../../__vite-browser-external","../../src/hooks/intlayerAPIHooks.ts"],"sourcesContent":["export default {}","/* eslint-disable @typescript-eslint/no-explicit-any */\n'use client';\n\nimport process from 'process';\nimport { intlayerAPI } from 'src/libs';\nimport { useAuth } from '../components/Auth/useAuth/index';\nimport { useToast } from '../components/Toaster';\nimport { useAsync, UseAsyncOptions } from './useAsync/useAsync';\nimport { useIntlayerAuth } from './useIntlayerAPI';\n\n/**\n * Hook to handle error logging and toast notifications\n */\nconst useErrorHandling = <T extends UseAsyncOptions<any>>(options: T): T => {\n const { toast } = useToast();\n\n return {\n ...options,\n onError: (errorMessage) => {\n let error;\n\n // If json is valid, parse it\n try {\n error = JSON.parse(errorMessage);\n } catch (e) {\n console.error(e);\n // If json is not valid, set error to the original errorMessage\n\n error = errorMessage;\n }\n\n // render toast for each error if there is more than one\n // otherwise render the toast with the error message\n [error]\n .flatMap((error) => error)\n .forEach((error) =>\n toast({\n title:\n (process.env.NODE_ENV === 'production'\n ? error.title\n : error.code) ?? 'Error',\n description: error.message ?? errorMessage ?? 'An error occurred',\n variant: 'error',\n })\n );\n options.onError?.(errorMessage);\n },\n onSuccess: (data) => {\n if (data.message)\n toast({\n title: data.message,\n description: data.description,\n variant: 'success',\n });\n options.onSuccess?.(data);\n },\n };\n};\n\ntype AuthEnableOptions = {\n requireUser?: boolean;\n requireProject?: boolean;\n requireOrganization?: boolean;\n};\n\n/**\n * Hook to enable authentication\n */\nconst useAuthEnable = <T extends UseAsyncOptions<any>>(\n options: T,\n { requireUser, requireProject, requireOrganization }: AuthEnableOptions = {}\n): T => {\n const { csrfToken, oAuth2AccessToken, session } = useAuth();\n\n const isEnabledOption = options?.enable ?? true;\n const user = session ? session.user : oAuth2AccessToken?.user;\n\n const organization = session\n ? session.organization\n : oAuth2AccessToken?.organization;\n\n const project = session ? session.project : oAuth2AccessToken?.project;\n\n const isUserEnabled = requireUser ? Boolean(user) : true;\n\n const isProjectEnabled = requireProject ? Boolean(project) : true;\n\n const isOrganizationEnabled = requireOrganization\n ? Boolean(organization)\n : true;\n\n const isCSRFEnabled =\n Boolean(csrfToken) ||\n // If auth using session, csrf token is not required\n (!session && Boolean(oAuth2AccessToken));\n\n const isEnabled =\n isEnabledOption &&\n isUserEnabled &&\n isProjectEnabled &&\n isOrganizationEnabled &&\n isCSRFEnabled;\n\n return {\n ...options,\n enable: isEnabled,\n };\n};\n\nconst useAppAsync = <\n U extends string,\n T extends (...args: any[]) => Promise<any>,\n>(\n key: U,\n asyncFunction: T,\n options?: UseAsyncOptions<T>,\n authOptions?: AuthEnableOptions\n) => {\n // Enhance options using custom hooks\n const optionsWithAuth = useAuthEnable(options ?? {}, authOptions);\n\n const optionsWithErrorHandling = useErrorHandling(optionsWithAuth);\n\n // Call the main useAsync hook with enhanced options\n return useAsync(key, asyncFunction, optionsWithErrorHandling);\n};\n\n/**\n * Auth\n */\n\nexport const useLogin = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.login>\n) =>\n useAppAsync('login', useIntlayerAuth().auth.login, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useRegister = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.register>\n) =>\n useAppAsync('register', useIntlayerAuth().auth.register, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useLogout = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.logout>\n) =>\n useAppAsync('logout', useIntlayerAuth().auth.logout, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useChangePassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.changePassword>\n) => useAppAsync('changePassword', useIntlayerAuth().auth.changePassword, args);\nexport const useAskResetPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.askResetPassword>\n) =>\n useAppAsync(\n 'askResetPassword',\n useIntlayerAuth().auth.askResetPassword,\n args\n );\nexport const useResetPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.resetPassword>\n) => useAppAsync('resetPassword', useIntlayerAuth().auth.resetPassword, args);\nexport const useCheckIfUserHasPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.checkIfUserHasPassword>\n) =>\n useAppAsync(\n 'checkIfUserHasPassword',\n useIntlayerAuth().auth.checkIfUserHasPassword,\n args,\n {\n requireUser: true,\n }\n );\nexport const useVerifyEmail = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.verifyEmail>\n) => useAppAsync('verifyEmail', useIntlayerAuth().auth.verifyEmail, args);\n\nexport const useGetUserByAccount = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.getUserByAccount>\n) =>\n useAppAsync(\n 'getUserByAccount',\n useIntlayerAuth().user.getUserByAccount,\n args\n );\n\n/**\n * User\n */\n\nexport const useGetUsers = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.getUsers>\n) =>\n useAppAsync(\n 'getUsers',\n useIntlayerAuth().user.getUsers,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n }\n );\nexport const useCreateUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.createUser>\n) =>\n useAppAsync('createUser', useIntlayerAuth().user.createUser, {\n invalidateQueries: ['getUsers'],\n ...args,\n });\nexport const useUpdateUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.updateUser>\n) =>\n useAppAsync('updateUser', useIntlayerAuth().user.updateUser, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useDeleteUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.deleteUser>\n) =>\n useAppAsync('deleteUser', useIntlayerAuth().user.deleteUser, {\n invalidateQueries: ['getUsers'],\n ...args,\n });\n\n/**\n * Organization\n */\n\nexport const useGetOrganizations = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.getOrganizations>\n) =>\n useAppAsync(\n 'getOrganizations',\n useIntlayerAuth().organization.getOrganizations,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n }\n );\n\nexport const useAddOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganization>\n) =>\n useAppAsync(\n 'addOrganization',\n useIntlayerAuth().organization.addOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useUpdateOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.updateOrganization>\n) =>\n useAppAsync(\n 'updateOrganization',\n useIntlayerAuth().organization.updateOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useUpdateOrganizationMembers = (\n args?: UseAsyncOptions<\n typeof intlayerAPI.organization.updateOrganizationMembers\n >\n) =>\n useAppAsync(\n 'updateOrganizationMembers',\n useIntlayerAuth().organization.updateOrganizationMembers,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useAddOrganizationMember = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganizationMember>\n) =>\n useAppAsync(\n 'addOrganizationMember',\n useIntlayerAuth().organization.addOrganizationMember,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useDeleteOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.deleteOrganization>\n) =>\n useAppAsync(\n 'deleteOrganization',\n useIntlayerAuth().organization.deleteOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useSelectOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.selectOrganization>\n) =>\n useAppAsync(\n 'selectOrganization',\n useIntlayerAuth().organization.selectOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useUnselectOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.unselectOrganization>\n) =>\n useAppAsync(\n 'unselectOrganization',\n useIntlayerAuth().organization.unselectOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\n\n/**\n * Project\n */\n\nexport const useGetProjects = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.getProjects>\n) =>\n useAppAsync(\n 'getProjects',\n useIntlayerAuth().project.getProjects,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\nexport const useAddProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.addProject>\n) =>\n useAppAsync('addProject', useIntlayerAuth().project.addProject, {\n invalidateQueries: ['getProjects'],\n ...args,\n });\nexport const useUpdateProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.updateProject>\n) =>\n useAppAsync('updateProject', useIntlayerAuth().project.updateProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useUpdateProjectMembers = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.updateProjectMembers>\n) =>\n useAppAsync(\n 'updateProjectMembers',\n useIntlayerAuth().project.updateProjectMembers,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useDeleteProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.deleteProject>\n) =>\n useAppAsync('deleteProject', useIntlayerAuth().project.deleteProject, {\n invalidateQueries: ['getProjects'],\n ...args,\n });\nexport const useSelectProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.selectProject>\n) =>\n useAppAsync('selectProject', useIntlayerAuth().project.selectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useUnselectProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.unselectProject>\n) =>\n useAppAsync('unselectProject', useIntlayerAuth().project.unselectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useAddNewAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.addNewAccessKey>\n) =>\n useAppAsync('addNewAccessKey', useIntlayerAuth().project.addNewAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useDeleteAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.deleteAccessKey>\n) =>\n useAppAsync('deleteAccessKey', useIntlayerAuth().project.deleteAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useRefreshAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.refreshAccessKey>\n) =>\n useAppAsync('refreshAccessKey', useIntlayerAuth().project.refreshAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\n/**\n * Dictionary\n */\n\nexport const useGetDictionaries = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionaries>\n) =>\n useAppAsync(\n 'getDictionaries',\n useIntlayerAuth().dictionary.getDictionaries,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useGetDictionariesKeys = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionariesKeys>\n) =>\n useAppAsync(\n 'getDictionariesKeys',\n useIntlayerAuth().dictionary.getDictionariesKeys,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useGetDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionary>\n) =>\n useAppAsync(\n 'getDictionary',\n useIntlayerAuth().dictionary.getDictionary,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\nexport const useAddDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.addDictionary>\n) =>\n useAppAsync('addDictionary', useIntlayerAuth().dictionary.addDictionary, {\n invalidateQueries: ['getDictionaries', 'getDictionariesKeys'],\n ...args,\n });\n\nexport const usePushDictionaries = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.pushDictionaries>\n) =>\n useAppAsync(\n 'pushDictionaries',\n useIntlayerAuth().dictionary.pushDictionaries,\n {\n invalidateQueries: ['getDictionaries', 'getDictionariesKeys'],\n ...args,\n }\n );\nexport const useUpdateDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.updateDictionary>\n) =>\n useAppAsync(\n 'updateDictionary',\n useIntlayerAuth().dictionary.updateDictionary,\n {\n invalidateQueries: ['getDictionaries'],\n ...args,\n }\n );\nexport const useDeleteDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.deleteDictionary>\n) =>\n useAppAsync(\n 'deleteDictionary',\n useIntlayerAuth().dictionary.deleteDictionary,\n {\n invalidateQueries: ['getDictionaries', 'getDictionariesKeys'],\n ...args,\n }\n );\n\n/**\n * Stripe\n */\n\nexport const useGetSubscription = (\n args?: UseAsyncOptions<typeof intlayerAPI.stripe.getSubscription>\n) =>\n useAppAsync(\n 'getSubscription',\n useIntlayerAuth().stripe.getSubscription,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\n\nexport const useCancelSubscription = (\n args?: UseAsyncOptions<typeof intlayerAPI.stripe.cancelSubscription>\n) =>\n useAppAsync(\n 'cancelSubscription',\n useIntlayerAuth().stripe.cancelSubscription,\n { invalidateQueries: ['getSession'], ...args },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\n\n/**\n * AI\n */\n\nexport const useAuditFile = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditFile>\n) =>\n useAppAsync('auditFile', useIntlayerAuth().ai.auditFile, args, {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n });\n"],"names":["useToast","error","useAuth","useAsync","useIntlayerAuth"],"mappings":";;;;;;;;;AAAA,MAAe,UAAA,CAAA;ACaf,MAAM,mBAAmB,CAAiC,YAAkB;AACpE,QAAA,EAAE,MAAM,IAAIA,qCAAS;AAEpB,SAAA;AAAA,IACL,GAAG;AAAA,IACH,SAAS,CAAC,iBAAiB;AACrB,UAAA;AAGA,UAAA;AACM,gBAAA,KAAK,MAAM,YAAY;AAAA,eACxB,GAAG;AACV,gBAAQ,MAAM,CAAC;AAGP,gBAAA;AAAA,MAAA;AAKV,OAAC,KAAK,EACH,QAAQ,CAACC,WAAUA,MAAK,EACxB;AAAA,QAAQ,CAACA,WACR,MAA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;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,WAAW;AAAA,EAC7B;AAAA,IACE,mBAAmB,CAAC,mBAAmB,qBAAqB;AAAA,IAC5D,GAAG;AAAA,EAAA;AAEP;AAMW,MAAA,qBAAqB,CAChC,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,OAAO;AAAA,EACzB;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,qBAAqB;AAAA,EAAA;AAEzB;AAEW,MAAA,wBAAwB,CACnC,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,OAAO;AAAA,EACzB,EAAE,mBAAmB,CAAC,YAAY,GAAG,GAAG,KAAK;AAAA,EAC7C;AAAA,IACE,aAAa;AAAA,IACb,qBAAqB;AAAA,EAAA;AAEzB;AAMW,MAAA,eAAe,CAC1B,SAEA,YAAY,aAAaA,qBAAAA,kBAAkB,GAAG,WAAW,MAAM;AAAA,EAC7D,aAAa;AAAA,EACb,qBAAqB;AAAA,EACrB,gBAAgB;AAClB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"intlayerAPIHooks.cjs","sources":["../../__vite-browser-external","../../src/hooks/intlayerAPIHooks.ts"],"sourcesContent":["export default {}","/* eslint-disable @typescript-eslint/no-explicit-any */\n'use client';\n\nimport process from 'process';\nimport { intlayerAPI } from 'src/libs';\nimport { useAuth } from '../components/Auth/useAuth/index';\nimport { useToast } from '../components/Toaster';\nimport { useAsync, UseAsyncOptions } from './useAsync/useAsync';\nimport { useIntlayerAuth } from './useIntlayerAPI';\n\n/**\n * Hook to handle error logging and toast notifications\n */\nconst useErrorHandling = <T extends UseAsyncOptions<any>>(options: T): T => {\n const { toast } = useToast();\n\n return {\n ...options,\n onError: (errorMessage) => {\n let error;\n\n // If json is valid, parse it\n try {\n error = JSON.parse(errorMessage);\n } catch (e) {\n console.error(e);\n // If json is not valid, set error to the original errorMessage\n\n error = errorMessage;\n }\n\n // render toast for each error if there is more than one\n // otherwise render the toast with the error message\n [error]\n .flatMap((error) => error)\n .forEach((error) =>\n toast({\n title:\n (process.env.NODE_ENV === 'production'\n ? error.title\n : error.code) ?? 'Error',\n description: error.message ?? errorMessage ?? 'An error occurred',\n variant: 'error',\n })\n );\n options.onError?.(errorMessage);\n },\n onSuccess: (data) => {\n if (data.message)\n toast({\n title: data.message,\n description: data.description,\n variant: 'success',\n });\n options.onSuccess?.(data);\n },\n };\n};\n\ntype AuthEnableOptions = {\n requireUser?: boolean;\n requireProject?: boolean;\n requireOrganization?: boolean;\n};\n\n/**\n * Hook to enable authentication\n */\nconst useAuthEnable = <T extends UseAsyncOptions<any>>(\n options: T,\n { requireUser, requireProject, requireOrganization }: AuthEnableOptions = {}\n): T => {\n const { csrfToken, oAuth2AccessToken, session } = useAuth();\n\n const isEnabledOption = options?.enable ?? true;\n const user = session ? session.user : oAuth2AccessToken?.user;\n\n const organization = session\n ? session.organization\n : oAuth2AccessToken?.organization;\n\n const project = session ? session.project : oAuth2AccessToken?.project;\n\n const isUserEnabled = requireUser ? Boolean(user) : true;\n\n const isProjectEnabled = requireProject ? Boolean(project) : true;\n\n const isOrganizationEnabled = requireOrganization\n ? Boolean(organization)\n : true;\n\n const isCSRFEnabled =\n Boolean(csrfToken) ||\n // If auth using session, csrf token is not required\n (!session && Boolean(oAuth2AccessToken));\n\n const isEnabled =\n isEnabledOption &&\n isUserEnabled &&\n isProjectEnabled &&\n isOrganizationEnabled &&\n isCSRFEnabled;\n\n return {\n ...options,\n enable: isEnabled,\n };\n};\n\nconst useAppAsync = <\n U extends string,\n T extends (...args: any[]) => Promise<any>,\n>(\n key: U,\n asyncFunction: T,\n options?: UseAsyncOptions<T>,\n authOptions?: AuthEnableOptions\n) => {\n // Enhance options using custom hooks\n const optionsWithAuth = useAuthEnable(options ?? {}, authOptions);\n\n const optionsWithErrorHandling = useErrorHandling(optionsWithAuth);\n\n // Call the main useAsync hook with enhanced options\n return useAsync(key, asyncFunction, optionsWithErrorHandling);\n};\n\n/**\n * Auth\n */\n\nexport const useLogin = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.login>\n) =>\n useAppAsync('login', useIntlayerAuth().auth.login, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useRegister = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.register>\n) =>\n useAppAsync('register', useIntlayerAuth().auth.register, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useLogout = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.logout>\n) =>\n useAppAsync('logout', useIntlayerAuth().auth.logout, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useChangePassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.changePassword>\n) => useAppAsync('changePassword', useIntlayerAuth().auth.changePassword, args);\nexport const useAskResetPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.askResetPassword>\n) =>\n useAppAsync(\n 'askResetPassword',\n useIntlayerAuth().auth.askResetPassword,\n args\n );\nexport const useResetPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.resetPassword>\n) => useAppAsync('resetPassword', useIntlayerAuth().auth.resetPassword, args);\nexport const useCheckIfUserHasPassword = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.checkIfUserHasPassword>\n) =>\n useAppAsync(\n 'checkIfUserHasPassword',\n useIntlayerAuth().auth.checkIfUserHasPassword,\n args,\n {\n requireUser: true,\n }\n );\nexport const useVerifyEmail = (\n args?: UseAsyncOptions<typeof intlayerAPI.auth.verifyEmail>\n) => useAppAsync('verifyEmail', useIntlayerAuth().auth.verifyEmail, args);\n\nexport const useGetUserByAccount = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.getUserByAccount>\n) =>\n useAppAsync(\n 'getUserByAccount',\n useIntlayerAuth().user.getUserByAccount,\n args\n );\n\n/**\n * User\n */\n\nexport const useGetUsers = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.getUsers>\n) =>\n useAppAsync(\n 'getUsers',\n useIntlayerAuth().user.getUsers,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n }\n );\nexport const useCreateUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.createUser>\n) =>\n useAppAsync('createUser', useIntlayerAuth().user.createUser, {\n invalidateQueries: ['getUsers'],\n ...args,\n });\nexport const useUpdateUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.updateUser>\n) =>\n useAppAsync('updateUser', useIntlayerAuth().user.updateUser, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useDeleteUser = (\n args?: UseAsyncOptions<typeof intlayerAPI.user.deleteUser>\n) =>\n useAppAsync('deleteUser', useIntlayerAuth().user.deleteUser, {\n invalidateQueries: ['getUsers'],\n ...args,\n });\n\n/**\n * Organization\n */\n\nexport const useGetOrganizations = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.getOrganizations>\n) =>\n useAppAsync(\n 'getOrganizations',\n useIntlayerAuth().organization.getOrganizations,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n }\n );\n\nexport const useAddOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganization>\n) =>\n useAppAsync(\n 'addOrganization',\n useIntlayerAuth().organization.addOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useUpdateOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.updateOrganization>\n) =>\n useAppAsync(\n 'updateOrganization',\n useIntlayerAuth().organization.updateOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useUpdateOrganizationMembers = (\n args?: UseAsyncOptions<\n typeof intlayerAPI.organization.updateOrganizationMembers\n >\n) =>\n useAppAsync(\n 'updateOrganizationMembers',\n useIntlayerAuth().organization.updateOrganizationMembers,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useAddOrganizationMember = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.addOrganizationMember>\n) =>\n useAppAsync(\n 'addOrganizationMember',\n useIntlayerAuth().organization.addOrganizationMember,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useDeleteOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.deleteOrganization>\n) =>\n useAppAsync(\n 'deleteOrganization',\n useIntlayerAuth().organization.deleteOrganization,\n {\n invalidateQueries: ['getOrganizations'],\n ...args,\n }\n );\nexport const useSelectOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.selectOrganization>\n) =>\n useAppAsync(\n 'selectOrganization',\n useIntlayerAuth().organization.selectOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useUnselectOrganization = (\n args?: UseAsyncOptions<typeof intlayerAPI.organization.unselectOrganization>\n) =>\n useAppAsync(\n 'unselectOrganization',\n useIntlayerAuth().organization.unselectOrganization,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\n\n/**\n * Project\n */\n\nexport const useGetProjects = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.getProjects>\n) =>\n useAppAsync(\n 'getProjects',\n useIntlayerAuth().project.getProjects,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\nexport const useAddProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.addProject>\n) =>\n useAppAsync('addProject', useIntlayerAuth().project.addProject, {\n invalidateQueries: ['getProjects'],\n ...args,\n });\nexport const useUpdateProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.updateProject>\n) =>\n useAppAsync('updateProject', useIntlayerAuth().project.updateProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useUpdateProjectMembers = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.updateProjectMembers>\n) =>\n useAppAsync(\n 'updateProjectMembers',\n useIntlayerAuth().project.updateProjectMembers,\n {\n invalidateQueries: ['getSession'],\n ...args,\n }\n );\nexport const useDeleteProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.deleteProject>\n) =>\n useAppAsync('deleteProject', useIntlayerAuth().project.deleteProject, {\n invalidateQueries: ['getProjects'],\n ...args,\n });\nexport const useSelectProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.selectProject>\n) =>\n useAppAsync('selectProject', useIntlayerAuth().project.selectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useUnselectProject = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.unselectProject>\n) =>\n useAppAsync('unselectProject', useIntlayerAuth().project.unselectProject, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useAddNewAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.addNewAccessKey>\n) =>\n useAppAsync('addNewAccessKey', useIntlayerAuth().project.addNewAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useDeleteAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.deleteAccessKey>\n) =>\n useAppAsync('deleteAccessKey', useIntlayerAuth().project.deleteAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\nexport const useRefreshAccessKey = (\n args?: UseAsyncOptions<typeof intlayerAPI.project.refreshAccessKey>\n) =>\n useAppAsync('refreshAccessKey', useIntlayerAuth().project.refreshAccessKey, {\n invalidateQueries: ['getSession'],\n ...args,\n });\n\n/**\n * Dictionary\n */\n\nexport const useGetDictionaries = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionaries>\n) =>\n useAppAsync(\n 'getDictionaries',\n useIntlayerAuth().dictionary.getDictionaries,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useGetDictionariesKeys = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionariesKeys>\n) =>\n useAppAsync(\n 'getDictionariesKeys',\n useIntlayerAuth().dictionary.getDictionariesKeys,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useGetDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionary>\n) =>\n useAppAsync(\n 'getDictionary',\n useIntlayerAuth().dictionary.getDictionary,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\nexport const useAddDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.addDictionary>\n) =>\n useAppAsync('addDictionary', useIntlayerAuth().dictionary.addDictionary, {\n invalidateQueries: ['getDictionaries', 'getDictionariesKeys'],\n ...args,\n });\n\nexport const usePushDictionaries = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.pushDictionaries>\n) =>\n useAppAsync(\n 'pushDictionaries',\n useIntlayerAuth().dictionary.pushDictionaries,\n {\n invalidateQueries: [\n 'getDictionaries',\n 'getDictionary',\n 'getDictionariesKeys',\n ],\n ...args,\n }\n );\nexport const useUpdateDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.updateDictionary>\n) =>\n useAppAsync(\n 'updateDictionary',\n useIntlayerAuth().dictionary.updateDictionary,\n {\n invalidateQueries: ['getDictionaries', 'getDictionary'],\n ...args,\n }\n );\nexport const useDeleteDictionary = (\n args?: UseAsyncOptions<typeof intlayerAPI.dictionary.deleteDictionary>\n) =>\n useAppAsync(\n 'deleteDictionary',\n useIntlayerAuth().dictionary.deleteDictionary,\n {\n invalidateQueries: [\n 'getDictionaries',\n 'getDictionary',\n 'getDictionariesKeys',\n ],\n ...args,\n }\n );\n\n/**\n * Tag\n */\n\nexport const useGetTags = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.getTags>\n) =>\n useAppAsync(\n 'getTags',\n useIntlayerAuth().tag.getTags,\n {\n cache: true,\n store: true,\n retryLimit: 3,\n autoFetch: true,\n revalidation: true,\n revalidateTime: 5 * 60 * 1000, // 5 minutes\n ...args,\n },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\nexport const useAddTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.addTag>\n) =>\n useAppAsync('addTag', useIntlayerAuth().tag.addTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\nexport const useUpdateTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.updateTag>\n) =>\n useAppAsync('updateTag', useIntlayerAuth().tag.updateTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\nexport const useDeleteTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.tag.deleteTag>\n) =>\n useAppAsync('deleteTag', useIntlayerAuth().tag.deleteTag, {\n invalidateQueries: ['getTags'],\n ...args,\n });\n\n/**\n * Stripe\n */\n\nexport const useGetSubscription = (\n args?: UseAsyncOptions<typeof intlayerAPI.stripe.getSubscription>\n) =>\n useAppAsync(\n 'getSubscription',\n useIntlayerAuth().stripe.getSubscription,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\n\nexport const useCancelSubscription = (\n args?: UseAsyncOptions<typeof intlayerAPI.stripe.cancelSubscription>\n) =>\n useAppAsync(\n 'cancelSubscription',\n useIntlayerAuth().stripe.cancelSubscription,\n { invalidateQueries: ['getSession'], ...args },\n {\n requireUser: true,\n requireOrganization: true,\n }\n );\n\n/**\n * AI\n */\n\nexport const useAuditContentDeclaration = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclaration>\n) =>\n useAppAsync(\n 'auditContentDeclaration',\n useIntlayerAuth().ai.auditContentDeclaration,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useAuditContentDeclarationMetadata = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationMetadata>\n) =>\n useAppAsync(\n 'auditContentDeclaration',\n useIntlayerAuth().ai.auditContentDeclarationMetadata,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useAuditContentDeclarationField = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationField>\n) =>\n useAppAsync(\n 'auditContentDeclarationField',\n useIntlayerAuth().ai.auditContentDeclarationField,\n args,\n {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n }\n );\n\nexport const useAuditTag = (\n args?: UseAsyncOptions<typeof intlayerAPI.ai.auditTag>\n) =>\n useAppAsync('auditTag', useIntlayerAuth().ai.auditTag, args, {\n requireUser: true,\n requireOrganization: true,\n requireProject: true,\n });\n"],"names":["useToast","error","useAuth","useAsync","useIntlayerAuth"],"mappings":";;;;;;;;;AAAA,MAAe,UAAA,CAAA;ACaf,MAAM,mBAAmB,CAAiC,YAAkB;AACpE,QAAA,EAAE,MAAM,IAAIA,qCAAS;AAEpB,SAAA;AAAA,IACL,GAAG;AAAA,IACH,SAAS,CAAC,iBAAiB;AACrB,UAAA;AAGA,UAAA;AACM,gBAAA,KAAK,MAAM,YAAY;AAAA,eACxB,GAAG;AACV,gBAAQ,MAAM,CAAC;AAGP,gBAAA;AAAA,MAAA;AAKV,OAAC,KAAK,EACH,QAAQ,CAACC,WAAUA,MAAK,EACxB;AAAA,QAAQ,CAACA,WACR,MAAM;AAAA,UACJ,QACG,QAAQ,IAAI,aAAa,eACtBA,OAAM,QACNA,OAAM,SAAS;AAAA,UACrB,aAAaA,OAAM,WAAW,gBAAgB;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,GAAG;AAAA,EACrB;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,EAAA;AAEpB;AAEW,MAAA,qCAAqC,CAChD,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,GAAG;AAAA,EACrB;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,EAAA;AAEpB;AAEW,MAAA,kCAAkC,CAC7C,SAEA;AAAA,EACE;AAAA,EACAA,qBAAA,gBAAA,EAAkB,GAAG;AAAA,EACrB;AAAA,EACA;AAAA,IACE,aAAa;AAAA,IACb,qBAAqB;AAAA,IACrB,gBAAgB;AAAA,EAAA;AAEpB;AAEW,MAAA,cAAc,CACzB,SAEA,YAAY,YAAYA,qBAAAA,kBAAkB,GAAG,UAAU,MAAM;AAAA,EAC3D,aAAa;AAAA,EACb,qBAAqB;AAAA,EACrB,gBAAgB;AAClB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -51,8 +51,15 @@ export declare const useGetDictionariesKeys: (args?: UseAsyncOptions<typeof intl
51
51
  export declare const useGetDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.getDictionary>) => import('./useAsync').UseAsyncResult<"getDictionary", (dictionaryKey: import('@intlayer/backend').GetDictionaryParams["dictionaryKey"], version?: import('@intlayer/backend').GetDictionaryQuery["version"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetDictionaryResult>>;
52
52
  export declare const useAddDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.addDictionary>) => import('./useAsync').UseAsyncResult<"addDictionary", (dictionary: import('@intlayer/backend').AddDictionaryBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddDictionaryResult>>;
53
53
  export declare const usePushDictionaries: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.pushDictionaries>) => import('./useAsync').UseAsyncResult<"pushDictionaries", (dictionaries: import('@intlayer/backend').PushDictionariesBody["dictionaries"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').PushDictionariesResult>>;
54
- export declare const useUpdateDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.updateDictionary>) => import('./useAsync').UseAsyncResult<"updateDictionary", (dictionary: import('@intlayer/backend').UpdateDictionaryBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateDictionaryResult>>;
54
+ export declare const useUpdateDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.updateDictionary>) => import('./useAsync').UseAsyncResult<"updateDictionary", (dictionaryId: import('@intlayer/backend').UpdateDictionaryParam["dictionaryId"], dictionary: import('@intlayer/backend').UpdateDictionaryBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateDictionaryResult>>;
55
55
  export declare const useDeleteDictionary: (args?: UseAsyncOptions<typeof intlayerAPI.dictionary.deleteDictionary>) => import('./useAsync').UseAsyncResult<"deleteDictionary", (id: import('@intlayer/backend').DeleteDictionaryParam["dictionaryId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').DeleteDictionaryResult>>;
56
+ /**
57
+ * Tag
58
+ */
59
+ export declare const useGetTags: (args?: UseAsyncOptions<typeof intlayerAPI.tag.getTags>) => import('./useAsync').UseAsyncResult<"getTags", (filters?: import('@intlayer/backend').GetTagsParams, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').GetTagsResult>>;
60
+ export declare const useAddTag: (args?: UseAsyncOptions<typeof intlayerAPI.tag.addTag>) => import('./useAsync').UseAsyncResult<"addTag", (tag: import('@intlayer/backend').AddTagBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AddTagResult>>;
61
+ export declare const useUpdateTag: (args?: UseAsyncOptions<typeof intlayerAPI.tag.updateTag>) => import('./useAsync').UseAsyncResult<"updateTag", (tagId: import('@intlayer/backend').UpdateTagParams["tagId"], tag: import('@intlayer/backend').UpdateTagBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').UpdateTagResult>>;
62
+ export declare const useDeleteTag: (args?: UseAsyncOptions<typeof intlayerAPI.tag.deleteTag>) => import('./useAsync').UseAsyncResult<"deleteTag", (tagId: import('@intlayer/backend').DeleteTagParams["tagId"], otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').DeleteTagResult>>;
56
63
  /**
57
64
  * Stripe
58
65
  */
@@ -61,5 +68,8 @@ export declare const useCancelSubscription: (args?: UseAsyncOptions<typeof intla
61
68
  /**
62
69
  * AI
63
70
  */
64
- export declare const useAuditFile: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditFile>) => import('./useAsync').UseAsyncResult<"auditFile", (body?: import('@intlayer/backend').AuditFileBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AuditFileResult>>;
71
+ export declare const useAuditContentDeclaration: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclaration>) => import('./useAsync').UseAsyncResult<"auditContentDeclaration", (body?: import('@intlayer/backend').AuditContentDeclarationBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AuditContentDeclarationResult>>;
72
+ export declare const useAuditContentDeclarationMetadata: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationMetadata>) => import('./useAsync').UseAsyncResult<"auditContentDeclaration", (body?: import('@intlayer/backend').AuditContentDeclarationMetadataBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AuditContentDeclarationMetadataResult>>;
73
+ export declare const useAuditContentDeclarationField: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditContentDeclarationField>) => import('./useAsync').UseAsyncResult<"auditContentDeclarationField", (body?: import('@intlayer/backend').AuditContentDeclarationFieldBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AuditContentDeclarationFieldResult>>;
74
+ export declare const useAuditTag: (args?: UseAsyncOptions<typeof intlayerAPI.ai.auditTag>) => import('./useAsync').UseAsyncResult<"auditTag", (body?: import('@intlayer/backend').AuditTagBody, otherOptions?: import('../libs/intlayer-api/fetcher').FetcherOptions) => Promise<import('@intlayer/backend').AuditTagResult>>;
65
75
  //# sourceMappingURL=intlayerAPIHooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"intlayerAPIHooks.d.ts","sourceRoot":"","sources":["../../src/hooks/intlayerAPIHooks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,EAAY,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAwHhE;;GAEG;AAEH,eAAO,MAAM,QAAQ,UACZ,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,0NAKnD,CAAC;AACL,eAAO,MAAM,WAAW,UACf,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,sRAKtD,CAAC;AACL,eAAO,MAAM,SAAS,UACb,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,2IAKpD,CAAC;AACL,eAAO,MAAM,iBAAiB,UACrB,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC,qPACe,CAAC;AAChF,eAAO,MAAM,mBAAmB,UACvB,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,qQAM/D,CAAC;AACJ,eAAO,MAAM,gBAAgB,UACpB,eAAe,CAAC,OAAO,WAAW,CAAC,IAAI,CAAC,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AO,MAAM,+BAA+B,UACnC,eAAe,CAAC,OAAO,WAAW,CAAC,EAAE,CAAC,4BAA4B,CAAC,gSAWzE,CAAC;AAEJ,eAAO,MAAM,WAAW,UACf,eAAe,CAAC,OAAO,WAAW,CAAC,EAAE,CAAC,QAAQ,CAAC,oOAMpD,CAAC"}
@@ -316,7 +316,11 @@ const usePushDictionaries = (args) => useAppAsync(
316
316
  "pushDictionaries",
317
317
  useIntlayerAuth().dictionary.pushDictionaries,
318
318
  {
319
- invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
319
+ invalidateQueries: [
320
+ "getDictionaries",
321
+ "getDictionary",
322
+ "getDictionariesKeys"
323
+ ],
320
324
  ...args
321
325
  }
322
326
  );
@@ -324,7 +328,7 @@ const useUpdateDictionary = (args) => useAppAsync(
324
328
  "updateDictionary",
325
329
  useIntlayerAuth().dictionary.updateDictionary,
326
330
  {
327
- invalidateQueries: ["getDictionaries"],
331
+ invalidateQueries: ["getDictionaries", "getDictionary"],
328
332
  ...args
329
333
  }
330
334
  );
@@ -332,10 +336,44 @@ const useDeleteDictionary = (args) => useAppAsync(
332
336
  "deleteDictionary",
333
337
  useIntlayerAuth().dictionary.deleteDictionary,
334
338
  {
335
- invalidateQueries: ["getDictionaries", "getDictionariesKeys"],
339
+ invalidateQueries: [
340
+ "getDictionaries",
341
+ "getDictionary",
342
+ "getDictionariesKeys"
343
+ ],
336
344
  ...args
337
345
  }
338
346
  );
347
+ const useGetTags = (args) => useAppAsync(
348
+ "getTags",
349
+ useIntlayerAuth().tag.getTags,
350
+ {
351
+ cache: true,
352
+ store: true,
353
+ retryLimit: 3,
354
+ autoFetch: true,
355
+ revalidation: true,
356
+ revalidateTime: 5 * 60 * 1e3,
357
+ // 5 minutes
358
+ ...args
359
+ },
360
+ {
361
+ requireUser: true,
362
+ requireOrganization: true
363
+ }
364
+ );
365
+ const useAddTag = (args) => useAppAsync("addTag", useIntlayerAuth().tag.addTag, {
366
+ invalidateQueries: ["getTags"],
367
+ ...args
368
+ });
369
+ const useUpdateTag = (args) => useAppAsync("updateTag", useIntlayerAuth().tag.updateTag, {
370
+ invalidateQueries: ["getTags"],
371
+ ...args
372
+ });
373
+ const useDeleteTag = (args) => useAppAsync("deleteTag", useIntlayerAuth().tag.deleteTag, {
374
+ invalidateQueries: ["getTags"],
375
+ ...args
376
+ });
339
377
  const useGetSubscription = (args) => useAppAsync(
340
378
  "getSubscription",
341
379
  useIntlayerAuth().stripe.getSubscription,
@@ -354,7 +392,37 @@ const useCancelSubscription = (args) => useAppAsync(
354
392
  requireOrganization: true
355
393
  }
356
394
  );
357
- const useAuditFile = (args) => useAppAsync("auditFile", useIntlayerAuth().ai.auditFile, args, {
395
+ const useAuditContentDeclaration = (args) => useAppAsync(
396
+ "auditContentDeclaration",
397
+ useIntlayerAuth().ai.auditContentDeclaration,
398
+ args,
399
+ {
400
+ requireUser: true,
401
+ requireOrganization: true,
402
+ requireProject: true
403
+ }
404
+ );
405
+ const useAuditContentDeclarationMetadata = (args) => useAppAsync(
406
+ "auditContentDeclaration",
407
+ useIntlayerAuth().ai.auditContentDeclarationMetadata,
408
+ args,
409
+ {
410
+ requireUser: true,
411
+ requireOrganization: true,
412
+ requireProject: true
413
+ }
414
+ );
415
+ const useAuditContentDeclarationField = (args) => useAppAsync(
416
+ "auditContentDeclarationField",
417
+ useIntlayerAuth().ai.auditContentDeclarationField,
418
+ args,
419
+ {
420
+ requireUser: true,
421
+ requireOrganization: true,
422
+ requireProject: true
423
+ }
424
+ );
425
+ const useAuditTag = (args) => useAppAsync("auditTag", useIntlayerAuth().ai.auditTag, args, {
358
426
  requireUser: true,
359
427
  requireOrganization: true,
360
428
  requireProject: true
@@ -365,8 +433,12 @@ export {
365
433
  useAddOrganization,
366
434
  useAddOrganizationMember,
367
435
  useAddProject,
436
+ useAddTag,
368
437
  useAskResetPassword,
369
- useAuditFile,
438
+ useAuditContentDeclaration,
439
+ useAuditContentDeclarationField,
440
+ useAuditContentDeclarationMetadata,
441
+ useAuditTag,
370
442
  useCancelSubscription,
371
443
  useChangePassword,
372
444
  useCheckIfUserHasPassword,
@@ -375,6 +447,7 @@ export {
375
447
  useDeleteDictionary,
376
448
  useDeleteOrganization,
377
449
  useDeleteProject,
450
+ useDeleteTag,
378
451
  useDeleteUser,
379
452
  useGetDictionaries,
380
453
  useGetDictionariesKeys,
@@ -382,6 +455,7 @@ export {
382
455
  useGetOrganizations,
383
456
  useGetProjects,
384
457
  useGetSubscription,
458
+ useGetTags,
385
459
  useGetUserByAccount,
386
460
  useGetUsers,
387
461
  useLogin,
@@ -399,6 +473,7 @@ export {
399
473
  useUpdateOrganizationMembers,
400
474
  useUpdateProject,
401
475
  useUpdateProjectMembers,
476
+ useUpdateTag,
402
477
  useUpdateUser,
403
478
  useVerifyEmail
404
479
  };