@intlayer/api 9.7.0 → 9.7.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 +2 -3
- package/dist/cjs/cms/createIntlayerCMS.cjs +2 -3
- package/dist/cjs/cms/index.cjs +2 -2
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs +3 -4
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs +3 -4
- package/dist/cjs/distantDictionary/index.cjs +2 -2
- package/dist/cjs/fetcher.cjs +2 -3
- package/dist/cjs/getIntlayerAPI/ai.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/analytics.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/asset.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/audit.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/bitbucket.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/codeberg.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/dictionary.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/editor.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/environment.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/forge.cjs +2 -3
- package/dist/cjs/getIntlayerAPI/gitee.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/github.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/gitlab.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/index.cjs +25 -26
- package/dist/cjs/getIntlayerAPI/newsletter.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/oAuth.cjs +2 -3
- package/dist/cjs/getIntlayerAPI/organization.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/project.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/reviewer.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/search.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/showcaseProject.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/status.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/stripe.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/tag.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/translate.cjs +3 -4
- package/dist/cjs/getIntlayerAPI/user.cjs +3 -4
- package/dist/cjs/index.cjs +33 -33
- package/dist/cjs/proxy.cjs +26 -27
- package/dist/cjs/public/createPublicClient.cjs +1 -2
- package/dist/cjs/public/index.cjs +1 -1
- package/dist/cjs/resolveInternalBackendUrl.cjs +1 -2
- package/dist/esm/cms/createAuthManager.mjs +1 -2
- package/dist/esm/cms/createIntlayerCMS.mjs +1 -2
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs +1 -2
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs +1 -2
- package/dist/esm/fetcher.mjs +1 -2
- package/dist/esm/getIntlayerAPI/ai.mjs +2 -3
- package/dist/esm/getIntlayerAPI/analytics.mjs +2 -3
- package/dist/esm/getIntlayerAPI/asset.mjs +2 -3
- package/dist/esm/getIntlayerAPI/audit.mjs +2 -3
- package/dist/esm/getIntlayerAPI/bitbucket.mjs +2 -3
- package/dist/esm/getIntlayerAPI/codeberg.mjs +1 -2
- package/dist/esm/getIntlayerAPI/dictionary.mjs +2 -3
- package/dist/esm/getIntlayerAPI/editor.mjs +2 -3
- package/dist/esm/getIntlayerAPI/environment.mjs +2 -3
- package/dist/esm/getIntlayerAPI/forge.mjs +1 -2
- package/dist/esm/getIntlayerAPI/gitee.mjs +1 -2
- package/dist/esm/getIntlayerAPI/github.mjs +2 -3
- package/dist/esm/getIntlayerAPI/gitlab.mjs +2 -3
- package/dist/esm/getIntlayerAPI/index.mjs +2 -3
- package/dist/esm/getIntlayerAPI/newsletter.mjs +2 -3
- package/dist/esm/getIntlayerAPI/oAuth.mjs +1 -2
- package/dist/esm/getIntlayerAPI/organization.mjs +2 -3
- package/dist/esm/getIntlayerAPI/project.mjs +2 -3
- package/dist/esm/getIntlayerAPI/reviewer.mjs +2 -3
- package/dist/esm/getIntlayerAPI/search.mjs +2 -3
- package/dist/esm/getIntlayerAPI/showcaseProject.mjs +2 -3
- package/dist/esm/getIntlayerAPI/status.mjs +2 -3
- package/dist/esm/getIntlayerAPI/stripe.mjs +2 -3
- package/dist/esm/getIntlayerAPI/tag.mjs +2 -3
- package/dist/esm/getIntlayerAPI/translate.mjs +2 -3
- package/dist/esm/getIntlayerAPI/user.mjs +2 -3
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/proxy.mjs +2 -3
- package/dist/esm/public/createPublicClient.mjs +1 -2
- package/dist/esm/resolveInternalBackendUrl.mjs +1 -2
- package/dist/types/cms/createAuthManager.d.ts +1 -2
- package/dist/types/cms/createAuthManager.d.ts.map +1 -1
- package/dist/types/cms/createIntlayerCMS.d.ts +0 -2
- package/dist/types/cms/createIntlayerCMS.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +0 -2
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +0 -2
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
- package/dist/types/fetcher.d.ts +0 -2
- package/dist/types/fetcher.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts +2 -4
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/analytics.d.ts +2 -4
- package/dist/types/getIntlayerAPI/analytics.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/asset.d.ts +2 -4
- package/dist/types/getIntlayerAPI/asset.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/audit.d.ts +2 -4
- package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/bitbucket.d.ts +2 -4
- package/dist/types/getIntlayerAPI/bitbucket.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/codeberg.d.ts +42 -6
- package/dist/types/getIntlayerAPI/codeberg.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts +2 -4
- package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +2 -4
- package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/environment.d.ts +2 -4
- package/dist/types/getIntlayerAPI/environment.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/forge.d.ts +21 -4
- package/dist/types/getIntlayerAPI/forge.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/gitee.d.ts +42 -6
- package/dist/types/getIntlayerAPI/gitee.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/github.d.ts +2 -4
- package/dist/types/getIntlayerAPI/github.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/gitlab.d.ts +2 -4
- package/dist/types/getIntlayerAPI/gitlab.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/index.d.ts +2 -3
- package/dist/types/getIntlayerAPI/index.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts +2 -4
- package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/oAuth.d.ts +0 -2
- package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts +2 -4
- package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +2 -4
- package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/reviewer.d.ts +2 -4
- package/dist/types/getIntlayerAPI/reviewer.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts +2 -4
- package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts +2 -4
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/status.d.ts +2 -4
- package/dist/types/getIntlayerAPI/status.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts +2 -4
- package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts +2 -4
- package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/translate.d.ts +2 -4
- package/dist/types/getIntlayerAPI/translate.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +2 -4
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +6 -6
- package/dist/types/proxy.d.ts +0 -2
- package/dist/types/proxy.d.ts.map +1 -1
- package/dist/types/public/createPublicClient.d.ts +0 -2
- package/dist/types/public/createPublicClient.d.ts.map +1 -1
- package/dist/types/resolveInternalBackendUrl.d.ts +0 -2
- package/dist/types/resolveInternalBackendUrl.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/github.ts
|
|
8
8
|
/** Prefix of the routes, checked against the backend contract. */
|
|
9
9
|
const githubGroup = { prefix: "/api/github" };
|
|
10
10
|
/**
|
|
@@ -112,6 +112,5 @@ const getGithubAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
112
112
|
*/
|
|
113
113
|
const githubEndpoint = createEndpoint(getGithubAPI);
|
|
114
114
|
|
|
115
|
-
//#endregion
|
|
116
115
|
export { getGithubAPI, githubEndpoint };
|
|
117
116
|
//# sourceMappingURL=github.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/gitlab.ts
|
|
8
8
|
/** Prefix of the routes, checked against the backend contract. */
|
|
9
9
|
const gitlabGroup = { prefix: "/api/gitlab" };
|
|
10
10
|
/**
|
|
@@ -117,6 +117,5 @@ const getGitlabAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
117
117
|
*/
|
|
118
118
|
const gitlabEndpoint = createEndpoint(getGitlabAPI);
|
|
119
119
|
|
|
120
|
-
//#endregion
|
|
121
120
|
export { getGitlabAPI, gitlabEndpoint };
|
|
122
121
|
//# sourceMappingURL=gitlab.mjs.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getOAuthAPI } from "./oAuth.mjs";
|
|
2
1
|
import { getAiAPI } from "./ai.mjs";
|
|
3
2
|
import { getAnalyticsAPI } from "./analytics.mjs";
|
|
4
3
|
import { getAssetAPI } from "./asset.mjs";
|
|
@@ -12,6 +11,7 @@ import { getGiteeAPI } from "./gitee.mjs";
|
|
|
12
11
|
import { getGithubAPI } from "./github.mjs";
|
|
13
12
|
import { getGitlabAPI } from "./gitlab.mjs";
|
|
14
13
|
import { getNewsletterAPI } from "./newsletter.mjs";
|
|
14
|
+
import { getOAuthAPI } from "./oAuth.mjs";
|
|
15
15
|
import { getOrganizationAPI } from "./organization.mjs";
|
|
16
16
|
import { getProjectAPI } from "./project.mjs";
|
|
17
17
|
import { getReviewerAPI } from "./reviewer.mjs";
|
|
@@ -25,7 +25,7 @@ import { getUserAPI } from "./user.mjs";
|
|
|
25
25
|
import { editor } from "@intlayer/config/built";
|
|
26
26
|
import { defu } from "defu";
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
// src/getIntlayerAPI/index.ts
|
|
29
29
|
const getIntlayerAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
30
30
|
const resolvedConfig = defu(intlayerConfig ?? {}, { editor });
|
|
31
31
|
return {
|
|
@@ -56,6 +56,5 @@ const getIntlayerAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
//#endregion
|
|
60
59
|
export { getIntlayerAPI };
|
|
61
60
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/newsletter.ts
|
|
8
8
|
/** Prefix of the routes, checked against the backend contract. */
|
|
9
9
|
const newsletterGroup = { prefix: "/api/newsletter" };
|
|
10
10
|
/**
|
|
@@ -64,6 +64,5 @@ const getNewsletterAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
64
64
|
*/
|
|
65
65
|
const newsletterEndpoint = createEndpoint(getNewsletterAPI);
|
|
66
66
|
|
|
67
|
-
//#endregion
|
|
68
67
|
export { getNewsletterAPI, newsletterEndpoint };
|
|
69
68
|
//# sourceMappingURL=newsletter.mjs.map
|
|
@@ -3,7 +3,7 @@ import { editor } from "@intlayer/config/built";
|
|
|
3
3
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
4
4
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/getIntlayerAPI/oAuth.ts
|
|
7
7
|
/** OAuth2 routes, checked against the backend contract. */
|
|
8
8
|
const oAuth2Group = { prefix: "/oauth2" };
|
|
9
9
|
const oAuth2Endpoints = {
|
|
@@ -60,6 +60,5 @@ const getOAuthAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
//#endregion
|
|
64
63
|
export { getOAuthAPI };
|
|
65
64
|
//# sourceMappingURL=oAuth.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/organization.ts
|
|
8
8
|
/** Prefix of the routes, checked against the backend contract. */
|
|
9
9
|
const organizationGroup = { prefix: "/api/organization" };
|
|
10
10
|
/**
|
|
@@ -163,6 +163,5 @@ const getOrganizationAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
163
163
|
*/
|
|
164
164
|
const organizationEndpoint = createEndpoint(getOrganizationAPI);
|
|
165
165
|
|
|
166
|
-
//#endregion
|
|
167
166
|
export { getOrganizationAPI, organizationEndpoint };
|
|
168
167
|
//# sourceMappingURL=organization.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/project.ts
|
|
8
8
|
/** Prefix of the project routes, checked against the backend contract. */
|
|
9
9
|
const projectGroup = { prefix: "/api/project" };
|
|
10
10
|
/**
|
|
@@ -252,6 +252,5 @@ const getProjectAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
252
252
|
*/
|
|
253
253
|
const projectEndpoint = createEndpoint(getProjectAPI);
|
|
254
254
|
|
|
255
|
-
//#endregion
|
|
256
255
|
export { getProjectAPI, projectEndpoint };
|
|
257
256
|
//# sourceMappingURL=project.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/reviewer.ts
|
|
8
8
|
/** Prefix of the routes, checked against the backend contract. */
|
|
9
9
|
const reviewerGroup = { prefix: "/api/reviewer" };
|
|
10
10
|
/**
|
|
@@ -246,6 +246,5 @@ const getReviewerAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
246
246
|
*/
|
|
247
247
|
const reviewerEndpoint = createEndpoint(getReviewerAPI);
|
|
248
248
|
|
|
249
|
-
//#endregion
|
|
250
249
|
export { getReviewerAPI, reviewerEndpoint };
|
|
251
250
|
//# sourceMappingURL=reviewer.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/search.ts
|
|
8
8
|
/** Prefix of the routes, checked against the backend contract. */
|
|
9
9
|
const searchGroup = { prefix: "/api/search" };
|
|
10
10
|
/**
|
|
@@ -36,6 +36,5 @@ const getSearchAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
36
36
|
*/
|
|
37
37
|
const searchEndpoint = createEndpoint(getSearchAPI);
|
|
38
38
|
|
|
39
|
-
//#endregion
|
|
40
39
|
export { getSearchAPI, searchEndpoint };
|
|
41
40
|
//# sourceMappingURL=search.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/showcaseProject.ts
|
|
8
8
|
/** Prefix of the routes, checked against the backend contract. */
|
|
9
9
|
const showcaseProjectGroup = { prefix: "/api/showcase-project" };
|
|
10
10
|
/**
|
|
@@ -108,6 +108,5 @@ const getShowcaseProjectAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
108
108
|
*/
|
|
109
109
|
const showcaseProjectEndpoint = createEndpoint(getShowcaseProjectAPI);
|
|
110
110
|
|
|
111
|
-
//#endregion
|
|
112
111
|
export { getShowcaseProjectAPI, showcaseProjectEndpoint };
|
|
113
112
|
//# sourceMappingURL=showcaseProject.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/status.ts
|
|
8
8
|
/** Routes used here, checked against the backend contract. */
|
|
9
9
|
const userGroup = { prefix: "/api/user" };
|
|
10
10
|
const setupStatusEndpoint = {
|
|
@@ -54,6 +54,5 @@ const getStatusAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
54
54
|
*/
|
|
55
55
|
const statusEndpoint = createEndpoint(getStatusAPI);
|
|
56
56
|
|
|
57
|
-
//#endregion
|
|
58
57
|
export { getStatusAPI, statusEndpoint };
|
|
59
58
|
//# sourceMappingURL=status.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/stripe.ts
|
|
8
8
|
/** Prefix of the routes, checked against the backend contract. */
|
|
9
9
|
const stripeGroup = { prefix: "/api/stripe" };
|
|
10
10
|
/**
|
|
@@ -286,6 +286,5 @@ const getStripeAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
286
286
|
*/
|
|
287
287
|
const stripeEndpoint = createEndpoint(getStripeAPI);
|
|
288
288
|
|
|
289
|
-
//#endregion
|
|
290
289
|
export { getStripeAPI, stripeEndpoint };
|
|
291
290
|
//# sourceMappingURL=stripe.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/tag.ts
|
|
8
8
|
/** Prefix of the routes, checked against the backend contract. */
|
|
9
9
|
const tagGroup = { prefix: "/api/tag" };
|
|
10
10
|
/**
|
|
@@ -75,6 +75,5 @@ const getTagAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
75
75
|
*/
|
|
76
76
|
const tagEndpoint = createEndpoint(getTagAPI);
|
|
77
77
|
|
|
78
|
-
//#endregion
|
|
79
78
|
export { getTagAPI, tagEndpoint };
|
|
80
79
|
//# sourceMappingURL=tag.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/translate.ts
|
|
8
8
|
/** Prefix of the routes, checked against the backend contract. */
|
|
9
9
|
const translationGroup = { prefix: "/api/translate" };
|
|
10
10
|
/**
|
|
@@ -69,6 +69,5 @@ const getTranslateAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
69
69
|
*/
|
|
70
70
|
const translateEndpoint = createEndpoint(getTranslateAPI);
|
|
71
71
|
|
|
72
|
-
//#endregion
|
|
73
72
|
export { getTranslateAPI, translateEndpoint };
|
|
74
73
|
//# sourceMappingURL=translate.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { fetcher } from "../fetcher.mjs";
|
|
2
1
|
import { createEndpoint } from "../cms/createIntlayerCMS.mjs";
|
|
2
|
+
import { fetcher } from "../fetcher.mjs";
|
|
3
3
|
import { editor } from "@intlayer/config/built";
|
|
4
4
|
import { buildRouteURL } from "@intlayer/backend-contract/defineRoute";
|
|
5
5
|
import { BACKEND_URL } from "@intlayer/config/defaultValues";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/getIntlayerAPI/user.ts
|
|
8
8
|
/** Prefix of the routes, checked against the backend contract. */
|
|
9
9
|
const userGroup = { prefix: "/api/user" };
|
|
10
10
|
/**
|
|
@@ -151,6 +151,5 @@ const getUserAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
151
151
|
*/
|
|
152
152
|
const userEndpoint = createEndpoint(getUserAPI);
|
|
153
153
|
|
|
154
|
-
//#endregion
|
|
155
154
|
export { getUserAPI, userEndpoint };
|
|
156
155
|
//# sourceMappingURL=user.mjs.map
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { BACKEND_INTERNAL_URL_ENVIRONMENT_VARIABLE, resolveInternalBackendUrl } from "./resolveInternalBackendUrl.mjs";
|
|
2
1
|
import { FetcherError, fetcher, fetcherOptions } from "./fetcher.mjs";
|
|
3
|
-
import {
|
|
2
|
+
import { getIntlayerAPI } from "./getIntlayerAPI/index.mjs";
|
|
3
|
+
import { aiEndpoint, getAiAPI } from "./getIntlayerAPI/ai.mjs";
|
|
4
4
|
import { clearAccessTokenCache, createAuthManager } from "./cms/createAuthManager.mjs";
|
|
5
5
|
import { createEndpoint, createIntlayerCMS } from "./cms/createIntlayerCMS.mjs";
|
|
6
|
-
import { aiEndpoint, getAiAPI } from "./getIntlayerAPI/ai.mjs";
|
|
7
6
|
import { analyticsEndpoint, getAnalyticsAPI } from "./getIntlayerAPI/analytics.mjs";
|
|
7
|
+
import { fetchDistantDictionaries } from "./distantDictionary/fetchDistantDictionaries.mjs";
|
|
8
|
+
import { fetchDistantDictionary } from "./distantDictionary/fetchDistantDictionary.mjs";
|
|
8
9
|
import { assetEndpoint, getAssetAPI } from "./getIntlayerAPI/asset.mjs";
|
|
9
10
|
import { auditEndpoint, getAuditAPI } from "./getIntlayerAPI/audit.mjs";
|
|
10
11
|
import { bitbucketEndpoint, getBitbucketAPI } from "./getIntlayerAPI/bitbucket.mjs";
|
|
11
|
-
import { createForgeAPI } from "./getIntlayerAPI/forge.mjs";
|
|
12
12
|
import { codebergEndpoint, getCodebergAPI } from "./getIntlayerAPI/codeberg.mjs";
|
|
13
13
|
import { dictionaryEndpoint, getDictionaryAPI } from "./getIntlayerAPI/dictionary.mjs";
|
|
14
14
|
import { editorEndpoint, getEditorAPI } from "./getIntlayerAPI/editor.mjs";
|
|
15
15
|
import { environmentEndpoint, getEnvironmentAPI } from "./getIntlayerAPI/environment.mjs";
|
|
16
|
+
import { createForgeAPI } from "./getIntlayerAPI/forge.mjs";
|
|
16
17
|
import { getGiteeAPI, giteeEndpoint } from "./getIntlayerAPI/gitee.mjs";
|
|
17
18
|
import { getGithubAPI, githubEndpoint } from "./getIntlayerAPI/github.mjs";
|
|
18
19
|
import { getGitlabAPI, gitlabEndpoint } from "./getIntlayerAPI/gitlab.mjs";
|
|
19
20
|
import { getNewsletterAPI, newsletterEndpoint } from "./getIntlayerAPI/newsletter.mjs";
|
|
21
|
+
import { getOAuthAPI } from "./getIntlayerAPI/oAuth.mjs";
|
|
20
22
|
import { getOrganizationAPI, organizationEndpoint } from "./getIntlayerAPI/organization.mjs";
|
|
21
23
|
import { getProjectAPI, projectEndpoint } from "./getIntlayerAPI/project.mjs";
|
|
22
24
|
import { getReviewerAPI, reviewerEndpoint } from "./getIntlayerAPI/reviewer.mjs";
|
|
@@ -28,8 +30,6 @@ import { getTagAPI, tagEndpoint } from "./getIntlayerAPI/tag.mjs";
|
|
|
28
30
|
import { getTranslateAPI, translateEndpoint } from "./getIntlayerAPI/translate.mjs";
|
|
29
31
|
import { getUserAPI, userEndpoint } from "./getIntlayerAPI/user.mjs";
|
|
30
32
|
import { getIntlayerAPIProxy } from "./proxy.mjs";
|
|
31
|
-
import {
|
|
32
|
-
import { fetchDistantDictionary } from "./distantDictionary/fetchDistantDictionary.mjs";
|
|
33
|
-
import { getIntlayerAPI } from "./getIntlayerAPI/index.mjs";
|
|
33
|
+
import { BACKEND_INTERNAL_URL_ENVIRONMENT_VARIABLE, resolveInternalBackendUrl } from "./resolveInternalBackendUrl.mjs";
|
|
34
34
|
|
|
35
35
|
export { BACKEND_INTERNAL_URL_ENVIRONMENT_VARIABLE, FetcherError, aiEndpoint, analyticsEndpoint, assetEndpoint, auditEndpoint, bitbucketEndpoint, clearAccessTokenCache, codebergEndpoint, createAuthManager, createEndpoint, createForgeAPI, createIntlayerCMS, dictionaryEndpoint, editorEndpoint, environmentEndpoint, fetchDistantDictionaries, fetchDistantDictionary, fetcher, fetcherOptions, getAiAPI, getAnalyticsAPI, getAssetAPI, getAuditAPI, getBitbucketAPI, getCodebergAPI, getDictionaryAPI, getEditorAPI, getEnvironmentAPI, getGiteeAPI, getGithubAPI, getGitlabAPI, getIntlayerAPI, getIntlayerAPIProxy, getNewsletterAPI, getOAuthAPI, getOrganizationAPI, getProjectAPI, getReviewerAPI, getSearchAPI, getShowcaseProjectAPI, getStatusAPI, getStripeAPI, getTagAPI, getTranslateAPI, getUserAPI, giteeEndpoint, githubEndpoint, gitlabEndpoint, newsletterEndpoint, organizationEndpoint, projectEndpoint, resolveInternalBackendUrl, reviewerEndpoint, searchEndpoint, showcaseProjectEndpoint, statusEndpoint, stripeEndpoint, tagEndpoint, translateEndpoint, userEndpoint };
|
package/dist/esm/proxy.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getOAuthAPI } from "./getIntlayerAPI/oAuth.mjs";
|
|
2
1
|
import { createIntlayerCMS } from "./cms/createIntlayerCMS.mjs";
|
|
3
2
|
import { getAiAPI } from "./getIntlayerAPI/ai.mjs";
|
|
4
3
|
import { getAnalyticsAPI } from "./getIntlayerAPI/analytics.mjs";
|
|
@@ -13,6 +12,7 @@ import { getGiteeAPI } from "./getIntlayerAPI/gitee.mjs";
|
|
|
13
12
|
import { getGithubAPI } from "./getIntlayerAPI/github.mjs";
|
|
14
13
|
import { getGitlabAPI } from "./getIntlayerAPI/gitlab.mjs";
|
|
15
14
|
import { getNewsletterAPI } from "./getIntlayerAPI/newsletter.mjs";
|
|
15
|
+
import { getOAuthAPI } from "./getIntlayerAPI/oAuth.mjs";
|
|
16
16
|
import { getOrganizationAPI } from "./getIntlayerAPI/organization.mjs";
|
|
17
17
|
import { getProjectAPI } from "./getIntlayerAPI/project.mjs";
|
|
18
18
|
import { getReviewerAPI } from "./getIntlayerAPI/reviewer.mjs";
|
|
@@ -25,7 +25,7 @@ import { getTranslateAPI } from "./getIntlayerAPI/translate.mjs";
|
|
|
25
25
|
import { getUserAPI } from "./getIntlayerAPI/user.mjs";
|
|
26
26
|
import { editor } from "@intlayer/config/built";
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
// src/proxy.ts
|
|
29
29
|
const sectionFactories = {
|
|
30
30
|
asset: getAssetAPI,
|
|
31
31
|
organization: getOrganizationAPI,
|
|
@@ -95,6 +95,5 @@ const getIntlayerAPIProxy = (baseAuthOptions = {}, intlayerConfig = { editor },
|
|
|
95
95
|
});
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
//#endregion
|
|
99
98
|
export { getIntlayerAPIProxy };
|
|
100
99
|
//# sourceMappingURL=proxy.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { editor } from "@intlayer/config/built";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/public/createPublicClient.ts
|
|
4
4
|
/**
|
|
5
5
|
* Browser-safe Intlayer client, authenticated without any confidential
|
|
6
6
|
* credential.
|
|
@@ -137,6 +137,5 @@ const createPublicClient = ({ intlayerConfig } = {}) => {
|
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
//#endregion
|
|
141
140
|
export { createPublicClient };
|
|
142
141
|
//# sourceMappingURL=createPublicClient.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { editor } from "@intlayer/config/built";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/resolveInternalBackendUrl.ts
|
|
4
4
|
/**
|
|
5
5
|
* Server-only override for the backend origin.
|
|
6
6
|
*
|
|
@@ -44,6 +44,5 @@ const resolveInternalBackendUrl = (url, publicBackendUrl = editor.backendURL) =>
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
//#endregion
|
|
48
47
|
export { BACKEND_INTERNAL_URL_ENVIRONMENT_VARIABLE, resolveInternalBackendUrl };
|
|
49
48
|
//# sourceMappingURL=resolveInternalBackendUrl.mjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
//#region src/cms/createAuthManager.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Any asynchronous API method exposed by a domain section
|
|
6
5
|
* (e.g. `getDictionaries`, `pushDictionaries`).
|
|
@@ -99,5 +98,5 @@ export type AuthManager = {
|
|
|
99
98
|
* @param options - Optional session token and base fetcher options.
|
|
100
99
|
*/
|
|
101
100
|
export declare const createAuthManager: (intlayerConfig?: Pick<IntlayerConfig, 'editor'>, options?: AuthManagerOptions) => AuthManager;
|
|
102
|
-
|
|
101
|
+
export {};
|
|
103
102
|
//# sourceMappingURL=createAuthManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAuthManager.d.ts","names":[],"sources":["../../../src/cms/createAuthManager.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"createAuthManager.d.ts","names":[],"sources":["../../../src/cms/createAuthManager.ts"],"mappings":";;;;;;KAuBK,YAAY,6BAA6B,cACzC,MAAM,cACN,QAAQ;;;;;KAMR,eAAe,gBAAgB,4BAClC,gBAAgB,gBAChB,gBAAgB,mBACb;;qBAsBQ;;;;YA6ED;;;;EAIV,qBAAqB;;;;;;EAMrB;;;;;YAMU;;;;;EAKV;;;;;;;;;;YAWU;;;;;EAKV,gBAAgB;;;;EAIhB,gBAAgB;;;;;EAKhB;;;;;EAKA,kBAAkB;;;;EAIlB;;;;;EAKA,WAAW,6BAA6B,QACtC,QAAQ,YAAY,WAAW,SAC/B,uBACG,YAAY,WAAW;;;;;;;;;;;EAW5B,cAAc,gBAAgB,yBAC5B,SAAS,eAAe,UACxB,UAAU,uBACP;;;;;;;;;;;;;qBAcM,oBAAiB,iBACZ,KAAK,2BAAyB,UACrC,uBACR"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { AuthManager, AuthManagerOptions, BindSectionOptions } from "./createAuthManager.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
//#region src/cms/createIntlayerCMS.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Options accepted when creating the Intlayer CMS authenticator.
|
|
7
6
|
*/
|
|
@@ -74,5 +73,4 @@ export type CMSEndpoint<Section extends Record<string, unknown>> = (cms?: Intlay
|
|
|
74
73
|
* ```
|
|
75
74
|
*/
|
|
76
75
|
export declare const createEndpoint: <Section extends Record<string, unknown>>(factory: (fetcherOptions: FetcherOptions, intlayerConfig: IntlayerConfig) => Section, options?: BindSectionOptions) => CMSEndpoint<Section>;
|
|
77
|
-
//#endregion
|
|
78
76
|
//# sourceMappingURL=createIntlayerCMS.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createIntlayerCMS.d.ts","names":[],"sources":["../../../src/cms/createIntlayerCMS.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"createIntlayerCMS.d.ts","names":[],"sources":["../../../src/cms/createIntlayerCMS.ts"],"mappings":";;;;;;YAaY,qBAAqB;;;;;;;;YASrB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAqCb,oBAAiB,iBACZ,KAAK,2BAAyB,UACrC,uBACR;;;;;;YAOS,YAAY,gBAAgB,4BACtC,MAAM,gBACH;;;;;;;;;;;;;;;;;;qBAmBQ,iBACV,gBAAgB,yBAAuB,UAEpC,gBAAgB,gBAChB,gBAAgB,mBACb,SAAO,UACF,uBACT,YAAY"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { DictionaryAPI } from "@intlayer/backend-contract/dictionary";
|
|
3
|
-
//#region src/distantDictionary/fetchDistantDictionaries.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Fetch distant dictionary
|
|
6
5
|
*/
|
|
7
6
|
export declare const fetchDistantDictionaries: (intlayerConfig: IntlayerConfig) => Promise<DictionaryAPI[] | null | undefined>;
|
|
8
|
-
//#endregion
|
|
9
7
|
//# sourceMappingURL=fetchDistantDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionaries.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionaries.ts"],"mappings":";;;;;qBAQa,2BAAwB,gBACnB,mBACf,QAAQ"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { DictionaryAPI } from "@intlayer/backend-contract/dictionary";
|
|
3
|
-
//#region src/distantDictionary/fetchDistantDictionary.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Fetch distant dictionary
|
|
6
5
|
*/
|
|
7
6
|
export declare const fetchDistantDictionary: (dictionaryKey: string, intlayerConfig: IntlayerConfig) => Promise<DictionaryAPI | undefined>;
|
|
8
|
-
//#endregion
|
|
9
7
|
//# sourceMappingURL=fetchDistantDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDistantDictionary.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionary.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchDistantDictionary.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionary.ts"],"mappings":";;;;;qBAQa,yBAAsB,uBACZ,gBACL,mBACf,QAAQ"}
|
package/dist/types/fetcher.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/fetcher.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Error thrown when the backend answers with a non-ok response.
|
|
4
3
|
*
|
|
@@ -88,5 +87,4 @@ export declare const fetcherOptions: FetcherOptions;
|
|
|
88
87
|
* ```
|
|
89
88
|
*/
|
|
90
89
|
export declare const fetcher: <T>(url: string, ...options: FetcherOptions[]) => Promise<T>;
|
|
91
|
-
//#endregion
|
|
92
90
|
//# sourceMappingURL=fetcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","names":[],"sources":["../../src/fetcher.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","names":[],"sources":["../../src/fetcher.ts"],"mappings":";;;;;;;qBASa,qBAAqB;;WAEhB;;WAEA;;WAEA;EAEhB,YACE,iBACA;IAAW;IAAgB;IAAe;;;;;;;;YAgBlC,iBAAiB,KAAK;;;;EAIhC,OAAO;;;;EAIP,SACI,yFAKA;;;;;;;qBAQO,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6FhB,UAAiB,GAAC,gBAClB,SACC,qBACX,QAAQ"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
1
|
import "../index.js";
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
4
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
5
5
|
import { AIOptions, AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationFieldResult, AuditContentDeclarationMetadataBody, AuditContentDeclarationMetadataResult, AuditContentDeclarationResult, AuditTagBody, AuditTagResult, AutocompleteResponse, ChatCompletionRequestMessage, ChatResult, CustomQueryBody, CustomQueryResult, GetAIStatsResult, GetDiscussionsParams, GetDiscussionsResult, TranslateJSONBody, TranslateJSONResult } from "@intlayer/backend-contract/ai";
|
|
6
|
-
//#region src/getIntlayerAPI/ai.d.ts
|
|
7
6
|
export type AutocompleteBody = {
|
|
8
7
|
text: string;
|
|
9
8
|
aiOptions?: AIOptions;
|
|
@@ -62,6 +61,5 @@ export declare const aiEndpoint: CMSEndpoint<{
|
|
|
62
61
|
getDiscussions: (params?: GetDiscussionsParams, otherOptions?: FetcherOptions) => Promise<GetDiscussionsResult>;
|
|
63
62
|
getAIStats: (otherOptions?: FetcherOptions) => Promise<GetAIStatsResult>;
|
|
64
63
|
}>;
|
|
65
|
-
//#endregion
|
|
66
64
|
export type { AskDocQuestionResult, ChatResult };
|
|
67
65
|
//# sourceMappingURL=ai.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/ai.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ai.d.ts","names":["_$__0.CMSEndpoint"],"sources":["../../../src/getIntlayerAPI/ai.ts"],"mappings":";;;;;YAgCY;EACV;EACA,YAAY;EACZ;EACA;EACA;;YAGU;EACV,UAAU;EACV;EACA,aAAa;EACb,UAAU,UAAU;;YAGV;EACN;EAAkB;;EAClB;;YAEM;EACV,UAAU;EACV;EACA,aAAa;EACb,UAAU,UAAU;EACpB,YAAY,QAAQ;;qBAkCT,WAAQ,iBACH,gBAAc,iBACb;EAWR,cAAA,OAAA,iBAAe,eACR,mBAAc,QAAA;EAkBrB,gBAAA,OAAA,mBAAiB,eACV,mBAAc,QAAA;EAkBrB,0BAAA,OAAA,6BAA2B,eACpB,mBAAc,QAAA;EAkBrB,+BAAA,OAAA,kCAAgC,eACzB,mBAAc,QAAA;EAsBrB,kCAAA,OAAA,qCAAmC,eAC5B,mBAAc,QAAA;EAsBrB,WAAA,OAAA,cAAY,eACL,mBAAc,QAAA;EAgCrB,iBAAA,OAAA,oBAAkB,eACX,mBAAc;EA0FH,OAAA,OAAA,UAAQ,eAAgB,mBAAc;EAyFxD,eAAA,OAAA,kBAAgB,eACT,mBAAc,QAAA;EAgBnB,iBAAA,SAAA,sBAAoB,eACf,mBAAc,QAAA;EAiBU,aAAA,eAAA,mBAAc,QAAA;;;;;;;;qBA+B3C,YA/B2CA;EA/V7C,cAAA,OAAA,iBAAe,eACR,mBAAc,QAAA;EAkBrB,gBAAA,OAAA,mBAAiB,eACV,mBAAc,QAAA;EAkBrB,0BAAA,OAAA,6BAA2B,eACpB,mBAAc,QAAA;EAkBrB,+BAAA,OAAA,kCAAgC,eACzB,mBAAc,QAAA;EAsBrB,kCAAA,OAAA,qCAAmC,eAC5B,mBAAc,QAAA;EAsBrB,WAAA,OAAA,cAAY,eACL,mBAAc,QAAA;EAgCrB,iBAAA,OAAA,oBAAkB,eACX,mBAAc;EA0FH,OAAA,OAAA,UAAQ,eAAgB,mBAAc;EAyFxD,eAAA,OAAA,kBAAgB,eACT,mBAAc,QAAA;EAgBnB,iBAAA,SAAA,sBAAoB,eACf,mBAAc,QAAA;EAiBU,aAAA,eAAA,mBAAc,QAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
1
|
import "../index.js";
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
4
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
5
5
|
import { AudienceRange, GetAnalyticsOverviewResult, GetAudienceResult, GetContentStatsResult, GetExperimentResultsResult, GetPageMetadataResult, IngestAnalyticsBody, IngestAnalyticsResult } from "@intlayer/backend-contract/analytics";
|
|
6
|
-
//#region src/getIntlayerAPI/analytics.d.ts
|
|
7
6
|
export declare const getAnalyticsAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
8
7
|
sendEvents: (body: IngestAnalyticsBody, otherOptions?: FetcherOptions) => Promise<IngestAnalyticsResult>;
|
|
9
8
|
getOverview: (otherOptions?: FetcherOptions) => Promise<GetAnalyticsOverviewResult>;
|
|
@@ -26,5 +25,4 @@ export declare const analyticsEndpoint: CMSEndpoint<{
|
|
|
26
25
|
getExperimentResults: (experimentKey: string, otherOptions?: FetcherOptions) => Promise<GetExperimentResultsResult>;
|
|
27
26
|
getPageMetadata: (url: string, otherOptions?: FetcherOptions) => Promise<GetPageMetadataResult>;
|
|
28
27
|
}>;
|
|
29
|
-
//#endregion
|
|
30
28
|
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/analytics.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","names":["_$__0.CMSEndpoint"],"sources":["../../../src/getIntlayerAPI/analytics.ts"],"mappings":";;;;;qBAsCa,kBAAe,iBACV,gBAAc,iBACb;EAYT,aAAA,MAAA,qBAAmB,eACX,mBAAc,QAAA;EAoBW,cAAA,eAAA,mBAAc,QAAA;EAoB9C,cAAA,QAAA,wBAAsB,eACf,mBAAc,QAAA;EAoBe,kBAAA,eAAA,mBAAc,QAAA;EAkB1C,uBAAA,uBAAM,eACP,mBAAc,QAAA;EAoBvB,kBAAA,aAAM,eACG,mBAAc,QAAA;;;;;;;;qBAgCnB,mBAhCmBA;EAtGtB,aAAA,MAAA,qBAAmB,eACX,mBAAc,QAAA;EAoBW,cAAA,eAAA,mBAAc,QAAA;EAoB9C,cAAA,QAAA,wBAAsB,eACf,mBAAc,QAAA;EAoBe,kBAAA,eAAA,mBAAc,QAAA;EAkB1C,uBAAA,uBAAM,eACP,mBAAc,QAAA;EAoBvB,kBAAA,aAAM,eACG,mBAAc,QAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
1
|
import "../index.js";
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
4
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
5
5
|
import { DeleteAssetResult, GetAssetByIdResult, GetAssetsResult, UpdateAssetResult, UploadAssetResult } from "@intlayer/backend-contract/asset";
|
|
6
|
-
//#region src/getIntlayerAPI/asset.d.ts
|
|
7
6
|
export declare const getAssetAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
8
7
|
getAssets: (page?: number, pageSize?: number, otherOptions?: FetcherOptions) => Promise<GetAssetsResult>;
|
|
9
8
|
getAssetById: (assetId: string, otherOptions?: FetcherOptions) => Promise<GetAssetByIdResult>;
|
|
@@ -32,5 +31,4 @@ export declare const assetEndpoint: CMSEndpoint<{
|
|
|
32
31
|
}, otherOptions?: FetcherOptions) => Promise<UpdateAssetResult>;
|
|
33
32
|
deleteAsset: (assetId: string, otherOptions?: FetcherOptions) => Promise<DeleteAssetResult>;
|
|
34
33
|
}>;
|
|
35
|
-
//#endregion
|
|
36
34
|
//# sourceMappingURL=asset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/asset.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"asset.d.ts","names":["_$__0.CMSEndpoint"],"sources":["../../../src/getIntlayerAPI/asset.ts"],"mappings":";;;;;qBAkCa,cAAW,iBACN,gBAAc,iBACb;EAYR,YAAA,eAAM,mBACI,eACH,mBAAc,QAAA;EAqBnB,eAAA,iBAAM,eACD,mBAAc,QAAA;EAmBtB,cAAA,MAAA,MAAI,cACE,kBACI,eACF,mBAAc,QAAA;EAyCnB,cAAA,iBAAM;IACP;IAAuB;IAAc;KAAkB,eACjD,mBAAc,QAAA;EAoBnB,cAAA,iBAAM,eACD,mBAAc,QAAA;;;;;;;;qBA0BnB,eA1BmBA;EA9GrB,YAAA,eAAM,mBACI,eACH,mBAAc,QAAA;EAqBnB,eAAA,iBAAM,eACD,mBAAc,QAAA;EAmBtB,cAAA,MAAA,MAAI,cACE,kBACI,eACF,mBAAc,QAAA;EAyCnB,cAAA,iBAAM;IACP;IAAuB;IAAc;KAAkB,eACjD,mBAAc,QAAA;EAoBnB,cAAA,iBAAM,eACD,mBAAc,QAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
1
|
import "../index.js";
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
4
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
5
5
|
import { AuditEvent, GetRecursiveAuditStatusResult, GetScannedHostParams, GetScannedHostResult, GetScannedHostsQuery, GetScannedHostsResult, GetTechnologyUsageQuery, GetTechnologyUsageResult, StartRecursiveAuditResult } from "@intlayer/backend-contract/scan";
|
|
6
|
-
//#region src/getIntlayerAPI/audit.d.ts
|
|
7
6
|
export type ScanUrlBody = {
|
|
8
7
|
url: string;
|
|
9
8
|
/**
|
|
@@ -116,6 +115,5 @@ export declare const auditEndpoint: CMSEndpoint<{
|
|
|
116
115
|
success: boolean;
|
|
117
116
|
}>;
|
|
118
117
|
}>;
|
|
119
|
-
//#endregion
|
|
120
118
|
export type { AuditEvent, GetRecursiveAuditStatusResult, GetScannedHostParams, GetScannedHostResult, GetScannedHostsQuery, GetScannedHostsResult, GetTechnologyUsageQuery, GetTechnologyUsageResult, StartRecursiveAuditResult };
|
|
121
119
|
//# sourceMappingURL=audit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"audit.d.ts","names":["_$__0.CMSEndpoint"],"sources":["../../../src/getIntlayerAPI/audit.ts"],"mappings":";;;;;YAiCY;EACV;;;;;EAKA;EACA,aAAa,OAAO;EACpB;;YAGU;EACV;;YAGU;EACV;;YAGU;EACV;EACA;;YAGU;EACV;;YAGU;EACV;;qBA0BW,cAAW,iBACN,gBAAc,iBACb;EAmLN,qBAAA,SAAA,yBAAuB,eAClB,mBAAc,QAAA;EAcnB,kBAAA,SAAA,sBAAoB,eACf,mBAAc,QAAA;EAanB,iBAAA,SAAA,sBAAoB,eACf,mBAAc,QAAA;EA/LnB,eAAA,SAAA,oBAAkB,eACb,mBAAc,QAAA;EAarB,UAAA,OAAA,aAAW,eACJ,mBAAc;EAuErB,sBAAA,OAAA,yBAAuB,eAChB,mBAAc,QAAA;EAiBnB,0BAAA,SAAA,+BAA6B,eACxB,mBAAc;;;;;;;;;;;;;;;;;;;;;;;EAcnB,uBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH;;EAUhB,sBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH;;EAUhB,uBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH;;;;;;;;;qBA0EhB,eA5EmBA;EAenB,qBAAA,SAAA,yBAAuB,eAClB,mBAAc,QAAA;EAcnB,kBAAA,SAAA,sBAAoB,eACf,mBAAc,QAAA;EAanB,iBAAA,SAAA,sBAAoB,eACf,mBAAc,QAAA;EA/LnB,eAAA,SAAA,oBAAkB,eACb,mBAAc,QAAA;EAarB,UAAA,OAAA,aAAW,eACJ,mBAAc;EAuErB,sBAAA,OAAA,yBAAuB,eAChB,mBAAc,QAAA;EAiBnB,0BAAA,SAAA,+BAA6B,eACxB,mBAAc;;;;;;;;;;;;;;;;;;;;;;;EAcnB,uBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH;;EAUhB,sBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH;;EAUhB,uBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH"}
|