@intlayer/design-system 8.11.0-canary.0 → 8.11.1

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 (198) hide show
  1. package/dist/esm/api/hooks/ai.mjs +66 -0
  2. package/dist/esm/api/hooks/ai.mjs.map +1 -0
  3. package/dist/esm/api/hooks/audit.mjs +34 -0
  4. package/dist/esm/api/hooks/audit.mjs.map +1 -0
  5. package/dist/esm/api/hooks/auth.mjs +217 -0
  6. package/dist/esm/api/hooks/auth.mjs.map +1 -0
  7. package/dist/esm/api/hooks/bitbucket.mjs +39 -0
  8. package/dist/esm/api/hooks/bitbucket.mjs.map +1 -0
  9. package/dist/esm/api/hooks/dictionary.mjs +105 -0
  10. package/dist/esm/api/hooks/dictionary.mjs.map +1 -0
  11. package/dist/esm/api/hooks/discussions.mjs +37 -0
  12. package/dist/esm/api/hooks/discussions.mjs.map +1 -0
  13. package/dist/esm/api/hooks/editor.mjs +24 -0
  14. package/dist/esm/api/hooks/editor.mjs.map +1 -0
  15. package/dist/esm/api/hooks/github.mjs +54 -0
  16. package/dist/esm/api/hooks/github.mjs.map +1 -0
  17. package/dist/esm/api/hooks/gitlab.mjs +43 -0
  18. package/dist/esm/api/hooks/gitlab.mjs.map +1 -0
  19. package/dist/esm/api/hooks/newsletter.mjs +31 -0
  20. package/dist/esm/api/hooks/newsletter.mjs.map +1 -0
  21. package/dist/esm/api/hooks/organization.mjs +123 -0
  22. package/dist/esm/api/hooks/organization.mjs.map +1 -0
  23. package/dist/esm/api/hooks/project.mjs +187 -0
  24. package/dist/esm/api/hooks/project.mjs.map +1 -0
  25. package/dist/esm/api/hooks/reviewer.mjs +288 -0
  26. package/dist/esm/api/hooks/reviewer.mjs.map +1 -0
  27. package/dist/esm/api/hooks/search.mjs +18 -0
  28. package/dist/esm/api/hooks/search.mjs.map +1 -0
  29. package/dist/esm/api/hooks/showcaseProject.mjs +95 -0
  30. package/dist/esm/api/hooks/showcaseProject.mjs.map +1 -0
  31. package/dist/esm/api/hooks/stripe.mjs +261 -0
  32. package/dist/esm/api/hooks/stripe.mjs.map +1 -0
  33. package/dist/esm/api/hooks/tag.mjs +45 -0
  34. package/dist/esm/api/hooks/tag.mjs.map +1 -0
  35. package/dist/esm/api/hooks/translate.mjs +47 -0
  36. package/dist/esm/api/hooks/translate.mjs.map +1 -0
  37. package/dist/esm/api/hooks/user.mjs +58 -0
  38. package/dist/esm/api/hooks/user.mjs.map +1 -0
  39. package/dist/esm/api/hooks/utils.mjs +30 -0
  40. package/dist/esm/api/hooks/utils.mjs.map +1 -0
  41. package/dist/esm/api/index.mjs +26 -0
  42. package/dist/esm/{hooks → api}/useAuth/useAuth.mjs +1 -1
  43. package/dist/esm/api/useAuth/useAuth.mjs.map +1 -0
  44. package/dist/esm/{hooks → api}/useAuth/useOAuth2.mjs +1 -1
  45. package/dist/esm/api/useAuth/useOAuth2.mjs.map +1 -0
  46. package/dist/esm/{hooks → api}/useAuth/useSession.mjs +2 -3
  47. package/dist/esm/api/useAuth/useSession.mjs.map +1 -0
  48. package/dist/esm/api/useIntlayerAPI.mjs +123 -0
  49. package/dist/esm/api/useIntlayerAPI.mjs.map +1 -0
  50. package/dist/esm/{hooks → api}/useUser/index.mjs +2 -2
  51. package/dist/esm/api/useUser/index.mjs.map +1 -0
  52. package/dist/esm/components/Badge/index.mjs +1 -3
  53. package/dist/esm/components/Badge/index.mjs.map +1 -1
  54. package/dist/esm/components/Breadcrumb/index.mjs +0 -1
  55. package/dist/esm/components/Breadcrumb/index.mjs.map +1 -1
  56. package/dist/esm/components/Button/Button.mjs +2 -4
  57. package/dist/esm/components/Button/Button.mjs.map +1 -1
  58. package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
  59. package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -1
  60. package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +2 -2
  61. package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
  62. package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +3 -2
  63. package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  64. package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +5 -3
  65. package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  66. package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +1 -1
  67. package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
  68. package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +4 -3
  69. package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  70. package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +1 -1
  71. package/dist/esm/components/Form/elements/OTPElement.mjs +1 -1
  72. package/dist/esm/components/Input/Checkbox.mjs +0 -2
  73. package/dist/esm/components/Input/Checkbox.mjs.map +1 -1
  74. package/dist/esm/components/Label/index.mjs +2 -2
  75. package/dist/esm/components/Label/index.mjs.map +1 -1
  76. package/dist/esm/components/LanguageBackground/LanguageSection.mjs +8 -6
  77. package/dist/esm/components/LanguageBackground/LanguageSection.mjs.map +1 -1
  78. package/dist/esm/components/LanguageBackground/index.mjs +7 -5
  79. package/dist/esm/components/LanguageBackground/index.mjs.map +1 -1
  80. package/dist/esm/components/Link/Link.mjs +0 -7
  81. package/dist/esm/components/Link/Link.mjs.map +1 -1
  82. package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
  83. package/dist/esm/components/Modal/Modal.mjs +2 -2
  84. package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
  85. package/dist/esm/components/Pagination/Pagination.mjs +2 -3
  86. package/dist/esm/components/Pagination/Pagination.mjs.map +1 -1
  87. package/dist/esm/components/RightDrawer/RightDrawer.mjs +3 -3
  88. package/dist/esm/components/SwitchSelector/SwitchSelector.mjs +3 -5
  89. package/dist/esm/components/SwitchSelector/SwitchSelector.mjs.map +1 -1
  90. package/dist/esm/components/SwitchSelector/VerticalSwitchSelector.mjs +3 -3
  91. package/dist/esm/components/SwitchSelector/VerticalSwitchSelector.mjs.map +1 -1
  92. package/dist/esm/components/Tab/Tab.mjs +1 -1
  93. package/dist/esm/components/TabSelector/TabSelector.mjs +3 -3
  94. package/dist/esm/components/TabSelector/TabSelector.mjs.map +1 -1
  95. package/dist/esm/components/Toaster/Toast.mjs +3 -3
  96. package/dist/esm/components/Toaster/Toast.mjs.map +1 -1
  97. package/dist/esm/hooks/index.mjs +9 -15
  98. package/dist/esm/routes.mjs +4 -1
  99. package/dist/esm/routes.mjs.map +1 -1
  100. package/dist/types/api/hooks/ai.d.ts +12 -0
  101. package/dist/types/api/hooks/ai.d.ts.map +1 -0
  102. package/dist/types/api/hooks/audit.d.ts +10 -0
  103. package/dist/types/api/hooks/audit.d.ts.map +1 -0
  104. package/dist/types/api/hooks/auth.d.ts +29 -0
  105. package/dist/types/api/hooks/auth.d.ts.map +1 -0
  106. package/dist/types/api/hooks/bitbucket.d.ts +8 -0
  107. package/dist/types/api/hooks/bitbucket.d.ts.map +1 -0
  108. package/dist/types/api/hooks/dictionary.d.ts +15 -0
  109. package/dist/types/api/hooks/dictionary.d.ts.map +1 -0
  110. package/dist/types/api/hooks/discussions.d.ts +8 -0
  111. package/dist/types/api/hooks/discussions.d.ts.map +1 -0
  112. package/dist/types/api/hooks/editor.d.ts +6 -0
  113. package/dist/types/api/hooks/editor.d.ts.map +1 -0
  114. package/dist/types/api/hooks/github.d.ts +12 -0
  115. package/dist/types/api/hooks/github.d.ts.map +1 -0
  116. package/dist/types/api/hooks/gitlab.d.ts +8 -0
  117. package/dist/types/api/hooks/gitlab.d.ts.map +1 -0
  118. package/dist/types/api/hooks/newsletter.d.ts +7 -0
  119. package/dist/types/api/hooks/newsletter.d.ts.map +1 -0
  120. package/dist/types/api/hooks/organization.d.ts +16 -0
  121. package/dist/types/api/hooks/organization.d.ts.map +1 -0
  122. package/dist/types/api/hooks/project.d.ts +23 -0
  123. package/dist/types/api/hooks/project.d.ts.map +1 -0
  124. package/dist/types/api/hooks/reviewer.d.ts +39 -0
  125. package/dist/types/api/hooks/reviewer.d.ts.map +1 -0
  126. package/dist/types/api/hooks/search.d.ts +7 -0
  127. package/dist/types/api/hooks/search.d.ts.map +1 -0
  128. package/dist/types/api/hooks/showcaseProject.d.ts +16 -0
  129. package/dist/types/api/hooks/showcaseProject.d.ts.map +1 -0
  130. package/dist/types/api/hooks/stripe.d.ts +33 -0
  131. package/dist/types/api/hooks/stripe.d.ts.map +1 -0
  132. package/dist/types/api/hooks/tag.d.ts +11 -0
  133. package/dist/types/api/hooks/tag.d.ts.map +1 -0
  134. package/dist/types/api/hooks/translate.d.ts +8 -0
  135. package/dist/types/api/hooks/translate.d.ts.map +1 -0
  136. package/dist/types/api/hooks/user.d.ts +13 -0
  137. package/dist/types/api/hooks/user.d.ts.map +1 -0
  138. package/dist/types/api/hooks/utils.d.ts +23 -0
  139. package/dist/types/api/hooks/utils.d.ts.map +1 -0
  140. package/dist/types/api/index.d.ts +25 -0
  141. package/dist/types/{hooks → api}/useAuth/useAuth.d.ts +1 -1
  142. package/dist/types/api/useAuth/useAuth.d.ts.map +1 -0
  143. package/dist/types/{hooks → api}/useAuth/useOAuth2.d.ts +1 -1
  144. package/dist/types/api/useAuth/useOAuth2.d.ts.map +1 -0
  145. package/dist/types/{hooks → api}/useAuth/useSession.d.ts +1 -1
  146. package/dist/types/api/useAuth/useSession.d.ts.map +1 -0
  147. package/dist/types/api/useIntlayerAPI.d.ts +297 -0
  148. package/dist/types/api/useIntlayerAPI.d.ts.map +1 -0
  149. package/dist/types/{hooks → api}/useUser/index.d.ts +1 -1
  150. package/dist/types/api/useUser/index.d.ts.map +1 -0
  151. package/dist/types/components/Badge/index.d.ts +3 -4
  152. package/dist/types/components/Badge/index.d.ts.map +1 -1
  153. package/dist/types/components/Breadcrumb/index.d.ts.map +1 -1
  154. package/dist/types/components/Button/Button.d.ts +5 -6
  155. package/dist/types/components/Button/Button.d.ts.map +1 -1
  156. package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +2 -2
  157. package/dist/types/components/Command/index.d.ts +2 -2
  158. package/dist/types/components/Container/index.d.ts +6 -6
  159. package/dist/types/components/Input/Checkbox.d.ts +2 -3
  160. package/dist/types/components/Input/Checkbox.d.ts.map +1 -1
  161. package/dist/types/components/Input/Input.d.ts +1 -1
  162. package/dist/types/components/LanguageBackground/index.d.ts.map +1 -1
  163. package/dist/types/components/Link/Link.d.ts +3 -4
  164. package/dist/types/components/Link/Link.d.ts.map +1 -1
  165. package/dist/types/components/Pagination/Pagination.d.ts +1 -1
  166. package/dist/types/components/Pagination/Pagination.d.ts.map +1 -1
  167. package/dist/types/components/SwitchSelector/SwitchSelector.d.ts +2 -3
  168. package/dist/types/components/SwitchSelector/SwitchSelector.d.ts.map +1 -1
  169. package/dist/types/components/SwitchSelector/VerticalSwitchSelector.d.ts +1 -1
  170. package/dist/types/components/SwitchSelector/VerticalSwitchSelector.d.ts.map +1 -1
  171. package/dist/types/components/TabSelector/TabSelector.d.ts +2 -2
  172. package/dist/types/components/TabSelector/TabSelector.d.ts.map +1 -1
  173. package/dist/types/components/Tag/index.d.ts +2 -2
  174. package/dist/types/components/Toaster/Toast.d.ts +1 -1
  175. package/dist/types/hooks/index.d.ts +1 -7
  176. package/dist/types/providers/ReactQueryProvider.d.ts +1 -1
  177. package/dist/types/routes.d.ts +4 -1
  178. package/dist/types/routes.d.ts.map +1 -1
  179. package/package.json +28 -23
  180. package/tailwind.css +3 -24
  181. package/dist/esm/hooks/reactQuery.mjs +0 -1586
  182. package/dist/esm/hooks/reactQuery.mjs.map +0 -1
  183. package/dist/esm/hooks/useAuth/useAuth.mjs.map +0 -1
  184. package/dist/esm/hooks/useAuth/useOAuth2.mjs.map +0 -1
  185. package/dist/esm/hooks/useAuth/useSession.mjs.map +0 -1
  186. package/dist/esm/hooks/useIntlayerAPI.mjs +0 -22
  187. package/dist/esm/hooks/useIntlayerAPI.mjs.map +0 -1
  188. package/dist/esm/hooks/useUser/index.mjs.map +0 -1
  189. package/dist/types/hooks/reactQuery.d.ts +0 -236
  190. package/dist/types/hooks/reactQuery.d.ts.map +0 -1
  191. package/dist/types/hooks/useAuth/useAuth.d.ts.map +0 -1
  192. package/dist/types/hooks/useAuth/useOAuth2.d.ts.map +0 -1
  193. package/dist/types/hooks/useAuth/useSession.d.ts.map +0 -1
  194. package/dist/types/hooks/useIntlayerAPI.d.ts +0 -14
  195. package/dist/types/hooks/useIntlayerAPI.d.ts.map +0 -1
  196. package/dist/types/hooks/useUser/index.d.ts.map +0 -1
  197. /package/dist/esm/{hooks → api}/useAuth/index.mjs +0 -0
  198. /package/dist/types/{hooks → api}/useAuth/index.d.ts +0 -0
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from "@tanstack/react-query";
2
+ import { GetProjectsParams } from "@intlayer/backend";
3
+
4
+ //#region src/api/hooks/project.d.ts
5
+ declare const useGetProjects: (filters?: GetProjectsParams, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
6
+ declare const useAddProject: () => any;
7
+ declare const useUpdateProject: () => any;
8
+ declare const usePushProjectConfiguration: () => any;
9
+ declare const useUpdateProjectMembers: () => any;
10
+ declare const useDeleteProject: () => any;
11
+ declare const useDeleteProjectById: () => any;
12
+ declare const useSelectProject: () => any;
13
+ declare const useUnselectProject: () => any;
14
+ declare const useGetCIConfig: (options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
15
+ declare const usePushCIConfig: () => any;
16
+ declare const useTriggerBuild: () => any;
17
+ declare const useTriggerWebhook: () => any;
18
+ declare const useAddNewAccessKey: () => any;
19
+ declare const useDeleteAccessKey: () => any;
20
+ declare const useRefreshAccessKey: () => any;
21
+ //#endregion
22
+ export { useAddNewAccessKey, useAddProject, useDeleteAccessKey, useDeleteProject, useDeleteProjectById, useGetCIConfig, useGetProjects, usePushCIConfig, usePushProjectConfiguration, useRefreshAccessKey, useSelectProject, useTriggerBuild, useTriggerWebhook, useUnselectProject, useUpdateProject, useUpdateProjectMembers };
23
+ //# sourceMappingURL=project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.d.ts","names":[],"sources":["../../../../src/api/hooks/project.ts"],"mappings":";;;;cAqBa,cAAA,GACX,OAAA,GAAU,iBAAA,EACV,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAcvB,aAAA;AAAA,cAYA,gBAAA;AAAA,cAqBA,2BAAA;AAAA,cAmBA,uBAAA;AAAA,cAaA,gBAAA;AAAA,cAYA,oBAAA;AAAA,cAaA,gBAAA;AAAA,cA4BA,kBAAA;AAAA,cA4BA,cAAA,GAAkB,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAWpD,eAAA;AAAA,cAYA,eAAA;AAAA,cAYA,iBAAA;AAAA,cAaA,kBAAA;AAAA,cAYA,kBAAA;AAAA,cAYA,mBAAA"}
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from "@tanstack/react-query";
2
+ import { GetMarketplaceQuery } from "@intlayer/backend";
3
+
4
+ //#region src/api/hooks/reviewer.d.ts
5
+ declare const useGetReviewerMarketplace: (params?: GetMarketplaceQuery, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
6
+ declare const useGetReviewerPriceDistribution: (params?: Pick<GetMarketplaceQuery, "fromLocale" | "toLocale" | "minRating" | "categories">, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
7
+ declare const useGetReviewerById: (reviewerId: string | undefined, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
8
+ declare const useGetReviewerReviews: (reviewerId: string | undefined, params?: {
9
+ page?: number;
10
+ pageSize?: number;
11
+ }, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
12
+ declare const useGetMyReviewerProfile: (options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
13
+ declare const useRegisterAsReviewer: () => any;
14
+ declare const useUpdateReviewerProfile: () => any;
15
+ declare const useDeleteReviewerProfile: () => any;
16
+ declare const useUploadReviewerMainPicture: () => any;
17
+ declare const useUploadReviewerCoverPicture: () => any;
18
+ declare const useEstimateMission: () => any;
19
+ declare const useCreateMission: () => any;
20
+ declare const useGetMyMissions: (params?: {
21
+ role?: "client" | "reviewer";
22
+ page?: number;
23
+ pageSize?: number;
24
+ }, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
25
+ declare const useGetMissionById: (missionId: string | undefined, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
26
+ declare const useUpdateMissionStatus: () => any;
27
+ declare const useSubmitReview: () => any;
28
+ declare const useGetChatHistory: (missionId: string | undefined, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
29
+ declare const useSendReviewerMessage: () => any;
30
+ declare const useContactReviewer: () => any;
31
+ declare const useGetAdminReviewers: (params?: {
32
+ page?: number;
33
+ pageSize?: number;
34
+ status?: string;
35
+ }, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
36
+ declare const useValidateReviewerProfile: () => any;
37
+ //#endregion
38
+ export { useContactReviewer, useCreateMission, useDeleteReviewerProfile, useEstimateMission, useGetAdminReviewers, useGetChatHistory, useGetMissionById, useGetMyMissions, useGetMyReviewerProfile, useGetReviewerById, useGetReviewerMarketplace, useGetReviewerPriceDistribution, useGetReviewerReviews, useRegisterAsReviewer, useSendReviewerMessage, useSubmitReview, useUpdateMissionStatus, useUpdateReviewerProfile, useUploadReviewerCoverPicture, useUploadReviewerMainPicture, useValidateReviewerProfile };
39
+ //# sourceMappingURL=reviewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reviewer.d.ts","names":[],"sources":["../../../../src/api/hooks/reviewer.ts"],"mappings":";;;;cAmBa,yBAAA,GACX,MAAA,GAAS,mBAAA,EACT,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAWvB,+BAAA,GACX,MAAA,GAAS,IAAA,CACP,mBAAA,2DAGF,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYvB,kBAAA,GACX,UAAA,sBACA,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAavB,qBAAA,GACX,UAAA,sBACA,MAAA;EAAW,IAAA;EAAe,QAAA;AAAA,GAC1B,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAevB,uBAAA,GAA2B,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAW7D,qBAAA;AAAA,cAiBA,wBAAA;AAAA,cAcA,wBAAA;AAAA,cAcA,4BAAA;AAAA,cAaA,6BAAA;AAAA,cAaA,kBAAA;AAAA,cAUA,gBAAA;AAAA,cAaA,gBAAA,GACX,MAAA;EAAW,IAAA;EAA8B,IAAA;EAAe,QAAA;AAAA,GACxD,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYvB,iBAAA,GACX,SAAA,sBACA,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAavB,sBAAA;AAAA,cAsBA,eAAA;AAAA,cAmBA,iBAAA,GACX,SAAA,sBACA,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAavB,sBAAA;AAAA,cAqBA,kBAAA;AAAA,cAcA,oBAAA,GACX,MAAA;EAAU,IAAA;EAAe,QAAA;EAAmB,MAAA;AAAA,GAC5C,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYvB,0BAAA"}
@@ -0,0 +1,7 @@
1
+ import { SearchDocUtilParams } from "@intlayer/backend";
2
+
3
+ //#region src/api/hooks/search.d.ts
4
+ declare const useSearchDoc: (params: SearchDocUtilParams) => QueryObserverResult<TData, TError>;
5
+ //#endregion
6
+ export { useSearchDoc };
7
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","names":[],"sources":["../../../../src/api/hooks/search.ts"],"mappings":";;;cAMa,YAAA,GAAgB,MAAA,EAAQ,mBAAA,KAAmB,mBAAA,CAAA,KAAA,EAAA,MAAA"}
@@ -0,0 +1,16 @@
1
+ import { UseIntlayerAuthProps } from "../useIntlayerAPI.js";
2
+ import { UseQueryOptions } from "@tanstack/react-query";
3
+ import { GetShowcaseProjectByIdParams, GetShowcaseProjectsResult, OtherShowcaseProjectsQuery, ShowcaseProjectsQuery } from "@intlayer/backend";
4
+
5
+ //#region src/api/hooks/showcaseProject.d.ts
6
+ declare const useGetShowcaseProjects: (query?: ShowcaseProjectsQuery, options?: Partial<UseQueryOptions<GetShowcaseProjectsResult>>) => QueryObserverResult<TData, TError>;
7
+ declare const useGetShowcaseProjectById: (projectId: GetShowcaseProjectByIdParams["projectId"], options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
8
+ declare const useGetOtherShowcaseProjects: (query: OtherShowcaseProjectsQuery, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
9
+ declare const useSubmitShowcaseProject: (props?: UseIntlayerAuthProps) => any;
10
+ declare const useDeleteShowcaseProject: (props?: UseIntlayerAuthProps) => any;
11
+ declare const useToggleShowcaseUpvote: (props?: UseIntlayerAuthProps) => any;
12
+ declare const useToggleShowcaseDownvote: (props?: UseIntlayerAuthProps) => any;
13
+ declare const useUpdateShowcaseProject: (props?: UseIntlayerAuthProps) => any;
14
+ //#endregion
15
+ export { useDeleteShowcaseProject, useGetOtherShowcaseProjects, useGetShowcaseProjectById, useGetShowcaseProjects, useSubmitShowcaseProject, useToggleShowcaseDownvote, useToggleShowcaseUpvote, useUpdateShowcaseProject };
16
+ //# sourceMappingURL=showcaseProject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"showcaseProject.d.ts","names":[],"sources":["../../../../src/api/hooks/showcaseProject.ts"],"mappings":";;;;;cAoBa,sBAAA,GACX,KAAA,GAAQ,qBAAA,EACR,OAAA,GAAU,OAAA,CAAQ,eAAA,CAAgB,yBAAA,OAA2B,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYlD,yBAAA,GACX,SAAA,EAAW,4BAAA,eACX,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAevB,2BAAA,GACX,KAAA,EAAO,0BAAA,EACP,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAevB,wBAAA,GAA4B,KAA4B,GAApB,oBAAoB;AAAA,cAcxD,wBAAA,GAA4B,KAA4B,GAApB,oBAAoB;AAAA,cAcxD,uBAAA,GAA2B,KAA4B,GAApB,oBAAoB;AAAA,cAUvD,yBAAA,GAA6B,KAA4B,GAApB,oBAAoB;AAAA,cAUzD,wBAAA,GAA4B,KAA4B,GAApB,oBAAoB"}
@@ -0,0 +1,33 @@
1
+ import { UseQueryOptions } from "@tanstack/react-query";
2
+ import { GetAffiliatesParams, GetCheckoutSessionBody, GetPricingBody, GetPricingResult } from "@intlayer/backend";
3
+
4
+ //#region src/api/hooks/stripe.d.ts
5
+ declare const useGetPricing: (body: GetPricingBody, options?: Partial<UseQueryOptions<GetPricingResult>>) => QueryObserverResult<TData, TError>;
6
+ declare const useGetSubscription: (body: GetCheckoutSessionBody, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
7
+ declare const useCancelSubscription: () => any;
8
+ declare const useGetInvoices: (options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
9
+ declare const useGetPaymentMethod: (options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
10
+ declare const useCreatePortalSession: () => any;
11
+ declare const useGetAffiliates: (params?: GetAffiliatesParams, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
12
+ declare const useGetAffiliateInvitations: (params?: GetAffiliatesParams, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
13
+ declare const useGetAffiliateById: (id: string, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
14
+ declare const useGetAffiliate: (options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
15
+ declare const useGetAffiliateAccountSession: (options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
16
+ declare const useGetAffiliateOnboardingLink: (options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
17
+ declare const useGetAffiliateStats: (options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
18
+ declare const useGrantAffiliateAccess: () => any;
19
+ declare const useSendAffiliateInvitation: () => any;
20
+ declare const useGetAffiliateInvitation: (token: string, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
21
+ declare const useAcceptAffiliateInvitation: () => any;
22
+ declare const useUpdateAffiliateStatus: () => any;
23
+ declare const useGetPromoCodeById: (promoCodeId?: string, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
24
+ declare const useGetPromoCodes: (params?: {
25
+ affiliateId?: string;
26
+ }, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
27
+ declare const useCreatePromoCode: () => any;
28
+ declare const useUpdatePromoCode: () => any;
29
+ declare const useDeletePromoCode: () => any;
30
+ declare const useGetAffiliatePromoCode: (referralCode?: string, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
31
+ //#endregion
32
+ export { useAcceptAffiliateInvitation, useCancelSubscription, useCreatePortalSession, useCreatePromoCode, useDeletePromoCode, useGetAffiliate, useGetAffiliateAccountSession, useGetAffiliateById, useGetAffiliateInvitation, useGetAffiliateInvitations, useGetAffiliateOnboardingLink, useGetAffiliatePromoCode, useGetAffiliateStats, useGetAffiliates, useGetInvoices, useGetPaymentMethod, useGetPricing, useGetPromoCodeById, useGetPromoCodes, useGetSubscription, useGrantAffiliateAccess, useSendAffiliateInvitation, useUpdateAffiliateStatus, useUpdatePromoCode };
33
+ //# sourceMappingURL=stripe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe.d.ts","names":[],"sources":["../../../../src/api/hooks/stripe.ts"],"mappings":";;;;cAqBa,aAAA,GACX,IAAA,EAAM,cAAA,EACN,OAAA,GAAU,OAAA,CAAQ,eAAA,CAAgB,gBAAA,OAAkB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAWzC,kBAAA,GACX,IAAA,EAAM,sBAAA,EACN,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAavB,qBAAA;AAAA,cAYA,cAAA,GAAkB,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYpD,mBAAA,GAAuB,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYzD,sBAAA;AAAA,cASA,gBAAA,GACX,MAAA,GAAS,mBAAA,EACT,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYvB,0BAAA,GACX,MAAA,GAAS,mBAAA,EACT,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAavB,mBAAA,GACX,EAAA,UACA,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAavB,eAAA,GAAmB,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAWrD,6BAAA,GACX,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYvB,6BAAA,GACX,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYvB,oBAAA,GAAwB,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAW1D,uBAAA;AAAA,cAaA,0BAAA;AAAA,cAaA,yBAAA,GACX,KAAA,UACA,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYvB,4BAAA;AAAA,cA6BA,wBAAA;AAAA,cAoBA,mBAAA,GACX,WAAA,WACA,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAcvB,gBAAA,GACX,MAAA;EAAU,WAAA;AAAA,GACV,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYvB,kBAAA;AAAA,cAaA,kBAAA;AAAA,cAcA,kBAAA;AAAA,cAaA,wBAAA,GACX,YAAA,WACA,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA"}
@@ -0,0 +1,11 @@
1
+ import { UseQueryOptions } from "@tanstack/react-query";
2
+ import { GetTagsParams } from "@intlayer/backend";
3
+
4
+ //#region src/api/hooks/tag.d.ts
5
+ declare const useGetTags: (filters?: GetTagsParams, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
6
+ declare const useAddTag: () => any;
7
+ declare const useUpdateTag: () => any;
8
+ declare const useDeleteTag: () => any;
9
+ //#endregion
10
+ export { useAddTag, useDeleteTag, useGetTags, useUpdateTag };
11
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","names":[],"sources":["../../../../src/api/hooks/tag.ts"],"mappings":";;;;cAWa,UAAA,GACX,OAAA,GAAU,aAAA,EACV,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAcvB,SAAA;AAAA,cAYA,YAAA;AAAA,cAaA,YAAA"}
@@ -0,0 +1,8 @@
1
+ //#region src/api/hooks/translate.d.ts
2
+ declare const useFillAllTranslations: () => any;
3
+ declare const useStopTranslationJob: () => any;
4
+ declare const usePauseTranslationJob: () => any;
5
+ declare const useResumeTranslationJob: () => any;
6
+ //#endregion
7
+ export { useFillAllTranslations, usePauseTranslationJob, useResumeTranslationJob, useStopTranslationJob };
8
+ //# sourceMappingURL=translate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translate.d.ts","names":[],"sources":["../../../../src/api/hooks/translate.ts"],"mappings":";cAMa,sBAAA;AAAA,cA2BA,qBAAA;AAAA,cASA,sBAAA;AAAA,cASA,uBAAA"}
@@ -0,0 +1,13 @@
1
+ import { UseQueryOptions } from "@tanstack/react-query";
2
+ import { GetUsersParams } from "@intlayer/backend";
3
+
4
+ //#region src/api/hooks/user.d.ts
5
+ declare const useGetUsers: (filters?: GetUsersParams, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
6
+ declare const useGetUserById: (userId: string) => QueryObserverResult<TData, TError>;
7
+ declare const useCreateUser: () => any;
8
+ declare const useUpdateUser: () => any;
9
+ declare const useDeleteUser: () => any;
10
+ declare const useUploadUserAvatar: () => any;
11
+ //#endregion
12
+ export { useCreateUser, useDeleteUser, useGetUserById, useGetUsers, useUpdateUser, useUploadUserAvatar };
13
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","names":[],"sources":["../../../../src/api/hooks/user.ts"],"mappings":";;;;cAWa,WAAA,GACX,OAAA,GAAU,cAAA,EACV,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAavB,cAAA,GAAkB,MAAA,aAAc,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAUhC,aAAA;AAAA,cASA,aAAA;AAAA,cASA,aAAA;AAAA,cAYA,mBAAA"}
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from "@tanstack/react-query";
2
+
3
+ //#region src/api/hooks/utils.d.ts
4
+ type AuthEnableOptions = {
5
+ requireUser?: boolean;
6
+ requireProject?: boolean;
7
+ requireOrganization?: boolean;
8
+ };
9
+ declare const useAuthEnable: ({
10
+ requireUser,
11
+ requireProject,
12
+ requireOrganization
13
+ }: AuthEnableOptions) => {
14
+ enable: boolean;
15
+ };
16
+ declare const useAppQuery: (options: UseQueryOptions & {
17
+ requireUser?: boolean;
18
+ requireProject?: boolean;
19
+ requireOrganization?: boolean;
20
+ }) => QueryObserverResult<TData, TError>;
21
+ //#endregion
22
+ export { useAppQuery, useAuthEnable };
23
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","names":[],"sources":["../../../../src/api/hooks/utils.ts"],"mappings":";;;KAMK,iBAAA;EACH,WAAA;EACA,cAAA;EACA,mBAAA;AAAA;AAAA,cAGW,aAAA;EAAiB,WAAA;EAAA,cAAA;EAAA;AAAA,GAI3B,iBAAA;;;cA6BU,WAAA,GACX,OAAA,EAAS,eAAA;EACP,WAAA;EACA,cAAA;EACA,mBAAA;AAAA,MACD,mBAAA,CAAA,KAAA,EAAA,MAAA"}
@@ -0,0 +1,25 @@
1
+ import { useAskDocQuestion, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditTag, useAutocomplete, useChat, useTranslateJSONDeclaration } from "./hooks/ai.js";
2
+ import { useAuditScan, useGetRecursiveAuditStatus, useStartRecursiveAudit } from "./hooks/audit.js";
3
+ import { useAddPasskey, useAskResetPassword, useChangePassword, useDeletePasskey, useDeleteSSOProvider, useDisableTwoFactor, useEnableTwoFactor, useGetUserByAccount, useGetVerifyEmailStatus, useLinkSocial, useListAccounts, useListPasskeys, useListSSOProviders, useLogin, useLogout, useRegister, useRegisterSSO, useResetPassword, useSignInMagicLink, useSignInPasskey, useSignInSSO, useUnlinkAccount, useVerifyBackupCode, useVerifyEmail, useVerifyTotp } from "./hooks/auth.js";
4
+ import { useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos } from "./hooks/bitbucket.js";
5
+ import { useAddDictionary, useDeleteDictionary, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useInfiniteGetDictionaries, usePushDictionaries, useUpdateDictionary } from "./hooks/dictionary.js";
6
+ import { useGetDiscussions, useGetDiscussionsData } from "./hooks/discussions.js";
7
+ import { useGetEditorDictionaries, useWriteDictionary } from "./hooks/editor.js";
8
+ import { useGithubAuth, useGithubCheckConfig, useGithubGetAuthUrl, useGithubGetConfigFile, useGithubRepos, useGithubToken } from "./hooks/github.js";
9
+ import { useGitlabAuth, useGitlabCheckConfig, useGitlabGetConfigFile, useGitlabProjects } from "./hooks/gitlab.js";
10
+ import { useGetNewsletterStatus, useSubscribeToNewsletter, useUnsubscribeFromNewsletter } from "./hooks/newsletter.js";
11
+ import { useAddOrganization, useAddOrganizationMember, useDeleteOrganization, useDeleteOrganizationById, useGetOrganizations, useSelectOrganization, useUnselectOrganization, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateOrganizationMembersById } from "./hooks/organization.js";
12
+ import { useAddNewAccessKey, useAddProject, useDeleteAccessKey, useDeleteProject, useDeleteProjectById, useGetCIConfig, useGetProjects, usePushCIConfig, usePushProjectConfiguration, useRefreshAccessKey, useSelectProject, useTriggerBuild, useTriggerWebhook, useUnselectProject, useUpdateProject, useUpdateProjectMembers } from "./hooks/project.js";
13
+ import { useContactReviewer, useCreateMission, useDeleteReviewerProfile, useEstimateMission, useGetAdminReviewers, useGetChatHistory, useGetMissionById, useGetMyMissions, useGetMyReviewerProfile, useGetReviewerById, useGetReviewerMarketplace, useGetReviewerPriceDistribution, useGetReviewerReviews, useRegisterAsReviewer, useSendReviewerMessage, useSubmitReview, useUpdateMissionStatus, useUpdateReviewerProfile, useUploadReviewerCoverPicture, useUploadReviewerMainPicture, useValidateReviewerProfile } from "./hooks/reviewer.js";
14
+ import { useSearchDoc } from "./hooks/search.js";
15
+ import { UseIntlayerAuthProps, useAiAPI, useAuditAPI, useBitbucketAPI, useDictionaryAPI, useEditorAPI, useGithubAPI, useGitlabAPI, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useNewsletterAPI, useOAuthAPI, useOrganizationAPI, useProjectAPI, useReviewerAPI, useSearchAPI, useShowcaseProjectAPI, useStripeAPI, useTagAPI, useTranslateAPI, useUserAPI } from "./useIntlayerAPI.js";
16
+ import { useDeleteShowcaseProject, useGetOtherShowcaseProjects, useGetShowcaseProjectById, useGetShowcaseProjects, useSubmitShowcaseProject, useToggleShowcaseDownvote, useToggleShowcaseUpvote, useUpdateShowcaseProject } from "./hooks/showcaseProject.js";
17
+ import { useAcceptAffiliateInvitation, useCancelSubscription, useCreatePortalSession, useCreatePromoCode, useDeletePromoCode, useGetAffiliate, useGetAffiliateAccountSession, useGetAffiliateById, useGetAffiliateInvitation, useGetAffiliateInvitations, useGetAffiliateOnboardingLink, useGetAffiliatePromoCode, useGetAffiliateStats, useGetAffiliates, useGetInvoices, useGetPaymentMethod, useGetPricing, useGetPromoCodeById, useGetPromoCodes, useGetSubscription, useGrantAffiliateAccess, useSendAffiliateInvitation, useUpdateAffiliateStatus, useUpdatePromoCode } from "./hooks/stripe.js";
18
+ import { useAddTag, useDeleteTag, useGetTags, useUpdateTag } from "./hooks/tag.js";
19
+ import { useFillAllTranslations, usePauseTranslationJob, useResumeTranslationJob, useStopTranslationJob } from "./hooks/translate.js";
20
+ import { useCreateUser, useDeleteUser, useGetUserById, useGetUsers, useUpdateUser, useUploadUserAvatar } from "./hooks/user.js";
21
+ import { useAuth } from "./useAuth/useAuth.js";
22
+ import { useOAuth2 } from "./useAuth/useOAuth2.js";
23
+ import { UseSessionResult, useSession } from "./useAuth/useSession.js";
24
+ import { useUser } from "./useUser/index.js";
25
+ export { UseIntlayerAuthProps, UseSessionResult, useAcceptAffiliateInvitation, useAddDictionary, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddPasskey, useAddProject, useAddTag, useAiAPI, useAskDocQuestion, useAskResetPassword, useAuditAPI, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditScan, useAuditTag, useAuth, useAutocomplete, useBitbucketAPI, useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos, useCancelSubscription, useChangePassword, useChat, useContactReviewer, useCreateMission, useCreatePortalSession, useCreatePromoCode, useCreateUser, useDeleteAccessKey, useDeleteDictionary, useDeleteOrganization, useDeleteOrganizationById, useDeletePasskey, useDeleteProject, useDeleteProjectById, useDeletePromoCode, useDeleteReviewerProfile, useDeleteSSOProvider, useDeleteShowcaseProject, useDeleteTag, useDeleteUser, useDictionaryAPI, useDisableTwoFactor, useEditorAPI, useEnableTwoFactor, useEstimateMission, useFillAllTranslations, useGetAdminReviewers, useGetAffiliate, useGetAffiliateAccountSession, useGetAffiliateById, useGetAffiliateInvitation, useGetAffiliateInvitations, useGetAffiliateOnboardingLink, useGetAffiliatePromoCode, useGetAffiliateStats, useGetAffiliates, useGetCIConfig, useGetChatHistory, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetDiscussions, useGetDiscussionsData, useGetEditorDictionaries, useGetInvoices, useGetMissionById, useGetMyMissions, useGetMyReviewerProfile, useGetNewsletterStatus, useGetOrganizations, useGetOtherShowcaseProjects, useGetPaymentMethod, useGetPricing, useGetProjects, useGetPromoCodeById, useGetPromoCodes, useGetRecursiveAuditStatus, useGetReviewerById, useGetReviewerMarketplace, useGetReviewerPriceDistribution, useGetReviewerReviews, useGetShowcaseProjectById, useGetShowcaseProjects, useGetSubscription, useGetTags, useGetUserByAccount, useGetUserById, useGetUsers, useGetVerifyEmailStatus, useGithubAPI, useGithubAuth, useGithubCheckConfig, useGithubGetAuthUrl, useGithubGetConfigFile, useGithubRepos, useGithubToken, useGitlabAPI, useGitlabAuth, useGitlabCheckConfig, useGitlabGetConfigFile, useGitlabProjects, useGrantAffiliateAccess, useInfiniteGetDictionaries, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useLinkSocial, useListAccounts, useListPasskeys, useListSSOProviders, useLogin, useLogout, useNewsletterAPI, useOAuth2, useOAuthAPI, useOrganizationAPI, usePauseTranslationJob, useProjectAPI, usePushCIConfig, usePushDictionaries, usePushProjectConfiguration, useRefreshAccessKey, useRegister, useRegisterAsReviewer, useRegisterSSO, useResetPassword, useResumeTranslationJob, useReviewerAPI, useSearchAPI, useSearchDoc, useSelectOrganization, useSelectProject, useSendAffiliateInvitation, useSendReviewerMessage, useSession, useShowcaseProjectAPI, useSignInMagicLink, useSignInPasskey, useSignInSSO, useStartRecursiveAudit, useStopTranslationJob, useStripeAPI, useSubmitReview, useSubmitShowcaseProject, useSubscribeToNewsletter, useTagAPI, useToggleShowcaseDownvote, useToggleShowcaseUpvote, useTranslateAPI, useTranslateJSONDeclaration, useTriggerBuild, useTriggerWebhook, useUnlinkAccount, useUnselectOrganization, useUnselectProject, useUnsubscribeFromNewsletter, useUpdateAffiliateStatus, useUpdateDictionary, useUpdateMissionStatus, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateOrganizationMembersById, useUpdateProject, useUpdateProjectMembers, useUpdatePromoCode, useUpdateReviewerProfile, useUpdateShowcaseProject, useUpdateTag, useUpdateUser, useUploadReviewerCoverPicture, useUploadReviewerMainPicture, useUploadUserAvatar, useUser, useUserAPI, useValidateReviewerProfile, useVerifyBackupCode, useVerifyEmail, useVerifyTotp, useWriteDictionary };
@@ -1,7 +1,7 @@
1
1
  import { OAuth2Token, SessionAPI } from "@intlayer/backend";
2
2
  import { IntlayerConfig } from "@intlayer/types/config";
3
3
 
4
- //#region src/hooks/useAuth/useAuth.d.ts
4
+ //#region src/api/useAuth/useAuth.d.ts
5
5
  type SessionContextProps = {
6
6
  session: SessionAPI | null | undefined;
7
7
  setSession: (session: SessionAPI | null) => void;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAuth.d.ts","names":[],"sources":["../../../../src/api/useAuth/useAuth.ts"],"mappings":";;;;KAOK,mBAAA;EACH,OAAA,EAAS,UAAA;EACT,UAAA,GAAa,OAAA,EAAS,UAAA;EACtB,YAAA,QAAoB,OAAA,CAAQ,UAAA;EAC5B,iBAAA,QAAyB,OAAA,CAAQ,UAAA;EACjC,eAAA;EACA,iBAAA,EAAmB,WAAA;AAAA;AAAA,cAGR,OAAA;EAAW,OAAA,EAAA,WAAA;EAAA;AAAA;EAItB,OAAA,GAAU,UAAA;EACV,qBAAA,GAAwB,cAAA;AAAA,MACjB,mBAAA"}
@@ -1,6 +1,6 @@
1
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
2
 
3
- //#region src/hooks/useAuth/useOAuth2.d.ts
3
+ //#region src/api/useAuth/useOAuth2.d.ts
4
4
  declare const useOAuth2: (intlayerConfiguration?: IntlayerConfig) => {
5
5
  oAuth2AccessToken: any;
6
6
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOAuth2.d.ts","names":[],"sources":["../../../../src/api/useAuth/useOAuth2.ts"],"mappings":";;;cASa,SAAA,GAAa,qBAAA,GAAwB,cAAc"}
@@ -1,7 +1,7 @@
1
1
  import { SessionAPI } from "@intlayer/backend";
2
2
  import { IntlayerConfig } from "@intlayer/types/config";
3
3
 
4
- //#region src/hooks/useAuth/useSession.d.ts
4
+ //#region src/api/useAuth/useSession.d.ts
5
5
  type UseSessionResult = {
6
6
  /** The current session: `undefined` while loading, `null` if fetched and no session, otherwise the session. */session: SessionAPI | null | undefined; /** Refetches the session and returns it (undefined while loading). */
7
7
  fetchSession: () => Promise<SessionAPI | null | undefined>; /** Alias of `fetchSession` for ergonomics. */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSession.d.ts","names":[],"sources":["../../../../src/api/useAuth/useSession.ts"],"mappings":";;;;KASY,gBAAA;iHAEV,OAAA,EAAS,UAAA,qBAFiB;EAI1B,YAAA,QAAoB,OAAA,CAAQ,UAAA,sBAFnB;EAIT,iBAAA,QAAyB,OAAA,CAAQ,UAAA,sBAFb;EAIpB,UAAA,GAAa,WAAA,EAAa,UAAA;AAAA;AAAA,cAGf,UAAA,GACX,WAAA,GAAc,UAAA,SACd,qBAAA,GAAwB,cAAA,KACvB,gBAAA"}
@@ -0,0 +1,297 @@
1
+ import { AuthAPI } from "../libs/auth.js";
2
+ import { FetcherOptions, IntlayerAPI } from "@intlayer/api";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/api/useIntlayerAPI.d.ts
6
+ type UseIntlayerAuthProps = {
7
+ options?: FetcherOptions;
8
+ intlayerConfiguration?: IntlayerConfig;
9
+ };
10
+ declare const useIntlayerOAuthOptions: (props?: UseIntlayerAuthProps) => {
11
+ options: {
12
+ cache?: RequestCache;
13
+ credentials?: RequestCredentials;
14
+ headers: HeadersInit;
15
+ integrity?: string;
16
+ keepalive?: boolean;
17
+ method?: string;
18
+ mode?: RequestMode;
19
+ priority?: RequestPriority;
20
+ redirect?: RequestRedirect;
21
+ referrer?: string;
22
+ referrerPolicy?: ReferrerPolicy;
23
+ signal?: AbortSignal | null;
24
+ window?: null;
25
+ body?: Record<string, unknown>;
26
+ params?: Record<string, string | string[] | undefined> | string[] | URLSearchParams;
27
+ };
28
+ resolvedConfig: IntlayerConfig;
29
+ };
30
+ declare const useIntlayerOAuth: (props?: UseIntlayerAuthProps) => IntlayerAPI;
31
+ declare const useIntlayerAuth: (props?: UseIntlayerAuthProps) => AuthAPI;
32
+ declare const useOrganizationAPI: (props?: UseIntlayerAuthProps) => {
33
+ getOrganizations: (filters?: import("@intlayer/backend").GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
34
+ getOrganization: (organizationId: import("@intlayer/backend").GetOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
35
+ addOrganization: (organization: import("@intlayer/backend").AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
36
+ addOrganizationMember: (body: import("@intlayer/backend").AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
37
+ updateOrganization: (organization: import("@intlayer/backend").UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
38
+ updateOrganizationMembers: (body: import("@intlayer/backend").UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
39
+ updateOrganizationMembersById: (organizationId: string, body: import("@intlayer/backend").UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
40
+ deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
41
+ deleteOrganizationByIdAdmin: (organizationId: string, otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
42
+ selectOrganization: (organizationId: import("@intlayer/backend").SelectOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
43
+ unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
44
+ };
45
+ declare const useProjectAPI: (props?: UseIntlayerAuthProps) => {
46
+ getProjects: (filters?: import("@intlayer/backend").GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
47
+ addProject: (project: import("@intlayer/backend").AddProjectBody, otherOptions?: FetcherOptions) => Promise<AddProjectResult>;
48
+ updateProject: (project: import("@intlayer/backend").UpdateProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectResult>;
49
+ updateProjectMembers: (body: import("@intlayer/backend").UpdateProjectMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectMembersResult>;
50
+ pushProjectConfiguration: (projectConfiguration: import("@intlayer/backend").PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
51
+ deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
52
+ deleteProjectByIdAdmin: (projectId: string, otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
53
+ selectProject: (projectId: import("@intlayer/backend").SelectProjectParam["projectId"], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
54
+ unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
55
+ addNewAccessKey: (accessKey: import("@intlayer/backend").AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
56
+ deleteAccessKey: (clientId: import("@intlayer/backend").DeleteAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
57
+ refreshAccessKey: (clientId: import("@intlayer/backend").RefreshAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
58
+ triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>;
59
+ triggerWebhook: (webhookIndex: import("@intlayer/backend").TriggerWebhookBody["webhookIndex"], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
60
+ getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
61
+ pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
62
+ };
63
+ declare const useUserAPI: (props?: UseIntlayerAuthProps) => {
64
+ createUser: (user: import("@intlayer/backend").CreateUserBody, otherOptions?: FetcherOptions) => Promise<CreateUserResult>;
65
+ getUsers: (filters?: import("@intlayer/backend").GetUsersParams, otherOptions?: FetcherOptions) => Promise<GetUsersResult>;
66
+ getUserById: (userId: import("@intlayer/backend").GetUserByIdParams["userId"], otherOptions?: FetcherOptions) => Promise<GetUserByIdResult>;
67
+ getUserByAccount: (providerAccountId: string, provider: string, otherOptions?: FetcherOptions) => Promise<any>;
68
+ getUserByEmail: (email: import("@intlayer/backend").GetUserByEmailParams["email"], otherOptions?: FetcherOptions) => Promise<GetUserByEmailResult>;
69
+ updateUser: (user: import("@intlayer/backend").UpdateUserBody, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
70
+ deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
71
+ uploadAvatar: (file: File, otherOptions?: FetcherOptions) => Promise<UploadUserAvatarResult>;
72
+ getVerifyEmailStatusURL: (userId: string | import("@intlayer/backend").UserAPI["id"]) => string;
73
+ };
74
+ declare const useOAuthAPI: (props?: UseIntlayerAuthProps) => {
75
+ getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<GetOAuth2TokenResult>;
76
+ createCliSessionToken: (otherOptions?: FetcherOptions) => Promise<CreateCliSessionTokenResult>;
77
+ getCliSessionMe: (otherOptions?: FetcherOptions) => Promise<GetCliSessionMeResult>;
78
+ };
79
+ declare const useDictionaryAPI: (props?: UseIntlayerAuthProps) => {
80
+ getDictionaries: (filters?: import("@intlayer/backend").GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<GetDictionariesResult>;
81
+ getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<GetDictionariesKeysResult>;
82
+ getDictionariesUpdateTimestamp: (otherOptions?: FetcherOptions) => Promise<GetDictionariesUpdateTimestampResult>;
83
+ getDictionary: (dictionaryKey: import("@intlayer/backend").GetDictionaryParams["dictionaryKey"], version?: import("@intlayer/backend").GetDictionaryQuery["version"], otherOptions?: FetcherOptions) => Promise<GetDictionaryResult>;
84
+ pushDictionaries: (dictionaries: import("@intlayer/backend").PushDictionariesBody["dictionaries"], otherOptions?: FetcherOptions) => Promise<PushDictionariesResult>;
85
+ addDictionary: (body: import("@intlayer/backend").AddDictionaryBody, otherOptions?: FetcherOptions) => Promise<AddDictionaryResult>;
86
+ updateDictionary: (dictionary: import("@intlayer/backend").UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<UpdateDictionaryResult>;
87
+ deleteDictionary: (id: import("@intlayer/backend").DeleteDictionaryParam["dictionaryId"], otherOptions?: FetcherOptions) => Promise<DeleteDictionaryResult>;
88
+ };
89
+ declare const useStripeAPI: (props?: UseIntlayerAuthProps) => {
90
+ getPricing: (body?: import("@intlayer/backend").GetPricingBody, otherOptions?: FetcherOptions) => Promise<GetPricingResult>;
91
+ getSubscription: (body?: import("@intlayer/backend").GetCheckoutSessionBody, otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
92
+ cancelSubscription: (otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
93
+ getInvoices: (otherOptions?: FetcherOptions) => Promise<GetInvoicesResult>;
94
+ getPaymentMethod: (otherOptions?: FetcherOptions) => Promise<GetPaymentMethodResult>;
95
+ createPortalSession: (otherOptions?: FetcherOptions) => Promise<CreatePortalSessionResult>;
96
+ grantAffiliateAccess: (body: import("@intlayer/backend").GrantAffiliateAccessBody, otherOptions?: FetcherOptions) => Promise<GrantAffiliateAccessResult>;
97
+ getAffiliates: (params?: import("@intlayer/backend").GetAffiliatesParams, otherOptions?: FetcherOptions) => Promise<GetAffiliatesResult>;
98
+ getAffiliateById: ({
99
+ id
100
+ }: {
101
+ id: string;
102
+ }, otherOptions?: FetcherOptions) => Promise<GetAffiliateByIdResult>;
103
+ getAffiliate: (otherOptions?: FetcherOptions) => Promise<GetAffiliateResult>;
104
+ getAffiliateAccountSession: (otherOptions?: FetcherOptions) => Promise<GetAffiliateAccountSessionResult>;
105
+ getAffiliateOnboardingLink: (params?: {
106
+ returnUrl?: string;
107
+ }, otherOptions?: FetcherOptions) => Promise<GetAffiliateOnboardingLinkResult>;
108
+ getAffiliateStats: (otherOptions?: FetcherOptions) => Promise<GetAffiliateStatsResult>;
109
+ getAffiliateInvitations: (params?: import("@intlayer/backend").GetAffiliatesParams, otherOptions?: FetcherOptions) => Promise<GetAffiliateInvitationsResult>;
110
+ sendAffiliateInvitation: (body: import("@intlayer/backend").SendAffiliateInvitationBody, otherOptions?: FetcherOptions) => Promise<SendAffiliateInvitationResult>;
111
+ getAffiliateInvitation: ({
112
+ token
113
+ }: {
114
+ token: string;
115
+ }, otherOptions?: FetcherOptions) => Promise<GetAffiliateInvitationResult>;
116
+ acceptAffiliateInvitation: ({
117
+ token,
118
+ country,
119
+ stripeAccountType
120
+ }: {
121
+ token: string;
122
+ country?: string;
123
+ stripeAccountType?: "express" | "standard";
124
+ }, otherOptions?: FetcherOptions) => Promise<AcceptAffiliateInvitationResult>;
125
+ updateAffiliateStatus: ({
126
+ id
127
+ }: {
128
+ id: string;
129
+ }, body: import("@intlayer/backend").UpdateAffiliateStatusBody, otherOptions?: FetcherOptions) => Promise<UpdateAffiliateStatusResult>;
130
+ getPromoCodeById: (id: string, otherOptions?: FetcherOptions) => Promise<GetPromoCodeByIdResult>;
131
+ getPromoCodes: (params?: {
132
+ affiliateId?: string;
133
+ }, otherOptions?: FetcherOptions) => Promise<GetPromoCodesResult>;
134
+ createPromoCode: (body: import("@intlayer/backend").CreatePromoCodeBody, otherOptions?: FetcherOptions) => Promise<CreatePromoCodeResult>;
135
+ updatePromoCode: ({
136
+ id,
137
+ ...body
138
+ }: {
139
+ id: string;
140
+ } & import("@intlayer/backend").UpdatePromoCodeBody, otherOptions?: FetcherOptions) => Promise<UpdatePromoCodeResult>;
141
+ deletePromoCode: ({
142
+ id
143
+ }: {
144
+ id: string;
145
+ }, otherOptions?: FetcherOptions) => Promise<DeletePromoCodeResult>;
146
+ getAffiliatePromoCode: (referralCode: string, otherOptions?: FetcherOptions) => Promise<any>;
147
+ };
148
+ declare const useAiAPI: (props?: UseIntlayerAuthProps) => {
149
+ customQuery: (body?: import("@intlayer/backend").CustomQueryBody, otherOptions?: FetcherOptions) => Promise<CustomQueryResult>;
150
+ translateJSON: (body?: import("@intlayer/backend").TranslateJSONBody, otherOptions?: FetcherOptions) => Promise<TranslateJSONResult>;
151
+ auditContentDeclaration: (body?: import("@intlayer/backend").AuditContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationResult>;
152
+ auditContentDeclarationField: (body?: import("@intlayer/backend").AuditContentDeclarationFieldBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationFieldResult>;
153
+ auditContentDeclarationMetadata: (body?: import("@intlayer/backend").AuditContentDeclarationMetadataBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationMetadataResult>;
154
+ auditTag: (body?: import("@intlayer/backend").AuditTagBody, otherOptions?: FetcherOptions) => Promise<AuditTagResult>;
155
+ askDocQuestion: (body?: import("@intlayer/api").AskDocQuestionBody, otherOptions?: FetcherOptions) => Promise<void>;
156
+ chat: (body?: import("@intlayer/api").ChatBody, otherOptions?: FetcherOptions) => Promise<void>;
157
+ autocomplete: (body?: import("@intlayer/api").AutocompleteBody, otherOptions?: FetcherOptions) => Promise<AutocompleteResponse>;
158
+ getDiscussions: (params?: import("@intlayer/backend").GetDiscussionsParams, otherOptions?: FetcherOptions) => Promise<GetDiscussionsResult>;
159
+ };
160
+ declare const useAuditAPI: (props?: UseIntlayerAuthProps) => {
161
+ discoverUrls: (params?: import("@intlayer/api").DiscoverUrlsParams, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").DiscoverUrlsResult>;
162
+ scanUrl: (body?: import("@intlayer/api").ScanUrlBody, otherOptions?: FetcherOptions) => Promise<void>;
163
+ startRecursiveAudit: (body?: import("@intlayer/api").StartRecursiveAuditBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").StartRecursiveAuditResult>;
164
+ getRecursiveAuditStatus: (params?: import("@intlayer/api").GetRecursiveAuditStatusParams, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetRecursiveAuditStatusResult>;
165
+ cancelRecursiveAudit: (params?: import("@intlayer/api").RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
166
+ success: boolean;
167
+ }>;
168
+ pauseRecursiveAudit: (params?: import("@intlayer/api").RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
169
+ success: boolean;
170
+ }>;
171
+ resumeRecursiveAudit: (params?: import("@intlayer/api").RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
172
+ success: boolean;
173
+ }>;
174
+ };
175
+ declare const useTagAPI: (props?: UseIntlayerAuthProps) => {
176
+ getTags: (filters?: import("@intlayer/backend").GetTagsParams, otherOptions?: FetcherOptions) => Promise<GetTagsResult>;
177
+ addTag: (tag: import("@intlayer/backend").AddTagBody, otherOptions?: FetcherOptions) => Promise<AddTagResult>;
178
+ updateTag: (tagId: import("@intlayer/backend").UpdateTagParams["tagId"], tag: import("@intlayer/backend").UpdateTagBody, otherOptions?: FetcherOptions) => Promise<UpdateTagResult>;
179
+ deleteTag: (tagId: import("@intlayer/backend").DeleteTagParams["tagId"], otherOptions?: FetcherOptions) => Promise<DeleteTagResult>;
180
+ };
181
+ declare const useSearchAPI: (props?: UseIntlayerAuthProps) => {
182
+ searchDoc: (params?: import("@intlayer/backend").SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>;
183
+ };
184
+ declare const useEditorAPI: (props?: UseIntlayerAuthProps) => {
185
+ getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
186
+ getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>;
187
+ writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>;
188
+ };
189
+ declare const useNewsletterAPI: (props?: UseIntlayerAuthProps) => {
190
+ subscribeToNewsletter: (body: import("@intlayer/backend").NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
191
+ unsubscribeFromNewsletter: (body: import("@intlayer/backend").NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
192
+ getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
193
+ };
194
+ declare const useGithubAPI: (props?: UseIntlayerAuthProps) => {
195
+ getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubGetAuthUrlResult>;
196
+ authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubAuthCallbackResult>;
197
+ getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubListReposResult>;
198
+ checkIntlayerConfig: (token: string | null | undefined, owner: string, repository: string, branch?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubCheckConfigResult>;
199
+ getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubGetConfigFileResult>;
200
+ getToken: (otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubGetTokenResult>;
201
+ };
202
+ declare const useGitlabAPI: (props?: UseIntlayerAuthProps) => {
203
+ getAuthUrl: (redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitLabGetAuthUrlResult>;
204
+ authenticate: (code: string, redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitLabAuthCallbackResult>;
205
+ getProjects: (token?: string | null, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitLabListProjectsResult>;
206
+ checkIntlayerConfig: (token: string | null | undefined, projectId: number, branch?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitLabCheckConfigResult>;
207
+ getConfigFile: (token: string | null | undefined, projectId: number, branch?: string, path?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitLabGetConfigFileResult>;
208
+ };
209
+ declare const useBitbucketAPI: (props?: UseIntlayerAuthProps) => {
210
+ getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").BitbucketGetAuthUrlResult>;
211
+ authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").BitbucketAuthCallbackResult>;
212
+ getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").BitbucketListReposResult>;
213
+ checkIntlayerConfig: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").BitbucketCheckConfigResult>;
214
+ getConfigFile: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").BitbucketGetConfigFileResult>;
215
+ };
216
+ declare const useShowcaseProjectAPI: (props?: UseIntlayerAuthProps) => {
217
+ getShowcaseProjects: (query?: import("@intlayer/api").ShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectsResult>;
218
+ getShowcaseProjectById: (projectId: import("@intlayer/backend").GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectByIdResult>;
219
+ getOtherShowcaseProjects: (query: import("@intlayer/api").OtherShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetOtherShowcaseProjectsResult>;
220
+ submitShowcaseProject: (body: import("@intlayer/backend").SubmitShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<SubmitShowcaseProjectResult>;
221
+ toggleShowcaseUpvote: (body: import("@intlayer/backend").ToggleShowcaseUpvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseUpvoteResult>;
222
+ toggleShowcaseDownvote: (body: import("@intlayer/backend").ToggleShowcaseDownvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseDownvoteResult>;
223
+ deleteShowcaseProject: (projectId: import("@intlayer/backend").GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<{
224
+ data: {
225
+ success: boolean;
226
+ };
227
+ }>;
228
+ updateShowcaseProject: (projectId: import("@intlayer/backend").GetShowcaseProjectByIdParams["projectId"], body: import("@intlayer/backend").UpdateShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateShowcaseProjectResult>;
229
+ };
230
+ declare const useTranslateAPI: (props?: UseIntlayerAuthProps) => {
231
+ translateDictionaries: (body: import("@intlayer/backend").TranslateDictionariesBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").TranslateDictionariesResult>;
232
+ pauseTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
233
+ data: {
234
+ jobId: string;
235
+ };
236
+ }>;
237
+ resumeTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
238
+ data: {
239
+ jobId: string;
240
+ };
241
+ }>;
242
+ stopTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
243
+ data: {
244
+ jobId: string;
245
+ };
246
+ }>;
247
+ retryTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
248
+ data: {
249
+ jobId: string;
250
+ };
251
+ }>;
252
+ restartTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
253
+ data: {
254
+ jobId: string;
255
+ };
256
+ }>;
257
+ };
258
+ declare const useReviewerAPI: (props?: UseIntlayerAuthProps) => {
259
+ getMarketplace: (params?: import("@intlayer/backend").GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
260
+ getPriceDistribution: (params?: Pick<import("@intlayer/backend").GetMarketplaceQuery, "fromLocale" | "toLocale" | "minRating" | "categories">, otherOptions?: FetcherOptions) => Promise<ResponseData<PriceDistributionData>>;
261
+ getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
262
+ getReviewerReviews: (reviewerId: string, params?: {
263
+ page?: number;
264
+ pageSize?: number;
265
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerReviewAPI>>;
266
+ getMyReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
267
+ registerAsReviewer: (body: import("@intlayer/backend").RegisterReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
268
+ updateReviewerProfile: (body: import("@intlayer/backend").UpdateReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
269
+ deleteReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
270
+ estimateMission: (body: import("@intlayer/backend").EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<MissionEstimate>>;
271
+ createMission: (body: import("@intlayer/backend").CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
272
+ getMyMissions: (params?: {
273
+ role?: "client" | "reviewer";
274
+ page?: number;
275
+ pageSize?: number;
276
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<TranslationMissionAPI>>;
277
+ getMissionById: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
278
+ updateMissionStatus: (missionId: string, body: import("@intlayer/backend").UpdateMissionStatusBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
279
+ submitReview: (missionId: string, body: import("@intlayer/backend").SubmitReviewBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerReviewAPI>>;
280
+ contactReviewer: (reviewerId: string, body: {
281
+ message: string;
282
+ }, otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
283
+ getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI[]>>;
284
+ sendMessage: (missionId: string, body: import("@intlayer/backend").SendMessageBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI>>;
285
+ getChatStreamUrl: (missionId: string) => string;
286
+ uploadMainPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
287
+ uploadCoverPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
288
+ validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
289
+ getAdminReviewers: (params?: {
290
+ page?: number;
291
+ pageSize?: number;
292
+ status?: string;
293
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
294
+ };
295
+ //#endregion
296
+ export { UseIntlayerAuthProps, useAiAPI, useAuditAPI, useBitbucketAPI, useDictionaryAPI, useEditorAPI, useGithubAPI, useGitlabAPI, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useNewsletterAPI, useOAuthAPI, useOrganizationAPI, useProjectAPI, useReviewerAPI, useSearchAPI, useShowcaseProjectAPI, useStripeAPI, useTagAPI, useTranslateAPI, useUserAPI };
297
+ //# sourceMappingURL=useIntlayerAPI.d.ts.map