@venturialstd/github 0.0.2
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/constants/github-auth.constant.d.ts +4 -0
- package/dist/constants/github-auth.constant.d.ts.map +1 -0
- package/dist/constants/github-auth.constant.js +8 -0
- package/dist/constants/github-auth.constant.js.map +1 -0
- package/dist/constants/github.settings.constants.d.ts +7 -0
- package/dist/constants/github.settings.constants.d.ts.map +1 -0
- package/dist/constants/github.settings.constants.js +10 -0
- package/dist/constants/github.settings.constants.js.map +1 -0
- package/dist/controllers/github-oauth.controller.d.ts +19 -0
- package/dist/controllers/github-oauth.controller.d.ts.map +1 -0
- package/dist/controllers/github-oauth.controller.js +48 -0
- package/dist/controllers/github-oauth.controller.js.map +1 -0
- package/dist/github.module.d.ts +3 -0
- package/dist/github.module.d.ts.map +1 -0
- package/dist/github.module.js +26 -0
- package/dist/github.module.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/services/github-oauth.service.d.ts +7 -0
- package/dist/services/github-oauth.service.d.ts.map +1 -0
- package/dist/services/github-oauth.service.js +49 -0
- package/dist/services/github-oauth.service.js.map +1 -0
- package/dist/settings/github.settings.d.ts +3 -0
- package/dist/settings/github.settings.d.ts.map +1 -0
- package/dist/settings/github.settings.js +31 -0
- package/dist/settings/github.settings.js.map +1 -0
- package/package.json +32 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-auth.constant.d.ts","sourceRoot":"","sources":["../../src/constants/github-auth.constant.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,kBAAkB,uBAAuB;CAC1C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GITHUB_PERMISSIONS = void 0;
|
|
4
|
+
var GITHUB_PERMISSIONS;
|
|
5
|
+
(function (GITHUB_PERMISSIONS) {
|
|
6
|
+
GITHUB_PERMISSIONS["AUTHORIZATION_CODE"] = "authorization_code";
|
|
7
|
+
})(GITHUB_PERMISSIONS || (exports.GITHUB_PERMISSIONS = GITHUB_PERMISSIONS = {}));
|
|
8
|
+
//# sourceMappingURL=github-auth.constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-auth.constant.js","sourceRoot":"","sources":["../../src/constants/github-auth.constant.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAEX;AAFD,WAAY,kBAAkB;IAC5B,+DAAyC,CAAA;AAC3C,CAAC,EAFW,kBAAkB,kCAAlB,kBAAkB,QAE7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.settings.constants.d.ts","sourceRoot":"","sources":["../../src/constants/github.settings.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;CAK/B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GITHUB_SETTING_KEYS = void 0;
|
|
4
|
+
exports.GITHUB_SETTING_KEYS = {
|
|
5
|
+
GENERAL_CLIENT_ID: 'GLOBAL:GITHUB:GENERAL:CLIENT_ID',
|
|
6
|
+
GENERAL_CLIENT_SECRET: 'GLOBAL:GITHUB:GENERAL:CLIENT_SECRET',
|
|
7
|
+
GENERAL_URL: 'GLOBAL:GITHUB:GENERAL:URL',
|
|
8
|
+
GENERAL_GITHUB_HOST: 'GLOBAL:GITHUB:GENERAL:GITHUB_HOST',
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=github.settings.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.settings.constants.js","sourceRoot":"","sources":["../../src/constants/github.settings.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC,iBAAiB,EAAE,iCAAiC;IACpD,qBAAqB,EAAE,qCAAqC;IAC5D,WAAW,EAAE,2BAA2B;IACxC,mBAAmB,EAAE,mCAAmC;CACzD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GithubOAuthService } from '../services/github-oauth.service';
|
|
2
|
+
export declare class GithubAuthController {
|
|
3
|
+
private readonly githubOAuth;
|
|
4
|
+
constructor(githubOAuth: GithubOAuthService);
|
|
5
|
+
exchangeCode(body: {
|
|
6
|
+
code: string;
|
|
7
|
+
}): Promise<{
|
|
8
|
+
error: string;
|
|
9
|
+
access_token?: undefined;
|
|
10
|
+
refresh_token?: undefined;
|
|
11
|
+
expires_in?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
access_token: any;
|
|
14
|
+
refresh_token: any;
|
|
15
|
+
expires_in: any;
|
|
16
|
+
error?: undefined;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=github-oauth.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-oauth.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/github-oauth.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,qBACa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,kBAAkB;IAItD,YAAY,CAAS,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;;CAalD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.GithubAuthController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const github_oauth_service_1 = require("../services/github-oauth.service");
|
|
18
|
+
let GithubAuthController = class GithubAuthController {
|
|
19
|
+
githubOAuth;
|
|
20
|
+
constructor(githubOAuth) {
|
|
21
|
+
this.githubOAuth = githubOAuth;
|
|
22
|
+
}
|
|
23
|
+
async exchangeCode(body) {
|
|
24
|
+
if (!body.code) {
|
|
25
|
+
return { error: 'Missing code' };
|
|
26
|
+
}
|
|
27
|
+
const token = await this.githubOAuth.exchangeCode(body.code);
|
|
28
|
+
return {
|
|
29
|
+
access_token: token.access_token,
|
|
30
|
+
refresh_token: token.refresh_token,
|
|
31
|
+
expires_in: token.expires_in,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.GithubAuthController = GithubAuthController;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, common_1.Post)('exchange'),
|
|
38
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
39
|
+
__param(0, (0, common_1.Body)()),
|
|
40
|
+
__metadata("design:type", Function),
|
|
41
|
+
__metadata("design:paramtypes", [Object]),
|
|
42
|
+
__metadata("design:returntype", Promise)
|
|
43
|
+
], GithubAuthController.prototype, "exchangeCode", null);
|
|
44
|
+
exports.GithubAuthController = GithubAuthController = __decorate([
|
|
45
|
+
(0, common_1.Controller)('auth/github'),
|
|
46
|
+
__metadata("design:paramtypes", [github_oauth_service_1.GithubOAuthService])
|
|
47
|
+
], GithubAuthController);
|
|
48
|
+
//# sourceMappingURL=github-oauth.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-oauth.controller.js","sourceRoot":"","sources":["../../src/controllers/github-oauth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA8E;AAE9E,2EAAsE;AAG/D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IACF;IAA7B,YAA6B,WAA+B;QAA/B,gBAAW,GAAX,WAAW,CAAoB;IAAG,CAAC;IAI1D,AAAN,KAAK,CAAC,YAAY,CAAS,IAAsB;QAC/C,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YACf,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC;QACnC,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE7D,OAAO;YACL,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,aAAa,EAAE,KAAK,CAAC,aAAa;YAClC,UAAU,EAAE,KAAK,CAAC,UAAU;SAC7B,CAAC;IACJ,CAAC;CACF,CAAA;AAlBY,oDAAoB;AAKzB;IAFL,IAAA,aAAI,EAAC,UAAU,CAAC;IAChB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACJ,WAAA,IAAA,aAAI,GAAE,CAAA;;;;wDAYzB;+BAjBU,oBAAoB;IADhC,IAAA,mBAAU,EAAC,aAAa,CAAC;qCAEkB,yCAAkB;GADjD,oBAAoB,CAkBhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.module.d.ts","sourceRoot":"","sources":["../src/github.module.ts"],"names":[],"mappings":"AAMA,qBAMa,YAAY;CAAG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GithubModule = void 0;
|
|
10
|
+
const axios_1 = require("@nestjs/axios");
|
|
11
|
+
const common_1 = require("@nestjs/common");
|
|
12
|
+
const core_1 = require("@venturialstd/core");
|
|
13
|
+
const github_oauth_controller_1 = require("./controllers/github-oauth.controller");
|
|
14
|
+
const github_oauth_service_1 = require("./services/github-oauth.service");
|
|
15
|
+
let GithubModule = class GithubModule {
|
|
16
|
+
};
|
|
17
|
+
exports.GithubModule = GithubModule;
|
|
18
|
+
exports.GithubModule = GithubModule = __decorate([
|
|
19
|
+
(0, common_1.Module)({
|
|
20
|
+
imports: [axios_1.HttpModule, core_1.AppLoggerModule, core_1.SettingsModule],
|
|
21
|
+
controllers: [github_oauth_controller_1.GithubAuthController],
|
|
22
|
+
providers: [github_oauth_service_1.GithubOAuthService],
|
|
23
|
+
exports: [github_oauth_service_1.GithubOAuthService],
|
|
24
|
+
})
|
|
25
|
+
], GithubModule);
|
|
26
|
+
//# sourceMappingURL=github.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.module.js","sourceRoot":"","sources":["../src/github.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAA2C;AAC3C,2CAAwC;AACxC,6CAAqE;AAErE,mFAA6E;AAC7E,0EAAqE;AAO9D,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IANxB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,kBAAU,EAAE,sBAAe,EAAE,qBAAc,CAAC;QACtD,WAAW,EAAE,CAAC,8CAAoB,CAAC;QACnC,SAAS,EAAE,CAAC,yCAAkB,CAAC;QAC/B,OAAO,EAAE,CAAC,yCAAkB,CAAC;KAC9B,CAAC;GACW,YAAY,CAAG"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./github.module"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SettingsService } from '@venturialstd/core';
|
|
2
|
+
export declare class GithubOAuthService {
|
|
3
|
+
private readonly settings;
|
|
4
|
+
constructor(settings: SettingsService);
|
|
5
|
+
exchangeCode(code: string): Promise<any>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=github-oauth.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-oauth.service.d.ts","sourceRoot":"","sources":["../../src/services/github-oauth.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAKrD,qBACa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,eAAe;IAEhD,YAAY,CAAC,IAAI,EAAE,MAAM;CAoBhC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.GithubOAuthService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const core_1 = require("@venturialstd/core");
|
|
18
|
+
const axios_1 = __importDefault(require("axios"));
|
|
19
|
+
const github_settings_constants_1 = require("../constants/github.settings.constants");
|
|
20
|
+
let GithubOAuthService = class GithubOAuthService {
|
|
21
|
+
settings;
|
|
22
|
+
constructor(settings) {
|
|
23
|
+
this.settings = settings;
|
|
24
|
+
}
|
|
25
|
+
async exchangeCode(code) {
|
|
26
|
+
const secret = await this.settings.get(github_settings_constants_1.GITHUB_SETTING_KEYS.GENERAL_CLIENT_SECRET);
|
|
27
|
+
const client_id = await this.settings.get(github_settings_constants_1.GITHUB_SETTING_KEYS.GENERAL_CLIENT_ID);
|
|
28
|
+
const url = await this.settings.get(github_settings_constants_1.GITHUB_SETTING_KEYS.GENERAL_URL);
|
|
29
|
+
const github_host = await this.settings.get(github_settings_constants_1.GITHUB_SETTING_KEYS.GENERAL_GITHUB_HOST);
|
|
30
|
+
const response = await axios_1.default.post(`${github_host}/login/oauth/access_token`, null, {
|
|
31
|
+
params: {
|
|
32
|
+
client_id: client_id,
|
|
33
|
+
client_secret: secret,
|
|
34
|
+
code,
|
|
35
|
+
redirect_uri: url,
|
|
36
|
+
},
|
|
37
|
+
headers: {
|
|
38
|
+
Accept: 'application/json',
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
return response.data;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.GithubOAuthService = GithubOAuthService;
|
|
45
|
+
exports.GithubOAuthService = GithubOAuthService = __decorate([
|
|
46
|
+
(0, common_1.Injectable)(),
|
|
47
|
+
__metadata("design:paramtypes", [core_1.SettingsService])
|
|
48
|
+
], GithubOAuthService);
|
|
49
|
+
//# sourceMappingURL=github-oauth.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-oauth.service.js","sourceRoot":"","sources":["../../src/services/github-oauth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAqD;AACrD,kDAA0B;AAE1B,sFAA6E;AAGtE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IACA;IAA7B,YAA6B,QAAyB;QAAzB,aAAQ,GAAR,QAAQ,CAAiB;IAAG,CAAC;IAE1D,KAAK,CAAC,YAAY,CAAC,IAAY;QAC7B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,+CAAmB,CAAC,qBAAqB,CAAC,CAAC;QAClF,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,+CAAmB,CAAC,iBAAiB,CAAC,CAAC;QACjF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,+CAAmB,CAAC,WAAW,CAAC,CAAC;QACrE,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,+CAAmB,CAAC,mBAAmB,CAAC,CAAC;QAErF,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,IAAI,CAAC,GAAG,WAAW,2BAA2B,EAAE,IAAI,EAAE;YACjF,MAAM,EAAE;gBACN,SAAS,EAAE,SAAS;gBACpB,aAAa,EAAE,MAAM;gBACrB,IAAI;gBACJ,YAAY,EAAE,GAAG;aAClB;YACD,OAAO,EAAE;gBACP,MAAM,EAAE,kBAAkB;aAC3B;SACF,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CACF,CAAA;AAvBY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;qCAE4B,sBAAe;GAD3C,kBAAkB,CAuB9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.settings.d.ts","sourceRoot":"","sources":["../../src/settings/github.settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,oBAAoB,CAAC;AAE7D,eAAO,MAAM,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,GAAG,WAAW,GAAG,WAAW,CAAC,EA0BtE,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SETTINGS = void 0;
|
|
4
|
+
const core_1 = require("@venturialstd/core");
|
|
5
|
+
exports.SETTINGS = [
|
|
6
|
+
{
|
|
7
|
+
scope: 'GLOBAL',
|
|
8
|
+
module: 'GITLAB',
|
|
9
|
+
section: 'GENERAL',
|
|
10
|
+
key: 'URL',
|
|
11
|
+
label: 'GitLab OAuth URL',
|
|
12
|
+
description: 'URL used for OAuth authentication with GitLab',
|
|
13
|
+
type: core_1.SETTINGS_TYPE.SECRET,
|
|
14
|
+
value: '',
|
|
15
|
+
options: null,
|
|
16
|
+
sortOrder: 3,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
scope: 'GLOBAL',
|
|
20
|
+
module: 'GITLAB',
|
|
21
|
+
section: 'GENERAL',
|
|
22
|
+
key: 'GITLAB_HOST',
|
|
23
|
+
label: 'GitLab Host URL',
|
|
24
|
+
description: 'Base URL of GitLab instance (ex. https://gitlab.com)',
|
|
25
|
+
type: core_1.SETTINGS_TYPE.TEXT,
|
|
26
|
+
value: 'https://gitlab.com',
|
|
27
|
+
options: null,
|
|
28
|
+
sortOrder: 2,
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
//# sourceMappingURL=github.settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github.settings.js","sourceRoot":"","sources":["../../src/settings/github.settings.ts"],"names":[],"mappings":";;;AAAA,6CAA6D;AAEhD,QAAA,QAAQ,GAAuD;IAC1E;QACE,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,SAAS;QAClB,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,kBAAkB;QACzB,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE,oBAAa,CAAC,MAAM;QAC1B,KAAK,EAAE,EAAE;QACT,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,CAAC;KACb;IAED;QACE,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,SAAS;QAClB,GAAG,EAAE,aAAa;QAClB,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,sDAAsD;QACnE,IAAI,EAAE,oBAAa,CAAC,IAAI;QACxB,KAAK,EAAE,oBAAoB;QAC3B,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,CAAC;KACb;CACF,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@venturialstd/github",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "GitHub API 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
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"typescript": "^5.9.3"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@nestjs/axios": "^4.0.0",
|
|
24
|
+
"@nestjs/common": "^11.0.11",
|
|
25
|
+
"@nestjs/core": "^11.0.5",
|
|
26
|
+
"@nestjs/event-emitter": "^3.0.1",
|
|
27
|
+
"@venturialstd/core": "^1.0.16",
|
|
28
|
+
"class-transformer": "^0.5.1",
|
|
29
|
+
"class-validator": "^0.14.1",
|
|
30
|
+
"rxjs": "^7.8.1"
|
|
31
|
+
}
|
|
32
|
+
}
|