@intlayer/design-system 8.10.1 → 8.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/api/hooks/ai.mjs +66 -0
- package/dist/esm/api/hooks/ai.mjs.map +1 -0
- package/dist/esm/api/hooks/audit.mjs +34 -0
- package/dist/esm/api/hooks/audit.mjs.map +1 -0
- package/dist/esm/api/hooks/auth.mjs +217 -0
- package/dist/esm/api/hooks/auth.mjs.map +1 -0
- package/dist/esm/api/hooks/bitbucket.mjs +39 -0
- package/dist/esm/api/hooks/bitbucket.mjs.map +1 -0
- package/dist/esm/api/hooks/dictionary.mjs +105 -0
- package/dist/esm/api/hooks/dictionary.mjs.map +1 -0
- package/dist/esm/api/hooks/discussions.mjs +37 -0
- package/dist/esm/api/hooks/discussions.mjs.map +1 -0
- package/dist/esm/api/hooks/editor.mjs +24 -0
- package/dist/esm/api/hooks/editor.mjs.map +1 -0
- package/dist/esm/api/hooks/github.mjs +54 -0
- package/dist/esm/api/hooks/github.mjs.map +1 -0
- package/dist/esm/api/hooks/gitlab.mjs +43 -0
- package/dist/esm/api/hooks/gitlab.mjs.map +1 -0
- package/dist/esm/api/hooks/newsletter.mjs +31 -0
- package/dist/esm/api/hooks/newsletter.mjs.map +1 -0
- package/dist/esm/api/hooks/organization.mjs +123 -0
- package/dist/esm/api/hooks/organization.mjs.map +1 -0
- package/dist/esm/api/hooks/project.mjs +187 -0
- package/dist/esm/api/hooks/project.mjs.map +1 -0
- package/dist/esm/api/hooks/reviewer.mjs +288 -0
- package/dist/esm/api/hooks/reviewer.mjs.map +1 -0
- package/dist/esm/api/hooks/search.mjs +18 -0
- package/dist/esm/api/hooks/search.mjs.map +1 -0
- package/dist/esm/api/hooks/showcaseProject.mjs +95 -0
- package/dist/esm/api/hooks/showcaseProject.mjs.map +1 -0
- package/dist/esm/api/hooks/stripe.mjs +261 -0
- package/dist/esm/api/hooks/stripe.mjs.map +1 -0
- package/dist/esm/api/hooks/tag.mjs +45 -0
- package/dist/esm/api/hooks/tag.mjs.map +1 -0
- package/dist/esm/api/hooks/translate.mjs +47 -0
- package/dist/esm/api/hooks/translate.mjs.map +1 -0
- package/dist/esm/api/hooks/user.mjs +58 -0
- package/dist/esm/api/hooks/user.mjs.map +1 -0
- package/dist/esm/api/hooks/utils.mjs +30 -0
- package/dist/esm/api/hooks/utils.mjs.map +1 -0
- package/dist/esm/api/index.mjs +26 -0
- package/dist/esm/{hooks → api}/useAuth/useAuth.mjs +1 -1
- package/dist/esm/api/useAuth/useAuth.mjs.map +1 -0
- package/dist/esm/{hooks → api}/useAuth/useOAuth2.mjs +3 -3
- package/dist/esm/api/useAuth/useOAuth2.mjs.map +1 -0
- package/dist/esm/{hooks → api}/useAuth/useSession.mjs +3 -4
- package/dist/esm/api/useAuth/useSession.mjs.map +1 -0
- package/dist/esm/api/useIntlayerAPI.mjs +123 -0
- package/dist/esm/api/useIntlayerAPI.mjs.map +1 -0
- package/dist/esm/{hooks → api}/useUser/index.mjs +2 -2
- package/dist/esm/api/useUser/index.mjs.map +1 -0
- package/dist/esm/components/Badge/index.mjs +1 -3
- package/dist/esm/components/Badge/index.mjs.map +1 -1
- package/dist/esm/components/Breadcrumb/index.mjs +0 -1
- package/dist/esm/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/esm/components/Button/Button.mjs +3 -5
- package/dist/esm/components/Button/Button.mjs.map +1 -1
- package/dist/esm/components/Carousel/index.mjs +3 -3
- package/dist/esm/components/Carousel/index.mjs.map +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +3 -2
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +4 -2
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +3 -2
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/esm/components/ExpandCollapse/ExpandCollapse.mjs +2 -2
- package/dist/esm/components/ExpandCollapse/ExpandCollapse.mjs.map +1 -1
- package/dist/esm/components/IDE/FileList.mjs +1 -1
- package/dist/esm/components/IDE/FileList.mjs.map +1 -1
- package/dist/esm/components/IDE/IDE.mjs +1 -1
- package/dist/esm/components/IDE/IDE.mjs.map +1 -1
- package/dist/esm/components/Input/Checkbox.mjs +1 -3
- package/dist/esm/components/Input/Checkbox.mjs.map +1 -1
- package/dist/esm/components/Label/index.mjs +2 -2
- package/dist/esm/components/Label/index.mjs.map +1 -1
- package/dist/esm/components/LanguageBackground/LanguageSection.mjs +8 -6
- package/dist/esm/components/LanguageBackground/LanguageSection.mjs.map +1 -1
- package/dist/esm/components/LanguageBackground/index.mjs +13 -5
- package/dist/esm/components/LanguageBackground/index.mjs.map +1 -1
- package/dist/esm/components/Link/Link.mjs +0 -7
- package/dist/esm/components/Link/Link.mjs.map +1 -1
- package/dist/esm/components/Loader/spinner.mjs +1 -1
- package/dist/esm/components/Loader/spinner.mjs.map +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +1 -2
- package/dist/esm/components/Pagination/Pagination.mjs.map +1 -1
- package/dist/esm/components/Popover/dynamic.mjs +2 -2
- package/dist/esm/components/Popover/dynamic.mjs.map +1 -1
- package/dist/esm/components/SwitchSelector/SwitchSelector.mjs +3 -5
- package/dist/esm/components/SwitchSelector/SwitchSelector.mjs.map +1 -1
- package/dist/esm/components/SwitchSelector/VerticalSwitchSelector.mjs +3 -3
- package/dist/esm/components/SwitchSelector/VerticalSwitchSelector.mjs.map +1 -1
- package/dist/esm/components/TabSelector/TabSelector.mjs +3 -3
- package/dist/esm/components/TabSelector/TabSelector.mjs.map +1 -1
- package/dist/esm/components/Tag/index.mjs +1 -1
- package/dist/esm/components/Tag/index.mjs.map +1 -1
- package/dist/esm/components/Terminal/Terminal.mjs +1 -1
- package/dist/esm/components/Terminal/Terminal.mjs.map +1 -1
- package/dist/esm/components/TextArea/AutoSizeTextArea.mjs +2 -2
- package/dist/esm/components/TextArea/AutoSizeTextArea.mjs.map +1 -1
- package/dist/esm/components/TextArea/ContentEditableTextArea.mjs +3 -3
- package/dist/esm/components/TextArea/ContentEditableTextArea.mjs.map +1 -1
- package/dist/esm/components/Toaster/Toast.mjs +3 -3
- package/dist/esm/components/Toaster/Toast.mjs.map +1 -1
- package/dist/esm/components/WithResizer/index.mjs +7 -2
- package/dist/esm/components/WithResizer/index.mjs.map +1 -1
- package/dist/esm/hooks/index.mjs +1 -7
- package/dist/esm/libs/auth.mjs +1 -1
- package/dist/esm/routes.mjs +23 -1
- package/dist/esm/routes.mjs.map +1 -1
- package/dist/types/api/hooks/ai.d.ts +12 -0
- package/dist/types/api/hooks/ai.d.ts.map +1 -0
- package/dist/types/api/hooks/audit.d.ts +10 -0
- package/dist/types/api/hooks/audit.d.ts.map +1 -0
- package/dist/types/api/hooks/auth.d.ts +29 -0
- package/dist/types/api/hooks/auth.d.ts.map +1 -0
- package/dist/types/api/hooks/bitbucket.d.ts +8 -0
- package/dist/types/api/hooks/bitbucket.d.ts.map +1 -0
- package/dist/types/api/hooks/dictionary.d.ts +15 -0
- package/dist/types/api/hooks/dictionary.d.ts.map +1 -0
- package/dist/types/api/hooks/discussions.d.ts +8 -0
- package/dist/types/api/hooks/discussions.d.ts.map +1 -0
- package/dist/types/api/hooks/editor.d.ts +6 -0
- package/dist/types/api/hooks/editor.d.ts.map +1 -0
- package/dist/types/api/hooks/github.d.ts +12 -0
- package/dist/types/api/hooks/github.d.ts.map +1 -0
- package/dist/types/api/hooks/gitlab.d.ts +8 -0
- package/dist/types/api/hooks/gitlab.d.ts.map +1 -0
- package/dist/types/api/hooks/newsletter.d.ts +7 -0
- package/dist/types/api/hooks/newsletter.d.ts.map +1 -0
- package/dist/types/api/hooks/organization.d.ts +16 -0
- package/dist/types/api/hooks/organization.d.ts.map +1 -0
- package/dist/types/api/hooks/project.d.ts +23 -0
- package/dist/types/api/hooks/project.d.ts.map +1 -0
- package/dist/types/api/hooks/reviewer.d.ts +39 -0
- package/dist/types/api/hooks/reviewer.d.ts.map +1 -0
- package/dist/types/api/hooks/search.d.ts +7 -0
- package/dist/types/api/hooks/search.d.ts.map +1 -0
- package/dist/types/api/hooks/showcaseProject.d.ts +16 -0
- package/dist/types/api/hooks/showcaseProject.d.ts.map +1 -0
- package/dist/types/api/hooks/stripe.d.ts +33 -0
- package/dist/types/api/hooks/stripe.d.ts.map +1 -0
- package/dist/types/api/hooks/tag.d.ts +11 -0
- package/dist/types/api/hooks/tag.d.ts.map +1 -0
- package/dist/types/api/hooks/translate.d.ts +8 -0
- package/dist/types/api/hooks/translate.d.ts.map +1 -0
- package/dist/types/api/hooks/user.d.ts +13 -0
- package/dist/types/api/hooks/user.d.ts.map +1 -0
- package/dist/types/api/hooks/utils.d.ts +23 -0
- package/dist/types/api/hooks/utils.d.ts.map +1 -0
- package/dist/types/api/index.d.ts +25 -0
- package/dist/types/{hooks → api}/useAuth/useAuth.d.ts +1 -1
- package/dist/types/api/useAuth/useAuth.d.ts.map +1 -0
- package/dist/types/{hooks → api}/useAuth/useOAuth2.d.ts +1 -1
- package/dist/types/api/useAuth/useOAuth2.d.ts.map +1 -0
- package/dist/types/{hooks → api}/useAuth/useSession.d.ts +1 -1
- package/dist/types/api/useAuth/useSession.d.ts.map +1 -0
- package/dist/types/api/useIntlayerAPI.d.ts +297 -0
- package/dist/types/api/useIntlayerAPI.d.ts.map +1 -0
- package/dist/types/{hooks → api}/useUser/index.d.ts +1 -1
- package/dist/types/api/useUser/index.d.ts.map +1 -0
- package/dist/types/components/Badge/index.d.ts +3 -4
- package/dist/types/components/Badge/index.d.ts.map +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/types/components/Button/Button.d.ts +5 -6
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/Carousel/index.d.ts.map +1 -1
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +1 -1
- package/dist/types/components/Container/index.d.ts +4 -4
- package/dist/types/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -1
- package/dist/types/components/ExpandCollapse/ExpandCollapse.d.ts.map +1 -1
- package/dist/types/components/Input/Checkbox.d.ts +1 -2
- package/dist/types/components/Input/Checkbox.d.ts.map +1 -1
- package/dist/types/components/LanguageBackground/index.d.ts.map +1 -1
- package/dist/types/components/Link/Link.d.ts +2 -3
- package/dist/types/components/Link/Link.d.ts.map +1 -1
- package/dist/types/components/Loader/spinner.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/types/components/SwitchSelector/SwitchSelector.d.ts +2 -3
- package/dist/types/components/SwitchSelector/SwitchSelector.d.ts.map +1 -1
- package/dist/types/components/SwitchSelector/VerticalSwitchSelector.d.ts +1 -1
- package/dist/types/components/SwitchSelector/VerticalSwitchSelector.d.ts.map +1 -1
- package/dist/types/components/TabSelector/TabSelector.d.ts +2 -2
- package/dist/types/components/TabSelector/TabSelector.d.ts.map +1 -1
- package/dist/types/components/Tag/index.d.ts +2 -2
- package/dist/types/components/TextArea/ContentEditableTextArea.d.ts.map +1 -1
- package/dist/types/components/Toaster/Toast.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +1 -7
- package/dist/types/providers/ReactQueryProvider.d.ts +1 -1
- package/dist/types/routes.d.ts +23 -1
- package/dist/types/routes.d.ts.map +1 -1
- package/package.json +35 -30
- package/tailwind.css +0 -19
- package/dist/esm/hooks/reactQuery.mjs +0 -1187
- package/dist/esm/hooks/reactQuery.mjs.map +0 -1
- package/dist/esm/hooks/useAuth/useAuth.mjs.map +0 -1
- package/dist/esm/hooks/useAuth/useOAuth2.mjs.map +0 -1
- package/dist/esm/hooks/useAuth/useSession.mjs.map +0 -1
- package/dist/esm/hooks/useIntlayerAPI.mjs +0 -22
- package/dist/esm/hooks/useIntlayerAPI.mjs.map +0 -1
- package/dist/esm/hooks/useUser/index.mjs.map +0 -1
- package/dist/types/hooks/reactQuery.d.ts +0 -188
- package/dist/types/hooks/reactQuery.d.ts.map +0 -1
- package/dist/types/hooks/useAuth/useAuth.d.ts.map +0 -1
- package/dist/types/hooks/useAuth/useOAuth2.d.ts.map +0 -1
- package/dist/types/hooks/useAuth/useSession.d.ts.map +0 -1
- package/dist/types/hooks/useIntlayerAPI.d.ts +0 -14
- package/dist/types/hooks/useIntlayerAPI.d.ts.map +0 -1
- package/dist/types/hooks/useUser/index.d.ts.map +0 -1
- /package/dist/esm/{hooks → api}/useAuth/index.mjs +0 -0
- /package/dist/types/{hooks → api}/useAuth/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../../../src/api/hooks/editor.ts"],"mappings":";cAMa,wBAAA,QAAwB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cASxB,kBAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UseQueryOptions } from "@tanstack/react-query";
|
|
2
|
+
|
|
3
|
+
//#region src/api/hooks/github.d.ts
|
|
4
|
+
declare const useGithubGetAuthUrl: () => any;
|
|
5
|
+
declare const useGithubAuth: () => any;
|
|
6
|
+
declare const useGithubRepos: (enabled?: boolean) => QueryObserverResult<TData, TError>;
|
|
7
|
+
declare const useGithubCheckConfig: () => any;
|
|
8
|
+
declare const useGithubGetConfigFile: () => any;
|
|
9
|
+
declare const useGithubToken: (options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { useGithubAuth, useGithubCheckConfig, useGithubGetAuthUrl, useGithubGetConfigFile, useGithubRepos, useGithubToken };
|
|
12
|
+
//# sourceMappingURL=github.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.d.ts","names":[],"sources":["../../../../src/api/hooks/github.ts"],"mappings":";;;cASa,mBAAA;AAAA,cASA,aAAA;AAAA,cASA,cAAA,GAAkB,OAAA,eAAuB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAUzC,oBAAA;AAAA,cAmBA,sBAAA;AAAA,cAqBA,cAAA,GAAkB,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/api/hooks/gitlab.d.ts
|
|
2
|
+
declare const useGitlabAuth: () => any;
|
|
3
|
+
declare const useGitlabProjects: (enabled?: boolean, instanceUrl?: string) => QueryObserverResult<TData, TError>;
|
|
4
|
+
declare const useGitlabCheckConfig: () => any;
|
|
5
|
+
declare const useGitlabGetConfigFile: () => any;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { useGitlabAuth, useGitlabCheckConfig, useGitlabGetConfigFile, useGitlabProjects };
|
|
8
|
+
//# sourceMappingURL=gitlab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gitlab.d.ts","names":[],"sources":["../../../../src/api/hooks/gitlab.ts"],"mappings":";cAKa,aAAA;AAAA,cAaA,iBAAA,GACX,OAAA,YACA,WAAA,cAAoB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAWT,oBAAA;AAAA,cAmBA,sBAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/api/hooks/newsletter.d.ts
|
|
2
|
+
declare const useSubscribeToNewsletter: () => any;
|
|
3
|
+
declare const useUnsubscribeFromNewsletter: () => any;
|
|
4
|
+
declare const useGetNewsletterStatus: () => any;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { useGetNewsletterStatus, useSubscribeToNewsletter, useUnsubscribeFromNewsletter };
|
|
7
|
+
//# sourceMappingURL=newsletter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"newsletter.d.ts","names":[],"sources":["../../../../src/api/hooks/newsletter.ts"],"mappings":";cASa,wBAAA;AAAA,cAUA,4BAAA;AAAA,cAUA,sBAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GetOrganizationsParams } from "@intlayer/backend";
|
|
2
|
+
|
|
3
|
+
//#region src/api/hooks/organization.d.ts
|
|
4
|
+
declare const useGetOrganizations: (filters?: GetOrganizationsParams) => QueryObserverResult<TData, TError>;
|
|
5
|
+
declare const useAddOrganization: () => any;
|
|
6
|
+
declare const useUpdateOrganization: () => any;
|
|
7
|
+
declare const useUpdateOrganizationMembers: () => any;
|
|
8
|
+
declare const useUpdateOrganizationMembersById: () => any;
|
|
9
|
+
declare const useAddOrganizationMember: () => any;
|
|
10
|
+
declare const useDeleteOrganization: () => any;
|
|
11
|
+
declare const useDeleteOrganizationById: () => any;
|
|
12
|
+
declare const useSelectOrganization: () => any;
|
|
13
|
+
declare const useUnselectOrganization: () => any;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useAddOrganization, useAddOrganizationMember, useDeleteOrganization, useDeleteOrganizationById, useGetOrganizations, useSelectOrganization, useUnselectOrganization, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateOrganizationMembersById };
|
|
16
|
+
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.d.ts","names":[],"sources":["../../../../src/api/hooks/organization.ts"],"mappings":";;;cAca,mBAAA,GAAuB,OAAA,GAAU,sBAAA,KAAsB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAYvD,kBAAA;AAAA,cAaA,qBAAA;AAAA,cAUA,4BAAA;AAAA,cAaA,gCAAA;AAAA,cAmBA,wBAAA;AAAA,cAaA,qBAAA;AAAA,cAYA,yBAAA;AAAA,cAaA,qBAAA;AAAA,cA8BA,uBAAA"}
|
|
@@ -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/
|
|
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"}
|
|
@@ -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/
|
|
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"}
|