@intlayer/api 9.0.0-canary.8 → 9.0.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/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,13 +1,27 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import { GetConfigurationResult } from "../intlayer-editor/server/dist/controllers/configuration.controller.js";
|
|
4
|
+
import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "../intlayer-editor/server/dist/controllers/dictionary.controller.js";
|
|
5
|
+
import "../intlayer-editor/server/dist/export.js";
|
|
6
|
+
import "../index.js";
|
|
2
7
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
import { GetConfigurationResult, GetEditorDictionariesResult, WriteContentDeclarationBody } from "intlayer-editor";
|
|
4
|
-
|
|
5
8
|
//#region src/getIntlayerAPI/editor.d.ts
|
|
6
9
|
declare const getEditorAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
10
|
getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
|
|
8
11
|
getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>;
|
|
9
12
|
writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>;
|
|
10
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* Authenticated `editor` endpoint bound to an Intlayer CMS authenticator.
|
|
16
|
+
*
|
|
17
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
18
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
19
|
+
*/
|
|
20
|
+
declare const editorEndpoint: CMSEndpoint<{
|
|
21
|
+
getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
|
|
22
|
+
getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>;
|
|
23
|
+
writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>;
|
|
24
|
+
}>;
|
|
11
25
|
//#endregion
|
|
12
|
-
export { getEditorAPI };
|
|
26
|
+
export { editorEndpoint, getEditorAPI };
|
|
13
27
|
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/editor.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/editor.ts"],"mappings":";;;;;;;;cAWa,eAAY,iBACP,gBAAc,iBACb;EAyBD,kBAAA,eAAA,mBACb,QAAQ;EAhBK,mBAAA,eAAA,mBACb,QAAQ;EA8BH,kBAAA,MAAA,6BAA2B,eACnB,mBAAc,QAAA;;;;;;;;cAyBnB,gBAzBmB;EAjBd,kBAAA,eAAA,mBACb,QAAQ;EAhBK,mBAAA,eAAA,mBACb,QAAQ;EA8BH,kBAAA,MAAA,6BAA2B,eACnB,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 { AddEnvironmentBody, MigrateEnvironmentBody, UpdateEnvironmentBody } from "@intlayer/backend";
|
|
5
6
|
//#region src/getIntlayerAPI/environment.d.ts
|
|
6
7
|
declare const getEnvironmentAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
8
|
addEnvironment: (body: AddEnvironmentBody, otherOptions?: FetcherOptions) => Promise<AddEnvironmentResult>;
|
|
@@ -11,6 +12,20 @@ declare const getEnvironmentAPI: (authAPIOptions?: FetcherOptions, intlayerConfi
|
|
|
11
12
|
resetToProductionEnvironment: (otherOptions?: FetcherOptions) => Promise<ResetToProductionEnvironmentResult>;
|
|
12
13
|
migrateEnvironment: (body: MigrateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<MigrateEnvironmentResult>;
|
|
13
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Authenticated `environment` endpoint bound to an Intlayer CMS authenticator.
|
|
17
|
+
*
|
|
18
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
19
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
20
|
+
*/
|
|
21
|
+
declare const environmentEndpoint: CMSEndpoint<{
|
|
22
|
+
addEnvironment: (body: AddEnvironmentBody, otherOptions?: FetcherOptions) => Promise<AddEnvironmentResult>;
|
|
23
|
+
updateEnvironment: (environmentId: string, body: UpdateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<UpdateEnvironmentResult>;
|
|
24
|
+
deleteEnvironment: (environmentId: string, otherOptions?: FetcherOptions) => Promise<DeleteEnvironmentResult>;
|
|
25
|
+
selectEnvironment: (environmentId: string, otherOptions?: FetcherOptions) => Promise<SelectEnvironmentResult>;
|
|
26
|
+
resetToProductionEnvironment: (otherOptions?: FetcherOptions) => Promise<ResetToProductionEnvironmentResult>;
|
|
27
|
+
migrateEnvironment: (body: MigrateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<MigrateEnvironmentResult>;
|
|
28
|
+
}>;
|
|
14
29
|
//#endregion
|
|
15
|
-
export { getEnvironmentAPI };
|
|
30
|
+
export { environmentEndpoint, getEnvironmentAPI };
|
|
16
31
|
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/environment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"environment.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/environment.ts"],"mappings":";;;;;;cAgBa,oBAAiB,iBACZ,gBAAc,iBACb;EAMT,iBAAA,MAAA,oBAAkB,eACV,mBAAc,QAAA;EAUb,oBAAA,uBAAM,MACf,uBAAqB,eACb,mBAAc,QAAA;EAUb,oBAAA,uBAAM,eACP,mBAAc,QAAA;EAUb,oBAAA,uBAAM,eACP,mBAAc,QAAA;EAUd,+BAAA,eAAA,mBAAc,QAAA;EAUtB,qBAAA,MAAA,wBAAsB,eACd,mBAAc,QAAA;;;;;;;;cAyBnB,qBAzBmB;EAxDtB,iBAAA,MAAA,oBAAkB,eACV,mBAAc,QAAA;EAUb,oBAAA,uBAAM,MACf,uBAAqB,eACb,mBAAc,QAAA;EAUb,oBAAA,uBAAM,eACP,mBAAc,QAAA;EAUb,oBAAA,uBAAM,eACP,mBAAc,QAAA;EAUd,+BAAA,eAAA,mBAAc,QAAA;EAUtB,qBAAA,MAAA,wBAAsB,eACd,mBAAc,QAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
2
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
|
|
4
5
|
//#region src/getIntlayerAPI/github.d.ts
|
|
5
6
|
type GitHubRepository = {
|
|
6
7
|
id: number;
|
|
@@ -66,6 +67,20 @@ declare const getGithubAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: I
|
|
|
66
67
|
getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<GitHubGetConfigFileResult>;
|
|
67
68
|
getToken: (otherOptions?: FetcherOptions) => Promise<GitHubGetTokenResult>;
|
|
68
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* Authenticated `github` endpoint bound to an Intlayer CMS authenticator.
|
|
72
|
+
*
|
|
73
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
74
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
75
|
+
*/
|
|
76
|
+
declare const githubEndpoint: CMSEndpoint<{
|
|
77
|
+
getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<GitHubGetAuthUrlResult>;
|
|
78
|
+
authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<GitHubAuthCallbackResult>;
|
|
79
|
+
getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<GitHubListReposResult>;
|
|
80
|
+
checkIntlayerConfig: (token: string | null | undefined, owner: string, repository: string, branch?: string, otherOptions?: FetcherOptions) => Promise<GitHubCheckConfigResult>;
|
|
81
|
+
getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<GitHubGetConfigFileResult>;
|
|
82
|
+
getToken: (otherOptions?: FetcherOptions) => Promise<GitHubGetTokenResult>;
|
|
83
|
+
}>;
|
|
69
84
|
//#endregion
|
|
70
|
-
export { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubGetTokenResult, GitHubListReposResult, GitHubRepository, getGithubAPI };
|
|
85
|
+
export { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubGetTokenResult, GitHubListReposResult, GitHubRepository, getGithubAPI, githubEndpoint };
|
|
71
86
|
//# sourceMappingURL=github.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/github.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"github.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/github.ts"],"mappings":";;;;;KAKY;EACV;EACA;EACA;EACA;IACE;IACA;;EAEF;EACA;EACA;;KAGU;EACV;;KAGU;EACV;IACE;;;KAIQ;EACV,MAAM;;KAGI;EACV;EACA;EACA;EACA;;KAGU;EACV;IACE;;;KAIQ;EACV;EACA;EACA;EACA;EACA;;KAGU;EACV;IACE;;;KAIQ;EACV;IACE;;;KAIQ;EACV;IACE;;;cAIS,eAAY,iBACP,gBAAc,iBACb;EAWF,aAAA,qBAAM,eACL,mBAAc,QAAA;EAgBtB,eAAA,cAAM,eACE,mBAAc,QAAA;EAiBpB,kBAAA,uBAAa,eACP,mBAAc,QAAA;EAmBrB,sBAAA,kCAAyB,eACnB,oBACK,iBACJ,eACA,mBAAc,QAAA;EAqBrB,gBAAA,kCAAyB,eACnB,oBACK,iBACJ,eACF,eACE,mBAAc,QAAA;EAeQ,WAAA,eAAA,mBAAc,QAAA;;;;;;;;cAuBzC,gBAvByC;EApGrC,aAAA,qBAAM,eACL,mBAAc,QAAA;EAgBtB,eAAA,cAAM,eACE,mBAAc,QAAA;EAiBpB,kBAAA,uBAAa,eACP,mBAAc,QAAA;EAmBrB,sBAAA,kCAAyB,eACnB,oBACK,iBACJ,eACA,mBAAc,QAAA;EAqBrB,gBAAA,kCAAyB,eACnB,oBACK,iBACJ,eACF,eACE,mBAAc,QAAA;EAeQ,WAAA,eAAA,mBAAc,QAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
2
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
|
|
4
5
|
//#region src/getIntlayerAPI/gitlab.d.ts
|
|
5
6
|
type GitLabProject = {
|
|
6
7
|
id: number;
|
|
@@ -65,6 +66,19 @@ declare const getGitlabAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: I
|
|
|
65
66
|
checkIntlayerConfig: (token: string | null | undefined, projectId: number, branch?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabCheckConfigResult>;
|
|
66
67
|
getConfigFile: (token: string | null | undefined, projectId: number, branch?: string, path?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetConfigFileResult>;
|
|
67
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* Authenticated `gitlab` endpoint bound to an Intlayer CMS authenticator.
|
|
71
|
+
*
|
|
72
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
73
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
74
|
+
*/
|
|
75
|
+
declare const gitlabEndpoint: CMSEndpoint<{
|
|
76
|
+
getAuthUrl: (redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetAuthUrlResult>;
|
|
77
|
+
authenticate: (code: string, redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabAuthCallbackResult>;
|
|
78
|
+
getProjects: (token?: string | null, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabListProjectsResult>;
|
|
79
|
+
checkIntlayerConfig: (token: string | null | undefined, projectId: number, branch?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabCheckConfigResult>;
|
|
80
|
+
getConfigFile: (token: string | null | undefined, projectId: number, branch?: string, path?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetConfigFileResult>;
|
|
81
|
+
}>;
|
|
68
82
|
//#endregion
|
|
69
|
-
export { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI };
|
|
83
|
+
export { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI, gitlabEndpoint };
|
|
70
84
|
//# sourceMappingURL=gitlab.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitlab.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/gitlab.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"gitlab.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/gitlab.ts"],"mappings":";;;;;KAKY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;;;KAIQ;EACV;EACA;EACA;;KAGU;EACV;IACE;;;KAIQ;EACV,MAAM;;KAGI;EACV;EACA;EACA;EACA;;KAGU;EACV;IACE;IACA;;;KAIQ;EACV;EACA;EACA;EACA;EACA;;KAGU;EACV;IACE;;;KAIQ;EACV;IACE;;;cAIS,eAAY,iBACP,gBAAc,iBACb;EAYF,aAAA,qBAAM,sBACC,eACN,mBAAc,QAAA;EAkBtB,eAAA,cAAM,qBACO,sBACC,eACN,mBAAc,QAAA;EAkBpB,cAAA,uBAAa,sBACD,eACN,mBAAc,QAAA;EAsBrB,sBAAA,kCAAyB,mBACf,iBACH,sBACM,eACN,mBAAc,QAAA;EA0BrB,gBAAA,kCAAyB,mBACf,iBACH,eACF,sBACQ,eACN,mBAAc,QAAA;;;;;;;;cAiCnB,gBAjCmB;EApGf,aAAA,qBAAM,sBACC,eACN,mBAAc,QAAA;EAkBtB,eAAA,cAAM,qBACO,sBACC,eACN,mBAAc,QAAA;EAkBpB,cAAA,uBAAa,sBACD,eACN,mBAAc,QAAA;EAsBrB,sBAAA,kCAAyB,mBACf,iBACH,sBACM,eACN,mBAAc,QAAA;EA0BrB,gBAAA,kCAAyB,mBACf,iBACH,eACF,sBACQ,eACN,mBAAc,QAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { getAnalyticsAPI } from "./analytics.js";
|
|
3
3
|
import { getAssetAPI } from "./asset.js";
|
|
4
4
|
import { getAuditAPI } from "./audit.js";
|
|
5
5
|
import { getBitbucketAPI } from "./bitbucket.js";
|
|
@@ -15,12 +15,13 @@ import { getProjectAPI } from "./project.js";
|
|
|
15
15
|
import { getReviewerAPI } from "./reviewer.js";
|
|
16
16
|
import { getSearchAPI } from "./search.js";
|
|
17
17
|
import { getShowcaseProjectAPI } from "./showcaseProject.js";
|
|
18
|
+
import { getStatusAPI } from "./status.js";
|
|
18
19
|
import { getStripeAPI } from "./stripe.js";
|
|
19
20
|
import { getTagAPI } from "./tag.js";
|
|
20
21
|
import { getTranslateAPI } from "./translate.js";
|
|
21
22
|
import { getUserAPI } from "./user.js";
|
|
23
|
+
import { getAiAPI } from "./ai.js";
|
|
22
24
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
23
|
-
|
|
24
25
|
//#region src/getIntlayerAPI/index.d.ts
|
|
25
26
|
interface IntlayerAPIReturn {
|
|
26
27
|
asset: ReturnType<typeof getAssetAPI>;
|
|
@@ -32,6 +33,7 @@ interface IntlayerAPIReturn {
|
|
|
32
33
|
dictionary: ReturnType<typeof getDictionaryAPI>;
|
|
33
34
|
stripe: ReturnType<typeof getStripeAPI>;
|
|
34
35
|
ai: ReturnType<typeof getAiAPI>;
|
|
36
|
+
analytics: ReturnType<typeof getAnalyticsAPI>;
|
|
35
37
|
audit: ReturnType<typeof getAuditAPI>;
|
|
36
38
|
tag: ReturnType<typeof getTagAPI>;
|
|
37
39
|
search: ReturnType<typeof getSearchAPI>;
|
|
@@ -43,8 +45,9 @@ interface IntlayerAPIReturn {
|
|
|
43
45
|
showcaseProject: ReturnType<typeof getShowcaseProjectAPI>;
|
|
44
46
|
translate: ReturnType<typeof getTranslateAPI>;
|
|
45
47
|
reviewer: ReturnType<typeof getReviewerAPI>;
|
|
48
|
+
status: ReturnType<typeof getStatusAPI>;
|
|
46
49
|
}
|
|
47
|
-
declare const getIntlayerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: Pick<IntlayerConfig,
|
|
50
|
+
declare const getIntlayerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: Pick<IntlayerConfig, 'editor'>) => IntlayerAPIReturn;
|
|
48
51
|
type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;
|
|
49
52
|
//#endregion
|
|
50
53
|
export { IntlayerAPI, getIntlayerAPI };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;UA2BU;EACR,OAAO,kBAAkB;EACzB,cAAc,kBAAkB;EAChC,SAAS,kBAAkB;EAC3B,aAAa,kBAAkB;EAC/B,MAAM,kBAAkB;EACxB,OAAO,kBAAkB;EACzB,YAAY,kBAAkB;EAC9B,QAAQ,kBAAkB;EAC1B,IAAI,kBAAkB;EACtB,WAAW,kBAAkB;EAC7B,OAAO,kBAAkB;EACzB,KAAK,kBAAkB;EACvB,QAAQ,kBAAkB;EAC1B,QAAQ,kBAAkB;EAC1B,YAAY,kBAAkB;EAC9B,QAAQ,kBAAkB;EAC1B,QAAQ,kBAAkB;EAC1B,WAAW,kBAAkB;EAC7B,iBAAiB,kBAAkB;EACnC,WAAW,kBAAkB;EAC7B,UAAU,kBAAkB;EAC5B,QAAQ,kBAAkB;;cAGf,iBAAc,iBACT,gBAAc,iBACb,KAAK,8BACrB;KA+BS,cAAc,kBAAkB"}
|
|
@@ -1,13 +1,25 @@
|
|
|
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 { NewsletterSubscriptionBody, NewsletterUnsubscriptionBody } from "@intlayer/backend";
|
|
5
6
|
//#region src/getIntlayerAPI/newsletter.d.ts
|
|
6
7
|
declare const getNewsletterAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
8
|
subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
8
9
|
unsubscribeFromNewsletter: (body: NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
9
10
|
getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
10
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Authenticated `newsletter` endpoint bound to an Intlayer CMS authenticator.
|
|
14
|
+
*
|
|
15
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
16
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
17
|
+
*/
|
|
18
|
+
declare const newsletterEndpoint: CMSEndpoint<{
|
|
19
|
+
subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
20
|
+
unsubscribeFromNewsletter: (body: NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
21
|
+
getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
22
|
+
}>;
|
|
11
23
|
//#endregion
|
|
12
|
-
export { getNewsletterAPI };
|
|
24
|
+
export { getNewsletterAPI, newsletterEndpoint };
|
|
13
25
|
//# sourceMappingURL=newsletter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newsletter.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/newsletter.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"newsletter.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/newsletter.ts"],"mappings":";;;;;;cAUa,mBAAgB,iBACX,gBAAc,iBACb;EAYT,wBAAA,MAAA,4BAA0B,eAClB,mBAAc,QAAA;EAkBtB,4BAAA,MAAA,8BAA4B,eACpB,mBAAc,QAAA;EAgBmB,sBAAA,eAAA,mBAAc,QAAA;;;;;;;;cAuBpD,oBAvBoD;EApCvD,wBAAA,MAAA,4BAA0B,eAClB,mBAAc,QAAA;EAkBtB,4BAAA,MAAA,8BAA4B,eACpB,mBAAc,QAAA;EAgBmB,sBAAA,eAAA,mBAAc,QAAA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
|
|
4
3
|
//#region src/getIntlayerAPI/oAuth.d.ts
|
|
5
|
-
declare const getOAuthAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: Pick<IntlayerConfig,
|
|
4
|
+
declare const getOAuthAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: Pick<IntlayerConfig, 'editor'>) => {
|
|
6
5
|
getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<GetOAuth2TokenResult>;
|
|
7
6
|
createCliSessionToken: (otherOptions?: FetcherOptions) => Promise<CreateCliSessionTokenResult>;
|
|
8
7
|
getCliSessionMe: (otherOptions?: FetcherOptions) => Promise<GetCliSessionMeResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oAuth.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/oAuth.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"oAuth.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/oAuth.ts"],"mappings":";;;cAUa,cAAW,iBACN,gBAAc,iBACb,KAAK;EAQ4B,uBAAA,eAAA,mBAAc,QAAA;EAsBb,wBAAA,eAAA,mBAAc,QAAA;EAYpB,kBAAA,eAAA,mBAAc,QAAA"}
|
|
@@ -1,21 +1,43 @@
|
|
|
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 { AddOrganizationBody, AddOrganizationMemberBody, GetOrganizationParam, GetOrganizationsParams, SelectOrganizationParam, UpdateOrganizationBody, UpdateOrganizationMailerConfigBody, UpdateOrganizationMembersBody } from "@intlayer/backend";
|
|
5
6
|
//#region src/getIntlayerAPI/organization.d.ts
|
|
6
7
|
declare const getOrganizationAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
8
|
getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
|
|
8
|
-
getOrganization: (organizationId: GetOrganizationParam[
|
|
9
|
+
getOrganization: (organizationId: GetOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
|
|
9
10
|
addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
|
|
10
11
|
addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
|
|
11
12
|
updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
|
|
13
|
+
updateOrganizationMailerConfig: (body: UpdateOrganizationMailerConfigBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMailerConfigResult>;
|
|
12
14
|
updateOrganizationMembers: (body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
|
|
13
15
|
updateOrganizationMembersById: (organizationId: string, body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
|
|
14
16
|
deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
15
17
|
deleteOrganizationByIdAdmin: (organizationId: string, otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
16
|
-
selectOrganization: (organizationId: SelectOrganizationParam[
|
|
18
|
+
selectOrganization: (organizationId: SelectOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
|
|
17
19
|
unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
|
|
18
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Authenticated `organization` endpoint bound to an Intlayer CMS authenticator.
|
|
23
|
+
*
|
|
24
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
25
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
26
|
+
*/
|
|
27
|
+
declare const organizationEndpoint: CMSEndpoint<{
|
|
28
|
+
getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
|
|
29
|
+
getOrganization: (organizationId: GetOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
|
|
30
|
+
addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
|
|
31
|
+
addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
|
|
32
|
+
updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
|
|
33
|
+
updateOrganizationMailerConfig: (body: UpdateOrganizationMailerConfigBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMailerConfigResult>;
|
|
34
|
+
updateOrganizationMembers: (body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
|
|
35
|
+
updateOrganizationMembersById: (organizationId: string, body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
|
|
36
|
+
deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
37
|
+
deleteOrganizationByIdAdmin: (organizationId: string, otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
38
|
+
selectOrganization: (organizationId: SelectOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
|
|
39
|
+
unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
|
|
40
|
+
}>;
|
|
19
41
|
//#endregion
|
|
20
|
-
export { getOrganizationAPI };
|
|
42
|
+
export { getOrganizationAPI, organizationEndpoint };
|
|
21
43
|
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/organization.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"organization.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/organization.ts"],"mappings":";;;;;;cAyBa,qBAAkB,iBACb,gBAAc,iBACb;EAWL,mBAAA,UAAA,wBAAsB,eAClB,mBAAc,QAAA;EAkBZ,kBAAA,gBAAA,wCAAsC,eACxC,mBAAc,QAAA;EAad,kBAAA,cAAA,qBAAmB,eACnB,mBAAc,QAAA;EA4FtB,wBAAA,MAAA,2BAAyB,eACjB,mBAAc,QAAA;EA5Ed,qBAAA,cAAA,wBAAsB,eACtB,mBAAc,QAAA;EAkBtB,iCAAA,MAAA,oCAAkC,eAC1B,mBAAc,QAAA;EAiBtB,4BAAA,MAAA,+BAA6B,eACrB,mBAAc,QAAA;EAkBZ,gCAAA,wBAAM,MAChB,+BAA6B,eACrB,mBAAc,QAAA;EAkCkB,qBAAA,eAAA,mBAAc,QAAA;EAe5C,8BAAA,wBAAM,eACR,mBAAc,QAAA;EAcZ,qBAAA,gBAAA,2CAAyC,eAC3C,mBAAc,QAAA;EAeoB,uBAAA,eAAA,mBAAc,QAAA;;;;;;;;cAgCrD,sBAhCqD;EA7LpD,mBAAA,UAAA,wBAAsB,eAClB,mBAAc,QAAA;EAkBZ,kBAAA,gBAAA,wCAAsC,eACxC,mBAAc,QAAA;EAad,kBAAA,cAAA,qBAAmB,eACnB,mBAAc,QAAA;EA4FtB,wBAAA,MAAA,2BAAyB,eACjB,mBAAc,QAAA;EA5Ed,qBAAA,cAAA,wBAAsB,eACtB,mBAAc,QAAA;EAkBtB,iCAAA,MAAA,oCAAkC,eAC1B,mBAAc,QAAA;EAiBtB,4BAAA,MAAA,+BAA6B,eACrB,mBAAc,QAAA;EAkBZ,gCAAA,wBAAM,MAChB,+BAA6B,eACrB,mBAAc,QAAA;EAkCkB,qBAAA,eAAA,mBAAc,QAAA;EAe5C,8BAAA,wBAAM,eACR,mBAAc,QAAA;EAcZ,qBAAA,gBAAA,2CAAyC,eAC3C,mBAAc,QAAA;EAeoB,uBAAA,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 { AddNewAccessKeyBody, AddProjectBody, DeleteAccessKeyBody, GetProjectsParams, PushProjectConfigurationBody, RefreshAccessKeyBody, SelectProjectParam, TriggerWebhookBody, UpdateMemberAccessBody, UpdateProjectBody, UpdateProjectMembersBody } from "@intlayer/backend";
|
|
5
6
|
//#region src/getIntlayerAPI/project.d.ts
|
|
6
7
|
declare const getProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
8
|
getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
|
|
@@ -12,17 +13,43 @@ declare const getProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?:
|
|
|
12
13
|
pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
|
|
13
14
|
deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
14
15
|
deleteProjectByIdAdmin: (projectId: string, otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
15
|
-
selectProject: (projectId: SelectProjectParam[
|
|
16
|
+
selectProject: (projectId: SelectProjectParam['projectId'], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
|
|
16
17
|
unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
|
|
17
18
|
addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
|
|
18
|
-
deleteAccessKey: (clientId: DeleteAccessKeyBody[
|
|
19
|
-
refreshAccessKey: (clientId: RefreshAccessKeyBody[
|
|
19
|
+
deleteAccessKey: (clientId: DeleteAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
|
|
20
|
+
refreshAccessKey: (clientId: RefreshAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
|
|
20
21
|
triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>;
|
|
21
|
-
triggerWebhook: (webhookIndex: TriggerWebhookBody[
|
|
22
|
+
triggerWebhook: (webhookIndex: TriggerWebhookBody['webhookIndex'], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
|
|
22
23
|
getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
23
24
|
pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
24
25
|
updateMemberAccess: (userId: string, body: UpdateMemberAccessBody, otherOptions?: FetcherOptions) => Promise<UpdateMemberAccessResult>;
|
|
25
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Authenticated `project` endpoint bound to an Intlayer CMS authenticator.
|
|
29
|
+
*
|
|
30
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
31
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
32
|
+
*/
|
|
33
|
+
declare const projectEndpoint: CMSEndpoint<{
|
|
34
|
+
getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
|
|
35
|
+
getProjectInsights: (otherOptions?: FetcherOptions) => Promise<GetProjectInsightsResult>;
|
|
36
|
+
addProject: (project: AddProjectBody, otherOptions?: FetcherOptions) => Promise<AddProjectResult>;
|
|
37
|
+
updateProject: (project: UpdateProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectResult>;
|
|
38
|
+
updateProjectMembers: (body: UpdateProjectMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectMembersResult>;
|
|
39
|
+
pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
|
|
40
|
+
deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
41
|
+
deleteProjectByIdAdmin: (projectId: string, otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
42
|
+
selectProject: (projectId: SelectProjectParam['projectId'], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
|
|
43
|
+
unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
|
|
44
|
+
addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
|
|
45
|
+
deleteAccessKey: (clientId: DeleteAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
|
|
46
|
+
refreshAccessKey: (clientId: RefreshAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
|
|
47
|
+
triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>;
|
|
48
|
+
triggerWebhook: (webhookIndex: TriggerWebhookBody['webhookIndex'], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
|
|
49
|
+
getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
50
|
+
pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
51
|
+
updateMemberAccess: (userId: string, body: UpdateMemberAccessBody, otherOptions?: FetcherOptions) => Promise<UpdateMemberAccessResult>;
|
|
52
|
+
}>;
|
|
26
53
|
//#endregion
|
|
27
|
-
export { getProjectAPI };
|
|
54
|
+
export { getProjectAPI, projectEndpoint };
|
|
28
55
|
//# sourceMappingURL=project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/project.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"project.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/project.ts"],"mappings":";;;;;;cAkCa,gBAAa,iBACR,gBAAc,iBACb;EAWL,cAAA,UAAA,mBAAiB,eACb,mBAAc,QAAA;EAkBkB,qBAAA,eAAA,mBAAc,QAAA;EAgBnD,aAAA,SAAA,gBAAc,eACT,mBAAc,QAAA;EAiBnB,gBAAA,SAAA,mBAAiB,eACZ,mBAAc,QAAA;EAiBtB,uBAAA,MAAA,0BAAwB,eAChB,mBAAc,QAAA;EAgBN,2BAAA,sBAAA,8BAA4B,eACpC,mBAAc,QAAA;EAgBa,gBAAA,eAAA,mBAAc,QAAA;EAe5C,yBAAA,mBAAM,eACH,mBAAc,QAAA;EAcjB,gBAAA,WAAA,iCAA+B,eAC5B,mBAAc,QAAA;EAee,kBAAA,eAAA,mBAAc,QAAA;EAiB9C,kBAAA,WAAA,qBAAmB,eAChB,mBAAc,QAAA;EAmBlB,kBAAA,UAAA,iCAA+B,eAC3B,mBAAc,QAAA;EAmBlB,mBAAA,UAAA,kCAAgC,eAC5B,mBAAc,QAAA;EAiBY,eAAA,eAAA,mBAAc,QAAA;EAiBxC,iBAAA,cAAA,oCAAkC,eAClC,mBAAc,QAAA;EAiBW,cAAA,eAAA,mBAAc,QAAA;EAeb,eAAA,eAAA,mBAAc,QAAA;EAgB9C,qBAAA,gBAAM,MACR,wBAAsB,eACd,mBAAc,QAAA;;;;;;;;cAqCnB,iBArCmB;EAtSlB,cAAA,UAAA,mBAAiB,eACb,mBAAc,QAAA;EAkBkB,qBAAA,eAAA,mBAAc,QAAA;EAgBnD,aAAA,SAAA,gBAAc,eACT,mBAAc,QAAA;EAiBnB,gBAAA,SAAA,mBAAiB,eACZ,mBAAc,QAAA;EAiBtB,uBAAA,MAAA,0BAAwB,eAChB,mBAAc,QAAA;EAgBN,2BAAA,sBAAA,8BAA4B,eACpC,mBAAc,QAAA;EAgBa,gBAAA,eAAA,mBAAc,QAAA;EAe5C,yBAAA,mBAAM,eACH,mBAAc,QAAA;EAcjB,gBAAA,WAAA,iCAA+B,eAC5B,mBAAc,QAAA;EAee,kBAAA,eAAA,mBAAc,QAAA;EAiB9C,kBAAA,WAAA,qBAAmB,eAChB,mBAAc,QAAA;EAmBlB,kBAAA,UAAA,iCAA+B,eAC3B,mBAAc,QAAA;EAmBlB,mBAAA,UAAA,kCAAgC,eAC5B,mBAAc,QAAA;EAiBY,eAAA,eAAA,mBAAc,QAAA;EAiBxC,iBAAA,cAAA,oCAAkC,eAClC,mBAAc,QAAA;EAiBW,cAAA,eAAA,mBAAc,QAAA;EAeb,eAAA,eAAA,mBAAc,QAAA;EAgB9C,qBAAA,gBAAM,MACR,wBAAsB,eACd,mBAAc,QAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
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 { CreateMissionBody, EstimateMissionBody, GetMarketplaceQuery, RegisterReviewerBody, SendMessageBody, SubmitReviewBody, UpdateMissionStatusBody, UpdateReviewerBody } from "@intlayer/backend";
|
|
5
6
|
//#region src/getIntlayerAPI/reviewer.d.ts
|
|
6
7
|
declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
8
|
getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
|
|
8
|
-
getPriceDistribution: (params?: Pick<GetMarketplaceQuery,
|
|
9
|
+
getPriceDistribution: (params?: Pick<GetMarketplaceQuery, 'fromLocale' | 'toLocale' | 'minRating' | 'categories'>, otherOptions?: FetcherOptions) => Promise<ResponseData<PriceDistributionData>>;
|
|
9
10
|
getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
|
|
10
11
|
getReviewerReviews: (reviewerId: string, params?: {
|
|
11
12
|
page?: number;
|
|
@@ -18,7 +19,7 @@ declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?:
|
|
|
18
19
|
estimateMission: (body: EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<MissionEstimate>>;
|
|
19
20
|
createMission: (body: CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
|
|
20
21
|
getMyMissions: (params?: {
|
|
21
|
-
role?:
|
|
22
|
+
role?: 'client' | 'reviewer';
|
|
22
23
|
page?: number;
|
|
23
24
|
pageSize?: number;
|
|
24
25
|
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<TranslationMissionAPI>>;
|
|
@@ -40,6 +41,49 @@ declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?:
|
|
|
40
41
|
status?: string;
|
|
41
42
|
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
|
|
42
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Authenticated `reviewer` endpoint bound to an Intlayer CMS authenticator.
|
|
46
|
+
*
|
|
47
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
48
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
49
|
+
*/
|
|
50
|
+
declare const reviewerEndpoint: CMSEndpoint<{
|
|
51
|
+
getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
|
|
52
|
+
getPriceDistribution: (params?: Pick<GetMarketplaceQuery, 'fromLocale' | 'toLocale' | 'minRating' | 'categories'>, otherOptions?: FetcherOptions) => Promise<ResponseData<PriceDistributionData>>;
|
|
53
|
+
getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
|
|
54
|
+
getReviewerReviews: (reviewerId: string, params?: {
|
|
55
|
+
page?: number;
|
|
56
|
+
pageSize?: number;
|
|
57
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerReviewAPI>>;
|
|
58
|
+
getMyReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
59
|
+
registerAsReviewer: (body: RegisterReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
|
|
60
|
+
updateReviewerProfile: (body: UpdateReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
|
|
61
|
+
deleteReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
|
|
62
|
+
estimateMission: (body: EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<MissionEstimate>>;
|
|
63
|
+
createMission: (body: CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
|
|
64
|
+
getMyMissions: (params?: {
|
|
65
|
+
role?: 'client' | 'reviewer';
|
|
66
|
+
page?: number;
|
|
67
|
+
pageSize?: number;
|
|
68
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<TranslationMissionAPI>>;
|
|
69
|
+
getMissionById: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
|
|
70
|
+
updateMissionStatus: (missionId: string, body: UpdateMissionStatusBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
|
|
71
|
+
submitReview: (missionId: string, body: SubmitReviewBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerReviewAPI>>;
|
|
72
|
+
contactReviewer: (reviewerId: string, body: {
|
|
73
|
+
message: string;
|
|
74
|
+
}, otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
|
|
75
|
+
getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI[]>>;
|
|
76
|
+
sendMessage: (missionId: string, body: SendMessageBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI>>;
|
|
77
|
+
getChatStreamUrl: (missionId: string) => string;
|
|
78
|
+
uploadMainPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
|
|
79
|
+
uploadCoverPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
|
|
80
|
+
validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
|
|
81
|
+
getAdminReviewers: (params?: {
|
|
82
|
+
page?: number;
|
|
83
|
+
pageSize?: number;
|
|
84
|
+
status?: string;
|
|
85
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
|
|
86
|
+
}>;
|
|
43
87
|
//#endregion
|
|
44
|
-
export { getReviewerAPI };
|
|
88
|
+
export { getReviewerAPI, reviewerEndpoint };
|
|
45
89
|
//# sourceMappingURL=reviewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewer.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/reviewer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reviewer.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/reviewer.ts"],"mappings":";;;;;;cAwBa,iBAAc,iBACT,gBAAc,iBACb;EAQP,iBAAA,SAAA,qBAAmB,eACb,mBAAc,QAAA,kBAAA;EAwBpB,uBAAA,SAAA,KACN,8EAED,eACa,mBAAc,QAAA,aAAA;EAuBhB,kBAAA,oBAAM,eACJ,mBAAc,QAAA,aAAA;EAUhB,qBAAA,oBAAM;IACR;IAAe;KAAmB,eAC9B,mBAAc,QAAA,kBAAA;EAmBc,uBAAA,eAAA,mBAAc,QAAA;EASlD,qBAAA,MAAA,sBAAoB,eACZ,mBAAc,QAAA,aAAA;EAUtB,wBAAA,MAAA,oBAAkB,eACV,mBAAc,QAAA,aAAA;EASe,wBAAA,eAAA,mBAAc,QAAA;EAsBnD,kBAAA,MAAA,qBAAmB,eACX,mBAAc,QAAA,aAAA;EAUtB,gBAAA,MAAA,mBAAiB,eACT,mBAAc,QAAA,aAAA;EAUpB,gBAAA;IACN;IACA;IACA;KACD,eACa,mBAAc,QAAA,kBAAA;EAkBjB,iBAAA,mBAAM,eACH,mBAAc,QAAA,aAAA;EAUjB,sBAAA,mBAAM,MACX,yBAAuB,eACf,mBAAc,QAAA,aAAA;EAYjB,eAAA,mBAAM,MACX,kBAAgB,eACR,mBAAc,QAAA,aAAA;EAtFhB,kBAAA,oBAAM;IACV;KAAiB,eACX,mBAAc,QAAA;EAgGjB,iBAAA,mBAAM,eACH,mBAAc,QAAA,aAAA;EAUjB,cAAA,mBAAM,MACX,iBAAe,eACP,mBAAc,QAAA,aAAA;EASO,mBAAA;EAmCJ,oBAAA,MAAA,MAAI,eAAgB,mBAAc,QAAA;EAGjC,qBAAA,MAAA,MAAI,eAAgB,mBAAc,QAAA;EAMtD,0BAAA,oBAAM,eACJ,mBAAc,QAAA,aAAA;EAUpB,oBAAA;IAAE;IAAe;IAAmB;KAAiB,eAC/C,mBAAc,QAAA,kBAAA;;;;;;;;cAiDnB,kBAjDmB;EA1SpB,iBAAA,SAAA,qBAAmB,eACb,mBAAc,QAAA,kBAAA;EAwBpB,uBAAA,SAAA,KACN,8EAED,eACa,mBAAc,QAAA,aAAA;EAuBhB,kBAAA,oBAAM,eACJ,mBAAc,QAAA,aAAA;EAUhB,qBAAA,oBAAM;IACR;IAAe;KAAmB,eAC9B,mBAAc,QAAA,kBAAA;EAmBc,uBAAA,eAAA,mBAAc,QAAA;EASlD,qBAAA,MAAA,sBAAoB,eACZ,mBAAc,QAAA,aAAA;EAUtB,wBAAA,MAAA,oBAAkB,eACV,mBAAc,QAAA,aAAA;EASe,wBAAA,eAAA,mBAAc,QAAA;EAsBnD,kBAAA,MAAA,qBAAmB,eACX,mBAAc,QAAA,aAAA;EAUtB,gBAAA,MAAA,mBAAiB,eACT,mBAAc,QAAA,aAAA;EAUpB,gBAAA;IACN;IACA;IACA;KACD,eACa,mBAAc,QAAA,kBAAA;EAkBjB,iBAAA,mBAAM,eACH,mBAAc,QAAA,aAAA;EAUjB,sBAAA,mBAAM,MACX,yBAAuB,eACf,mBAAc,QAAA,aAAA;EAYjB,eAAA,mBAAM,MACX,kBAAgB,eACR,mBAAc,QAAA,aAAA;EAtFhB,kBAAA,oBAAM;IACV;KAAiB,eACX,mBAAc,QAAA;EAgGjB,iBAAA,mBAAM,eACH,mBAAc,QAAA,aAAA;EAUjB,cAAA,mBAAM,MACX,iBAAe,eACP,mBAAc,QAAA,aAAA;EASO,mBAAA;EAmCJ,oBAAA,MAAA,MAAI,eAAgB,mBAAc,QAAA;EAGjC,qBAAA,MAAA,MAAI,eAAgB,mBAAc,QAAA;EAMtD,0BAAA,oBAAM,eACJ,mBAAc,QAAA,aAAA;EAUpB,oBAAA;IAAE;IAAe;IAAmB;KAAiB,eAC/C,mBAAc,QAAA,kBAAA"}
|
|
@@ -1,11 +1,21 @@
|
|
|
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 { SearchDocUtilParams } from "@intlayer/backend";
|
|
5
6
|
//#region src/getIntlayerAPI/search.d.ts
|
|
6
7
|
declare const getSearchAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
8
|
searchDoc: (params?: SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>;
|
|
8
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Authenticated `search` endpoint bound to an Intlayer CMS authenticator.
|
|
12
|
+
*
|
|
13
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
14
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
15
|
+
*/
|
|
16
|
+
declare const searchEndpoint: CMSEndpoint<{
|
|
17
|
+
searchDoc: (params?: SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>;
|
|
18
|
+
}>;
|
|
9
19
|
//#endregion
|
|
10
|
-
export { getSearchAPI };
|
|
20
|
+
export { getSearchAPI, searchEndpoint };
|
|
11
21
|
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/search.ts"],"mappings":";;;;;;cASa,eAAY,iBACP,gBAAc,iBACb;EAYN,YAAA,SAAA,qBAAmB,eACd,mBAAc,QAAA;;;;;;;;cAuBnB,gBAvBmB;EADnB,YAAA,SAAA,qBAAmB,eACd,mBAAc,QAAA"}
|