@intlayer/api 6.1.6 → 7.0.0-canary.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/_virtual/rolldown_runtime.cjs +25 -0
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs +18 -55
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs.map +1 -1
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs +20 -58
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs.map +1 -1
- package/dist/cjs/distantDictionary/index.cjs +5 -25
- package/dist/cjs/fetcher.cjs +113 -89
- package/dist/cjs/fetcher.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/ai.cjs +163 -188
- package/dist/cjs/getIntlayerAPI/ai.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/dictionary.cjs +69 -117
- package/dist/cjs/getIntlayerAPI/dictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/editor.cjs +37 -74
- package/dist/cjs/getIntlayerAPI/editor.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/index.cjs +27 -49
- package/dist/cjs/getIntlayerAPI/index.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/newsletter.cjs +40 -77
- package/dist/cjs/getIntlayerAPI/newsletter.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/oAuth.cjs +26 -65
- package/dist/cjs/getIntlayerAPI/oAuth.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/organization.cjs +93 -130
- package/dist/cjs/getIntlayerAPI/organization.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/project.cjs +109 -154
- package/dist/cjs/getIntlayerAPI/project.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/search.cjs +22 -58
- package/dist/cjs/getIntlayerAPI/search.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/stripe.cjs +38 -77
- package/dist/cjs/getIntlayerAPI/stripe.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/tag.cjs +47 -86
- package/dist/cjs/getIntlayerAPI/tag.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/user.cjs +79 -106
- package/dist/cjs/getIntlayerAPI/user.cjs.map +1 -1
- package/dist/cjs/index.cjs +30 -49
- package/dist/cjs/proxy.cjs +90 -115
- package/dist/cjs/proxy.cjs.map +1 -1
- package/dist/cjs/types.cjs +0 -17
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs +17 -20
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs.map +1 -1
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs +19 -23
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs.map +1 -1
- package/dist/esm/distantDictionary/index.mjs +4 -3
- package/dist/esm/fetcher.mjs +111 -64
- package/dist/esm/fetcher.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/ai.mjs +160 -153
- package/dist/esm/getIntlayerAPI/ai.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/dictionary.mjs +66 -82
- package/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/editor.mjs +34 -39
- package/dist/esm/getIntlayerAPI/editor.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/index.mjs +16 -14
- package/dist/esm/getIntlayerAPI/index.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/newsletter.mjs +37 -42
- package/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/oAuth.mjs +23 -30
- package/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/organization.mjs +90 -95
- package/dist/esm/getIntlayerAPI/organization.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/project.mjs +106 -119
- package/dist/esm/getIntlayerAPI/project.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/search.mjs +19 -23
- package/dist/esm/getIntlayerAPI/search.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/stripe.mjs +35 -42
- package/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/tag.mjs +44 -51
- package/dist/esm/getIntlayerAPI/tag.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/user.mjs +76 -71
- package/dist/esm/getIntlayerAPI/user.mjs.map +1 -1
- package/dist/esm/index.mjs +16 -15
- package/dist/esm/proxy.mjs +89 -90
- package/dist/esm/proxy.mjs.map +1 -1
- package/dist/esm/types.mjs +0 -1
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +8 -3
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +8 -3
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
- package/dist/types/distantDictionary/index.d.ts +3 -3
- package/dist/types/fetcher.d.ts +14 -11
- package/dist/types/fetcher.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts +22 -18
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts +16 -12
- package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +11 -7
- package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/index.d.ts +30 -27
- package/dist/types/getIntlayerAPI/index.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts +11 -7
- package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/oAuth.d.ts +8 -5
- package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts +18 -13
- package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +19 -15
- package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts +9 -5
- package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts +11 -7
- package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts +12 -8
- package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +16 -12
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +16 -15
- package/dist/types/proxy.d.ts +10 -5
- package/dist/types/proxy.d.ts.map +1 -1
- package/dist/types/types.d.ts +13 -12
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +29 -38
- package/LICENSE +0 -202
- package/dist/cjs/distantDictionary/index.cjs.map +0 -1
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/types.cjs.map +0 -1
- package/dist/esm/distantDictionary/index.mjs.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/types/distantDictionary/index.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
package/dist/esm/proxy.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/proxy.ts"],"sourcesContent":["import type { IntlayerConfig } from '@intlayer/
|
|
1
|
+
{"version":3,"file":"proxy.mjs","names":["currentAccessToken: string | undefined","currentExpiryTs: number | undefined","pendingRefresh: Promise<void> | undefined","authOptionsRef: FetcherOptions"],"sources":["../../src/proxy.ts"],"sourcesContent":["import type { IntlayerConfig } from '@intlayer/types';\nimport type { FetcherOptions } from './fetcher';\nimport { getIntlayerAPI } from './getIntlayerAPI';\nimport type { IntlayerAPI } from './getIntlayerAPI/index';\nimport { getOAuthAPI } from './getIntlayerAPI/oAuth';\n\ntype OAuthTokenLike = {\n accessToken?: string;\n accessTokenExpiresAt?: string | Date;\n expires_in?: number;\n expiresIn?: number;\n expiresAt?: string | Date;\n};\n\nconst ONE_MINUTE_MS = 60_000;\n\n/**\n * Returns the expiration timestamp in ms from an OAuth token-like object.\n */\nconst getExpiryTimestamp = (\n token: OAuthTokenLike | undefined\n): number | undefined => {\n if (!token) return undefined;\n const dateLike = (token.accessTokenExpiresAt ?? token.expiresAt) as\n | string\n | Date\n | undefined;\n if (dateLike) {\n const ts =\n typeof dateLike === 'string'\n ? Date.parse(dateLike)\n : dateLike.getTime?.();\n if (typeof ts === 'number' && Number.isFinite(ts)) return ts;\n }\n const seconds = token.expires_in ?? token.expiresIn;\n if (typeof seconds === 'number' && Number.isFinite(seconds)) {\n return Date.now() + seconds * 1000;\n }\n return undefined;\n};\n\nlet currentAccessToken: string | undefined;\nlet currentExpiryTs: number | undefined;\nlet pendingRefresh: Promise<void> | undefined;\n\n/**\n * Build an auto-auth proxy around getIntlayerAPI that:\n * - Fetches an OAuth2 token when needed\n * - Injects Authorization header for each request\n * - Refreshes token proactively when near expiry\n *\n * The returned API matches the shape of getIntlayerAPI.\n */\nexport const getIntlayerAPIProxy = (\n _baseAuthOptions: FetcherOptions = {},\n intlayerConfig?: IntlayerConfig\n): IntlayerAPI => {\n // Use a shared mutable auth options object captured by the API closures\n const authOptionsRef: FetcherOptions = { ..._baseAuthOptions };\n const hasCMSAuth =\n intlayerConfig?.editor?.clientId && intlayerConfig?.editor?.clientSecret;\n const baseApi = getIntlayerAPI(authOptionsRef, intlayerConfig);\n\n const needsRefresh = (): boolean => {\n if (!currentAccessToken) return true;\n if (!currentExpiryTs) return false; // If unknown, assume usable until failure\n\n return Date.now() + ONE_MINUTE_MS >= currentExpiryTs; // refresh 1 min before expiry\n };\n\n const refreshToken = async (): Promise<void> => {\n const doRefresh = async () => {\n const authApi = getOAuthAPI(intlayerConfig);\n const res = await authApi.getOAuth2AccessToken();\n const tokenData = res?.data as OAuthTokenLike | undefined;\n\n currentAccessToken = tokenData?.accessToken;\n currentExpiryTs = getExpiryTimestamp(tokenData);\n };\n\n if (!pendingRefresh) {\n pendingRefresh = doRefresh().finally(() => {\n pendingRefresh = undefined;\n });\n }\n await pendingRefresh;\n };\n\n const ensureValidToken = async () => {\n if (needsRefresh()) {\n await refreshToken();\n }\n };\n\n const applyAuthHeaderToRef = () => {\n if (!currentAccessToken) return;\n authOptionsRef.headers = {\n ...(authOptionsRef.headers ?? {}),\n Authorization: `Bearer ${currentAccessToken}`,\n } as HeadersInit;\n };\n\n const wrapSection = <T extends Record<string, unknown>>(\n section: T,\n skipAuth = !hasCMSAuth\n ): T => {\n return new Proxy(section, {\n get(target, prop, receiver) {\n const value = Reflect.get(target, prop, receiver);\n\n if (typeof value === 'function') {\n // Wrap section method to inject token and headers\n return async (...args: unknown[]) => {\n if (!skipAuth) {\n await ensureValidToken();\n applyAuthHeaderToRef();\n }\n\n try {\n return await value.apply(target, args);\n } catch (err) {\n // Best-effort retry: if token might be stale, refresh once and retry\n if (!skipAuth) {\n await refreshToken();\n applyAuthHeaderToRef();\n return await value.apply(target, args);\n }\n throw err;\n }\n };\n }\n\n return value;\n },\n });\n };\n\n return {\n organization: wrapSection(baseApi.organization),\n project: wrapSection(baseApi.project),\n user: wrapSection(baseApi.user),\n oAuth: wrapSection(baseApi.oAuth, true), // do NOT inject auth for token endpoint\n dictionary: wrapSection(baseApi.dictionary),\n stripe: wrapSection(baseApi.stripe),\n ai: wrapSection(baseApi.ai),\n tag: wrapSection(baseApi.tag),\n search: wrapSection(baseApi.search),\n editor: wrapSection(baseApi.editor),\n newsletter: wrapSection(baseApi.newsletter),\n } as IntlayerAPI;\n};\n\nexport type IntlayerAPIProxy = ReturnType<typeof getIntlayerAPIProxy>;\n"],"mappings":";;;;AAcA,MAAM,gBAAgB;;;;AAKtB,MAAM,sBACJ,UACuB;AACvB,KAAI,CAAC,MAAO,QAAO;CACnB,MAAM,WAAY,MAAM,wBAAwB,MAAM;AAItD,KAAI,UAAU;EACZ,MAAM,KACJ,OAAO,aAAa,WAChB,KAAK,MAAM,SAAS,GACpB,SAAS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AAM,kBAAkB;AACxB,2BAAsB;;AAGxB,QAAI;AACF,YAAO,MAAM,MAAM,MAAM,QAAQ,KAAK;aAC/B,KAAK;AAEZ,SAAI,CAAC,UAAU;AACb,YAAM,cAAc;AACpB,4BAAsB;AACtB,aAAO,MAAM,MAAM,MAAM,QAAQ,KAAK;;AAExC,WAAM;;;AAKZ,UAAO;KAEV,CAAC;;AAGJ,QAAO;EACL,cAAc,YAAY,QAAQ,aAAa;EAC/C,SAAS,YAAY,QAAQ,QAAQ;EACrC,MAAM,YAAY,QAAQ,KAAK;EAC/B,OAAO,YAAY,QAAQ,OAAO,KAAK;EACvC,YAAY,YAAY,QAAQ,WAAW;EAC3C,QAAQ,YAAY,QAAQ,OAAO;EACnC,IAAI,YAAY,QAAQ,GAAG;EAC3B,KAAK,YAAY,QAAQ,IAAI;EAC7B,QAAQ,YAAY,QAAQ,OAAO;EACnC,QAAQ,YAAY,QAAQ,OAAO;EACnC,YAAY,YAAY,QAAQ,WAAW;EAC5C"}
|
package/dist/esm/types.mjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.mjs.map
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DictionaryAPI } from "../types.js";
|
|
2
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/distantDictionary/fetchDistantDictionaries.d.ts
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
7
|
* Fetch distant dictionary
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
declare const fetchDistantDictionaries: (intlayerConfig: IntlayerConfig) => Promise<DictionaryAPI[] | null | undefined>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { fetchDistantDictionaries };
|
|
7
12
|
//# sourceMappingURL=fetchDistantDictionaries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDistantDictionaries.d.ts","
|
|
1
|
+
{"version":3,"file":"fetchDistantDictionaries.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionaries.ts"],"sourcesContent":[],"mappings":";;;;;;;AAOA;AACkB,cADL,wBACK,EAAA,CAAA,cAAA,EAAA,cAAA,EAAA,GACf,OADe,CACP,aADO,EAAA,GAAA,IAAA,GAAA,SAAA,CAAA"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DictionaryAPI } from "../types.js";
|
|
2
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/distantDictionary/fetchDistantDictionary.d.ts
|
|
5
|
+
|
|
3
6
|
/**
|
|
4
7
|
* Fetch distant dictionary
|
|
5
8
|
*/
|
|
6
|
-
|
|
9
|
+
declare const fetchDistantDictionary: (dictionaryKey: string, intlayerConfig: IntlayerConfig) => Promise<DictionaryAPI | undefined>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { fetchDistantDictionary };
|
|
7
12
|
//# sourceMappingURL=fetchDistantDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDistantDictionary.d.ts","
|
|
1
|
+
{"version":3,"file":"fetchDistantDictionary.d.ts","names":[],"sources":["../../../src/distantDictionary/fetchDistantDictionary.ts"],"sourcesContent":[],"mappings":";;;;;;;AAOA;AAEkB,cAFL,sBAEK,EAAA,CAAA,aAAA,EAAA,MAAA,EAAA,cAAA,EAAA,cAAA,EAAA,GACf,OADe,CACP,aADO,GAAA,SAAA,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { fetchDistantDictionaries } from "./fetchDistantDictionaries.js";
|
|
2
|
+
import { fetchDistantDictionary } from "./fetchDistantDictionary.js";
|
|
3
|
+
export { fetchDistantDictionaries, fetchDistantDictionary };
|
package/dist/types/fetcher.d.ts
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
|
+
//#region src/fetcher.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Type definition for options used in the fetcher function.
|
|
3
4
|
* Extends the standard RequestInit interface (excluding 'body'),
|
|
4
5
|
* and adds 'body' and 'params' properties for convenience.
|
|
5
6
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
type FetcherOptions = Omit<RequestInit, 'body'> & {
|
|
8
|
+
/**
|
|
9
|
+
* Body of the request. Should be a key-value pair object.
|
|
10
|
+
*/
|
|
11
|
+
body?: Record<string, unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* Query parameters to be appended to the URL.
|
|
14
|
+
*/
|
|
15
|
+
params?: Record<string, string | string[] | undefined> | string[] | URLSearchParams;
|
|
15
16
|
};
|
|
16
17
|
/**
|
|
17
18
|
* Default options for the fetcher function.
|
|
18
19
|
* Sets the default method to 'GET', the 'Content-Type' header to 'application/json',
|
|
19
20
|
* and includes credentials in the request.
|
|
20
21
|
*/
|
|
21
|
-
|
|
22
|
+
declare const fetcherOptions: FetcherOptions;
|
|
22
23
|
/**
|
|
23
24
|
* Fetcher function to make HTTP requests.
|
|
24
25
|
* It merges default options with user-provided options,
|
|
@@ -66,5 +67,7 @@ export declare const fetcherOptions: FetcherOptions;
|
|
|
66
67
|
* }
|
|
67
68
|
* ```
|
|
68
69
|
*/
|
|
69
|
-
|
|
70
|
+
declare const fetcher: <T>(url: string, ...options: FetcherOptions[]) => Promise<T>;
|
|
71
|
+
//#endregion
|
|
72
|
+
export { FetcherOptions, fetcher, fetcherOptions };
|
|
70
73
|
//# sourceMappingURL=fetcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","names":[],"sources":["../../src/fetcher.ts"],"sourcesContent":[],"mappings":";;AAKA;;;;AASM,KATM,cAAA,GAAiB,IASvB,CAT4B,WAS5B,EAAA,MAAA,CAAA,GAAA;EAEA;;AAQN;EA6Fa,IAAA,CAAA,EA5GJ,MAuLR,CAAA,MAAA,EAAA,OAAA,CAAA;EAzEa;;;EACJ,MAAA,CAAA,EA1GJ,MA0GI,CAAA,MAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,SAAA,CAAA,GAAA,MAAA,EAAA,GAxGJ,eAwGI;;;;;;;cAhGG,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6FhB,sCAEC,qBACX,QAAQ"}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationMetadataBody, AuditTagBody, AutocompleteBody, ChatCompletionRequestMessage, CustomQueryBody, GetDiscussionsParams, TranslateJSONBody } from "../types.js";
|
|
2
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
3
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
4
|
+
|
|
5
|
+
//#region src/getIntlayerAPI/ai.d.ts
|
|
6
|
+
type AskDocQuestionBody = {
|
|
7
|
+
messages: ChatCompletionRequestMessage[];
|
|
8
|
+
discussionId: string;
|
|
9
|
+
onMessage?: (chunk: string) => void;
|
|
10
|
+
onDone?: (response: AskDocQuestionResult) => void;
|
|
9
11
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
declare const getAiAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
13
|
+
customQuery: (body?: CustomQueryBody, otherOptions?: FetcherOptions) => Promise<CustomQueryResult>;
|
|
14
|
+
translateJSON: (body?: TranslateJSONBody, otherOptions?: FetcherOptions) => Promise<TranslateJSONResult>;
|
|
15
|
+
auditContentDeclaration: (body?: AuditContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationResult>;
|
|
16
|
+
auditContentDeclarationField: (body?: AuditContentDeclarationFieldBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationFieldResult>;
|
|
17
|
+
auditContentDeclarationMetadata: (body?: AuditContentDeclarationMetadataBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationMetadataResult>;
|
|
18
|
+
auditTag: (body?: AuditTagBody, otherOptions?: FetcherOptions) => Promise<AuditTagResult>;
|
|
19
|
+
askDocQuestion: (body?: AskDocQuestionBody, otherOptions?: FetcherOptions) => Promise<void>;
|
|
20
|
+
autocomplete: (body?: AutocompleteBody, otherOptions?: FetcherOptions) => Promise<AutocompleteResponse>;
|
|
21
|
+
getDiscussions: (params?: GetDiscussionsParams, otherOptions?: FetcherOptions) => Promise<GetDiscussionsResult>;
|
|
20
22
|
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { AskDocQuestionBody, type AskDocQuestionResult, getAiAPI };
|
|
21
25
|
//# sourceMappingURL=ai.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","
|
|
1
|
+
{"version":3,"file":"ai.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/ai.ts"],"sourcesContent":[],"mappings":";;;;;KAwBY,kBAAA;YACA;EADA,YAAA,EAAA,MAAA;EASC,SAAA,CAAA,EAuRZ,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EAtRiB,MAAA,CAAA,EAAA,CAAA,QAAA,EANI,oBAMJ,EAAA,GAAA,IAAA;CACC;AAoBD,cAtBL,QAsBK,EAAA,CAAA,cAAA,CAAA,EArBA,cAqBA,EAAA,cAAA,CAAA,EApBC,cAoBD,EAAA,GAAA;E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
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { AddDictionaryBody, DeleteDictionaryParam, GetDictionariesParams, GetDictionaryParams, GetDictionaryQuery, PushDictionariesBody, UpdateDictionaryBody } from "../types.js";
|
|
2
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
3
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
4
|
+
|
|
5
|
+
//#region src/getIntlayerAPI/dictionary.d.ts
|
|
6
|
+
declare const getDictionaryAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
|
+
getDictionaries: (filters?: GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<GetDictionariesResult>;
|
|
8
|
+
getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<GetDictionariesKeysResult>;
|
|
9
|
+
getDictionariesUpdateTimestamp: (otherOptions?: FetcherOptions) => Promise<GetDictionariesUpdateTimestampResult>;
|
|
10
|
+
getDictionary: (dictionaryKey: GetDictionaryParams["dictionaryKey"], version?: GetDictionaryQuery["version"], otherOptions?: FetcherOptions) => Promise<GetDictionaryResult>;
|
|
11
|
+
pushDictionaries: (dictionaries: PushDictionariesBody["dictionaries"], otherOptions?: FetcherOptions) => Promise<PushDictionariesResult>;
|
|
12
|
+
addDictionary: (body: AddDictionaryBody, otherOptions?: FetcherOptions) => Promise<AddDictionaryResult>;
|
|
13
|
+
updateDictionary: (dictionary: UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<UpdateDictionaryResult>;
|
|
14
|
+
deleteDictionary: (id: DeleteDictionaryParam["dictionaryId"], otherOptions?: FetcherOptions) => Promise<DeleteDictionaryResult>;
|
|
13
15
|
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { getDictionaryAPI };
|
|
14
18
|
//# sourceMappingURL=dictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/dictionary.ts"],"sourcesContent":[],"mappings":";;;;;cAqBa,oCACK,iCACC;8BAkBL,sCACI,mBAAc,QAAA;EArBnB,mBA8JZ,EAAA,CAAA,YAAA,CAAA,EAzHkD,cAyHlD,EAAA,GAzHgE,OAyHhE,CAzHgE,yBAyHhE,CAAA;EA7JiB,8BAAA,EAAA,CAAA,YAAA,CAAA,EAkDA,cAlDA,EAAA,GAkDc,OAlDd,CAkDc,oCAlDd,CAAA;EACC,aAAA,EAAA,CAAA,aAAA,EAkEA,mBAlEA,CAAA,eAAA,CAAA,EAAA,OAAA,CAAA,EAmEL,kBAnEK,CAAA,SAAA,CAAA,EAAA,YAAA,CAAA,EAoED,cApEC,EAAA,GAoEa,OApEb,CAoEa,mBApEb,CAAA;EAkBL,gBAAA,EAAA,CAAA,YAAA,EAgFI,oBAhFJ,CAAA,cAAA,CAAA,EAAA,YAAA,CAAA,EAiFI,cAjFJ,EAAA,GAiFkB,OAjFlB,CAiFkB,sBAjFlB,CAAA;EACI,aAAA,EAAA,CAAA,IAAA,EAiER,iBAjEQ,EAAA,YAAA,CAAA,EAkEA,cAlEA,EAAA,GAkEc,OAlEd,CAkEc,mBAlEd,CAAA;EAAc,gBAAA,EAAA,CAAA,UAAA,EAiGhB,oBAjGgB,EAAA,YAAA,CAAA,EAkGd,cAlGc,EAAA,GAkGA,OAlGA,CAkGA,sBAlGA,CAAA;EAAA,gBAAA,EAAA,CAAA,EAAA,EAmHxB,qBAnHwB,CAAA,cAAA,CAAA,EAAA,YAAA,CAAA,EAoHd,cApHc,EAAA,GAoHA,OApHA,CAoHA,sBApHA,CAAA;CAgBmB"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { GetConfigurationResult, GetEditorDictionariesResult, WriteContentDeclarationBody } from "../types.js";
|
|
2
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
3
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
4
|
+
|
|
5
|
+
//#region src/getIntlayerAPI/editor.d.ts
|
|
6
|
+
declare const getEditorAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
|
+
getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
|
|
8
|
+
getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>;
|
|
9
|
+
writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>;
|
|
8
10
|
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { getEditorAPI };
|
|
9
13
|
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","
|
|
1
|
+
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/editor.ts"],"sourcesContent":[],"mappings":";;;;;cAUa,gCACK,iCACC;mCA8BD,mBACb,QAAQ;EAjCA,gBAkEZ,EAAA,CAAA,YAAA,CAAA,EAjDiB,cAiDjB,EAAA,GAhDI,OAgDJ,CAhDY,sBAgDZ,CAAA;EAjEiB,eAAA,EAAA,CAAA,IAAA,EA+CR,2BA/CQ,EAAA,YAAA,CAAA,EAgDA,cAhDA,EAAA,GAgDc,OAhDd,CAgDc,6BAhDd,CAAA;CACC"}
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
1
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
+
import { getAiAPI } from "./ai.js";
|
|
3
|
+
import { getDictionaryAPI } from "./dictionary.js";
|
|
4
|
+
import { getEditorAPI } from "./editor.js";
|
|
5
|
+
import { getNewsletterAPI } from "./newsletter.js";
|
|
6
|
+
import { getOAuthAPI } from "./oAuth.js";
|
|
7
|
+
import { getOrganizationAPI } from "./organization.js";
|
|
8
|
+
import { getProjectAPI } from "./project.js";
|
|
9
|
+
import { getSearchAPI } from "./search.js";
|
|
10
|
+
import { getStripeAPI } from "./stripe.js";
|
|
11
|
+
import { getTagAPI } from "./tag.js";
|
|
12
|
+
import { getUserAPI } from "./user.js";
|
|
13
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
14
|
+
|
|
15
|
+
//#region src/getIntlayerAPI/index.d.ts
|
|
14
16
|
interface IntlayerAPIReturn {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
organization: ReturnType<typeof getOrganizationAPI>;
|
|
18
|
+
project: ReturnType<typeof getProjectAPI>;
|
|
19
|
+
user: ReturnType<typeof getUserAPI>;
|
|
20
|
+
oAuth: ReturnType<typeof getOAuthAPI>;
|
|
21
|
+
dictionary: ReturnType<typeof getDictionaryAPI>;
|
|
22
|
+
stripe: ReturnType<typeof getStripeAPI>;
|
|
23
|
+
ai: ReturnType<typeof getAiAPI>;
|
|
24
|
+
tag: ReturnType<typeof getTagAPI>;
|
|
25
|
+
search: ReturnType<typeof getSearchAPI>;
|
|
26
|
+
editor: ReturnType<typeof getEditorAPI>;
|
|
27
|
+
newsletter: ReturnType<typeof getNewsletterAPI>;
|
|
26
28
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
declare const getIntlayerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => IntlayerAPIReturn;
|
|
30
|
+
type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;
|
|
31
|
+
//#endregion
|
|
32
|
+
export { IntlayerAPI, getIntlayerAPI };
|
|
30
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;UAcU,iBAAA;gBACM,kBAAkB;EADxB,OAAA,EAEC,UAFD,CAAiB,OAEE,aAFF,CAAA;EACO,IAAA,EAE1B,UAF0B,CAAA,OAER,UAFQ,CAAA;EAAlB,KAAA,EAGP,UAHO,CAAA,OAGW,WAHX,CAAA;EACa,UAAA,EAGf,UAHe,CAAA,OAGG,gBAHH,CAAA;EAAlB,MAAA,EAID,UAJC,CAAA,OAIiB,YAJjB,CAAA;EACe,EAAA,EAIpB,UAJoB,CAAA,OAIF,QAJE,CAAA;EAAlB,GAAA,EAKD,UALC,CAAA,OAKiB,SALjB,CAAA;EACmB,MAAA,EAKjB,UALiB,CAAA,OAKC,YALD,CAAA;EAAlB,MAAA,EAMC,UAND,CAAA,OAMmB,YANnB,CAAA;EACuB,UAAA,EAMlB,UANkB,CAAA,OAMA,gBANA,CAAA;;AACJ,cAQf,cARe,EAAA,CAAA,cAAA,CAAA,EASV,cATU,EAAA,cAAA,CAAA,EAUT,cAVS,EAAA,GAWzB,iBAXyB;AAAlB,KAyBE,WAAA,GAAc,UAzBhB,CAAA,OAyBkC,cAzBlC,CAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { NewsletterSubscriptionBody, NewsletterUnsubscriptionBody } from "../types.js";
|
|
2
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
3
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
4
|
+
|
|
5
|
+
//#region src/getIntlayerAPI/newsletter.d.ts
|
|
6
|
+
declare const getNewsletterAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
|
+
subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
8
|
+
unsubscribeFromNewsletter: (body: NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
9
|
+
getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
8
10
|
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { getNewsletterAPI };
|
|
9
13
|
//# sourceMappingURL=newsletter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newsletter.d.ts","
|
|
1
|
+
{"version":3,"file":"newsletter.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/newsletter.ts"],"sourcesContent":[],"mappings":";;;;;cASa,oCACK,iCACC;gCAmBT,2CACQ,mBAAc,QAAA;EAtBnB,yBAwEZ,EAAA,CAAA,IAAA,EAhCS,4BAgCT,EAAA,YAAA,CAAA,EA/BiB,cA+BjB,EAAA,GA/B+B,OA+B/B,CA/B+B,4BA+B/B,CAAA;EAvEiB,mBAAA,EAAA,CAAA,YAAA,CAAA,EAwDiC,cAxDjC,EAAA,GAwD+C,OAxD/C,CAwD+C,4BAxD/C,CAAA;CACC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
3
|
+
|
|
4
|
+
//#region src/getIntlayerAPI/oAuth.d.ts
|
|
5
|
+
declare const getOAuthAPI: (intlayerConfig?: IntlayerConfig) => {
|
|
6
|
+
getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<GetOAuth2TokenResult>;
|
|
6
7
|
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { getOAuthAPI };
|
|
7
10
|
//# sourceMappingURL=oAuth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oAuth.d.ts","
|
|
1
|
+
{"version":3,"file":"oAuth.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/oAuth.ts"],"sourcesContent":[],"mappings":";;;;cAKa,+BAAgC;wCAeO,mBAAc,QAAA;AAflE,CAAA"}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { AddOrganizationBody, AddOrganizationMemberBody, GetOrganizationParam, GetOrganizationsParams, SelectOrganizationParam, UpdateOrganizationBody, UpdateOrganizationMembersBody } from "../types.js";
|
|
2
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
3
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
4
|
+
|
|
5
|
+
//#region src/getIntlayerAPI/organization.d.ts
|
|
6
|
+
declare const getOrganizationAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
|
+
getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
|
|
8
|
+
getOrganization: (organizationId: GetOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
|
|
9
|
+
addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
|
|
10
|
+
addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
|
|
11
|
+
updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
|
|
12
|
+
updateOrganizationMembers: (body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
|
|
13
|
+
updateOrganizationMembersById: (organizationId: string, body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
|
|
14
|
+
deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
15
|
+
selectOrganization: (organizationId: SelectOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
|
|
16
|
+
unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
|
|
14
17
|
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { getOrganizationAPI };
|
|
15
20
|
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","
|
|
1
|
+
{"version":3,"file":"organization.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/organization.ts"],"sourcesContent":[],"mappings":";;;;;cAsBa,sCACK,iCACC;+BAkBL,uCACI,mBAAc,QAAA;EArBnB,eAAA,EAAA,CAAA,cAqMZ,EA9JmB,oBA8JnB,CAAA,gBAAA,CAAA,EAAA,YAAA,CAAA,EA7JiB,cA6JjB,EAAA,GA7J+B,OA6J/B,CA7J+B,qBA6J/B,CAAA;EApMiB,eAAA,EAAA,CAAA,YAAA,EAoDA,mBApDA,EAAA,YAAA,CAAA,EAqDA,cArDA,EAAA,GAqDc,OArDd,CAqDc,qBArDd,CAAA;EACC,qBAAA,EAAA,CAAA,IAAA,EA6HT,yBA7HS,EAAA,YAAA,CAAA,EA8HD,cA9HC,EAAA,GA8Ha,OA9Hb,CA8Ha,2BA9Hb,CAAA;EAkBL,kBAAA,EAAA,CAAA,YAAA,EAmDI,sBAnDJ,EAAA,YAAA,CAAA,EAoDI,cApDJ,EAAA,GAoDkB,OApDlB,CAoDkB,wBApDlB,CAAA;EACI,yBAAA,EAAA,CAAA,IAAA,EAoER,6BApEQ,EAAA,YAAA,CAAA,EAqEA,cArEA,EAAA,GAqEc,OArEd,CAqEc,+BArEd,CAAA;EAAc,6BAAA,EAAA,CAAA,cAAA,EAAA,MAAA,EAAA,IAAA,EAwFtB,6BAxFsB,EAAA,YAAA,CAAA,EAyFd,cAzFc,EAAA,GAyFA,OAzFA,CAyFA,+BAzFA,CAAA;EAAA,kBAAA,EAAA,CAAA,YAAA,CAAA,EA2HkB,cA3HlB,EAAA,GA2HgC,OA3HhC,CA2HgC,wBA3HhC,CAAA;EAkBZ,kBAAA,EAAA,CAAA,cAAA,EAwHA,uBAxHA,CAAA,gBAAA,CAAA,EAAA,YAAA,CAAA,EAyHF,cAzHE,EAAA,GAyHY,OAzHZ,CAyHY,wBAzHZ,CAAA;EACF,oBAAA,EAAA,CAAA,YAAA,CAAA,EAuIkC,cAvIlC,EAAA,GAuIgD,OAvIhD,CAuIgD,0BAvIhD,CAAA;CAAc"}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { AddNewAccessKeyBody, AddProjectBody, DeleteAccessKeyBody, GetProjectsParams, PushProjectConfigurationBody, RefreshAccessKeyBody, SelectProjectParam, UpdateProjectBody, UpdateProjectMembersBody } from "../types.js";
|
|
2
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
3
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
4
|
+
|
|
5
|
+
//#region src/getIntlayerAPI/project.d.ts
|
|
6
|
+
declare const getProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
|
+
getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
|
|
8
|
+
addProject: (project: AddProjectBody, otherOptions?: FetcherOptions) => Promise<AddProjectResult>;
|
|
9
|
+
updateProject: (project: UpdateProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectResult>;
|
|
10
|
+
updateProjectMembers: (body: UpdateProjectMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectMembersResult>;
|
|
11
|
+
pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
|
|
12
|
+
deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
13
|
+
selectProject: (projectId: SelectProjectParam["projectId"], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
|
|
14
|
+
unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
|
|
15
|
+
addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
|
|
16
|
+
deleteAccessKey: (clientId: DeleteAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
|
|
17
|
+
refreshAccessKey: (clientId: RefreshAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
|
|
16
18
|
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { getProjectAPI };
|
|
17
21
|
//# sourceMappingURL=project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","
|
|
1
|
+
{"version":3,"file":"project.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/project.ts"],"sourcesContent":[],"mappings":";;;;;cA0Ba,iCACK,iCACC;0BAkBL,kCACI,mBAAc,QAAA;EArBnB,UAAA,EAAA,CAAA,OA+NZ,EAxLY,cAwLZ,EAAA,YAAA,CAAA,EAvLiB,cAuLjB,EAAA,GAvL+B,OA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|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { SearchDocUtilParams } from "../types.js";
|
|
2
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
3
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
4
|
+
|
|
5
|
+
//#region src/getIntlayerAPI/search.d.ts
|
|
6
|
+
declare const getSearchAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
|
+
searchDoc: (params?: SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>;
|
|
6
8
|
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { getSearchAPI };
|
|
7
11
|
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","
|
|
1
|
+
{"version":3,"file":"search.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/search.ts"],"sourcesContent":[],"mappings":";;;;;cAKa,gCACK,iCACC;uBAmBN,oCACK,mBAAc,QAAA;AAtBhC,CAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { GetCheckoutSessionBody, GetPricingBody } from "../types.js";
|
|
2
|
+
import { FetcherOptions } from "../fetcher.js";
|
|
3
|
+
import { IntlayerConfig } from "@intlayer/types";
|
|
4
|
+
|
|
5
|
+
//#region src/getIntlayerAPI/stripe.d.ts
|
|
6
|
+
declare const getStripeAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
|
+
getPricing: (body?: GetPricingBody, otherOptions?: FetcherOptions) => Promise<GetPricingResult>;
|
|
8
|
+
getSubscription: (body?: GetCheckoutSessionBody, otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
|
|
9
|
+
cancelSubscription: (otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
|
|
8
10
|
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { getStripeAPI };
|
|
9
13
|
//# sourceMappingURL=stripe.d.ts.map
|