@intlayer/api 9.0.0-canary.11 → 9.0.0-canary.12

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 (239) hide show
  1. package/dist/cjs/getIntlayerAPI/index.cjs +3 -1
  2. package/dist/cjs/getIntlayerAPI/index.cjs.map +1 -1
  3. package/dist/cjs/getIntlayerAPI/organization.cjs +10 -0
  4. package/dist/cjs/getIntlayerAPI/organization.cjs.map +1 -1
  5. package/dist/cjs/getIntlayerAPI/status.cjs +48 -0
  6. package/dist/cjs/getIntlayerAPI/status.cjs.map +1 -0
  7. package/dist/cjs/getIntlayerAPI/user.cjs.map +1 -1
  8. package/dist/cjs/index.cjs +3 -0
  9. package/dist/cjs/proxy.cjs +3 -1
  10. package/dist/cjs/proxy.cjs.map +1 -1
  11. package/dist/esm/getIntlayerAPI/index.mjs +3 -1
  12. package/dist/esm/getIntlayerAPI/index.mjs.map +1 -1
  13. package/dist/esm/getIntlayerAPI/organization.mjs +10 -0
  14. package/dist/esm/getIntlayerAPI/organization.mjs.map +1 -1
  15. package/dist/esm/getIntlayerAPI/status.mjs +46 -0
  16. package/dist/esm/getIntlayerAPI/status.mjs.map +1 -0
  17. package/dist/esm/getIntlayerAPI/user.mjs.map +1 -1
  18. package/dist/esm/index.mjs +2 -1
  19. package/dist/esm/proxy.mjs +3 -1
  20. package/dist/esm/proxy.mjs.map +1 -1
  21. package/dist/types/apps/backend/dist/types/controllers/ai.controller.d.ts +94 -0
  22. package/dist/types/apps/backend/dist/types/controllers/ai.controller.d.ts.map +1 -0
  23. package/dist/types/apps/backend/dist/types/controllers/asset.controller.d.ts +15 -0
  24. package/dist/types/apps/backend/dist/types/controllers/asset.controller.d.ts.map +1 -0
  25. package/dist/types/apps/backend/dist/types/controllers/audit.controller.d.ts +1 -0
  26. package/dist/types/apps/backend/dist/types/controllers/bitbucket.controller.d.ts +1 -0
  27. package/dist/types/apps/backend/dist/types/controllers/cliSessionToken.controller.d.ts +18 -0
  28. package/dist/types/apps/backend/dist/types/controllers/cliSessionToken.controller.d.ts.map +1 -0
  29. package/dist/types/apps/backend/dist/types/controllers/dictionary.controller.d.ts +85 -0
  30. package/dist/types/apps/backend/dist/types/controllers/dictionary.controller.d.ts.map +1 -0
  31. package/dist/types/apps/backend/dist/types/controllers/environment.controller.d.ts +30 -0
  32. package/dist/types/apps/backend/dist/types/controllers/environment.controller.d.ts.map +1 -0
  33. package/dist/types/apps/backend/dist/types/controllers/eventListener.controller.d.ts +1 -0
  34. package/dist/types/apps/backend/dist/types/controllers/github.controller.d.ts +1 -0
  35. package/dist/types/apps/backend/dist/types/controllers/gitlab.controller.d.ts +1 -0
  36. package/dist/types/apps/backend/dist/types/controllers/newsletter.controller.d.ts +25 -0
  37. package/dist/types/apps/backend/dist/types/controllers/newsletter.controller.d.ts.map +1 -0
  38. package/dist/types/apps/backend/dist/types/controllers/oAuth2.controller.d.ts +7 -0
  39. package/dist/types/apps/backend/dist/types/controllers/oAuth2.controller.d.ts.map +1 -0
  40. package/dist/types/apps/backend/dist/types/controllers/organization.controller.d.ts +71 -0
  41. package/dist/types/apps/backend/dist/types/controllers/organization.controller.d.ts.map +1 -0
  42. package/dist/types/apps/backend/dist/types/controllers/project.controller.d.ts +81 -0
  43. package/dist/types/apps/backend/dist/types/controllers/project.controller.d.ts.map +1 -0
  44. package/dist/types/apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts +26 -0
  45. package/dist/types/apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts.map +1 -0
  46. package/dist/types/apps/backend/dist/types/controllers/projectMemberAccess.controller.d.ts +15 -0
  47. package/dist/types/apps/backend/dist/types/controllers/projectMemberAccess.controller.d.ts.map +1 -0
  48. package/dist/types/apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts +31 -0
  49. package/dist/types/apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts.map +1 -0
  50. package/dist/types/apps/backend/dist/types/controllers/reviewer.controller.d.ts +69 -0
  51. package/dist/types/apps/backend/dist/types/controllers/reviewer.controller.d.ts.map +1 -0
  52. package/dist/types/apps/backend/dist/types/controllers/searchDoc.controller.d.ts +19 -0
  53. package/dist/types/apps/backend/dist/types/controllers/searchDoc.controller.d.ts.map +1 -0
  54. package/dist/types/apps/backend/dist/types/controllers/showcaseProject.controller.d.ts +76 -0
  55. package/dist/types/apps/backend/dist/types/controllers/showcaseProject.controller.d.ts.map +1 -0
  56. package/dist/types/apps/backend/dist/types/controllers/stripe.controller.d.ts +148 -0
  57. package/dist/types/apps/backend/dist/types/controllers/stripe.controller.d.ts.map +1 -0
  58. package/dist/types/apps/backend/dist/types/controllers/tag.controller.d.ts +34 -0
  59. package/dist/types/apps/backend/dist/types/controllers/tag.controller.d.ts.map +1 -0
  60. package/dist/types/apps/backend/dist/types/controllers/translation.controller.d.ts +15 -0
  61. package/dist/types/apps/backend/dist/types/controllers/translation.controller.d.ts.map +1 -0
  62. package/dist/types/apps/backend/dist/types/controllers/user.controller.d.ts +51 -0
  63. package/dist/types/apps/backend/dist/types/controllers/user.controller.d.ts.map +1 -0
  64. package/dist/types/apps/backend/dist/types/export.d.ts +37 -0
  65. package/dist/types/apps/backend/dist/types/routes/ai.routes.d.ts +1 -0
  66. package/dist/types/apps/backend/dist/types/routes/asset.routes.d.ts +1 -0
  67. package/dist/types/apps/backend/dist/types/routes/audit.routes.d.ts +1 -0
  68. package/dist/types/apps/backend/dist/types/routes/bitbucket.routes.d.ts +1 -0
  69. package/dist/types/apps/backend/dist/types/routes/dictionary.routes.d.ts +1 -0
  70. package/dist/types/apps/backend/dist/types/routes/environment.routes.d.ts +1 -0
  71. package/dist/types/apps/backend/dist/types/routes/github.routes.d.ts +1 -0
  72. package/dist/types/apps/backend/dist/types/routes/gitlab.routes.d.ts +1 -0
  73. package/dist/types/apps/backend/dist/types/routes/newsletter.routes.d.ts +1 -0
  74. package/dist/types/apps/backend/dist/types/routes/organization.routes.d.ts +1 -0
  75. package/dist/types/apps/backend/dist/types/routes/project.routes.d.ts +1 -0
  76. package/dist/types/apps/backend/dist/types/routes/reviewer.routes.d.ts +1 -0
  77. package/dist/types/apps/backend/dist/types/routes/showcaseProject.routes.d.ts +1 -0
  78. package/dist/types/apps/backend/dist/types/routes/stripe.routes.d.ts +1 -0
  79. package/dist/types/apps/backend/dist/types/routes/translate.routes.d.ts +1 -0
  80. package/dist/types/apps/backend/dist/types/routes/user.routes.d.ts +1 -0
  81. package/dist/types/apps/backend/dist/types/services/audit/types.d.ts +34 -0
  82. package/dist/types/apps/backend/dist/types/services/audit/types.d.ts.map +1 -0
  83. package/dist/types/apps/backend/dist/types/services/ci.service.d.ts +1 -0
  84. package/dist/types/apps/backend/dist/types/services/github.service.d.ts +1 -0
  85. package/dist/types/apps/backend/dist/types/services/subscription.service.d.ts +13 -0
  86. package/dist/types/apps/backend/dist/types/services/subscription.service.d.ts.map +1 -0
  87. package/dist/types/apps/backend/dist/types/types/affiliate.types.d.ts +39 -0
  88. package/dist/types/apps/backend/dist/types/types/affiliate.types.d.ts.map +1 -0
  89. package/dist/types/apps/backend/dist/types/types/affiliateInvitation.types.d.ts +26 -0
  90. package/dist/types/apps/backend/dist/types/types/affiliateInvitation.types.d.ts.map +1 -0
  91. package/dist/types/apps/backend/dist/types/types/aiStats.types.d.ts +23 -0
  92. package/dist/types/apps/backend/dist/types/types/aiStats.types.d.ts.map +1 -0
  93. package/dist/types/apps/backend/dist/types/types/asset.types.d.ts +31 -0
  94. package/dist/types/apps/backend/dist/types/types/asset.types.d.ts.map +1 -0
  95. package/dist/types/apps/backend/dist/types/types/dictionary.types.d.ts +65 -0
  96. package/dist/types/apps/backend/dist/types/types/dictionary.types.d.ts.map +1 -0
  97. package/dist/types/apps/backend/dist/types/types/discussion.types.d.ts +42 -0
  98. package/dist/types/apps/backend/dist/types/types/discussion.types.d.ts.map +1 -0
  99. package/dist/types/apps/backend/dist/types/types/oAuth2.types.d.ts +16 -0
  100. package/dist/types/apps/backend/dist/types/types/oAuth2.types.d.ts.map +1 -0
  101. package/dist/types/apps/backend/dist/types/types/organization.types.d.ts +98 -0
  102. package/dist/types/apps/backend/dist/types/types/organization.types.d.ts.map +1 -0
  103. package/dist/types/apps/backend/dist/types/types/plan.types.d.ts +23 -0
  104. package/dist/types/apps/backend/dist/types/types/plan.types.d.ts.map +1 -0
  105. package/dist/types/apps/backend/dist/types/types/project.types.d.ts +122 -0
  106. package/dist/types/apps/backend/dist/types/types/project.types.d.ts.map +1 -0
  107. package/dist/types/apps/backend/dist/types/types/projectInsights.types.d.ts +52 -0
  108. package/dist/types/apps/backend/dist/types/types/projectInsights.types.d.ts.map +1 -0
  109. package/dist/types/apps/backend/dist/types/types/promoCode.types.d.ts +26 -0
  110. package/dist/types/apps/backend/dist/types/types/promoCode.types.d.ts.map +1 -0
  111. package/dist/types/apps/backend/dist/types/types/reviewer.types.d.ts +49 -0
  112. package/dist/types/apps/backend/dist/types/types/reviewer.types.d.ts.map +1 -0
  113. package/dist/types/apps/backend/dist/types/types/session.types.d.ts +2 -0
  114. package/dist/types/apps/backend/dist/types/types/showcaseProject.types.d.ts +59 -0
  115. package/dist/types/apps/backend/dist/types/types/showcaseProject.types.d.ts.map +1 -0
  116. package/dist/types/apps/backend/dist/types/types/tag.types.d.ts +31 -0
  117. package/dist/types/apps/backend/dist/types/types/tag.types.d.ts.map +1 -0
  118. package/dist/types/apps/backend/dist/types/types/user.types.d.ts +32 -0
  119. package/dist/types/apps/backend/dist/types/types/user.types.d.ts.map +1 -0
  120. package/dist/types/apps/backend/dist/types/utils/AI/askDocQuestion/askDocQuestion.d.ts +10 -0
  121. package/dist/types/apps/backend/dist/types/utils/AI/askDocQuestion/askDocQuestion.d.ts.map +1 -0
  122. package/dist/types/apps/backend/dist/types/utils/AI/auditDictionary/index.d.ts +15 -0
  123. package/dist/types/apps/backend/dist/types/utils/AI/auditDictionary/index.d.ts.map +1 -0
  124. package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryField/index.d.ts +12 -0
  125. package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryField/index.d.ts.map +1 -0
  126. package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryMetadata/index.d.ts +2 -0
  127. package/dist/types/apps/backend/dist/types/utils/AI/auditTag/index.d.ts +10 -0
  128. package/dist/types/apps/backend/dist/types/utils/AI/auditTag/index.d.ts.map +1 -0
  129. package/dist/types/apps/backend/dist/types/utils/AI/chat/index.d.ts +16 -0
  130. package/dist/types/apps/backend/dist/types/utils/AI/chat/index.d.ts.map +1 -0
  131. package/dist/types/apps/backend/dist/types/utils/AI/customQuery/index.d.ts +11 -0
  132. package/dist/types/apps/backend/dist/types/utils/AI/customQuery/index.d.ts.map +1 -0
  133. package/dist/types/apps/backend/dist/types/utils/AI/translateJSON/index.d.ts +20 -0
  134. package/dist/types/apps/backend/dist/types/utils/AI/translateJSON/index.d.ts.map +1 -0
  135. package/dist/types/apps/backend/dist/types/utils/auth/getAuth.d.ts +1 -0
  136. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +41 -0
  137. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts.map +1 -0
  138. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +19 -0
  139. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts.map +1 -0
  140. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts +11 -0
  141. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts.map +1 -0
  142. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +25 -0
  143. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts.map +1 -0
  144. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +18 -0
  145. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts.map +1 -0
  146. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +16 -0
  147. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts.map +1 -0
  148. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts +20 -0
  149. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts.map +1 -0
  150. package/dist/types/apps/backend/dist/types/utils/httpStatusCodes.d.ts +408 -0
  151. package/dist/types/apps/backend/dist/types/utils/httpStatusCodes.d.ts.map +1 -0
  152. package/dist/types/apps/backend/dist/types/utils/mongoDB/types.d.ts +10 -0
  153. package/dist/types/apps/backend/dist/types/utils/mongoDB/types.d.ts.map +1 -0
  154. package/dist/types/apps/backend/dist/types/utils/permissions.d.ts +1 -0
  155. package/dist/types/apps/backend/dist/types/utils/responseData.d.ts +27 -0
  156. package/dist/types/apps/backend/dist/types/utils/responseData.d.ts.map +1 -0
  157. package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +1 -1
  158. package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
  159. package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +1 -1
  160. package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
  161. package/dist/types/getIntlayerAPI/ai.d.ts +1 -1
  162. package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
  163. package/dist/types/getIntlayerAPI/asset.d.ts +1 -0
  164. package/dist/types/getIntlayerAPI/asset.d.ts.map +1 -1
  165. package/dist/types/getIntlayerAPI/audit.d.ts +2 -1
  166. package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
  167. package/dist/types/getIntlayerAPI/dictionary.d.ts +1 -1
  168. package/dist/types/getIntlayerAPI/environment.d.ts +1 -1
  169. package/dist/types/getIntlayerAPI/index.d.ts +2 -0
  170. package/dist/types/getIntlayerAPI/index.d.ts.map +1 -1
  171. package/dist/types/getIntlayerAPI/newsletter.d.ts +1 -1
  172. package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
  173. package/dist/types/getIntlayerAPI/oAuth.d.ts +2 -0
  174. package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
  175. package/dist/types/getIntlayerAPI/organization.d.ts +3 -1
  176. package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
  177. package/dist/types/getIntlayerAPI/project.d.ts +4 -1
  178. package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
  179. package/dist/types/getIntlayerAPI/reviewer.d.ts +621 -31
  180. package/dist/types/getIntlayerAPI/reviewer.d.ts.map +1 -1
  181. package/dist/types/getIntlayerAPI/search.d.ts +1 -1
  182. package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
  183. package/dist/types/getIntlayerAPI/showcaseProject.d.ts +1 -1
  184. package/dist/types/getIntlayerAPI/status.d.ts +36 -0
  185. package/dist/types/getIntlayerAPI/status.d.ts.map +1 -0
  186. package/dist/types/getIntlayerAPI/stripe.d.ts +1 -1
  187. package/dist/types/getIntlayerAPI/tag.d.ts +1 -1
  188. package/dist/types/getIntlayerAPI/translate.d.ts +1 -1
  189. package/dist/types/getIntlayerAPI/user.d.ts +6 -3
  190. package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
  191. package/dist/types/index.d.ts +9 -5
  192. package/dist/types/packages/@intlayer/ai/dist/types/aiSdk.d.ts +115 -0
  193. package/dist/types/packages/@intlayer/ai/dist/types/aiSdk.d.ts.map +1 -0
  194. package/dist/types/packages/@intlayer/ai/dist/types/auditDictionaryMetadata/index.d.ts +12 -0
  195. package/dist/types/packages/@intlayer/ai/dist/types/auditDictionaryMetadata/index.d.ts.map +1 -0
  196. package/dist/types/packages/@intlayer/ai/dist/types/customQuery.d.ts +8 -0
  197. package/dist/types/packages/@intlayer/ai/dist/types/customQuery.d.ts.map +1 -0
  198. package/dist/types/packages/@intlayer/ai/dist/types/index.d.ts +27 -0
  199. package/dist/types/packages/@intlayer/ai/dist/types/index.d.ts.map +1 -0
  200. package/dist/types/packages/@intlayer/ai/dist/types/translateJSON/index.d.ts +10 -0
  201. package/dist/types/packages/@intlayer/ai/dist/types/translateJSON/index.d.ts.map +1 -0
  202. package/dist/types/packages/@intlayer/core/dist/types/messageFormat/ICU.d.ts +1 -0
  203. package/dist/types/packages/@intlayer/core/dist/types/messageFormat/i18next.d.ts +1 -0
  204. package/dist/types/packages/@intlayer/core/dist/types/messageFormat/index.d.ts +1 -0
  205. package/dist/types/packages/@intlayer/core/dist/types/messageFormat/po.d.ts +1 -0
  206. package/dist/types/packages/@intlayer/core/dist/types/messageFormat/resolveMessage.d.ts +1 -0
  207. package/dist/types/packages/@intlayer/core/dist/types/messageFormat/vue-i18n.d.ts +1 -0
  208. package/dist/types/packages/@intlayer/engine/dist/types/build.d.ts +1 -0
  209. package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -0
  210. package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +2 -0
  211. package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +3 -0
  212. package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +2 -0
  213. package/dist/types/packages/@intlayer/engine/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +2 -0
  214. package/dist/types/packages/@intlayer/engine/dist/types/cleanOutputDir.d.ts +1 -0
  215. package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +1 -0
  216. package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +1 -0
  217. package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +1 -0
  218. package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +1 -0
  219. package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +1 -0
  220. package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +1 -0
  221. package/dist/types/packages/@intlayer/engine/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +1 -0
  222. package/dist/types/packages/@intlayer/engine/dist/types/createType/createModuleAugmentation.d.ts +1 -0
  223. package/dist/types/packages/@intlayer/engine/dist/types/createType/createType.d.ts +2 -0
  224. package/dist/types/packages/@intlayer/engine/dist/types/formatDictionary.d.ts +1 -0
  225. package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadContentDeclaration.d.ts +2 -0
  226. package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadDictionaries.d.ts +2 -0
  227. package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +2 -0
  228. package/dist/types/packages/@intlayer/engine/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +1 -0
  229. package/dist/types/packages/@intlayer/engine/dist/types/prepareIntlayer.d.ts +1 -0
  230. package/dist/types/packages/@intlayer/engine/dist/types/writeConfiguration/index.d.ts +1 -0
  231. package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +6 -0
  232. package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -0
  233. package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/transformJSFile.d.ts +2 -0
  234. package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +3 -0
  235. package/dist/types/packages/@intlayer/engine/dist/types/writeContentDeclaration/writeJSFile.d.ts +2 -0
  236. package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +1 -1
  237. package/dist/types/proxy.d.ts.map +1 -1
  238. package/dist/types/types.d.ts +1 -1
  239. package/package.json +11 -3
