@intlayer/backend 7.5.10 → 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/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/esm/controllers/bitbucket.controller.mjs +77 -0
- package/dist/esm/controllers/bitbucket.controller.mjs.map +1 -0
- package/dist/esm/controllers/dictionary.controller.mjs +20 -0
- package/dist/esm/controllers/dictionary.controller.mjs.map +1 -1
- package/dist/esm/controllers/github.controller.mjs.map +1 -1
- package/dist/esm/controllers/gitlab.controller.mjs +77 -0
- package/dist/esm/controllers/gitlab.controller.mjs.map +1 -0
- package/dist/esm/controllers/project.controller.mjs +109 -2
- package/dist/esm/controllers/project.controller.mjs.map +1 -1
- package/dist/esm/export.mjs +3 -1
- package/dist/esm/index.mjs +5 -1
- package/dist/esm/index.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/gitlab.routes.mjs +43 -0
- package/dist/esm/routes/gitlab.routes.mjs.map +1 -0
- package/dist/esm/routes/project.routes.mjs +25 -1
- package/dist/esm/routes/project.routes.mjs.map +1 -1
- package/dist/esm/schemas/project.schema.mjs +39 -4
- 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/github.service.mjs +90 -2
- package/dist/esm/services/github.service.mjs.map +1 -1
- package/dist/esm/services/gitlab.service.mjs +217 -0
- package/dist/esm/services/gitlab.service.mjs.map +1 -0
- 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 +15 -9
- package/dist/esm/utils/auth/getAuth.mjs.map +1 -1
- package/dist/esm/utils/errors/errorCodes.mjs +156 -0
- package/dist/esm/utils/errors/errorCodes.mjs.map +1 -1
- 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.map +1 -1
- package/dist/types/controllers/github.controller.d.ts.map +1 -1
- 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/project.controller.d.ts +39 -1
- package/dist/types/controllers/project.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/MagicLinkEmail.d.ts.map +1 -1
- 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/PasswordChangeConfirmation.d.ts.map +1 -1
- 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/SubscriptionPaymentCancellation.d.ts.map +1 -1
- 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/ValidateUserEmail.d.ts.map +1 -1
- package/dist/types/emails/Welcome.d.ts +4 -4
- package/dist/types/export.d.ts +8 -4
- package/dist/types/models/dictionary.model.d.ts +4 -4
- package/dist/types/models/dictionary.model.d.ts.map +1 -1
- package/dist/types/models/discussion.model.d.ts +3 -3
- package/dist/types/models/discussion.model.d.ts.map +1 -1
- package/dist/types/models/oAuth2.model.d.ts +3 -3
- package/dist/types/models/oAuth2.model.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/gitlab.routes.d.ts +35 -0
- package/dist/types/routes/gitlab.routes.d.ts.map +1 -0
- package/dist/types/routes/project.routes.d.ts +20 -0
- package/dist/types/routes/project.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/organization.schema.d.ts +6 -6
- package/dist/types/schemas/plans.schema.d.ts +6 -6
- package/dist/types/schemas/plans.schema.d.ts.map +1 -1
- 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/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/email.service.d.ts +11 -11
- package/dist/types/services/github.service.d.ts +20 -1
- package/dist/types/services/github.service.d.ts.map +1 -1
- 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 +32 -4
- package/dist/types/types/project.types.d.ts.map +1 -1
- package/dist/types/utils/errors/ErrorHandler.d.ts +3 -3
- package/dist/types/utils/errors/errorCodes.d.ts +156 -0
- package/dist/types/utils/errors/errorCodes.d.ts.map +1 -1
- package/dist/types/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getDiscussionFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getOrganizationFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getProjectFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts +2 -2
- package/dist/types/utils/mergeFunctionTypes.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discussion.model.d.ts","names":[],"sources":["../../../src/models/discussion.model.ts"],"sourcesContent":[],"mappings":";;;;;cAKa,iBAAe,MAAA,wBAAA,
|
|
1
|
+
{"version":3,"file":"discussion.model.d.ts","names":[],"sources":["../../../src/models/discussion.model.ts"],"sourcesContent":[],"mappings":";;;;;cAKa,iBAAe,MAAA,wBAAA,SAAA,CAAA,sBAAA,sBAAA,aAAA;;;EAAf,GAAA,EAAA,MAAA;CAAe,EAAA,GAAA,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { User } from "../types/user.types.js";
|
|
2
2
|
import "../export.js";
|
|
3
3
|
import { Token as Token$1 } from "../schemas/oAuth2.schema.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as mongoose2 from "mongoose";
|
|
5
5
|
import { Model } from "mongoose";
|
|
6
6
|
import * as oauth2_server0 from "oauth2-server";
|
|
7
7
|
|
|
8
8
|
//#region src/models/oAuth2.model.d.ts
|
|
9
|
-
declare const OAuth2AccessTokenModel: Model<Token$1, {}, {}, {},
|
|
9
|
+
declare const OAuth2AccessTokenModel: Model<Token$1, {}, {}, {}, mongoose2.Document<unknown, {}, Token$1, {}, {}> & Omit<oauth2_server0.Token, "client" | "user"> & {
|
|
10
10
|
clientId: oauth2_server0.Client["id"];
|
|
11
11
|
userId: User["id"];
|
|
12
12
|
} & {
|
|
13
|
-
_id:
|
|
13
|
+
_id: mongoose2.Types.ObjectId;
|
|
14
14
|
} & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oAuth2.model.d.ts","names":[],"sources":["../../../src/models/oAuth2.model.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAGa,wBAAsB,MAAA,qBAAA,
|
|
1
|
+
{"version":3,"file":"oAuth2.model.d.ts","names":[],"sources":["../../../src/models/oAuth2.model.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAGa,wBAAsB,MAAA,qBAAA,SAAA,CAAA,sBAAA,mBAAA,KAAA,cAAA,CAAA,KAAA;YAAA,cAAA,CAAA,MAAA;;;;;EAAtB,GAAA,EAAA,MAAA;CAAsB,EAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FastifyInstance } from "fastify";
|
|
2
|
+
|
|
3
|
+
//#region src/routes/bitbucket.routes.d.ts
|
|
4
|
+
declare const bitbucketRoute = "/api/bitbucket";
|
|
5
|
+
declare const getBitbucketRoutes: () => {
|
|
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 bitbucketRouter: (fastify: FastifyInstance) => Promise<void>;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { bitbucketRoute, bitbucketRouter, getBitbucketRoutes };
|
|
35
|
+
//# sourceMappingURL=bitbucket.routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bitbucket.routes.d.ts","names":[],"sources":["../../../src/routes/bitbucket.routes.ts"],"sourcesContent":[],"mappings":";;;cAUa,cAAA;cAIA;EAJA,UAAA,EAAA;IAIA,QAAA,EAAA,MAAA;IA6BA,GAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;cAAA,2BAAkC,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"}
|
|
@@ -62,6 +62,26 @@ declare const getProjectRoutes: () => {
|
|
|
62
62
|
url: string;
|
|
63
63
|
method: "DELETE";
|
|
64
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
|
+
};
|
|
65
85
|
};
|
|
66
86
|
declare const projectRouter: (fastify: FastifyInstance) => Promise<void>;
|
|
67
87
|
//#endregion
|
|
@@ -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,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 { Organization, OrganizationSchema } from "../types/organization.types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as mongoose27 from "mongoose";
|
|
3
3
|
import { Schema } from "mongoose";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas/organization.schema.d.ts
|
|
6
|
-
declare const organizationSchema: Schema<OrganizationSchema,
|
|
7
|
-
_id:
|
|
6
|
+
declare const organizationSchema: Schema<OrganizationSchema, mongoose27.Model<OrganizationSchema, any, any, any, mongoose27.Document<unknown, any, OrganizationSchema, any, {}> & Omit<Organization, "id"> & {
|
|
7
|
+
_id: mongoose27.Types.ObjectId;
|
|
8
8
|
} & Required<{
|
|
9
|
-
_id:
|
|
9
|
+
_id: mongoose27.Types.ObjectId;
|
|
10
10
|
}> & {
|
|
11
11
|
__v: number;
|
|
12
|
-
}, any>, {}, {}, {}, {},
|
|
13
|
-
_id:
|
|
12
|
+
}, any>, {}, {}, {}, {}, mongoose27.DefaultSchemaOptions, OrganizationSchema, mongoose27.Document<unknown, {}, mongoose27.FlatRecord<OrganizationSchema>, {}, mongoose27.ResolveSchemaOptions<mongoose27.DefaultSchemaOptions>> & mongoose27.FlatRecord<OrganizationSchema> & Required<{
|
|
13
|
+
_id: mongoose27.Types.ObjectId;
|
|
14
14
|
}> & {
|
|
15
15
|
__v: number;
|
|
16
16
|
}>;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plans.schema.d.ts","names":[],"sources":["../../../src/schemas/plans.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAGa,YAAU,OAAA,
|
|
1
|
+
{"version":3,"file":"plans.schema.d.ts","names":[],"sources":["../../../src/schemas/plans.schema.ts"],"sourcesContent":[],"mappings":";;;;;cAGa,YAAU,OAAA,uBAAA,MAAA,2BAAA,UAAA,CAAA,uBAAA,uBAAA,KAAA,IAAA;;;EAAV,GAAA,2BAsEZ;CAtEsB,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"}
|
|
@@ -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
|
}>;
|
|
@@ -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"}
|
|
@@ -9,7 +9,7 @@ import { SubscriptionPaymentSuccessProps } from "../emails/SubscriptionPaymentSu
|
|
|
9
9
|
import { ValidateUserEmailProps } from "../emails/ValidateUserEmail.js";
|
|
10
10
|
import { WelcomeEmailProps } from "../emails/Welcome.js";
|
|
11
11
|
import { Locale } from "@intlayer/types";
|
|
12
|
-
import * as
|
|
12
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
13
13
|
import { ComponentProps } from "react";
|
|
14
14
|
|
|
15
15
|
//#region src/services/email.service.d.ts
|
|
@@ -24,7 +24,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
24
24
|
inviteLink,
|
|
25
25
|
inviteFromIp,
|
|
26
26
|
inviteFromLocation
|
|
27
|
-
}: InviteUserEmailProps):
|
|
27
|
+
}: InviteUserEmailProps): react_jsx_runtime29.JSX.Element;
|
|
28
28
|
PreviewProps: InviteUserEmailProps;
|
|
29
29
|
};
|
|
30
30
|
subject: string;
|
|
@@ -34,7 +34,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
34
34
|
({
|
|
35
35
|
username,
|
|
36
36
|
validationLink
|
|
37
|
-
}: ValidateUserEmailProps):
|
|
37
|
+
}: ValidateUserEmailProps): react_jsx_runtime29.JSX.Element;
|
|
38
38
|
PreviewProps: ValidateUserEmailProps;
|
|
39
39
|
};
|
|
40
40
|
subject: string;
|
|
@@ -44,7 +44,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
44
44
|
({
|
|
45
45
|
username,
|
|
46
46
|
resetLink
|
|
47
|
-
}: ResetPasswordEmailProps):
|
|
47
|
+
}: ResetPasswordEmailProps): react_jsx_runtime29.JSX.Element;
|
|
48
48
|
PreviewProps: ResetPasswordEmailProps;
|
|
49
49
|
};
|
|
50
50
|
subject: string;
|
|
@@ -54,7 +54,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
54
54
|
({
|
|
55
55
|
username,
|
|
56
56
|
loginLink
|
|
57
|
-
}: WelcomeEmailProps):
|
|
57
|
+
}: WelcomeEmailProps): react_jsx_runtime29.JSX.Element;
|
|
58
58
|
PreviewProps: WelcomeEmailProps;
|
|
59
59
|
};
|
|
60
60
|
subject: string;
|
|
@@ -64,7 +64,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
64
64
|
({
|
|
65
65
|
username,
|
|
66
66
|
magicLink
|
|
67
|
-
}: MagicLinkEmailProps):
|
|
67
|
+
}: MagicLinkEmailProps): react_jsx_runtime29.JSX.Element;
|
|
68
68
|
PreviewProps: MagicLinkEmailProps;
|
|
69
69
|
};
|
|
70
70
|
subject: string;
|
|
@@ -73,7 +73,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
73
73
|
template: {
|
|
74
74
|
({
|
|
75
75
|
username
|
|
76
|
-
}: PasswordChangeConfirmationEmailProps):
|
|
76
|
+
}: PasswordChangeConfirmationEmailProps): react_jsx_runtime29.JSX.Element;
|
|
77
77
|
PreviewProps: PasswordChangeConfirmationEmailProps;
|
|
78
78
|
};
|
|
79
79
|
subject: string;
|
|
@@ -86,7 +86,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
86
86
|
organizationName,
|
|
87
87
|
subscriptionStartDate,
|
|
88
88
|
manageSubscriptionLink
|
|
89
|
-
}: SubscriptionPaymentSuccessProps):
|
|
89
|
+
}: SubscriptionPaymentSuccessProps): react_jsx_runtime29.JSX.Element;
|
|
90
90
|
PreviewProps: SubscriptionPaymentSuccessProps;
|
|
91
91
|
};
|
|
92
92
|
subject: string;
|
|
@@ -99,7 +99,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
99
99
|
organizationName,
|
|
100
100
|
cancellationDate,
|
|
101
101
|
reactivateLink
|
|
102
|
-
}: SubscriptionPaymentCancellationProps):
|
|
102
|
+
}: SubscriptionPaymentCancellationProps): react_jsx_runtime29.JSX.Element;
|
|
103
103
|
PreviewProps: SubscriptionPaymentCancellationProps;
|
|
104
104
|
};
|
|
105
105
|
subject: string;
|
|
@@ -112,7 +112,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
112
112
|
organizationName,
|
|
113
113
|
errorDate,
|
|
114
114
|
retryPaymentLink
|
|
115
|
-
}: SubscriptionPaymentErrorProps):
|
|
115
|
+
}: SubscriptionPaymentErrorProps): react_jsx_runtime29.JSX.Element;
|
|
116
116
|
PreviewProps: SubscriptionPaymentErrorProps;
|
|
117
117
|
};
|
|
118
118
|
subject: string;
|
|
@@ -126,7 +126,7 @@ declare const getEmailComponents: (locale?: Locale) => {
|
|
|
126
126
|
tokenDetailsUrl,
|
|
127
127
|
securityLogUrl,
|
|
128
128
|
supportUrl
|
|
129
|
-
}: OAuthTokenCreatedEmailProps):
|
|
129
|
+
}: OAuthTokenCreatedEmailProps): react_jsx_runtime29.JSX.Element;
|
|
130
130
|
PreviewProps: OAuthTokenCreatedEmailProps;
|
|
131
131
|
};
|
|
132
132
|
subject: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Project } from "../types/project.types.js";
|
|
1
2
|
import { RestEndpointMethodTypes } from "@octokit/rest";
|
|
2
3
|
|
|
3
4
|
//#region src/services/github.service.d.ts
|
|
@@ -16,6 +17,24 @@ declare const checkIntlayerConfig: (accessToken: string, owner: string, repo: st
|
|
|
16
17
|
*/
|
|
17
18
|
declare const getRepositoryFileContents: (accessToken: string, owner: string, repo: string, path: string, branch?: string) => Promise<string | null>;
|
|
18
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>;
|
|
19
38
|
//#endregion
|
|
20
|
-
export { GitHubFileContent, GitHubRepository, checkIntlayerConfig, exchangeCodeForToken, getAuthorizationUrl, getGitHubTokenFromUser, getRepositoryFileContents, getUserRepos };
|
|
39
|
+
export { GitHubFileContent, GitHubRepository, checkIntlayerConfig, checkWorkflowFileExists, createWorkflowFile, exchangeCodeForToken, getAuthorizationUrl, getGitHubTokenFromUser, getRepositoryFileContents, getUserRepos, triggerGithubDispatch };
|
|
21
40
|
//# sourceMappingURL=github.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.service.d.ts","names":[],"sources":["../../../src/services/github.service.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"github.service.d.ts","names":[],"sources":["../../../src/services/github.service.ts"],"sourcesContent":[],"mappings":";;;;KAQY,gBAAA,GACV;KACU,iBAAA,GACV;AAHU,cAKC,mBAJX,EAAA,CAAA,WAAA,EAAA,MAAuB,EAAA,KAAA,CAAA,EAAA,MAAA,EAAA,GAAA,MAAA;AACb,cA2BC,oBA1BX,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,GA0BwD,OA1BjC,CAAA,MAAA,CAAA;AAEZ,cAkEA,YA5CZ,EAAA,CAAA,WAAA,EAAA,MAAA,EAAA,GA8CE,OA9CF,CA8CU,gBA9CV,EAAA,CAAA;AAED;AA0CA;AAuBA;AA8CA;AAoCa,cAlFA,mBA8HZ,EA1CE,CAAA,WAAO,EAAA,MAAA,EAAA,KAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA,GA/EP,OA+EO,CAAA,MAAA,EAAA,CAAA;AA0CR;AAQF;;AAA4C,cAxF/B,yBAwF+B,EAAA,CAAA,WAAA,EAAA,MAAA,EAAA,KAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,MAAA,EAAA,GAlFzC,OAkFyC,CAAA,MAAA,GAAA,IAAA,CAAA;AAAA,cApD/B,sBAoD+B,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,GAlDzC,OAkDyC,CAAA,MAAA,GAAA,IAAA,CAAA;KANvC,oBAAA,GAUF;EAAoB,OAAA,EATZ,OASY;EAAA,SAAA,CAAA,EAAA,MAAA;EAwDV,OAAA,CAAA,EA/DD,MA+DC,CAAA,MAAA,EAAA,GAqBZ,CAAA;AAKD,CAAA;cAtFa;;;;GAIV,yBAAoB;;;;cAwDV,kHAMV;;;;cAoBU,gJAQV"}
|