@intlayer/api 8.3.0-canary.4 → 8.3.1

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 (171) hide show
  1. package/dist/types/apps/backend/dist/types/controllers/ai.controller.d.ts +88 -0
  2. package/dist/types/apps/backend/dist/types/controllers/ai.controller.d.ts.map +1 -0
  3. package/dist/types/apps/backend/dist/types/controllers/dictionary.controller.d.ts +81 -0
  4. package/dist/types/apps/backend/dist/types/controllers/dictionary.controller.d.ts.map +1 -0
  5. package/dist/types/apps/backend/dist/types/controllers/eventListener.controller.d.ts +1 -0
  6. package/dist/types/apps/backend/dist/types/controllers/github.controller.d.ts +1 -0
  7. package/dist/types/apps/backend/dist/types/controllers/newsletter.controller.d.ts +26 -0
  8. package/dist/types/apps/backend/dist/types/controllers/newsletter.controller.d.ts.map +1 -0
  9. package/dist/types/apps/backend/dist/types/controllers/oAuth2.controller.d.ts +8 -0
  10. package/dist/types/apps/backend/dist/types/controllers/oAuth2.controller.d.ts.map +1 -0
  11. package/dist/types/apps/backend/dist/types/controllers/organization.controller.d.ts +64 -0
  12. package/dist/types/apps/backend/dist/types/controllers/organization.controller.d.ts.map +1 -0
  13. package/dist/types/apps/backend/dist/types/controllers/project.controller.d.ts +75 -0
  14. package/dist/types/apps/backend/dist/types/controllers/project.controller.d.ts.map +1 -0
  15. package/dist/types/apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts +27 -0
  16. package/dist/types/apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts.map +1 -0
  17. package/dist/types/apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts +31 -0
  18. package/dist/types/apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts.map +1 -0
  19. package/dist/types/apps/backend/dist/types/controllers/search.controller.d.ts +20 -0
  20. package/dist/types/apps/backend/dist/types/controllers/search.controller.d.ts.map +1 -0
  21. package/dist/types/apps/backend/dist/types/controllers/showcaseProject.controller.d.ts +76 -0
  22. package/dist/types/apps/backend/dist/types/controllers/showcaseProject.controller.d.ts.map +1 -0
  23. package/dist/types/apps/backend/dist/types/controllers/stripe.controller.d.ts +31 -0
  24. package/dist/types/apps/backend/dist/types/controllers/stripe.controller.d.ts.map +1 -0
  25. package/dist/types/apps/backend/dist/types/controllers/tag.controller.d.ts +35 -0
  26. package/dist/types/apps/backend/dist/types/controllers/tag.controller.d.ts.map +1 -0
  27. package/dist/types/apps/backend/dist/types/controllers/translation.controller.d.ts +1 -0
  28. package/dist/types/apps/backend/dist/types/controllers/user.controller.d.ts +36 -0
  29. package/dist/types/apps/backend/dist/types/controllers/user.controller.d.ts.map +1 -0
  30. package/dist/types/apps/backend/dist/types/export.d.ts +27 -0
  31. package/dist/types/apps/backend/dist/types/middlewares/sessionAuth.middleware.d.ts +12 -0
  32. package/dist/types/apps/backend/dist/types/middlewares/sessionAuth.middleware.d.ts.map +1 -0
  33. package/dist/types/apps/backend/dist/types/services/audit/types.d.ts +34 -0
  34. package/dist/types/apps/backend/dist/types/services/audit/types.d.ts.map +1 -0
  35. package/dist/types/apps/backend/dist/types/services/ci.service.d.ts +1 -0
  36. package/dist/types/apps/backend/dist/types/services/github.service.d.ts +1 -0
  37. package/dist/types/apps/backend/dist/types/services/subscription.service.d.ts +11 -0
  38. package/dist/types/apps/backend/dist/types/services/subscription.service.d.ts.map +1 -0
  39. package/dist/types/apps/backend/dist/types/types/dictionary.types.d.ts +47 -0
  40. package/dist/types/apps/backend/dist/types/types/dictionary.types.d.ts.map +1 -0
  41. package/dist/types/apps/backend/dist/types/types/discussion.types.d.ts +28 -0
  42. package/dist/types/apps/backend/dist/types/types/discussion.types.d.ts.map +1 -0
  43. package/dist/types/apps/backend/dist/types/types/oAuth2.types.d.ts +16 -0
  44. package/dist/types/apps/backend/dist/types/types/oAuth2.types.d.ts.map +1 -0
  45. package/dist/types/apps/backend/dist/types/types/organization.types.d.ts +33 -0
  46. package/dist/types/apps/backend/dist/types/types/organization.types.d.ts.map +1 -0
  47. package/dist/types/apps/backend/dist/types/types/plan.types.d.ts +23 -0
  48. package/dist/types/apps/backend/dist/types/types/plan.types.d.ts.map +1 -0
  49. package/dist/types/apps/backend/dist/types/types/project.types.d.ts +92 -0
  50. package/dist/types/apps/backend/dist/types/types/project.types.d.ts.map +1 -0
  51. package/dist/types/apps/backend/dist/types/types/session.types.d.ts +28 -0
  52. package/dist/types/apps/backend/dist/types/types/session.types.d.ts.map +1 -0
  53. package/dist/types/apps/backend/dist/types/types/showcaseProject.types.d.ts +59 -0
  54. package/dist/types/apps/backend/dist/types/types/showcaseProject.types.d.ts.map +1 -0
  55. package/dist/types/apps/backend/dist/types/types/tag.types.d.ts +31 -0
  56. package/dist/types/apps/backend/dist/types/types/tag.types.d.ts.map +1 -0
  57. package/dist/types/apps/backend/dist/types/types/user.types.d.ts +28 -0
  58. package/dist/types/apps/backend/dist/types/types/user.types.d.ts.map +1 -0
  59. package/dist/types/apps/backend/dist/types/utils/AI/askDocQuestion/askDocQuestion.d.ts +8 -0
  60. package/dist/types/apps/backend/dist/types/utils/AI/askDocQuestion/askDocQuestion.d.ts.map +1 -0
  61. package/dist/types/apps/backend/dist/types/utils/AI/auditDictionary/index.d.ts +14 -0
  62. package/dist/types/apps/backend/dist/types/utils/AI/auditDictionary/index.d.ts.map +1 -0
  63. package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryField/index.d.ts +11 -0
  64. package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryField/index.d.ts.map +1 -0
  65. package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryMetadata/index.d.ts +1 -0
  66. package/dist/types/apps/backend/dist/types/utils/AI/auditTag/index.d.ts +8 -0
  67. package/dist/types/apps/backend/dist/types/utils/AI/auditTag/index.d.ts.map +1 -0
  68. package/dist/types/apps/backend/dist/types/utils/AI/customQuery/index.d.ts +11 -0
  69. package/dist/types/apps/backend/dist/types/utils/AI/customQuery/index.d.ts.map +1 -0
  70. package/dist/types/apps/backend/dist/types/utils/AI/translateJSON/index.d.ts +21 -0
  71. package/dist/types/apps/backend/dist/types/utils/AI/translateJSON/index.d.ts.map +1 -0
  72. package/dist/types/apps/backend/dist/types/utils/auth/getAuth.d.ts +1 -0
  73. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +31 -0
  74. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts.map +1 -0
  75. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +19 -0
  76. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts.map +1 -0
  77. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts +12 -0
  78. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts.map +1 -0
  79. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +25 -0
  80. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts.map +1 -0
  81. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +18 -0
  82. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts.map +1 -0
  83. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +16 -0
  84. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts.map +1 -0
  85. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts +20 -0
  86. package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts.map +1 -0
  87. package/dist/types/apps/backend/dist/types/utils/httpStatusCodes.d.ts +408 -0
  88. package/dist/types/apps/backend/dist/types/utils/httpStatusCodes.d.ts.map +1 -0
  89. package/dist/types/apps/backend/dist/types/utils/permissions.d.ts +37 -0
  90. package/dist/types/apps/backend/dist/types/utils/permissions.d.ts.map +1 -0
  91. package/dist/types/apps/backend/dist/types/utils/responseData.d.ts +27 -0
  92. package/dist/types/apps/backend/dist/types/utils/responseData.d.ts.map +1 -0
  93. package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +1 -1
  94. package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
  95. package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +1 -1
  96. package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
  97. package/dist/types/getIntlayerAPI/ai.d.ts +2 -1
  98. package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
  99. package/dist/types/getIntlayerAPI/audit.d.ts +2 -1
  100. package/dist/types/getIntlayerAPI/audit.d.ts.map +1 -1
  101. package/dist/types/getIntlayerAPI/dictionary.d.ts +1 -1
  102. package/dist/types/getIntlayerAPI/editor.d.ts +2 -2
  103. package/dist/types/getIntlayerAPI/newsletter.d.ts +1 -1
  104. package/dist/types/getIntlayerAPI/oAuth.d.ts +1 -0
  105. package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
  106. package/dist/types/getIntlayerAPI/organization.d.ts +1 -1
  107. package/dist/types/getIntlayerAPI/project.d.ts +3 -1
  108. package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
  109. package/dist/types/getIntlayerAPI/search.d.ts +1 -1
  110. package/dist/types/getIntlayerAPI/showcaseProject.d.ts +1 -1
  111. package/dist/types/getIntlayerAPI/stripe.d.ts +1 -1
  112. package/dist/types/getIntlayerAPI/tag.d.ts +1 -1
  113. package/dist/types/getIntlayerAPI/user.d.ts +5 -2
  114. package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
  115. package/dist/types/index.d.ts +6 -3
  116. package/dist/types/packages/@intlayer/ai/dist/types/aiSdk.d.ts +110 -0
  117. package/dist/types/packages/@intlayer/ai/dist/types/aiSdk.d.ts.map +1 -0
  118. package/dist/types/packages/@intlayer/ai/dist/types/auditDictionaryMetadata/index.d.ts +12 -0
  119. package/dist/types/packages/@intlayer/ai/dist/types/auditDictionaryMetadata/index.d.ts.map +1 -0
  120. package/dist/types/packages/@intlayer/ai/dist/types/customQuery.d.ts +8 -0
  121. package/dist/types/packages/@intlayer/ai/dist/types/customQuery.d.ts.map +1 -0
  122. package/dist/types/packages/@intlayer/ai/dist/types/index.d.ts +27 -0
  123. package/dist/types/packages/@intlayer/ai/dist/types/index.d.ts.map +1 -0
  124. package/dist/types/packages/@intlayer/ai/dist/types/translateJSON/index.d.ts +10 -0
  125. package/dist/types/packages/@intlayer/ai/dist/types/translateJSON/index.d.ts.map +1 -0
  126. package/dist/types/packages/@intlayer/chokidar/dist/types/build.d.ts +1 -0
  127. package/dist/types/packages/@intlayer/chokidar/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +1 -0
  128. package/dist/types/packages/@intlayer/chokidar/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +2 -0
  129. package/dist/types/packages/@intlayer/chokidar/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +2 -0
  130. package/dist/types/packages/@intlayer/chokidar/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +1 -0
  131. package/dist/types/packages/@intlayer/chokidar/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +2 -0
  132. package/dist/types/packages/@intlayer/chokidar/dist/types/cleanOutputDir.d.ts +1 -0
  133. package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +1 -0
  134. package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +1 -0
  135. package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +1 -0
  136. package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +1 -0
  137. package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +1 -0
  138. package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +1 -0
  139. package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +1 -0
  140. package/dist/types/packages/@intlayer/chokidar/dist/types/createType/createModuleAugmentation.d.ts +1 -0
  141. package/dist/types/packages/@intlayer/chokidar/dist/types/createType/createType.d.ts +2 -0
  142. package/dist/types/packages/@intlayer/chokidar/dist/types/formatDictionary.d.ts +1 -0
  143. package/dist/types/packages/@intlayer/chokidar/dist/types/intlayer/dist/types/index.d.ts +1 -0
  144. package/dist/types/packages/@intlayer/chokidar/dist/types/loadDictionaries/loadContentDeclaration.d.ts +2 -0
  145. package/dist/types/packages/@intlayer/chokidar/dist/types/loadDictionaries/loadDictionaries.d.ts +2 -0
  146. package/dist/types/packages/@intlayer/chokidar/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +2 -0
  147. package/dist/types/packages/@intlayer/chokidar/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +1 -0
  148. package/dist/types/packages/@intlayer/chokidar/dist/types/prepareIntlayer.d.ts +1 -0
  149. package/dist/types/packages/@intlayer/chokidar/dist/types/writeConfiguration/index.d.ts +1 -0
  150. package/dist/types/packages/@intlayer/chokidar/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +6 -0
  151. package/dist/types/packages/@intlayer/chokidar/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -0
  152. package/dist/types/packages/@intlayer/chokidar/dist/types/writeContentDeclaration/transformJSFile.d.ts +2 -0
  153. package/dist/types/packages/@intlayer/chokidar/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +3 -0
  154. package/dist/types/packages/@intlayer/chokidar/dist/types/writeContentDeclaration/writeJSFile.d.ts +2 -0
  155. package/dist/types/packages/@intlayer/core/dist/types/messageFormat/ICU.d.ts +1 -0
  156. package/dist/types/packages/@intlayer/core/dist/types/messageFormat/i18next.d.ts +1 -0
  157. package/dist/types/packages/@intlayer/core/dist/types/messageFormat/index.d.ts +1 -0
  158. package/dist/types/packages/@intlayer/core/dist/types/messageFormat/vue-i18n.d.ts +1 -0
  159. package/dist/types/packages/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts +10 -0
  160. package/dist/types/packages/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +1 -0
  161. package/dist/types/packages/intlayer-editor/server/dist/controllers/configuration.controller.d.ts +12 -0
  162. package/dist/types/packages/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +1 -0
  163. package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +25 -0
  164. package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +1 -0
  165. package/dist/types/packages/intlayer-editor/server/dist/export.d.ts +2 -0
  166. package/dist/types/packages/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts +408 -0
  167. package/dist/types/packages/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +1 -0
  168. package/dist/types/packages/intlayer-editor/server/dist/utils/responseData.d.ts +20 -0
  169. package/dist/types/packages/intlayer-editor/server/dist/utils/responseData.d.ts.map +1 -0
  170. package/dist/types/types.d.ts +1 -1
  171. package/package.json +3 -3