@@ -1,45 +1,341 @@
1
1
  import { FetcherOptions } from "../fetcher.js";
2
2
  import { CMSEndpoint } from "../cms/createIntlayerCMS.js";
3
+ import { PaginatedResponse, ResponseData } from "../apps/backend/dist/types/utils/responseData.js";
4
+ import { MissionEstimate, MissionStatus, ReviewerCategory, ReviewerStatus } from "../apps/backend/dist/types/types/reviewer.types.js";
5
+ import { CreateMissionBody, EstimateMissionBody, GetMarketplaceQuery, PriceDistributionData, RegisterReviewerBody, SendMessageBody, SubmitReviewBody, UpdateMissionStatusBody, UpdateReviewerBody, UploadReviewerPictureResult } from "../apps/backend/dist/types/controllers/reviewer.controller.js";
3
6
  import { IntlayerConfig } from "@intlayer/types/config";
4
- import { CreateMissionBody, EstimateMissionBody, GetMarketplaceQuery, RegisterReviewerBody, SendMessageBody, SubmitReviewBody, UpdateMissionStatusBody, UpdateReviewerBody } from "@intlayer/backend";
5
7
 
6
8
  //#region src/getIntlayerAPI/reviewer.d.ts
7
9
  declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?: IntlayerConfig) => {
8
- getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
10
+ getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
11
+ userId: string;
12
+ name?: string;
13
+ bio?: string;
14
+ mainPicture?: string;
15
+ coverPicture?: string;
16
+ languagePairs: {
17
+ from: string;
18
+ to: string;
19
+ }[];
20
+ categories: ReviewerCategory[];
21
+ pricePerHour: number;
22
+ status: ReviewerStatus;
23
+ totalMissions: number;
24
+ averageRating: number;
25
+ reviewCount: number;
26
+ stripeAccountId?: string;
27
+ socialLinks?: {
28
+ github?: string;
29
+ linkedin?: string;
30
+ portfolio?: string;
31
+ };
32
+ isHidden?: boolean;
33
+ id: string;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ }>>;
9
37
  getPriceDistribution: (params?: Pick<GetMarketplaceQuery, "fromLocale" | "toLocale" | "minRating" | "categories">, otherOptions?: FetcherOptions) => Promise<ResponseData<PriceDistributionData>>;
