@intlayer/backend 7.5.9 → 7.5.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/README.md +9 -2
- package/dist/assets/utils/AI/askDocQuestion/PROMPT.md +1 -1
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/ci.json +3080 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/cli/list_projects.json +1 -0
- package/dist/assets/utils/AI/askDocQuestion/embeddings/docs/en/intlayer_with_fastify.json +9 -0
- package/dist/esm/controllers/ai.controller.mjs +95 -128
- package/dist/esm/controllers/ai.controller.mjs.map +1 -1
- package/dist/esm/controllers/bitbucket.controller.mjs +77 -0
- package/dist/esm/controllers/bitbucket.controller.mjs.map +1 -0
- package/dist/esm/controllers/dictionary.controller.mjs +106 -198
- package/dist/esm/controllers/dictionary.controller.mjs.map +1 -1
- package/dist/esm/controllers/eventListener.controller.mjs +13 -19
- package/dist/esm/controllers/eventListener.controller.mjs.map +1 -1
- package/dist/esm/controllers/github.controller.mjs +77 -0
- package/dist/esm/controllers/github.controller.mjs.map +1 -0
- package/dist/esm/controllers/gitlab.controller.mjs +77 -0
- package/dist/esm/controllers/gitlab.controller.mjs.map +1 -0
- package/dist/esm/controllers/newsletter.controller.mjs +30 -60
- package/dist/esm/controllers/newsletter.controller.mjs.map +1 -1
- package/dist/esm/controllers/oAuth2.controller.mjs +11 -8
- package/dist/esm/controllers/oAuth2.controller.mjs.map +1 -1
- package/dist/esm/controllers/organization.controller.mjs +100 -225
- package/dist/esm/controllers/organization.controller.mjs.map +1 -1
- package/dist/esm/controllers/project.controller.mjs +194 -204
- package/dist/esm/controllers/project.controller.mjs.map +1 -1
- package/dist/esm/controllers/projectAccessKey.controller.mjs +38 -71
- package/dist/esm/controllers/projectAccessKey.controller.mjs.map +1 -1
- package/dist/esm/controllers/search.controller.mjs +3 -3
- package/dist/esm/controllers/search.controller.mjs.map +1 -1
- package/dist/esm/controllers/stripe.controller.mjs +34 -67
- package/dist/esm/controllers/stripe.controller.mjs.map +1 -1
- package/dist/esm/controllers/tag.controller.mjs +51 -113
- package/dist/esm/controllers/tag.controller.mjs.map +1 -1
- package/dist/esm/controllers/user.controller.mjs +64 -113
- package/dist/esm/controllers/user.controller.mjs.map +1 -1
- package/dist/esm/export.mjs +4 -1
- package/dist/esm/index.mjs +105 -41
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/middlewares/oAuth2.middleware.mjs +19 -14
- package/dist/esm/middlewares/oAuth2.middleware.mjs.map +1 -1
- package/dist/esm/middlewares/sessionAuth.middleware.mjs +6 -7
- package/dist/esm/middlewares/sessionAuth.middleware.mjs.map +1 -1
- package/dist/esm/routes/ai.routes.mjs +19 -15
- package/dist/esm/routes/ai.routes.mjs.map +1 -1
- package/dist/esm/routes/bitbucket.routes.mjs +43 -0
- package/dist/esm/routes/bitbucket.routes.mjs.map +1 -0
- package/dist/esm/routes/dictionary.routes.mjs +10 -10
- package/dist/esm/routes/dictionary.routes.mjs.map +1 -1
- package/dist/esm/routes/eventListener.routes.mjs +3 -3
- package/dist/esm/routes/eventListener.routes.mjs.map +1 -1
- package/dist/esm/routes/github.routes.mjs +43 -0
- package/dist/esm/routes/github.routes.mjs.map +1 -0
- package/dist/esm/routes/gitlab.routes.mjs +43 -0
- package/dist/esm/routes/gitlab.routes.mjs.map +1 -0
- package/dist/esm/routes/newsletter.routes.mjs +5 -5
- package/dist/esm/routes/newsletter.routes.mjs.map +1 -1
- package/dist/esm/routes/organization.routes.mjs +11 -11
- package/dist/esm/routes/organization.routes.mjs.map +1 -1
- package/dist/esm/routes/project.routes.mjs +38 -14
- package/dist/esm/routes/project.routes.mjs.map +1 -1
- package/dist/esm/routes/search.routes.mjs +3 -3
- package/dist/esm/routes/search.routes.mjs.map +1 -1
- package/dist/esm/routes/stripe.routes.mjs +5 -5
- package/dist/esm/routes/stripe.routes.mjs.map +1 -1
- package/dist/esm/routes/tags.routes.mjs +6 -6
- package/dist/esm/routes/tags.routes.mjs.map +1 -1
- package/dist/esm/routes/user.routes.mjs +9 -9
- package/dist/esm/routes/user.routes.mjs.map +1 -1
- package/dist/esm/schemas/project.schema.mjs +70 -1
- package/dist/esm/schemas/project.schema.mjs.map +1 -1
- package/dist/esm/services/bitbucket.service.mjs +173 -0
- package/dist/esm/services/bitbucket.service.mjs.map +1 -0
- package/dist/esm/services/ci.service.mjs +134 -0
- package/dist/esm/services/ci.service.mjs.map +1 -0
- package/dist/esm/services/email.service.mjs +1 -1
- package/dist/esm/services/email.service.mjs.map +1 -1
- package/dist/esm/services/github.service.mjs +218 -0
- package/dist/esm/services/github.service.mjs.map +1 -0
- package/dist/esm/services/gitlab.service.mjs +217 -0
- package/dist/esm/services/gitlab.service.mjs.map +1 -0
- package/dist/esm/services/oAuth2.service.mjs +1 -1
- package/dist/esm/services/subscription.service.mjs +1 -1
- package/dist/esm/services/subscription.service.mjs.map +1 -1
- package/dist/esm/services/webhook.service.mjs +164 -0
- package/dist/esm/services/webhook.service.mjs.map +1 -0
- package/dist/esm/utils/auth/getAuth.mjs +28 -16
- package/dist/esm/utils/auth/getAuth.mjs.map +1 -1
- package/dist/esm/utils/cors.mjs +15 -5
- package/dist/esm/utils/cors.mjs.map +1 -1
- package/dist/esm/utils/errors/ErrorHandler.mjs +32 -4
- package/dist/esm/utils/errors/ErrorHandler.mjs.map +1 -1
- package/dist/esm/utils/errors/ErrorsClass.mjs +1 -1
- package/dist/esm/utils/errors/ErrorsClass.mjs.map +1 -1
- package/dist/esm/utils/errors/errorCodes.mjs +234 -0
- package/dist/esm/utils/errors/errorCodes.mjs.map +1 -1
- package/dist/esm/utils/filtersAndPagination/getDictionaryFiltersAndPagination.mjs +3 -2
- package/dist/esm/utils/filtersAndPagination/getDictionaryFiltersAndPagination.mjs.map +1 -1
- package/dist/esm/utils/filtersAndPagination/getDiscussionFiltersAndPagination.mjs +1 -1
- package/dist/esm/utils/filtersAndPagination/getDiscussionFiltersAndPagination.mjs.map +1 -1
- package/dist/esm/utils/filtersAndPagination/getFiltersAndPaginationFromBody.mjs +1 -1
- package/dist/esm/utils/filtersAndPagination/getFiltersAndPaginationFromBody.mjs.map +1 -1
- package/dist/esm/utils/filtersAndPagination/getOrganizationFiltersAndPagination.mjs +3 -2
- package/dist/esm/utils/filtersAndPagination/getOrganizationFiltersAndPagination.mjs.map +1 -1
- package/dist/esm/utils/filtersAndPagination/getProjectFiltersAndPagination.mjs +3 -2
- package/dist/esm/utils/filtersAndPagination/getProjectFiltersAndPagination.mjs.map +1 -1
- package/dist/esm/utils/filtersAndPagination/getTagFiltersAndPagination.mjs +3 -2
- package/dist/esm/utils/filtersAndPagination/getTagFiltersAndPagination.mjs.map +1 -1
- package/dist/esm/utils/filtersAndPagination/getUserFiltersAndPagination.mjs +3 -2
- package/dist/esm/utils/filtersAndPagination/getUserFiltersAndPagination.mjs.map +1 -1
- package/dist/esm/utils/mapper/project.mjs +28 -1
- package/dist/esm/utils/mapper/project.mjs.map +1 -1
- package/dist/esm/utils/mongoDB/connectDB.mjs +1 -1
- package/dist/esm/utils/rateLimiter.mjs +40 -30
- package/dist/esm/utils/rateLimiter.mjs.map +1 -1
- package/dist/esm/webhooks/stripe.webhook.mjs +2 -2
- package/dist/esm/webhooks/stripe.webhook.mjs.map +1 -1
- package/dist/types/controllers/ai.controller.d.ts +29 -12
- package/dist/types/controllers/ai.controller.d.ts.map +1 -1
- package/dist/types/controllers/bitbucket.controller.d.ts +62 -0
- package/dist/types/controllers/bitbucket.controller.d.ts.map +1 -0
- package/dist/types/controllers/dictionary.controller.d.ts +23 -13
- package/dist/types/controllers/dictionary.controller.d.ts.map +1 -1
- package/dist/types/controllers/eventListener.controller.d.ts +4 -2
- package/dist/types/controllers/eventListener.controller.d.ts.map +1 -1
- package/dist/types/controllers/github.controller.d.ts +63 -0
- package/dist/types/controllers/github.controller.d.ts.map +1 -0
- package/dist/types/controllers/gitlab.controller.d.ts +67 -0
- package/dist/types/controllers/gitlab.controller.d.ts.map +1 -0
- package/dist/types/controllers/newsletter.controller.d.ts +8 -7
- package/dist/types/controllers/newsletter.controller.d.ts.map +1 -1
- package/dist/types/controllers/oAuth2.controller.d.ts +4 -2
- package/dist/types/controllers/oAuth2.controller.d.ts.map +1 -1
- package/dist/types/controllers/organization.controller.d.ts +28 -12
- package/dist/types/controllers/organization.controller.d.ts.map +1 -1
- package/dist/types/controllers/project.controller.d.ts +60 -17
- package/dist/types/controllers/project.controller.d.ts.map +1 -1
- package/dist/types/controllers/projectAccessKey.controller.d.ts +10 -5
- package/dist/types/controllers/projectAccessKey.controller.d.ts.map +1 -1
- package/dist/types/controllers/search.controller.d.ts +4 -2
- package/dist/types/controllers/search.controller.d.ts.map +1 -1
- package/dist/types/controllers/stripe.controller.d.ts +11 -12
- package/dist/types/controllers/stripe.controller.d.ts.map +1 -1
- package/dist/types/controllers/tag.controller.d.ts +14 -9
- package/dist/types/controllers/tag.controller.d.ts.map +1 -1
- package/dist/types/controllers/user.controller.d.ts +22 -9
- package/dist/types/controllers/user.controller.d.ts.map +1 -1
- package/dist/types/emails/InviteUserEmail.d.ts +4 -4
- package/dist/types/emails/MagicLinkEmail.d.ts +4 -4
- package/dist/types/emails/OAuthTokenCreatedEmail.d.ts +4 -4
- package/dist/types/emails/OAuthTokenCreatedEmail.d.ts.map +1 -1
- package/dist/types/emails/PasswordChangeConfirmation.d.ts +4 -4
- package/dist/types/emails/ResetUserPassword.d.ts +4 -4
- package/dist/types/emails/ResetUserPassword.d.ts.map +1 -1
- package/dist/types/emails/SubscriptionPaymentCancellation.d.ts +4 -4
- package/dist/types/emails/SubscriptionPaymentError.d.ts +4 -4
- package/dist/types/emails/SubscriptionPaymentSuccess.d.ts +4 -4
- package/dist/types/emails/ValidateUserEmail.d.ts +4 -4
- package/dist/types/emails/Welcome.d.ts +4 -4
- package/dist/types/export.d.ts +11 -5
- package/dist/types/middlewares/oAuth2.middleware.d.ts +9 -4
- package/dist/types/middlewares/oAuth2.middleware.d.ts.map +1 -1
- package/dist/types/middlewares/sessionAuth.middleware.d.ts +13 -3
- package/dist/types/middlewares/sessionAuth.middleware.d.ts.map +1 -1
- package/dist/types/models/discussion.model.d.ts +3 -3
- package/dist/types/models/oAuth2.model.d.ts +3 -3
- package/dist/types/routes/ai.routes.d.ts +2 -2
- package/dist/types/routes/ai.routes.d.ts.map +1 -1
- package/dist/types/routes/bitbucket.routes.d.ts +35 -0
- package/dist/types/routes/bitbucket.routes.d.ts.map +1 -0
- package/dist/types/routes/dictionary.routes.d.ts +2 -2
- package/dist/types/routes/dictionary.routes.d.ts.map +1 -1
- package/dist/types/routes/eventListener.routes.d.ts +2 -2
- package/dist/types/routes/eventListener.routes.d.ts.map +1 -1
- package/dist/types/routes/github.routes.d.ts +35 -0
- package/dist/types/routes/github.routes.d.ts.map +1 -0
- package/dist/types/routes/gitlab.routes.d.ts +35 -0
- package/dist/types/routes/gitlab.routes.d.ts.map +1 -0
- package/dist/types/routes/newsletter.routes.d.ts +2 -2
- package/dist/types/routes/newsletter.routes.d.ts.map +1 -1
- package/dist/types/routes/organization.routes.d.ts +2 -2
- package/dist/types/routes/organization.routes.d.ts.map +1 -1
- package/dist/types/routes/project.routes.d.ts +22 -2
- package/dist/types/routes/project.routes.d.ts.map +1 -1
- package/dist/types/routes/search.routes.d.ts +2 -2
- package/dist/types/routes/search.routes.d.ts.map +1 -1
- package/dist/types/routes/stripe.routes.d.ts +2 -2
- package/dist/types/routes/stripe.routes.d.ts.map +1 -1
- package/dist/types/routes/tags.routes.d.ts +2 -2
- package/dist/types/routes/tags.routes.d.ts.map +1 -1
- package/dist/types/routes/user.routes.d.ts +2 -2
- package/dist/types/routes/user.routes.d.ts.map +1 -1
- package/dist/types/schemas/dictionary.schema.d.ts +6 -6
- package/dist/types/schemas/discussion.schema.d.ts +6 -6
- package/dist/types/schemas/oAuth2.schema.d.ts +5 -5
- package/dist/types/schemas/oAuth2.schema.d.ts.map +1 -1
- package/dist/types/schemas/plans.schema.d.ts +6 -6
- package/dist/types/schemas/project.schema.d.ts +6 -6
- package/dist/types/schemas/project.schema.d.ts.map +1 -1
- package/dist/types/schemas/session.schema.d.ts +6 -6
- package/dist/types/schemas/tag.schema.d.ts +6 -6
- package/dist/types/schemas/user.schema.d.ts +6 -6
- package/dist/types/schemas/user.schema.d.ts.map +1 -1
- package/dist/types/services/bitbucket.service.d.ts +71 -0
- package/dist/types/services/bitbucket.service.d.ts.map +1 -0
- package/dist/types/services/ci.service.d.ts +27 -0
- package/dist/types/services/ci.service.d.ts.map +1 -0
- package/dist/types/services/github.service.d.ts +40 -0
- package/dist/types/services/github.service.d.ts.map +1 -0
- package/dist/types/services/gitlab.service.d.ts +58 -0
- package/dist/types/services/gitlab.service.d.ts.map +1 -0
- package/dist/types/services/webhook.service.d.ts +19 -0
- package/dist/types/services/webhook.service.d.ts.map +1 -0
- package/dist/types/types/project.types.d.ts +46 -5
- package/dist/types/types/project.types.d.ts.map +1 -1
- package/dist/types/types/session.types.d.ts +1 -1
- package/dist/types/types/user.types.d.ts +1 -1
- package/dist/types/utils/AI/auditTag/index.d.ts +1 -1
- package/dist/types/utils/auth/getAuth.d.ts.map +1 -1
- package/dist/types/utils/cors.d.ts +2 -2
- package/dist/types/utils/errors/ErrorHandler.d.ts +31 -3
- package/dist/types/utils/errors/ErrorHandler.d.ts.map +1 -1
- package/dist/types/utils/errors/ErrorsClass.d.ts +1 -1
- package/dist/types/utils/errors/errorCodes.d.ts +234 -0
- package/dist/types/utils/errors/errorCodes.d.ts.map +1 -1
- package/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +8 -4
- package/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts.map +1 -1
- package/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +6 -3
- package/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts.map +1 -1
- package/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts +6 -2
- package/dist/types/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts.map +1 -1
- package/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +8 -4
- package/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts.map +1 -1
- package/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +6 -2
- package/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts.map +1 -1
- package/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +8 -4
- package/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts.map +1 -1
- package/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts +6 -2
- package/dist/types/utils/filtersAndPagination/getUserFiltersAndPagination.d.ts.map +1 -1
- package/dist/types/utils/mapper/project.d.ts.map +1 -1
- package/dist/types/utils/permissions.d.ts +1 -1
- package/dist/types/utils/rateLimiter.d.ts +4 -2
- package/dist/types/utils/rateLimiter.d.ts.map +1 -1
- package/package.json +24 -28
- package/dist/esm/middlewares/request.middleware.mjs +0 -17
- package/dist/esm/middlewares/request.middleware.mjs.map +0 -1
- package/dist/types/middlewares/request.middleware.d.ts +0 -7
- package/dist/types/middlewares/request.middleware.d.ts.map +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FastifyInstance } from "fastify";
|
|
2
|
+
|
|
3
|
+
//#region src/routes/github.routes.d.ts
|
|
4
|
+
declare const githubRoute = "/api/github";
|
|
5
|
+
declare const getGithubRoutes: () => {
|
|
6
|
+
getAuthUrl: {
|
|
7
|
+
urlModel: string;
|
|
8
|
+
url: string;
|
|
9
|
+
method: "GET";
|
|
10
|
+
};
|
|
11
|
+
authCallback: {
|
|
12
|
+
urlModel: string;
|
|
13
|
+
url: string;
|
|
14
|
+
method: "POST";
|
|
15
|
+
};
|
|
16
|
+
listRepos: {
|
|
17
|
+
urlModel: string;
|
|
18
|
+
url: string;
|
|
19
|
+
method: "GET";
|
|
20
|
+
};
|
|
21
|
+
checkConfig: {
|
|
22
|
+
urlModel: string;
|
|
23
|
+
url: string;
|
|
24
|
+
method: "POST";
|
|
25
|
+
};
|
|
26
|
+
getConfigFile: {
|
|
27
|
+
urlModel: string;
|
|
28
|
+
url: string;
|
|
29
|
+
method: "POST";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
declare const githubRouter: (fastify: FastifyInstance) => Promise<void>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { getGithubRoutes, githubRoute, githubRouter };
|
|
35
|
+
//# sourceMappingURL=github.routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.routes.d.ts","names":[],"sources":["../../../src/routes/github.routes.ts"],"sourcesContent":[],"mappings":";;;cAUa,WAAA;cAIA;EAJA,UAAA,EAAA;IAIA,QAAA,EAAA,MA2BQ;IAER,GAAA,EAAA,MAMZ;;;;;;;;;;;;;;;;;;;;;;;;cANY,wBAA+B,oBAAe"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FastifyInstance } from "fastify";
|
|
2
|
+
|
|
3
|
+
//#region src/routes/gitlab.routes.d.ts
|
|
4
|
+
declare const gitlabRoute = "/api/gitlab";
|
|
5
|
+
declare const getGitlabRoutes: () => {
|
|
6
|
+
getAuthUrl: {
|
|
7
|
+
urlModel: string;
|
|
8
|
+
url: string;
|
|
9
|
+
method: "GET";
|
|
10
|
+
};
|
|
11
|
+
authCallback: {
|
|
12
|
+
urlModel: string;
|
|
13
|
+
url: string;
|
|
14
|
+
method: "POST";
|
|
15
|
+
};
|
|
16
|
+
listProjects: {
|
|
17
|
+
urlModel: string;
|
|
18
|
+
url: string;
|
|
19
|
+
method: "GET";
|
|
20
|
+
};
|
|
21
|
+
checkConfig: {
|
|
22
|
+
urlModel: string;
|
|
23
|
+
url: string;
|
|
24
|
+
method: "POST";
|
|
25
|
+
};
|
|
26
|
+
getConfigFile: {
|
|
27
|
+
urlModel: string;
|
|
28
|
+
url: string;
|
|
29
|
+
method: "POST";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
declare const gitlabRouter: (fastify: FastifyInstance) => Promise<void>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { getGitlabRoutes, gitlabRoute, gitlabRouter };
|
|
35
|
+
//# sourceMappingURL=gitlab.routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gitlab.routes.d.ts","names":[],"sources":["../../../src/routes/gitlab.routes.ts"],"sourcesContent":[],"mappings":";;;cAUa,WAAA;cAIA;EAJA,UAAA,EAAA;IAIA,QAAA,EAAA,MA2BQ;IAER,GAAA,EAAA,MAMZ;;;;;;;;;;;;;;;;;;;;;;;;cANY,wBAA+B,oBAAe"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FastifyInstance } from "fastify";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/newsletter.routes.d.ts
|
|
4
|
-
declare const newsletterRouter: Router;
|
|
5
4
|
declare const newsletterRoute = "/api/newsletter";
|
|
6
5
|
declare const getNewsletterRoutes: () => {
|
|
7
6
|
subscribeToNewsletter: {
|
|
@@ -20,6 +19,7 @@ declare const getNewsletterRoutes: () => {
|
|
|
20
19
|
method: "GET";
|
|
21
20
|
};
|
|
22
21
|
};
|
|
22
|
+
declare const newsletterRouter: (fastify: FastifyInstance) => Promise<void>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { getNewsletterRoutes, newsletterRoute, newsletterRouter };
|
|
25
25
|
//# sourceMappingURL=newsletter.routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"newsletter.routes.d.ts","names":[],"sources":["../../../src/routes/newsletter.routes.ts"],"sourcesContent":[],"mappings":";;;cAQa,
|
|
1
|
+
{"version":3,"file":"newsletter.routes.d.ts","names":[],"sources":["../../../src/routes/newsletter.routes.ts"],"sourcesContent":[],"mappings":";;;cAQa,eAAA;cAIA;EAJA,qBAAe,EAAA;IAIf,QAAA,EAAA,MAAA;IAmBA,GAAA,EAAA,MAAA;;;;;;;;;;;;;;cAAA,4BAAmC,oBAAe"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FastifyInstance } from "fastify";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/organization.routes.d.ts
|
|
4
|
-
declare const organizationRouter: Router;
|
|
5
4
|
declare const organizationRoute = "/api/organization";
|
|
6
5
|
declare const getOrganizationRoutes: () => {
|
|
7
6
|
getOrganizations: {
|
|
@@ -58,6 +57,7 @@ declare const getOrganizationRoutes: () => {
|
|
|
58
57
|
method: "POST";
|
|
59
58
|
};
|
|
60
59
|
};
|
|
60
|
+
declare const organizationRouter: (fastify: FastifyInstance) => Promise<void>;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { getOrganizationRoutes, organizationRoute, organizationRouter };
|
|
63
63
|
//# sourceMappingURL=organization.routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.routes.d.ts","names":[],"sources":["../../../src/routes/organization.routes.ts"],"sourcesContent":[],"mappings":";;;cAca,
|
|
1
|
+
{"version":3,"file":"organization.routes.d.ts","names":[],"sources":["../../../src/routes/organization.routes.ts"],"sourcesContent":[],"mappings":";;;cAca,iBAAA;cAIA;EAJA,gBAAA,EAAA;IAIA,QAAA,EAAA,MAAA;IAoDA,GAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAA,8BAAqC,oBAAe"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FastifyInstance } from "fastify";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/project.routes.d.ts
|
|
4
|
-
declare const projectRouter: Router;
|
|
5
4
|
declare const projectRoute = "/api/project";
|
|
6
5
|
declare const getProjectRoutes: () => {
|
|
7
6
|
getProjects: {
|
|
@@ -63,7 +62,28 @@ declare const getProjectRoutes: () => {
|
|
|
63
62
|
url: string;
|
|
64
63
|
method: "DELETE";
|
|
65
64
|
};
|
|
65
|
+
triggerBuild: {
|
|
66
|
+
urlModel: string;
|
|
67
|
+
url: string;
|
|
68
|
+
method: "POST";
|
|
69
|
+
};
|
|
70
|
+
triggerWebhook: {
|
|
71
|
+
urlModel: string;
|
|
72
|
+
url: string;
|
|
73
|
+
method: "POST";
|
|
74
|
+
};
|
|
75
|
+
getCIConfiguration: {
|
|
76
|
+
urlModel: string;
|
|
77
|
+
url: string;
|
|
78
|
+
method: "GET";
|
|
79
|
+
};
|
|
80
|
+
pushCIConfiguration: {
|
|
81
|
+
urlModel: string;
|
|
82
|
+
url: string;
|
|
83
|
+
method: "POST";
|
|
84
|
+
};
|
|
66
85
|
};
|
|
86
|
+
declare const projectRouter: (fastify: FastifyInstance) => Promise<void>;
|
|
67
87
|
//#endregion
|
|
68
88
|
export { getProjectRoutes, projectRoute, projectRouter };
|
|
69
89
|
//# sourceMappingURL=project.routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.routes.d.ts","names":[],"sources":["../../../src/routes/project.routes.ts"],"sourcesContent":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"project.routes.d.ts","names":[],"sources":["../../../src/routes/project.routes.ts"],"sourcesContent":[],"mappings":";;;cAsBa,YAAA;cAIA;EAJA,WAAA,EAAA;IAIA,QAAA,EAAA,MA8EQ;IAER,GAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAA,yBAAgC,oBAAe"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FastifyInstance } from "fastify";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/search.routes.d.ts
|
|
4
|
-
declare const searchRouter: Router;
|
|
5
4
|
declare const searchRoute = "/api/search";
|
|
6
5
|
declare const getSearchRoutes: () => {
|
|
7
6
|
doc: {
|
|
@@ -10,6 +9,7 @@ declare const getSearchRoutes: () => {
|
|
|
10
9
|
method: "GET";
|
|
11
10
|
};
|
|
12
11
|
};
|
|
12
|
+
declare const searchRouter: (fastify: FastifyInstance) => Promise<void>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { getSearchRoutes, searchRoute, searchRouter };
|
|
15
15
|
//# sourceMappingURL=search.routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.routes.d.ts","names":[],"sources":["../../../src/routes/search.routes.ts"],"sourcesContent":[],"mappings":";;;cAIa,
|
|
1
|
+
{"version":3,"file":"search.routes.d.ts","names":[],"sources":["../../../src/routes/search.routes.ts"],"sourcesContent":[],"mappings":";;;cAIa,WAAA;cAIA;EAJA,GAAA,EAAA;IAIA,QAAA,EAAA,MAOQ;IAER,GAAA,EAAA,MAEZ;;;;cAFY,wBAA+B,oBAAe"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FastifyInstance } from "fastify";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/stripe.routes.d.ts
|
|
4
|
-
declare const stripeRouter: Router;
|
|
5
4
|
declare const stripeRoute = "/api/stripe";
|
|
6
5
|
declare const getStripeRoutes: () => {
|
|
7
6
|
getPricing: {
|
|
@@ -20,6 +19,7 @@ declare const getStripeRoutes: () => {
|
|
|
20
19
|
method: "POST";
|
|
21
20
|
};
|
|
22
21
|
};
|
|
22
|
+
declare const stripeRouter: (fastify: FastifyInstance) => Promise<void>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { getStripeRoutes, stripeRoute, stripeRouter };
|
|
25
25
|
//# sourceMappingURL=stripe.routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe.routes.d.ts","names":[],"sources":["../../../src/routes/stripe.routes.ts"],"sourcesContent":[],"mappings":";;;cAQa,
|
|
1
|
+
{"version":3,"file":"stripe.routes.d.ts","names":[],"sources":["../../../src/routes/stripe.routes.ts"],"sourcesContent":[],"mappings":";;;cAQa,WAAA;cAIA;EAJA,UAAA,EAAA;IAIA,QAAA,EAAA,MAiBQ;IAER,GAAA,EAAA,MAOZ;;;;;;;;;;;;;;cAPY,wBAA+B,oBAAe"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FastifyInstance } from "fastify";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/tags.routes.d.ts
|
|
4
|
-
declare const tagRouter: Router;
|
|
5
4
|
declare const tagRoute = "/api/tag";
|
|
6
5
|
declare const getTagRoutes: () => {
|
|
7
6
|
getTags: {
|
|
@@ -33,6 +32,7 @@ declare const getTagRoutes: () => {
|
|
|
33
32
|
method: "DELETE";
|
|
34
33
|
};
|
|
35
34
|
};
|
|
35
|
+
declare const tagRouter: (fastify: FastifyInstance) => Promise<void>;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { getTagRoutes, tagRoute, tagRouter };
|
|
38
38
|
//# sourceMappingURL=tags.routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.routes.d.ts","names":[],"sources":["../../../src/routes/tags.routes.ts"],"sourcesContent":[],"mappings":";;;cASa,
|
|
1
|
+
{"version":3,"file":"tags.routes.d.ts","names":[],"sources":["../../../src/routes/tags.routes.ts"],"sourcesContent":[],"mappings":";;;cASa,QAAA;cAIA;EAJA,OAAA,EAAA;IAIA,QAAA,EAAA,MAsBQ;IAER,GAAA,EAAA,MAKZ;;;;;;;;;;;;;;;;;;;;;;;;;;;cALY,qBAA4B,oBAAe"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FastifyInstance } from "fastify";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/user.routes.d.ts
|
|
4
|
-
declare const userRouter: Router;
|
|
5
4
|
declare const userRoute = "/api/user";
|
|
6
5
|
declare const getUserRoutes: () => {
|
|
7
6
|
getUsers: {
|
|
@@ -56,6 +55,7 @@ declare const getUserRoutes: () => {
|
|
|
56
55
|
method: "GET";
|
|
57
56
|
};
|
|
58
57
|
};
|
|
58
|
+
declare const userRouter: (fastify: FastifyInstance) => Promise<void>;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { getUserRoutes, userRoute, userRouter };
|
|
61
61
|
//# sourceMappingURL=user.routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.routes.d.ts","names":[],"sources":["../../../src/routes/user.routes.ts"],"sourcesContent":[],"mappings":";;;cAYa,
|
|
1
|
+
{"version":3,"file":"user.routes.d.ts","names":[],"sources":["../../../src/routes/user.routes.ts"],"sourcesContent":[],"mappings":";;;cAYa,SAAA;cAIA;EAJA,QAAA,EAAA;IAIA,QAAA,EAAA,MAsCQ;;;;;;IAER,GAAA,EAAA,MAWZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAXY,sBAA6B,oBAAe"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Dictionary, DictionarySchema } from "../types/dictionary.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose94 from "mongoose";
|
|
3
3
|
import { Schema } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas/dictionary.schema.d.ts
|
|
6
|
-
declare const dictionarySchema: Schema<DictionarySchema,
|
|
7
|
-
_id:
|
|
6
|
+
declare const dictionarySchema: Schema<DictionarySchema, mongoose94.Model<DictionarySchema, any, any, any, mongoose94.Document<unknown, any, DictionarySchema, any, {}> & Omit<Dictionary, "id"> & {
|
|
7
|
+
_id: mongoose94.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose94.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose94.DefaultSchemaOptions, DictionarySchema, mongoose94.Document<unknown, {}, mongoose94.FlatRecord<DictionarySchema>, {}, mongoose94.ResolveSchemaOptions<mongoose94.DefaultSchemaOptions>> & mongoose94.FlatRecord<DictionarySchema> & Required<{
|
|
13
|
+
_id: mongoose94.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Discussion, DiscussionSchema } from "../types/discussion.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose82 from "mongoose";
|
|
3
3
|
import { Schema } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas/discussion.schema.d.ts
|
|
6
|
-
declare const discussionSchema: Schema<DiscussionSchema,
|
|
7
|
-
_id:
|
|
6
|
+
declare const discussionSchema: Schema<DiscussionSchema, mongoose82.Model<DiscussionSchema, any, any, any, mongoose82.Document<unknown, any, DiscussionSchema, any, {}> & Omit<Discussion, "id"> & {
|
|
7
|
+
_id: mongoose82.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose82.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose82.DefaultSchemaOptions, DiscussionSchema, mongoose82.Document<unknown, {}, mongoose82.FlatRecord<DiscussionSchema>, {}, mongoose82.ResolveSchemaOptions<mongoose82.DefaultSchemaOptions>> & mongoose82.FlatRecord<DiscussionSchema> & Required<{
|
|
13
|
+
_id: mongoose82.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { User } from "../types/user.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose6 from "mongoose";
|
|
3
3
|
import { Schema } from "mongoose";
|
|
4
4
|
import { Client, Token as Token$1 } from "oauth2-server";
|
|
5
5
|
|
|
@@ -8,15 +8,15 @@ type Token = Omit<Token$1, 'client' | 'user'> & {
|
|
|
8
8
|
clientId: Client['id'];
|
|
9
9
|
userId: User['id'];
|
|
10
10
|
};
|
|
11
|
-
declare const accessTokenSchema: Schema<Token,
|
|
11
|
+
declare const accessTokenSchema: Schema<Token, mongoose6.Model<Token, any, any, any, mongoose6.Document<unknown, any, Token, any, {}> & Omit<Token$1, "client" | "user"> & {
|
|
12
12
|
clientId: Client["id"];
|
|
13
13
|
userId: User["id"];
|
|
14
14
|
} & {
|
|
15
|
-
_id:
|
|
15
|
+
_id: mongoose6.Types.ObjectId;
|
|
16
16
|
} & {
|
|
17
17
|
__v: number;
|
|
18
|
-
}, any>, {}, {}, {}, {},
|
|
19
|
-
_id:
|
|
18
|
+
}, any>, {}, {}, {}, {}, mongoose6.DefaultSchemaOptions, Token, mongoose6.Document<unknown, {}, mongoose6.FlatRecord<Token>, {}, mongoose6.ResolveSchemaOptions<mongoose6.DefaultSchemaOptions>> & mongoose6.FlatRecord<Token> & {
|
|
19
|
+
_id: mongoose6.Types.ObjectId;
|
|
20
20
|
} & {
|
|
21
21
|
__v: number;
|
|
22
22
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oAuth2.schema.d.ts","names":[],"sources":["../../../src/schemas/oAuth2.schema.ts"],"sourcesContent":[],"mappings":";;;;;;KAIY,KAAA,GAAQ,KAAK;YACb;UACF;AAFV,CAAA;AAAyB,cAKZ,iBALY,EAKK,MALL,CAKK,KALL,
|
|
1
|
+
{"version":3,"file":"oAuth2.schema.d.ts","names":[],"sources":["../../../src/schemas/oAuth2.schema.ts"],"sourcesContent":[],"mappings":";;;;;;KAIY,KAAA,GAAQ,KAAK;YACb;UACF;AAFV,CAAA;AAAyB,cAKZ,iBALY,EAKK,MALL,CAKK,KALL,YAKK,KALL,CAKK,KALL,EAAA,GAAA,EAAA,GAAA,EAAA,GAAA,EAKK,SAAA,CAAA,QALL,CAAA,OAAA,EAAA,GAAA,EAKK,KALL,EAAA,GAAA,EAAA,CAAA,CAAA,CAAA,GAKK,IALL,CAKK,OALL,EAAA,QAAA,GAAA,MAAA,CAAA,GAAA;EAAL,QAAA,EACR,MADQ,CAAA,IAAA,CAAA;EACR,MAAA,EACF,IADE,CAAA,IAAA,CAAA;CACF,GAAA;EAAI,GAAA,0BAAA;AAGd,CAAA,GAAa;EAAiB,GAAA,EAAA,MAAA;CAAA,EAAA,GAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,SAAA,CAAA,oBAAA,OAAA,oBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,sBAAA,MAAA,CAAA,EAAA,CAAA,CAAA,gCAAA,gCAAA,CAAA,uBAAA,MAAA,CAAA,GAAA;EAAA,GAAA,0BAAA;CAAA,GAAA;EAAA,GAAA,EAAA,MAAA;CAAA,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Plan, PlanSchema } from "../types/plan.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose16 from "mongoose";
|
|
3
3
|
import { Schema } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas/plans.schema.d.ts
|
|
6
|
-
declare const planSchema: Schema<PlanSchema,
|
|
7
|
-
_id:
|
|
6
|
+
declare const planSchema: Schema<PlanSchema, mongoose16.Model<PlanSchema, any, any, any, mongoose16.Document<unknown, any, PlanSchema, any, {}> & Omit<Plan, "id"> & {
|
|
7
|
+
_id: mongoose16.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose16.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose16.DefaultSchemaOptions, PlanSchema, mongoose16.Document<unknown, {}, mongoose16.FlatRecord<PlanSchema>, {}, mongoose16.ResolveSchemaOptions<mongoose16.DefaultSchemaOptions>> & mongoose16.FlatRecord<PlanSchema> & Required<{
|
|
13
|
+
_id: mongoose16.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Project, ProjectSchema } from "../types/project.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose49 from "mongoose";
|
|
3
3
|
import { Schema } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas/project.schema.d.ts
|
|
6
|
-
declare const projectSchema: Schema<ProjectSchema,
|
|
7
|
-
_id:
|
|
6
|
+
declare const projectSchema: Schema<ProjectSchema, mongoose49.Model<ProjectSchema, any, any, any, mongoose49.Document<unknown, any, ProjectSchema, any, {}> & Omit<Project, "id"> & {
|
|
7
|
+
_id: mongoose49.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose49.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose49.DefaultSchemaOptions, ProjectSchema, mongoose49.Document<unknown, {}, mongoose49.FlatRecord<ProjectSchema>, {}, mongoose49.ResolveSchemaOptions<mongoose49.DefaultSchemaOptions>> & mongoose49.FlatRecord<ProjectSchema> & Required<{
|
|
13
|
+
_id: mongoose49.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.schema.d.ts","names":[],"sources":["../../../src/schemas/project.schema.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"project.schema.d.ts","names":[],"sources":["../../../src/schemas/project.schema.ts"],"sourcesContent":[],"mappings":";;;;;cA0Ha,eAAa,OAAA,0BAAA,MAAA,8BAAA,UAAA,CAAA,uBAAA,0BAAA,KAAA;;;EAAb,GAAA,2BA4DZ;CA5DyB,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA;CAAA,EAAA,GAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,UAAA,CAAA,oBAAA,eAAA,qBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,uBAAA,cAAA,CAAA,EAAA,CAAA,CAAA,iCAAA,iCAAA,CAAA,wBAAA,cAAA,CAAA,WAAA,CAAA;EAAA,GAAA,2BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { SessionData, SessionSchema } from "../types/session.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose38 from "mongoose";
|
|
3
3
|
import { Schema } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas/session.schema.d.ts
|
|
6
|
-
declare const sessionSchema: Schema<SessionSchema,
|
|
7
|
-
_id:
|
|
6
|
+
declare const sessionSchema: Schema<SessionSchema, mongoose38.Model<SessionSchema, any, any, any, mongoose38.Document<unknown, any, SessionSchema, any, {}> & Omit<SessionData, "id"> & {
|
|
7
|
+
_id: mongoose38.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose38.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose38.DefaultSchemaOptions, SessionSchema, mongoose38.Document<unknown, {}, mongoose38.FlatRecord<SessionSchema>, {}, mongoose38.ResolveSchemaOptions<mongoose38.DefaultSchemaOptions>> & mongoose38.FlatRecord<SessionSchema> & Required<{
|
|
13
|
+
_id: mongoose38.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Tag, TagSchema } from "../types/tag.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose71 from "mongoose";
|
|
3
3
|
import { Schema } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas/tag.schema.d.ts
|
|
6
|
-
declare const tagSchema: Schema<TagSchema,
|
|
7
|
-
_id:
|
|
6
|
+
declare const tagSchema: Schema<TagSchema, mongoose71.Model<TagSchema, any, any, any, mongoose71.Document<unknown, any, TagSchema, any, {}> & Omit<Tag, "id"> & {
|
|
7
|
+
_id: mongoose71.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose71.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose71.DefaultSchemaOptions, TagSchema, mongoose71.Document<unknown, {}, mongoose71.FlatRecord<TagSchema>, {}, mongoose71.ResolveSchemaOptions<mongoose71.DefaultSchemaOptions>> & mongoose71.FlatRecord<TagSchema> & Required<{
|
|
13
|
+
_id: mongoose71.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { User, UserSchema } from "../types/user.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose60 from "mongoose";
|
|
3
3
|
import { Schema } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas/user.schema.d.ts
|
|
6
|
-
declare const userSchema: Schema<UserSchema,
|
|
7
|
-
_id:
|
|
6
|
+
declare const userSchema: Schema<UserSchema, mongoose60.Model<UserSchema, any, any, any, mongoose60.Document<unknown, any, UserSchema, any, {}> & Omit<User, "id"> & {
|
|
7
|
+
_id: mongoose60.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose60.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose60.DefaultSchemaOptions, UserSchema, mongoose60.Document<unknown, {}, mongoose60.FlatRecord<UserSchema>, {}, mongoose60.ResolveSchemaOptions<mongoose60.DefaultSchemaOptions>> & mongoose60.FlatRecord<UserSchema> & Required<{
|
|
13
|
+
_id: mongoose60.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.schema.d.ts","names":[],"sources":["../../../src/schemas/user.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAQa,YAAU,OAAA,
|
|
1
|
+
{"version":3,"file":"user.schema.d.ts","names":[],"sources":["../../../src/schemas/user.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAQa,YAAU,OAAA,uBAAA,MAAA,2BAAA,UAAA,CAAA,uBAAA,uBAAA,KAAA,IAAA;;;EAAV,GAAA,2BA+EZ;CA/EsB,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA;CAAA,EAAA,GAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,CAAA,EAAA,UAAA,CAAA,oBAAA,YAAA,qBAAA,CAAA,OAAA,EAAA,CAAA,CAAA,uBAAA,WAAA,CAAA,EAAA,CAAA,CAAA,iCAAA,iCAAA,CAAA,wBAAA,WAAA,CAAA,WAAA,CAAA;EAAA,GAAA,2BAAA;CAAA,CAAA,GAAA;EAAA,GAAA,EAAA,MAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//#region src/services/bitbucket.service.d.ts
|
|
2
|
+
type BitbucketRepository = {
|
|
3
|
+
uuid: string;
|
|
4
|
+
name: string;
|
|
5
|
+
full_name: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
mainbranch?: {
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
links: {
|
|
12
|
+
html: {
|
|
13
|
+
href: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
workspace: {
|
|
17
|
+
slug: string;
|
|
18
|
+
name: string;
|
|
19
|
+
uuid: string;
|
|
20
|
+
};
|
|
21
|
+
owner: {
|
|
22
|
+
display_name: string;
|
|
23
|
+
username?: string;
|
|
24
|
+
uuid: string;
|
|
25
|
+
};
|
|
26
|
+
updated_on: string;
|
|
27
|
+
is_private: boolean;
|
|
28
|
+
};
|
|
29
|
+
type BitbucketTreeItem = {
|
|
30
|
+
path: string;
|
|
31
|
+
type: 'commit_file' | 'commit_directory';
|
|
32
|
+
size?: number;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Get Bitbucket (Atlassian) authorization URL for OAuth flow
|
|
36
|
+
*/
|
|
37
|
+
declare const getAuthorizationUrl: (redirectUri: string) => string;
|
|
38
|
+
/**
|
|
39
|
+
* Exchange Bitbucket authorization code for access token
|
|
40
|
+
*/
|
|
41
|
+
declare const exchangeCodeForToken: (code: string) => Promise<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Get user's Bitbucket repositories
|
|
44
|
+
*/
|
|
45
|
+
declare const getUserRepositories: (accessToken: string) => Promise<BitbucketRepository[]>;
|
|
46
|
+
/**
|
|
47
|
+
* Check if valid intlayer configuration files exist in a Bitbucket repository (Recursively).
|
|
48
|
+
* Returns an array of file paths found.
|
|
49
|
+
*/
|
|
50
|
+
declare const checkIntlayerConfig: (accessToken: string, workspace: string, repoSlug: string, branch?: string) => Promise<string[]>;
|
|
51
|
+
/**
|
|
52
|
+
* Get repository file contents from Bitbucket and decode it
|
|
53
|
+
*/
|
|
54
|
+
declare const getRepositoryFileContents: (accessToken: string, workspace: string, repoSlug: string, path: string, branch?: string) => Promise<string | null>;
|
|
55
|
+
/**
|
|
56
|
+
* Get Bitbucket access token from user's linked account (Atlassian)
|
|
57
|
+
*/
|
|
58
|
+
declare const getBitbucketTokenFromUser: (userId: string) => Promise<string | null>;
|
|
59
|
+
/**
|
|
60
|
+
* Check if a Bitbucket pipeline file exists
|
|
61
|
+
*/
|
|
62
|
+
declare const checkPipelineFileExists: (accessToken: string, workspace: string, repoSlug: string, filename?: string, branch?: string) => Promise<boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* Create or update a Bitbucket pipeline file
|
|
65
|
+
* Note: Bitbucket API doesn't support direct file creation via API v2.0
|
|
66
|
+
* This function returns false for allowAutoPush, requiring manual installation
|
|
67
|
+
*/
|
|
68
|
+
declare const createPipelineFile: (accessToken: string, workspace: string, repoSlug: string, filename: string, content: string, branch?: string, message?: string) => Promise<void>;
|
|
69
|
+
//#endregion
|
|
70
|
+
export { BitbucketRepository, BitbucketTreeItem, checkIntlayerConfig, checkPipelineFileExists, createPipelineFile, exchangeCodeForToken, getAuthorizationUrl, getBitbucketTokenFromUser, getRepositoryFileContents, getUserRepositories };
|
|
71
|
+
//# sourceMappingURL=bitbucket.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bitbucket.service.d.ts","names":[],"sources":["../../../src/services/bitbucket.service.ts"],"sourcesContent":[],"mappings":";KAQY,mBAAA;EAAA,IAAA,EAAA,MAAA;EA4BA,IAAA,EAAA,MAAA;EASC,SAAA,EAAA,MAAA;EAmBA,IAAA,EAAA,MAAA;EA+CA,UAAA,CAAA,EAAA;IA+CA,IAAA,EAAA,MAAA;IAiDA,IAAA,EAAA,MAAA;EAmCA,CAAA;EAkDA,KAAA,EAAA;IAoCA,IAAA,EAAA;;;;;;;;;;;;;;;;;KApSD,iBAAA;;;;;;;;cASC;;;;cAmBA,wCAA6C;;;;cA+C7C,8CAEV,QAAQ;;;;;cA6CE,oGAKV;;;;cA4CU,wHAMV;;;;cA6BU,+CAEV;;;;cAgDU,2HAMV;;;;;;cA8BU,wJAQV"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Project } from "../types/project.types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/services/ci.service.d.ts
|
|
4
|
+
declare const GITHUB_WORKFLOW_FILENAME = ".github/workflows/intlayer-cms.yml";
|
|
5
|
+
declare const GITLAB_PIPELINE_FILENAME = ".gitlab-ci.yml";
|
|
6
|
+
declare const BITBUCKET_PIPELINE_FILENAME = "bitbucket-pipelines.yml";
|
|
7
|
+
declare const GITHUB_TEMPLATE = "name: Intlayer CMS Update\non:\n repository_dispatch:\n types: [intlayer_cms_update]\njobs:\n build:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - run: npm ci\n - run: npm run build\n";
|
|
8
|
+
declare const GITLAB_TEMPLATE = "stages:\n - build\n\nintlayer_cms_update:\n stage: build\n only:\n - triggers\n script:\n - npm ci\n - npm run build\n";
|
|
9
|
+
declare const BITBUCKET_TEMPLATE = "pipelines:\n custom:\n intlayer-cms-update:\n - step:\n name: Build\n script:\n - npm ci\n - npm run build\n";
|
|
10
|
+
type CIStatus = {
|
|
11
|
+
exists: boolean;
|
|
12
|
+
content: string;
|
|
13
|
+
path: string;
|
|
14
|
+
fileUrl?: string;
|
|
15
|
+
allowAutoPush: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Get CI configuration status for a project
|
|
19
|
+
*/
|
|
20
|
+
declare const getCIStatus: (project: Project) => Promise<CIStatus>;
|
|
21
|
+
/**
|
|
22
|
+
* Install CI configuration file in the repository
|
|
23
|
+
*/
|
|
24
|
+
declare const installCI: (project: Project) => Promise<void>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { BITBUCKET_PIPELINE_FILENAME, BITBUCKET_TEMPLATE, CIStatus, GITHUB_TEMPLATE, GITHUB_WORKFLOW_FILENAME, GITLAB_PIPELINE_FILENAME, GITLAB_TEMPLATE, getCIStatus, installCI };
|
|
27
|
+
//# sourceMappingURL=ci.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci.service.d.ts","names":[],"sources":["../../../src/services/ci.service.ts"],"sourcesContent":[],"mappings":";;;cAMa,wBAAA;cACA,wBAAA;AADA,cAEA,2BAAA,GAFwB,yBAAA;AACxB,cAGA,eAAA,GAHwB,yOAAA;AACxB,cAeA,eAAA,GAf2B,qIAAA;AAE3B,cAyBA,kBAAA,GAzBe,+JAAA;AAaf,KAsBD,QAAA,GAtBgB;EAYf,MAAA,EAAA,OAAA;EAUD,OAAA,EAAA,MAAQ;EAoBP,IAAA,EAAA,MAAA;EAA8B,OAAA,CAAA,EAAA,MAAA;EAAkB,aAAA,EAAA,OAAA;CAAR;;AAyGrD;;cAzGa,uBAA8B,YAAU,QAAQ;;;;cAyGhD,qBAA4B,YAAU"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Project } from "../types/project.types.js";
|
|
2
|
+
import { RestEndpointMethodTypes } from "@octokit/rest";
|
|
3
|
+
|
|
4
|
+
//#region src/services/github.service.d.ts
|
|
5
|
+
type GitHubRepository = RestEndpointMethodTypes['repos']['listForAuthenticatedUser']['response']['data'][0];
|
|
6
|
+
type GitHubFileContent = RestEndpointMethodTypes['repos']['getContent']['response']['data'];
|
|
7
|
+
declare const getAuthorizationUrl: (redirectUri: string, login?: string) => string;
|
|
8
|
+
declare const exchangeCodeForToken: (code: string) => Promise<string>;
|
|
9
|
+
declare const getUserRepos: (accessToken: string) => Promise<GitHubRepository[]>;
|
|
10
|
+
/**
|
|
11
|
+
* Check if valid intlayer configuration files exist in a repository (Recursively).
|
|
12
|
+
* Returns an array of file paths found (e.g. ['intlayer.config.ts', 'apps/web/intlayer.config.js']).
|
|
13
|
+
*/
|
|
14
|
+
declare const checkIntlayerConfig: (accessToken: string, owner: string, repo: string, branch?: string) => Promise<string[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Get repository file contents and decode it
|
|
17
|
+
*/
|
|
18
|
+
declare const getRepositoryFileContents: (accessToken: string, owner: string, repo: string, path: string, branch?: string) => Promise<string | null>;
|
|
19
|
+
declare const getGitHubTokenFromUser: (userId: string) => Promise<string | null>;
|
|
20
|
+
type DispatchEventOptions = {
|
|
21
|
+
project: Project;
|
|
22
|
+
eventType?: string;
|
|
23
|
+
payload?: Record<string, any>;
|
|
24
|
+
};
|
|
25
|
+
declare const triggerGithubDispatch: ({
|
|
26
|
+
project,
|
|
27
|
+
eventType,
|
|
28
|
+
payload
|
|
29
|
+
}: DispatchEventOptions) => Promise<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* Check if a GitHub workflow file exists
|
|
32
|
+
*/
|
|
33
|
+
declare const checkWorkflowFileExists: (accessToken: string, owner: string, repo: string, filename: string, branch?: string) => Promise<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Create or update a GitHub workflow file
|
|
36
|
+
*/
|
|
37
|
+
declare const createWorkflowFile: (accessToken: string, owner: string, repo: string, filename: string, content: string, branch?: string, message?: string) => Promise<void>;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { GitHubFileContent, GitHubRepository, checkIntlayerConfig, checkWorkflowFileExists, createWorkflowFile, exchangeCodeForToken, getAuthorizationUrl, getGitHubTokenFromUser, getRepositoryFileContents, getUserRepos, triggerGithubDispatch };
|
|
40
|
+
//# sourceMappingURL=github.service.d.ts.map
|