@venturialstd/organization 0.0.2 → 0.0.4
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 +910 -910
- package/dist/constants/repository-provider.constant.d.ts +6 -0
- package/dist/constants/repository-provider.constant.d.ts.map +1 -0
- package/dist/constants/repository-provider.constant.js +10 -0
- package/dist/constants/repository-provider.constant.js.map +1 -0
- package/dist/controllers/organization-repository.controller.d.ts +16 -0
- package/dist/controllers/organization-repository.controller.d.ts.map +1 -0
- package/dist/controllers/organization-repository.controller.js +84 -0
- package/dist/controllers/organization-repository.controller.js.map +1 -0
- package/dist/dtos/repository-auth.dto.d.ts +6 -0
- package/dist/dtos/repository-auth.dto.d.ts.map +1 -0
- package/dist/dtos/repository-auth.dto.js +28 -0
- package/dist/dtos/repository-auth.dto.js.map +1 -0
- package/dist/organization.module.d.ts.map +1 -1
- package/dist/organization.module.js +4 -1
- package/dist/organization.module.js.map +1 -1
- package/package.json +42 -42
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-provider.constant.d.ts","sourceRoot":"","sources":["../../src/constants/repository-provider.constant.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAC9B,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.REPOSITORY_PROVIDERS = void 0;
|
|
4
|
+
var REPOSITORY_PROVIDERS;
|
|
5
|
+
(function (REPOSITORY_PROVIDERS) {
|
|
6
|
+
REPOSITORY_PROVIDERS["BITBUCKET"] = "BITBUCKET";
|
|
7
|
+
REPOSITORY_PROVIDERS["GITLAB"] = "GITLAB";
|
|
8
|
+
REPOSITORY_PROVIDERS["GITHUB"] = "GITHUB";
|
|
9
|
+
})(REPOSITORY_PROVIDERS || (exports.REPOSITORY_PROVIDERS = REPOSITORY_PROVIDERS = {}));
|
|
10
|
+
//# sourceMappingURL=repository-provider.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-provider.constant.js","sourceRoot":"","sources":["../../src/constants/repository-provider.constant.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,yCAAiB,CAAA;IACjB,yCAAiB,CAAA;AACnB,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BitbucketOAuthService } from '@venturialstd/bitbucket';
|
|
2
|
+
import { GithubOAuthService } from '@venturialstd/github';
|
|
3
|
+
import { GitlabOAuthService } from '@venturialstd/gitlab';
|
|
4
|
+
import { RepositoryAuthDto } from '../dtos/repository-auth.dto';
|
|
5
|
+
import { OrganizationSettingsService } from '../services/organization-settings.service';
|
|
6
|
+
export declare class OrganizationRepositoryController {
|
|
7
|
+
private readonly githubOAuthService;
|
|
8
|
+
private readonly gitlabOAuthService;
|
|
9
|
+
private readonly bitbucketOAuthService;
|
|
10
|
+
private readonly organizationSettingsService;
|
|
11
|
+
constructor(githubOAuthService: GithubOAuthService, gitlabOAuthService: GitlabOAuthService, bitbucketOAuthService: BitbucketOAuthService, organizationSettingsService: OrganizationSettingsService);
|
|
12
|
+
authenticateRepository(organizationId: string, body: RepositoryAuthDto): Promise<{
|
|
13
|
+
success: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=organization-repository.controller.d.ts.map
|
|
@@ -0,0 +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,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,2BAA2B;gBAH3B,kBAAkB,EAAE,kBAAkB,EACtC,kBAAkB,EAAE,kBAAkB,EACtC,qBAAqB,EAAE,qBAAqB,EAC5C,2BAA2B,EAAE,2BAA2B;IAKrE,sBAAsB,CACb,cAAc,EAAE,MAAM,EAC3B,IAAI,EAAE,iBAAiB,GAC9B,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CA6CjC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.OrganizationRepositoryController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const bitbucket_1 = require("@venturialstd/bitbucket");
|
|
18
|
+
const github_1 = require("@venturialstd/github");
|
|
19
|
+
const gitlab_1 = require("@venturialstd/gitlab");
|
|
20
|
+
const repository_provider_constant_1 = require("../constants/repository-provider.constant");
|
|
21
|
+
const repository_auth_dto_1 = require("../dtos/repository-auth.dto");
|
|
22
|
+
const organization_settings_service_1 = require("../services/organization-settings.service");
|
|
23
|
+
let OrganizationRepositoryController = class OrganizationRepositoryController {
|
|
24
|
+
githubOAuthService;
|
|
25
|
+
gitlabOAuthService;
|
|
26
|
+
bitbucketOAuthService;
|
|
27
|
+
organizationSettingsService;
|
|
28
|
+
constructor(githubOAuthService, gitlabOAuthService, bitbucketOAuthService, organizationSettingsService) {
|
|
29
|
+
this.githubOAuthService = githubOAuthService;
|
|
30
|
+
this.gitlabOAuthService = gitlabOAuthService;
|
|
31
|
+
this.bitbucketOAuthService = bitbucketOAuthService;
|
|
32
|
+
this.organizationSettingsService = organizationSettingsService;
|
|
33
|
+
}
|
|
34
|
+
async authenticateRepository(organizationId, body) {
|
|
35
|
+
try {
|
|
36
|
+
const { provider, code } = body;
|
|
37
|
+
let tokenResponse;
|
|
38
|
+
switch (provider) {
|
|
39
|
+
case repository_provider_constant_1.REPOSITORY_PROVIDERS.GITHUB:
|
|
40
|
+
tokenResponse = await this.githubOAuthService.exchangeCode(code);
|
|
41
|
+
break;
|
|
42
|
+
case repository_provider_constant_1.REPOSITORY_PROVIDERS.GITLAB:
|
|
43
|
+
tokenResponse = await this.gitlabOAuthService.exchangeCode(code);
|
|
44
|
+
break;
|
|
45
|
+
case repository_provider_constant_1.REPOSITORY_PROVIDERS.BITBUCKET:
|
|
46
|
+
tokenResponse = await this.bitbucketOAuthService.exchangeCode(code);
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
return { success: false };
|
|
50
|
+
}
|
|
51
|
+
if (!tokenResponse?.access_token) {
|
|
52
|
+
return { success: false };
|
|
53
|
+
}
|
|
54
|
+
await this.organizationSettingsService.setOrganizationSetting(organizationId, {
|
|
55
|
+
module: 'repository',
|
|
56
|
+
section: provider.toLowerCase(),
|
|
57
|
+
key: 'access_token',
|
|
58
|
+
value: tokenResponse.access_token,
|
|
59
|
+
});
|
|
60
|
+
return { success: true };
|
|
61
|
+
}
|
|
62
|
+
catch {
|
|
63
|
+
return { success: false };
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
exports.OrganizationRepositoryController = OrganizationRepositoryController;
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, common_1.Post)(':id/repository/auth'),
|
|
70
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
71
|
+
__param(0, (0, common_1.Param)('id')),
|
|
72
|
+
__param(1, (0, common_1.Body)()),
|
|
73
|
+
__metadata("design:type", Function),
|
|
74
|
+
__metadata("design:paramtypes", [String, repository_auth_dto_1.RepositoryAuthDto]),
|
|
75
|
+
__metadata("design:returntype", Promise)
|
|
76
|
+
], OrganizationRepositoryController.prototype, "authenticateRepository", null);
|
|
77
|
+
exports.OrganizationRepositoryController = OrganizationRepositoryController = __decorate([
|
|
78
|
+
(0, common_1.Controller)('organization'),
|
|
79
|
+
__metadata("design:paramtypes", [github_1.GithubOAuthService,
|
|
80
|
+
gitlab_1.GitlabOAuthService,
|
|
81
|
+
bitbucket_1.BitbucketOAuthService,
|
|
82
|
+
organization_settings_service_1.OrganizationSettingsService])
|
|
83
|
+
], OrganizationRepositoryController);
|
|
84
|
+
//# sourceMappingURL=organization-repository.controller.js.map
|
|
@@ -0,0 +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,kBAAsC,EACtC,kBAAsC,EACtC,qBAA4C,EAC5C,2BAAwD;QAHxD,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,gCAA2B,GAA3B,2BAA2B,CAA6B;IACxE,CAAC;IAIE,AAAN,KAAK,CAAC,sBAAsB,CACb,cAAsB,EAC3B,IAAuB;QAE/B,IAAI,CAAC;YACH,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;YAEhC,IAAI,aAMS,CAAC;YAEd,QAAQ,QAAQ,EAAE,CAAC;gBACjB,KAAK,mDAAoB,CAAC,MAAM;oBAC9B,aAAa,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;oBACjE,MAAM;gBAER,KAAK,mDAAoB,CAAC,MAAM;oBAC9B,aAAa,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;oBACjE,MAAM;gBAER,KAAK,mDAAoB,CAAC,SAAS;oBACjC,aAAa,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;oBACpE,MAAM;gBAER;oBACE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;YAC9B,CAAC;YAED,IAAI,CAAC,aAAa,EAAE,YAAY,EAAE,CAAC;gBACjC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;YAC5B,CAAC;YAED,MAAM,IAAI,CAAC,2BAA2B,CAAC,sBAAsB,CAAC,cAAc,EAAE;gBAC5E,MAAM,EAAE,YAAY;gBACpB,OAAO,EAAE,QAAQ,CAAC,WAAW,EAAE;gBAC/B,GAAG,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;qCAGc,2BAAkB;QAClB,2BAAkB;QACf,iCAAqB;QACf,2DAA2B;GALhE,gCAAgC,CA0D5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-auth.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/repository-auth.dto.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,qBAAa,iBAAiB;IAE5B,QAAQ,EAAE,oBAAoB,CAAC;IAG/B,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RepositoryAuthDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const repository_provider_constant_1 = require("../constants/repository-provider.constant");
|
|
15
|
+
class RepositoryAuthDto {
|
|
16
|
+
provider;
|
|
17
|
+
code;
|
|
18
|
+
}
|
|
19
|
+
exports.RepositoryAuthDto = RepositoryAuthDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsEnum)(repository_provider_constant_1.REPOSITORY_PROVIDERS),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], RepositoryAuthDto.prototype, "provider", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], RepositoryAuthDto.prototype, "code", void 0);
|
|
28
|
+
//# sourceMappingURL=repository-auth.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repository-auth.dto.js","sourceRoot":"","sources":["../../src/dtos/repository-auth.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmD;AAEnD,4FAAiF;AACjF,MAAa,iBAAiB;IAE5B,QAAQ,CAAuB;IAG/B,IAAI,CAAS;CACd;AAND,8CAMC;AAJC;IADC,IAAA,wBAAM,EAAC,mDAAoB,CAAC;;mDACE;AAG/B;IADC,IAAA,0BAAQ,GAAE;;+CACE"}
|
|
@@ -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":"AAaA,qBAUa,kBAAkB;CAAG"}
|
|
@@ -10,6 +10,8 @@ exports.OrganizationModule = void 0;
|
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
12
12
|
const core_1 = require("@venturialstd/core");
|
|
13
|
+
const github_1 = require("@venturialstd/github");
|
|
14
|
+
const organization_repository_controller_1 = require("./controllers/organization-repository.controller");
|
|
13
15
|
const organization_entity_1 = require("./entities/organization.entity");
|
|
14
16
|
const organization_settings_entity_1 = require("./entities/organization-settings.entity");
|
|
15
17
|
const organization_user_entity_1 = require("./entities/organization-user.entity");
|
|
@@ -23,10 +25,11 @@ exports.OrganizationModule = OrganizationModule = __decorate([
|
|
|
23
25
|
(0, common_1.Module)({
|
|
24
26
|
imports: [
|
|
25
27
|
core_1.SharedModule.forRoot({}),
|
|
28
|
+
github_1.GithubModule,
|
|
26
29
|
typeorm_1.TypeOrmModule.forFeature([organization_entity_1.Organization, organization_user_entity_1.OrganizationUser, organization_settings_entity_1.OrganizationSettings]),
|
|
27
30
|
],
|
|
28
31
|
providers: [organization_service_1.OrganizationService, organization_user_service_1.OrganizationUserService, organization_settings_service_1.OrganizationSettingsService],
|
|
29
|
-
controllers: [],
|
|
32
|
+
controllers: [organization_repository_controller_1.OrganizationRepositoryController],
|
|
30
33
|
exports: [organization_service_1.OrganizationService, organization_user_service_1.OrganizationUserService, organization_settings_service_1.OrganizationSettingsService],
|
|
31
34
|
})
|
|
32
35
|
], OrganizationModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.module.js","sourceRoot":"","sources":["../src/organization.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,6CAAkD;
|
|
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;AAYxE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAV9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,mBAAY,CAAC,OAAO,CAAC,EAAE,CAAC;YACxB,qBAAY;YACZ,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"}
|
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@venturialstd/organization",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Organization Management Module for Venturial",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "commonjs",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "tsc -p tsconfig.json",
|
|
16
|
-
"prepublishOnly": "npm run build",
|
|
17
|
-
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
18
|
-
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
19
|
-
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
20
|
-
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
21
|
-
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
22
|
-
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@nestjs/config": "^3.0.0",
|
|
26
|
-
"@types/node": "^20.0.0",
|
|
27
|
-
"dotenv": "^17.2.3",
|
|
28
|
-
"nodemon": "^3.0.0",
|
|
29
|
-
"ts-node": "^10.9.0",
|
|
30
|
-
"tsconfig-paths": "^4.2.0",
|
|
31
|
-
"typescript": "^5.9.3"
|
|
32
|
-
},
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"@nestjs/common": "^11.0.11",
|
|
35
|
-
"@nestjs/core": "^11.0.5",
|
|
36
|
-
"@nestjs/typeorm": "^10.0.0",
|
|
37
|
-
"@venturialstd/core": "^1.0.16",
|
|
38
|
-
"class-transformer": "^0.5.1",
|
|
39
|
-
"class-validator": "^0.14.1",
|
|
40
|
-
"typeorm": "^0.3.20"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@venturialstd/organization",
|
|
3
|
+
"version": "0.0.4",
|
|
4
|
+
"description": "Organization Management Module for Venturial",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc -p tsconfig.json",
|
|
16
|
+
"prepublishOnly": "npm run build",
|
|
17
|
+
"release:patch": "npm run build && npm version patch --no-git-tag-version && npm publish",
|
|
18
|
+
"test:dev": "ts-node -r tsconfig-paths/register test/main.ts",
|
|
19
|
+
"test:watch": "nodemon --watch src --watch test --ext ts --exec npm run test:dev",
|
|
20
|
+
"migration:generate": "ts-node node_modules/.bin/typeorm migration:generate -d test/data-source.ts test/migrations/$npm_config_name",
|
|
21
|
+
"migration:run": "ts-node node_modules/.bin/typeorm migration:run -d test/data-source.ts",
|
|
22
|
+
"migration:revert": "ts-node node_modules/.bin/typeorm migration:revert -d test/data-source.ts"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@nestjs/config": "^3.0.0",
|
|
26
|
+
"@types/node": "^20.0.0",
|
|
27
|
+
"dotenv": "^17.2.3",
|
|
28
|
+
"nodemon": "^3.0.0",
|
|
29
|
+
"ts-node": "^10.9.0",
|
|
30
|
+
"tsconfig-paths": "^4.2.0",
|
|
31
|
+
"typescript": "^5.9.3"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@nestjs/common": "^11.0.11",
|
|
35
|
+
"@nestjs/core": "^11.0.5",
|
|
36
|
+
"@nestjs/typeorm": "^10.0.0",
|
|
37
|
+
"@venturialstd/core": "^1.0.16",
|
|
38
|
+
"class-transformer": "^0.5.1",
|
|
39
|
+
"class-validator": "^0.14.1",
|
|
40
|
+
"typeorm": "^0.3.20"
|
|
41
|
+
}
|
|
42
|
+
}
|