@venturialstd/organization 0.0.4 → 0.0.6
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/controllers/organization-repository.controller.d.ts +3 -3
- package/dist/controllers/organization-repository.controller.d.ts.map +1 -1
- package/dist/controllers/organization-repository.controller.js +7 -7
- package/dist/controllers/organization-repository.controller.js.map +1 -1
- package/dist/organization.module.d.ts.map +1 -1
- package/dist/organization.module.js +5 -1
- package/dist/organization.module.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,11 +4,11 @@ import { GitlabOAuthService } from '@venturialstd/gitlab';
|
|
|
4
4
|
import { RepositoryAuthDto } from '../dtos/repository-auth.dto';
|
|
5
5
|
import { OrganizationSettingsService } from '../services/organization-settings.service';
|
|
6
6
|
export declare class OrganizationRepositoryController {
|
|
7
|
-
private readonly
|
|
7
|
+
private readonly organizationSettingsService;
|
|
8
8
|
private readonly gitlabOAuthService;
|
|
9
9
|
private readonly bitbucketOAuthService;
|
|
10
|
-
private readonly
|
|
11
|
-
constructor(
|
|
10
|
+
private readonly githubOAuthService;
|
|
11
|
+
constructor(organizationSettingsService: OrganizationSettingsService, gitlabOAuthService: GitlabOAuthService, bitbucketOAuthService: BitbucketOAuthService, githubOAuthService: GithubOAuthService);
|
|
12
12
|
authenticateRepository(organizationId: string, body: RepositoryAuthDto): Promise<{
|
|
13
13
|
success: boolean;
|
|
14
14
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-repository.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/organization-repository.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAExF,qBACa,gCAAgC;IAEzC,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"organization-repository.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/organization-repository.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,2CAA2C,CAAC;AAExF,qBACa,gCAAgC;IAEzC,OAAO,CAAC,QAAQ,CAAC,2BAA2B;IAC5C,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAHlB,2BAA2B,EAAE,2BAA2B,EACxD,kBAAkB,EAAE,kBAAkB,EACtC,qBAAqB,EAAE,qBAAqB,EAC5C,kBAAkB,EAAE,kBAAkB;IAKnD,sBAAsB,CACb,cAAc,EAAE,MAAM,EAC3B,IAAI,EAAE,iBAAiB,GAC9B,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CA6CjC"}
|
|
@@ -21,15 +21,15 @@ const repository_provider_constant_1 = require("../constants/repository-provider
|
|
|
21
21
|
const repository_auth_dto_1 = require("../dtos/repository-auth.dto");
|
|
22
22
|
const organization_settings_service_1 = require("../services/organization-settings.service");
|
|
23
23
|
let OrganizationRepositoryController = class OrganizationRepositoryController {
|
|
24
|
-
|
|
24
|
+
organizationSettingsService;
|
|
25
25
|
gitlabOAuthService;
|
|
26
26
|
bitbucketOAuthService;
|
|
27
|
-
|
|
28
|
-
constructor(
|
|
29
|
-
this.
|
|
27
|
+
githubOAuthService;
|
|
28
|
+
constructor(organizationSettingsService, gitlabOAuthService, bitbucketOAuthService, githubOAuthService) {
|
|
29
|
+
this.organizationSettingsService = organizationSettingsService;
|
|
30
30
|
this.gitlabOAuthService = gitlabOAuthService;
|
|
31
31
|
this.bitbucketOAuthService = bitbucketOAuthService;
|
|
32
|
-
this.
|
|
32
|
+
this.githubOAuthService = githubOAuthService;
|
|
33
33
|
}
|
|
34
34
|
async authenticateRepository(organizationId, body) {
|
|
35
35
|
try {
|
|
@@ -76,9 +76,9 @@ __decorate([
|
|
|
76
76
|
], OrganizationRepositoryController.prototype, "authenticateRepository", null);
|
|
77
77
|
exports.OrganizationRepositoryController = OrganizationRepositoryController = __decorate([
|
|
78
78
|
(0, common_1.Controller)('organization'),
|
|
79
|
-
__metadata("design:paramtypes", [
|
|
79
|
+
__metadata("design:paramtypes", [organization_settings_service_1.OrganizationSettingsService,
|
|
80
80
|
gitlab_1.GitlabOAuthService,
|
|
81
81
|
bitbucket_1.BitbucketOAuthService,
|
|
82
|
-
|
|
82
|
+
github_1.GithubOAuthService])
|
|
83
83
|
], OrganizationRepositoryController);
|
|
84
84
|
//# sourceMappingURL=organization-repository.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization-repository.controller.js","sourceRoot":"","sources":["../../src/controllers/organization-repository.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAqF;AACrF,uDAAgE;AAChE,iDAA0D;AAC1D,iDAA0D;AAE1D,4FAAiF;AACjF,qEAAgE;AAChE,6FAAwF;AAGjF,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAExB;IACA;IACA;IACA;IAJnB,YACmB,
|
|
1
|
+
{"version":3,"file":"organization-repository.controller.js","sourceRoot":"","sources":["../../src/controllers/organization-repository.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAqF;AACrF,uDAAgE;AAChE,iDAA0D;AAC1D,iDAA0D;AAE1D,4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AAG,EAAE,cAAc;gBACnB,KAAK,EAAE,aAAa,CAAC,YAAY;aAClC,CAAC,CAAC;YAEH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;QAC3B,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;CACF,CAAA;AA1DY,4EAAgC;AAUrC;IAFL,IAAA,aAAI,EAAC,qBAAqB,CAAC;IAC3B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IACX,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,uCAAiB;;8EA6ChC;2CAzDU,gCAAgC;IAD5C,IAAA,mBAAU,EAAC,cAAc,CAAC;qCAGuB,2DAA2B;QACpC,2BAAkB;QACf,iCAAqB;QACxB,2BAAkB;GAL9C,gCAAgC,CA0D5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.module.d.ts","sourceRoot":"","sources":["../src/organization.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"organization.module.d.ts","sourceRoot":"","sources":["../src/organization.module.ts"],"names":[],"mappings":"AAeA,qBAYa,kBAAkB;CAAG"}
|
|
@@ -9,8 +9,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.OrganizationModule = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
|
+
const bitbucket_1 = require("@venturialstd/bitbucket");
|
|
12
13
|
const core_1 = require("@venturialstd/core");
|
|
13
14
|
const github_1 = require("@venturialstd/github");
|
|
15
|
+
const gitlab_1 = require("@venturialstd/gitlab");
|
|
14
16
|
const organization_repository_controller_1 = require("./controllers/organization-repository.controller");
|
|
15
17
|
const organization_entity_1 = require("./entities/organization.entity");
|
|
16
18
|
const organization_settings_entity_1 = require("./entities/organization-settings.entity");
|
|
@@ -24,8 +26,10 @@ exports.OrganizationModule = OrganizationModule;
|
|
|
24
26
|
exports.OrganizationModule = OrganizationModule = __decorate([
|
|
25
27
|
(0, common_1.Module)({
|
|
26
28
|
imports: [
|
|
27
|
-
core_1.SharedModule
|
|
29
|
+
core_1.SharedModule,
|
|
28
30
|
github_1.GithubModule,
|
|
31
|
+
gitlab_1.GitlabModule,
|
|
32
|
+
bitbucket_1.BitbucketModule,
|
|
29
33
|
typeorm_1.TypeOrmModule.forFeature([organization_entity_1.Organization, organization_user_entity_1.OrganizationUser, organization_settings_entity_1.OrganizationSettings]),
|
|
30
34
|
],
|
|
31
35
|
providers: [organization_service_1.OrganizationService, organization_user_service_1.OrganizationUserService, organization_settings_service_1.OrganizationSettingsService],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.module.js","sourceRoot":"","sources":["../src/organization.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,6CAAkD;AAClD,iDAAoD;AAEpD,yGAAoG;AACpG,wEAA8D;AAC9D,0FAA+E;AAC/E,kFAAuE;AACvE,0EAAsE;AACtE,4FAAuF;AACvF,oFAA+E;
|
|
1
|
+
{"version":3,"file":"organization.module.js","sourceRoot":"","sources":["../src/organization.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,uDAA0D;AAC1D,6CAAkD;AAClD,iDAAoD;AACpD,iDAAoD;AAEpD,yGAAoG;AACpG,wEAA8D;AAC9D,0FAA+E;AAC/E,kFAAuE;AACvE,0EAAsE;AACtE,4FAAuF;AACvF,oFAA+E;AAcxE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAZ9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,mBAAY;YACZ,qBAAY;YACZ,qBAAY;YACZ,2BAAe;YACf,uBAAa,CAAC,UAAU,CAAC,CAAC,kCAAY,EAAE,2CAAgB,EAAE,mDAAoB,CAAC,CAAC;SACjF;QACD,SAAS,EAAE,CAAC,0CAAmB,EAAE,mDAAuB,EAAE,2DAA2B,CAAC;QACtF,WAAW,EAAE,CAAC,qEAAgC,CAAC;QAC/C,OAAO,EAAE,CAAC,0CAAmB,EAAE,mDAAuB,EAAE,2DAA2B,CAAC;KACrF,CAAC;GACW,kBAAkB,CAAG"}
|