@intlayer/api 9.0.0-canary.9 → 9.0.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.
- package/dist/cjs/cms/createAuthManager.cjs +116 -0
- package/dist/cjs/cms/createAuthManager.cjs.map +1 -0
- package/dist/cjs/cms/createIntlayerCMS.cjs +64 -0
- package/dist/cjs/cms/createIntlayerCMS.cjs.map +1 -0
- package/dist/cjs/cms/index.cjs +7 -0
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs +3 -2
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs.map +1 -1
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs +3 -2
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs.map +1 -1
- package/dist/cjs/fetcher.cjs +2 -1
- package/dist/cjs/fetcher.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/ai.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/ai.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/analytics.cjs +64 -0
- package/dist/cjs/getIntlayerAPI/analytics.cjs.map +1 -0
- package/dist/cjs/getIntlayerAPI/asset.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/asset.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/audit.cjs +11 -1
- package/dist/cjs/getIntlayerAPI/audit.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/bitbucket.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/bitbucket.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/dictionary.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/dictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/editor.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/editor.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/environment.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/environment.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/github.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/github.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/gitlab.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/gitlab.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/index.cjs +6 -2
- package/dist/cjs/getIntlayerAPI/index.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/newsletter.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/newsletter.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/oAuth.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/organization.cjs +19 -0
- package/dist/cjs/getIntlayerAPI/organization.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/project.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/project.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/reviewer.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/reviewer.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/search.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/search.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/showcaseProject.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/showcaseProject.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/status.cjs +48 -0
- package/dist/cjs/getIntlayerAPI/status.cjs.map +1 -0
- package/dist/cjs/getIntlayerAPI/stripe.cjs +13 -2
- package/dist/cjs/getIntlayerAPI/stripe.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/tag.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/tag.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/translate.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/translate.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/user.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/user.cjs.map +1 -1
- package/dist/cjs/index.cjs +33 -3
- package/dist/cjs/proxy.cjs +82 -97
- package/dist/cjs/proxy.cjs.map +1 -1
- package/dist/esm/cms/createAuthManager.mjs +115 -0
- package/dist/esm/cms/createAuthManager.mjs.map +1 -0
- package/dist/esm/cms/createIntlayerCMS.mjs +62 -0
- package/dist/esm/cms/createIntlayerCMS.mjs.map +1 -0
- package/dist/esm/cms/index.mjs +4 -0
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs +3 -2
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs.map +1 -1
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs +3 -2
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs.map +1 -1
- package/dist/esm/fetcher.mjs +2 -1
- package/dist/esm/fetcher.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/ai.mjs +9 -1
- package/dist/esm/getIntlayerAPI/ai.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/analytics.mjs +62 -0
- package/dist/esm/getIntlayerAPI/analytics.mjs.map +1 -0
- package/dist/esm/getIntlayerAPI/asset.mjs +9 -1
- package/dist/esm/getIntlayerAPI/asset.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/audit.mjs +11 -2
- package/dist/esm/getIntlayerAPI/audit.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/bitbucket.mjs +9 -1
- package/dist/esm/getIntlayerAPI/bitbucket.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/dictionary.mjs +9 -1
- package/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/editor.mjs +9 -1
- package/dist/esm/getIntlayerAPI/editor.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/environment.mjs +9 -1
- package/dist/esm/getIntlayerAPI/environment.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/github.mjs +9 -1
- package/dist/esm/getIntlayerAPI/github.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/gitlab.mjs +9 -1
- package/dist/esm/getIntlayerAPI/gitlab.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/index.mjs +6 -2
- package/dist/esm/getIntlayerAPI/index.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/newsletter.mjs +9 -1
- package/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/organization.mjs +19 -1
- package/dist/esm/getIntlayerAPI/organization.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/project.mjs +9 -1
- package/dist/esm/getIntlayerAPI/project.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/reviewer.mjs +9 -1
- package/dist/esm/getIntlayerAPI/reviewer.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/search.mjs +9 -1
- package/dist/esm/getIntlayerAPI/search.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/showcaseProject.mjs +9 -1
- package/dist/esm/getIntlayerAPI/showcaseProject.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/status.mjs +46 -0
- package/dist/esm/getIntlayerAPI/status.mjs.map +1 -0
- package/dist/esm/getIntlayerAPI/stripe.mjs +13 -3
- package/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/tag.mjs +9 -1
- package/dist/esm/getIntlayerAPI/tag.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/translate.mjs +9 -1
- package/dist/esm/getIntlayerAPI/translate.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/user.mjs +9 -1
- package/dist/esm/getIntlayerAPI/user.mjs.map +1 -1
- package/dist/esm/index.mjs +25 -21
- package/dist/esm/proxy.mjs +82 -97
- package/dist/esm/proxy.mjs.map +1 -1
- package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts +9 -0
- package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +1 -0
- package/dist/types/cms/createAuthManager.d.ts +102 -0
- package/dist/types/cms/createAuthManager.d.ts.map +1 -0
- package/dist/types/cms/createIntlayerCMS.d.ts +79 -0
- package/dist/types/cms/createIntlayerCMS.d.ts.map +1 -0
- package/dist/types/cms/index.d.ts +3 -0
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +1 -2
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +1 -2
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
- package/dist/types/fetcher.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts +23 -3
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/analytics.d.ts +29 -0
- package/dist/types/getIntlayerAPI/analytics.d.ts.map +1 -0
- package/dist/types/getIntlayerAPI/asset.d.ts +20 -2
- package/dist/types/getIntlayerAPI/asset.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/audit.d.ts +25 -3
- package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/bitbucket.d.ts +16 -2
- package/dist/types/getIntlayerAPI/bitbucket.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts +23 -6
- package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +17 -3
- package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/environment.d.ts +18 -3
- package/dist/types/getIntlayerAPI/environment.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/github.d.ts +17 -2
- package/dist/types/getIntlayerAPI/github.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/gitlab.d.ts +16 -2
- package/dist/types/getIntlayerAPI/gitlab.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/index.d.ts +6 -3
- package/dist/types/getIntlayerAPI/index.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts +15 -3
- package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/oAuth.d.ts +1 -2
- package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts +27 -5
- package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +34 -7
- package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/reviewer.d.ts +49 -5
- package/dist/types/getIntlayerAPI/reviewer.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts +13 -3
- package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts +27 -6
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/status.d.ts +35 -0
- package/dist/types/getIntlayerAPI/status.d.ts.map +1 -0
- package/dist/types/getIntlayerAPI/stripe.d.ts +61 -25
- package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts +18 -5
- package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/translate.d.ts +38 -3
- package/dist/types/getIntlayerAPI/translate.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +25 -7
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +27 -21
- package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts +9 -0
- package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +1 -0
- package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +19 -0
- package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +1 -0
- package/dist/types/intlayer-editor/server/dist/export.d.ts +3 -0
- package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts +408 -0
- package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +1 -0
- package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts +19 -0
- package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts.map +1 -0
- package/dist/types/proxy.d.ts +12 -11
- package/dist/types/proxy.d.ts.map +1 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +31 -7
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
|
|
5
|
+
import { GetShowcaseProjectByIdParams, SubmitShowcaseProjectBody, ToggleShowcaseDownvoteBody, ToggleShowcaseUpvoteBody, UpdateShowcaseProjectBody } from "@intlayer/backend";
|
|
5
6
|
//#region src/getIntlayerAPI/showcaseProject.d.ts
|
|
6
7
|
type ShowcaseProjectsQuery = {
|
|
7
8
|
page?: number;
|
|
@@ -16,18 +17,38 @@ type OtherShowcaseProjectsQuery = {
|
|
|
16
17
|
};
|
|
17
18
|
declare const getShowcaseProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
18
19
|
getShowcaseProjects: (query?: ShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectsResult>;
|
|
19
|
-
getShowcaseProjectById: (projectId: GetShowcaseProjectByIdParams[
|
|
20
|
+
getShowcaseProjectById: (projectId: GetShowcaseProjectByIdParams['projectId'], otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectByIdResult>;
|
|
20
21
|
getOtherShowcaseProjects: (query: OtherShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetOtherShowcaseProjectsResult>;
|
|
21
22
|
submitShowcaseProject: (body: SubmitShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<SubmitShowcaseProjectResult>;
|
|
22
23
|
toggleShowcaseUpvote: (body: ToggleShowcaseUpvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseUpvoteResult>;
|
|
23
24
|
toggleShowcaseDownvote: (body: ToggleShowcaseDownvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseDownvoteResult>;
|
|
24
|
-
deleteShowcaseProject: (projectId: GetShowcaseProjectByIdParams[
|
|
25
|
+
deleteShowcaseProject: (projectId: GetShowcaseProjectByIdParams['projectId'], otherOptions?: FetcherOptions) => Promise<{
|
|
25
26
|
data: {
|
|
26
27
|
success: boolean;
|
|
27
28
|
};
|
|
28
29
|
}>;
|
|
29
|
-
updateShowcaseProject: (projectId: GetShowcaseProjectByIdParams[
|
|
30
|
+
updateShowcaseProject: (projectId: GetShowcaseProjectByIdParams['projectId'], body: UpdateShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateShowcaseProjectResult>;
|
|
30
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Authenticated `showcaseProject` endpoint bound to an Intlayer CMS authenticator.
|
|
34
|
+
*
|
|
35
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
36
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
37
|
+
*/
|
|
38
|
+
declare const showcaseProjectEndpoint: CMSEndpoint<{
|
|
39
|
+
getShowcaseProjects: (query?: ShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectsResult>;
|
|
40
|
+
getShowcaseProjectById: (projectId: GetShowcaseProjectByIdParams['projectId'], otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectByIdResult>;
|
|
41
|
+
getOtherShowcaseProjects: (query: OtherShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetOtherShowcaseProjectsResult>;
|
|
42
|
+
submitShowcaseProject: (body: SubmitShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<SubmitShowcaseProjectResult>;
|
|
43
|
+
toggleShowcaseUpvote: (body: ToggleShowcaseUpvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseUpvoteResult>;
|
|
44
|
+
toggleShowcaseDownvote: (body: ToggleShowcaseDownvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseDownvoteResult>;
|
|
45
|
+
deleteShowcaseProject: (projectId: GetShowcaseProjectByIdParams['projectId'], otherOptions?: FetcherOptions) => Promise<{
|
|
46
|
+
data: {
|
|
47
|
+
success: boolean;
|
|
48
|
+
};
|
|
49
|
+
}>;
|
|
50
|
+
updateShowcaseProject: (projectId: GetShowcaseProjectByIdParams['projectId'], body: UpdateShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateShowcaseProjectResult>;
|
|
51
|
+
}>;
|
|
31
52
|
//#endregion
|
|
32
|
-
export { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI };
|
|
53
|
+
export { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI, showcaseProjectEndpoint };
|
|
33
54
|
//# sourceMappingURL=showcaseProject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showcaseProject.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"showcaseProject.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"mappings":";;;;;;KAqBY;EACV;EACA;EACA;EACA;EACA;;KAGU;EACV;EACA;;cAGW,wBAAqB,iBAChB,gBAAc,iBACb;EAOP,sBAAA,QAAA,uBAAqB,eACf,mBAAc,QAAA;EAoBjB,yBAAA,WAAA,2CAAyC,eACtC,mBAAc,QAAA;EAUrB,2BAAA,OAAA,4BAA0B,eACnB,mBAAc,QAAA;EAatB,wBAAA,MAAA,2BAAyB,eACjB,mBAAc,QAAA;EAUtB,uBAAA,MAAA,0BAAwB,eAChB,mBAAc,QAAA;EAUtB,yBAAA,MAAA,4BAA0B,eAClB,mBAAc,QAAA;EAUjB,wBAAA,WAAA,2CAAyC,eACtC,mBAAc;IAEN;MAAE;;;EAQb,wBAAA,WAAA,2CAAyC,MAC9C,2BAAyB,eACjB,mBAAc,QAAA;;;;;;;;cA2BnB,yBA3BmB;EA5FpB,sBAAA,QAAA,uBAAqB,eACf,mBAAc,QAAA;EAoBjB,yBAAA,WAAA,2CAAyC,eACtC,mBAAc,QAAA;EAUrB,2BAAA,OAAA,4BAA0B,eACnB,mBAAc,QAAA;EAatB,wBAAA,MAAA,2BAAyB,eACjB,mBAAc,QAAA;EAUtB,uBAAA,MAAA,0BAAwB,eAChB,mBAAc,QAAA;EAUtB,yBAAA,MAAA,4BAA0B,eAClB,mBAAc,QAAA;EAUjB,wBAAA,WAAA,2CAAyC,eACtC,mBAAc;IAEN;MAAE;;;EAQb,wBAAA,WAAA,2CAAyC,MAC9C,2BAAyB,eACjB,mBAAc,QAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
4
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
5
|
+
//#region src/getIntlayerAPI/status.d.ts
|
|
6
|
+
/** Result of the demo-session bootstrap endpoint. */
|
|
7
|
+
type GetDemoSessionResult = {
|
|
8
|
+
ok: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Instance/entry status endpoints. These back the decisions made when an
|
|
12
|
+
* unauthenticated visitor reaches the app root:
|
|
13
|
+
* - `getSetupStatus` — on a self-hosted instance, whether the first
|
|
14
|
+
* super-admin still needs to be created.
|
|
15
|
+
* - `getDemoSession` — on the hosted cloud, signs the visitor into the shared
|
|
16
|
+
* read-only demo account (the backend sets the session cookie on the
|
|
17
|
+
* response).
|
|
18
|
+
*/
|
|
19
|
+
declare const getStatusAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
20
|
+
getSetupStatus: (otherOptions?: FetcherOptions) => Promise<GetSetupStatusResult>;
|
|
21
|
+
getDemoSession: (otherOptions?: FetcherOptions) => Promise<GetDemoSessionResult>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Instance status endpoints bound to an Intlayer CMS authenticator.
|
|
25
|
+
*
|
|
26
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
27
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
28
|
+
*/
|
|
29
|
+
declare const statusEndpoint: CMSEndpoint<{
|
|
30
|
+
getSetupStatus: (otherOptions?: FetcherOptions) => Promise<GetSetupStatusResult>;
|
|
31
|
+
getDemoSession: (otherOptions?: FetcherOptions) => Promise<GetDemoSessionResult>;
|
|
32
|
+
}>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { GetDemoSessionResult, getStatusAPI, statusEndpoint };
|
|
35
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/status.ts"],"mappings":";;;;;;KAOY;EAAyB;;;;;;;;;;;cAWxB,eAAY,iBACP,gBAAc,iBACb;EAU2B,iBAAA,eAAA,mBAAc,QAAA;EAgBd,iBAAA,eAAA,mBAAc,QAAA;;;;;;;;cAsB/C,gBAtB+C;EAhBd,iBAAA,eAAA,mBAAc,QAAA;EAgBd,iBAAA,eAAA,mBAAc,QAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
|
|
5
|
+
import { CreatePromoCodeBody, GetAffiliatesParams, GetCheckoutSessionBody, GetPricingBody, GrantAffiliateAccessBody, SendAffiliateInvitationBody, UpdateAffiliateStatusBody, UpdatePromoCodeBody } from "@intlayer/backend";
|
|
5
6
|
//#region src/getIntlayerAPI/stripe.d.ts
|
|
6
7
|
declare const getStripeAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
8
|
getPricing: (body?: GetPricingBody, otherOptions?: FetcherOptions) => Promise<GetPricingResult>;
|
|
@@ -12,9 +13,7 @@ declare const getStripeAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: I
|
|
|
12
13
|
createPortalSession: (otherOptions?: FetcherOptions) => Promise<CreatePortalSessionResult>;
|
|
13
14
|
grantAffiliateAccess: (body: GrantAffiliateAccessBody, otherOptions?: FetcherOptions) => Promise<GrantAffiliateAccessResult>;
|
|
14
15
|
getAffiliates: (params?: GetAffiliatesParams, otherOptions?: FetcherOptions) => Promise<GetAffiliatesResult>;
|
|
15
|
-
getAffiliateById: ({
|
|
16
|
-
id
|
|
17
|
-
}: {
|
|
16
|
+
getAffiliateById: ({ id }: {
|
|
18
17
|
id: string;
|
|
19
18
|
}, otherOptions?: FetcherOptions) => Promise<GetAffiliateByIdResult>;
|
|
20
19
|
getAffiliate: (otherOptions?: FetcherOptions) => Promise<GetAffiliateResult>;
|
|
@@ -25,23 +24,15 @@ declare const getStripeAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: I
|
|
|
25
24
|
getAffiliateStats: (otherOptions?: FetcherOptions) => Promise<GetAffiliateStatsResult>;
|
|
26
25
|
getAffiliateInvitations: (params?: GetAffiliatesParams, otherOptions?: FetcherOptions) => Promise<GetAffiliateInvitationsResult>;
|
|
27
26
|
sendAffiliateInvitation: (body: SendAffiliateInvitationBody, otherOptions?: FetcherOptions) => Promise<SendAffiliateInvitationResult>;
|
|
28
|
-
getAffiliateInvitation: ({
|
|
29
|
-
token
|
|
30
|
-
}: {
|
|
27
|
+
getAffiliateInvitation: ({ token }: {
|
|
31
28
|
token: string;
|
|
32
29
|
}, otherOptions?: FetcherOptions) => Promise<GetAffiliateInvitationResult>;
|
|
33
|
-
acceptAffiliateInvitation: ({
|
|
34
|
-
token,
|
|
35
|
-
country,
|
|
36
|
-
stripeAccountType
|
|
37
|
-
}: {
|
|
30
|
+
acceptAffiliateInvitation: ({ token, country, stripeAccountType }: {
|
|
38
31
|
token: string;
|
|
39
32
|
country?: string;
|
|
40
|
-
stripeAccountType?:
|
|
33
|
+
stripeAccountType?: 'express' | 'standard';
|
|
41
34
|
}, otherOptions?: FetcherOptions) => Promise<AcceptAffiliateInvitationResult>;
|
|
42
|
-
updateAffiliateStatus: ({
|
|
43
|
-
id
|
|
44
|
-
}: {
|
|
35
|
+
updateAffiliateStatus: ({ id }: {
|
|
45
36
|
id: string;
|
|
46
37
|
}, body: UpdateAffiliateStatusBody, otherOptions?: FetcherOptions) => Promise<UpdateAffiliateStatusResult>;
|
|
47
38
|
getPromoCodeById: (id: string, otherOptions?: FetcherOptions) => Promise<GetPromoCodeByIdResult>;
|
|
@@ -49,19 +40,64 @@ declare const getStripeAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: I
|
|
|
49
40
|
affiliateId?: string;
|
|
50
41
|
}, otherOptions?: FetcherOptions) => Promise<GetPromoCodesResult>;
|
|
51
42
|
createPromoCode: (body: CreatePromoCodeBody, otherOptions?: FetcherOptions) => Promise<CreatePromoCodeResult>;
|
|
52
|
-
updatePromoCode: ({
|
|
53
|
-
id,
|
|
54
|
-
...body
|
|
55
|
-
}: {
|
|
43
|
+
updatePromoCode: ({ id, ...body }: {
|
|
56
44
|
id: string;
|
|
57
45
|
} & UpdatePromoCodeBody, otherOptions?: FetcherOptions) => Promise<UpdatePromoCodeResult>;
|
|
58
|
-
deletePromoCode: ({
|
|
59
|
-
id
|
|
60
|
-
}: {
|
|
46
|
+
deletePromoCode: ({ id }: {
|
|
61
47
|
id: string;
|
|
62
48
|
}, otherOptions?: FetcherOptions) => Promise<DeletePromoCodeResult>;
|
|
63
49
|
getAffiliatePromoCode: (referralCode: string, otherOptions?: FetcherOptions) => Promise<any>;
|
|
64
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* Authenticated `stripe` endpoint bound to an Intlayer CMS authenticator.
|
|
53
|
+
*
|
|
54
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
55
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
56
|
+
*/
|
|
57
|
+
declare const stripeEndpoint: CMSEndpoint<{
|
|
58
|
+
getPricing: (body?: GetPricingBody, otherOptions?: FetcherOptions) => Promise<GetPricingResult>;
|
|
59
|
+
getSubscription: (body?: GetCheckoutSessionBody, otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
|
|
60
|
+
cancelSubscription: (otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
|
|
61
|
+
getInvoices: (otherOptions?: FetcherOptions) => Promise<GetInvoicesResult>;
|
|
62
|
+
getPaymentMethod: (otherOptions?: FetcherOptions) => Promise<GetPaymentMethodResult>;
|
|
63
|
+
createPortalSession: (otherOptions?: FetcherOptions) => Promise<CreatePortalSessionResult>;
|
|
64
|
+
grantAffiliateAccess: (body: GrantAffiliateAccessBody, otherOptions?: FetcherOptions) => Promise<GrantAffiliateAccessResult>;
|
|
65
|
+
getAffiliates: (params?: GetAffiliatesParams, otherOptions?: FetcherOptions) => Promise<GetAffiliatesResult>;
|
|
66
|
+
getAffiliateById: ({ id }: {
|
|
67
|
+
id: string;
|
|
68
|
+
}, otherOptions?: FetcherOptions) => Promise<GetAffiliateByIdResult>;
|
|
69
|
+
getAffiliate: (otherOptions?: FetcherOptions) => Promise<GetAffiliateResult>;
|
|
70
|
+
getAffiliateAccountSession: (otherOptions?: FetcherOptions) => Promise<GetAffiliateAccountSessionResult>;
|
|
71
|
+
getAffiliateOnboardingLink: (params?: {
|
|
72
|
+
returnUrl?: string;
|
|
73
|
+
}, otherOptions?: FetcherOptions) => Promise<GetAffiliateOnboardingLinkResult>;
|
|
74
|
+
getAffiliateStats: (otherOptions?: FetcherOptions) => Promise<GetAffiliateStatsResult>;
|
|
75
|
+
getAffiliateInvitations: (params?: GetAffiliatesParams, otherOptions?: FetcherOptions) => Promise<GetAffiliateInvitationsResult>;
|
|
76
|
+
sendAffiliateInvitation: (body: SendAffiliateInvitationBody, otherOptions?: FetcherOptions) => Promise<SendAffiliateInvitationResult>;
|
|
77
|
+
getAffiliateInvitation: ({ token }: {
|
|
78
|
+
token: string;
|
|
79
|
+
}, otherOptions?: FetcherOptions) => Promise<GetAffiliateInvitationResult>;
|
|
80
|
+
acceptAffiliateInvitation: ({ token, country, stripeAccountType }: {
|
|
81
|
+
token: string;
|
|
82
|
+
country?: string;
|
|
83
|
+
stripeAccountType?: 'express' | 'standard';
|
|
84
|
+
}, otherOptions?: FetcherOptions) => Promise<AcceptAffiliateInvitationResult>;
|
|
85
|
+
updateAffiliateStatus: ({ id }: {
|
|
86
|
+
id: string;
|
|
87
|
+
}, body: UpdateAffiliateStatusBody, otherOptions?: FetcherOptions) => Promise<UpdateAffiliateStatusResult>;
|
|
88
|
+
getPromoCodeById: (id: string, otherOptions?: FetcherOptions) => Promise<GetPromoCodeByIdResult>;
|
|
89
|
+
getPromoCodes: (params?: {
|
|
90
|
+
affiliateId?: string;
|
|
91
|
+
}, otherOptions?: FetcherOptions) => Promise<GetPromoCodesResult>;
|
|
92
|
+
createPromoCode: (body: CreatePromoCodeBody, otherOptions?: FetcherOptions) => Promise<CreatePromoCodeResult>;
|
|
93
|
+
updatePromoCode: ({ id, ...body }: {
|
|
94
|
+
id: string;
|
|
95
|
+
} & UpdatePromoCodeBody, otherOptions?: FetcherOptions) => Promise<UpdatePromoCodeResult>;
|
|
96
|
+
deletePromoCode: ({ id }: {
|
|
97
|
+
id: string;
|
|
98
|
+
}, otherOptions?: FetcherOptions) => Promise<DeletePromoCodeResult>;
|
|
99
|
+
getAffiliatePromoCode: (referralCode: string, otherOptions?: FetcherOptions) => Promise<any>;
|
|
100
|
+
}>;
|
|
65
101
|
//#endregion
|
|
66
|
-
export { getStripeAPI };
|
|
102
|
+
export { getStripeAPI, stripeEndpoint };
|
|
67
103
|
//# sourceMappingURL=stripe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/stripe.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stripe.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/stripe.ts"],"mappings":";;;;;;cAqCa,eAAY,iBACP,gBAAc,iBACb;EAWR,aAAA,OAAA,gBAAc,eACP,mBAAc,QAAA;EAiBrB,kBAAA,OAAA,wBAAsB,eACf,mBAAc,QAAA;EAgBkB,qBAAA,eAAA,mBAAc,QAAA;EAarB,cAAA,eAAA,mBAAc,QAAA;EAYT,mBAAA,eAAA,mBAAc,QAAA;EAWX,sBAAA,eAAA,mBAAc,QAAA;EAYvD,uBAAA,MAAA,0BAAwB,eAChB,mBAAc,QAAA;EAanB,gBAAA,SAAA,qBAAmB,eACd,mBAAc,QAAA;EAapB,qBAAA;IAAE;KAAY,eACR,mBAAc,QAAA;EAYY,eAAA,eAAA,mBAAc,QAAA;EAYxC,6BAAA,eAAA,mBAAc,QAAA;EAanB,6BAAA;IAAE;KAAoB,eACjB,mBAAc,QAAA;EAYiB,oBAAA,eAAA,mBAAc,QAAA;EAYnD,0BAAA,SAAA,qBAAmB,eACb,mBAAc,QAAA;EAmBtB,0BAAA,MAAA,6BAA2B,eACnB,mBAAc,QAAA;EAajB,2BAAA;IAAE;KAAe,eACd,mBAAc,QAAA;EAgCzB,8BAAA,OAAA,SAAA;IACD;IACA;IACA;KACD,eACa,mBAAc,QAAA;EAxBpB,0BAAA;IAAE;KAAY,MAChB,2BAAyB,eACjB,mBAAc,QAAA;EAmCxB,mBAAA,YAAM,eACI,mBAAc,QAAA;EAUpB,gBAAA;IAAE;KAAsB,eAClB,mBAAc,QAAA;EAiBtB,kBAAA,MAAA,qBAAmB,eACX,mBAAc,QAAA;EAaX,oBAAA,OAAA;IAAE;MAAe,qBAAmB,eACvC,mBAAc,QAAA;EAapB,oBAAA;IAAE;KAAY,eACR,mBAAc,QAAA;EAad,wBAAA,sBAAM,eACN,mBAAc;;;;;;;;cA2CnB,gBA3CmB;EA3UrB,aAAA,OAAA,gBAAc,eACP,mBAAc,QAAA;EAiBrB,kBAAA,OAAA,wBAAsB,eACf,mBAAc,QAAA;EAgBkB,qBAAA,eAAA,mBAAc,QAAA;EAarB,cAAA,eAAA,mBAAc,QAAA;EAYT,mBAAA,eAAA,mBAAc,QAAA;EAWX,sBAAA,eAAA,mBAAc,QAAA;EAYvD,uBAAA,MAAA,0BAAwB,eAChB,mBAAc,QAAA;EAanB,gBAAA,SAAA,qBAAmB,eACd,mBAAc,QAAA;EAapB,qBAAA;IAAE;KAAY,eACR,mBAAc,QAAA;EAYY,eAAA,eAAA,mBAAc,QAAA;EAYxC,6BAAA,eAAA,mBAAc,QAAA;EAanB,6BAAA;IAAE;KAAoB,eACjB,mBAAc,QAAA;EAYiB,oBAAA,eAAA,mBAAc,QAAA;EAYnD,0BAAA,SAAA,qBAAmB,eACb,mBAAc,QAAA;EAmBtB,0BAAA,MAAA,6BAA2B,eACnB,mBAAc,QAAA;EAajB,2BAAA;IAAE;KAAe,eACd,mBAAc,QAAA;EAgCzB,8BAAA,OAAA,SAAA;IACD;IACA;IACA;KACD,eACa,mBAAc,QAAA;EAxBpB,0BAAA;IAAE;KAAY,MAChB,2BAAyB,eACjB,mBAAc,QAAA;EAmCxB,mBAAA,YAAM,eACI,mBAAc,QAAA;EAUpB,gBAAA;IAAE;KAAsB,eAClB,mBAAc,QAAA;EAiBtB,kBAAA,MAAA,qBAAmB,eACX,mBAAc,QAAA;EAaX,oBAAA,OAAA;IAAE;MAAe,qBAAmB,eACvC,mBAAc,QAAA;EAapB,oBAAA;IAAE;KAAY,eACR,mBAAc,QAAA;EAad,wBAAA,sBAAM,eACN,mBAAc"}
|
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
|
|
5
|
+
import { AddTagBody, DeleteTagParams, GetTagsParams, UpdateTagBody, UpdateTagParams } from "@intlayer/backend";
|
|
5
6
|
//#region src/getIntlayerAPI/tag.d.ts
|
|
6
7
|
declare const getTagAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
8
|
getTags: (filters?: GetTagsParams, otherOptions?: FetcherOptions) => Promise<GetTagsResult>;
|
|
8
9
|
addTag: (tag: AddTagBody, otherOptions?: FetcherOptions) => Promise<AddTagResult>;
|
|
9
|
-
updateTag: (tagId: UpdateTagParams[
|
|
10
|
-
deleteTag: (tagId: DeleteTagParams[
|
|
10
|
+
updateTag: (tagId: UpdateTagParams['tagId'], tag: UpdateTagBody, otherOptions?: FetcherOptions) => Promise<UpdateTagResult>;
|
|
11
|
+
deleteTag: (tagId: DeleteTagParams['tagId'], otherOptions?: FetcherOptions) => Promise<DeleteTagResult>;
|
|
11
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Authenticated `tag` endpoint bound to an Intlayer CMS authenticator.
|
|
15
|
+
*
|
|
16
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
17
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
18
|
+
*/
|
|
19
|
+
declare const tagEndpoint: CMSEndpoint<{
|
|
20
|
+
getTags: (filters?: GetTagsParams, otherOptions?: FetcherOptions) => Promise<GetTagsResult>;
|
|
21
|
+
addTag: (tag: AddTagBody, otherOptions?: FetcherOptions) => Promise<AddTagResult>;
|
|
22
|
+
updateTag: (tagId: UpdateTagParams['tagId'], tag: UpdateTagBody, otherOptions?: FetcherOptions) => Promise<UpdateTagResult>;
|
|
23
|
+
deleteTag: (tagId: DeleteTagParams['tagId'], otherOptions?: FetcherOptions) => Promise<DeleteTagResult>;
|
|
24
|
+
}>;
|
|
12
25
|
//#endregion
|
|
13
|
-
export { getTagAPI };
|
|
26
|
+
export { getTagAPI, tagEndpoint };
|
|
14
27
|
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/tag.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/tag.ts"],"mappings":";;;;;;cAgBa,YAAS,iBACJ,gBAAc,iBACb;EAWL,UAAA,UAAA,eAAa,eACT,mBAAc,QAAA;EAiBH,SAAA,KAAA,YAAU,eAAgB,mBAAc,QAAA;EAgB1D,YAAA,OAAA,0BAAwB,KAC1B,eAAa,eACJ,mBAAc,QAAA;EAiBrB,YAAA,OAAA,0BAAwB,eAEjB,mBAAc,QAAA;;;;;;;;cAyBnB,aAzBmB;EAvDlB,UAAA,UAAA,eAAa,eACT,mBAAc,QAAA;EAiBH,SAAA,KAAA,YAAU,eAAgB,mBAAc,QAAA;EAgB1D,YAAA,OAAA,0BAAwB,KAC1B,eAAa,eACJ,mBAAc,QAAA;EAiBrB,YAAA,OAAA,0BAAwB,eAEjB,mBAAc,QAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
|
|
5
|
+
import { TranslateDictionariesBody, TranslateDictionariesResult } from "@intlayer/backend";
|
|
5
6
|
//#region src/getIntlayerAPI/translate.d.ts
|
|
6
7
|
declare const getTranslateAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
8
|
translateDictionaries: (body: TranslateDictionariesBody, otherOptions?: FetcherOptions) => Promise<TranslateDictionariesResult>;
|
|
@@ -31,6 +32,40 @@ declare const getTranslateAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?
|
|
|
31
32
|
};
|
|
32
33
|
}>;
|
|
33
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Authenticated `translate` endpoint bound to an Intlayer CMS authenticator.
|
|
37
|
+
*
|
|
38
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
39
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
40
|
+
*/
|
|
41
|
+
declare const translateEndpoint: CMSEndpoint<{
|
|
42
|
+
translateDictionaries: (body: TranslateDictionariesBody, otherOptions?: FetcherOptions) => Promise<TranslateDictionariesResult>;
|
|
43
|
+
pauseTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
|
|
44
|
+
data: {
|
|
45
|
+
jobId: string;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
resumeTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
|
|
49
|
+
data: {
|
|
50
|
+
jobId: string;
|
|
51
|
+
};
|
|
52
|
+
}>;
|
|
53
|
+
stopTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
|
|
54
|
+
data: {
|
|
55
|
+
jobId: string;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
retryTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
|
|
59
|
+
data: {
|
|
60
|
+
jobId: string;
|
|
61
|
+
};
|
|
62
|
+
}>;
|
|
63
|
+
restartTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
|
|
64
|
+
data: {
|
|
65
|
+
jobId: string;
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
34
69
|
//#endregion
|
|
35
|
-
export { type TranslateDictionariesBody, type TranslateDictionariesResult, getTranslateAPI };
|
|
70
|
+
export { type TranslateDictionariesBody, type TranslateDictionariesResult, getTranslateAPI, translateEndpoint };
|
|
36
71
|
//# sourceMappingURL=translate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/translate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"translate.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/translate.ts"],"mappings":";;;;;;cAWa,kBAAe,iBACV,gBAAc,iBACb;EAOT,wBAAA,MAAA,2BAAyB,eACjB,mBAAc,QAAA;EAUrB,sBAAA,eAAM,eACC,mBAAc;IAEZ;MAAE;;;EAQX,uBAAA,eAAM,eACC,mBAAc;IAEZ;MAAE;;;EAQX,qBAAA,eAAM,eACC,mBAAc;IAEZ;MAAE;;;EAQX,sBAAA,eAAM,eACC,mBAAc;IAEZ;MAAE;;;EAQX,wBAAA,eAAM,eACC,mBAAc;IAEZ;MAAE;;;;;;;;;;cAuBT,mBAzBmB;EAxDtB,wBAAA,MAAA,2BAAyB,eACjB,mBAAc,QAAA;EAUrB,sBAAA,eAAM,eACC,mBAAc;IAEZ;MAAE;;;EAQX,uBAAA,eAAM,eACC,mBAAc;IAEZ;MAAE;;;EAQX,qBAAA,eAAM,eACC,mBAAc;IAEZ;MAAE;;;EAQX,sBAAA,eAAM,eACC,mBAAc;IAEZ;MAAE;;;EAQX,wBAAA,eAAM,eACC,mBAAc;IAEZ;MAAE"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
|
|
5
|
+
import { CreateUserBody, GetUserByEmailParams, GetUserByIdParams, GetUsersParams, UpdateUserBody, UserAPI } from "@intlayer/backend";
|
|
5
6
|
//#region src/getIntlayerAPI/user.d.ts
|
|
6
7
|
type GetUserByAccountParams = {
|
|
7
8
|
providerAccountId: string;
|
|
@@ -10,14 +11,31 @@ type GetUserByAccountParams = {
|
|
|
10
11
|
declare const getUserAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
11
12
|
createUser: (user: CreateUserBody, otherOptions?: FetcherOptions) => Promise<CreateUserResult>;
|
|
12
13
|
getUsers: (filters?: GetUsersParams, otherOptions?: FetcherOptions) => Promise<GetUsersResult>;
|
|
13
|
-
getUserById: (userId: GetUserByIdParams[
|
|
14
|
-
getUserByAccount: (providerAccountId: GetUserByAccountParams[
|
|
15
|
-
getUserByEmail: (email: GetUserByEmailParams[
|
|
14
|
+
getUserById: (userId: GetUserByIdParams['userId'], otherOptions?: FetcherOptions) => Promise<GetUserByIdResult>;
|
|
15
|
+
getUserByAccount: (providerAccountId: GetUserByAccountParams['providerAccountId'], provider: GetUserByAccountParams['provider'], otherOptions?: FetcherOptions) => Promise<ResponseData<UserAPI>>;
|
|
16
|
+
getUserByEmail: (email: GetUserByEmailParams['email'], otherOptions?: FetcherOptions) => Promise<GetUserByEmailResult>;
|
|
16
17
|
updateUser: (user: UpdateUserBody, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
17
18
|
deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
18
19
|
uploadAvatar: (file: File, otherOptions?: FetcherOptions) => Promise<UploadUserAvatarResult>;
|
|
19
|
-
getVerifyEmailStatusURL: (userId: string | UserAPI[
|
|
20
|
+
getVerifyEmailStatusURL: (userId: string | UserAPI['id']) => string;
|
|
20
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Authenticated `user` endpoint bound to an Intlayer CMS authenticator.
|
|
24
|
+
*
|
|
25
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
26
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
27
|
+
*/
|
|
28
|
+
declare const userEndpoint: CMSEndpoint<{
|
|
29
|
+
createUser: (user: CreateUserBody, otherOptions?: FetcherOptions) => Promise<CreateUserResult>;
|
|
30
|
+
getUsers: (filters?: GetUsersParams, otherOptions?: FetcherOptions) => Promise<GetUsersResult>;
|
|
31
|
+
getUserById: (userId: GetUserByIdParams['userId'], otherOptions?: FetcherOptions) => Promise<GetUserByIdResult>;
|
|
32
|
+
getUserByAccount: (providerAccountId: GetUserByAccountParams['providerAccountId'], provider: GetUserByAccountParams['provider'], otherOptions?: FetcherOptions) => Promise<ResponseData<UserAPI>>;
|
|
33
|
+
getUserByEmail: (email: GetUserByEmailParams['email'], otherOptions?: FetcherOptions) => Promise<GetUserByEmailResult>;
|
|
34
|
+
updateUser: (user: UpdateUserBody, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
35
|
+
deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
36
|
+
uploadAvatar: (file: File, otherOptions?: FetcherOptions) => Promise<UploadUserAvatarResult>;
|
|
37
|
+
getVerifyEmailStatusURL: (userId: string | UserAPI['id']) => string;
|
|
38
|
+
}>;
|
|
21
39
|
//#endregion
|
|
22
|
-
export { getUserAPI };
|
|
40
|
+
export { getUserAPI, userEndpoint };
|
|
23
41
|
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/user.ts"],"mappings":";;;;;;KAoBK;EAA2B;EAA2B;;cAG9C,aAAU,iBACL,gBAAc,iBACb;EAuFT,aAAA,MAAA,gBAAc,eACN,mBAAc,QAAA;EA5ElB,WAAA,UAAA,gBAAc,eACV,mBAAc,QAAA;EAmBpB,cAAA,QAAA,6BAA2B,eACrB,mBAAc,QAAA;EAmCT,mBAAA,mBAAA,6CAA2C,UACpD,oCAAkC,eAC9B,mBAAc,QAAA,aAAA;EApBrB,iBAAA,OAAA,+BAA6B,eACtB,mBAAc,QAAA;EAuDtB,aAAA,MAAA,gBAAc,eACN,mBAAc,QAAA;EAkBpB,aAAA,gBAAM,eACA,mBAAc,QAAA;EAiBtB,eAAA,MAAA,MAAI,eACI,mBAAc,QAAA;EAiCW,0BAAA,iBAAS;;;;;;;;cAsBvC,cAtBuC;EA1F1C,aAAA,MAAA,gBAAc,eACN,mBAAc,QAAA;EA5ElB,WAAA,UAAA,gBAAc,eACV,mBAAc,QAAA;EAmBpB,cAAA,QAAA,6BAA2B,eACrB,mBAAc,QAAA;EAmCT,mBAAA,mBAAA,6CAA2C,UACpD,oCAAkC,eAC9B,mBAAc,QAAA,aAAA;EApBrB,iBAAA,OAAA,+BAA6B,eACtB,mBAAc,QAAA;EAuDtB,aAAA,MAAA,gBAAc,eACN,mBAAc,QAAA;EAkBpB,aAAA,gBAAM,eACA,mBAAc,QAAA;EAiBtB,eAAA,MAAA,MAAI,eACI,mBAAc,QAAA;EAiCW,0BAAA,iBAAS"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,27 +1,33 @@
|
|
|
1
|
+
import { FetcherOptions, fetcher, fetcherOptions } from "./fetcher.js";
|
|
2
|
+
import { AuthManager, AuthManagerOptions, BindSectionOptions, createAuthManager } from "./cms/createAuthManager.js";
|
|
3
|
+
import { CMSEndpoint, IntlayerCMS, IntlayerCMSOptions, createEndpoint, createIntlayerCMS } from "./cms/createIntlayerCMS.js";
|
|
4
|
+
import "./cms/index.js";
|
|
1
5
|
import { fetchDistantDictionaries } from "./distantDictionary/fetchDistantDictionaries.js";
|
|
2
6
|
import { fetchDistantDictionary } from "./distantDictionary/fetchDistantDictionary.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { getAssetAPI } from "./getIntlayerAPI/asset.js";
|
|
6
|
-
import { AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, StartRecursiveAuditResult, getAuditAPI } from "./getIntlayerAPI/audit.js";
|
|
7
|
-
import { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, getBitbucketAPI } from "./getIntlayerAPI/bitbucket.js";
|
|
8
|
-
import { getDictionaryAPI } from "./getIntlayerAPI/dictionary.js";
|
|
9
|
-
import { getEditorAPI } from "./getIntlayerAPI/editor.js";
|
|
10
|
-
import { getEnvironmentAPI } from "./getIntlayerAPI/environment.js";
|
|
11
|
-
import { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubGetTokenResult, GitHubListReposResult, GitHubRepository, getGithubAPI } from "./getIntlayerAPI/github.js";
|
|
12
|
-
import { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI } from "./getIntlayerAPI/gitlab.js";
|
|
13
|
-
import { getNewsletterAPI } from "./getIntlayerAPI/newsletter.js";
|
|
7
|
+
import "./distantDictionary/index.js";
|
|
8
|
+
import { analyticsEndpoint, getAnalyticsAPI } from "./getIntlayerAPI/analytics.js";
|
|
9
|
+
import { assetEndpoint, getAssetAPI } from "./getIntlayerAPI/asset.js";
|
|
10
|
+
import { AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, StartRecursiveAuditResult, auditEndpoint, getAuditAPI } from "./getIntlayerAPI/audit.js";
|
|
11
|
+
import { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, bitbucketEndpoint, getBitbucketAPI } from "./getIntlayerAPI/bitbucket.js";
|
|
12
|
+
import { dictionaryEndpoint, getDictionaryAPI } from "./getIntlayerAPI/dictionary.js";
|
|
13
|
+
import { editorEndpoint, getEditorAPI } from "./getIntlayerAPI/editor.js";
|
|
14
|
+
import { environmentEndpoint, getEnvironmentAPI } from "./getIntlayerAPI/environment.js";
|
|
15
|
+
import { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubGetTokenResult, GitHubListReposResult, GitHubRepository, getGithubAPI, githubEndpoint } from "./getIntlayerAPI/github.js";
|
|
16
|
+
import { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI, gitlabEndpoint } from "./getIntlayerAPI/gitlab.js";
|
|
17
|
+
import { getNewsletterAPI, newsletterEndpoint } from "./getIntlayerAPI/newsletter.js";
|
|
14
18
|
import { getOAuthAPI } from "./getIntlayerAPI/oAuth.js";
|
|
15
|
-
import { getOrganizationAPI } from "./getIntlayerAPI/organization.js";
|
|
16
|
-
import { getProjectAPI } from "./getIntlayerAPI/project.js";
|
|
17
|
-
import { getReviewerAPI } from "./getIntlayerAPI/reviewer.js";
|
|
18
|
-
import { getSearchAPI } from "./getIntlayerAPI/search.js";
|
|
19
|
-
import { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI } from "./getIntlayerAPI/showcaseProject.js";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
19
|
+
import { getOrganizationAPI, organizationEndpoint } from "./getIntlayerAPI/organization.js";
|
|
20
|
+
import { getProjectAPI, projectEndpoint } from "./getIntlayerAPI/project.js";
|
|
21
|
+
import { getReviewerAPI, reviewerEndpoint } from "./getIntlayerAPI/reviewer.js";
|
|
22
|
+
import { getSearchAPI, searchEndpoint } from "./getIntlayerAPI/search.js";
|
|
23
|
+
import { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI, showcaseProjectEndpoint } from "./getIntlayerAPI/showcaseProject.js";
|
|
24
|
+
import { GetDemoSessionResult, getStatusAPI, statusEndpoint } from "./getIntlayerAPI/status.js";
|
|
25
|
+
import { getStripeAPI, stripeEndpoint } from "./getIntlayerAPI/stripe.js";
|
|
26
|
+
import { getTagAPI, tagEndpoint } from "./getIntlayerAPI/tag.js";
|
|
27
|
+
import { TranslateDictionariesBody, TranslateDictionariesResult, getTranslateAPI, translateEndpoint } from "./getIntlayerAPI/translate.js";
|
|
28
|
+
import { getUserAPI, userEndpoint } from "./getIntlayerAPI/user.js";
|
|
24
29
|
import { IntlayerAPI, getIntlayerAPI } from "./getIntlayerAPI/index.js";
|
|
25
30
|
import { IntlayerAPIProxy, getIntlayerAPIProxy } from "./proxy.js";
|
|
26
31
|
import { AIOptions } from "./types.js";
|
|
27
|
-
|
|
32
|
+
import { AskDocQuestionBody, AskDocQuestionResult, AutocompleteBody, ChatBody, ChatResult, ClientAction, aiEndpoint, getAiAPI } from "./getIntlayerAPI/ai.js";
|
|
33
|
+
export { type AIOptions, AskDocQuestionBody, type AskDocQuestionResult, type AuditEvent, AuthManager, AuthManagerOptions, AutocompleteBody, BindSectionOptions, BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, CMSEndpoint, ChatBody, type ChatResult, ClientAction, DiscoverUrlsParams, DiscoverUrlsResult, FetcherOptions, GetDemoSessionResult, GetRecursiveAuditStatusParams, type GetRecursiveAuditStatusResult, GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubGetTokenResult, GitHubListReposResult, GitHubRepository, GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, IntlayerAPI, IntlayerAPIProxy, IntlayerCMS, IntlayerCMSOptions, OtherShowcaseProjectsQuery, RecursiveAuditJobParams, ScanUrlBody, ShowcaseProjectsQuery, StartRecursiveAuditBody, type StartRecursiveAuditResult, type TranslateDictionariesBody, type TranslateDictionariesResult, aiEndpoint, analyticsEndpoint, assetEndpoint, auditEndpoint, bitbucketEndpoint, createAuthManager, createEndpoint, createIntlayerCMS, dictionaryEndpoint, editorEndpoint, environmentEndpoint, fetchDistantDictionaries, fetchDistantDictionary, fetcher, fetcherOptions, getAiAPI, getAnalyticsAPI, getAssetAPI, getAuditAPI, getBitbucketAPI, getDictionaryAPI, getEditorAPI, getEnvironmentAPI, getGithubAPI, getGitlabAPI, getIntlayerAPI, getIntlayerAPIProxy, getNewsletterAPI, getOAuthAPI, getOrganizationAPI, getProjectAPI, getReviewerAPI, getSearchAPI, getShowcaseProjectAPI, getStatusAPI, getStripeAPI, getTagAPI, getTranslateAPI, getUserAPI, githubEndpoint, gitlabEndpoint, newsletterEndpoint, organizationEndpoint, projectEndpoint, reviewerEndpoint, searchEndpoint, showcaseProjectEndpoint, statusEndpoint, stripeEndpoint, tagEndpoint, translateEndpoint, userEndpoint };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ResponseData } from "../utils/responseData.js";
|
|
2
|
+
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
+
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.10.0/node_modules/fastify/fastify.js";
|
|
4
|
+
//#region ../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts
|
|
5
|
+
//#region src/controllers/configuration.controller.d.ts
|
|
6
|
+
type GetConfigurationResult = ResponseData<IntlayerConfig>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { GetConfigurationResult };
|
|
9
|
+
//# sourceMappingURL=configuration.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.controller.d.ts","names":[],"sources":["../../../../../../../../intlayer-editor/server/dist/controllers/configuration.controller.d.ts"],"mappings":";;;;;KAIK,yBAAyB,aAAa"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ResponseData } from "../utils/responseData.js";
|
|
2
|
+
import { UnmergedDictionaries } from "../../../../@intlayer/unmerged-dictionaries-entry/dist/types/index.js";
|
|
3
|
+
import "/Users/aymericpineau/Documents/intlayer_/node_modules/.bun/fastify@5.10.0/node_modules/fastify/fastify.js";
|
|
4
|
+
import { DictionaryStatus } from "@intlayer/engine/build";
|
|
5
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
6
|
+
//#region ../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts
|
|
7
|
+
//#region src/controllers/dictionary.controller.d.ts
|
|
8
|
+
type GetEditorDictionariesResult = ResponseData<UnmergedDictionaries>;
|
|
9
|
+
type WriteContentDeclarationBody = {
|
|
10
|
+
dictionary: Dictionary;
|
|
11
|
+
};
|
|
12
|
+
type WriteContentDeclarationResultData = {
|
|
13
|
+
status: DictionaryStatus;
|
|
14
|
+
path: string;
|
|
15
|
+
};
|
|
16
|
+
type WriteContentDeclarationResult = ResponseData<WriteContentDeclarationResultData>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult };
|
|
19
|
+
//# sourceMappingURL=dictionary.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dictionary.controller.d.ts","names":[],"sources":["../../../../../../../../intlayer-editor/server/dist/controllers/dictionary.controller.d.ts"],"mappings":";;;;;;;KAMK,8BAA8B,aAAa;KAK3C;EACH,YAAY;;KAET;EACH,QAAQ;EACR;;KAEG,gCAAgC,aAAa"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { GetConfigurationResult } from "./controllers/configuration.controller.js";
|
|
2
|
+
import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "./controllers/dictionary.controller.js";
|
|
3
|
+
export { GetConfigurationResult, GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult };
|