@intlayer/api 8.1.9 → 8.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/apps/backend/dist/types/controllers/ai.controller.d.ts +89 -0
- package/dist/types/apps/backend/dist/types/controllers/ai.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/dictionary.controller.d.ts +81 -0
- package/dist/types/apps/backend/dist/types/controllers/dictionary.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/eventListener.controller.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/controllers/github.controller.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/controllers/newsletter.controller.d.ts +26 -0
- package/dist/types/apps/backend/dist/types/controllers/newsletter.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/oAuth2.controller.d.ts +8 -0
- package/dist/types/apps/backend/dist/types/controllers/oAuth2.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/organization.controller.d.ts +64 -0
- package/dist/types/apps/backend/dist/types/controllers/organization.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/project.controller.d.ts +76 -0
- package/dist/types/apps/backend/dist/types/controllers/project.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts +27 -0
- package/dist/types/apps/backend/dist/types/controllers/projectAccessKey.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/search.controller.d.ts +20 -0
- package/dist/types/apps/backend/dist/types/controllers/search.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/stripe.controller.d.ts +31 -0
- package/dist/types/apps/backend/dist/types/controllers/stripe.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/tag.controller.d.ts +35 -0
- package/dist/types/apps/backend/dist/types/controllers/tag.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/controllers/translation.controller.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/controllers/user.controller.d.ts +36 -0
- package/dist/types/apps/backend/dist/types/controllers/user.controller.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/export.d.ts +27 -0
- package/dist/types/apps/backend/dist/types/middlewares/sessionAuth.middleware.d.ts +14 -0
- package/dist/types/apps/backend/dist/types/middlewares/sessionAuth.middleware.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/services/ci.service.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/services/github.service.d.ts +1 -0
- package/dist/types/apps/backend/dist/types/services/subscription.service.d.ts +11 -0
- package/dist/types/apps/backend/dist/types/services/subscription.service.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/dictionary.types.d.ts +47 -0
- package/dist/types/apps/backend/dist/types/types/dictionary.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/discussion.types.d.ts +28 -0
- package/dist/types/apps/backend/dist/types/types/discussion.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/oAuth2.types.d.ts +16 -0
- package/dist/types/apps/backend/dist/types/types/oAuth2.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/organization.types.d.ts +33 -0
- package/dist/types/apps/backend/dist/types/types/organization.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/plan.types.d.ts +23 -0
- package/dist/types/apps/backend/dist/types/types/plan.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/project.types.d.ts +91 -0
- package/dist/types/apps/backend/dist/types/types/project.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/session.types.d.ts +28 -0
- package/dist/types/apps/backend/dist/types/types/session.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/tag.types.d.ts +31 -0
- package/dist/types/apps/backend/dist/types/types/tag.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/types/user.types.d.ts +28 -0
- package/dist/types/apps/backend/dist/types/types/user.types.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/askDocQuestion/askDocQuestion.d.ts +10 -0
- package/dist/types/apps/backend/dist/types/utils/AI/askDocQuestion/askDocQuestion.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionary/index.d.ts +16 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionary/index.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryField/index.d.ts +12 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryField/index.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditDictionaryMetadata/index.d.ts +3 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditTag/index.d.ts +12 -0
- package/dist/types/apps/backend/dist/types/utils/AI/auditTag/index.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/customQuery/index.d.ts +13 -0
- package/dist/types/apps/backend/dist/types/utils/AI/customQuery/index.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/AI/translateJSON/index.d.ts +22 -0
- package/dist/types/apps/backend/dist/types/utils/AI/translateJSON/index.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/auth/getAuth.d.ts +2 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +34 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +21 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts +12 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +27 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +21 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +19 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts +23 -0
- package/dist/types/apps/backend/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/httpStatusCodes.d.ts +408 -0
- package/dist/types/apps/backend/dist/types/utils/httpStatusCodes.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/permissions.d.ts +39 -0
- package/dist/types/apps/backend/dist/types/utils/permissions.d.ts.map +1 -0
- package/dist/types/apps/backend/dist/types/utils/responseData.d.ts +27 -0
- package/dist/types/apps/backend/dist/types/utils/responseData.d.ts.map +1 -0
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts +2 -1
- package/dist/types/distantDictionary/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts +2 -1
- package/dist/types/distantDictionary/fetchDistantDictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/ai.d.ts +3 -1
- package/dist/types/getIntlayerAPI/ai.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts +2 -1
- package/dist/types/getIntlayerAPI/dictionary.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/editor.d.ts +3 -3
- package/dist/types/getIntlayerAPI/newsletter.d.ts +2 -1
- package/dist/types/getIntlayerAPI/newsletter.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/oAuth.d.ts +2 -0
- package/dist/types/getIntlayerAPI/oAuth.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/organization.d.ts +2 -1
- package/dist/types/getIntlayerAPI/organization.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/project.d.ts +4 -1
- package/dist/types/getIntlayerAPI/project.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/search.d.ts +2 -1
- package/dist/types/getIntlayerAPI/search.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts +2 -1
- package/dist/types/getIntlayerAPI/stripe.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/tag.d.ts +2 -1
- package/dist/types/getIntlayerAPI/tag.d.ts.map +1 -1
- package/dist/types/getIntlayerAPI/user.d.ts +6 -2
- package/dist/types/getIntlayerAPI/user.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/packages/@intlayer/ai/dist/types/aiSdk.d.ts +110 -0
- package/dist/types/packages/@intlayer/ai/dist/types/aiSdk.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/ai/dist/types/auditDictionaryMetadata/index.d.ts +14 -0
- package/dist/types/packages/@intlayer/ai/dist/types/auditDictionaryMetadata/index.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/ai/dist/types/customQuery.d.ts +10 -0
- package/dist/types/packages/@intlayer/ai/dist/types/customQuery.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/ai/dist/types/index.d.ts +27 -0
- package/dist/types/packages/@intlayer/ai/dist/types/index.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/ai/dist/types/translateJSON/index.d.ts +11 -0
- package/dist/types/packages/@intlayer/ai/dist/types/translateJSON/index.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/build.d.ts +28 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +4 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/buildIntlayerDictionary/index.d.ts +2 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +2 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +2 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/cleanOutputDir.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/createDictionaryEntryPoint/index.d.ts +7 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/createType/createModuleAugmentation.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/createType/createType.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/createType/index.d.ts +2 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/formatDictionary.d.ts +2 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/loadDictionaries/index.d.ts +4 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/loadDictionaries/loadContentDeclaration.d.ts +2 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/loadDictionaries/loadDictionaries.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/prepareIntlayer.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/writeConfiguration/index.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +6 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/writeContentDeclaration/index.d.ts +4 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/writeContentDeclaration/transformJSFile.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +1 -0
- package/dist/types/packages/@intlayer/chokidar/dist/types/writeContentDeclaration/writeJSFile.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/ICU.d.ts +1 -0
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/i18next.d.ts +2 -0
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/index.d.ts +3 -0
- package/dist/types/packages/@intlayer/core/dist/types/messageFormat/vue-i18n.d.ts +2 -0
- package/dist/types/packages/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts +8 -0
- package/dist/types/packages/@intlayer/unmerged-dictionaries-entry/dist/types/index.d.ts.map +1 -0
- package/dist/types/packages/intlayer-editor/server/dist/controllers/configuration.controller.d.ts +12 -0
- package/dist/types/packages/intlayer-editor/server/dist/controllers/configuration.controller.d.ts.map +1 -0
- package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts +26 -0
- package/dist/types/packages/intlayer-editor/server/dist/controllers/dictionary.controller.d.ts.map +1 -0
- package/dist/types/packages/intlayer-editor/server/dist/export.d.ts +2 -0
- package/dist/types/packages/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts +408 -0
- package/dist/types/packages/intlayer-editor/server/dist/utils/httpStatusCodes.d.ts.map +1 -0
- package/dist/types/packages/intlayer-editor/server/dist/utils/responseData.d.ts +20 -0
- package/dist/types/packages/intlayer-editor/server/dist/utils/responseData.d.ts.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,89 @@
|
|
|
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 "../../../../../packages/@intlayer/ai/dist/types/index.js";
|
|
9
|
+
import { AskDocQuestionResult as AskDocQuestionResult$1 } from "../utils/AI/askDocQuestion/askDocQuestion.js";
|
|
10
|
+
import { AuditFileResultData as AuditFileResultData$1 } from "../utils/AI/auditDictionary/index.js";
|
|
11
|
+
import { AuditDictionaryFieldResultData } from "../utils/AI/auditDictionaryField/index.js";
|
|
12
|
+
import "../utils/AI/auditDictionaryMetadata/index.js";
|
|
13
|
+
import { TranslateJSONResultData as TranslateJSONResultData$1 } from "../utils/AI/auditTag/index.js";
|
|
14
|
+
import { CustomQueryOptions } from "../utils/AI/customQuery/index.js";
|
|
15
|
+
import { TranslateJSONOptions } from "../utils/AI/translateJSON/index.js";
|
|
16
|
+
import { DiscussionFiltersParams } from "../utils/filtersAndPagination/getDiscussionFiltersAndPagination.js";
|
|
17
|
+
import { KeyPath, Locale } from "@intlayer/types";
|
|
18
|
+
|
|
19
|
+
//#region ../../../apps/backend/dist/types/controllers/ai.controller.d.ts
|
|
20
|
+
//#region src/controllers/ai.controller.d.ts
|
|
21
|
+
type ReplaceAIConfigByOptions<T> = Omit<T, 'aiConfig'> & {
|
|
22
|
+
aiOptions?: AIOptions;
|
|
23
|
+
};
|
|
24
|
+
type CustomQueryBody = ReplaceAIConfigByOptions<CustomQueryOptions> & {
|
|
25
|
+
tagsKeys?: string[];
|
|
26
|
+
applicationContext?: string;
|
|
27
|
+
};
|
|
28
|
+
type CustomQueryResult = ResponseData<CustomQueryResultData>;
|
|
29
|
+
type TranslateJSONBody = Omit<ReplaceAIConfigByOptions<TranslateJSONOptions<JSON>>, 'tags'> & {
|
|
30
|
+
tagsKeys?: string[];
|
|
31
|
+
};
|
|
32
|
+
type TranslateJSONResult = ResponseData<TranslateJSONResultData<JSON>>;
|
|
33
|
+
type AuditContentDeclarationBody = {
|
|
34
|
+
aiOptions?: AIOptions;
|
|
35
|
+
locales: Locale[];
|
|
36
|
+
defaultLocale: Locale;
|
|
37
|
+
fileContent: string;
|
|
38
|
+
filePath?: string;
|
|
39
|
+
tagsKeys?: string[];
|
|
40
|
+
};
|
|
41
|
+
type AuditContentDeclarationResult = ResponseData<AuditFileResultData$1>;
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves a list of dictionaries based on filters and pagination.
|
|
44
|
+
*/
|
|
45
|
+
type AuditContentDeclarationFieldBody = {
|
|
46
|
+
aiOptions?: AIOptions;
|
|
47
|
+
locales: Locale[];
|
|
48
|
+
fileContent: string;
|
|
49
|
+
filePath?: string;
|
|
50
|
+
tagsKeys?: string[];
|
|
51
|
+
keyPath: KeyPath[];
|
|
52
|
+
};
|
|
53
|
+
type AuditContentDeclarationFieldResult = ResponseData<AuditDictionaryFieldResultData>;
|
|
54
|
+
/**
|
|
55
|
+
* Retrieves a list of dictionaries based on filters and pagination.
|
|
56
|
+
*/
|
|
57
|
+
type AuditContentDeclarationMetadataBody = {
|
|
58
|
+
aiOptions?: AIOptions;
|
|
59
|
+
fileContent: string;
|
|
60
|
+
};
|
|
61
|
+
type AuditContentDeclarationMetadataResult = ResponseData<AuditFileResultData>;
|
|
62
|
+
/**
|
|
63
|
+
* Retrieves a list of dictionaries based on filters and pagination.
|
|
64
|
+
*/
|
|
65
|
+
type AuditTagBody = {
|
|
66
|
+
aiOptions?: AIOptions;
|
|
67
|
+
tag: TagAPI;
|
|
68
|
+
};
|
|
69
|
+
type AuditTagResult = ResponseData<TranslateJSONResultData$1>;
|
|
70
|
+
/**
|
|
71
|
+
* Retrieves a list of dictionaries based on filters and pagination.
|
|
72
|
+
*/
|
|
73
|
+
type AskDocQuestionResult = ResponseData<AskDocQuestionResult$1>;
|
|
74
|
+
type AutocompleteResponse = ResponseData<{
|
|
75
|
+
autocompletion: string;
|
|
76
|
+
}>;
|
|
77
|
+
type GetDiscussionsParams = ({
|
|
78
|
+
page?: string | number;
|
|
79
|
+
pageSize?: string | number;
|
|
80
|
+
includeMessages?: 'true' | 'false';
|
|
81
|
+
} & DiscussionFiltersParams) | undefined;
|
|
82
|
+
type GetDiscussionsResult = PaginatedResponse<DiscussionAPI>;
|
|
83
|
+
/**
|
|
84
|
+
* Retrieves a list of discussions with filters and pagination.
|
|
85
|
+
* Only the owner or admins can access. By default, users only see their own.
|
|
86
|
+
*/
|
|
87
|
+
//#endregion
|
|
88
|
+
export { AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationFieldResult, AuditContentDeclarationMetadataBody, AuditContentDeclarationMetadataResult, AuditContentDeclarationResult, AuditTagBody, AuditTagResult, AutocompleteResponse, CustomQueryBody, CustomQueryResult, GetDiscussionsParams, GetDiscussionsResult, TranslateJSONBody, TranslateJSONResult };
|
|
89
|
+
//# 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","KeyPath","Locale","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":";;;;;;;;;;;;;;;;;;;;KAgBKyB,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,EAASrB,MAAAA;EACTsB,aAAAA,EAAetB,MAAAA;EACfuB,WAAAA;EACAC,QAAAA;EACAhB,QAAAA;AAAAA;AAAAA,KAEGiB,6BAAAA,GAAgCjC,YAAAA,CAAaX,qBAAAA;;AArB9B;;KA4Bf8C,gCAAAA;EACHrB,SAAAA,GAAYX,SAAAA;EACZ0B,OAAAA,EAASrB,MAAAA;EACTuB,WAAAA;EACAC,QAAAA;EACAhB,QAAAA;EACAoB,OAAAA,EAAS7B,OAAAA;AAAAA;AAAAA,KAEN8B,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";
|
|
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 @@
|
|
|
1
|
+
import "../types/dictionary.types.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../services/github.service.js";
|
|
@@ -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,76 @@
|
|
|
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 "../services/ci.service.js";
|
|
5
|
+
import { ProjectFiltersParams } from "../utils/filtersAndPagination/getProjectFiltersAndPagination.js";
|
|
6
|
+
import { Types } from "mongoose";
|
|
7
|
+
|
|
8
|
+
//#region ../../../apps/backend/dist/types/controllers/project.controller.d.ts
|
|
9
|
+
//#region src/controllers/project.controller.d.ts
|
|
10
|
+
type GetProjectsParams = FiltersAndPagination<ProjectFiltersParams>;
|
|
11
|
+
type GetProjectsResult = PaginatedResponse<ProjectAPI>;
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves a list of projects based on filters and pagination.
|
|
14
|
+
*/
|
|
15
|
+
type AddProjectBody = ProjectCreationData;
|
|
16
|
+
type AddProjectResult = ResponseData<ProjectAPI>;
|
|
17
|
+
/**
|
|
18
|
+
* Adds a new project to the database.
|
|
19
|
+
*/
|
|
20
|
+
type UpdateProjectBody = Partial<ProjectAPI>;
|
|
21
|
+
type UpdateProjectResult = ResponseData<ProjectAPI>;
|
|
22
|
+
/**
|
|
23
|
+
* Updates an existing project in the database.
|
|
24
|
+
*/
|
|
25
|
+
type ProjectMemberByIdOption = {
|
|
26
|
+
userId: string | Types.ObjectId;
|
|
27
|
+
isAdmin?: boolean;
|
|
28
|
+
};
|
|
29
|
+
type UpdateProjectMembersBody = Partial<{
|
|
30
|
+
membersIds: ProjectMemberByIdOption[];
|
|
31
|
+
}>;
|
|
32
|
+
type UpdateProjectMembersResult = ResponseData<ProjectAPI>;
|
|
33
|
+
/**
|
|
34
|
+
* Update members to the dictionary in the database.
|
|
35
|
+
*/
|
|
36
|
+
type PushProjectConfigurationBody = ProjectConfiguration;
|
|
37
|
+
type PushProjectConfigurationResult = ResponseData<ProjectConfiguration>;
|
|
38
|
+
/**
|
|
39
|
+
* Pushes a project configuration to the database.
|
|
40
|
+
*/
|
|
41
|
+
type TriggerBuildResult = ResponseData<{
|
|
42
|
+
results: Array<{
|
|
43
|
+
target: string;
|
|
44
|
+
success: boolean;
|
|
45
|
+
message?: string;
|
|
46
|
+
}>;
|
|
47
|
+
}>;
|
|
48
|
+
type TriggerWebhookBody = {
|
|
49
|
+
webhookIndex: number;
|
|
50
|
+
};
|
|
51
|
+
type TriggerWebhookResult = ResponseData<{
|
|
52
|
+
target: string;
|
|
53
|
+
success: boolean;
|
|
54
|
+
message?: string;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Triggers CI builds for a project (Git provider pipelines and webhooks)
|
|
58
|
+
*/
|
|
59
|
+
type DeleteProjectResult = ResponseData<ProjectAPI>;
|
|
60
|
+
/**
|
|
61
|
+
* Deletes a project from the database by its ID.
|
|
62
|
+
*/
|
|
63
|
+
type SelectProjectParam = {
|
|
64
|
+
projectId: string | Types.ObjectId;
|
|
65
|
+
};
|
|
66
|
+
type SelectProjectResult = ResponseData<ProjectAPI>;
|
|
67
|
+
/**
|
|
68
|
+
* Select a project.
|
|
69
|
+
*/
|
|
70
|
+
type UnselectProjectResult = ResponseData<null>;
|
|
71
|
+
/**
|
|
72
|
+
* Unselect a project.
|
|
73
|
+
*/
|
|
74
|
+
//#endregion
|
|
75
|
+
export { AddProjectBody, AddProjectResult, DeleteProjectResult, GetProjectsParams, GetProjectsResult, ProjectMemberByIdOption, PushProjectConfigurationBody, PushProjectConfigurationResult, SelectProjectParam, SelectProjectResult, TriggerBuildResult, TriggerWebhookBody, TriggerWebhookResult, UnselectProjectResult, UpdateProjectBody, UpdateProjectMembersBody, UpdateProjectMembersResult, UpdateProjectResult };
|
|
76
|
+
//# 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,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,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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Tag, TagAPI, TagCreationData, TagData } from "../types/tag.types.js";
|
|
2
|
+
import { PaginatedResponse, ResponseData } from "../utils/responseData.js";
|
|
3
|
+
import { FiltersAndPagination } from "../utils/filtersAndPagination/getFiltersAndPaginationFromBody.js";
|
|
4
|
+
import { TagFiltersParams } from "../utils/filtersAndPagination/getTagFiltersAndPagination.js";
|
|
5
|
+
|
|
6
|
+
//#region ../../../apps/backend/dist/types/controllers/tag.controller.d.ts
|
|
7
|
+
//#region src/controllers/tag.controller.d.ts
|
|
8
|
+
type GetTagsParams = FiltersAndPagination<TagFiltersParams>;
|
|
9
|
+
type GetTagsResult = PaginatedResponse<TagAPI>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves a list of tags based on filters and pagination.
|
|
12
|
+
*/
|
|
13
|
+
type AddTagBody = TagCreationData;
|
|
14
|
+
type AddTagResult = ResponseData<TagAPI>;
|
|
15
|
+
/**
|
|
16
|
+
* Adds a new tag to the database.
|
|
17
|
+
*/
|
|
18
|
+
type UpdateTagParams = {
|
|
19
|
+
tagId: string | Tag['id'];
|
|
20
|
+
};
|
|
21
|
+
type UpdateTagBody = Partial<TagData>;
|
|
22
|
+
type UpdateTagResult = ResponseData<TagAPI>;
|
|
23
|
+
/**
|
|
24
|
+
* Updates an existing tag in the database.
|
|
25
|
+
*/
|
|
26
|
+
type DeleteTagParams = {
|
|
27
|
+
tagId: string | Tag['id'];
|
|
28
|
+
};
|
|
29
|
+
type DeleteTagResult = ResponseData<TagAPI>;
|
|
30
|
+
/**
|
|
31
|
+
* Deletes a tag from the database by its ID.
|
|
32
|
+
*/
|
|
33
|
+
//#endregion
|
|
34
|
+
export { AddTagBody, AddTagResult, DeleteTagParams, DeleteTagResult, GetTagsParams, GetTagsResult, UpdateTagBody, UpdateTagParams, UpdateTagResult };
|
|
35
|
+
//# sourceMappingURL=tag.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.controller.d.ts","names":["Tag","TagAPI","TagCreationData","TagData","FiltersAndPagination","PaginatedResponse","ResponseData","TagFiltersParams","FastifyReply","FastifyRequest","GetTagsParams","GetTagsResult","getTags","Promise","Querystring","request","reply","AddTagBody","AddTagResult","addTag","Body","UpdateTagParams","tagId","UpdateTagBody","Partial","UpdateTagResult","updateTag","Params","DeleteTagParams","DeleteTagResult","deleteTag"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/tag.controller.d.ts"],"mappings":";;;;;;;KAOKU,aAAAA,GAAgBN,oBAAAA,CAAqBG,gBAAAA;AAAAA,KACrCI,aAAAA,GAAgBN,iBAAAA,CAAkBJ,MAAAA;;;AADmB;KAQrDgB,UAAAA,GAAaf,eAAAA;AAAAA,KACbgB,YAAAA,GAAeZ,YAAAA,CAAaL,MAAAA;;;;KAO5BoB,eAAAA;EACHC,KAAAA,WAAgBtB,GAAAA;AAAAA;AAAAA,KAEbuB,aAAAA,GAAgBC,OAAAA,CAAQrB,OAAAA;AAAAA,KACxBsB,eAAAA,GAAkBnB,YAAAA,CAAaL,MAAAA;;;;KAQ/B2B,eAAAA;EACHN,KAAAA,WAAgBtB,GAAAA;AAAAA;AAAAA,KAEb6B,eAAAA,GAAkBvB,YAAAA,CAAaL,MAAAA;;;AAJD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Locale } from "@intlayer/types";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UserAPI } from "../types/user.types.js";
|
|
2
|
+
import { PaginatedResponse, ResponseData } from "../utils/responseData.js";
|
|
3
|
+
import { FiltersAndPagination } from "../utils/filtersAndPagination/getFiltersAndPaginationFromBody.js";
|
|
4
|
+
import { UserFiltersParam } from "../utils/filtersAndPagination/getUserFiltersAndPagination.js";
|
|
5
|
+
|
|
6
|
+
//#region ../../../apps/backend/dist/types/controllers/user.controller.d.ts
|
|
7
|
+
//#region src/controllers/user.controller.d.ts
|
|
8
|
+
type CreateUserBody = {
|
|
9
|
+
email: string;
|
|
10
|
+
password?: string;
|
|
11
|
+
};
|
|
12
|
+
type CreateUserResult = ResponseData<UserAPI>;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new user.
|
|
15
|
+
*/
|
|
16
|
+
type GetUsersParams = FiltersAndPagination<UserFiltersParam>;
|
|
17
|
+
type GetUsersResult = PaginatedResponse<UserAPI>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a list of users based on filters and pagination.
|
|
20
|
+
*/
|
|
21
|
+
type GetUserByIdParams = {
|
|
22
|
+
userId: UserAPI['id'];
|
|
23
|
+
};
|
|
24
|
+
type GetUserByIdResult = ResponseData<UserAPI>;
|
|
25
|
+
type GetUserByEmailParams = {
|
|
26
|
+
email: string;
|
|
27
|
+
};
|
|
28
|
+
type GetUserByEmailResult = ResponseData<UserAPI>;
|
|
29
|
+
type UpdateUserBody = Partial<UserAPI>;
|
|
30
|
+
type UpdateUserResult = ResponseData<UserAPI>;
|
|
31
|
+
/**
|
|
32
|
+
* Updates user information (phone number, date of birth).
|
|
33
|
+
*/
|
|
34
|
+
//#endregion
|
|
35
|
+
export { CreateUserBody, CreateUserResult, GetUserByEmailParams, GetUserByEmailResult, GetUserByIdParams, GetUserByIdResult, GetUsersParams, GetUsersResult, UpdateUserBody, UpdateUserResult };
|
|
36
|
+
//# sourceMappingURL=user.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.controller.d.ts","names":["User","UserAPI","FiltersAndPagination","PaginatedResponse","ResponseData","UserFiltersParam","FastifyReply","FastifyRequest","CreateUserBody","email","password","CreateUserResult","createUser","Promise","Body","request","reply","GetUsersParams","GetUsersResult","getUsers","Querystring","GetUserByIdParams","userId","GetUserByIdResult","getUserById","Params","GetUserByEmailParams","GetUserByEmailResult","getUserByEmail","UpdateUserBody","Partial","UpdateUserResult","updateUser","DeleteUserParams","DeleteUserResult","deleteUser","sendVerificationUpdate","user","VerifyEmailStatusSSEParams","verifyEmailStatusSSE"],"sources":["../../../../../../../../../../apps/backend/dist/types/controllers/user.controller.d.ts"],"mappings":";;;;;;;KAOKQ,cAAAA;EACHC,KAAAA;EACAC,QAAAA;AAAAA;AAAAA,KAEGC,gBAAAA,GAAmBP,YAAAA,CAAaH,OAAAA;;;;KAOhCgB,cAAAA,GAAiBf,oBAAAA,CAAqBG,gBAAAA;AAAAA,KACtCa,cAAAA,GAAiBf,iBAAAA,CAAkBF,OAAAA;;AADmB;;KAQtDoB,iBAAAA;EACHC,MAAAA,EAAQrB,OAAAA;AAAAA;AAAAA,KAELsB,iBAAAA,GAAoBnB,YAAAA,CAAaH,OAAAA;AAAAA,KAIjCyB,oBAAAA;EACHjB,KAAAA;AAAAA;AAAAA,KAEGkB,oBAAAA,GAAuBvB,YAAAA,CAAaH,OAAAA;AAAAA,KAIpC4B,cAAAA,GAAiBC,OAAAA,CAAQ7B,OAAAA;AAAAA,KACzB8B,gBAAAA,GAAmB3B,YAAAA,CAAaH,OAAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EmailsList, User, UserAPI, UserData } from "./types/user.types.js";
|
|
2
|
+
import { Plan, PlanData, PlanType } from "./types/plan.types.js";
|
|
3
|
+
import { Organization, OrganizationAPI, OrganizationCreationData, OrganizationData } from "./types/organization.types.js";
|
|
4
|
+
import { AccessKeyData, BaseRepository, BitbucketRepository, GitHubRepository, GitLabRepository, OAuth2Access, OAuth2AccessData, Project, ProjectAPI, ProjectConfigCI, ProjectConfiguration, ProjectCreationData, ProjectData, RepositoryConnection, RepositoryProvider, Webhook } from "./types/project.types.js";
|
|
5
|
+
import { Tag, TagAPI, TagCreationData, TagData } from "./types/tag.types.js";
|
|
6
|
+
import { Dictionary, DictionaryAPI, DictionaryCreationData, DictionaryData, VersionedContent, VersionedContentEl } from "./types/dictionary.types.js";
|
|
7
|
+
import { Session, SessionData, SessionDataApi } from "./types/session.types.js";
|
|
8
|
+
import "./utils/auth/getAuth.js";
|
|
9
|
+
import { Discussion, DiscussionAPI, Message } from "./types/discussion.types.js";
|
|
10
|
+
import { HttpStatusCodes } from "./utils/httpStatusCodes.js";
|
|
11
|
+
import { PaginatedResponse, ResponseData } from "./utils/responseData.js";
|
|
12
|
+
import { AIConfig, AIOptions, AiProviders, ChatCompletionRequestMessage } from "../../../../packages/@intlayer/ai/dist/types/aiSdk.js";
|
|
13
|
+
import { AskDocQuestionResult, AuditContentDeclarationBody, AuditContentDeclarationFieldBody, AuditContentDeclarationFieldResult, AuditContentDeclarationMetadataBody, AuditContentDeclarationMetadataResult, AuditContentDeclarationResult, AuditTagBody, AuditTagResult, AutocompleteResponse, CustomQueryBody, CustomQueryResult, GetDiscussionsParams, GetDiscussionsResult, TranslateJSONBody, TranslateJSONResult } from "./controllers/ai.controller.js";
|
|
14
|
+
import { AddDictionaryBody, AddDictionaryResult, DeleteDictionaryParam, DeleteDictionaryResult, GetDictionariesKeysResult, GetDictionariesParams, GetDictionariesResult, GetDictionariesUpdateTimestampResult, GetDictionaryParams, GetDictionaryQuery, GetDictionaryResult, PushDictionariesBody, PushDictionariesResult, UpdateDictionaryBody, UpdateDictionaryResult } from "./controllers/dictionary.controller.js";
|
|
15
|
+
import "./controllers/eventListener.controller.js";
|
|
16
|
+
import "./controllers/github.controller.js";
|
|
17
|
+
import { NewsletterSubscriptionBody, NewsletterSubscriptionResult, NewsletterUnsubscriptionBody } from "./controllers/newsletter.controller.js";
|
|
18
|
+
import { OAuth2Token } from "./types/oAuth2.types.js";
|
|
19
|
+
import { GetOAuth2TokenResult } from "./controllers/oAuth2.controller.js";
|
|
20
|
+
import { AddOrganizationBody, AddOrganizationMemberBody, AddOrganizationMemberResult, AddOrganizationResult, DeleteOrganizationResult, GetOrganizationParam, GetOrganizationResult, GetOrganizationsParams, GetOrganizationsResult, SelectOrganizationParam, SelectOrganizationResult, UnselectOrganizationResult, UpdateOrganizationBody, UpdateOrganizationMembersBody, UpdateOrganizationMembersResult, UpdateOrganizationResult } from "./controllers/organization.controller.js";
|
|
21
|
+
import { AddProjectBody, AddProjectResult, DeleteProjectResult, GetProjectsParams, GetProjectsResult, ProjectMemberByIdOption, PushProjectConfigurationBody, PushProjectConfigurationResult, SelectProjectParam, SelectProjectResult, TriggerBuildResult, TriggerWebhookBody, TriggerWebhookResult, UnselectProjectResult, UpdateProjectBody, UpdateProjectMembersBody, UpdateProjectMembersResult, UpdateProjectResult } from "./controllers/project.controller.js";
|
|
22
|
+
import { AddNewAccessKeyBody, AddNewAccessKeyResponse, DeleteAccessKeyBody, DeleteAccessKeyResponse, RefreshAccessKeyBody, RefreshAccessKeyResponse } from "./controllers/projectAccessKey.controller.js";
|
|
23
|
+
import { SearchDocResult, SearchDocUtilParams, SearchDocUtilResult } from "./controllers/search.controller.js";
|
|
24
|
+
import { GetCheckoutSessionBody, GetCheckoutSessionResult, GetPricingBody, GetPricingResult } from "./controllers/stripe.controller.js";
|
|
25
|
+
import { AddTagBody, AddTagResult, DeleteTagParams, DeleteTagResult, GetTagsParams, GetTagsResult, UpdateTagBody, UpdateTagParams, UpdateTagResult } from "./controllers/tag.controller.js";
|
|
26
|
+
import "./controllers/translation.controller.js";
|
|
27
|
+
import { CreateUserBody, CreateUserResult, GetUserByEmailParams, GetUserByEmailResult, GetUserByIdParams, GetUserByIdResult, GetUsersParams, GetUsersResult, UpdateUserBody, UpdateUserResult } from "./controllers/user.controller.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Session } from "../types/session.types.js";
|
|
2
|
+
import "../utils/auth/getAuth.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../../apps/backend/dist/types/middlewares/sessionAuth.middleware.d.ts
|
|
5
|
+
//#region src/middlewares/sessionAuth.middleware.d.ts
|
|
6
|
+
declare module 'fastify' {
|
|
7
|
+
interface FastifyRequest {
|
|
8
|
+
locals?: {
|
|
9
|
+
authType?: string;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
} & Session;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=sessionAuth.middleware.d.ts.map
|