@@ -0,0 +1,88 @@
1
+ import { TagAPI } from "../types/tag.types.js";
2
+ import { DiscussionAPI } from "../types/discussion.types.js";
3
+ import { PaginatedResponse, ResponseData } from "../utils/responseData.js";
4
+ import { AIConfig, AIOptions, AiProviders, ChatCompletionRequestMessage } from "../../../../../packages/@intlayer/ai/dist/types/aiSdk.js";
5
+ import { AuditFileResultData } from "../../../../../packages/@intlayer/ai/dist/types/auditDictionaryMetadata/index.js";
6
+ import { CustomQueryResultData } from "../../../../../packages/@intlayer/ai/dist/types/customQuery.js";
7
+ import { TranslateJSONResultData } from "../../../../../packages/@intlayer/ai/dist/types/translateJSON/index.js";
8
+ import { AskDocQuestionResult as AskDocQuestionResult$1 } from "../utils/AI/askDocQuestion/askDocQuestion.js";
9
+ import { AuditFileResultData as AuditFileResultData$1 } from "../utils/AI/auditDictionary/index.js";
10
+ import { AuditDictionaryFieldResultData } from "../utils/AI/auditDictionaryField/index.js";
11
+ import { TranslateJSONResultData as TranslateJSONResultData$1 } from "../utils/AI/auditTag/index.js";
12
+ import { CustomQueryOptions } from "../utils/AI/customQuery/index.js";
13
+ import { TranslateJSONOptions } from "../utils/AI/translateJSON/index.js";
14
+ import { DiscussionFiltersParams } from "../utils/filtersAndPagination/getDiscussionFiltersAndPagination.js";
15
+ import { Locale } from "@intlayer/types/allLocales";
16
+ import { KeyPath } from "@intlayer/types/keyPath";
17
+
18
+ //#region ../../../apps/backend/dist/types/controllers/ai.controller.d.ts
19
+ //#region src/controllers/ai.controller.d.ts
20
+ type ReplaceAIConfigByOptions<T> = Omit<T, 'aiConfig'> & {
21
+ aiOptions?: AIOptions;
22
+ };
23
+ type CustomQueryBody = ReplaceAIConfigByOptions<CustomQueryOptions> & {
24
+ tagsKeys?: string[];
25
+ applicationContext?: string;
26
+ };
27
+ type CustomQueryResult = ResponseData<CustomQueryResultData>;
28
+ type TranslateJSONBody = Omit<ReplaceAIConfigByOptions<TranslateJSONOptions<JSON>>, 'tags'> & {
29
+ tagsKeys?: string[];
30
+ };
31
+ type TranslateJSONResult = ResponseData<TranslateJSONResultData<JSON>>;
32
+ type AuditContentDeclarationBody = {
33
+ aiOptions?: AIOptions;
34
+ locales: Locale[];
35
+ defaultLocale: Locale;
36
+ fileContent: string;
37
+ filePath?: string;
38
+ tagsKeys?: string[];
39
+ };
40
+ type AuditContentDeclarationResult = ResponseData<AuditFileResultData$1>;
41
+ /**
42
+ * Retrieves a list of dictionaries based on filters and pagination.
43
+ */
44
+ type AuditContentDeclarationFieldBody = {
45
+ aiOptions?: AIOptions;
46
+ locales: Locale[];
47
+ fileContent: string;
48
+ filePath?: string;
49
+ tagsKeys?: string[];
50
+ keyPath: KeyPath[];
51
+ };
52
+ type AuditContentDeclarationFieldResult = ResponseData<AuditDictionaryFieldResultData>;
53
+ /**
54
+ * Retrieves a list of dictionaries based on filters and pagination.
55
+ */
56
+ type AuditContentDeclarationMetadataBody = {
57
+ aiOptions?: AIOptions;
58
+ fileContent: string;
59
+ };
60
+ type AuditContentDeclarationMetadataResult = ResponseData<AuditFileResultData>;
61
+ /**
62
+ * Retrieves a list of dictionaries based on filters and pagination.
63
+ */
64
+ type AuditTagBody = {
65
+ aiOptions?: AIOptions;
66
+ tag: TagAPI;
67
+ };
68
+ type AuditTagResult = ResponseData<TranslateJSONResultData$1>;
69
+ /**
70
+ * Retrieves a list of dictionaries based on filters and pagination.
71
+ */
72
+ type AskDocQuestionResult = ResponseData<AskDocQuestionResult$1>;
73
+ type AutocompleteResponse = ResponseData<{
74
+ autocompletion: string;
75
+ }>;
76
+ type GetDiscussionsParams = ({
77
+ page?: string | number;
78
+ pageSize?: string | number;
79
+ includeMessages?: 'true' | 'false';
80
+ } & DiscussionFiltersParams) | undefined;
81
+ type GetDiscussionsResult = PaginatedResponse<DiscussionAPI>;
82
+ /**
83
+ * Retrieves a list of discussions with filters and pagination.
84
+ * Only the owner or admins can access. By default, users only see their own.
85
+ */
86
+ //#endregion
87
+ export { AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationFieldResult, AuditContentDeclarationMetadataBody, AuditContentDeclarationMetadataResult, AuditContentDeclarationResult, AuditTagBody, AuditTagResult, AutocompleteResponse, CustomQueryBody, CustomQueryResult, GetDiscussionsParams, GetDiscussionsResult, TranslateJSONBody, TranslateJSONResult };
88
+ //# sourceMappingURL=ai.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.controller.d.ts","names":["AskDocQuestionResult","AskDocQuestionResult$1","TagAPI","AuditFileResultData","AuditDictionaryFieldResultData","AuditFileResultData$1","TranslateJSONResultData","CustomQueryOptions","CustomQueryResultData","TranslateJSONOptions","TranslateJSONResultData$1","DiscussionAPI","DiscussionFiltersParams","PaginatedResponse","ResponseData","AIConfig","AIOptions","AIOptions$1","AIProvider","ChatCompletionRequestMessage","ChatCompletionRequestMessage$1","Locale","KeyPath","FastifyReply","FastifyRequest","ReplaceAIConfigByOptions","T","Omit","aiOptions","CustomQueryBody","tagsKeys","applicationContext","CustomQueryResult","customQuery","Promise","Body","request","reply","TranslateJSONBody","JSON","TranslateJSONResult","translateJSON","AuditContentDeclarationBody","locales","defaultLocale","fileContent","filePath","AuditContentDeclarationResult","auditContentDeclaration","AuditContentDeclarationFieldBody","keyPath","AuditContentDeclarationFieldResult","auditContentDeclarationField","AuditContentDeclarationMetadataBody","AuditContentDeclarationMetadataResult","auditContentDeclarationMetadata","AuditTagBody","tag","AuditTagResult","auditTag","AskDocQuestionBody","messages","discussionId","askDocQuestion","AutocompleteBody","text","contextBefore","currentLine","contextAfter","AutocompleteResponse","autocompletion","autocomplete","GetDiscussionsParams","page","pageSize","includeMessages","GetDiscussionsResult","getDiscussions","Querystring"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/ai.controller.d.ts"],"mappings":";;;;;;;;;;;;;;;;;;;KAiBKyB,wBAAAA,MAA8BE,IAAAA,CAAKD,CAAAA;EACtCE,SAAAA,GAAYX,SAAAA;AAAAA;AAAAA,KAETY,eAAAA,GAAkBJ,wBAAAA,CAAyBlB,kBAAAA;EAC9CuB,QAAAA;EACAC,kBAAAA;AAAAA;AAAAA,KAEGC,iBAAAA,GAAoBlB,YAAAA,CAAaN,qBAAAA;AAAAA,KAIjC8B,iBAAAA,GAAoBX,IAAAA,CAAKF,wBAAAA,CAAyBhB,oBAAAA,CAAqB8B,IAAAA;EAC1ET,QAAAA;AAAAA;AAAAA,KAEGU,mBAAAA,GAAsB1B,YAAAA,CAAaJ,uBAAAA,CAA0B6B,IAAAA;AAAAA,KAI7DG,2BAAAA;EACHd,SAAAA,GAAYX,SAAAA;EACZ0B,OAAAA,EAAStB,MAAAA;EACTuB,aAAAA,EAAevB,MAAAA;EACfwB,WAAAA;EACAC,QAAAA;EACAhB,QAAAA;AAAAA;AAAAA,KAEGiB,6BAAAA,GAAgCjC,YAAAA,CAAaX,qBAAAA;;AArB9B;;KA4Bf8C,gCAAAA;EACHrB,SAAAA,GAAYX,SAAAA;EACZ0B,OAAAA,EAAStB,MAAAA;EACTwB,WAAAA;EACAC,QAAAA;EACAhB,QAAAA;EACAoB,OAAAA,EAAS5B,OAAAA;AAAAA;AAAAA,KAEN6B,kCAAAA,GAAqCrC,YAAAA,CAAaV,8BAAAA;;;;KAOlDiD,mCAAAA;EACHzB,SAAAA,GAAYX,SAAAA;EACZ4B,WAAAA;AAAAA;AAAAA,KAEGS,qCAAAA,GAAwCxC,YAAAA,CAAaT,mBAAAA;;;;KAOrDmD,YAAAA;EACH5B,SAAAA,GAAYX,SAAAA;EACZwC,GAAAA,EAAKvD,MAAAA;AAAAA;AAAAA,KAEFwD,cAAAA,GAAiB5C,YAAAA,CAAaR,yBAAAA;;;;KAW9BN,oBAAAA,GAAuBc,YAAAA,CAAab,sBAAAA;AAAAA,KAWpCoE,oBAAAA,GAAuBvD,YAAAA;EAC1BwD,cAAAA;AAAAA;AAAAA,KAKGE,oBAAAA;EACHC,IAAAA;EACAC,QAAAA;EACAC,eAAAA;AAAAA,IACE/D,uBAAAA;AAAAA,KACCgE,oBAAAA,GAAuB/D,iBAAAA,CAAkBF,aAAAA"}
@@ -0,0 +1,81 @@
1
+ import { Dictionary as Dictionary$1, DictionaryAPI, DictionaryCreationData } from "../types/dictionary.types.js";
2
+ import { PaginatedResponse, ResponseData } from "../utils/responseData.js";
3
+ import { FiltersAndPagination } from "../utils/filtersAndPagination/getFiltersAndPaginationFromBody.js";
4
+ import { DictionaryFiltersParams } from "../utils/filtersAndPagination/getDictionaryFiltersAndPagination.js";
5
+ import { Dictionary, DictionaryId, LocalDictionaryId } from "@intlayer/types/dictionary";
6
+
7
+ //#region ../../../apps/backend/dist/types/controllers/dictionary.controller.d.ts
8
+ //#region src/controllers/dictionary.controller.d.ts
9
+ type GetDictionariesParams = FiltersAndPagination<DictionaryFiltersParams>;
10
+ type GetDictionariesResult = PaginatedResponse<DictionaryAPI>;
11
+ /**
12
+ * Retrieves a list of dictionaries based on filters and pagination.
13
+ */
14
+ type GetDictionariesKeysResult = ResponseData<string[]>;
15
+ /**
16
+ * Retrieves a list of dictionaries keys based on filters and pagination.
17
+ */
18
+ type GetDictionariesUpdateTimestampResult = ResponseData<Record<DictionaryId, {
19
+ key: string;
20
+ updatedAt: number;
21
+ }>>;
22
+ /**
23
+ * Retrieves a list of dictionaries keys based on filters and pagination.
24
+ */
25
+ type GetDictionaryParams = {
26
+ dictionaryKey: string;
27
+ };
28
+ type GetDictionaryQuery = {
29
+ version?: string;
30
+ };
31
+ type GetDictionaryResult = ResponseData<DictionaryAPI>;
32
+ /**
33
+ * Retrieves a list of dictionaries based on filters and pagination.
34
+ */
35
+ type AddDictionaryBody = {
36
+ dictionary: DictionaryCreationData;
37
+ };
38
+ type AddDictionaryResult = ResponseData<DictionaryAPI>;
39
+ /**
40
+ * Adds a new dictionary to the database.
41
+ */
42
+ type PushDictionariesBody = {
43
+ dictionaries: Dictionary[];
44
+ };
45
+ type PushDictionariesResultData = {
46
+ newDictionaries: {
47
+ key: string;
48
+ localId: LocalDictionaryId;
49
+ id: string | undefined;
50
+ }[];
51
+ updatedDictionaries: {
52
+ key: string;
53
+ localId: LocalDictionaryId;
54
+ id: string | undefined;
55
+ }[];
56
+ error: {
57
+ id: string | undefined;
58
+ key: string;
59
+ localId: LocalDictionaryId | undefined;
60
+ message: string;
61
+ }[];
62
+ };
63
+ type PushDictionariesResult = ResponseData<PushDictionariesResultData>;
64
+ /**
65
+ * Check each dictionaries, add the new ones and update the existing ones.
66
+ */
67
+ type UpdateDictionaryBody = Partial<Dictionary$1>;
68
+ type UpdateDictionaryResult = ResponseData<DictionaryAPI>;
69
+ /**
70
+ * Updates an existing dictionary in the database.
71
+ */
72
+ type DeleteDictionaryParam = {
73
+ dictionaryId: string;
74
+ };
75
+ type DeleteDictionaryResult = ResponseData<DictionaryAPI>;
76
+ /**
77
+ * Deletes a dictionary from the database by its ID.
78
+ */
79
+ //#endregion
80
+ export { AddDictionaryBody, AddDictionaryResult, DeleteDictionaryParam, DeleteDictionaryResult, GetDictionariesKeysResult, GetDictionariesParams, GetDictionariesResult, GetDictionariesUpdateTimestampResult, GetDictionaryParams, GetDictionaryQuery, GetDictionaryResult, PushDictionariesBody, PushDictionariesResult, UpdateDictionaryBody, UpdateDictionaryResult };
81
+ //# sourceMappingURL=dictionary.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dictionary.controller.d.ts","names":["Dictionary","Dictionary$1","DictionaryAPI","DictionaryCreationData","FiltersAndPagination","PaginatedResponse","ResponseData","DictionaryFiltersParams","DictionaryId","LocalDictionaryId","FastifyReply","FastifyRequest","GetDictionariesParams","GetDictionariesResult","getDictionaries","Promise","Querystring","request","reply","GetDictionariesKeysResult","getDictionariesKeys","_request","GetDictionariesUpdateTimestampResult","Record","key","updatedAt","getDictionariesUpdateTimestamp","GetDictionaryParams","dictionaryKey","GetDictionaryQuery","version","GetDictionaryResult","getDictionaryByKey","Params","AddDictionaryBody","dictionary","AddDictionaryResult","addDictionary","Body","PushDictionariesBody","dictionaries","PushDictionariesResultData","newDictionaries","localId","id","updatedDictionaries","error","message","PushDictionariesResult","pushDictionaries","UpdateDictionaryParam","dictionaryId","UpdateDictionaryBody","Partial","UpdateDictionaryResult","updateDictionary","DeleteDictionaryParam","DeleteDictionaryResult","deleteDictionary"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/dictionary.controller.d.ts"],"mappings":";;;;;;;;KAQKY,qBAAAA,GAAwBR,oBAAAA,CAAqBG,uBAAAA;AAAAA,KAC7CM,qBAAAA,GAAwBR,iBAAAA,CAAkBH,aAAAA;;;AAD0B;KAQpEiB,yBAAAA,GAA4Bb,YAAAA;AADE;;;AAAA,KAM9BgB,oCAAAA,GAAuChB,YAAAA,CAAaiB,MAAAA,CAAOf,YAAAA;EAC9DgB,GAAAA;EACAC,SAAAA;AAAAA;;;;KAMGE,mBAAAA;EACHC,aAAAA;AAAAA;AAAAA,KAEGC,kBAAAA;EACHC,OAAAA;AAAAA;AAAAA,KAEGC,mBAAAA,GAAsBzB,YAAAA,CAAaJ,aAAAA;;AAPgE;;KAenGgC,iBAAAA;EACHC,UAAAA,EAAYhC,sBAAAA;AAAAA;AAAAA,KAETiC,mBAAAA,GAAsB9B,YAAAA,CAAaJ,aAAAA;AAb/B;;;AAAA,KAoBJqC,oBAAAA;EACHC,YAAAA,EAAcxC,UAAAA;AAAAA;AAAAA,KAEXyC,0BAAAA;EACHC,eAAAA;IACElB,GAAAA;IACAmB,OAAAA,EAASlC,iBAAAA;IACTmC,EAAAA;EAAAA;EAEFC,mBAAAA;IACErB,GAAAA;IACAmB,OAAAA,EAASlC,iBAAAA;IACTmC,EAAAA;EAAAA;EAEFE,KAAAA;IACEF,EAAAA;IACApB,GAAAA;IACAmB,OAAAA,EAASlC,iBAAAA;IACTsC,OAAAA;EAAAA;AAAAA;AAAAA,KAGCC,sBAAAA,GAAyB1C,YAAAA,CAAamC,0BAAAA;;;;KAUtCW,oBAAAA,GAAuBC,OAAAA,CAAQpD,YAAAA;AAAAA,KAC/BqD,sBAAAA,GAAyBhD,YAAAA,CAAaJ,aAAAA;;;;KAQtCsD,qBAAAA;EACHL,YAAAA;AAAAA;AAAAA,KAEGM,sBAAAA,GAAyBnD,YAAAA,CAAaJ,aAAAA;;AAd7B"}
@@ -0,0 +1,26 @@
1
+ import { EmailsList, UserAPI } from "../types/user.types.js";
2
+ import { ResponseData } from "../utils/responseData.js";
3
+
4
+ //#region ../../../apps/backend/dist/types/controllers/newsletter.controller.d.ts
5
+ //#region src/controllers/newsletter.controller.d.ts
6
+ type NewsletterSubscriptionBody = {
7
+ email: string;
8
+ emailList: EmailsList | EmailsList[];
9
+ };
10
+ type NewsletterSubscriptionResult = ResponseData<UserAPI>;
11
+ /**
12
+ * Subscribes a user to the newsletter.
13
+ * If the user doesn't exist, creates a new user.
14
+ * If the user exists, updates their newsletter subscription to true.
15
+ */
16
+ type NewsletterUnsubscriptionBody = {
17
+ userId: string;
18
+ emailList: EmailsList | EmailsList[];
19
+ };
20
+ /**
21
+ * Unsubscribes a user from the newsletter.
22
+ * Only works if the user exists.
23
+ */
24
+ //#endregion
25
+ export { NewsletterSubscriptionBody, NewsletterSubscriptionResult, NewsletterUnsubscriptionBody };
26
+ //# sourceMappingURL=newsletter.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newsletter.controller.d.ts","names":["EmailsList","UserAPI","ResponseData","FastifyReply","FastifyRequest","NewsletterSubscriptionBody","email","emailList","NewsletterSubscriptionResult","subscribeToNewsletter","Promise","Body","request","reply","NewsletterUnsubscriptionBody","userId","unsubscribeFromNewsletter","getNewsletterStatus","_request"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/newsletter.controller.d.ts"],"mappings":";;;;;KAKKK,0BAAAA;EACHC,KAAAA;EACAC,SAAAA,EAAWP,UAAAA,GAAaA,UAAAA;AAAAA;AAAAA,KAErBQ,4BAAAA,GAA+BN,YAAAA,CAAaD,OAAAA;;;;;AAFb;KAW/Ba,4BAAAA;EACHC,MAAAA;EACAR,SAAAA,EAAWP,UAAAA,GAAaA,UAAAA;AAAAA"}
@@ -0,0 +1,8 @@
1
+ import { ResponseData } from "../utils/responseData.js";
2
+ import { OAuth2Token } from "../types/oAuth2.types.js";
3
+
4
+ //#region ../../../apps/backend/dist/types/controllers/oAuth2.controller.d.ts
5
+ type GetOAuth2TokenResult = ResponseData<OAuth2Token>;
6
+ //#endregion
7
+ export { GetOAuth2TokenResult };
8
+ //# sourceMappingURL=oAuth2.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oAuth2.controller.d.ts","names":["ResponseData","OAuth2Token","FastifyReply","FastifyRequest","GetOAuth2TokenBody","grant_type","client_id","client_secret","GetOAuth2TokenResult","getOAuth2AccessToken","Promise","Body","request","reply"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/oAuth2.controller.d.ts"],"mappings":";;;;KAUKQ,oBAAAA,GAAuBR,YAAAA,CAAaC,WAAAA"}
@@ -0,0 +1,64 @@
1
+ import { User, UserAPI } from "../types/user.types.js";
2
+ import { Organization, OrganizationAPI, OrganizationCreationData } from "../types/organization.types.js";
3
+ import { PaginatedResponse, ResponseData } from "../utils/responseData.js";
4
+ import { FiltersAndPagination } from "../utils/filtersAndPagination/getFiltersAndPaginationFromBody.js";
5
+ import { OrganizationFiltersParams } from "../utils/filtersAndPagination/getOrganizationFiltersAndPagination.js";
6
+ import { Types } from "mongoose";
7
+
8
+ //#region ../../../apps/backend/dist/types/controllers/organization.controller.d.ts
9
+ //#region src/controllers/organization.controller.d.ts
10
+ type GetOrganizationsParams = FiltersAndPagination<OrganizationFiltersParams>;
11
+ type GetOrganizationsResult = PaginatedResponse<OrganizationAPI>;
12
+ /**
13
+ * Retrieves a list of organizations based on filters and pagination.
14
+ */
15
+ type GetOrganizationParam = {
16
+ organizationId: string;
17
+ };
18
+ type GetOrganizationResult = ResponseData<OrganizationAPI>;
19
+ /**
20
+ * Retrieves an organization by its ID.
21
+ */
22
+ type AddOrganizationBody = OrganizationCreationData;
23
+ type AddOrganizationResult = ResponseData<OrganizationAPI>;
24
+ /**
25
+ * Adds a new organization to the database.
26
+ */
27
+ type UpdateOrganizationBody = Partial<Organization>;
28
+ type UpdateOrganizationResult = ResponseData<OrganizationAPI>;
29
+ /**
30
+ * Updates an existing organization in the database.
31
+ */
32
+ type AddOrganizationMemberBody = {
33
+ userEmail: string;
34
+ };
35
+ type AddOrganizationMemberResult = ResponseData<OrganizationAPI>;
36
+ /**
37
+ * Add member to the organization in the database.
38
+ */
39
+ type UpdateOrganizationMembersBody = Partial<{
40
+ membersIds: (User | UserAPI)['id'][];
41
+ adminsIds: (User | UserAPI)['id'][];
42
+ }>;
43
+ type UpdateOrganizationMembersResult = ResponseData<OrganizationAPI>;
44
+ /**
45
+ * Update members to the organization in the database.
46
+ */
47
+ type DeleteOrganizationResult = ResponseData<OrganizationAPI>;
48
+ /**
49
+ * Deletes an organization from the database by its ID.
50
+ */
51
+ type SelectOrganizationParam = {
52
+ organizationId: string | Types.ObjectId;
53
+ };
54
+ type SelectOrganizationResult = ResponseData<OrganizationAPI>;
55
+ /**
56
+ * Select an organization.
57
+ */
58
+ type UnselectOrganizationResult = ResponseData<null>;
59
+ /**
60
+ * Unselect an organization.
61
+ */
62
+ //#endregion
63
+ export { AddOrganizationBody, AddOrganizationMemberBody, AddOrganizationMemberResult, AddOrganizationResult, DeleteOrganizationResult, GetOrganizationParam, GetOrganizationResult, GetOrganizationsParams, GetOrganizationsResult, SelectOrganizationParam, SelectOrganizationResult, UnselectOrganizationResult, UpdateOrganizationBody, UpdateOrganizationMembersBody, UpdateOrganizationMembersResult, UpdateOrganizationResult };
64
+ //# sourceMappingURL=organization.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.controller.d.ts","names":["User","UserAPI","Organization","OrganizationAPI","OrganizationCreationData","FiltersAndPagination","PaginatedResponse","ResponseData","OrganizationFiltersParams","Types","FastifyReply","FastifyRequest","GetOrganizationsParams","GetOrganizationsResult","getOrganizations","Promise","Querystring","request","reply","GetOrganizationParam","organizationId","GetOrganizationResult","getOrganization","Params","AddOrganizationBody","AddOrganizationResult","addOrganization","Body","UpdateOrganizationBody","Partial","UpdateOrganizationResult","updateOrganization","AddOrganizationMemberBody","userEmail","AddOrganizationMemberResult","addOrganizationMember","UpdateOrganizationMembersBody","membersIds","adminsIds","UpdateOrganizationMembersResult","updateOrganizationMembers","UpdateOrganizationMembersByIdParams","UpdateOrganizationMembersByIdBody","UpdateOrganizationMembersByIdResult","updateOrganizationMembersById","DeleteOrganizationResult","deleteOrganization","_request","SelectOrganizationParam","ObjectId","SelectOrganizationResult","selectOrganization","UnselectOrganizationResult","unselectOrganization"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/organization.controller.d.ts"],"mappings":";;;;;;;;;KASKY,sBAAAA,GAAyBP,oBAAAA,CAAqBG,yBAAAA;AAAAA,KAC9CK,sBAAAA,GAAyBP,iBAAAA,CAAkBH,eAAAA;;;AAD4B;KAQvEgB,oBAAAA;EACHC,cAAAA;AAAAA;AAAAA,KAEGC,qBAAAA,GAAwBd,YAAAA,CAAaJ,eAAAA;;;AAF1B;KASXqB,mBAAAA,GAAsBpB,wBAAAA;AAAAA,KACtBqB,qBAAAA,GAAwBlB,YAAAA,CAAaJ,eAAAA;;;;KAOrCyB,sBAAAA,GAAyBC,OAAAA,CAAQ3B,YAAAA;AAAAA,KACjC4B,wBAAAA,GAA2BvB,YAAAA,CAAaJ,eAAAA;;AAFV;;KAS9B6B,yBAAAA;EACHC,SAAAA;AAAAA;AAAAA,KAEGC,2BAAAA,GAA8B3B,YAAAA,CAAaJ,eAAAA;;AAJb;;KAW9BiC,6BAAAA,GAAgCP,OAAAA;EACnCQ,UAAAA,GAAarC,IAAAA,GAAOC,OAAAA;EACpBqC,SAAAA,GAAYtC,IAAAA,GAAOC,OAAAA;AAAAA;AAAAA,KAEhBsC,+BAAAA,GAAkChC,YAAAA,CAAaJ,eAAAA;AALjB;;;AAAA,KA2B9B0C,wBAAAA,GAA2BtC,YAAAA,CAAaJ,eAAAA;;;AADV;KAM9B6C,uBAAAA;EACH5B,cAAAA,WAAyBX,KAAAA,CAAMwC,QAAAA;AAAAA;AAAAA,KAE5BC,wBAAAA,GAA2B3C,YAAAA,CAAaJ,eAAAA;;;;KAOxCiD,0BAAAA,GAA6B7C,YAAAA;;AATO"}
@@ -0,0 +1,75 @@
1
+ import { ProjectAPI, ProjectConfiguration, ProjectCreationData } from "../types/project.types.js";
2
+ import { PaginatedResponse, ResponseData } from "../utils/responseData.js";
3
+ import { FiltersAndPagination } from "../utils/filtersAndPagination/getFiltersAndPaginationFromBody.js";
4
+ import { ProjectFiltersParams } from "../utils/filtersAndPagination/getProjectFiltersAndPagination.js";
5
+ import { Types } from "mongoose";
6
+
7
+ //#region ../../../apps/backend/dist/types/controllers/project.controller.d.ts
8
+ //#region src/controllers/project.controller.d.ts
9
+ type GetProjectsParams = FiltersAndPagination<ProjectFiltersParams>;
10
+ type GetProjectsResult = PaginatedResponse<ProjectAPI>;
11
+ /**
12
+ * Retrieves a list of projects based on filters and pagination.
13
+ */
14
+ type AddProjectBody = ProjectCreationData;
15
+ type AddProjectResult = ResponseData<ProjectAPI>;
16
+ /**
17
+ * Adds a new project to the database.
18
+ */
19
+ type UpdateProjectBody = Partial<ProjectAPI>;
20
+ type UpdateProjectResult = ResponseData<ProjectAPI>;
21
+ /**
22
+ * Updates an existing project in the database.
23
+ */
24
+ type ProjectMemberByIdOption = {
25
+ userId: string | Types.ObjectId;
26
+ isAdmin?: boolean;
27
+ };
28
+ type UpdateProjectMembersBody = Partial<{
29
+ membersIds: ProjectMemberByIdOption[];
30
+ }>;
31
+ type UpdateProjectMembersResult = ResponseData<ProjectAPI>;
32
+ /**
33
+ * Update members to the dictionary in the database.
34
+ */
35
+ type PushProjectConfigurationBody = ProjectConfiguration;
36
+ type PushProjectConfigurationResult = ResponseData<ProjectConfiguration>;
37
+ /**
38
+ * Pushes a project configuration to the database.
39
+ */
40
+ type TriggerBuildResult = ResponseData<{
41
+ results: Array<{
42
+ target: string;
43
+ success: boolean;
44
+ message?: string;
45
+ }>;
46
+ }>;
47
+ type TriggerWebhookBody = {
48
+ webhookIndex: number;
49
+ };
50
+ type TriggerWebhookResult = ResponseData<{
51
+ target: string;
52
+ success: boolean;
53
+ message?: string;
54
+ }>;
55
+ /**
56
+ * Triggers CI builds for a project (Git provider pipelines and webhooks)
57
+ */
58
+ type DeleteProjectResult = ResponseData<ProjectAPI>;
59
+ /**
60
+ * Deletes a project from the database by its ID.
61
+ */
62
+ type SelectProjectParam = {
63
+ projectId: string | Types.ObjectId;
64
+ };
65
+ type SelectProjectResult = ResponseData<ProjectAPI>;
66
+ /**
67
+ * Select a project.
68
+ */
69
+ type UnselectProjectResult = ResponseData<null>;
70
+ /**
71
+ * Unselect a project.
72
+ */
73
+ //#endregion
74
+ export { AddProjectBody, AddProjectResult, DeleteProjectResult, GetProjectsParams, GetProjectsResult, ProjectMemberByIdOption, PushProjectConfigurationBody, PushProjectConfigurationResult, SelectProjectParam, SelectProjectResult, TriggerBuildResult, TriggerWebhookBody, TriggerWebhookResult, UnselectProjectResult, UpdateProjectBody, UpdateProjectMembersBody, UpdateProjectMembersResult, UpdateProjectResult };
75
+ //# sourceMappingURL=project.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.controller.d.ts","names":["ProjectAPI","ProjectConfiguration","ProjectCreationData","FiltersAndPagination","PaginatedResponse","ResponseData","CIStatus","ProjectFiltersParams","Types","FastifyReply","FastifyRequest","GetProjectsParams","GetProjectsResult","getProjects","Promise","Querystring","request","reply","AddProjectBody","AddProjectResult","addProject","Body","UpdateProjectBody","Partial","UpdateProjectResult","updateProject","ProjectMemberByIdOption","ObjectId","userId","isAdmin","UpdateProjectMembersBody","membersIds","UpdateProjectMembersResult","updateProjectMembers","PushProjectConfigurationBody","PushProjectConfigurationResult","pushProjectConfiguration","TriggerBuildResult","Array","results","target","success","message","TriggerWebhookBody","webhookIndex","TriggerWebhookResult","triggerBuild","triggerWebhook","DeleteProjectResult","deleteProject","_request","SelectProjectParam","projectId","SelectProjectResult","selectProject","Params","UnselectProjectResult","unselectProject","GetCIConfigurationResult","getCIConfiguration","PushCIConfigurationResult","pushCIConfiguration"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/project.controller.d.ts"],"mappings":";;;;;;;;KASKW,iBAAAA,GAAoBR,oBAAAA,CAAqBI,oBAAAA;AAAAA,KACzCK,iBAAAA,GAAoBR,iBAAAA,CAAkBJ,UAAAA;;;AADuB;KAQ7DkB,cAAAA,GAAiBhB,mBAAAA;AAAAA,KACjBiB,gBAAAA,GAAmBd,YAAAA,CAAaL,UAAAA;;;;KAOhCsB,iBAAAA,GAAoBC,OAAAA,CAAQvB,UAAAA;AAAAA,KAC5BwB,mBAAAA,GAAsBnB,YAAAA,CAAaL,UAAAA;;AAFL;;KAS9B0B,uBAAAA;EACHE,MAAAA,WAAiBpB,KAAAA,CAAMmB,QAAAA;EACvBE,OAAAA;AAAAA;AAAAA,KAEGC,wBAAAA,GAA2BP,OAAAA;EAC9BQ,UAAAA,EAAYL,uBAAAA;AAAAA;AAAAA,KAETM,0BAAAA,GAA6B3B,YAAAA,CAAaL,UAAAA;;;;KAO1CkC,4BAAAA,GAA+BjC,oBAAAA;AAAAA,KAC/BkC,8BAAAA,GAAiC9B,YAAAA,CAAaJ,oBAAAA;;;;KAO9CoC,kBAAAA,GAAqBhC,YAAAA;EACxBkC,OAAAA,EAASD,KAAAA;IACPE,MAAAA;IACAC,OAAAA;IACAC,OAAAA;EAAAA;AAAAA;AAAAA,KAGCC,kBAAAA;EACHC,YAAAA;AAAAA;AAAAA,KAEGC,oBAAAA,GAAuBxC,YAAAA;EAC1BmC,MAAAA;EACAC,OAAAA;EACAC,OAAAA;AAAAA;;;AAdiC;KA0B9BM,mBAAAA,GAAsB3C,YAAAA,CAAaL,UAAAA;;;;KAKnCmD,kBAAAA;EACHC,SAAAA,WAAoB5C,KAAAA,CAAMmB,QAAAA;AAAAA;AAAAA,KAEvB0B,mBAAAA,GAAsBhD,YAAAA,CAAaL,UAAAA;AAzB1B;;;AAAA,KAgCTwD,qBAAAA,GAAwBnD,YAAAA"}
@@ -0,0 +1,27 @@
1
+ import { AccessKeyData, OAuth2Access } from "../types/project.types.js";
2
+ import { ResponseData } from "../utils/responseData.js";
3
+
4
+ //#region ../../../apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts
5
+ //#region src/controllers/projectAccessKey.controller.d.ts
6
+ type AddNewAccessKeyBody = AccessKeyData;
7
+ type AddNewAccessKeyResponse = ResponseData<OAuth2Access>;
8
+ /**
9
+ * Adds a new access key to a project.
10
+ */
11
+ type DeleteAccessKeyBody = {
12
+ clientId: string;
13
+ };
14
+ type DeleteAccessKeyResponse = ResponseData<null>;
15
+ /**
16
+ * Deletes an access key from a project.
17
+ */
18
+ type RefreshAccessKeyBody = {
19
+ clientId: string;
20
+ };
21
+ type RefreshAccessKeyResponse = ResponseData<OAuth2Access>;
22
+ /**
23
+ * Refreshes an access key from a project.
24
+ */
25
+ //#endregion
26
+ export { AddNewAccessKeyBody, AddNewAccessKeyResponse, DeleteAccessKeyBody, DeleteAccessKeyResponse, RefreshAccessKeyBody, RefreshAccessKeyResponse };
27
+ //# sourceMappingURL=projectAccessKey.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projectAccessKey.controller.d.ts","names":["AccessKeyData","OAuth2Access","ResponseData","FastifyReply","FastifyRequest","AddNewAccessKeyBody","AddNewAccessKeyResponse","addNewAccessKey","Promise","Body","request","reply","DeleteAccessKeyBody","clientId","DeleteAccessKeyResponse","deleteAccessKey","RefreshAccessKeyBody","RefreshAccessKeyResponse","refreshAccessKey"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts"],"mappings":";;;;;KAKKK,mBAAAA,GAAsBL,aAAAA;AAAAA,KACtBM,uBAAAA,GAA0BJ,YAAAA,CAAaD,YAAAA;;;AADJ;KAQnCW,mBAAAA;EACHC,QAAAA;AAAAA;AAAAA,KAEGC,uBAAAA,GAA0BZ,YAAAA;;;AAFrB;KASLc,oBAAAA;EACHH,QAAAA;AAAAA;AAAAA,KAEGI,wBAAAA,GAA2Bf,YAAAA,CAAaD,YAAAA;;;AAFnC"}
@@ -0,0 +1,31 @@
1
+ //#region ../../../apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts
2
+ //#region src/controllers/recursiveAudit.controller.d.ts
3
+ type StartRecursiveAuditResult = {
4
+ jobId: string;
5
+ };
6
+ type RecursiveAuditJobInfo = {
7
+ _id: string;
8
+ targetUrl: string;
9
+ userId?: string;
10
+ status: 'pending' | 'running' | 'paused' | 'cancelled' | 'completed' | 'failed';
11
+ progress: number;
12
+ totalPageCount: number;
13
+ completedPageCount: number;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ };
17
+ type RecursiveAuditPageInfo = {
18
+ _id: string;
19
+ url: string;
20
+ status: 'pending' | 'running' | 'completed' | 'failed';
21
+ score?: number;
22
+ error?: string;
23
+ results?: any[];
24
+ };
25
+ type GetRecursiveAuditStatusResult = {
26
+ job: RecursiveAuditJobInfo;
27
+ pages: RecursiveAuditPageInfo[];
28
+ };
29
+ //#endregion
30
+ export { GetRecursiveAuditStatusResult, RecursiveAuditJobInfo, RecursiveAuditPageInfo, StartRecursiveAuditResult };
31
+ //# sourceMappingURL=recursiveAudit.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recursiveAudit.controller.d.ts","names":["FastifyReply","FastifyRequest","StartRecursiveAuditResult","jobId","DiscoverUrlsResult","urls","RecursiveAuditJobInfo","Date","_id","targetUrl","userId","status","progress","totalPageCount","completedPageCount","createdAt","updatedAt","RecursiveAuditPageInfo","url","score","error","results","GetRecursiveAuditStatusResult","job","pages","discoverUrls","Promise","Querystring","request","reply","startRecursiveAudit","Body","getRecursiveAuditStatus","Params","cancelRecursiveAudit","pauseRecursiveAudit","resumeRecursiveAudit"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/recursiveAudit.controller.d.ts"],"mappings":";;KAGKE,yBAAAA;EACHC,KAAAA;AAAAA;AAAAA,KAKGG,qBAAAA;EACHE,GAAAA;EACAC,SAAAA;EACAC,MAAAA;EACAC,MAAAA;EACAC,QAAAA;EACAC,cAAAA;EACAC,kBAAAA;EACAC,SAAAA,EAAWR,IAAAA;EACXS,SAAAA,EAAWT,IAAAA;AAAAA;AAAAA,KAERU,sBAAAA;EACHT,GAAAA;EACAU,GAAAA;EACAP,MAAAA;EACAQ,KAAAA;EACAC,KAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,6BAAAA;EACHC,GAAAA,EAAKjB,qBAAAA;EACLkB,KAAAA,EAAOP,sBAAAA;AAAAA"}
@@ -0,0 +1,20 @@
1
+ import { ResponseData } from "../utils/responseData.js";
2
+
3
+ //#region ../../../apps/backend/dist/types/controllers/search.controller.d.ts
4
+ //#region src/controllers/search.controller.d.ts
5
+ type SearchDocUtilParams = {
6
+ input: string;
7
+ limit?: string;
8
+ returnContent?: string;
9
+ };
10
+ type SearchDocResult = {
11
+ fileKey: string;
12
+ chunkNumber: number;
13
+ content?: string;
14
+ docUrl: string;
15
+ docName: string;
16
+ };
17
+ type SearchDocUtilResult = ResponseData<string[] | SearchDocResult[]>;
18
+ //#endregion
19
+ export { SearchDocResult, SearchDocUtilParams, SearchDocUtilResult };
20
+ //# sourceMappingURL=search.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.controller.d.ts","names":["ResponseData","FastifyReply","FastifyRequest","SearchDocUtilParams","input","limit","returnContent","SearchDocResult","fileKey","chunkNumber","content","docUrl","docName","SearchDocUtilResult","searchDocUtil","Promise","Querystring","request","reply"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/search.controller.d.ts"],"mappings":";;;;KAIKG,mBAAAA;EACHC,KAAAA;EACAC,KAAAA;EACAC,aAAAA;AAAAA;AAAAA,KAEGC,eAAAA;EACHC,OAAAA;EACAC,WAAAA;EACAC,OAAAA;EACAC,MAAAA;EACAC,OAAAA;AAAAA;AAAAA,KAEGC,mBAAAA,GAAsBb,YAAAA,YAAwBO,eAAAA"}
@@ -0,0 +1,76 @@
1
+ import { PaginatedResponse, ResponseData } from "../utils/responseData.js";
2
+ import { ShowcaseProjectAPI } from "../types/showcaseProject.types.js";
3
+ import { z } from "zod";
4
+
5
+ //#region ../../../apps/backend/dist/types/controllers/showcaseProject.controller.d.ts
6
+ //#region src/controllers/showcaseProject.controller.d.ts
7
+ declare const submitProjectSchema: z.ZodObject<{
8
+ name: z.ZodString;
9
+ url: z.ZodURL;
10
+ githubUrl: z.ZodPipe<z.ZodUnion<[z.ZodOptional<z.ZodURL>, z.ZodLiteral<"">]>, z.ZodTransform<string, string>>;
11
+ useCases: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ }, z.core.$strip>;
13
+ type SubmitShowcaseProjectBody = z.input<typeof submitProjectSchema>;
14
+ type SubmitShowcaseProjectResult = ResponseData<ShowcaseProjectAPI>;
15
+ /**
16
+ * POST /api/showcase-project/submit
17
+ * Submits a new project to the showcase.
18
+ */
19
+ type GetShowcaseProjectsResult = PaginatedResponse<ShowcaseProjectAPI>;
20
+ /**
21
+ * GET /api/showcase-project
22
+ */
23
+ type GetShowcaseProjectByIdParams = {
24
+ projectId: string;
25
+ };
26
+ type GetShowcaseProjectByIdResult = ResponseData<ShowcaseProjectAPI>;
27
+ /**
28
+ * GET /api/showcase-project/:projectId
29
+ */
30
+ type GetOtherShowcaseProjectsResult = ResponseData<ShowcaseProjectAPI[]>;
31
+ /**
32
+ * GET /api/showcase-project/others?excludeId=...&limit=...
33
+ */
34
+ type ToggleShowcaseUpvoteBody = {
35
+ projectId: string;
36
+ };
37
+ type ToggleShowcaseUpvoteResult = ResponseData<{
38
+ upvotes: number;
39
+ isUpVoted: boolean;
40
+ downvotes: number;
41
+ isDownVoted: boolean;
42
+ }>;
43
+ /**
44
+ * POST /api/showcase-project/upvote
45
+ * Requires authentication — userId is read from the session.
46
+ */
47
+ type ToggleShowcaseDownvoteBody = {
48
+ projectId: string;
49
+ };
50
+ type ToggleShowcaseDownvoteResult = ResponseData<{
51
+ upvotes: number;
52
+ isUpVoted: boolean;
53
+ downvotes: number;
54
+ isDownVoted: boolean;
55
+ }>;
56
+ /**
57
+ * POST /api/showcase-project/downvote
58
+ * Requires authentication — userId is read from the session.
59
+ */
60
+ declare const updateProjectSchema: z.ZodObject<{
61
+ name: z.ZodOptional<z.ZodString>;
62
+ url: z.ZodOptional<z.ZodURL>;
63
+ githubUrl: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string, string>>;
64
+ tagline: z.ZodOptional<z.ZodString>;
65
+ description: z.ZodOptional<z.ZodString>;
66
+ useCases: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
+ }, z.core.$strip>;
68
+ type UpdateShowcaseProjectBody = z.input<typeof updateProjectSchema>;
69
+ type UpdateShowcaseProjectResult = ResponseData<ShowcaseProjectAPI>;
70
+ /**
71
+ * PATCH /api/showcase-project/:projectId
72
+ * Updates an existing project. Only the owner can update.
73
+ */
74
+ //#endregion
75
+ export { GetOtherShowcaseProjectsResult, GetShowcaseProjectByIdParams, GetShowcaseProjectByIdResult, GetShowcaseProjectsResult, SubmitShowcaseProjectBody, SubmitShowcaseProjectResult, ToggleShowcaseDownvoteBody, ToggleShowcaseDownvoteResult, ToggleShowcaseUpvoteBody, ToggleShowcaseUpvoteResult, UpdateShowcaseProjectBody, UpdateShowcaseProjectResult };
76
+ //# sourceMappingURL=showcaseProject.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"showcaseProject.controller.d.ts","names":["PaginatedResponse","ResponseData","ShowcaseProjectAPI","FastifyReply","FastifyRequest","z","submitProjectSchema","ZodString","ZodURL","ZodOptional","ZodLiteral","ZodUnion","ZodTransform","ZodPipe","ZodArray","core","$strip","ZodObject","name","url","githubUrl","useCases","SubmitShowcaseProjectBody","input","SubmitShowcaseProjectResult","submitShowcaseProject","Promise","Body","request","reply","GetShowcaseProjectsQuery","page","pageSize","search","selectedUseCases","isOpenSource","GetShowcaseProjectsResult","getShowcaseProjects","Querystring","GetShowcaseProjectByIdParams","projectId","GetShowcaseProjectByIdResult","getShowcaseProjectById","Params","GetOtherShowcaseProjectsQuery","excludeId","limit","GetOtherShowcaseProjectsResult","getOtherShowcaseProjects","ToggleShowcaseUpvoteBody","ToggleShowcaseUpvoteResult","upvotes","isUpVoted","downvotes","isDownVoted","toggleShowcaseUpvote","ToggleShowcaseDownvoteBody","ToggleShowcaseDownvoteResult","toggleShowcaseDownvote","updateProjectSchema","tagline","description","UpdateShowcaseProjectBody","UpdateShowcaseProjectParams","UpdateShowcaseProjectResult","updateShowcaseProjectHandler","DeleteShowcaseProjectParams","deleteShowcaseProjectHandler","ScanShowcaseProjectParams","scanShowcaseProject"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/showcaseProject.controller.d.ts"],"mappings":";;;;;;cAMcM,mBAAAA,EAAqBD,CAAAA,CAAEY,SAAAA;EACnCC,IAAAA,EAAMb,CAAAA,CAAEE,SAAAA;EACRY,GAAAA,EAAKd,CAAAA,CAAEG,MAAAA;EACPY,SAAAA,EAAWf,CAAAA,CAAEQ,OAAAA,CAAQR,CAAAA,CAAEM,QAAAA,EAAUN,CAAAA,CAAEI,WAAAA,CAAYJ,CAAAA,CAAEG,MAAAA,GAASH,CAAAA,CAAEK,UAAAA,QAAkBL,CAAAA,CAAEO,YAAAA;EAChFS,QAAAA,EAAUhB,CAAAA,CAAEI,WAAAA,CAAYJ,CAAAA,CAAES,QAAAA,CAAST,CAAAA,CAAEE,SAAAA;AAAAA,GACpCF,CAAAA,CAAEU,IAAAA,CAAKC,MAAAA;AAAAA,KACLM,yBAAAA,GAA4BjB,CAAAA,CAAEkB,KAAAA,QAAajB,mBAAAA;AAAAA,KAC3CkB,2BAAAA,GAA8BvB,YAAAA,CAAaC,kBAAAA;;;;;KAe3CkC,yBAAAA,GAA4BpC,iBAAAA,CAAkBE,kBAAAA;;;;KAO9CqC,4BAAAA;EACHC,SAAAA;AAAAA;AAAAA,KAEGC,4BAAAA,GAA+BxC,YAAAA,CAAaC,kBAAAA;;;;KAW5C6C,8BAAAA,GAAiC9C,YAAAA,CAAaC,kBAAAA;;;;KAO9C+C,wBAAAA;EACHT,SAAAA;AAAAA;AAAAA,KAEGU,0BAAAA,GAA6BjD,YAAAA;EAChCkD,OAAAA;EACAC,SAAAA;EACAC,SAAAA;EACAC,WAAAA;AAAAA;AAnDiE;;;;AAAA,KA4D9DE,0BAAAA;EACHhB,SAAAA;AAAAA;AAAAA,KAEGiB,4BAAAA,GAA+BxD,YAAAA;EAClCkD,OAAAA;EACAC,SAAAA;EACAC,SAAAA;EACAC,WAAAA;AAAAA;;;;;cASYK,mBAAAA,EAAqBtD,CAAAA,CAAEY,SAAAA;EACnCC,IAAAA,EAAMb,CAAAA,CAAEI,WAAAA,CAAYJ,CAAAA,CAAEE,SAAAA;EACtBY,GAAAA,EAAKd,CAAAA,CAAEI,WAAAA,CAAYJ,CAAAA,CAAEG,MAAAA;EACrBY,SAAAA,EAAWf,CAAAA,CAAEQ,OAAAA,CAAQR,CAAAA,CAAEI,WAAAA,CAAYJ,CAAAA,CAAEE,SAAAA,GAAYF,CAAAA,CAAEO,YAAAA;EACnDgD,OAAAA,EAASvD,CAAAA,CAAEI,WAAAA,CAAYJ,CAAAA,CAAEE,SAAAA;EACzBsD,WAAAA,EAAaxD,CAAAA,CAAEI,WAAAA,CAAYJ,CAAAA,CAAEE,SAAAA;EAC7Bc,QAAAA,EAAUhB,CAAAA,CAAEI,WAAAA,CAAYJ,CAAAA,CAAES,QAAAA,CAAST,CAAAA,CAAEE,SAAAA;AAAAA,GACpCF,CAAAA,CAAEU,IAAAA,CAAKC,MAAAA;AAAAA,KACL8C,yBAAAA,GAA4BzD,CAAAA,CAAEkB,KAAAA,QAAaoC,mBAAAA;AAAAA,KAI3CK,2BAAAA,GAA8B/D,YAAAA,CAAaC,kBAAAA"}
@@ -0,0 +1,31 @@
1
+ import { ResponseData } from "../utils/responseData.js";
2
+ import { PricingResult } from "../services/subscription.service.js";
3
+ import { Stripe } from "stripe";
4
+
5
+ //#region ../../../apps/backend/dist/types/controllers/stripe.controller.d.ts
6
+ //#region src/controllers/stripe.controller.d.ts
7
+ type GetPricingBody = {
8
+ priceIds: string[];
9
+ promoCode?: string;
10
+ };
11
+ type GetPricingResult = ResponseData<PricingResult>;
12
+ /**
13
+ * Simulate pricing for a given set of prices and a promotion code.
14
+ *
15
+ * @param request - The request object containing the price IDs and promotion code.
16
+ * @param reply - The response object to send the simulated pricing result.
17
+ */
18
+ type GetCheckoutSessionBody = {
19
+ priceId: string;
20
+ promoCode?: string;
21
+ };
22
+ type GetCheckoutSessionResult = ResponseData<{
23
+ subscription: Stripe.Response<Stripe.Subscription>;
24
+ clientSecret: string;
25
+ }>;
26
+ /**
27
+ * Handles subscription creation or update with Stripe and returns a ClientSecret.
28
+ */
29
+ //#endregion
30
+ export { GetCheckoutSessionBody, GetCheckoutSessionResult, GetPricingBody, GetPricingResult };
31
+ //# sourceMappingURL=stripe.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe.controller.d.ts","names":["Organization","ResponseData","PricingResult","FastifyReply","FastifyRequest","Stripe","GetPricingBody","priceIds","promoCode","GetPricingResult","getPricing","Promise","Body","request","reply","GetCheckoutSessionBody","priceId","GetCheckoutSessionResult","Subscription","Response","subscription","clientSecret","getSubscription","CancelSubscriptionData","CancelSubscriptionResult","cancelSubscription","_request"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/stripe.controller.d.ts"],"mappings":";;;;;;KAOKM,cAAAA;EACHC,QAAAA;EACAC,SAAAA;AAAAA;AAAAA,KAEGC,gBAAAA,GAAmBR,YAAAA,CAAaC,aAAAA;;;;AASF;;;KAC9Ba,sBAAAA;EACHC,OAAAA;EACAR,SAAAA;AAAAA;AAAAA,KAEGS,wBAAAA,GAA2BhB,YAAAA;EAC9BmB,YAAAA,EAAcf,MAAAA,CAAOc,QAAAA,CAASd,MAAAA,CAAOa,YAAAA;EACrCG,YAAAA;AAAAA"}