10
- getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
38
+ getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
39
+ userId: string;
40
+ name?: string;
41
+ bio?: string;
42
+ mainPicture?: string;
43
+ coverPicture?: string;
44
+ languagePairs: {
45
+ from: string;
46
+ to: string;
47
+ }[];
48
+ categories: ReviewerCategory[];
49
+ pricePerHour: number;
50
+ status: ReviewerStatus;
51
+ totalMissions: number;
52
+ averageRating: number;
53
+ reviewCount: number;
54
+ stripeAccountId?: string;
55
+ socialLinks?: {
56
+ github?: string;
57
+ linkedin?: string;
58
+ portfolio?: string;
59
+ };
60
+ isHidden?: boolean;
61
+ id: string;
62
+ createdAt: Date;
63
+ updatedAt: Date;
64
+ }>>;
11
65
  getReviewerReviews: (reviewerId: string, params?: {
12
66
  page?: number;
13
67
  pageSize?: number;
14
- }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerReviewAPI>>;
15
- getMyReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
16
- registerAsReviewer: (body: RegisterReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
17
- updateReviewerProfile: (body: UpdateReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
68
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
69
+ missionId: string;
70
+ reviewerId: string;
71
+ rating: number;
72
+ comment?: string;
73
+ id: string;
74
+ createdAt: Date;
75
+ updatedAt: Date;
76
+ }>>;
77
+ getMyReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<{
78
+ userId: string;
79
+ name?: string;
80
+ bio?: string;
81
+ mainPicture?: string;
82
+ coverPicture?: string;
83
+ languagePairs: {
84
+ from: string;
85
+ to: string;
86
+ }[];
87
+ categories: ReviewerCategory[];
88
+ pricePerHour: number;
89
+ status: ReviewerStatus;
90
+ totalMissions: number;
91
+ averageRating: number;
92
+ reviewCount: number;
93
+ stripeAccountId?: string;
94
+ socialLinks?: {
95
+ github?: string;
96
+ linkedin?: string;
97
+ portfolio?: string;
98
+ };
99
+ isHidden?: boolean;
100
+ id: string;
101
+ createdAt: Date;
102
+ updatedAt: Date;
103
+ }>>;
104
+ registerAsReviewer: (body: RegisterReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
105
+ userId: string;
106
+ name?: string;
107
+ bio?: string;
108
+ mainPicture?: string;
109
+ coverPicture?: string;
110
+ languagePairs: {
111
+ from: string;
112
+ to: string;
113
+ }[];
114
+ categories: ReviewerCategory[];
115
+ pricePerHour: number;
116
+ status: ReviewerStatus;
117
+ totalMissions: number;
118
+ averageRating: number;
119
+ reviewCount: number;
120
+ stripeAccountId?: string;
121
+ socialLinks?: {
122
+ github?: string;
123
+ linkedin?: string;
124
+ portfolio?: string;
125
+ };
126
+ isHidden?: boolean;
127
+ id: string;
128
+ createdAt: Date;
129
+ updatedAt: Date;
130
+ }>>;
131
+ updateReviewerProfile: (body: UpdateReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
132
+ userId: string;
133
+ name?: string;
134
+ bio?: string;
135
+ mainPicture?: string;
136
+ coverPicture?: string;
137
+ languagePairs: {
138
+ from: string;
139
+ to: string;
140
+ }[];
141
+ categories: ReviewerCategory[];
142
+ pricePerHour: number;
143
+ status: ReviewerStatus;
144
+ totalMissions: number;
145
+ averageRating: number;
146
+ reviewCount: number;
147
+ stripeAccountId?: string;
148
+ socialLinks?: {
149
+ github?: string;
150
+ linkedin?: string;
151
+ portfolio?: string;
152
+ };
153
+ isHidden?: boolean;
154
+ id: string;
155
+ createdAt: Date;
156
+ updatedAt: Date;
157
+ }>>;
18
158
  deleteReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
19
159
  estimateMission: (body: EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<MissionEstimate>>;
20
- createMission: (body: CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
160
+ createMission: (body: CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
161
+ reviewerId: string;
162
+ clientUserId: string;
163
+ projectId?: string;
164
+ dictionaryIds: string[];
165
+ sourceLocale: string;
166
+ targetLocales: string[];
167
+ wordCount: number;
168
+ estimatedHours: number;
169
+ pricePerHour: number;
170
+ totalPrice: number;
171
+ currency: string;
172
+ status: MissionStatus;
173
+ notes?: string;
174
+ aiPreGeneratedAt?: Date;
175
+ completedAt?: Date;
176
+ canceledAt?: Date;
177
+ id: string;
178
+ createdAt: Date;
179
+ updatedAt: Date;
180
+ }>>;
21
181
  getMyMissions: (params?: {
22
182
  role?: "client" | "reviewer";
23
183
  page?: number;
24
184
  pageSize?: number;
25
- }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<TranslationMissionAPI>>;
26
- getMissionById: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
27
- updateMissionStatus: (missionId: string, body: UpdateMissionStatusBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
28
- submitReview: (missionId: string, body: SubmitReviewBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerReviewAPI>>;
185
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
186
+ reviewerId: string;
187
+ clientUserId: string;
188
+ projectId?: string;
189
+ dictionaryIds: string[];
190
+ sourceLocale: string;
191
+ targetLocales: string[];
192
+ wordCount: number;
193
+ estimatedHours: number;
194
+ pricePerHour: number;
195
+ totalPrice: number;
196
+ currency: string;
197
+ status: MissionStatus;
198
+ notes?: string;
199
+ aiPreGeneratedAt?: Date;
200
+ completedAt?: Date;
201
+ canceledAt?: Date;
202
+ id: string;
203
+ createdAt: Date;
204
+ updatedAt: Date;
205
+ }>>;
206
+ getMissionById: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
207
+ reviewerId: string;
208
+ clientUserId: string;
209
+ projectId?: string;
210
+ dictionaryIds: string[];
211
+ sourceLocale: string;
212
+ targetLocales: string[];
213
+ wordCount: number;
214
+ estimatedHours: number;
215
+ pricePerHour: number;
216
+ totalPrice: number;
217
+ currency: string;
218
+ status: MissionStatus;
219
+ notes?: string;
220
+ aiPreGeneratedAt?: Date;
221
+ completedAt?: Date;
222
+ canceledAt?: Date;
223
+ id: string;
224
+ createdAt: Date;
225
+ updatedAt: Date;
226
+ }>>;
227
+ updateMissionStatus: (missionId: string, body: UpdateMissionStatusBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
228
+ reviewerId: string;
229
+ clientUserId: string;
230
+ projectId?: string;
231
+ dictionaryIds: string[];
232
+ sourceLocale: string;
233
+ targetLocales: string[];
234
+ wordCount: number;
235
+ estimatedHours: number;
236
+ pricePerHour: number;
237
+ totalPrice: number;
238
+ currency: string;
239
+ status: MissionStatus;
240
+ notes?: string;
241
+ aiPreGeneratedAt?: Date;
242
+ completedAt?: Date;
243
+ canceledAt?: Date;
244
+ id: string;
245
+ createdAt: Date;
246
+ updatedAt: Date;
247
+ }>>;
248
+ submitReview: (missionId: string, body: SubmitReviewBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
249
+ missionId: string;
250
+ reviewerId: string;
251
+ rating: number;
252
+ comment?: string;
253
+ id: string;
254
+ createdAt: Date;
255
+ updatedAt: Date;
256
+ }>>;
29
257
  contactReviewer: (reviewerId: string, body: {
30
258
  message: string;
31
259
  }, otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
32
- getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI[]>>;
33
- sendMessage: (missionId: string, body: SendMessageBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI>>;
260
+ getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
261
+ missionId: string;
262
+ senderId: string;
263
+ content: string;
264
+ readAt?: Date;
265
+ id: string;
266
+ createdAt: Date;
267
+ updatedAt: Date;
268
+ }[]>>;
269
+ sendMessage: (missionId: string, body: SendMessageBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
270
+ missionId: string;
271
+ senderId: string;
272
+ content: string;
273
+ readAt?: Date;
274
+ id: string;
275
+ createdAt: Date;
276
+ updatedAt: Date;
277
+ }>>;
34
278
  getChatStreamUrl: (missionId: string) => string;
35
279
  uploadMainPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
36
280
  uploadCoverPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
37
- validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
281
+ validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
282
+ userId: string;
283
+ name?: string;
284
+ bio?: string;
285
+ mainPicture?: string;
286
+ coverPicture?: string;
287
+ languagePairs: {
288
+ from: string;
289
+ to: string;
290
+ }[];
291
+ categories: ReviewerCategory[];
292
+ pricePerHour: number;
293
+ status: ReviewerStatus;
294
+ totalMissions: number;
295
+ averageRating: number;
296
+ reviewCount: number;
297
+ stripeAccountId?: string;
298
+ socialLinks?: {
299
+ github?: string;
300
+ linkedin?: string;
301
+ portfolio?: string;
302
+ };
303
+ isHidden?: boolean;
304
+ id: string;
305
+ createdAt: Date;
306
+ updatedAt: Date;
307
+ }>>;
38
308
  getAdminReviewers: (params?: {
39
309
  page?: number;
40
310
  pageSize?: number;
41
311
  status?: string;
42
- }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
312
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
313
+ userId: string;
314
+ name?: string;
315
+ bio?: string;
316
+ mainPicture?: string;
317
+ coverPicture?: string;
318
+ languagePairs: {
319
+ from: string;
320
+ to: string;
321
+ }[];
322
+ categories: ReviewerCategory[];
323
+ pricePerHour: number;
324
+ status: ReviewerStatus;
325
+ totalMissions: number;
326
+ averageRating: number;
327
+ reviewCount: number;
328
+ stripeAccountId?: string;
329
+ socialLinks?: {
330
+ github?: string;
331
+ linkedin?: string;
332
+ portfolio?: string;
333
+ };
334
+ isHidden?: boolean;
335
+ id: string;
336
+ createdAt: Date;
337
+ updatedAt: Date;
338
+ }>>;
43
339
  };
44
340
  /**
45
341
  * Authenticated `reviewer` endpoint bound to an Intlayer CMS authenticator.
@@ -48,41 +344,335 @@ declare const getReviewerAPI: (authAPIOptions?: FetcherOptions, intlayerConfig?:
48
344
  * the build-time configuration (`@intlayer/config/built`).
49
345
  */
50
346
  declare const reviewerEndpoint: CMSEndpoint<{
51
- getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
347
+ getMarketplace: (params?: GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
348
+ userId: string;
349
+ name?: string;
350
+ bio?: string;
351
+ mainPicture?: string;
352
+ coverPicture?: string;
353
+ languagePairs: {
354
+ from: string;
355
+ to: string;
356
+ }[];
357
+ categories: ReviewerCategory[];
358
+ pricePerHour: number;
359
+ status: ReviewerStatus;
360
+ totalMissions: number;
361
+ averageRating: number;
362
+ reviewCount: number;
363
+ stripeAccountId?: string;
364
+ socialLinks?: {
365
+ github?: string;
366
+ linkedin?: string;
367
+ portfolio?: string;
368
+ };
369
+ isHidden?: boolean;
370
+ id: string;
371
+ createdAt: Date;
372
+ updatedAt: Date;
373
+ }>>;
52
374
  getPriceDistribution: (params?: Pick<GetMarketplaceQuery, "fromLocale" | "toLocale" | "minRating" | "categories">, otherOptions?: FetcherOptions) => Promise<ResponseData<PriceDistributionData>>;
53
- getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
375
+ getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
376
+ userId: string;
377
+ name?: string;
378
+ bio?: string;
379
+ mainPicture?: string;
380
+ coverPicture?: string;
381
+ languagePairs: {
382
+ from: string;
383
+ to: string;
384
+ }[];
385
+ categories: ReviewerCategory[];
386
+ pricePerHour: number;
387
+ status: ReviewerStatus;
388
+ totalMissions: number;
389
+ averageRating: number;
390
+ reviewCount: number;
391
+ stripeAccountId?: string;
392
+ socialLinks?: {
393
+ github?: string;
394
+ linkedin?: string;
395
+ portfolio?: string;
396
+ };
397
+ isHidden?: boolean;
398
+ id: string;
399
+ createdAt: Date;
400
+ updatedAt: Date;
401
+ }>>;
54
402
  getReviewerReviews: (reviewerId: string, params?: {
55
403
  page?: number;
56
404
  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>>;
405
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
406
+ missionId: string;
407
+ reviewerId: string;
408
+ rating: number;
409
+ comment?: string;
410
+ id: string;
411
+ createdAt: Date;
412
+ updatedAt: Date;
413
+ }>>;
414
+ getMyReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<{
415
+ userId: string;
416
+ name?: string;
417
+ bio?: string;
418
+ mainPicture?: string;
419
+ coverPicture?: string;
420
+ languagePairs: {
421
+ from: string;
422
+ to: string;
423
+ }[];
424
+ categories: ReviewerCategory[];
425
+ pricePerHour: number;
426
+ status: ReviewerStatus;
427
+ totalMissions: number;
428
+ averageRating: number;
429
+ reviewCount: number;
430
+ stripeAccountId?: string;
431
+ socialLinks?: {
432
+ github?: string;
433
+ linkedin?: string;
434
+ portfolio?: string;
435
+ };
436
+ isHidden?: boolean;
437
+ id: string;
438
+ createdAt: Date;
439
+ updatedAt: Date;
440
+ }>>;
441
+ registerAsReviewer: (body: RegisterReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
442
+ userId: string;
443
+ name?: string;
444
+ bio?: string;
445
+ mainPicture?: string;
446
+ coverPicture?: string;
447
+ languagePairs: {
448
+ from: string;
449
+ to: string;
450
+ }[];
451
+ categories: ReviewerCategory[];
452
+ pricePerHour: number;
453
+ status: ReviewerStatus;
454
+ totalMissions: number;
455
+ averageRating: number;
456
+ reviewCount: number;
457
+ stripeAccountId?: string;
458
+ socialLinks?: {
459
+ github?: string;
460
+ linkedin?: string;
461
+ portfolio?: string;
462
+ };
463
+ isHidden?: boolean;
464
+ id: string;
465
+ createdAt: Date;
466
+ updatedAt: Date;
467
+ }>>;
468
+ updateReviewerProfile: (body: UpdateReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
469
+ userId: string;
470
+ name?: string;
471
+ bio?: string;
472
+ mainPicture?: string;
473
+ coverPicture?: string;
474
+ languagePairs: {
475
+ from: string;
476
+ to: string;
477
+ }[];
478
+ categories: ReviewerCategory[];
479
+ pricePerHour: number;
480
+ status: ReviewerStatus;
481
+ totalMissions: number;
482
+ averageRating: number;
483
+ reviewCount: number;
484
+ stripeAccountId?: string;
485
+ socialLinks?: {
486
+ github?: string;
487
+ linkedin?: string;
488
+ portfolio?: string;
489
+ };
490
+ isHidden?: boolean;
491
+ id: string;
492
+ createdAt: Date;
493
+ updatedAt: Date;
494
+ }>>;
61
495
  deleteReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
62
496
  estimateMission: (body: EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<MissionEstimate>>;
63
- createMission: (body: CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
497
+ createMission: (body: CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
498
+ reviewerId: string;
499
+ clientUserId: string;
500
+ projectId?: string;
501
+ dictionaryIds: string[];
502
+ sourceLocale: string;
503
+ targetLocales: string[];
504
+ wordCount: number;
505
+ estimatedHours: number;
506
+ pricePerHour: number;
507
+ totalPrice: number;
508
+ currency: string;
509
+ status: MissionStatus;
510
+ notes?: string;
511
+ aiPreGeneratedAt?: Date;
512
+ completedAt?: Date;
513
+ canceledAt?: Date;
514
+ id: string;
515
+ createdAt: Date;
516
+ updatedAt: Date;
517
+ }>>;
64
518
  getMyMissions: (params?: {
65
519
  role?: "client" | "reviewer";
66
520
  page?: number;
67
521
  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>>;
522
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
523
+ reviewerId: string;
524
+ clientUserId: string;
525
+ projectId?: string;
526
+ dictionaryIds: string[];
527
+ sourceLocale: string;
528
+ targetLocales: string[];
529
+ wordCount: number;
530
+ estimatedHours: number;
531
+ pricePerHour: number;
532
+ totalPrice: number;
533
+ currency: string;
534
+ status: MissionStatus;
535
+ notes?: string;
536
+ aiPreGeneratedAt?: Date;
537
+ completedAt?: Date;
538
+ canceledAt?: Date;
539
+ id: string;
540
+ createdAt: Date;
541
+ updatedAt: Date;
542
+ }>>;
543
+ getMissionById: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
544
+ reviewerId: string;
545
+ clientUserId: string;
546
+ projectId?: string;
547
+ dictionaryIds: string[];
548
+ sourceLocale: string;
549
+ targetLocales: string[];
550
+ wordCount: number;
551
+ estimatedHours: number;
552
+ pricePerHour: number;
553
+ totalPrice: number;
554
+ currency: string;
555
+ status: MissionStatus;
556
+ notes?: string;
557
+ aiPreGeneratedAt?: Date;
558
+ completedAt?: Date;
559
+ canceledAt?: Date;
560
+ id: string;
561
+ createdAt: Date;
562
+ updatedAt: Date;
563
+ }>>;
564
+ updateMissionStatus: (missionId: string, body: UpdateMissionStatusBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
565
+ reviewerId: string;
566
+ clientUserId: string;
567
+ projectId?: string;
568
+ dictionaryIds: string[];
569
+ sourceLocale: string;
570
+ targetLocales: string[];
571
+ wordCount: number;
572
+ estimatedHours: number;
573
+ pricePerHour: number;
574
+ totalPrice: number;
575
+ currency: string;
576
+ status: MissionStatus;
577
+ notes?: string;
578
+ aiPreGeneratedAt?: Date;
579
+ completedAt?: Date;
580
+ canceledAt?: Date;
581
+ id: string;
582
+ createdAt: Date;
583
+ updatedAt: Date;
584
+ }>>;
585
+ submitReview: (missionId: string, body: SubmitReviewBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
586
+ missionId: string;
587
+ reviewerId: string;
588
+ rating: number;
589
+ comment?: string;
590
+ id: string;
591
+ createdAt: Date;
592
+ updatedAt: Date;
593
+ }>>;
72
594
  contactReviewer: (reviewerId: string, body: {
73
595
  message: string;
74
596
  }, 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>>;
597
+ getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
598
+ missionId: string;
599
+ senderId: string;
600
+ content: string;
601
+ readAt?: Date;
602
+ id: string;
603
+ createdAt: Date;
604
+ updatedAt: Date;
605
+ }[]>>;
606
+ sendMessage: (missionId: string, body: SendMessageBody, otherOptions?: FetcherOptions) => Promise<ResponseData<{
607
+ missionId: string;
608
+ senderId: string;
609
+ content: string;
610
+ readAt?: Date;
611
+ id: string;
612
+ createdAt: Date;
613
+ updatedAt: Date;
614
+ }>>;
77
615
  getChatStreamUrl: (missionId: string) => string;
78
616
  uploadMainPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
79
617
  uploadCoverPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
80
- validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
618
+ validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<{
619
+ userId: string;
620
+ name?: string;
621
+ bio?: string;
622
+ mainPicture?: string;
623
+ coverPicture?: string;
624
+ languagePairs: {
625
+ from: string;
626
+ to: string;
627
+ }[];
628
+ categories: ReviewerCategory[];
629
+ pricePerHour: number;
630
+ status: ReviewerStatus;
631
+ totalMissions: number;
632
+ averageRating: number;
633
+ reviewCount: number;
634
+ stripeAccountId?: string;
635
+ socialLinks?: {
636
+ github?: string;
637
+ linkedin?: string;
638
+ portfolio?: string;
639
+ };
640
+ isHidden?: boolean;
641
+ id: string;
642
+ createdAt: Date;
643
+ updatedAt: Date;
644
+ }>>;
81
645
  getAdminReviewers: (params?: {
82
646
  page?: number;
83
647
  pageSize?: number;
84
648
  status?: string;
85
- }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
649
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<{
650
+ userId: string;
651
+ name?: string;
652
+ bio?: string;
653
+ mainPicture?: string;
654
+ coverPicture?: string;
655
+ languagePairs: {
656
+ from: string;
657
+ to: string;
658
+ }[];
659
+ categories: ReviewerCategory[];
660
+ pricePerHour: number;
661
+ status: ReviewerStatus;
662
+ totalMissions: number;
663
+ averageRating: number;
664
+ reviewCount: number;
665
+ stripeAccountId?: string;
666
+ socialLinks?: {
667
+ github?: string;
668
+ linkedin?: string;
669
+ portfolio?: string;
670
+ };
671
+ isHidden?: boolean;
672
+ id: string;
673
+ createdAt: Date;
674
+ updatedAt: Date;
675
+ }>>;
86
676
  }>;
87
677
  //#endregion
88
678
  export { getReviewerAPI, reviewerEndpoint };