@intlayer/api 9.0.0-canary.2 → 9.0.0-canary.21

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.
Files changed (190) hide show
  1. package/dist/cjs/cms/createAuthManager.cjs +116 -0
  2. package/dist/cjs/cms/createAuthManager.cjs.map +1 -0
  3. package/dist/cjs/cms/createIntlayerCMS.cjs +64 -0
  4. package/dist/cjs/cms/createIntlayerCMS.cjs.map +1 -0
  5. package/dist/cjs/cms/index.cjs +7 -0
  6. package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs +3 -2
  7. package/dist/cjs/distantDictionary/fetchDistantDictionaries.cjs.map +1 -1
  8. package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs +3 -2
  9. package/dist/cjs/distantDictionary/fetchDistantDictionary.cjs.map +1 -1
  10. package/dist/cjs/fetcher.cjs +2 -1
  11. package/dist/cjs/fetcher.cjs.map +1 -1
  12. package/dist/cjs/getIntlayerAPI/ai.cjs +9 -0
  13. package/dist/cjs/getIntlayerAPI/ai.cjs.map +1 -1
  14. package/dist/cjs/getIntlayerAPI/analytics.cjs +64 -0
  15. package/dist/cjs/getIntlayerAPI/analytics.cjs.map +1 -0
  16. package/dist/cjs/getIntlayerAPI/asset.cjs +9 -0
  17. package/dist/cjs/getIntlayerAPI/asset.cjs.map +1 -1
  18. package/dist/cjs/getIntlayerAPI/audit.cjs +11 -1
  19. package/dist/cjs/getIntlayerAPI/audit.cjs.map +1 -1
  20. package/dist/cjs/getIntlayerAPI/bitbucket.cjs +9 -0
  21. package/dist/cjs/getIntlayerAPI/bitbucket.cjs.map +1 -1
  22. package/dist/cjs/getIntlayerAPI/dictionary.cjs +9 -0
  23. package/dist/cjs/getIntlayerAPI/dictionary.cjs.map +1 -1
  24. package/dist/cjs/getIntlayerAPI/editor.cjs +9 -0
  25. package/dist/cjs/getIntlayerAPI/editor.cjs.map +1 -1
  26. package/dist/cjs/getIntlayerAPI/environment.cjs +9 -0
  27. package/dist/cjs/getIntlayerAPI/environment.cjs.map +1 -1
  28. package/dist/cjs/getIntlayerAPI/github.cjs +9 -0
  29. package/dist/cjs/getIntlayerAPI/github.cjs.map +1 -1
  30. package/dist/cjs/getIntlayerAPI/gitlab.cjs +9 -0
  31. package/dist/cjs/getIntlayerAPI/gitlab.cjs.map +1 -1
  32. package/dist/cjs/getIntlayerAPI/index.cjs +6 -2
  33. package/dist/cjs/getIntlayerAPI/index.cjs.map +1 -1
  34. package/dist/cjs/getIntlayerAPI/newsletter.cjs +9 -0
  35. package/dist/cjs/getIntlayerAPI/newsletter.cjs.map +1 -1
  36. package/dist/cjs/getIntlayerAPI/oAuth.cjs.map +1 -1
  37. package/dist/cjs/getIntlayerAPI/organization.cjs +19 -0
  38. package/dist/cjs/getIntlayerAPI/organization.cjs.map +1 -1
  39. package/dist/cjs/getIntlayerAPI/project.cjs +9 -0
  40. package/dist/cjs/getIntlayerAPI/project.cjs.map +1 -1
  41. package/dist/cjs/getIntlayerAPI/reviewer.cjs +9 -0
  42. package/dist/cjs/getIntlayerAPI/reviewer.cjs.map +1 -1
  43. package/dist/cjs/getIntlayerAPI/search.cjs +9 -0
  44. package/dist/cjs/getIntlayerAPI/search.cjs.map +1 -1
  45. package/dist/cjs/getIntlayerAPI/showcaseProject.cjs +9 -0
  46. package/dist/cjs/getIntlayerAPI/showcaseProject.cjs.map +1 -1
  47. package/dist/cjs/getIntlayerAPI/status.cjs +48 -0
  48. package/dist/cjs/getIntlayerAPI/status.cjs.map +1 -0
  49. package/dist/cjs/getIntlayerAPI/stripe.cjs +13 -2
  50. package/dist/cjs/getIntlayerAPI/stripe.cjs.map +1 -1
  51. package/dist/cjs/getIntlayerAPI/tag.cjs +9 -0
  52. package/dist/cjs/getIntlayerAPI/tag.cjs.map +1 -1
  53. package/dist/cjs/getIntlayerAPI/translate.cjs +9 -0
  54. package/dist/cjs/getIntlayerAPI/translate.cjs.map +1 -1
  55. package/dist/cjs/getIntlayerAPI/user.cjs +9 -0
  56. package/dist/cjs/getIntlayerAPI/user.cjs.map +1 -1
  57. package/dist/cjs/index.cjs +33 -3
  58. package/dist/cjs/proxy.cjs +82 -97
  59. package/dist/cjs/proxy.cjs.map +1 -1
  60. package/dist/esm/cms/createAuthManager.mjs +115 -0
  61. package/dist/esm/cms/createAuthManager.mjs.map +1 -0
  62. package/dist/esm/cms/createIntlayerCMS.mjs +62 -0
  63. package/dist/esm/cms/createIntlayerCMS.mjs.map +1 -0
  64. package/dist/esm/cms/index.mjs +4 -0
  65. package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs +3 -2
  66. package/dist/esm/distantDictionary/fetchDistantDictionaries.mjs.map +1 -1
  67. package/dist/esm/distantDictionary/fetchDistantDictionary.mjs +3 -2
  68. package/dist/esm/distantDictionary/fetchDistantDictionary.mjs.map +1 -1
  69. package/dist/esm/fetcher.mjs +2 -1
  70. package/dist/esm/fetcher.mjs.map +1 -1
  71. package/dist/esm/getIntlayerAPI/ai.mjs +9 -1
  72. package/dist/esm/getIntlayerAPI/ai.mjs.map +1 -1
  73. package/dist/esm/getIntlayerAPI/analytics.mjs +62 -0
  74. package/dist/esm/getIntlayerAPI/analytics.mjs.map +1 -0
  75. package/dist/esm/getIntlayerAPI/asset.mjs +9 -1
  76. package/dist/esm/getIntlayerAPI/asset.mjs.map +1 -1
  77. package/dist/esm/getIntlayerAPI/audit.mjs +11 -2
  78. package/dist/esm/getIntlayerAPI/audit.mjs.map +1 -1
  79. package/dist/esm/getIntlayerAPI/bitbucket.mjs +9 -1
  80. package/dist/esm/getIntlayerAPI/bitbucket.mjs.map +1 -1
  81. package/dist/esm/getIntlayerAPI/dictionary.mjs +9 -1
  82. package/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -1
  83. package/dist/esm/getIntlayerAPI/editor.mjs +9 -1
  84. package/dist/esm/getIntlayerAPI/editor.mjs.map +1 -1
  85. package/dist/esm/getIntlayerAPI/environment.mjs +9 -1
  86. package/dist/esm/getIntlayerAPI/environment.mjs.map +1 -1
  87. package/dist/esm/getIntlayerAPI/github.mjs +9 -1
  88. package/dist/esm/getIntlayerAPI/github.mjs.map +1 -1
  89. package/dist/esm/getIntlayerAPI/gitlab.mjs +9 -1
  90. package/dist/esm/getIntlayerAPI/gitlab.mjs.map +1 -1
  91. package/dist/esm/getIntlayerAPI/index.mjs +6 -2
  92. package/dist/esm/getIntlayerAPI/index.mjs.map +1 -1
  93. package/dist/esm/getIntlayerAPI/newsletter.mjs +9 -1
  94. package/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -1
  95. package/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -1
  96. package/dist/esm/getIntlayerAPI/organization.mjs +19 -1
  97. package/dist/esm/getIntlayerAPI/organization.mjs.map +1 -1
  98. package/dist/esm/getIntlayerAPI/project.mjs +9 -1
  99. package/dist/esm/getIntlayerAPI/project.mjs.map +1 -1
  100. package/dist/esm/getIntlayerAPI/reviewer.mjs +9 -1
  101. package/dist/esm/getIntlayerAPI/reviewer.mjs.map +1 -1
  102. package/dist/esm/getIntlayerAPI/search.mjs +9 -1
  103. package/dist/esm/getIntlayerAPI/search.mjs.map +1 -1
  104. package/dist/esm/getIntlayerAPI/showcaseProject.mjs +9 -1
  105. package/dist/esm/getIntlayerAPI/showcaseProject.mjs.map +1 -1
  106. package/dist/esm/getIntlayerAPI/status.mjs +46 -0
  107. package/dist/esm/getIntlayerAPI/status.mjs.map +1 -0
  108. package/dist/esm/getIntlayerAPI/stripe.mjs +13 -3
  109. package/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -1
  110. package/dist/esm/getIntlayerAPI/tag.mjs +9 -1
  111. package/dist/esm/getIntlayerAPI/tag.mjs.map +1 -1
  112. package/dist/esm/getIntlayerAPI/translate.mjs +9 -1
  113. package/dist/esm/getIntlayerAPI/translate.mjs.map +1 -1
  114. package/dist/esm/getIntlayerAPI/user.mjs +9 -1
  115. package/dist/esm/getIntlayerAPI/user.mjs.map +1 -1
  116. package/dist/esm/index.mjs +25 -21
  117. package/dist/esm/proxy.mjs +82 -97
  118. package/dist/esm/proxy.mjs.map +1 -1
  119. package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts +9 -0
  120. package/dist/types/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +1 -0
  121. package/dist/types/cms/createAuthManager.d.ts +102 -0
  122. package/dist/types/cms/createAuthManager.d.ts.map +1 -0
  123. package/dist/types/cms/createIntlayerCMS.d.ts +79 -0
  124. package/dist/types/cms/createIntlayerCMS.d.ts.map +1 -0
  125. package/dist/types/cms/index.d.ts +3 -0
  126. package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +1 -2
  127. package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
  128. package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +1 -2
  129. package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
  130. package/dist/types/fetcher.d.ts.map +1 -1
  131. package/dist/types/getIntlayerAPI/ai.d.ts +23 -3
  132. package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
  133. package/dist/types/getIntlayerAPI/analytics.d.ts +29 -0
  134. package/dist/types/getIntlayerAPI/analytics.d.ts.map +1 -0
  135. package/dist/types/getIntlayerAPI/asset.d.ts +20 -2
  136. package/dist/types/getIntlayerAPI/asset.d.ts.map +1 -1
  137. package/dist/types/getIntlayerAPI/audit.d.ts +25 -3
  138. package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
  139. package/dist/types/getIntlayerAPI/bitbucket.d.ts +16 -2
  140. package/dist/types/getIntlayerAPI/bitbucket.d.ts.map +1 -1
  141. package/dist/types/getIntlayerAPI/dictionary.d.ts +23 -6
  142. package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
  143. package/dist/types/getIntlayerAPI/editor.d.ts +17 -3
  144. package/dist/types/getIntlayerAPI/editor.d.ts.map +1 -1
  145. package/dist/types/getIntlayerAPI/environment.d.ts +18 -3
  146. package/dist/types/getIntlayerAPI/environment.d.ts.map +1 -1
  147. package/dist/types/getIntlayerAPI/github.d.ts +17 -2
  148. package/dist/types/getIntlayerAPI/github.d.ts.map +1 -1
  149. package/dist/types/getIntlayerAPI/gitlab.d.ts +16 -2
  150. package/dist/types/getIntlayerAPI/gitlab.d.ts.map +1 -1
  151. package/dist/types/getIntlayerAPI/index.d.ts +6 -3
  152. package/dist/types/getIntlayerAPI/index.d.ts.map +1 -1
  153. package/dist/types/getIntlayerAPI/newsletter.d.ts +15 -3
  154. package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
  155. package/dist/types/getIntlayerAPI/oAuth.d.ts +1 -2
  156. package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
  157. package/dist/types/getIntlayerAPI/organization.d.ts +27 -5
  158. package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
  159. package/dist/types/getIntlayerAPI/project.d.ts +34 -7
  160. package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
  161. package/dist/types/getIntlayerAPI/reviewer.d.ts +49 -5
  162. package/dist/types/getIntlayerAPI/reviewer.d.ts.map +1 -1
  163. package/dist/types/getIntlayerAPI/search.d.ts +13 -3
  164. package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
  165. package/dist/types/getIntlayerAPI/showcaseProject.d.ts +27 -6
  166. package/dist/types/getIntlayerAPI/showcaseProject.d.ts.map +1 -1
  167. package/dist/types/getIntlayerAPI/status.d.ts +35 -0
  168. package/dist/types/getIntlayerAPI/status.d.ts.map +1 -0
  169. package/dist/types/getIntlayerAPI/stripe.d.ts +61 -25
  170. package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
  171. package/dist/types/getIntlayerAPI/tag.d.ts +18 -5
  172. package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
  173. package/dist/types/getIntlayerAPI/translate.d.ts +38 -3
  174. package/dist/types/getIntlayerAPI/translate.d.ts.map +1 -1
  175. package/dist/types/getIntlayerAPI/user.d.ts +25 -7
  176. package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
  177. package/dist/types/index.d.ts +27 -21
  178. package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts +9 -0
  179. package/dist/types/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +1 -0
  180. package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +19 -0
  181. package/dist/types/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +1 -0
  182. package/dist/types/intlayer-editor/server/dist/export.d.ts +3 -0
  183. package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts +408 -0
  184. package/dist/types/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +1 -0
  185. package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts +19 -0
  186. package/dist/types/intlayer-editor/server/dist/utils/responseData.d.ts.map +1 -0
  187. package/dist/types/proxy.d.ts +12 -11
  188. package/dist/types/proxy.d.ts.map +1 -1
  189. package/dist/types/types.d.ts +1 -1
  190. package/package.json +31 -7
