@intlayer/api 9.0.0-canary.10 → 9.0.0-canary.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cms/createAuthManager.cjs +116 -0
- package/dist/cjs/cms/createAuthManager.cjs.map +1 -0
- package/dist/cjs/cms/createIntlayerCMS.cjs +64 -0
- package/dist/cjs/cms/createIntlayerCMS.cjs.map +1 -0
- package/dist/cjs/cms/index.cjs +7 -0
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs +3 -2
- package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs.map +1 -1
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs +3 -2
- package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/ai.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/ai.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/asset.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/asset.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/audit.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/audit.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/bitbucket.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/bitbucket.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/dictionary.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/dictionary.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/editor.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/editor.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/environment.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/environment.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/github.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/github.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/gitlab.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/gitlab.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/index.cjs +1 -1
- package/dist/cjs/getIntlayerAPI/newsletter.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/newsletter.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/organization.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/organization.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/project.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/project.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/reviewer.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/reviewer.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/search.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/search.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/showcaseProject.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/showcaseProject.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/stripe.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/stripe.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/tag.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/tag.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/translate.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/translate.cjs.map +1 -1
- package/dist/cjs/getIntlayerAPI/user.cjs +9 -0
- package/dist/cjs/getIntlayerAPI/user.cjs.map +1 -1
- package/dist/cjs/index.cjs +27 -3
- package/dist/cjs/proxy.cjs +76 -96
- package/dist/cjs/proxy.cjs.map +1 -1
- package/dist/esm/cms/createAuthManager.mjs +115 -0
- package/dist/esm/cms/createAuthManager.mjs.map +1 -0
- package/dist/esm/cms/createIntlayerCMS.mjs +62 -0
- package/dist/esm/cms/createIntlayerCMS.mjs.map +1 -0
- package/dist/esm/cms/index.mjs +4 -0
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs +3 -2
- package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs.map +1 -1
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs +3 -2
- package/dist/esm/distantDictionary/fetchDistantDictionary.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/ai.mjs +9 -1
- package/dist/esm/getIntlayerAPI/ai.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/asset.mjs +9 -1
- package/dist/esm/getIntlayerAPI/asset.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/audit.mjs +9 -1
- package/dist/esm/getIntlayerAPI/audit.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/bitbucket.mjs +9 -1
- package/dist/esm/getIntlayerAPI/bitbucket.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/dictionary.mjs +9 -1
- package/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/editor.mjs +9 -1
- package/dist/esm/getIntlayerAPI/editor.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/environment.mjs +9 -1
- package/dist/esm/getIntlayerAPI/environment.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/github.mjs +9 -1
- package/dist/esm/getIntlayerAPI/github.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/gitlab.mjs +9 -1
- package/dist/esm/getIntlayerAPI/gitlab.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/index.mjs +1 -1
- package/dist/esm/getIntlayerAPI/newsletter.mjs +9 -1
- package/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/organization.mjs +9 -1
- package/dist/esm/getIntlayerAPI/organization.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/project.mjs +9 -1
- package/dist/esm/getIntlayerAPI/project.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/reviewer.mjs +9 -1
- package/dist/esm/getIntlayerAPI/reviewer.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/search.mjs +9 -1
- package/dist/esm/getIntlayerAPI/search.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/showcaseProject.mjs +9 -1
- package/dist/esm/getIntlayerAPI/showcaseProject.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/stripe.mjs +9 -1
- package/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/tag.mjs +9 -1
- package/dist/esm/getIntlayerAPI/tag.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/translate.mjs +9 -1
- package/dist/esm/getIntlayerAPI/translate.mjs.map +1 -1
- package/dist/esm/getIntlayerAPI/user.mjs +9 -1
- package/dist/esm/getIntlayerAPI/user.mjs.map +1 -1
- package/dist/esm/index.mjs +23 -21
- package/dist/esm/proxy.mjs +76 -96
- package/dist/esm/proxy.mjs.map +1 -1
- package/dist/types/cms/createAuthManager.d.ts +103 -0
- package/dist/types/cms/createAuthManager.d.ts.map +1 -0
- package/dist/types/cms/createIntlayerCMS.d.ts +80 -0
- package/dist/types/cms/createIntlayerCMS.d.ts.map +1 -0
- package/dist/types/cms/index.d.ts +3 -0
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts +22 -2
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/asset.d.ts +19 -1
- package/dist/types/getIntlayerAPI/asset.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/audit.d.ts +24 -2
- package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/bitbucket.d.ts +15 -1
- package/dist/types/getIntlayerAPI/bitbucket.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts +19 -2
- package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +13 -1
- package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/environment.d.ts +17 -2
- package/dist/types/getIntlayerAPI/environment.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/github.d.ts +16 -1
- package/dist/types/getIntlayerAPI/github.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/gitlab.d.ts +15 -1
- package/dist/types/getIntlayerAPI/gitlab.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/index.d.ts +1 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts +14 -2
- package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts +22 -2
- package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +29 -2
- package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/reviewer.d.ts +46 -2
- package/dist/types/getIntlayerAPI/reviewer.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts +12 -2
- package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts +23 -2
- package/dist/types/getIntlayerAPI/showcaseProject.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts +68 -2
- package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts +15 -2
- package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/translate.d.ts +37 -2
- package/dist/types/getIntlayerAPI/translate.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +20 -2
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +23 -21
- package/dist/types/proxy.d.ts +11 -9
- package/dist/types/proxy.d.ts.map +1 -1
- package/package.json +11 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
import { NewsletterSubscriptionBody, NewsletterUnsubscriptionBody } from "@intlayer/backend";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/newsletter.d.ts
|
|
6
7
|
declare const getNewsletterAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
@@ -8,6 +9,17 @@ declare const getNewsletterAPI: (authAPIOptions?: FetcherOptions, intlayerConfig
|
|
|
8
9
|
unsubscribeFromNewsletter: (body: NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
9
10
|
getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
10
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* Authenticated `newsletter` endpoint bound to an Intlayer CMS authenticator.
|
|
14
|
+
*
|
|
15
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
16
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
17
|
+
*/
|
|
18
|
+
declare const newsletterEndpoint: CMSEndpoint<{
|
|
19
|
+
subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
20
|
+
unsubscribeFromNewsletter: (body: NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
21
|
+
getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
|
|
22
|
+
}>;
|
|
11
23
|
//#endregion
|
|
12
|
-
export { getNewsletterAPI };
|
|
24
|
+
export { getNewsletterAPI, newsletterEndpoint };
|
|
13
25
|
//# sourceMappingURL=newsletter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newsletter.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/newsletter.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"newsletter.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/newsletter.ts"],"mappings":";;;;;;cAUa,gBAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;gCAYT,0BAAA,EAA0B,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,4BAAA;oCAkBtB,4BAAA,EAA4B,YAAA,GACpB,cAAA,KAAc,OAAA,CAAA,4BAAA;uCAgBmB,cAAA,KAAc,OAAA,CAAA,4BAAA;AAAA;;;;;;;cAuBpD,kBAAA,EAvBoD,WAAA;gCApCvD,0BAAA,EAA0B,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,4BAAA;oCAkBtB,4BAAA,EAA4B,YAAA,GACpB,cAAA,KAAc,OAAA,CAAA,4BAAA;uCAgBmB,cAAA,KAAc,OAAA,CAAA,4BAAA;AAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
import { AddOrganizationBody, AddOrganizationMemberBody, GetOrganizationParam, GetOrganizationsParams, SelectOrganizationParam, UpdateOrganizationBody, UpdateOrganizationMembersBody } from "@intlayer/backend";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/organization.d.ts
|
|
6
7
|
declare const getOrganizationAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
@@ -16,6 +17,25 @@ declare const getOrganizationAPI: (authAPIOptions?: FetcherOptions, intlayerConf
|
|
|
16
17
|
selectOrganization: (organizationId: SelectOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
|
|
17
18
|
unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
|
|
18
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Authenticated `organization` endpoint bound to an Intlayer CMS authenticator.
|
|
22
|
+
*
|
|
23
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
24
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
25
|
+
*/
|
|
26
|
+
declare const organizationEndpoint: CMSEndpoint<{
|
|
27
|
+
getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
|
|
28
|
+
getOrganization: (organizationId: GetOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
|
|
29
|
+
addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
|
|
30
|
+
addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
|
|
31
|
+
updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
|
|
32
|
+
updateOrganizationMembers: (body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
|
|
33
|
+
updateOrganizationMembersById: (organizationId: string, body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
|
|
34
|
+
deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
35
|
+
deleteOrganizationByIdAdmin: (organizationId: string, otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
|
|
36
|
+
selectOrganization: (organizationId: SelectOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
|
|
37
|
+
unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
|
|
38
|
+
}>;
|
|
19
39
|
//#endregion
|
|
20
|
-
export { getOrganizationAPI };
|
|
40
|
+
export { getOrganizationAPI, organizationEndpoint };
|
|
21
41
|
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/organization.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"organization.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/organization.ts"],"mappings":";;;;;;cAuBa,kBAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;+BAWL,sBAAA,EAAsB,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,sBAAA;oCAkBZ,oBAAA,oBAAsC,YAAA,GACxC,cAAA,KAAc,OAAA,CAAA,qBAAA;kCAad,mBAAA,EAAmB,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,qBAAA;gCAyEtB,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;qCAzDd,sBAAA,EAAsB,YAAA,GACtB,cAAA,KAAc,OAAA,CAAA,wBAAA;oCAiBtB,6BAAA,EAA6B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,+BAAA;0DAkBN,IAAA,EAChB,6BAAA,EAA6B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,+BAAA;sCAkCkB,cAAA,KAAc,OAAA,CAAA,wBAAA;wDAetC,YAAA,GACR,cAAA,KAAc,OAAA,CAAA,wBAAA;uCAcZ,uBAAA,oBAAyC,YAAA,GAC3C,cAAA,KAAc,OAAA,CAAA,wBAAA;wCAeoB,cAAA,KAAc,OAAA,CAAA,0BAAA;AAAA;;;;;;;cA+BrD,oBAAA,EA/BqD,WAAA;+BA1KpD,sBAAA,EAAsB,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,sBAAA;oCAkBZ,oBAAA,oBAAsC,YAAA,GACxC,cAAA,KAAc,OAAA,CAAA,qBAAA;kCAad,mBAAA,EAAmB,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,qBAAA;gCAyEtB,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;qCAzDd,sBAAA,EAAsB,YAAA,GACtB,cAAA,KAAc,OAAA,CAAA,wBAAA;oCAiBtB,6BAAA,EAA6B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,+BAAA;0DAkBN,IAAA,EAChB,6BAAA,EAA6B,YAAA,GACrB,cAAA,KAAc,OAAA,CAAA,+BAAA;sCAkCkB,cAAA,KAAc,OAAA,CAAA,wBAAA;wDAetC,YAAA,GACR,cAAA,KAAc,OAAA,CAAA,wBAAA;uCAcZ,uBAAA,oBAAyC,YAAA,GAC3C,cAAA,KAAc,OAAA,CAAA,wBAAA;wCAeoB,cAAA,KAAc,OAAA,CAAA,0BAAA;AAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
import { AddNewAccessKeyBody, AddProjectBody, DeleteAccessKeyBody, GetProjectsParams, PushProjectConfigurationBody, RefreshAccessKeyBody, SelectProjectParam, TriggerWebhookBody, UpdateMemberAccessBody, UpdateProjectBody, UpdateProjectMembersBody } from "@intlayer/backend";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/project.d.ts
|
|
6
7
|
declare const getProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
@@ -23,6 +24,32 @@ declare const getProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?:
|
|
|
23
24
|
pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
24
25
|
updateMemberAccess: (userId: string, body: UpdateMemberAccessBody, otherOptions?: FetcherOptions) => Promise<UpdateMemberAccessResult>;
|
|
25
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Authenticated `project` endpoint bound to an Intlayer CMS authenticator.
|
|
29
|
+
*
|
|
30
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
31
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
32
|
+
*/
|
|
33
|
+
declare const projectEndpoint: CMSEndpoint<{
|
|
34
|
+
getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
|
|
35
|
+
getProjectInsights: (otherOptions?: FetcherOptions) => Promise<GetProjectInsightsResult>;
|
|
36
|
+
addProject: (project: AddProjectBody, otherOptions?: FetcherOptions) => Promise<AddProjectResult>;
|
|
37
|
+
updateProject: (project: UpdateProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectResult>;
|
|
38
|
+
updateProjectMembers: (body: UpdateProjectMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectMembersResult>;
|
|
39
|
+
pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
|
|
40
|
+
deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
41
|
+
deleteProjectByIdAdmin: (projectId: string, otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
|
|
42
|
+
selectProject: (projectId: SelectProjectParam["projectId"], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
|
|
43
|
+
unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
|
|
44
|
+
addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
|
|
45
|
+
deleteAccessKey: (clientId: DeleteAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
|
|
46
|
+
refreshAccessKey: (clientId: RefreshAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
|
|
47
|
+
triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>;
|
|
48
|
+
triggerWebhook: (webhookIndex: TriggerWebhookBody["webhookIndex"], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
|
|
49
|
+
getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
50
|
+
pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
51
|
+
updateMemberAccess: (userId: string, body: UpdateMemberAccessBody, otherOptions?: FetcherOptions) => Promise<UpdateMemberAccessResult>;
|
|
52
|
+
}>;
|
|
26
53
|
//#endregion
|
|
27
|
-
export { getProjectAPI };
|
|
54
|
+
export { getProjectAPI, projectEndpoint };
|
|
28
55
|
//# sourceMappingURL=project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/project.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"project.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/project.ts"],"mappings":";;;;;;cAkCa,aAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;0BAWL,iBAAA,EAAiB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,iBAAA;sCAkBkB,cAAA,KAAc,OAAA,CAAA,wBAAA;wBAgBnD,cAAA,EAAc,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,gBAAA;2BAiBnB,iBAAA,EAAiB,YAAA,GACZ,cAAA,KAAc,OAAA,CAAA,mBAAA;+BAiBtB,wBAAA,EAAwB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,0BAAA;mDAgBN,4BAAA,EAA4B,YAAA,GACpC,cAAA,KAAc,OAAA,CAAA,8BAAA;iCAgBa,cAAA,KAAc,OAAA,CAAA,mBAAA;8CAetC,YAAA,GACH,cAAA,KAAc,OAAA,CAAA,mBAAA;6BAcjB,kBAAA,eAA+B,YAAA,GAC5B,cAAA,KAAc,OAAA,CAAA,mBAAA;mCAee,cAAA,KAAc,OAAA,CAAA,qBAAA;+BAiB9C,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5B,cAAA,KAAc,OAAA,CAAA,wBAAA;gCAiBY,cAAA,KAAc,OAAA,CAAA,kBAAA;iCAiBxC,kBAAA,kBAAkC,YAAA,GAClC,cAAA,KAAc,OAAA,CAAA,oBAAA;+BAiBW,cAAA,KAAc,OAAA,CAAA,YAAA;gCAeb,cAAA,KAAc,OAAA,CAAA,YAAA;uCAgBxC,IAAA,EACR,sBAAA,EAAsB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,wBAAA;AAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
import { CreateMissionBody, EstimateMissionBody, GetMarketplaceQuery, RegisterReviewerBody, SendMessageBody, SubmitReviewBody, UpdateMissionStatusBody, UpdateReviewerBody } from "@intlayer/backend";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/reviewer.d.ts
|
|
6
7
|
declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
@@ -40,6 +41,49 @@ declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?:
|
|
|
40
41
|
status?: string;
|
|
41
42
|
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
|
|
42
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Authenticated `reviewer` endpoint bound to an Intlayer CMS authenticator.
|
|
46
|
+
*
|
|
47
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
48
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
49
|
+
*/
|
|
50
|
+
declare const reviewerEndpoint: CMSEndpoint<{
|
|
51
|
+
getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
|
|
52
|
+
getPriceDistribution: (params?: Pick<GetMarketplaceQuery, "fromLocale" | "toLocale" | "minRating" | "categories">, otherOptions?: FetcherOptions) => Promise<ResponseData<PriceDistributionData>>;
|
|
53
|
+
getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
|
|
54
|
+
getReviewerReviews: (reviewerId: string, params?: {
|
|
55
|
+
page?: number;
|
|
56
|
+
pageSize?: number;
|
|
57
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerReviewAPI>>;
|
|
58
|
+
getMyReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
59
|
+
registerAsReviewer: (body: RegisterReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
|
|
60
|
+
updateReviewerProfile: (body: UpdateReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
|
|
61
|
+
deleteReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
|
|
62
|
+
estimateMission: (body: EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<MissionEstimate>>;
|
|
63
|
+
createMission: (body: CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
|
|
64
|
+
getMyMissions: (params?: {
|
|
65
|
+
role?: "client" | "reviewer";
|
|
66
|
+
page?: number;
|
|
67
|
+
pageSize?: number;
|
|
68
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<TranslationMissionAPI>>;
|
|
69
|
+
getMissionById: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
|
|
70
|
+
updateMissionStatus: (missionId: string, body: UpdateMissionStatusBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
|
|
71
|
+
submitReview: (missionId: string, body: SubmitReviewBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerReviewAPI>>;
|
|
72
|
+
contactReviewer: (reviewerId: string, body: {
|
|
73
|
+
message: string;
|
|
74
|
+
}, otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
|
|
75
|
+
getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI[]>>;
|
|
76
|
+
sendMessage: (missionId: string, body: SendMessageBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI>>;
|
|
77
|
+
getChatStreamUrl: (missionId: string) => string;
|
|
78
|
+
uploadMainPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
|
|
79
|
+
uploadCoverPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
|
|
80
|
+
validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
|
|
81
|
+
getAdminReviewers: (params?: {
|
|
82
|
+
page?: number;
|
|
83
|
+
pageSize?: number;
|
|
84
|
+
status?: string;
|
|
85
|
+
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
|
|
86
|
+
}>;
|
|
43
87
|
//#endregion
|
|
44
|
-
export { getReviewerAPI };
|
|
88
|
+
export { getReviewerAPI, reviewerEndpoint };
|
|
45
89
|
//# sourceMappingURL=reviewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviewer.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/reviewer.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"reviewer.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/reviewer.ts"],"mappings":";;;;;;cAwBa,cAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;4BAQP,mBAAA,EAAmB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,iBAAA,CAAA,kBAAA;kCAwBpB,IAAA,CACN,mBAAA,2DAED,YAAA,GACa,cAAA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CAAA,qBAAA;oCAYX,IAAA,EACX,gBAAA,EAAgB,YAAA,GACR,cAAA,KAAc,OAAA,CAAA,YAAA,CAAA,iBAAA;wCAtFV,IAAA;IACV,OAAA;EAAA,GAAiB,YAAA,GACX,cAAA,KAAc,OAAA,CAAA,YAAA;sCAgGX,YAAA,GACH,cAAA,KAAc,OAAA,CAAA,YAAA,CAAA,kBAAA;mCAUX,IAAA,EACX,eAAA,EAAe,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,YAAA,CAAA,kBAAA;;4BA4CG,IAAA,EAAI,YAAA,GAAgB,cAAA,KAAc,OAAA,CAAA,2BAAA;6BAGjC,IAAA,EAAI,YAAA,GAAgB,cAAA,KAAc,OAAA,CAAA,2BAAA;gDAMhD,YAAA,GACJ,cAAA,KAAc,OAAA,CAAA,YAAA,CAAA,kBAAA;;IAUlB,IAAA;IAAe,QAAA;IAAmB,MAAA;EAAA,GAAiB,YAAA,GAC/C,cAAA,KAAc,OAAA,CAAA,iBAAA,CAAA,kBAAA;AAAA"}
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
import { SearchDocUtilParams } from "@intlayer/backend";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/search.d.ts
|
|
6
7
|
declare const getSearchAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
7
8
|
searchDoc: (params?: SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>;
|
|
8
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Authenticated `search` endpoint bound to an Intlayer CMS authenticator.
|
|
12
|
+
*
|
|
13
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
14
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
15
|
+
*/
|
|
16
|
+
declare const searchEndpoint: CMSEndpoint<{
|
|
17
|
+
searchDoc: (params?: SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>;
|
|
18
|
+
}>;
|
|
9
19
|
//#endregion
|
|
10
|
-
export { getSearchAPI };
|
|
20
|
+
export { getSearchAPI, searchEndpoint };
|
|
11
21
|
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/search.ts"],"mappings":";;;;;;cASa,YAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;uBAYN,mBAAA,EAAmB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,mBAAA;AAAA;;AAfhC;;;;;cAsCa,cAAA,EAvBmB,WAAA;uBADnB,mBAAA,EAAmB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,mBAAA;AAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
import { GetShowcaseProjectByIdParams, SubmitShowcaseProjectBody, ToggleShowcaseDownvoteBody, ToggleShowcaseUpvoteBody, UpdateShowcaseProjectBody } from "@intlayer/backend";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/showcaseProject.d.ts
|
|
6
7
|
type ShowcaseProjectsQuery = {
|
|
@@ -28,6 +29,26 @@ declare const getShowcaseProjectAPI: (authAPIOptions?: FetcherOptions, intlayerC
|
|
|
28
29
|
}>;
|
|
29
30
|
updateShowcaseProject: (projectId: GetShowcaseProjectByIdParams["projectId"], body: UpdateShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateShowcaseProjectResult>;
|
|
30
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Authenticated `showcaseProject` endpoint bound to an Intlayer CMS authenticator.
|
|
34
|
+
*
|
|
35
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
36
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
37
|
+
*/
|
|
38
|
+
declare const showcaseProjectEndpoint: CMSEndpoint<{
|
|
39
|
+
getShowcaseProjects: (query?: ShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectsResult>;
|
|
40
|
+
getShowcaseProjectById: (projectId: GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectByIdResult>;
|
|
41
|
+
getOtherShowcaseProjects: (query: OtherShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetOtherShowcaseProjectsResult>;
|
|
42
|
+
submitShowcaseProject: (body: SubmitShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<SubmitShowcaseProjectResult>;
|
|
43
|
+
toggleShowcaseUpvote: (body: ToggleShowcaseUpvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseUpvoteResult>;
|
|
44
|
+
toggleShowcaseDownvote: (body: ToggleShowcaseDownvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseDownvoteResult>;
|
|
45
|
+
deleteShowcaseProject: (projectId: GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<{
|
|
46
|
+
data: {
|
|
47
|
+
success: boolean;
|
|
48
|
+
};
|
|
49
|
+
}>;
|
|
50
|
+
updateShowcaseProject: (projectId: GetShowcaseProjectByIdParams["projectId"], body: UpdateShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateShowcaseProjectResult>;
|
|
51
|
+
}>;
|
|
31
52
|
//#endregion
|
|
32
|
-
export { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI };
|
|
53
|
+
export { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI, showcaseProjectEndpoint };
|
|
33
54
|
//# sourceMappingURL=showcaseProject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showcaseProject.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"showcaseProject.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/showcaseProject.ts"],"mappings":";;;;;;KAqBY,qBAAA;EACV,IAAA;EACA,QAAA;EACA,MAAA;EACA,gBAAA;EACA,YAAA;AAAA;AAAA,KAGU,0BAAA;EACV,SAAA;EACA,KAAA;AAAA;AAAA,cAGW,qBAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;gCAOP,qBAAA,EAAqB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,yBAAA;sCAoBjB,4BAAA,eAAyC,YAAA,GACtC,cAAA,KAAc,OAAA,CAAA,4BAAA;oCAUrB,0BAAA,EAA0B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,8BAAA;gCAatB,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;+BAUtB,wBAAA,EAAwB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,0BAAA;iCAUtB,0BAAA,EAA0B,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,4BAAA;qCAUjB,4BAAA,eAAyC,YAAA,GACtC,cAAA,KAAc,OAAA;;MAEJ,OAAA;IAAA;EAAA;qCAQb,4BAAA,eAAyC,IAAA,EAC9C,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;AAAA;;;;;;;cA2BnB,uBAAA,EA3BmB,WAAA;gCA5FpB,qBAAA,EAAqB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,yBAAA;sCAoBjB,4BAAA,eAAyC,YAAA,GACtC,cAAA,KAAc,OAAA,CAAA,4BAAA;oCAUrB,0BAAA,EAA0B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,8BAAA;gCAatB,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;+BAUtB,wBAAA,EAAwB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,0BAAA;iCAUtB,0BAAA,EAA0B,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,4BAAA;qCAUjB,4BAAA,eAAyC,YAAA,GACtC,cAAA,KAAc,OAAA;;MAEJ,OAAA;IAAA;EAAA;qCAQb,4BAAA,eAAyC,IAAA,EAC9C,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;AAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
import { CreatePromoCodeBody, GetAffiliatesParams, GetCheckoutSessionBody, GetPricingBody, GrantAffiliateAccessBody, SendAffiliateInvitationBody, UpdateAffiliateStatusBody, UpdatePromoCodeBody } from "@intlayer/backend";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/stripe.d.ts
|
|
6
7
|
declare const getStripeAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
@@ -62,6 +63,71 @@ declare const getStripeAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: I
|
|
|
62
63
|
}, otherOptions?: FetcherOptions) => Promise<DeletePromoCodeResult>;
|
|
63
64
|
getAffiliatePromoCode: (referralCode: string, otherOptions?: FetcherOptions) => Promise<any>;
|
|
64
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* Authenticated `stripe` endpoint bound to an Intlayer CMS authenticator.
|
|
68
|
+
*
|
|
69
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
70
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
71
|
+
*/
|
|
72
|
+
declare const stripeEndpoint: CMSEndpoint<{
|
|
73
|
+
getPricing: (body?: GetPricingBody, otherOptions?: FetcherOptions) => Promise<GetPricingResult>;
|
|
74
|
+
getSubscription: (body?: GetCheckoutSessionBody, otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
|
|
75
|
+
cancelSubscription: (otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
|
|
76
|
+
getInvoices: (otherOptions?: FetcherOptions) => Promise<GetInvoicesResult>;
|
|
77
|
+
getPaymentMethod: (otherOptions?: FetcherOptions) => Promise<GetPaymentMethodResult>;
|
|
78
|
+
createPortalSession: (otherOptions?: FetcherOptions) => Promise<CreatePortalSessionResult>;
|
|
79
|
+
grantAffiliateAccess: (body: GrantAffiliateAccessBody, otherOptions?: FetcherOptions) => Promise<GrantAffiliateAccessResult>;
|
|
80
|
+
getAffiliates: (params?: GetAffiliatesParams, otherOptions?: FetcherOptions) => Promise<GetAffiliatesResult>;
|
|
81
|
+
getAffiliateById: ({
|
|
82
|
+
id
|
|
83
|
+
}: {
|
|
84
|
+
id: string;
|
|
85
|
+
}, otherOptions?: FetcherOptions) => Promise<GetAffiliateByIdResult>;
|
|
86
|
+
getAffiliate: (otherOptions?: FetcherOptions) => Promise<GetAffiliateResult>;
|
|
87
|
+
getAffiliateAccountSession: (otherOptions?: FetcherOptions) => Promise<GetAffiliateAccountSessionResult>;
|
|
88
|
+
getAffiliateOnboardingLink: (params?: {
|
|
89
|
+
returnUrl?: string;
|
|
90
|
+
}, otherOptions?: FetcherOptions) => Promise<GetAffiliateOnboardingLinkResult>;
|
|
91
|
+
getAffiliateStats: (otherOptions?: FetcherOptions) => Promise<GetAffiliateStatsResult>;
|
|
92
|
+
getAffiliateInvitations: (params?: GetAffiliatesParams, otherOptions?: FetcherOptions) => Promise<GetAffiliateInvitationsResult>;
|
|
93
|
+
sendAffiliateInvitation: (body: SendAffiliateInvitationBody, otherOptions?: FetcherOptions) => Promise<SendAffiliateInvitationResult>;
|
|
94
|
+
getAffiliateInvitation: ({
|
|
95
|
+
token
|
|
96
|
+
}: {
|
|
97
|
+
token: string;
|
|
98
|
+
}, otherOptions?: FetcherOptions) => Promise<GetAffiliateInvitationResult>;
|
|
99
|
+
acceptAffiliateInvitation: ({
|
|
100
|
+
token,
|
|
101
|
+
country,
|
|
102
|
+
stripeAccountType
|
|
103
|
+
}: {
|
|
104
|
+
token: string;
|
|
105
|
+
country?: string;
|
|
106
|
+
stripeAccountType?: "express" | "standard";
|
|
107
|
+
}, otherOptions?: FetcherOptions) => Promise<AcceptAffiliateInvitationResult>;
|
|
108
|
+
updateAffiliateStatus: ({
|
|
109
|
+
id
|
|
110
|
+
}: {
|
|
111
|
+
id: string;
|
|
112
|
+
}, body: UpdateAffiliateStatusBody, otherOptions?: FetcherOptions) => Promise<UpdateAffiliateStatusResult>;
|
|
113
|
+
getPromoCodeById: (id: string, otherOptions?: FetcherOptions) => Promise<GetPromoCodeByIdResult>;
|
|
114
|
+
getPromoCodes: (params?: {
|
|
115
|
+
affiliateId?: string;
|
|
116
|
+
}, otherOptions?: FetcherOptions) => Promise<GetPromoCodesResult>;
|
|
117
|
+
createPromoCode: (body: CreatePromoCodeBody, otherOptions?: FetcherOptions) => Promise<CreatePromoCodeResult>;
|
|
118
|
+
updatePromoCode: ({
|
|
119
|
+
id,
|
|
120
|
+
...body
|
|
121
|
+
}: {
|
|
122
|
+
id: string;
|
|
123
|
+
} & UpdatePromoCodeBody, otherOptions?: FetcherOptions) => Promise<UpdatePromoCodeResult>;
|
|
124
|
+
deletePromoCode: ({
|
|
125
|
+
id
|
|
126
|
+
}: {
|
|
127
|
+
id: string;
|
|
128
|
+
}, otherOptions?: FetcherOptions) => Promise<DeletePromoCodeResult>;
|
|
129
|
+
getAffiliatePromoCode: (referralCode: string, otherOptions?: FetcherOptions) => Promise<any>;
|
|
130
|
+
}>;
|
|
65
131
|
//#endregion
|
|
66
|
-
export { getStripeAPI };
|
|
132
|
+
export { getStripeAPI, stripeEndpoint };
|
|
67
133
|
//# sourceMappingURL=stripe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/stripe.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"stripe.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/stripe.ts"],"mappings":";;;;;;cAqCa,YAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;sBAWR,cAAA,EAAc,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,gBAAA;2BAiBrB,sBAAA,EAAsB,YAAA,GACf,cAAA,KAAc,OAAA,CAAA,wBAAA;sCAgBkB,cAAA,KAAc,OAAA,CAAA,wBAAA;+BAarB,cAAA,KAAc,OAAA,CAAA,iBAAA;oCAYT,cAAA,KAAc,OAAA,CAAA,sBAAA;uCAWX,cAAA,KAAc,OAAA,CAAA,yBAAA;+BAYvD,wBAAA,EAAwB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA,0BAAA;2BAanB,mBAAA,EAAmB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,mBAAA;;;;IAalB,EAAA;EAAA,GAAY,YAAA,GACR,cAAA,KAAc,OAAA,CAAA,sBAAA;gCAYY,cAAA,KAAc,OAAA,CAAA,kBAAA;8CAYxC,cAAA,KAAc,OAAA,CAAA,gCAAA;;IAajB,SAAA;EAAA,GAAoB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,gCAAA;qCAYiB,cAAA,KAAc,OAAA,CAAA,uBAAA;qCAYnD,mBAAA,EAAmB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,6BAAA;kCAmBtB,2BAAA,EAA2B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,6BAAA;;;;IAaf,KAAA;EAAA,GAA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B,SAAA;EAAA,GAAoB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,gCAAA;qCAYiB,cAAA,KAAc,OAAA,CAAA,uBAAA;qCAYnD,mBAAA,EAAmB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,6BAAA;kCAmBtB,2BAAA,EAA2B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,6BAAA;;;;IAaf,KAAA;EAAA,GAAe,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,4BAAA;;;;;;IAiC1B,KAAA;IACA,OAAA;IACA,iBAAA;EAAA,GACD,YAAA,GACa,cAAA,KAAc,OAAA,CAAA,+BAAA;;;;IAxBlB,EAAA;EAAA,GAAY,IAAA,EAChB,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;iCAmClB,YAAA,GACI,cAAA,KAAc,OAAA,CAAA,sBAAA;;IAUlB,WAAA;EAAA,GAAsB,YAAA,GAClB,cAAA,KAAc,OAAA,CAAA,mBAAA;0BAiBtB,mBAAA,EAAmB,YAAA,GACX,cAAA,KAAc,OAAA,CAAA,qBAAA;;;;;IAaT,EAAA;EAAA,IAAe,mBAAA,EAAmB,YAAA,GACvC,cAAA,KAAc,OAAA,CAAA,qBAAA;;;;IAalB,EAAA;EAAA,GAAY,YAAA,GACR,cAAA,KAAc,OAAA,CAAA,qBAAA;gDAaR,YAAA,GACN,cAAA,KAAc,OAAA;AAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
import { AddTagBody, DeleteTagParams, GetTagsParams, UpdateTagBody, UpdateTagParams } from "@intlayer/backend";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/tag.d.ts
|
|
6
7
|
declare const getTagAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
@@ -9,6 +10,18 @@ declare const getTagAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: Intl
|
|
|
9
10
|
updateTag: (tagId: UpdateTagParams["tagId"], tag: UpdateTagBody, otherOptions?: FetcherOptions) => Promise<UpdateTagResult>;
|
|
10
11
|
deleteTag: (tagId: DeleteTagParams["tagId"], otherOptions?: FetcherOptions) => Promise<DeleteTagResult>;
|
|
11
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Authenticated `tag` endpoint bound to an Intlayer CMS authenticator.
|
|
15
|
+
*
|
|
16
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
17
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
18
|
+
*/
|
|
19
|
+
declare const tagEndpoint: CMSEndpoint<{
|
|
20
|
+
getTags: (filters?: GetTagsParams, otherOptions?: FetcherOptions) => Promise<GetTagsResult>;
|
|
21
|
+
addTag: (tag: AddTagBody, otherOptions?: FetcherOptions) => Promise<AddTagResult>;
|
|
22
|
+
updateTag: (tagId: UpdateTagParams["tagId"], tag: UpdateTagBody, otherOptions?: FetcherOptions) => Promise<UpdateTagResult>;
|
|
23
|
+
deleteTag: (tagId: DeleteTagParams["tagId"], otherOptions?: FetcherOptions) => Promise<DeleteTagResult>;
|
|
24
|
+
}>;
|
|
12
25
|
//#endregion
|
|
13
|
-
export { getTagAPI };
|
|
26
|
+
export { getTagAPI, tagEndpoint };
|
|
14
27
|
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/tag.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/tag.ts"],"mappings":";;;;;;cAgBa,SAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;sBAWL,aAAA,EAAa,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,aAAA;gBAiBH,UAAA,EAAU,YAAA,GAAgB,cAAA,KAAc,OAAA,CAAA,YAAA;qBAgB1D,eAAA,WAAwB,GAAA,EAC1B,aAAA,EAAa,YAAA,GACJ,cAAA,KAAc,OAAA,CAAA,eAAA;qBAiBrB,eAAA,WAAwB,YAAA,GAEjB,cAAA,KAAc,OAAA,CAAA,eAAA;AAAA;;;;;;;cAyBnB,WAAA,EAzBmB,WAAA;sBAvDlB,aAAA,EAAa,YAAA,GACT,cAAA,KAAc,OAAA,CAAA,aAAA;gBAiBH,UAAA,EAAU,YAAA,GAAgB,cAAA,KAAc,OAAA,CAAA,YAAA;qBAgB1D,eAAA,WAAwB,GAAA,EAC1B,aAAA,EAAa,YAAA,GACJ,cAAA,KAAc,OAAA,CAAA,eAAA;qBAiBrB,eAAA,WAAwB,YAAA,GAEjB,cAAA,KAAc,OAAA,CAAA,eAAA;AAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
import { TranslateDictionariesBody, TranslateDictionariesResult } from "@intlayer/backend";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/translate.d.ts
|
|
6
7
|
declare const getTranslateAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
|
|
@@ -31,6 +32,40 @@ declare const getTranslateAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?
|
|
|
31
32
|
};
|
|
32
33
|
}>;
|
|
33
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Authenticated `translate` endpoint bound to an Intlayer CMS authenticator.
|
|
37
|
+
*
|
|
38
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
39
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
40
|
+
*/
|
|
41
|
+
declare const translateEndpoint: CMSEndpoint<{
|
|
42
|
+
translateDictionaries: (body: TranslateDictionariesBody, otherOptions?: FetcherOptions) => Promise<TranslateDictionariesResult>;
|
|
43
|
+
pauseTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
|
|
44
|
+
data: {
|
|
45
|
+
jobId: string;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
resumeTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
|
|
49
|
+
data: {
|
|
50
|
+
jobId: string;
|
|
51
|
+
};
|
|
52
|
+
}>;
|
|
53
|
+
stopTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
|
|
54
|
+
data: {
|
|
55
|
+
jobId: string;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
retryTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
|
|
59
|
+
data: {
|
|
60
|
+
jobId: string;
|
|
61
|
+
};
|
|
62
|
+
}>;
|
|
63
|
+
restartTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
|
|
64
|
+
data: {
|
|
65
|
+
jobId: string;
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
34
69
|
//#endregion
|
|
35
|
-
export { type TranslateDictionariesBody, type TranslateDictionariesResult, getTranslateAPI };
|
|
70
|
+
export { type TranslateDictionariesBody, type TranslateDictionariesResult, getTranslateAPI, translateEndpoint };
|
|
36
71
|
//# sourceMappingURL=translate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/translate.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"translate.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/translate.ts"],"mappings":";;;;;;cAWa,eAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;gCAOT,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;uCAUf,YAAA,GACC,cAAA,KAAc,OAAA;;MAEV,KAAA;IAAA;EAAA;wCAQL,YAAA,GACC,cAAA,KAAc,OAAA;;MAEV,KAAA;IAAA;EAAA;sCAQL,YAAA,GACC,cAAA,KAAc,OAAA;;MAEV,KAAA;IAAA;EAAA;uCAQL,YAAA,GACC,cAAA,KAAc,OAAA;;MAEV,KAAA;IAAA;EAAA;yCAQL,YAAA,GACC,cAAA,KAAc,OAAA;;MAEV,KAAA;IAAA;EAAA;AAAA;;;;;;;cAuBT,iBAAA,EAzBmB,WAAA;gCAxDtB,yBAAA,EAAyB,YAAA,GACjB,cAAA,KAAc,OAAA,CAAA,2BAAA;uCAUf,YAAA,GACC,cAAA,KAAc,OAAA;;MAEV,KAAA;IAAA;EAAA;wCAQL,YAAA,GACC,cAAA,KAAc,OAAA;;MAEV,KAAA;IAAA;EAAA;sCAQL,YAAA,GACC,cAAA,KAAc,OAAA;;MAEV,KAAA;IAAA;EAAA;uCAQL,YAAA,GACC,cAAA,KAAc,OAAA;;MAEV,KAAA;IAAA;EAAA;yCAQL,YAAA,GACC,cAAA,KAAc,OAAA;;MAEV,KAAA;IAAA;EAAA;AAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetcherOptions } from "../fetcher.js";
|
|
2
|
-
import {
|
|
2
|
+
import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
|
|
3
3
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
4
|
+
import { CreateUserBody, GetUserByEmailParams, GetUserByIdParams, GetUsersParams, UpdateUserBody, UserAPI } from "@intlayer/backend";
|
|
4
5
|
|
|
5
6
|
//#region src/getIntlayerAPI/user.d.ts
|
|
6
7
|
type GetUserByAccountParams = {
|
|
@@ -18,6 +19,23 @@ declare const getUserAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: Int
|
|
|
18
19
|
uploadAvatar: (file: File, otherOptions?: FetcherOptions) => Promise<UploadUserAvatarResult>;
|
|
19
20
|
getVerifyEmailStatusURL: (userId: string | UserAPI["id"]) => string;
|
|
20
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Authenticated `user` endpoint bound to an Intlayer CMS authenticator.
|
|
24
|
+
*
|
|
25
|
+
* Pass an authenticator created with `createIntlayerCMS`, or omit it to use
|
|
26
|
+
* the build-time configuration (`@intlayer/config/built`).
|
|
27
|
+
*/
|
|
28
|
+
declare const userEndpoint: CMSEndpoint<{
|
|
29
|
+
createUser: (user: CreateUserBody, otherOptions?: FetcherOptions) => Promise<CreateUserResult>;
|
|
30
|
+
getUsers: (filters?: GetUsersParams, otherOptions?: FetcherOptions) => Promise<GetUsersResult>;
|
|
31
|
+
getUserById: (userId: GetUserByIdParams["userId"], otherOptions?: FetcherOptions) => Promise<GetUserByIdResult>;
|
|
32
|
+
getUserByAccount: (providerAccountId: GetUserByAccountParams["providerAccountId"], provider: GetUserByAccountParams["provider"], otherOptions?: FetcherOptions) => Promise<any>;
|
|
33
|
+
getUserByEmail: (email: GetUserByEmailParams["email"], otherOptions?: FetcherOptions) => Promise<GetUserByEmailResult>;
|
|
34
|
+
updateUser: (user: UpdateUserBody, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
35
|
+
deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
|
|
36
|
+
uploadAvatar: (file: File, otherOptions?: FetcherOptions) => Promise<UploadUserAvatarResult>;
|
|
37
|
+
getVerifyEmailStatusURL: (userId: string | UserAPI["id"]) => string;
|
|
38
|
+
}>;
|
|
21
39
|
//#endregion
|
|
22
|
-
export { getUserAPI };
|
|
40
|
+
export { getUserAPI, userEndpoint };
|
|
23
41
|
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.d.ts","names":[],"sources":["../../../src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,CAAA,sBAAA;6CAiCoB,OAAA;AAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
|
+
import { FetcherOptions, fetcher, fetcherOptions } from "./fetcher.js";
|
|
2
|
+
import { AuthManager, AuthManagerOptions, BindSectionOptions, createAuthManager } from "./cms/createAuthManager.js";
|
|
3
|
+
import { CMSEndpoint, IntlayerCMS, IntlayerCMSOptions, createEndpoint, createIntlayerCMS } from "./cms/createIntlayerCMS.js";
|
|
1
4
|
import { fetchDistantDictionaries } from "./distantDictionary/fetchDistantDictionaries.js";
|
|
2
5
|
import { fetchDistantDictionary } from "./distantDictionary/fetchDistantDictionary.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI } from "./getIntlayerAPI/gitlab.js";
|
|
13
|
-
import { getNewsletterAPI } from "./getIntlayerAPI/newsletter.js";
|
|
6
|
+
import { assetEndpoint, getAssetAPI } from "./getIntlayerAPI/asset.js";
|
|
7
|
+
import { AuditEvent, DiscoverUrlsParams, DiscoverUrlsResult, GetRecursiveAuditStatusParams, GetRecursiveAuditStatusResult, RecursiveAuditJobParams, ScanUrlBody, StartRecursiveAuditBody, StartRecursiveAuditResult, auditEndpoint, getAuditAPI } from "./getIntlayerAPI/audit.js";
|
|
8
|
+
import { BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, bitbucketEndpoint, getBitbucketAPI } from "./getIntlayerAPI/bitbucket.js";
|
|
9
|
+
import { dictionaryEndpoint, getDictionaryAPI } from "./getIntlayerAPI/dictionary.js";
|
|
10
|
+
import { editorEndpoint, getEditorAPI } from "./getIntlayerAPI/editor.js";
|
|
11
|
+
import { environmentEndpoint, getEnvironmentAPI } from "./getIntlayerAPI/environment.js";
|
|
12
|
+
import { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubGetTokenResult, GitHubListReposResult, GitHubRepository, getGithubAPI, githubEndpoint } from "./getIntlayerAPI/github.js";
|
|
13
|
+
import { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI, gitlabEndpoint } from "./getIntlayerAPI/gitlab.js";
|
|
14
|
+
import { getNewsletterAPI, newsletterEndpoint } from "./getIntlayerAPI/newsletter.js";
|
|
14
15
|
import { getOAuthAPI } from "./getIntlayerAPI/oAuth.js";
|
|
15
|
-
import { getOrganizationAPI } from "./getIntlayerAPI/organization.js";
|
|
16
|
-
import { getProjectAPI } from "./getIntlayerAPI/project.js";
|
|
17
|
-
import { getReviewerAPI } from "./getIntlayerAPI/reviewer.js";
|
|
18
|
-
import { getSearchAPI } from "./getIntlayerAPI/search.js";
|
|
19
|
-
import { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI } from "./getIntlayerAPI/showcaseProject.js";
|
|
20
|
-
import { getStripeAPI } from "./getIntlayerAPI/stripe.js";
|
|
21
|
-
import { getTagAPI } from "./getIntlayerAPI/tag.js";
|
|
22
|
-
import { TranslateDictionariesBody, TranslateDictionariesResult, getTranslateAPI } from "./getIntlayerAPI/translate.js";
|
|
23
|
-
import { getUserAPI } from "./getIntlayerAPI/user.js";
|
|
16
|
+
import { getOrganizationAPI, organizationEndpoint } from "./getIntlayerAPI/organization.js";
|
|
17
|
+
import { getProjectAPI, projectEndpoint } from "./getIntlayerAPI/project.js";
|
|
18
|
+
import { getReviewerAPI, reviewerEndpoint } from "./getIntlayerAPI/reviewer.js";
|
|
19
|
+
import { getSearchAPI, searchEndpoint } from "./getIntlayerAPI/search.js";
|
|
20
|
+
import { OtherShowcaseProjectsQuery, ShowcaseProjectsQuery, getShowcaseProjectAPI, showcaseProjectEndpoint } from "./getIntlayerAPI/showcaseProject.js";
|
|
21
|
+
import { getStripeAPI, stripeEndpoint } from "./getIntlayerAPI/stripe.js";
|
|
22
|
+
import { getTagAPI, tagEndpoint } from "./getIntlayerAPI/tag.js";
|
|
23
|
+
import { TranslateDictionariesBody, TranslateDictionariesResult, getTranslateAPI, translateEndpoint } from "./getIntlayerAPI/translate.js";
|
|
24
|
+
import { getUserAPI, userEndpoint } from "./getIntlayerAPI/user.js";
|
|
24
25
|
import { IntlayerAPI, getIntlayerAPI } from "./getIntlayerAPI/index.js";
|
|
25
26
|
import { IntlayerAPIProxy, getIntlayerAPIProxy } from "./proxy.js";
|
|
26
27
|
import { AIOptions } from "./types.js";
|
|
27
|
-
|
|
28
|
+
import { AskDocQuestionBody, AskDocQuestionResult, AutocompleteBody, ChatBody, ChatResult, ClientAction, aiEndpoint, getAiAPI } from "./getIntlayerAPI/ai.js";
|
|
29
|
+
export { AIOptions, AskDocQuestionBody, AskDocQuestionResult, AuditEvent, AuthManager, AuthManagerOptions, AutocompleteBody, BindSectionOptions, BitbucketAuthCallbackBody, BitbucketAuthCallbackResult, BitbucketCheckConfigBody, BitbucketCheckConfigResult, BitbucketGetAuthUrlResult, BitbucketGetConfigFileBody, BitbucketGetConfigFileResult, BitbucketListReposResult, BitbucketRepository, CMSEndpoint, ChatBody, ChatResult, ClientAction, DiscoverUrlsParams, DiscoverUrlsResult, FetcherOptions, GetRecursiveAuditStatusParams, GetRecursiveAuditStatusResult, GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubGetTokenResult, GitHubListReposResult, GitHubRepository, GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, IntlayerAPI, IntlayerAPIProxy, IntlayerCMS, IntlayerCMSOptions, OtherShowcaseProjectsQuery, RecursiveAuditJobParams, ScanUrlBody, ShowcaseProjectsQuery, StartRecursiveAuditBody, StartRecursiveAuditResult, TranslateDictionariesBody, TranslateDictionariesResult, aiEndpoint, assetEndpoint, auditEndpoint, bitbucketEndpoint, createAuthManager, createEndpoint, createIntlayerCMS, dictionaryEndpoint, editorEndpoint, environmentEndpoint, fetchDistantDictionaries, fetchDistantDictionary, fetcher, fetcherOptions, getAiAPI, getAssetAPI, getAuditAPI, getBitbucketAPI, getDictionaryAPI, getEditorAPI, getEnvironmentAPI, getGithubAPI, getGitlabAPI, getIntlayerAPI, getIntlayerAPIProxy, getNewsletterAPI, getOAuthAPI, getOrganizationAPI, getProjectAPI, getReviewerAPI, getSearchAPI, getShowcaseProjectAPI, getStripeAPI, getTagAPI, getTranslateAPI, getUserAPI, githubEndpoint, gitlabEndpoint, newsletterEndpoint, organizationEndpoint, projectEndpoint, reviewerEndpoint, searchEndpoint, showcaseProjectEndpoint, stripeEndpoint, tagEndpoint, translateEndpoint, userEndpoint };
|