@intlayer/api 9.0.0-canary.17 → 9.0.0-canary.18
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.map +1 -1
- package/dist/cjs/cms/createIntlayerCMS.cjs.map +1 -1
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs.map +1 -1
- 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.map +1 -1
- package/dist/cjs/getIntlayerAPI/analytics.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/asset.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/audit.cjs +2 -1
- package/dist/cjs/getIntlayerAPI/audit.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/bitbucket.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/dictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/editor.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/environment.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/github.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/gitlab.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/index.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/newsletter.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/oAuth.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/organization.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/project.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/reviewer.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/search.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/showcaseProject.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/status.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/stripe.cjs +4 -2
- package/dist/cjs/getIntlayerAPI/stripe.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/tag.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/translate.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/user.cjs.map +1 -1
- package/dist/cjs/proxy.cjs +1 -1
- package/dist/cjs/proxy.cjs.map +1 -1
- package/dist/esm/cms/createAuthManager.mjs.map +1 -1
- package/dist/esm/cms/createIntlayerCMS.mjs.map +1 -1
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs.map +1 -1
- 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.map +1 -1
- package/dist/esm/getIntlayerAPI/analytics.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/asset.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/audit.mjs +2 -1
- package/dist/esm/getIntlayerAPI/audit.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/bitbucket.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/editor.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/environment.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/github.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/gitlab.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/index.mjs.map +1 -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.map +1 -1
- package/dist/esm/getIntlayerAPI/project.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/reviewer.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/search.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/showcaseProject.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/status.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/stripe.mjs +4 -2
- package/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/tag.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/translate.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/user.mjs.map +1 -1
- package/dist/esm/proxy.mjs +1 -1
- package/dist/esm/proxy.mjs.map +1 -1
- package/dist/types/{packages/@intlayer → @intlayer}/unmerged-dictionaries-entry/dist/types/index.d.ts +0 -1
- package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +1 -0
- 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 +1 -2
- package/dist/types/cms/createIntlayerCMS.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +0 -1
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +0 -1
- 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 +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/analytics.d.ts +1 -1
- package/dist/types/getIntlayerAPI/analytics.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/asset.d.ts +1 -1
- package/dist/types/getIntlayerAPI/asset.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/audit.d.ts +1 -1
- package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/bitbucket.d.ts +1 -1
- package/dist/types/getIntlayerAPI/bitbucket.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts +7 -7
- package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +4 -3
- package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/environment.d.ts +1 -1
- package/dist/types/getIntlayerAPI/environment.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/github.d.ts +1 -1
- package/dist/types/getIntlayerAPI/github.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/gitlab.d.ts +1 -1
- package/dist/types/getIntlayerAPI/gitlab.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/index.d.ts +1 -2
- package/dist/types/getIntlayerAPI/index.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts +1 -1
- 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 +5 -5
- package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +9 -9
- package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/reviewer.d.ts +5 -5
- package/dist/types/getIntlayerAPI/reviewer.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts +7 -7
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/status.d.ts +1 -1
- package/dist/types/getIntlayerAPI/status.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts +15 -45
- package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts +5 -5
- package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/translate.d.ts +1 -1
- package/dist/types/getIntlayerAPI/translate.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +9 -9
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/{packages/intlayer-editor → intlayer-editor}/server/dist/controllers/configuration.controller.d.ts +1 -3
- package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +1 -0
- package/dist/types/{packages/intlayer-editor → intlayer-editor}/server/dist/controllers/dictionary.controller.d.ts +1 -7
- package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +1 -0
- package/dist/types/{packages/intlayer-editor → intlayer-editor}/server/dist/export.d.ts +2 -1
- package/dist/types/{packages/intlayer-editor → intlayer-editor}/server/dist/utils/httpStatusCodes.d.ts +19 -19
- package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +1 -0
- package/dist/types/{packages/intlayer-editor → intlayer-editor}/server/dist/utils/responseData.d.ts +0 -1
- package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts.map +1 -0
- package/dist/types/proxy.d.ts +1 -2
- package/dist/types/proxy.d.ts.map +1 -1
- package/dist/types/types.d.ts +1 -1
- package/package.json +6 -6
- package/dist/types/packages/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +0 -1
- package/dist/types/packages/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +0 -1
- package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +0 -1
- package/dist/types/packages/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +0 -1
- package/dist/types/packages/intlayer-editor/server/dist/utils/responseData.d.ts.map +0 -1
package/dist/esm/proxy.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy.mjs","names":[],"sources":["../../src/proxy.ts"],"sourcesContent":["import { editor } from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types/config';\nimport { createIntlayerCMS, type IntlayerCMS } from './cms/createIntlayerCMS';\nimport type { FetcherOptions } from './fetcher';\nimport { getAiAPI } from './getIntlayerAPI/ai';\nimport { getAnalyticsAPI } from './getIntlayerAPI/analytics';\nimport { getAssetAPI } from './getIntlayerAPI/asset';\nimport { getAuditAPI } from './getIntlayerAPI/audit';\nimport { getBitbucketAPI } from './getIntlayerAPI/bitbucket';\nimport { getDictionaryAPI } from './getIntlayerAPI/dictionary';\nimport { getEditorAPI } from './getIntlayerAPI/editor';\nimport { getEnvironmentAPI } from './getIntlayerAPI/environment';\nimport { getGithubAPI } from './getIntlayerAPI/github';\nimport { getGitlabAPI } from './getIntlayerAPI/gitlab';\nimport type { IntlayerAPI } from './getIntlayerAPI/index';\nimport { getNewsletterAPI } from './getIntlayerAPI/newsletter';\nimport { getOAuthAPI } from './getIntlayerAPI/oAuth';\nimport { getOrganizationAPI } from './getIntlayerAPI/organization';\nimport { getProjectAPI } from './getIntlayerAPI/project';\nimport { getReviewerAPI } from './getIntlayerAPI/reviewer';\nimport { getSearchAPI } from './getIntlayerAPI/search';\nimport { getShowcaseProjectAPI } from './getIntlayerAPI/showcaseProject';\nimport { getStatusAPI } from './getIntlayerAPI/status';\nimport { getStripeAPI } from './getIntlayerAPI/stripe';\nimport { getTagAPI } from './getIntlayerAPI/tag';\nimport { getTranslateAPI } from './getIntlayerAPI/translate';\nimport { getUserAPI } from './getIntlayerAPI/user';\n\ntype SectionKey = keyof IntlayerAPI;\n\n/**\n * Homogeneous factory map: every domain factory normalized to the same\n * `(fetcherOptions, config) => section` signature, keyed by section name.\n * Declaring it as a single mapped type lets a generic lookup stay callable\n * (a union of factory signatures would not be).\n */\ntype SectionFactories = {\n [Key in SectionKey]: (\n fetcherOptions: FetcherOptions,\n intlayerConfig: IntlayerConfig\n ) => IntlayerAPI[Key];\n};\n\nconst sectionFactories: SectionFactories = {\n asset: getAssetAPI,\n organization: getOrganizationAPI,\n project: getProjectAPI,\n environment: getEnvironmentAPI,\n user: getUserAPI,\n oAuth: getOAuthAPI,\n dictionary: getDictionaryAPI,\n stripe: getStripeAPI,\n ai: getAiAPI,\n analytics: getAnalyticsAPI,\n audit: getAuditAPI,\n tag: getTagAPI,\n search: getSearchAPI,\n editor: getEditorAPI,\n newsletter: getNewsletterAPI,\n github: getGithubAPI,\n gitlab: getGitlabAPI,\n bitbucket: getBitbucketAPI,\n showcaseProject: getShowcaseProjectAPI,\n translate: getTranslateAPI,\n reviewer: getReviewerAPI,\n status: getStatusAPI,\n};\n\n// The OAuth2 token endpoint must never receive an injected Bearer token —\n// it is the call that issues one.\nconst AUTH_FREE_SECTIONS: ReadonlySet<SectionKey> = new Set<SectionKey>([\n 'oAuth',\n]);\n\n/**\n * Builds the **complete** auto-authenticated Intlayer API as a single lazy\n * object. Every domain is reachable through it, so it pulls every domain client\n * into the bundle.\n *\n * Prefer {@link createIntlayerCMS} together with the per-domain endpoint binders\n * (e.g. `dictionaryEndpoint`) in bundle-sensitive code — they include only the\n * domains you use. This helper is a convenience for Node tools (such as the CLI)\n * where bundle size is not a concern.\n */\nexport const getIntlayerAPIProxy = (\n baseAuthOptions: FetcherOptions = {},\n intlayerConfig: Pick<IntlayerConfig, 'editor'> = { editor },\n sessionToken?: string\n): IntlayerAPI => {\n const cms: IntlayerCMS = createIntlayerCMS(intlayerConfig, {\n baseFetcherOptions: baseAuthOptions,\n sessionToken,\n });\n\n const sectionCache = new Map<SectionKey, unknown>();\n\n // Generic over `Key` so `sectionFactories[key]` resolves to a single\n // `(opts, config) => IntlayerAPI[Key]` signature rather than the union of all\n // factory signatures (which would not be callable).\n const buildSection = <Key extends SectionKey>(key: Key): IntlayerAPI[Key] => {\n const factory = sectionFactories[key] as (\n fetcherOptions: FetcherOptions,\n intlayerConfig: IntlayerConfig\n ) => Record<string, unknown>;\n\n return cms.bindSection(factory, {\n skipAuth: AUTH_FREE_SECTIONS.has(key) ? true : undefined,\n }) as IntlayerAPI[Key];\n };\n\n return new Proxy({} as IntlayerAPI, {\n get(_target, property) {\n const key = property as SectionKey;\n if (!(key in sectionFactories)) return undefined;\n\n if (!sectionCache.has(key)) {\n sectionCache.set(key, buildSection(key));\n }\n\n return sectionCache.get(key);\n },\n has(_target, property) {\n return (property as SectionKey) in sectionFactories;\n },\n ownKeys() {\n return Reflect.ownKeys(sectionFactories);\n },\n getOwnPropertyDescriptor() {\n return { enumerable: true, configurable: true };\n },\n });\n};\n\n/**\n * The complete auto-authenticated Intlayer API returned by\n * {@link getIntlayerAPIProxy}. Equivalent in shape to `IntlayerAPI`.\n */\nexport type IntlayerAPIProxy = ReturnType<typeof getIntlayerAPIProxy>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAM,mBAAqC;CACzC,OAAO;CACP,cAAc;CACd,SAAS;CACT,aAAa;CACb,MAAM;CACN,OAAO;CACP,YAAY;CACZ,QAAQ;CACR,IAAI;CACJ,WAAW;CACX,OAAO;CACP,KAAK;CACL,QAAQ;CACR,QAAQ;CACR,YAAY;CACZ,QAAQ;CACR,QAAQ;CACR,WAAW;CACX,iBAAiB;CACjB,WAAW;CACX,UAAU;CACV,QAAQ;
|
|
1
|
+
{"version":3,"file":"proxy.mjs","names":[],"sources":["../../src/proxy.ts"],"sourcesContent":["import { editor } from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types/config';\nimport { createIntlayerCMS, type IntlayerCMS } from './cms/createIntlayerCMS';\nimport type { FetcherOptions } from './fetcher';\nimport { getAiAPI } from './getIntlayerAPI/ai';\nimport { getAnalyticsAPI } from './getIntlayerAPI/analytics';\nimport { getAssetAPI } from './getIntlayerAPI/asset';\nimport { getAuditAPI } from './getIntlayerAPI/audit';\nimport { getBitbucketAPI } from './getIntlayerAPI/bitbucket';\nimport { getDictionaryAPI } from './getIntlayerAPI/dictionary';\nimport { getEditorAPI } from './getIntlayerAPI/editor';\nimport { getEnvironmentAPI } from './getIntlayerAPI/environment';\nimport { getGithubAPI } from './getIntlayerAPI/github';\nimport { getGitlabAPI } from './getIntlayerAPI/gitlab';\nimport type { IntlayerAPI } from './getIntlayerAPI/index';\nimport { getNewsletterAPI } from './getIntlayerAPI/newsletter';\nimport { getOAuthAPI } from './getIntlayerAPI/oAuth';\nimport { getOrganizationAPI } from './getIntlayerAPI/organization';\nimport { getProjectAPI } from './getIntlayerAPI/project';\nimport { getReviewerAPI } from './getIntlayerAPI/reviewer';\nimport { getSearchAPI } from './getIntlayerAPI/search';\nimport { getShowcaseProjectAPI } from './getIntlayerAPI/showcaseProject';\nimport { getStatusAPI } from './getIntlayerAPI/status';\nimport { getStripeAPI } from './getIntlayerAPI/stripe';\nimport { getTagAPI } from './getIntlayerAPI/tag';\nimport { getTranslateAPI } from './getIntlayerAPI/translate';\nimport { getUserAPI } from './getIntlayerAPI/user';\n\ntype SectionKey = keyof IntlayerAPI;\n\n/**\n * Homogeneous factory map: every domain factory normalized to the same\n * `(fetcherOptions, config) => section` signature, keyed by section name.\n * Declaring it as a single mapped type lets a generic lookup stay callable\n * (a union of factory signatures would not be).\n */\ntype SectionFactories = {\n [Key in SectionKey]: (\n fetcherOptions: FetcherOptions,\n intlayerConfig: IntlayerConfig\n ) => IntlayerAPI[Key];\n};\n\nconst sectionFactories: SectionFactories = {\n asset: getAssetAPI,\n organization: getOrganizationAPI,\n project: getProjectAPI,\n environment: getEnvironmentAPI,\n user: getUserAPI,\n oAuth: getOAuthAPI,\n dictionary: getDictionaryAPI,\n stripe: getStripeAPI,\n ai: getAiAPI,\n analytics: getAnalyticsAPI,\n audit: getAuditAPI,\n tag: getTagAPI,\n search: getSearchAPI,\n editor: getEditorAPI,\n newsletter: getNewsletterAPI,\n github: getGithubAPI,\n gitlab: getGitlabAPI,\n bitbucket: getBitbucketAPI,\n showcaseProject: getShowcaseProjectAPI,\n translate: getTranslateAPI,\n reviewer: getReviewerAPI,\n status: getStatusAPI,\n};\n\n// The OAuth2 token endpoint must never receive an injected Bearer token —\n// it is the call that issues one.\nconst AUTH_FREE_SECTIONS: ReadonlySet<SectionKey> = new Set<SectionKey>([\n 'oAuth',\n]);\n\n/**\n * Builds the **complete** auto-authenticated Intlayer API as a single lazy\n * object. Every domain is reachable through it, so it pulls every domain client\n * into the bundle.\n *\n * Prefer {@link createIntlayerCMS} together with the per-domain endpoint binders\n * (e.g. `dictionaryEndpoint`) in bundle-sensitive code — they include only the\n * domains you use. This helper is a convenience for Node tools (such as the CLI)\n * where bundle size is not a concern.\n */\nexport const getIntlayerAPIProxy = (\n baseAuthOptions: FetcherOptions = {},\n intlayerConfig: Pick<IntlayerConfig, 'editor'> = { editor },\n sessionToken?: string\n): IntlayerAPI => {\n const cms: IntlayerCMS = createIntlayerCMS(intlayerConfig, {\n baseFetcherOptions: baseAuthOptions,\n sessionToken,\n });\n\n const sectionCache = new Map<SectionKey, unknown>();\n\n // Generic over `Key` so `sectionFactories[key]` resolves to a single\n // `(opts, config) => IntlayerAPI[Key]` signature rather than the union of all\n // factory signatures (which would not be callable).\n const buildSection = <Key extends SectionKey>(key: Key): IntlayerAPI[Key] => {\n const factory = sectionFactories[key] as (\n fetcherOptions: FetcherOptions,\n intlayerConfig: IntlayerConfig\n ) => Record<string, unknown>;\n\n return cms.bindSection(factory, {\n skipAuth: AUTH_FREE_SECTIONS.has(key) ? true : undefined,\n }) as IntlayerAPI[Key];\n };\n\n return new Proxy({} as IntlayerAPI, {\n get(_target, property) {\n const key = property as SectionKey;\n if (!(key in sectionFactories)) return undefined;\n\n if (!sectionCache.has(key)) {\n sectionCache.set(key, buildSection(key));\n }\n\n return sectionCache.get(key);\n },\n has(_target, property) {\n return (property as SectionKey) in sectionFactories;\n },\n ownKeys() {\n return Reflect.ownKeys(sectionFactories);\n },\n getOwnPropertyDescriptor() {\n return { enumerable: true, configurable: true };\n },\n });\n};\n\n/**\n * The complete auto-authenticated Intlayer API returned by\n * {@link getIntlayerAPIProxy}. Equivalent in shape to `IntlayerAPI`.\n */\nexport type IntlayerAPIProxy = ReturnType<typeof getIntlayerAPIProxy>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAM,mBAAqC;CACzC,OAAO;CACP,cAAc;CACd,SAAS;CACT,aAAa;CACb,MAAM;CACN,OAAO;CACP,YAAY;CACZ,QAAQ;CACR,IAAI;CACJ,WAAW;CACX,OAAO;CACP,KAAK;CACL,QAAQ;CACR,QAAQ;CACR,YAAY;CACZ,QAAQ;CACR,QAAQ;CACR,WAAW;CACX,iBAAiB;CACjB,WAAW;CACX,UAAU;CACV,QAAQ;AACV;AAIA,MAAM,qCAA8C,IAAI,IAAgB,CACtE,OACF,CAAC;;;;;;;;;;;AAYD,MAAa,uBACX,kBAAkC,CAAC,GACnC,iBAAiD,EAAE,OAAO,GAC1D,iBACgB;CAChB,MAAM,MAAmB,kBAAkB,gBAAgB;EACzD,oBAAoB;EACpB;CACF,CAAC;CAED,MAAM,+BAAe,IAAI,IAAyB;CAKlD,MAAM,gBAAwC,QAA+B;EAC3E,MAAM,UAAU,iBAAiB;EAKjC,OAAO,IAAI,YAAY,SAAS,EAC9B,UAAU,mBAAmB,IAAI,GAAG,IAAI,OAAO,OACjD,CAAC;CACH;CAEA,OAAO,IAAI,MAAM,CAAC,GAAkB;EAClC,IAAI,SAAS,UAAU;GACrB,MAAM,MAAM;GACZ,IAAI,EAAE,OAAO,mBAAmB,OAAO;GAEvC,IAAI,CAAC,aAAa,IAAI,GAAG,GACvB,aAAa,IAAI,KAAK,aAAa,GAAG,CAAC;GAGzC,OAAO,aAAa,IAAI,GAAG;EAC7B;EACA,IAAI,SAAS,UAAU;GACrB,OAAQ,YAA2B;EACrC;EACA,UAAU;GACR,OAAO,QAAQ,QAAQ,gBAAgB;EACzC;EACA,2BAA2B;GACzB,OAAO;IAAE,YAAY;IAAM,cAAc;GAAK;EAChD;CACF,CAAC;AACH"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
3
|
import { DictionaryKeys } from "@intlayer/types/module_augmentation";
|
|
4
|
-
|
|
5
4
|
//#region ../unmerged-dictionaries-entry/dist/types/index.d.ts
|
|
6
5
|
//#region src/index.d.ts
|
|
7
6
|
type UnmergedDictionaries = Record<DictionaryKeys, Dictionary[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../../../unmerged-dictionaries-entry/dist/types/index.d.ts"],"mappings":";;;;;KAIK,uBAAuB,OAAO,gBAAgB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
|
-
|
|
4
3
|
//#region src/cms/createAuthManager.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Any asynchronous API method exposed by a domain section
|
|
@@ -97,7 +96,7 @@ type AuthManager = {
|
|
|
97
96
|
* credentials. Defaults to the build-time configuration.
|
|
98
97
|
* @param options - Optional session token and base fetcher options.
|
|
99
98
|
*/
|
|
100
|
-
declare const createAuthManager: (intlayerConfig?: Pick<IntlayerConfig,
|
|
99
|
+
declare const createAuthManager: (intlayerConfig?: Pick<IntlayerConfig, 'editor'>, options?: AuthManagerOptions) => AuthManager;
|
|
101
100
|
//#endregion
|
|
102
101
|
export { AuthManager, AuthManagerOptions, BindSectionOptions, createAuthManager };
|
|
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":";;;;;;;KAsBK,YAAY,6BAA6B,cACzC,MAAM,cACN,QAAQ;;;;;KAMR,eAAe,gBAAgB,4BAClC,gBAAgB,gBAChB,gBAAgB,mBACb;;;;KAuCO;;;;EAIV,qBAAqB;;;;;;EAMrB;;;;;KAMU;;;;;EAKV;;;;;;;;;;KAWU;;;;;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;;;;;;;;;;;;;cAcM,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
|
-
|
|
5
4
|
//#region src/cms/createIntlayerCMS.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Options accepted when creating the Intlayer CMS authenticator.
|
|
@@ -50,7 +49,7 @@ type IntlayerCMS = AuthManager;
|
|
|
50
49
|
* await dictionaryEndpoint(cms).pushDictionaries([myDictionary]);
|
|
51
50
|
* ```
|
|
52
51
|
*/
|
|
53
|
-
declare const createIntlayerCMS: (intlayerConfig?: Pick<IntlayerConfig,
|
|
52
|
+
declare const createIntlayerCMS: (intlayerConfig?: Pick<IntlayerConfig, 'editor'>, options?: IntlayerCMSOptions) => IntlayerCMS;
|
|
54
53
|
/**
|
|
55
54
|
* A domain endpoint binder: given an authenticator (or none, in which case a
|
|
56
55
|
* default one is created from the build-time configuration), returns the
|
|
@@ -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":";;;;;;;KAaY,qBAAqB;;;;;;;;KASrB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqCb,oBAAiB,iBACZ,KAAK,2BAAyB,UACrC,uBACR;;;;;;KAOS,YAAY,gBAAgB,4BACtC,MAAM,gBACH;;;;;;;;;;;;;;;;;;cAmBQ,iBACV,gBAAgB,yBAAuB,UAEpC,gBAAgB,gBAChB,gBAAgB,mBACb,SAAO,UACF,uBACT,YAAY"}
|
|
@@ -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":";;;;;;cAQa,2BAAwB,gBACnB,mBACf,QAAQ"}
|
|
@@ -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":";;;;;;cAQa,yBAAsB,uBACZ,gBACL,mBACf,QAAQ"}
|
|
@@ -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":";;;;;;KAKY,iBAAiB,KAAK;;;;EAIhC,OAAO;;;;EAIP,SACI,2DAEA;;;;;;;cAQO,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6FhB,UAAiB,GAAC,gBAClB,SACC,qBACX,QAAQ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
5
|
import { AIOptions, AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationMetadataBody, AuditTagBody, ChatCompletionRequestMessage, ChatResult, CustomQueryBody, GetDiscussionsParams, TranslateJSONBody } from "@intlayer/backend";
|
|
5
|
-
|
|
6
6
|
//#region src/getIntlayerAPI/ai.d.ts
|
|
7
7
|
type AutocompleteBody = {
|
|
8
8
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/ai.ts"],"mappings":";;;;;;KA2BY
|
|
1
|
+
{"version":3,"file":"ai.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/ai.ts"],"mappings":";;;;;;KA2BY;EACV;EACA,YAAY;EACZ;EACA;EACA;;KAGU;EACV,UAAU;EACV;EACA,aAAa;EACb,UAAU,UAAU;;KAGV;EACN;EAAkB;;EAClB;;KAEM;EACV,UAAU;EACV;EACA,aAAa;EACb,UAAU,UAAU;EACpB,YAAY,QAAQ;;cAKT,WAAQ,iBACH,gBAAc,iBACb;EAYR,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;EAkBrB,kCAAA,OAAA,qCAAmC,eAC5B,mBAAc,QAAA;EAkBrB,WAAA,OAAA,cAAY,eACL,mBAAc,QAAA;EAgCrB,iBAAA,OAAA,oBAAkB,eACX,mBAAc;EAuFH,OAAA,OAAA,UAAQ,eAAgB,mBAAc;EAsFxD,eAAA,OAAA,kBAAgB,eACT,mBAAc,QAAA;EAgBnB,iBAAA,SAAA,sBAAoB,eACf,mBAAc,QAAA;EAiBU,aAAA,eAAA,mBAAc,QAAA;;;;;;;;cA+B3C,YA/B2C;EAjV7C,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;EAkBrB,kCAAA,OAAA,qCAAmC,eAC5B,mBAAc,QAAA;EAkBrB,WAAA,OAAA,cAAY,eACL,mBAAc,QAAA;EAgCrB,iBAAA,OAAA,oBAAkB,eACX,mBAAc;EAuFH,OAAA,OAAA,UAAQ,eAAgB,mBAAc;EAsFxD,eAAA,OAAA,kBAAgB,eACT,mBAAc,QAAA;EAgBnB,iBAAA,SAAA,sBAAoB,eACf,mBAAc,QAAA;EAiBU,aAAA,eAAA,mBAAc,QAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
5
|
import { IngestAnalyticsBody } from "@intlayer/backend";
|
|
5
|
-
|
|
6
6
|
//#region src/getIntlayerAPI/analytics.d.ts
|
|
7
7
|
declare const getAnalyticsAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
8
8
|
sendEvents: (body: IngestAnalyticsBody, otherOptions?: FetcherOptions) => Promise<IngestAnalyticsResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/analytics.ts"],"mappings":";;;;;;cAaa,
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/analytics.ts"],"mappings":";;;;;;cAaa,kBAAe,iBACV,gBAAc,iBACb;EAaT,aAAA,MAAA,qBAAmB,eACX,mBAAc,QAAA;EAgBW,cAAA,eAAA,mBAAc,QAAA;EAcH,cAAA,eAAA,eAAA,mBAAc,QAAA;EAerB,kBAAA,eAAA,mBAAc,QAAA;EAc1C,uBAAA,uBAAM,eACP,mBAAc,QAAA;;;;;;;;cAwBnB,mBAxBmB;EA7DtB,aAAA,MAAA,qBAAmB,eACX,mBAAc,QAAA;EAgBW,cAAA,eAAA,mBAAc,QAAA;EAcH,cAAA,eAAA,eAAA,mBAAc,QAAA;EAerB,kBAAA,eAAA,mBAAc,QAAA;EAc1C,uBAAA,uBAAM,eACP,mBAAc,QAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
|
|
5
5
|
//#region src/getIntlayerAPI/asset.d.ts
|
|
6
6
|
declare const getAssetAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
7
|
getAssets: (page?: number, pageSize?: number, otherOptions?: FetcherOptions) => Promise<GetAssetsResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/asset.ts"],"mappings":";;;;;cAYa,
|
|
1
|
+
{"version":3,"file":"asset.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/asset.ts"],"mappings":";;;;;cAYa,cAAW,iBACN,gBAAc,iBACb;EAaR,YAAA,eAAM,mBACI,eACH,mBAAc,QAAA;EAqBnB,eAAA,iBAAM,eACD,mBAAc,QAAA;EAiBtB,cAAA,MAAA,MAAI,cACE,kBACI,eACF,mBAAc,QAAA;EAsCnB,cAAA,iBAAM;IACP;IAAuB;IAAc;KAAkB,eACjD,mBAAc,QAAA;EAenB,cAAA,iBAAM,eACD,mBAAc,QAAA;;;;;;;;cAwBnB,eAxBmB;EApGrB,YAAA,eAAM,mBACI,eACH,mBAAc,QAAA;EAqBnB,eAAA,iBAAM,eACD,mBAAc,QAAA;EAiBtB,cAAA,MAAA,MAAI,cACE,kBACI,eACF,mBAAc,QAAA;EAsCnB,cAAA,iBAAM;IACP;IAAuB;IAAc;KAAkB,eACjD,mBAAc,QAAA;EAenB,cAAA,iBAAM,eACD,mBAAc,QAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
5
|
import { AuditEvent, GetRecursiveAuditStatusResult, StartRecursiveAuditResult } from "@intlayer/backend";
|
|
5
|
-
|
|
6
6
|
//#region src/getIntlayerAPI/audit.d.ts
|
|
7
7
|
type ScanUrlBody = {
|
|
8
8
|
url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"mappings":";;;;;;KAgBY
|
|
1
|
+
{"version":3,"file":"audit.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/audit.ts"],"mappings":";;;;;;KAgBY;EACV;EACA,aAAa,OAAO;EACpB;;KAGU;EACV;;KAGU;EACV;;KAGU;EACV;EACA;;KAGU;EACV;;KAGU;EACV;;cAGW,cAAW,iBACN,gBAAc,iBACb;EAmBN,eAAA,SAAA,oBAAkB,eACb,mBAAc,QAAA;EAarB,UAAA,OAAA,aAAW,eACJ,mBAAc;EAsErB,sBAAA,OAAA,yBAAuB,eAChB,mBAAc,QAAA;EAiBnB,0BAAA,SAAA,+BAA6B,eACxB,mBAAc,QAAA;EAYnB,uBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH;;EAQhB,sBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH;;EAQhB,uBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH;;;;;;;;;cAwBhB,eA1BmB;EA3InB,eAAA,SAAA,oBAAkB,eACb,mBAAc,QAAA;EAarB,UAAA,OAAA,aAAW,eACJ,mBAAc;EAsErB,sBAAA,OAAA,yBAAuB,eAChB,mBAAc,QAAA;EAiBnB,0BAAA,SAAA,+BAA6B,eACxB,mBAAc,QAAA;EAYnB,uBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH;;EAQhB,sBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH;;EAQhB,uBAAA,SAAA,yBAAuB,eAClB,mBAAc;IAEH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
|
|
5
5
|
//#region src/getIntlayerAPI/bitbucket.d.ts
|
|
6
6
|
type BitbucketRepository = {
|
|
7
7
|
uuid: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitbucket.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/bitbucket.ts"],"mappings":";;;;;KAKY
|
|
1
|
+
{"version":3,"file":"bitbucket.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/bitbucket.ts"],"mappings":";;;;;KAKY;EACV;EACA;EACA;EACA;EACA;IACE;IACA;;EAEF;IACE;MACE;;;EAGJ;IACE;IACA;IACA;;EAEF;IACE;IACA;IACA;;EAEF;EACA;;KAGU;EACV;;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,kBAAe,iBACV,gBAAc,iBACb;EAWF,aAAA,qBAAM,eACL,mBAAc,QAAA;EAgBtB,eAAA,cAAM,eACE,mBAAc,QAAA;EAiBpB,kBAAA,uBAAa,eACP,mBAAc,QAAA;EAmBrB,sBAAA,kCAAyB,mBACf,kBACD,iBACF,eACA,mBAAc,QAAA;EAqBrB,gBAAA,kCAAyB,mBACf,kBACD,iBACF,eACF,eACE,mBAAc,QAAA;;;;;;;;cAiCnB,mBAjCmB;EArFf,aAAA,qBAAM,eACL,mBAAc,QAAA;EAgBtB,eAAA,cAAM,eACE,mBAAc,QAAA;EAiBpB,kBAAA,uBAAa,eACP,mBAAc,QAAA;EAmBrB,sBAAA,kCAAyB,mBACf,kBACD,iBACF,eACA,mBAAc,QAAA;EAqBrB,gBAAA,kCAAyB,mBACf,kBACD,iBACF,eACF,eACE,mBAAc,QAAA"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
5
|
import { AddDictionaryBody, DeleteDictionaryParam, GetDictionariesParams, GetDictionaryParams, GetDictionaryQuery, PushDictionariesBody, UpdateDictionaryBody } from "@intlayer/backend";
|
|
5
|
-
|
|
6
6
|
//#region src/getIntlayerAPI/dictionary.d.ts
|
|
7
7
|
declare const getDictionaryAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
8
8
|
getDictionaries: (filters?: GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<GetDictionariesResult>;
|
|
9
9
|
getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<GetDictionariesKeysResult>;
|
|
10
10
|
getDictionariesUpdateTimestamp: (otherOptions?: FetcherOptions) => Promise<GetDictionariesUpdateTimestampResult>;
|
|
11
|
-
getDictionary: (dictionaryKey: GetDictionaryParams[
|
|
12
|
-
pushDictionaries: (dictionaries: PushDictionariesBody[
|
|
11
|
+
getDictionary: (dictionaryKey: GetDictionaryParams['dictionaryKey'], version?: GetDictionaryQuery['version'], otherOptions?: FetcherOptions) => Promise<GetDictionaryResult>;
|
|
12
|
+
pushDictionaries: (dictionaries: PushDictionariesBody['dictionaries'], otherOptions?: FetcherOptions) => Promise<PushDictionariesResult>;
|
|
13
13
|
addDictionary: (body: AddDictionaryBody, otherOptions?: FetcherOptions) => Promise<AddDictionaryResult>;
|
|
14
14
|
updateDictionary: (dictionary: UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<UpdateDictionaryResult>;
|
|
15
|
-
deleteDictionary: (id: DeleteDictionaryParam[
|
|
15
|
+
deleteDictionary: (id: DeleteDictionaryParam['dictionaryId'], otherOptions?: FetcherOptions) => Promise<DeleteDictionaryResult>;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* Authenticated `dictionary` endpoint bound to an Intlayer CMS authenticator.
|
|
@@ -24,11 +24,11 @@ declare const dictionaryEndpoint: CMSEndpoint<{
|
|
|
24
24
|
getDictionaries: (filters?: GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<GetDictionariesResult>;
|
|
25
25
|
getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<GetDictionariesKeysResult>;
|
|
26
26
|
getDictionariesUpdateTimestamp: (otherOptions?: FetcherOptions) => Promise<GetDictionariesUpdateTimestampResult>;
|
|
27
|
-
getDictionary: (dictionaryKey: GetDictionaryParams[
|
|
28
|
-
pushDictionaries: (dictionaries: PushDictionariesBody[
|
|
27
|
+
getDictionary: (dictionaryKey: GetDictionaryParams['dictionaryKey'], version?: GetDictionaryQuery['version'], otherOptions?: FetcherOptions) => Promise<GetDictionaryResult>;
|
|
28
|
+
pushDictionaries: (dictionaries: PushDictionariesBody['dictionaries'], otherOptions?: FetcherOptions) => Promise<PushDictionariesResult>;
|
|
29
29
|
addDictionary: (body: AddDictionaryBody, otherOptions?: FetcherOptions) => Promise<AddDictionaryResult>;
|
|
30
30
|
updateDictionary: (dictionary: UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<UpdateDictionaryResult>;
|
|
31
|
-
deleteDictionary: (id: DeleteDictionaryParam[
|
|
31
|
+
deleteDictionary: (id: DeleteDictionaryParam['dictionaryId'], otherOptions?: FetcherOptions) => Promise<DeleteDictionaryResult>;
|
|
32
32
|
}>;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { dictionaryEndpoint, getDictionaryAPI };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/dictionary.ts"],"mappings":";;;;;;cAsBa,
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/dictionary.ts"],"mappings":";;;;;;cAsBa,mBAAgB,iBACX,gBAAc,iBACb;EAWL,kBAAA,UAAA,uBAAqB,eACjB,mBAAc,QAAA;EAgBmB,sBAAA,eAAA,mBAAc,QAAA;EAc/C,iCAAA,eAAA,mBAAc,QAAA;EAiBb,gBAAA,eAAA,sCAAoC,UACzC,+BAA6B,eACzB,mBAAc,QAAA;EA8Bd,mBAAA,cAAA,sCAAoC,eACpC,mBAAc,QAAA;EAftB,gBAAA,MAAA,mBAAiB,eACT,mBAAc,QAAA;EA+BhB,mBAAA,YAAA,sBAAoB,eAClB,mBAAc,QAAA;EAiBxB,mBAAA,IAAA,uCAAqC,eAC3B,mBAAc,QAAA;;;;;;;;cA6BnB,oBA7BmB;EArHlB,kBAAA,UAAA,uBAAqB,eACjB,mBAAc,QAAA;EAgBmB,sBAAA,eAAA,mBAAc,QAAA;EAc/C,iCAAA,eAAA,mBAAc,QAAA;EAiBb,gBAAA,eAAA,sCAAoC,UACzC,+BAA6B,eACzB,mBAAc,QAAA;EA8Bd,mBAAA,cAAA,sCAAoC,eACpC,mBAAc,QAAA;EAftB,gBAAA,MAAA,mBAAiB,eACT,mBAAc,QAAA;EA+BhB,mBAAA,YAAA,sBAAoB,eAClB,mBAAc,QAAA;EAiBxB,mBAAA,IAAA,uCAAqC,eAC3B,mBAAc,QAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
-
import { GetConfigurationResult } from "../
|
|
4
|
-
import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "../
|
|
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";
|
|
5
7
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
6
|
-
|
|
7
8
|
//#region src/getIntlayerAPI/editor.d.ts
|
|
8
9
|
declare const getEditorAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
9
10
|
getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
|
|
@@ -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,8 +1,8 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
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
6
|
//#region src/getIntlayerAPI/environment.d.ts
|
|
7
7
|
declare const getEnvironmentAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
8
8
|
addEnvironment: (body: AddEnvironmentBody, otherOptions?: FetcherOptions) => Promise<AddEnvironmentResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/environment.ts"],"mappings":";;;;;;cAgBa,
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
|
|
5
5
|
//#region src/getIntlayerAPI/github.d.ts
|
|
6
6
|
type GitHubRepository = {
|
|
7
7
|
id: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/github.ts"],"mappings":";;;;;KAKY
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
2
|
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
|
+
import "../index.js";
|
|
3
4
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
-
|
|
5
5
|
//#region src/getIntlayerAPI/gitlab.d.ts
|
|
6
6
|
type GitLabProject = {
|
|
7
7
|
id: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitlab.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/gitlab.ts"],"mappings":";;;;;KAKY
|
|
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"}
|
|
@@ -22,7 +22,6 @@ import { getTranslateAPI } from "./translate.js";
|
|
|
22
22
|
import { getUserAPI } from "./user.js";
|
|
23
23
|
import { getAiAPI } from "./ai.js";
|
|
24
24
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
25
|
-
|
|
26
25
|
//#region src/getIntlayerAPI/index.d.ts
|
|
27
26
|
interface IntlayerAPIReturn {
|
|
28
27
|
asset: ReturnType<typeof getAssetAPI>;
|
|
@@ -48,7 +47,7 @@ interface IntlayerAPIReturn {
|
|
|
48
47
|
reviewer: ReturnType<typeof getReviewerAPI>;
|
|
49
48
|
status: ReturnType<typeof getStatusAPI>;
|
|
50
49
|
}
|
|
51
|
-
declare const getIntlayerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: Pick<IntlayerConfig,
|
|
50
|
+
declare const getIntlayerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: Pick<IntlayerConfig, 'editor'>) => IntlayerAPIReturn;
|
|
52
51
|
type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;
|
|
53
52
|
//#endregion
|
|
54
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,8 +1,8 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
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
6
|
//#region src/getIntlayerAPI/newsletter.d.ts
|
|
7
7
|
declare const getNewsletterAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
8
8
|
subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newsletter.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/newsletter.ts"],"mappings":";;;;;;cAUa,
|
|
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,12 +1,12 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
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
6
|
//#region src/getIntlayerAPI/organization.d.ts
|
|
7
7
|
declare const getOrganizationAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
8
8
|
getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
|
|
9
|
-
getOrganization: (organizationId: GetOrganizationParam[
|
|
9
|
+
getOrganization: (organizationId: GetOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
|
|
10
10
|
addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
|
|
11
11
|
addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
|
|
12
12
|
updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
|
|
@@ -15,7 +15,7 @@ declare const getOrganizationAPI: (authAPIOptions?: FetcherOptions, intlayerConf
|
|
|
15
15
|
updateOrganizationMembersById: (organizationId: string, body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
|
|
16
16
|
deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
17
17
|
deleteOrganizationByIdAdmin: (organizationId: string, otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
18
|
-
selectOrganization: (organizationId: SelectOrganizationParam[
|
|
18
|
+
selectOrganization: (organizationId: SelectOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
|
|
19
19
|
unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
@@ -26,7 +26,7 @@ declare const getOrganizationAPI: (authAPIOptions?: FetcherOptions, intlayerConf
|
|
|
26
26
|
*/
|
|
27
27
|
declare const organizationEndpoint: CMSEndpoint<{
|
|
28
28
|
getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
|
|
29
|
-
getOrganization: (organizationId: GetOrganizationParam[
|
|
29
|
+
getOrganization: (organizationId: GetOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
|
|
30
30
|
addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
|
|
31
31
|
addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
|
|
32
32
|
updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
|
|
@@ -35,7 +35,7 @@ declare const organizationEndpoint: CMSEndpoint<{
|
|
|
35
35
|
updateOrganizationMembersById: (organizationId: string, body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
|
|
36
36
|
deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
37
37
|
deleteOrganizationByIdAdmin: (organizationId: string, otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
38
|
-
selectOrganization: (organizationId: SelectOrganizationParam[
|
|
38
|
+
selectOrganization: (organizationId: SelectOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
|
|
39
39
|
unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
|
|
40
40
|
}>;
|
|
41
41
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/organization.ts"],"mappings":";;;;;;cAyBa,
|
|
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,8 +1,8 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
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
6
|
//#region src/getIntlayerAPI/project.d.ts
|
|
7
7
|
declare const getProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
8
8
|
getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
|
|
@@ -13,13 +13,13 @@ declare const getProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?:
|
|
|
13
13
|
pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
|
|
14
14
|
deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
15
15
|
deleteProjectByIdAdmin: (projectId: string, otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
16
|
-
selectProject: (projectId: SelectProjectParam[
|
|
16
|
+
selectProject: (projectId: SelectProjectParam['projectId'], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
|
|
17
17
|
unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
|
|
18
18
|
addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
|
|
19
|
-
deleteAccessKey: (clientId: DeleteAccessKeyBody[
|
|
20
|
-
refreshAccessKey: (clientId: RefreshAccessKeyBody[
|
|
19
|
+
deleteAccessKey: (clientId: DeleteAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
|
|
20
|
+
refreshAccessKey: (clientId: RefreshAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
|
|
21
21
|
triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>;
|
|
22
|
-
triggerWebhook: (webhookIndex: TriggerWebhookBody[
|
|
22
|
+
triggerWebhook: (webhookIndex: TriggerWebhookBody['webhookIndex'], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
|
|
23
23
|
getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
24
24
|
pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
25
25
|
updateMemberAccess: (userId: string, body: UpdateMemberAccessBody, otherOptions?: FetcherOptions) => Promise<UpdateMemberAccessResult>;
|
|
@@ -39,13 +39,13 @@ declare const projectEndpoint: CMSEndpoint<{
|
|
|
39
39
|
pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
|
|
40
40
|
deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
41
41
|
deleteProjectByIdAdmin: (projectId: string, otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
42
|
-
selectProject: (projectId: SelectProjectParam[
|
|
42
|
+
selectProject: (projectId: SelectProjectParam['projectId'], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
|
|
43
43
|
unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
|
|
44
44
|
addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
|
|
45
|
-
deleteAccessKey: (clientId: DeleteAccessKeyBody[
|
|
46
|
-
refreshAccessKey: (clientId: RefreshAccessKeyBody[
|
|
45
|
+
deleteAccessKey: (clientId: DeleteAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
|
|
46
|
+
refreshAccessKey: (clientId: RefreshAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
|
|
47
47
|
triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>;
|
|
48
|
-
triggerWebhook: (webhookIndex: TriggerWebhookBody[
|
|
48
|
+
triggerWebhook: (webhookIndex: TriggerWebhookBody['webhookIndex'], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
|
|
49
49
|
getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
50
50
|
pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
51
51
|
updateMemberAccess: (userId: string, body: UpdateMemberAccessBody, otherOptions?: FetcherOptions) => Promise<UpdateMemberAccessResult>;
|