@@ -1,13 +1,27 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
+ import { GetConfigurationResult } from "../intlayer-editor/server/dist/controllers/configuration.controller.js";
4
+ import { GetEditorDictionariesResult, WriteContentDeclarationBody, WriteContentDeclarationResult } from "../intlayer-editor/server/dist/controllers/dictionary.controller.js";
5
+ import "../intlayer-editor/server/dist/export.js";
6
+ import "../index.js";
2
7
  import { IntlayerConfig } from "@intlayer/types/config";
3
- import { GetConfigurationResult, GetEditorDictionariesResult, WriteContentDeclarationBody } from "intlayer-editor";
4
-
5
8
  //#region src/getIntlayerAPI/editor.d.ts
6
9
  declare const getEditorAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
7
10
  getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
8
11
  getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>;
9
12
  writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>;
10
13
  };
14
+ /**
15
+ * Authenticated `editor` endpoint bound to an Intlayer CMS authenticator.
16
+ *
17
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
18
+ * the build-time configuration (`@intlayer/config/built`).
19
+ */
20
+ declare const editorEndpoint: CMSEndpoint<{
21
+ getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
22
+ getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>;
23
+ writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>;
24
+ }>;
11
25
  //#endregion
12
- export { getEditorAPI };
26
+ export { editorEndpoint, getEditorAPI };
13
27
  //# sourceMappingURL=editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/editor.ts"],"mappings":";;;;;cAUa,YAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;mCAyBD,cAAA,KACb,OAAA,CAAQ,2BAAA;oCAhBK,cAAA,KACb,OAAA,CAAQ,sBAAA;0BA8BH,2BAAA,EAA2B,YAAA,GACnB,cAAA,KAAc,OAAA,CAAA,6BAAA;AAAA"}
1
+ {"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/editor.ts"],"mappings":";;;;;;;;cAWa,eAAY,iBACP,gBAAc,iBACb;EAyBD,kBAAA,eAAA,mBACb,QAAQ;EAhBK,mBAAA,eAAA,mBACb,QAAQ;EA8BH,kBAAA,MAAA,6BAA2B,eACnB,mBAAc,QAAA;;;;;;;;cAyBnB,gBAzBmB;EAjBd,kBAAA,eAAA,mBACb,QAAQ;EAhBK,mBAAA,eAAA,mBACb,QAAQ;EA8BH,kBAAA,MAAA,6BAA2B,eACnB,mBAAc,QAAA"}
@@ -1,7 +1,8 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { AddEnvironmentBody, MigrateEnvironmentBody, UpdateEnvironmentBody } from "@intlayer/backend";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
+ import "../index.js";
3
4
  import { IntlayerConfig } from "@intlayer/types/config";
4
-
5
+ import { AddEnvironmentBody, MigrateEnvironmentBody, UpdateEnvironmentBody } from "@intlayer/backend";
5
6
  //#region src/getIntlayerAPI/environment.d.ts
6
7
  declare const getEnvironmentAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
7
8
  addEnvironment: (body: AddEnvironmentBody, otherOptions?: FetcherOptions) => Promise<AddEnvironmentResult>;
@@ -11,6 +12,20 @@ declare const getEnvironmentAPI: (authAPIOptions?: FetcherOptions, intlayerConfi
11
12
  resetToProductionEnvironment: (otherOptions?: FetcherOptions) => Promise<ResetToProductionEnvironmentResult>;
12
13
  migrateEnvironment: (body: MigrateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<MigrateEnvironmentResult>;
13
14
  };
15
+ /**
16
+ * Authenticated `environment` endpoint bound to an Intlayer CMS authenticator.
17
+ *
18
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
19
+ * the build-time configuration (`@intlayer/config/built`).
20
+ */
21
+ declare const environmentEndpoint: CMSEndpoint<{
22
+ addEnvironment: (body: AddEnvironmentBody, otherOptions?: FetcherOptions) => Promise<AddEnvironmentResult>;
23
+ updateEnvironment: (environmentId: string, body: UpdateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<UpdateEnvironmentResult>;
24
+ deleteEnvironment: (environmentId: string, otherOptions?: FetcherOptions) => Promise<DeleteEnvironmentResult>;
25
+ selectEnvironment: (environmentId: string, otherOptions?: FetcherOptions) => Promise<SelectEnvironmentResult>;
26
+ resetToProductionEnvironment: (otherOptions?: FetcherOptions) => Promise<ResetToProductionEnvironmentResult>;
27
+ migrateEnvironment: (body: MigrateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<MigrateEnvironmentResult>;
28
+ }>;
14
29
  //#endregion
15
- export { getEnvironmentAPI };
30
+ export { environmentEndpoint, getEnvironmentAPI };
16
31
  //# sourceMappingURL=environment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/environment.ts"],"mappings":";;;;;cAea,iBAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;yBAMT,kBAAA,EAAkB,YAAA,GACV,cAAA,KAAc,OAAA,CAAA,oBAAA;6CAUP,IAAA,EACf,qBAAA,EAAqB,YAAA,GACb,cAAA,KAAc,OAAA,CAAA,uBAAA;6CAUP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,uBAAA;6CAUP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,uBAAA;gDAUd,cAAA,KAAc,OAAA,CAAA,kCAAA;6BAUtB,sBAAA,EAAsB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,wBAAA;AAAA"}
1
+ {"version":3,"file":"environment.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/environment.ts"],"mappings":";;;;;;cAgBa,oBAAiB,iBACZ,gBAAc,iBACb;EAMT,iBAAA,MAAA,oBAAkB,eACV,mBAAc,QAAA;EAUb,oBAAA,uBAAM,MACf,uBAAqB,eACb,mBAAc,QAAA;EAUb,oBAAA,uBAAM,eACP,mBAAc,QAAA;EAUb,oBAAA,uBAAM,eACP,mBAAc,QAAA;EAUd,+BAAA,eAAA,mBAAc,QAAA;EAUtB,qBAAA,MAAA,wBAAsB,eACd,mBAAc,QAAA;;;;;;;;cAyBnB,qBAzBmB;EAxDtB,iBAAA,MAAA,oBAAkB,eACV,mBAAc,QAAA;EAUb,oBAAA,uBAAM,MACf,uBAAqB,eACb,mBAAc,QAAA;EAUb,oBAAA,uBAAM,eACP,mBAAc,QAAA;EAUb,oBAAA,uBAAM,eACP,mBAAc,QAAA;EAUd,+BAAA,eAAA,mBAAc,QAAA;EAUtB,qBAAA,MAAA,wBAAsB,eACd,mBAAc,QAAA"}
@@ -1,6 +1,7 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
+ import "../index.js";
2
4
  import { IntlayerConfig } from "@intlayer/types/config";
3
-
4
5
  //#region src/getIntlayerAPI/github.d.ts
5
6
  type GitHubRepository = {
6
7
  id: number;
@@ -66,6 +67,20 @@ declare const getGithubAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: I
66
67
  getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<GitHubGetConfigFileResult>;
67
68
  getToken: (otherOptions?: FetcherOptions) => Promise<GitHubGetTokenResult>;
68
69
  };
70
+ /**
71
+ * Authenticated `github` endpoint bound to an Intlayer CMS authenticator.
72
+ *
73
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
74
+ * the build-time configuration (`@intlayer/config/built`).
75
+ */
76
+ declare const githubEndpoint: CMSEndpoint<{
77
+ getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<GitHubGetAuthUrlResult>;
78
+ authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<GitHubAuthCallbackResult>;
79
+ getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<GitHubListReposResult>;
80
+ checkIntlayerConfig: (token: string | null | undefined, owner: string, repository: string, branch?: string, otherOptions?: FetcherOptions) => Promise<GitHubCheckConfigResult>;
81
+ getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<GitHubGetConfigFileResult>;
82
+ getToken: (otherOptions?: FetcherOptions) => Promise<GitHubGetTokenResult>;
83
+ }>;
69
84
  //#endregion
70
- export { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubGetTokenResult, GitHubListReposResult, GitHubRepository, getGithubAPI };
85
+ export { GitHubAuthCallbackBody, GitHubAuthCallbackResult, GitHubCheckConfigBody, GitHubCheckConfigResult, GitHubGetAuthUrlResult, GitHubGetConfigFileBody, GitHubGetConfigFileResult, GitHubGetTokenResult, GitHubListReposResult, GitHubRepository, getGithubAPI, githubEndpoint };
71
86
  //# sourceMappingURL=github.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"github.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/github.ts"],"mappings":";;;;KAIY,gBAAA;EACV,EAAA;EACA,IAAA;EACA,SAAA;EACA,KAAA;IACE,KAAA;IACA,EAAA;EAAA;EAEF,QAAA;EACA,cAAA;EACA,OAAA;AAAA;AAAA,KAGU,sBAAA;EACV,IAAA;AAAA;AAAA,KAGU,wBAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,KAIQ,qBAAA;EACV,IAAA,EAAM,gBAAA;AAAA;AAAA,KAGI,qBAAA;EACV,KAAA;EACA,KAAA;EACA,UAAA;EACA,MAAA;AAAA;AAAA,KAGU,uBAAA;EACV,IAAA;IACE,SAAA;EAAA;AAAA;AAAA,KAIQ,uBAAA;EACV,KAAA;EACA,KAAA;EACA,UAAA;EACA,MAAA;EACA,IAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,oBAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,cAIS,YAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;oCAWI,YAAA,GACL,cAAA,KAAc,OAAA,CAAA,sBAAA;+BAgBhB,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,wBAAA;2CAiBP,YAAA,GACP,cAAA,KAAc,OAAA,CAAA,qBAAA;0DAmBI,KAAA,UACnB,UAAA,UACK,MAAA,WACJ,YAAA,GACA,cAAA,KAAc,OAAA,CAAA,uBAAA;oDAqBI,KAAA,UACnB,UAAA,UACK,MAAA,WACJ,IAAA,WACF,YAAA,GACE,cAAA,KAAc,OAAA,CAAA,yBAAA;4BAeQ,cAAA,KAAc,OAAA,CAAA,oBAAA;AAAA"}
1
+ {"version":3,"file":"github.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/github.ts"],"mappings":";;;;;KAKY;EACV;EACA;EACA;EACA;IACE;IACA;;EAEF;EACA;EACA;;KAGU;EACV;;KAGU;EACV;IACE;;;KAIQ;EACV,MAAM;;KAGI;EACV;EACA;EACA;EACA;;KAGU;EACV;IACE;;;KAIQ;EACV;EACA;EACA;EACA;EACA;;KAGU;EACV;IACE;;;KAIQ;EACV;IACE;;;KAIQ;EACV;IACE;;;cAIS,eAAY,iBACP,gBAAc,iBACb;EAWF,aAAA,qBAAM,eACL,mBAAc,QAAA;EAgBtB,eAAA,cAAM,eACE,mBAAc,QAAA;EAiBpB,kBAAA,uBAAa,eACP,mBAAc,QAAA;EAmBrB,sBAAA,kCAAyB,eACnB,oBACK,iBACJ,eACA,mBAAc,QAAA;EAqBrB,gBAAA,kCAAyB,eACnB,oBACK,iBACJ,eACF,eACE,mBAAc,QAAA;EAeQ,WAAA,eAAA,mBAAc,QAAA;;;;;;;;cAuBzC,gBAvByC;EApGrC,aAAA,qBAAM,eACL,mBAAc,QAAA;EAgBtB,eAAA,cAAM,eACE,mBAAc,QAAA;EAiBpB,kBAAA,uBAAa,eACP,mBAAc,QAAA;EAmBrB,sBAAA,kCAAyB,eACnB,oBACK,iBACJ,eACA,mBAAc,QAAA;EAqBrB,gBAAA,kCAAyB,eACnB,oBACK,iBACJ,eACF,eACE,mBAAc,QAAA;EAeQ,WAAA,eAAA,mBAAc,QAAA"}
@@ -1,6 +1,7 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
+ import "../index.js";
2
4
  import { IntlayerConfig } from "@intlayer/types/config";
3
-
4
5
  //#region src/getIntlayerAPI/gitlab.d.ts
5
6
  type GitLabProject = {
6
7
  id: number;
@@ -65,6 +66,19 @@ declare const getGitlabAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: I
65
66
  checkIntlayerConfig: (token: string | null | undefined, projectId: number, branch?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabCheckConfigResult>;
66
67
  getConfigFile: (token: string | null | undefined, projectId: number, branch?: string, path?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetConfigFileResult>;
67
68
  };
69
+ /**
70
+ * Authenticated `gitlab` endpoint bound to an Intlayer CMS authenticator.
71
+ *
72
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
73
+ * the build-time configuration (`@intlayer/config/built`).
74
+ */
75
+ declare const gitlabEndpoint: CMSEndpoint<{
76
+ getAuthUrl: (redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetAuthUrlResult>;
77
+ authenticate: (code: string, redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabAuthCallbackResult>;
78
+ getProjects: (token?: string | null, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabListProjectsResult>;
79
+ checkIntlayerConfig: (token: string | null | undefined, projectId: number, branch?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabCheckConfigResult>;
80
+ getConfigFile: (token: string | null | undefined, projectId: number, branch?: string, path?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<GitLabGetConfigFileResult>;
81
+ }>;
68
82
  //#endregion
69
- export { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI };
83
+ export { GitLabAuthCallbackBody, GitLabAuthCallbackResult, GitLabCheckConfigBody, GitLabCheckConfigResult, GitLabGetAuthUrlResult, GitLabGetConfigFileBody, GitLabGetConfigFileResult, GitLabListProjectsResult, GitLabProject, getGitlabAPI, gitlabEndpoint };
70
84
  //# sourceMappingURL=gitlab.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gitlab.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/gitlab.ts"],"mappings":";;;;KAIY,aAAA;EACV,EAAA;EACA,IAAA;EACA,mBAAA;EACA,OAAA;EACA,cAAA;EACA,UAAA;EACA,gBAAA;EACA,SAAA;IACE,EAAA;IACA,IAAA;IACA,IAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;EACA,WAAA;EACA,WAAA;AAAA;AAAA,KAGU,wBAAA;EACV,IAAA;IACE,KAAA;EAAA;AAAA;AAAA,KAIQ,wBAAA;EACV,IAAA,EAAM,aAAA;AAAA;AAAA,KAGI,qBAAA;EACV,KAAA;EACA,SAAA;EACA,MAAA;EACA,WAAA;AAAA;AAAA,KAGU,uBAAA;EACV,IAAA;IACE,SAAA;IACA,WAAA;EAAA;AAAA;AAAA,KAIQ,uBAAA;EACV,KAAA;EACA,SAAA;EACA,MAAA;EACA,IAAA;EACA,WAAA;AAAA;AAAA,KAGU,yBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,KAIQ,sBAAA;EACV,IAAA;IACE,OAAA;EAAA;AAAA;AAAA,cAIS,YAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;oCAYI,WAAA,WACC,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,sBAAA;+BAkBhB,WAAA,UACO,WAAA,WACC,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,wBAAA;uCAkBP,WAAA,WACD,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,wBAAA;0DAsBI,SAAA,UACf,MAAA,WACH,WAAA,WACM,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,uBAAA;oDA0BI,SAAA,UACf,MAAA,WACH,IAAA,WACF,WAAA,WACQ,YAAA,GACN,cAAA,KAAc,OAAA,CAAA,yBAAA;AAAA"}
1
+ {"version":3,"file":"gitlab.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/gitlab.ts"],"mappings":";;;;;KAKY;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;IACE;IACA;IACA;;;KAIQ;EACV;EACA;EACA;;KAGU;EACV;IACE;;;KAIQ;EACV,MAAM;;KAGI;EACV;EACA;EACA;EACA;;KAGU;EACV;IACE;IACA;;;KAIQ;EACV;EACA;EACA;EACA;EACA;;KAGU;EACV;IACE;;;KAIQ;EACV;IACE;;;cAIS,eAAY,iBACP,gBAAc,iBACb;EAYF,aAAA,qBAAM,sBACC,eACN,mBAAc,QAAA;EAkBtB,eAAA,cAAM,qBACO,sBACC,eACN,mBAAc,QAAA;EAkBpB,cAAA,uBAAa,sBACD,eACN,mBAAc,QAAA;EAsBrB,sBAAA,kCAAyB,mBACf,iBACH,sBACM,eACN,mBAAc,QAAA;EA0BrB,gBAAA,kCAAyB,mBACf,iBACH,eACF,sBACQ,eACN,mBAAc,QAAA;;;;;;;;cAiCnB,gBAjCmB;EApGf,aAAA,qBAAM,sBACC,eACN,mBAAc,QAAA;EAkBtB,eAAA,cAAM,qBACO,sBACC,eACN,mBAAc,QAAA;EAkBpB,cAAA,uBAAa,sBACD,eACN,mBAAc,QAAA;EAsBrB,sBAAA,kCAAyB,mBACf,iBACH,sBACM,eACN,mBAAc,QAAA;EA0BrB,gBAAA,kCAAyB,mBACf,iBACH,eACF,sBACQ,eACN,mBAAc,QAAA"}
@@ -1,5 +1,5 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { getAiAPI } from "./ai.js";
2
+ import { getAnalyticsAPI } from "./analytics.js";
3
3
  import { getAssetAPI } from "./asset.js";
4
4
  import { getAuditAPI } from "./audit.js";
5
5
  import { getBitbucketAPI } from "./bitbucket.js";
@@ -15,12 +15,13 @@ import { getProjectAPI } from "./project.js";
15
15
  import { getReviewerAPI } from "./reviewer.js";
16
16
  import { getSearchAPI } from "./search.js";
17
17
  import { getShowcaseProjectAPI } from "./showcaseProject.js";
18
+ import { getStatusAPI } from "./status.js";
18
19
  import { getStripeAPI } from "./stripe.js";
19
20
  import { getTagAPI } from "./tag.js";
20
21
  import { getTranslateAPI } from "./translate.js";
21
22
  import { getUserAPI } from "./user.js";
23
+ import { getAiAPI } from "./ai.js";
22
24
  import { IntlayerConfig } from "@intlayer/types/config";
23
-
24
25
  //#region src/getIntlayerAPI/index.d.ts
25
26
  interface IntlayerAPIReturn {
26
27
  asset: ReturnType<typeof getAssetAPI>;
@@ -32,6 +33,7 @@ interface IntlayerAPIReturn {
32
33
  dictionary: ReturnType<typeof getDictionaryAPI>;
33
34
  stripe: ReturnType<typeof getStripeAPI>;
34
35
  ai: ReturnType<typeof getAiAPI>;
36
+ analytics: ReturnType<typeof getAnalyticsAPI>;
35
37
  audit: ReturnType<typeof getAuditAPI>;
36
38
  tag: ReturnType<typeof getTagAPI>;
37
39
  search: ReturnType<typeof getSearchAPI>;
@@ -43,8 +45,9 @@ interface IntlayerAPIReturn {
43
45
  showcaseProject: ReturnType<typeof getShowcaseProjectAPI>;
44
46
  translate: ReturnType<typeof getTranslateAPI>;
45
47
  reviewer: ReturnType<typeof getReviewerAPI>;
48
+ status: ReturnType<typeof getStatusAPI>;
46
49
  }
47
- declare const getIntlayerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: Pick<IntlayerConfig, "editor">) => IntlayerAPIReturn;
50
+ declare const getIntlayerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: Pick<IntlayerConfig, 'editor'>) => IntlayerAPIReturn;
48
51
  type IntlayerAPI = ReturnType<typeof getIntlayerAPI>;
49
52
  //#endregion
50
53
  export { IntlayerAPI, getIntlayerAPI };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;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EACtB,WAAW,kBAAkB;EAC7B,OAAO,kBAAkB;EACzB,KAAK,kBAAkB;EACvB,QAAQ,kBAAkB;EAC1B,QAAQ,kBAAkB;EAC1B,YAAY,kBAAkB;EAC9B,QAAQ,kBAAkB;EAC1B,QAAQ,kBAAkB;EAC1B,WAAW,kBAAkB;EAC7B,iBAAiB,kBAAkB;EACnC,WAAW,kBAAkB;EAC7B,UAAU,kBAAkB;EAC5B,QAAQ,kBAAkB;;cAGf,iBAAc,iBACT,gBAAc,iBACb,KAAK,8BACrB;KA+BS,cAAc,kBAAkB"}
@@ -1,13 +1,25 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { NewsletterSubscriptionBody, NewsletterUnsubscriptionBody } from "@intlayer/backend";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
+ import "../index.js";
3
4
  import { IntlayerConfig } from "@intlayer/types/config";
4
-
5
+ import { NewsletterSubscriptionBody, NewsletterUnsubscriptionBody } from "@intlayer/backend";
5
6
  //#region src/getIntlayerAPI/newsletter.d.ts
6
7
  declare const getNewsletterAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
7
8
  subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
8
9
  unsubscribeFromNewsletter: (body: NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
9
10
  getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
10
11
  };
12
+ /**
13
+ * Authenticated `newsletter` endpoint bound to an Intlayer CMS authenticator.
14
+ *
15
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
16
+ * the build-time configuration (`@intlayer/config/built`).
17
+ */
18
+ declare const newsletterEndpoint: CMSEndpoint<{
19
+ subscribeToNewsletter: (body: NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
20
+ unsubscribeFromNewsletter: (body: NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
21
+ getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
22
+ }>;
11
23
  //#endregion
12
- export { getNewsletterAPI };
24
+ export { getNewsletterAPI, newsletterEndpoint };
13
25
  //# sourceMappingURL=newsletter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"newsletter.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/newsletter.ts"],"mappings":";;;;;cASa,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"}
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, "editor">) => {
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":";;;;cAUa,WAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,IAAA,CAAK,cAAA;wCAQ4B,cAAA,KAAc,OAAA,CAAA,oBAAA;yCAsBb,cAAA,KAAc,OAAA,CAAA,2BAAA;mCAYpB,cAAA,KAAc,OAAA,CAAA,qBAAA;AAAA"}
1
+ {"version":3,"file":"oAuth.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/oAuth.ts"],"mappings":";;;cAUa,cAAW,iBACN,gBAAc,iBACb,KAAK;EAQ4B,uBAAA,eAAA,mBAAc,QAAA;EAsBb,wBAAA,eAAA,mBAAc,QAAA;EAYpB,kBAAA,eAAA,mBAAc,QAAA"}
@@ -1,21 +1,43 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { AddOrganizationBody, AddOrganizationMemberBody, GetOrganizationParam, GetOrganizationsParams, SelectOrganizationParam, UpdateOrganizationBody, UpdateOrganizationMembersBody } from "@intlayer/backend";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
+ import "../index.js";
3
4
  import { IntlayerConfig } from "@intlayer/types/config";
4
-
5
+ import { AddOrganizationBody, AddOrganizationMemberBody, GetOrganizationParam, GetOrganizationsParams, SelectOrganizationParam, UpdateOrganizationBody, UpdateOrganizationMailerConfigBody, UpdateOrganizationMembersBody } from "@intlayer/backend";
5
6
  //#region src/getIntlayerAPI/organization.d.ts
6
7
  declare const getOrganizationAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
7
8
  getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
8
- getOrganization: (organizationId: GetOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
9
+ getOrganization: (organizationId: GetOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
9
10
  addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
10
11
  addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
11
12
  updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
13
+ updateOrganizationMailerConfig: (body: UpdateOrganizationMailerConfigBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMailerConfigResult>;
12
14
  updateOrganizationMembers: (body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
13
15
  updateOrganizationMembersById: (organizationId: string, body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
14
16
  deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
15
17
  deleteOrganizationByIdAdmin: (organizationId: string, otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
16
- selectOrganization: (organizationId: SelectOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
18
+ selectOrganization: (organizationId: SelectOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
17
19
  unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
18
20
  };
21
+ /**
22
+ * Authenticated `organization` endpoint bound to an Intlayer CMS authenticator.
23
+ *
24
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
25
+ * the build-time configuration (`@intlayer/config/built`).
26
+ */
27
+ declare const organizationEndpoint: CMSEndpoint<{
28
+ getOrganizations: (filters?: GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
29
+ getOrganization: (organizationId: GetOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
30
+ addOrganization: (organization: AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
31
+ addOrganizationMember: (body: AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
32
+ updateOrganization: (organization: UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
33
+ updateOrganizationMailerConfig: (body: UpdateOrganizationMailerConfigBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMailerConfigResult>;
34
+ updateOrganizationMembers: (body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
35
+ updateOrganizationMembersById: (organizationId: string, body: UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
36
+ deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
37
+ deleteOrganizationByIdAdmin: (organizationId: string, otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
38
+ selectOrganization: (organizationId: SelectOrganizationParam['organizationId'], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
39
+ unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
40
+ }>;
19
41
  //#endregion
20
- export { getOrganizationAPI };
42
+ export { getOrganizationAPI, organizationEndpoint };
21
43
  //# sourceMappingURL=organization.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organization.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/organization.ts"],"mappings":";;;;;cAsBa,kBAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;+BAWL,sBAAA,EAAsB,YAAA,G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,QAAA;EAcZ,qBAAA,gBAAA,2CAAyC,eAC3C,mBAAc,QAAA;EAeoB,uBAAA,eAAA,mBAAc,QAAA;;;;;;;;cAgCrD,sBAhCqD;EA7LpD,mBAAA,UAAA,wBAAsB,eAClB,mBAAc,QAAA;EAkBZ,kBAAA,gBAAA,wCAAsC,eACxC,mBAAc,QAAA;EAad,kBAAA,cAAA,qBAAmB,eACnB,mBAAc,QAAA;EA4FtB,wBAAA,MAAA,2BAAyB,eACjB,mBAAc,QAAA;EA5Ed,qBAAA,cAAA,wBAAsB,eACtB,mBAAc,QAAA;EAkBtB,iCAAA,MAAA,oCAAkC,eAC1B,mBAAc,QAAA;EAiBtB,4BAAA,MAAA,+BAA6B,eACrB,mBAAc,QAAA;EAkBZ,gCAAA,wBAAM,MAChB,+BAA6B,eACrB,mBAAc,QAAA;EAkCkB,qBAAA,eAAA,mBAAc,QAAA;EAe5C,8BAAA,wBAAM,eACR,mBAAc,QAAA;EAcZ,qBAAA,gBAAA,2CAAyC,eAC3C,mBAAc,QAAA;EAeoB,uBAAA,eAAA,mBAAc,QAAA"}
@@ -1,7 +1,8 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { AddNewAccessKeyBody, AddProjectBody, DeleteAccessKeyBody, GetProjectsParams, PushProjectConfigurationBody, RefreshAccessKeyBody, SelectProjectParam, TriggerWebhookBody, UpdateMemberAccessBody, UpdateProjectBody, UpdateProjectMembersBody } from "@intlayer/backend";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
+ import "../index.js";
3
4
  import { IntlayerConfig } from "@intlayer/types/config";
4
-
5
+ import { AddNewAccessKeyBody, AddProjectBody, DeleteAccessKeyBody, GetProjectsParams, PushProjectConfigurationBody, RefreshAccessKeyBody, SelectProjectParam, TriggerWebhookBody, UpdateMemberAccessBody, UpdateProjectBody, UpdateProjectMembersBody } from "@intlayer/backend";
5
6
  //#region src/getIntlayerAPI/project.d.ts
6
7
  declare const getProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
7
8
  getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
@@ -12,17 +13,43 @@ declare const getProjectAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?:
12
13
  pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
13
14
  deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
14
15
  deleteProjectByIdAdmin: (projectId: string, otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
15
- selectProject: (projectId: SelectProjectParam["projectId"], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
16
+ selectProject: (projectId: SelectProjectParam['projectId'], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
16
17
  unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
17
18
  addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
18
- deleteAccessKey: (clientId: DeleteAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
19
- refreshAccessKey: (clientId: RefreshAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
19
+ deleteAccessKey: (clientId: DeleteAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
20
+ refreshAccessKey: (clientId: RefreshAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
20
21
  triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>;
21
- triggerWebhook: (webhookIndex: TriggerWebhookBody["webhookIndex"], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
22
+ triggerWebhook: (webhookIndex: TriggerWebhookBody['webhookIndex'], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
22
23
  getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
23
24
  pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
24
25
  updateMemberAccess: (userId: string, body: UpdateMemberAccessBody, otherOptions?: FetcherOptions) => Promise<UpdateMemberAccessResult>;
25
26
  };
27
+ /**
28
+ * Authenticated `project` endpoint bound to an Intlayer CMS authenticator.
29
+ *
30
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
31
+ * the build-time configuration (`@intlayer/config/built`).
32
+ */
33
+ declare const projectEndpoint: CMSEndpoint<{
34
+ getProjects: (filters?: GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
35
+ getProjectInsights: (otherOptions?: FetcherOptions) => Promise<GetProjectInsightsResult>;
36
+ addProject: (project: AddProjectBody, otherOptions?: FetcherOptions) => Promise<AddProjectResult>;
37
+ updateProject: (project: UpdateProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectResult>;
38
+ updateProjectMembers: (body: UpdateProjectMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectMembersResult>;
39
+ pushProjectConfiguration: (projectConfiguration: PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
40
+ deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
41
+ deleteProjectByIdAdmin: (projectId: string, otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
42
+ selectProject: (projectId: SelectProjectParam['projectId'], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
43
+ unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
44
+ addNewAccessKey: (accessKey: AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
45
+ deleteAccessKey: (clientId: DeleteAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
46
+ refreshAccessKey: (clientId: RefreshAccessKeyBody['clientId'], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
47
+ triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>;
48
+ triggerWebhook: (webhookIndex: TriggerWebhookBody['webhookIndex'], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
49
+ getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
50
+ pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
51
+ updateMemberAccess: (userId: string, body: UpdateMemberAccessBody, otherOptions?: FetcherOptions) => Promise<UpdateMemberAccessResult>;
52
+ }>;
26
53
  //#endregion
27
- export { getProjectAPI };
54
+ export { getProjectAPI, projectEndpoint };
28
55
  //# sourceMappingURL=project.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"project.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/project.ts"],"mappings":";;;;;cAiCa,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,mBAAA,EAAmB,YAAA,GAChB,cAAA,KAAc,OAAA,CAAA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,mBAAc,QAAA;EAgB9C,qBAAA,gBAAM,MACR,wBAAsB,eACd,mBAAc,QAAA;;;;;;;;cAqCnB,iBArCmB;EAtSlB,cAAA,UAAA,mBAAiB,eACb,mBAAc,QAAA;EAkBkB,qBAAA,eAAA,mBAAc,QAAA;EAgBnD,aAAA,SAAA,gBAAc,eACT,mBAAc,QAAA;EAiBnB,gBAAA,SAAA,mBAAiB,eACZ,mBAAc,QAAA;EAiBtB,uBAAA,MAAA,0BAAwB,eAChB,mBAAc,QAAA;EAgBN,2BAAA,sBAAA,8BAA4B,eACpC,mBAAc,QAAA;EAgBa,gBAAA,eAAA,mBAAc,QAAA;EAe5C,yBAAA,mBAAM,eACH,mBAAc,QAAA;EAcjB,gBAAA,WAAA,iCAA+B,eAC5B,mBAAc,QAAA;EAee,kBAAA,eAAA,mBAAc,QAAA;EAiB9C,kBAAA,WAAA,qBAAmB,eAChB,mBAAc,QAAA;EAmBlB,kBAAA,UAAA,iCAA+B,eAC3B,mBAAc,QAAA;EAmBlB,mBAAA,UAAA,kCAAgC,eAC5B,mBAAc,QAAA;EAiBY,eAAA,eAAA,mBAAc,QAAA;EAiBxC,iBAAA,cAAA,oCAAkC,eAClC,mBAAc,QAAA;EAiBW,cAAA,eAAA,mBAAc,QAAA;EAeb,eAAA,eAAA,mBAAc,QAAA;EAgB9C,qBAAA,gBAAM,MACR,wBAAsB,eACd,mBAAc,QAAA"}
@@ -1,11 +1,12 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { CreateMissionBody, EstimateMissionBody, GetMarketplaceQuery, RegisterReviewerBody, SendMessageBody, SubmitReviewBody, UpdateMissionStatusBody, UpdateReviewerBody } from "@intlayer/backend";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
+ import "../index.js";
3
4
  import { IntlayerConfig } from "@intlayer/types/config";
4
-
5
+ import { CreateMissionBody, EstimateMissionBody, GetMarketplaceQuery, RegisterReviewerBody, SendMessageBody, SubmitReviewBody, UpdateMissionStatusBody, UpdateReviewerBody } from "@intlayer/backend";
5
6
  //#region src/getIntlayerAPI/reviewer.d.ts
6
7
  declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
7
8
  getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
8
- getPriceDistribution: (params?: Pick<GetMarketplaceQuery, "fromLocale" | "toLocale" | "minRating" | "categories">, otherOptions?: FetcherOptions) => Promise<ResponseData<PriceDistributionData>>;
9
+ getPriceDistribution: (params?: Pick<GetMarketplaceQuery, 'fromLocale' | 'toLocale' | 'minRating' | 'categories'>, otherOptions?: FetcherOptions) => Promise<ResponseData<PriceDistributionData>>;
9
10
  getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
10
11
  getReviewerReviews: (reviewerId: string, params?: {
11
12
  page?: number;
@@ -18,7 +19,7 @@ declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?:
18
19
  estimateMission: (body: EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<MissionEstimate>>;
19
20
  createMission: (body: CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
20
21
  getMyMissions: (params?: {
21
- role?: "client" | "reviewer";
22
+ role?: 'client' | 'reviewer';
22
23
  page?: number;
23
24
  pageSize?: number;
24
25
  }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<TranslationMissionAPI>>;
@@ -40,6 +41,49 @@ declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?:
40
41
  status?: string;
41
42
  }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
42
43
  };
44
+ /**
45
+ * Authenticated `reviewer` endpoint bound to an Intlayer CMS authenticator.
46
+ *
47
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
48
+ * the build-time configuration (`@intlayer/config/built`).
49
+ */
50
+ declare const reviewerEndpoint: CMSEndpoint<{
51
+ getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
52
+ getPriceDistribution: (params?: Pick<GetMarketplaceQuery, 'fromLocale' | 'toLocale' | 'minRating' | 'categories'>, otherOptions?: FetcherOptions) => Promise<ResponseData<PriceDistributionData>>;
53
+ getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
54
+ getReviewerReviews: (reviewerId: string, params?: {
55
+ page?: number;
56
+ pageSize?: number;
57
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerReviewAPI>>;
58
+ getMyReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
59
+ registerAsReviewer: (body: RegisterReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
60
+ updateReviewerProfile: (body: UpdateReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
61
+ deleteReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
62
+ estimateMission: (body: EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<MissionEstimate>>;
63
+ createMission: (body: CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
64
+ getMyMissions: (params?: {
65
+ role?: 'client' | 'reviewer';
66
+ page?: number;
67
+ pageSize?: number;
68
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<TranslationMissionAPI>>;
69
+ getMissionById: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
70
+ updateMissionStatus: (missionId: string, body: UpdateMissionStatusBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
71
+ submitReview: (missionId: string, body: SubmitReviewBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerReviewAPI>>;
72
+ contactReviewer: (reviewerId: string, body: {
73
+ message: string;
74
+ }, otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
75
+ getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI[]>>;
76
+ sendMessage: (missionId: string, body: SendMessageBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI>>;
77
+ getChatStreamUrl: (missionId: string) => string;
78
+ uploadMainPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
79
+ uploadCoverPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
80
+ validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
81
+ getAdminReviewers: (params?: {
82
+ page?: number;
83
+ pageSize?: number;
84
+ status?: string;
85
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
86
+ }>;
43
87
  //#endregion
44
- export { getReviewerAPI };
88
+ export { getReviewerAPI, reviewerEndpoint };
45
89
  //# sourceMappingURL=reviewer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reviewer.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/reviewer.ts"],"mappings":";;;;;cAuBa,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,KAAc,OAAA,CAAA,YAAA,CAAA,qBAAA;wCAuBV,YAAA,GACJ,cAAA,KAAc,OAAA,CAAA,YAAA,CAAA,kBAAA;2CAUV,MAAA;IACR,IAAA;IAAe,QAAA;EAAA,GAAmB,YAAA,GAC9B,cAAA,KAAc,OAAA,CAAA,iBAAA,CAAA,iBAAA;wCAmBc,cAAA,KAAc,OAA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;cAiDnB,kBAjDmB;EA1SpB,iBAAA,SAAA,qBAAmB,eACb,mBAAc,QAAA,kBAAA;EAwBpB,uBAAA,SAAA,KACN,8EAED,eACa,mBAAc,QAAA,aAAA;EAuBhB,kBAAA,oBAAM,eACJ,mBAAc,QAAA,aAAA;EAUhB,qBAAA,oBAAM;IACR;IAAe;KAAmB,eAC9B,mBAAc,QAAA,kBAAA;EAmBc,uBAAA,eAAA,mBAAc,QAAA;EASlD,qBAAA,MAAA,sBAAoB,eACZ,mBAAc,QAAA,aAAA;EAUtB,wBAAA,MAAA,oBAAkB,eACV,mBAAc,QAAA,aAAA;EASe,wBAAA,eAAA,mBAAc,QAAA;EAsBnD,kBAAA,MAAA,qBAAmB,eACX,mBAAc,QAAA,aAAA;EAUtB,gBAAA,MAAA,mBAAiB,eACT,mBAAc,QAAA,aAAA;EAUpB,gBAAA;IACN;IACA;IACA;KACD,eACa,mBAAc,QAAA,kBAAA;EAkBjB,iBAAA,mBAAM,eACH,mBAAc,QAAA,aAAA;EAUjB,sBAAA,mBAAM,MACX,yBAAuB,eACf,mBAAc,QAAA,aAAA;EAYjB,eAAA,mBAAM,MACX,kBAAgB,eACR,mBAAc,QAAA,aAAA;EAtFhB,kBAAA,oBAAM;IACV;KAAiB,eACX,mBAAc,QAAA;EAgGjB,iBAAA,mBAAM,eACH,mBAAc,QAAA,aAAA;EAUjB,cAAA,mBAAM,MACX,iBAAe,eACP,mBAAc,QAAA,aAAA;EASO,mBAAA;EAmCJ,oBAAA,MAAA,MAAI,eAAgB,mBAAc,QAAA;EAGjC,qBAAA,MAAA,MAAI,eAAgB,mBAAc,QAAA;EAMtD,0BAAA,oBAAM,eACJ,mBAAc,QAAA,aAAA;EAUpB,oBAAA;IAAE;IAAe;IAAmB;KAAiB,eAC/C,mBAAc,QAAA,kBAAA"}
@@ -1,11 +1,21 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
- import { SearchDocUtilParams } from "@intlayer/backend";
2
+ import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
+ import "../index.js";
3
4
  import { IntlayerConfig } from "@intlayer/types/config";
4
-
5
+ import { SearchDocUtilParams } from "@intlayer/backend";
5
6
  //#region src/getIntlayerAPI/search.d.ts
6
7
  declare const getSearchAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
7
8
  searchDoc: (params?: SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>;
8
9
  };
10
+ /**
11
+ * Authenticated `search` endpoint bound to an Intlayer CMS authenticator.
12
+ *
13
+ * Pass an authenticator created with `createIntlayerCMS`, or omit it to use
14
+ * the build-time configuration (`@intlayer/config/built`).
15
+ */
16
+ declare const searchEndpoint: CMSEndpoint<{
17
+ searchDoc: (params?: SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>;
18
+ }>;
9
19
  //#endregion
10
- export { getSearchAPI };
20
+ export { getSearchAPI, searchEndpoint };
11
21
  //# sourceMappingURL=search.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/search.ts"],"mappings":";;;;;cAQa,YAAA,GACX,cAAA,GAAgB,cAAA,EAChB,cAAA,GAAiB,cAAA;uBAYN,mBAAA,EAAmB,YAAA,GACd,cAAA,KAAc,OAAA,CAAA,mBAAA;AAAA"}
1
+ {"version":3,"file":"search.d.ts","names":[],"sources":["../../../src/getIntlayerAPI/search.ts"],"mappings":";;;;;;cASa,eAAY,iBACP,gBAAc,iBACb;EAYN,YAAA,SAAA,qBAAmB,eACd,mBAAc,QAAA;;;;;;;;cAuBnB,gBAvBmB;EADnB,YAAA,SAAA,qBAAmB,eACd,mBAAc,QAAA"}