@solidxai/core 0.1.9-beta.6 → 0.1.9-beta.8
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/chatter-message.constants.d.ts +6 -0
- package/dist/constants/chatter-message.constants.d.ts.map +1 -1
- package/dist/constants/chatter-message.constants.js +7 -1
- package/dist/constants/chatter-message.constants.js.map +1 -1
- package/dist/controllers/authentication.controller.d.ts +12 -0
- package/dist/controllers/authentication.controller.d.ts.map +1 -1
- package/dist/controllers/authentication.controller.js +13 -0
- package/dist/controllers/authentication.controller.js.map +1 -1
- package/dist/controllers/chatter-message.controller.d.ts +1 -0
- package/dist/controllers/chatter-message.controller.d.ts.map +1 -1
- package/dist/controllers/chatter-message.controller.js +12 -0
- package/dist/controllers/chatter-message.controller.js.map +1 -1
- package/dist/controllers/facebook-authentication.controller.d.ts +27 -0
- package/dist/controllers/facebook-authentication.controller.d.ts.map +1 -0
- package/dist/controllers/facebook-authentication.controller.js +117 -0
- package/dist/controllers/facebook-authentication.controller.js.map +1 -0
- package/dist/controllers/menu-item-metadata.controller.d.ts +1 -0
- package/dist/controllers/menu-item-metadata.controller.d.ts.map +1 -1
- package/dist/controllers/menu-item-metadata.controller.js +15 -0
- package/dist/controllers/menu-item-metadata.controller.js.map +1 -1
- package/dist/controllers/microsoft-authentication.controller.d.ts +27 -0
- package/dist/controllers/microsoft-authentication.controller.d.ts.map +1 -0
- package/dist/controllers/microsoft-authentication.controller.js +118 -0
- package/dist/controllers/microsoft-authentication.controller.js.map +1 -0
- package/dist/controllers/setting.controller.d.ts +2 -2
- package/dist/controllers/setting.controller.js +2 -2
- package/dist/decorators/auth.decorator.d.ts.map +1 -1
- package/dist/decorators/computed-field-provider.decorator.d.ts.map +1 -1
- package/dist/decorators/dashboard-question-data-provider.decorator.d.ts.map +1 -1
- package/dist/decorators/dashboard-selection-provider.decorator.d.ts.map +1 -1
- package/dist/decorators/disallow-in-production.decorator.d.ts.map +1 -1
- package/dist/decorators/error-codes-provider.decorator.d.ts.map +1 -1
- package/dist/decorators/extension-user-creation-provider.decorator.d.ts.map +1 -1
- package/dist/decorators/is-not-in-enum.decorator.d.ts.map +1 -1
- package/dist/decorators/mail-provider.decorator.d.ts.map +1 -1
- package/dist/decorators/roles.decorator.d.ts.map +1 -1
- package/dist/decorators/scheduled-job-provider.decorator.d.ts.map +1 -1
- package/dist/decorators/security-rule-config-provider.decorator.d.ts.map +1 -1
- package/dist/decorators/selection-provider.decorator.d.ts.map +1 -1
- package/dist/decorators/sms-provider.decorator.d.ts.map +1 -1
- package/dist/decorators/solid-database-module.decorator.d.ts.map +1 -1
- package/dist/decorators/whatsapp-provider.decorator.d.ts.map +1 -1
- package/dist/dtos/create-chatter-message.dto.d.ts +1 -0
- package/dist/dtos/create-chatter-message.dto.d.ts.map +1 -1
- package/dist/dtos/create-chatter-message.dto.js +7 -1
- package/dist/dtos/create-chatter-message.dto.js.map +1 -1
- package/dist/dtos/post-chatter-message.dto.d.ts +1 -0
- package/dist/dtos/post-chatter-message.dto.d.ts.map +1 -1
- package/dist/dtos/post-chatter-message.dto.js +6 -1
- package/dist/dtos/post-chatter-message.dto.js.map +1 -1
- package/dist/dtos/update-chatter-message.dto.d.ts +1 -0
- package/dist/dtos/update-chatter-message.dto.d.ts.map +1 -1
- package/dist/dtos/update-chatter-message.dto.js +7 -1
- package/dist/dtos/update-chatter-message.dto.js.map +1 -1
- package/dist/entities/chatter-message.entity.d.ts +1 -0
- package/dist/entities/chatter-message.entity.d.ts.map +1 -1
- package/dist/entities/chatter-message.entity.js +5 -1
- package/dist/entities/chatter-message.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +8 -0
- package/dist/entities/user.entity.d.ts.map +1 -1
- package/dist/entities/user.entity.js +33 -1
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/helpers/cors.helper.js +1 -1
- package/dist/helpers/cors.helper.js.map +1 -1
- package/dist/helpers/facebook-oauth.helper.d.ts +8 -0
- package/dist/helpers/facebook-oauth.helper.d.ts.map +1 -0
- package/dist/helpers/facebook-oauth.helper.js +11 -0
- package/dist/helpers/facebook-oauth.helper.js.map +1 -0
- package/dist/helpers/field-crud-managers/ManyToManyRelationFieldCrudManager.js +5 -5
- package/dist/helpers/field-crud-managers/ManyToManyRelationFieldCrudManager.js.map +1 -1
- package/dist/helpers/field-crud-managers/ManyToOneRelationFieldCrudManager.d.ts.map +1 -1
- package/dist/helpers/field-crud-managers/ManyToOneRelationFieldCrudManager.js +2 -2
- package/dist/helpers/field-crud-managers/ManyToOneRelationFieldCrudManager.js.map +1 -1
- package/dist/helpers/field-crud-managers/OneToManyRelationFieldCrudManager.js +5 -5
- package/dist/helpers/field-crud-managers/OneToManyRelationFieldCrudManager.js.map +1 -1
- package/dist/helpers/microsoft-oauth.helper.d.ts +9 -0
- package/dist/helpers/microsoft-oauth.helper.d.ts.map +1 -0
- package/dist/helpers/microsoft-oauth.helper.js +12 -0
- package/dist/helpers/microsoft-oauth.helper.js.map +1 -0
- package/dist/helpers/module-metadata-helper.service.js +3 -3
- package/dist/helpers/module-metadata-helper.service.js.map +1 -1
- package/dist/helpers/security.helper.d.ts.map +1 -1
- package/dist/helpers/string.helper.d.ts +1 -0
- package/dist/helpers/string.helper.d.ts.map +1 -1
- package/dist/helpers/string.helper.js +4 -1
- package/dist/helpers/string.helper.js.map +1 -1
- package/dist/helpers/user-helper.d.ts.map +1 -1
- package/dist/helpers/user-helper.js +4 -0
- package/dist/helpers/user-helper.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +19 -0
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/passport-strategies/facebook-oauth.strategy.d.ts +14 -0
- package/dist/passport-strategies/facebook-oauth.strategy.d.ts.map +1 -0
- package/dist/passport-strategies/facebook-oauth.strategy.js +73 -0
- package/dist/passport-strategies/facebook-oauth.strategy.js.map +1 -0
- package/dist/passport-strategies/microsoft-oauth.strategy.d.ts +14 -0
- package/dist/passport-strategies/microsoft-oauth.strategy.d.ts.map +1 -0
- package/dist/passport-strategies/microsoft-oauth.strategy.js +77 -0
- package/dist/passport-strategies/microsoft-oauth.strategy.js.map +1 -0
- package/dist/repository/chatter-message-details.repository.d.ts.map +1 -1
- package/dist/repository/chatter-message-details.repository.js +7 -6
- package/dist/repository/chatter-message-details.repository.js.map +1 -1
- package/dist/repository/chatter-message.repository.d.ts.map +1 -1
- package/dist/repository/chatter-message.repository.js +4 -4
- package/dist/repository/chatter-message.repository.js.map +1 -1
- package/dist/repository/solid-base.repository.js +2 -2
- package/dist/repository/solid-base.repository.js.map +1 -1
- package/dist/seeders/module-test-data.service.js +4 -4
- package/dist/seeders/module-test-data.service.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +27 -58
- package/dist/services/api-key.service.d.ts +17 -1
- package/dist/services/api-key.service.d.ts.map +1 -1
- package/dist/services/api-key.service.js +38 -2
- package/dist/services/api-key.service.js.map +1 -1
- package/dist/services/authentication.service.d.ts +51 -16
- package/dist/services/authentication.service.d.ts.map +1 -1
- package/dist/services/authentication.service.js +318 -150
- package/dist/services/authentication.service.js.map +1 -1
- package/dist/services/chatter-message.service.d.ts +1 -0
- package/dist/services/chatter-message.service.d.ts.map +1 -1
- package/dist/services/chatter-message.service.js +17 -0
- package/dist/services/chatter-message.service.js.map +1 -1
- package/dist/services/computed-fields/entity/sequence-num-computed-field-provider.d.ts.map +1 -1
- package/dist/services/computed-fields/entity/sequence-num-computed-field-provider.js +2 -2
- package/dist/services/computed-fields/entity/sequence-num-computed-field-provider.js.map +1 -1
- package/dist/services/crud-helper.service.d.ts.map +1 -1
- package/dist/services/crud-helper.service.js +9 -9
- package/dist/services/crud-helper.service.js.map +1 -1
- package/dist/services/export-transaction.service.d.ts.map +1 -1
- package/dist/services/export-transaction.service.js +4 -3
- package/dist/services/export-transaction.service.js.map +1 -1
- package/dist/services/field-metadata.service.d.ts.map +1 -1
- package/dist/services/field-metadata.service.js +7 -7
- package/dist/services/field-metadata.service.js.map +1 -1
- package/dist/services/fixtures.service.js +2 -2
- package/dist/services/fixtures.service.js.map +1 -1
- package/dist/services/genai/mcp-handlers/mcp-handler-factory.service.d.ts.map +1 -1
- package/dist/services/genai/mcp-handlers/mcp-handler-factory.service.js +2 -2
- package/dist/services/genai/mcp-handlers/mcp-handler-factory.service.js.map +1 -1
- package/dist/services/import-transaction.service.d.ts.map +1 -1
- package/dist/services/import-transaction.service.js +2 -2
- package/dist/services/import-transaction.service.js.map +1 -1
- package/dist/services/menu-item-metadata.service.js +2 -2
- package/dist/services/menu-item-metadata.service.js.map +1 -1
- package/dist/services/model-metadata.service.d.ts.map +1 -1
- package/dist/services/model-metadata.service.js +12 -11
- package/dist/services/model-metadata.service.js.map +1 -1
- package/dist/services/module-metadata.service.d.ts.map +1 -1
- package/dist/services/module-metadata.service.js +2 -2
- package/dist/services/module-metadata.service.js.map +1 -1
- package/dist/services/queues/publisher-factory.service.d.ts.map +1 -1
- package/dist/services/queues/publisher-factory.service.js +2 -2
- package/dist/services/queues/publisher-factory.service.js.map +1 -1
- package/dist/services/selection-providers/pseudo-foreign-key-selection-provider.service.js +3 -3
- package/dist/services/selection-providers/pseudo-foreign-key-selection-provider.service.js.map +1 -1
- package/dist/services/setting.service.d.ts +5 -2
- package/dist/services/setting.service.d.ts.map +1 -1
- package/dist/services/setting.service.js +51 -6
- package/dist/services/setting.service.js.map +1 -1
- package/dist/services/settings/default-settings-provider.service.d.ts +830 -0
- package/dist/services/settings/default-settings-provider.service.d.ts.map +1 -1
- package/dist/services/settings/default-settings-provider.service.js +1033 -117
- package/dist/services/settings/default-settings-provider.service.js.map +1 -1
- package/dist/services/solid-introspect.service.js +2 -2
- package/dist/services/solid-introspect.service.js.map +1 -1
- package/dist/services/user.service.d.ts +2 -0
- package/dist/services/user.service.d.ts.map +1 -1
- package/dist/services/user.service.js +72 -0
- package/dist/services/user.service.js.map +1 -1
- package/dist/services/view-metadata.service.d.ts.map +1 -1
- package/dist/services/view-metadata.service.js +2 -2
- package/dist/services/view-metadata.service.js.map +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +11 -3
- package/dist/solid-core.module.js.map +1 -1
- package/dist/subscribers/computed-entity-field.subscriber.js +6 -6
- package/dist/subscribers/computed-entity-field.subscriber.js.map +1 -1
- package/dist/transformers/array-transformer.d.ts.map +1 -1
- package/dist/transformers/boolean-transformer.d.ts.map +1 -1
- package/dist/transformers/datetime-transformer.d.ts.map +1 -1
- package/dist/transformers/integer-transformer.d.ts.map +1 -1
- package/dist/validators/is-parsable-int.d.ts.map +1 -1
- package/dist-tests/api/authenticate.spec.js +119 -0
- package/dist-tests/api/authenticate.spec.js.map +1 -0
- package/dist-tests/api/crud-service.findOne.cityMaster.spec.js +97 -0
- package/dist-tests/api/crud-service.findOne.cityMaster.spec.js.map +1 -0
- package/dist-tests/api/ping.spec.js +21 -0
- package/dist-tests/api/ping.spec.js.map +1 -0
- package/dist-tests/helpers/auth.js +41 -0
- package/dist-tests/helpers/auth.js.map +1 -0
- package/dist-tests/helpers/env.js +11 -0
- package/dist-tests/helpers/env.js.map +1 -0
- package/docs/java-spring/README.md +3 -0
- package/docs/java-spring/solid-core-module-deep-dive-report.md +1317 -0
- package/nest +0 -0
- package/package.json +7 -2
- package/src/constants/chatter-message.constants.ts +7 -0
- package/src/controllers/authentication.controller.ts +8 -1
- package/src/controllers/chatter-message.controller.ts +6 -0
- package/src/controllers/facebook-authentication.controller.ts +113 -0
- package/src/controllers/menu-item-metadata.controller.ts +21 -15
- package/src/controllers/microsoft-authentication.controller.ts +116 -0
- package/src/dtos/create-chatter-message.dto.ts +11 -0
- package/src/dtos/post-chatter-message.dto.ts +4 -0
- package/src/dtos/update-chatter-message.dto.ts +13 -1
- package/src/entities/chatter-message.entity.ts +4 -1
- package/src/entities/user.entity.ts +32 -0
- package/src/helpers/cors.helper.ts +1 -1
- package/src/helpers/facebook-oauth.helper.ts +17 -0
- package/src/helpers/field-crud-managers/ManyToManyRelationFieldCrudManager.ts +1 -1
- package/src/helpers/field-crud-managers/ManyToOneRelationFieldCrudManager.ts +1 -2
- package/src/helpers/field-crud-managers/OneToManyRelationFieldCrudManager.ts +1 -1
- package/src/helpers/microsoft-oauth.helper.ts +19 -0
- package/src/helpers/module-metadata-helper.service.ts +3 -3
- package/src/helpers/string.helper.ts +3 -0
- package/src/helpers/user-helper.ts +4 -0
- package/src/index.ts +2 -0
- package/src/interfaces.ts +32 -1
- package/src/passport-strategies/facebook-oauth.strategy.ts +64 -0
- package/src/passport-strategies/microsoft-oauth.strategy.ts +70 -0
- package/src/repository/chatter-message-details.repository.ts +4 -3
- package/src/repository/chatter-message.repository.ts +4 -4
- package/src/repository/solid-base.repository.ts +2 -2
- package/src/seeders/module-test-data.service.ts +1 -1
- package/src/seeders/seed-data/solid-core-metadata.json +27 -58
- package/src/services/api-key.service.ts +77 -35
- package/src/services/authentication.service.ts +1717 -1278
- package/src/services/chatter-message.service.ts +22 -4
- package/src/services/computed-fields/entity/sequence-num-computed-field-provider.ts +1 -2
- package/src/services/crud-helper.service.ts +1 -4
- package/src/services/export-transaction.service.ts +3 -4
- package/src/services/field-metadata.service.ts +1 -4
- package/src/services/fixtures.service.ts +1 -1
- package/src/services/genai/mcp-handlers/mcp-handler-factory.service.ts +1 -2
- package/src/services/import-transaction.service.ts +1 -1
- package/src/services/menu-item-metadata.service.ts +2 -2
- package/src/services/model-metadata.service.ts +11 -13
- package/src/services/module-metadata.service.ts +1 -2
- package/src/services/queues/publisher-factory.service.ts +1 -2
- package/src/services/selection-providers/pseudo-foreign-key-selection-provider.service.ts +1 -1
- package/src/services/setting.service.ts +64 -8
- package/src/services/settings/default-settings-provider.service.ts +1104 -155
- package/src/services/solid-introspect.service.ts +1 -1
- package/src/services/user.service.ts +87 -0
- package/src/services/view-metadata.service.ts +1 -5
- package/src/solid-core.module.ts +25 -8
- package/src/subscribers/computed-entity-field.subscriber.ts +6 -6
- package/.claude/settings.local.json +0 -15
- package/src/services/1.js +0 -6
|
@@ -0,0 +1,118 @@
|
|
|
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.MicrosoftAuthenticationController = void 0;
|
|
16
|
+
const openapi = require("@nestjs/swagger");
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
+
const microsoft_oauth_helper_1 = require("../helpers/microsoft-oauth.helper");
|
|
20
|
+
const authentication_service_1 = require("../services/authentication.service");
|
|
21
|
+
const setting_service_1 = require("../services/setting.service");
|
|
22
|
+
const public_decorator_1 = require("../decorators/public.decorator");
|
|
23
|
+
const auth_decorator_1 = require("../decorators/auth.decorator");
|
|
24
|
+
const auth_type_enum_1 = require("../enums/auth-type.enum");
|
|
25
|
+
const microsoft_oauth_strategy_1 = require("../passport-strategies/microsoft-oauth.strategy");
|
|
26
|
+
const user_service_1 = require("../services/user.service");
|
|
27
|
+
let MicrosoftAuthenticationController = class MicrosoftAuthenticationController {
|
|
28
|
+
constructor(userService, authService, settingService) {
|
|
29
|
+
this.userService = userService;
|
|
30
|
+
this.authService = authService;
|
|
31
|
+
this.settingService = settingService;
|
|
32
|
+
}
|
|
33
|
+
async getConfiguration() {
|
|
34
|
+
return {
|
|
35
|
+
clientID: await this.settingService.getConfigValue("MICROSOFT_CLIENT_ID"),
|
|
36
|
+
clientSecret: await this.settingService.getConfigValue("MICROSOFT_CLIENT_SECRET"),
|
|
37
|
+
tenant: await this.settingService.getConfigValue("MICROSOFT_TENANT_ID"),
|
|
38
|
+
callbackURL: await this.settingService.getConfigValue("MICROSOFT_CALLBACK_URL"),
|
|
39
|
+
redirectURL: await this.settingService.getConfigValue("MICROSOFT_REDIRECT_URL"),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
async validateConfiguration() {
|
|
43
|
+
const config = await this.getConfiguration();
|
|
44
|
+
if (!(0, microsoft_oauth_helper_1.isMicrosoftOAuthConfigured)(config)) {
|
|
45
|
+
throw new common_1.InternalServerErrorException("Microsoft OAuth is not configured");
|
|
46
|
+
}
|
|
47
|
+
return config;
|
|
48
|
+
}
|
|
49
|
+
async connect() {
|
|
50
|
+
await this.validateConfiguration();
|
|
51
|
+
}
|
|
52
|
+
async microsoftAuthCallback(req, res) {
|
|
53
|
+
const config = await this.validateConfiguration();
|
|
54
|
+
const user = req.user;
|
|
55
|
+
return res.redirect(`${config.redirectURL}?accessCode=${user['accessCode']}`);
|
|
56
|
+
}
|
|
57
|
+
async dummyMicrosoftAuthRedirect(accessCode) {
|
|
58
|
+
await this.validateConfiguration();
|
|
59
|
+
const user = await this.userService.findOneByAccessCode(accessCode);
|
|
60
|
+
if (user) {
|
|
61
|
+
delete user['password'];
|
|
62
|
+
}
|
|
63
|
+
return user;
|
|
64
|
+
}
|
|
65
|
+
async microsoftAuth(accessCode) {
|
|
66
|
+
await this.validateConfiguration();
|
|
67
|
+
return this.authService.signInUsingMicrosoft(accessCode);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
exports.MicrosoftAuthenticationController = MicrosoftAuthenticationController;
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, public_decorator_1.Public)(),
|
|
73
|
+
(0, common_1.UseGuards)(microsoft_oauth_strategy_1.MicrosoftOauthGuard),
|
|
74
|
+
(0, common_1.Get)("connect"),
|
|
75
|
+
openapi.ApiResponse({ status: 200 }),
|
|
76
|
+
__metadata("design:type", Function),
|
|
77
|
+
__metadata("design:paramtypes", []),
|
|
78
|
+
__metadata("design:returntype", Promise)
|
|
79
|
+
], MicrosoftAuthenticationController.prototype, "connect", null);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, public_decorator_1.Public)(),
|
|
82
|
+
(0, common_1.Get)("connect/callback"),
|
|
83
|
+
(0, common_1.UseGuards)(microsoft_oauth_strategy_1.MicrosoftOauthGuard),
|
|
84
|
+
openapi.ApiResponse({ status: 200 }),
|
|
85
|
+
__param(0, (0, common_1.Req)()),
|
|
86
|
+
__param(1, (0, common_1.Res)()),
|
|
87
|
+
__metadata("design:type", Function),
|
|
88
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
89
|
+
__metadata("design:returntype", Promise)
|
|
90
|
+
], MicrosoftAuthenticationController.prototype, "microsoftAuthCallback", null);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, public_decorator_1.Public)(),
|
|
93
|
+
(0, common_1.Get)('dummy-redirect'),
|
|
94
|
+
openapi.ApiResponse({ status: 200, type: require("../entities/user.entity").User }),
|
|
95
|
+
__param(0, (0, common_1.Query)('accessCode')),
|
|
96
|
+
__metadata("design:type", Function),
|
|
97
|
+
__metadata("design:paramtypes", [Object]),
|
|
98
|
+
__metadata("design:returntype", Promise)
|
|
99
|
+
], MicrosoftAuthenticationController.prototype, "dummyMicrosoftAuthRedirect", null);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, public_decorator_1.Public)(),
|
|
102
|
+
(0, common_1.Get)("authenticate"),
|
|
103
|
+
(0, swagger_1.ApiQuery)({ name: "accessCode", required: true, type: String }),
|
|
104
|
+
openapi.ApiResponse({ status: 200 }),
|
|
105
|
+
__param(0, (0, common_1.Query)("accessCode")),
|
|
106
|
+
__metadata("design:type", Function),
|
|
107
|
+
__metadata("design:paramtypes", [String]),
|
|
108
|
+
__metadata("design:returntype", Promise)
|
|
109
|
+
], MicrosoftAuthenticationController.prototype, "microsoftAuth", null);
|
|
110
|
+
exports.MicrosoftAuthenticationController = MicrosoftAuthenticationController = __decorate([
|
|
111
|
+
(0, auth_decorator_1.Auth)(auth_type_enum_1.AuthType.None),
|
|
112
|
+
(0, swagger_1.ApiTags)("Iam"),
|
|
113
|
+
(0, common_1.Controller)("iam/microsoft"),
|
|
114
|
+
__metadata("design:paramtypes", [user_service_1.UserService,
|
|
115
|
+
authentication_service_1.AuthenticationService,
|
|
116
|
+
setting_service_1.SettingService])
|
|
117
|
+
], MicrosoftAuthenticationController);
|
|
118
|
+
//# sourceMappingURL=microsoft-authentication.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"microsoft-authentication.controller.js","sourceRoot":"","sources":["../../src/controllers/microsoft-authentication.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,6CAAoD;AAEpD,8EAG2C;AAC3C,+EAA2E;AAC3E,iEAA6D;AAC7D,qEAAyD;AACzD,iEAAoD;AACpD,4DAAmD;AACnD,8FAAsF;AACtF,2DAAuD;AAMhD,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAC5C,YACmB,WAAwB,EACxB,WAAkC,EAClC,cAA8B;QAF9B,gBAAW,GAAX,WAAW,CAAa;QACxB,gBAAW,GAAX,WAAW,CAAuB;QAClC,mBAAc,GAAd,cAAc,CAAgB;IAC9C,CAAC;IAEI,KAAK,CAAC,gBAAgB;QAC5B,OAAO;YACL,QAAQ,EACN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ards,\n} from \"@nestjs/common\";\nimport { ApiQuery, ApiTags } from \"@nestjs/swagger\";\nimport { Request, Response } from \"express\";\nimport {\n MicrosoftAuthConfiguration,\n isMicrosoftOAuthConfigured,\n} from \"../helpers/microsoft-oauth.helper\";\nimport { AuthenticationService } from \"../services/authentication.service\";\nimport { SettingService } from \"../services/setting.service\";\nimport { Public } from \"src/decorators/public.decorator\";\nimport { Auth } from \"../decorators/auth.decorator\";\nimport { AuthType } from \"../enums/auth-type.enum\";\nimport { MicrosoftOauthGuard } from \"../passport-strategies/microsoft-oauth.strategy\";\nimport { UserService } from \"../services/user.service\";\nimport type { SolidCoreSetting } from \"../services/settings/default-settings-provider.service\";\n\n@Auth(AuthType.None)\n@ApiTags(\"Iam\")\n@Controller(\"iam/microsoft\")\nexport class MicrosoftAuthenticationController {\n constructor(\n private readonly userService: UserService,\n private readonly authService: AuthenticationService,\n private readonly settingService: SettingService,\n ) {}\n\n private async getConfiguration(): Promise<MicrosoftAuthConfiguration> {\n return {\n clientID:\n await this.settingService.getConfigValue<SolidCoreSetting>(\n \"MICROSOFT_CLIENT_ID\" as any,\n ),\n clientSecret: await this.settingService.getConfigValue<SolidCoreSetting>(\n \"MICROSOFT_CLIENT_SECRET\" as any,\n ),\n tenant: await this.settingService.getConfigValue<SolidCoreSetting>(\n \"MICROSOFT_TENANT_ID\" as any,\n ),\n callbackURL: await this.settingService.getConfigValue<SolidCoreSetting>(\n \"MICROSOFT_CALLBACK_URL\" as any,\n ),\n redirectURL: await this.settingService.getConfigValue<SolidCoreSetting>(\n \"MICROSOFT_REDIRECT_URL\" as any,\n ),\n };\n }\n\n private async validateConfiguration() {\n const config = await this.getConfiguration();\n if (!isMicrosoftOAuthConfigured(config)) {\n throw new InternalServerErrorException(\n \"Microsoft OAuth is not configured\",\n );\n }\n return config;\n }\n\n @Public()\n @UseGuards(MicrosoftOauthGuard)\n @Get(\"connect\")\n async connect() {\n await this.validateConfiguration();\n }\n\n @Public()\n @Get(\"connect/callback\")\n @UseGuards(MicrosoftOauthGuard)\n async microsoftAuthCallback(@Req() req: Request, @Res() res: Response) {\n const config = await this.validateConfiguration();\n const user = req.user;\n return res.redirect(`${config.redirectURL}?accessCode=${user['accessCode']}`);\n }\n\n /**\n * This is just a dummy endpoint where we are passing in the accessCode, this will be configured in the .env as an environment variable and \n * will be passed the accessCode, using the accessCode the UI code on this page will mostly invoke the /iam/microsoft/auth endpoint which will finally generate the JWT token.\n * \n * @param accessCode \n * @returns \n */\n @Public()\n @Get('dummy-redirect')\n async dummyMicrosoftAuthRedirect(@Query('accessCode') accessCode) {\n await this.validateConfiguration();\n const user = await this.userService.findOneByAccessCode(accessCode);\n\n if (user) {\n delete user['password'];\n }\n\n return user;\n }\n\n /**\n * Use this endpoint to authenticate using an accessCode with Microsoft.\n * \n * @param accessCode \n * @returns \n */\n @Public()\n @Get(\"authenticate\")\n @ApiQuery({ name: \"accessCode\", required: true, type: String })\n async microsoftAuth(@Query(\"accessCode\") accessCode: string) {\n await this.validateConfiguration();\n return this.authService.signInUsingMicrosoft(accessCode);\n }\n}\n"]}
|
|
@@ -4,8 +4,8 @@ export declare class SettingController {
|
|
|
4
4
|
private readonly service;
|
|
5
5
|
constructor(service: SettingService);
|
|
6
6
|
updateSettings(body: any, files: Array<Express.Multer.File>): Promise<import("..").Setting[]>;
|
|
7
|
-
wrapSettings(): Promise<
|
|
8
|
-
getAllSettings(): Promise<
|
|
7
|
+
wrapSettings(): Promise<import("..").AdminSettingsResponse<any>>;
|
|
8
|
+
getAllSettings(): Promise<import("..").AdminSettingsResponse<any>>;
|
|
9
9
|
getMcpUrl(query: any, solidRequestContext: SolidRequestContextDto): Promise<any>;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=setting.controller.d.ts.map
|
|
@@ -60,7 +60,7 @@ __decorate([
|
|
|
60
60
|
__decorate([
|
|
61
61
|
(0, common_1.Get)('/wrapped'),
|
|
62
62
|
(0, public_decorator_1.Public)(),
|
|
63
|
-
openapi.ApiResponse({ status: 200
|
|
63
|
+
openapi.ApiResponse({ status: 200 }),
|
|
64
64
|
__metadata("design:type", Function),
|
|
65
65
|
__metadata("design:paramtypes", []),
|
|
66
66
|
__metadata("design:returntype", Promise)
|
|
@@ -68,7 +68,7 @@ __decorate([
|
|
|
68
68
|
__decorate([
|
|
69
69
|
(0, swagger_1.ApiBearerAuth)("jwt"),
|
|
70
70
|
(0, common_1.Get)(),
|
|
71
|
-
openapi.ApiResponse({ status: 200
|
|
71
|
+
openapi.ApiResponse({ status: 200 }),
|
|
72
72
|
__metadata("design:type", Function),
|
|
73
73
|
__metadata("design:paramtypes", []),
|
|
74
74
|
__metadata("design:returntype", Promise)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/auth.decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,eAAO,MAAM,aAAa,aAAa,CAAC;AAExC,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"auth.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/auth.decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,eAAO,MAAM,aAAa,aAAa,CAAC;AAExC,eAAO,MAAM,IAAI,GAAI,GAAG,WAAW,QAAQ,EAAE,qDAA0C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computed-field-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/computed-field-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AAEvE,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"computed-field-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/computed-field-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AAEvE,eAAO,MAAM,qBAAqB,SACtB,QAAQ,QAAQ,SAG3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-question-data-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/dashboard-question-data-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,wCAAwC,CAAC;AAEzF,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"dashboard-question-data-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/dashboard-question-data-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,wCAAwC,CAAC;AAEzF,eAAO,MAAM,6BAA6B,SAC9B,QAAQ,QAAQ,SAG3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-selection-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/dashboard-selection-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wCAAwC,6CAA6C,CAAC;AAEnG,eAAO,MAAM,kCAAkC,
|
|
1
|
+
{"version":3,"file":"dashboard-selection-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/dashboard-selection-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wCAAwC,6CAA6C,CAAC;AAEnG,eAAO,MAAM,kCAAkC,SACnC,QAAQ,QAAQ,SAG3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disallow-in-production.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/disallow-in-production.decorator.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,UAAU,SAAS;IACnB,WAAW,QAAQ;CACpB;AAED,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"disallow-in-production.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/disallow-in-production.decorator.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,UAAU,SAAS;IACnB,WAAW,QAAQ;CACpB;AAED,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,MAAM,IAEhD,QAAQ,GAAG,EACX,aAAa,MAAM,EACnB,YAAY,kBAAkB,wBAkBjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-codes-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/error-codes-provider.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAE/D,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"error-codes-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/error-codes-provider.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAE/D,eAAO,MAAM,iBAAiB,SAClB,QAAQ,QAAQ,SAG3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-user-creation-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/extension-user-creation-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,wCAAwC,CAAC;AAEzF,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"extension-user-creation-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/extension-user-creation-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,wCAAwC,CAAC;AAEzF,eAAO,MAAM,6BAA6B,SACvC,QAAQ,QAAQ,SAC0D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-not-in-enum.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/is-not-in-enum.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA0C,MAAM,iBAAiB,CAAC;AAG5F,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"is-not-in-enum.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/is-not-in-enum.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA0C,MAAM,iBAAiB,CAAC;AAG5F,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,iBAAiB,IAC9D,QAAQ,MAAM,EAAE,cAAc,MAAM,UAmBtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mail-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/mail-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"mail-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/mail-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,eAAO,MAAM,YAAY,SACb,QAAQ,QAAQ,SAG3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/roles.decorator.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"roles.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/roles.decorator.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,KAAK,GAAI,GAAG,OAAO,MAAM,EAAE,qDAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduled-job-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/scheduled-job-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"scheduled-job-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/scheduled-job-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE,eAAO,MAAM,oBAAoB,SACrB,QAAQ,QAAQ,SAG3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security-rule-config-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/security-rule-config-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,qCAAqC,CAAC;AAEnF,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"security-rule-config-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/security-rule-config-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,qCAAqC,CAAC;AAEnF,eAAO,MAAM,0BAA0B,SAC3B,QAAQ,QAAQ,SAG3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selection-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/selection-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"selection-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/selection-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,eAAO,MAAM,iBAAiB,SAClB,QAAQ,QAAQ,SAG3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sms-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/sms-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"sms-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/sms-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,eAAO,MAAM,WAAW,SACZ,QAAQ,QAAQ,SAG3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solid-database-module.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/solid-database-module.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"solid-database-module.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/solid-database-module.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,eAAO,MAAM,mBAAmB,SACpB,QAAQ,QAAQ,SAG3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/whatsapp-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"whatsapp-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/whatsapp-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,gBAAgB,SACjB,QAAQ,QAAQ,SAG3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-chatter-message.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,uBAAuB;IAIhC,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"create-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-chatter-message.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,uBAAuB;IAIhC,WAAW,EAAE,MAAM,CAAC;IAKpB,cAAc,EAAE,MAAM,CAAC;IAKvB,WAAW,EAAE,MAAM,CAAC;IAKpB,eAAe,EAAE,MAAM,CAAC;IAKxB,WAAW,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,MAAM,CAAC;IAKf,WAAW,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -16,7 +16,7 @@ const class_validator_1 = require("class-validator");
|
|
|
16
16
|
const class_validator_2 = require("class-validator");
|
|
17
17
|
class CreateChatterMessageDto {
|
|
18
18
|
static _OPENAPI_METADATA_FACTORY() {
|
|
19
|
-
return { messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String } };
|
|
19
|
+
return { messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, status: { required: true, type: () => String } };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.CreateChatterMessageDto = CreateChatterMessageDto;
|
|
@@ -62,4 +62,10 @@ __decorate([
|
|
|
62
62
|
(0, swagger_1.ApiProperty)(),
|
|
63
63
|
__metadata("design:type", String)
|
|
64
64
|
], CreateChatterMessageDto.prototype, "userUserKey", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsString)(),
|
|
67
|
+
(0, class_validator_2.IsOptional)(),
|
|
68
|
+
(0, swagger_1.ApiProperty)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], CreateChatterMessageDto.prototype, "status", void 0);
|
|
65
71
|
//# sourceMappingURL=create-chatter-message.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/create-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,qDAAgE;AAEhE,MAAa,uBAAuB;;;;
|
|
1
|
+
{"version":3,"file":"create-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/create-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,qDAAgE;AAEhE,MAAa,uBAAuB;;;;CAwCnC;AAxCD,0DAwCC;AApCG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;+DACS;AAKvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;gEACU;AAKxB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;uDACC;AAKf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;uDACC","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { IsString } from 'class-validator';\nimport { IsNotEmpty, IsInt, IsOptional } from 'class-validator';\n\nexport class CreateChatterMessageDto {\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n messageType: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n messageSubType: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageBody: string;\n\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n coModelEntityId: number;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n coModelName: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n status: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/post-chatter-message.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAG9B,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,EAAE,MAAM,CAAC;IAIpB,WAAW,EAAE,MAAM,CAAC;IAIpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,YAAY,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"post-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/post-chatter-message.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAG9B,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,EAAE,MAAM,CAAC;IAIpB,WAAW,EAAE,MAAM,CAAC;IAIpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -14,7 +14,7 @@ const openapi = require("@nestjs/swagger");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
class PostChatterMessageDto {
|
|
16
16
|
static _OPENAPI_METADATA_FACTORY() {
|
|
17
|
-
return { coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, messageSubType: { required: false, type: () => String }, modelUserKey: { required: false, type: () => String } };
|
|
17
|
+
return { coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, messageSubType: { required: false, type: () => String }, modelUserKey: { required: false, type: () => String }, status: { required: false, type: () => String } };
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
exports.PostChatterMessageDto = PostChatterMessageDto;
|
|
@@ -43,4 +43,9 @@ __decorate([
|
|
|
43
43
|
(0, class_validator_1.IsOptional)(),
|
|
44
44
|
__metadata("design:type", String)
|
|
45
45
|
], PostChatterMessageDto.prototype, "modelUserKey", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], PostChatterMessageDto.prototype, "status", void 0);
|
|
46
51
|
//# sourceMappingURL=post-chatter-message.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/post-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAa,qBAAqB;;;;
|
|
1
|
+
{"version":3,"file":"post-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/post-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAa,qBAAqB;;;;CAwBjC;AAxBD,sDAwBC;AArBG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACG","sourcesContent":["import { IsNotEmpty, IsNumber, IsString, IsOptional } from 'class-validator';\n\nexport class PostChatterMessageDto {\n @IsNumber()\n @IsNotEmpty()\n coModelEntityId: number;\n\n @IsString()\n @IsNotEmpty()\n coModelName: string;\n\n @IsString()\n @IsNotEmpty()\n messageBody: string;\n\n @IsString()\n @IsOptional()\n messageSubType?: string;\n\n @IsString()\n @IsOptional()\n modelUserKey?: string;\n\n @IsString()\n @IsOptional()\n status?: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-chatter-message.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,uBAAuB;IAGhC,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"update-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-chatter-message.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,uBAAuB;IAGhC,EAAE,EAAE,MAAM,CAAC;IAMX,WAAW,EAAE,MAAM,CAAC;IAMpB,cAAc,EAAE,MAAM,CAAC;IAMvB,WAAW,EAAE,MAAM,CAAC;IAMpB,eAAe,EAAE,MAAM,CAAC;IAMxB,WAAW,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,MAAM,CAAC;IAKf,WAAW,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -15,7 +15,7 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
const swagger_1 = require("@nestjs/swagger");
|
|
16
16
|
class UpdateChatterMessageDto {
|
|
17
17
|
static _OPENAPI_METADATA_FACTORY() {
|
|
18
|
-
return { id: { required: true, type: () => Number }, messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String } };
|
|
18
|
+
return { id: { required: true, type: () => Number }, messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, status: { required: true, type: () => String } };
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
exports.UpdateChatterMessageDto = UpdateChatterMessageDto;
|
|
@@ -71,4 +71,10 @@ __decorate([
|
|
|
71
71
|
(0, swagger_1.ApiProperty)(),
|
|
72
72
|
__metadata("design:type", String)
|
|
73
73
|
], UpdateChatterMessageDto.prototype, "userUserKey", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
(0, class_validator_1.IsString)(),
|
|
77
|
+
(0, swagger_1.ApiProperty)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], UpdateChatterMessageDto.prototype, "status", void 0);
|
|
74
80
|
//# sourceMappingURL=update-chatter-message.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/update-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"update-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/update-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA0E;AAC1E,6CAA8C;AAE9C,MAAa,uBAAuB;;;;CAiDnC;AAjDD,0DAiDC;AA9CG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;mDACG;AAMX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAMpB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;+DACS;AAMvB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAMpB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;gEACU;AAMxB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;uDACC;AAKf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;uDACC","sourcesContent":["import { IsInt, IsOptional, IsString, IsNotEmpty } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\n\nexport class UpdateChatterMessageDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageType: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageSubType: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageBody: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n coModelEntityId: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n coModelName: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatter-message.entity.d.ts","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,qBAEa,cAAe,SAAQ,YAAY;IAG5C,WAAW,EAAE,MAAM,CAAC;IAGpB,cAAc,EAAE,MAAM,CAAC;IAGvB,WAAW,EAAE,MAAM,CAAC;IAIpB,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,IAAI,CAAC;IAGX,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;IAG/C,gBAAgB,EAAE,MAAM,CAAC;IAGzB,YAAY,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"chatter-message.entity.d.ts","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,qBAEa,cAAe,SAAQ,YAAY;IAG5C,WAAW,EAAE,MAAM,CAAC;IAGpB,cAAc,EAAE,MAAM,CAAC;IAGvB,WAAW,EAAE,MAAM,CAAC;IAIpB,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,IAAI,CAAC;IAGX,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;IAG/C,gBAAgB,EAAE,MAAM,CAAC;IAGzB,YAAY,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -18,7 +18,7 @@ const chatter_message_details_entity_1 = require("./chatter-message-details.enti
|
|
|
18
18
|
const typeorm_db_helper_1 = require("../helpers/typeorm-db-helper");
|
|
19
19
|
let ChatterMessage = class ChatterMessage extends common_entity_1.CommonEntity {
|
|
20
20
|
static _OPENAPI_METADATA_FACTORY() {
|
|
21
|
-
return { messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, user: { required: true, type: () => require("./user.entity").User }, chatterMessageDetails: { required: true, type: () => [require("./chatter-message-details.entity").ChatterMessageDetails] }, modelDisplayName: { required: true, type: () => String }, modelUserKey: { required: true, type: () => String } };
|
|
21
|
+
return { messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, user: { required: true, type: () => require("./user.entity").User }, chatterMessageDetails: { required: true, type: () => [require("./chatter-message-details.entity").ChatterMessageDetails] }, modelDisplayName: { required: true, type: () => String }, modelUserKey: { required: true, type: () => String }, status: { required: true, type: () => String } };
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
exports.ChatterMessage = ChatterMessage;
|
|
@@ -63,6 +63,10 @@ __decorate([
|
|
|
63
63
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
64
64
|
__metadata("design:type", String)
|
|
65
65
|
], ChatterMessage.prototype, "modelUserKey", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ default: 'pending' }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], ChatterMessage.prototype, "status", void 0);
|
|
66
70
|
exports.ChatterMessage = ChatterMessage = __decorate([
|
|
67
71
|
(0, typeorm_1.Index)(["coModelName", "coModelEntityId"]),
|
|
68
72
|
(0, typeorm_1.Entity)("ss_chatter_message")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatter-message.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAkF;AAClF,+CAA+C;AAC/C,qFAAyE;AACzE,oEAA8D;AAIvD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;;;;
|
|
1
|
+
{"version":3,"file":"chatter-message.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAkF;AAClF,+CAA+C;AAC/C,qFAAyE;AACzE,oEAA8D;AAIvD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;;;;CAmC/C,CAAA;AAnCY,wCAAc;AAGvB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sDACL;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAa,EAAC,UAAU,CAAC,EAAE,CAAC;;mDACrC;AAIpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACJ;AAIxB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAKpB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAU,GAAE;8BACP,kBAAI;4CAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sDAAqB,EAAE,CAAC,qBAAqB,EAAE,EAAE,CAAC,qBAAqB,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6DAC5E;AAG/C;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACF;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;;8CAChB;yBAlCN,cAAc;IAF1B,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;IACzC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,cAAc,CAmC1B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { User } from 'src/entities/user.entity'\nimport { ChatterMessageDetails } from './chatter-message-details.entity';\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\n\n@Index([\"coModelName\", \"coModelEntityId\"])\n@Entity(\"ss_chatter_message\")\nexport class ChatterMessage extends CommonEntity {\n @Index()\n @Column({ type: \"varchar\" })\n messageType: string; // audit | custom \n\n @Column({ type: \"varchar\" })\n messageSubType: string; // audit_update | audit_insert | audit_delete | custom | note | task\n\n @Column({ nullable: true, ...getColumnType('longText') })\n messageBody: string;\n\n @Index()\n @Column({ type: \"integer\" })\n coModelEntityId: number;\n\n @Index()\n @Column({ type: \"varchar\" })\n coModelName: string;\n\n @Index()\n @ManyToOne(() => User, { nullable: true })\n @JoinColumn()\n user: User;\n\n @OneToMany(() => ChatterMessageDetails, (chatterMessageDetails) => chatterMessageDetails.chatterMessage, { cascade: true })\n chatterMessageDetails: ChatterMessageDetails[];\n\n @Column({ nullable: true })\n modelDisplayName: string;\n\n @Column({ nullable: true })\n modelUserKey: string;\n\n @Column({ default: 'pending' })\n status: string; // pending | completed\n}\n"]}
|
|
@@ -14,6 +14,14 @@ export declare class User extends CommonEntity {
|
|
|
14
14
|
googleAccessToken: string;
|
|
15
15
|
googleId: string;
|
|
16
16
|
googleProfilePicture: string;
|
|
17
|
+
facebookId: string;
|
|
18
|
+
facebookAccessToken: string;
|
|
19
|
+
facebookProfilePicture: string;
|
|
20
|
+
appleId: string;
|
|
21
|
+
appleAccessToken: string;
|
|
22
|
+
microsoftId: string;
|
|
23
|
+
microsoftAccessToken: string;
|
|
24
|
+
microsoftProfilePicture: string;
|
|
17
25
|
active: boolean;
|
|
18
26
|
forgotPasswordConfirmedAt: Date;
|
|
19
27
|
verificationTokenOnForgotPassword: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAG7D,qBAGa,IAAK,SAAQ,YAAY;IAGlC,QAAQ,EAAE,MAAM,CAAC;IAKjB,QAAQ,EAAE,MAAM,CAAC;IAKjB,KAAK,EAAE,MAAM,CAAC;IAKd,MAAM,EAAE,MAAM,CAAC;IAIf,QAAQ,EAAE,MAAM,CAAC;IAIjB,mBAAmB,EAAE,OAAO,CAAQ;IAIpC,iBAAiB,EAAE,MAAM,CAAW;IAIpC,UAAU,EAAE,MAAM,CAAC;IAInB,iBAAiB,EAAE,MAAM,CAAC;IAI1B,QAAQ,E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E,YAAY,EAAE,CAAC;IAItB,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IAIrC,cAAc,EAAE,MAAM,CAAC;IAIvB,qBAAqB,EAAE,MAAM,CAAC;IAI9B,UAAU,EAAE,IAAI,CAAC;IAIjB,mBAAmB,EAAE,MAAM,CAAK;IAGhC,MAAM,EAAE,GAAG,CAAC;IAIZ,0BAA0B,EAAE,OAAO,CAAS;IAI5C,OAAO,EAAE,UAAU,EAAE,CAAC;CAEzB"}
|
|
@@ -27,7 +27,7 @@ let User = class User extends common_entity_1.CommonEntity {
|
|
|
27
27
|
this.isAllowedToGenerateApiKeys = false;
|
|
28
28
|
}
|
|
29
29
|
static _OPENAPI_METADATA_FACTORY() {
|
|
30
|
-
return { fullName: { required: true, type: () => String }, username: { required: true, type: () => String }, email: { required: true, type: () => String }, mobile: { required: true, type: () => String }, password: { required: true, type: () => String }, forcePasswordChange: { required: true, type: () => Boolean, default: true }, lastLoginProvider: { required: true, type: () => String, default: "local" }, accessCode: { required: true, type: () => String }, googleAccessToken: { required: true, type: () => String }, googleId: { required: true, type: () => String }, googleProfilePicture: { required: true, type: () => String }, active: { required: true, type: () => Boolean, default: true }, forgotPasswordConfirmedAt: { required: true, type: () => Date }, verificationTokenOnForgotPassword: { required: true, type: () => String }, verificationTokenOnForgotPasswordExpiresAt: { required: true, type: () => Date }, emailVerifiedOnRegistrationAt: { required: true, type: () => Date }, emailVerificationTokenOnRegistration: { required: true, type: () => String }, emailVerificationTokenOnRegistrationExpiresAt: { required: true, type: () => Date }, mobileVerifiedOnRegistrationAt: { required: true, type: () => Date }, mobileVerificationTokenOnRegistration: { required: true, type: () => String }, mobileVerificationTokenOnRegistrationExpiresAt: { required: true, type: () => Date }, emailVerifiedOnLoginAt: { required: true, type: () => Date }, emailVerificationTokenOnLogin: { required: true, type: () => String }, emailVerificationTokenOnLoginExpiresAt: { required: true, type: () => Date }, mobileVerifiedOnLoginAt: { required: true, type: () => Date }, mobileVerificationTokenOnLogin: { required: true, type: () => String }, mobileVerificationTokenOnLoginExpiresAt: { required: true, type: () => Date }, customPayload: { required: true, type: () => String }, roles: { required: true, type: () => [require("./role-metadata.entity").RoleMetadata] }, userViewMetadata: { required: true, type: () => [require("./user-view-metadata.entity").UserViewMetadata] }, passwordScheme: { required: true, type: () => String }, passwordSchemeVersion: { required: true, type: () => Number }, rehashedAt: { required: true, type: () => Date }, failedLoginAttempts: { required: true, type: () => Number, default: 0 }, _media: { required: true, type: () => Object }, isAllowedToGenerateApiKeys: { required: true, type: () => Boolean, default: false }, apiKeys: { required: true, type: () => [require("./user-api-key.entity").UserApiKey] } };
|
|
30
|
+
return { fullName: { required: true, type: () => String }, username: { required: true, type: () => String }, email: { required: true, type: () => String }, mobile: { required: true, type: () => String }, password: { required: true, type: () => String }, forcePasswordChange: { required: true, type: () => Boolean, default: true }, lastLoginProvider: { required: true, type: () => String, default: "local" }, accessCode: { required: true, type: () => String }, googleAccessToken: { required: true, type: () => String }, googleId: { required: true, type: () => String }, googleProfilePicture: { required: true, type: () => String }, facebookId: { required: true, type: () => String }, facebookAccessToken: { required: true, type: () => String }, facebookProfilePicture: { required: true, type: () => String }, appleId: { required: true, type: () => String }, appleAccessToken: { required: true, type: () => String }, microsoftId: { required: true, type: () => String }, microsoftAccessToken: { required: true, type: () => String }, microsoftProfilePicture: { required: true, type: () => String }, active: { required: true, type: () => Boolean, default: true }, forgotPasswordConfirmedAt: { required: true, type: () => Date }, verificationTokenOnForgotPassword: { required: true, type: () => String }, verificationTokenOnForgotPasswordExpiresAt: { required: true, type: () => Date }, emailVerifiedOnRegistrationAt: { required: true, type: () => Date }, emailVerificationTokenOnRegistration: { required: true, type: () => String }, emailVerificationTokenOnRegistrationExpiresAt: { required: true, type: () => Date }, mobileVerifiedOnRegistrationAt: { required: true, type: () => Date }, mobileVerificationTokenOnRegistration: { required: true, type: () => String }, mobileVerificationTokenOnRegistrationExpiresAt: { required: true, type: () => Date }, emailVerifiedOnLoginAt: { required: true, type: () => Date }, emailVerificationTokenOnLogin: { required: true, type: () => String }, emailVerificationTokenOnLoginExpiresAt: { required: true, type: () => Date }, mobileVerifiedOnLoginAt: { required: true, type: () => Date }, mobileVerificationTokenOnLogin: { required: true, type: () => String }, mobileVerificationTokenOnLoginExpiresAt: { required: true, type: () => Date }, customPayload: { required: true, type: () => String }, roles: { required: true, type: () => [require("./role-metadata.entity").RoleMetadata] }, userViewMetadata: { required: true, type: () => [require("./user-view-metadata.entity").UserViewMetadata] }, passwordScheme: { required: true, type: () => String }, passwordSchemeVersion: { required: true, type: () => Number }, rehashedAt: { required: true, type: () => Date }, failedLoginAttempts: { required: true, type: () => Number, default: 0 }, _media: { required: true, type: () => Object }, isAllowedToGenerateApiKeys: { required: true, type: () => Boolean, default: false }, apiKeys: { required: true, type: () => [require("./user-api-key.entity").UserApiKey] } };
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
exports.User = User;
|
|
@@ -83,6 +83,38 @@ __decorate([
|
|
|
83
83
|
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
84
84
|
__metadata("design:type", String)
|
|
85
85
|
], User.prototype, "googleProfilePicture", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], User.prototype, "facebookId", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], User.prototype, "facebookAccessToken", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], User.prototype, "facebookProfilePicture", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], User.prototype, "appleId", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], User.prototype, "appleAccessToken", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], User.prototype, "microsoftId", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], User.prototype, "microsoftAccessToken", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ type: "varchar", nullable: true }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], User.prototype, "microsoftProfilePicture", void 0);
|
|
86
118
|
__decorate([
|
|
87
119
|
(0, typeorm_1.Column)({ default: true }),
|
|
88
120
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAoG;AACpG,iEAAiE;AACjE,2EAAyE;AACzE,+DAA6D;AAC7D,yDAAoD;AAK7C,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,4BAAY;IAA/B;;QA0BH,wBAAmB,GAAY,IAAI,CAAC;QAIpC,sBAAiB,GAAW,OAAO,CAAC;QAoBpC,WAAM,GAAY,IAAI,CAAC;QAyFvB,wBAAmB,GAAW,CAAC,CAAC;QAOhC,+BAA0B,GAAY,KAAK,CAAC;KAM/C;;2UA9HkC,IAAI,wWAwBjB,IAAI,ysDAgGgB,KAAK;;CAM9C,CAAA;AAxJY,oBAAI;AAGb;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;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,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC1B,IAAA,0BAAM,GAAE;;wDACmC;AAI5C;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAU,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC5C,IAAA,0BAAM,GAAE;;qCACa;eAtJb,IAAI;IAHhB,IAAA,gBAAM,EAAC,SAAS,CAAC;IACjB,IAAA,0BAAgB,EAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IAChF,IAAA,2BAAO,GAAE;GACG,IAAI,CAwJhB","sourcesContent":["import { CommonEntity } from \"src/entities/common.entity\"\nimport { Entity, Column, Index, JoinTable, ManyToMany, OneToMany, TableInheritance } from \"typeorm\";\nimport { RoleMetadata } from 'src/entities/role-metadata.entity';\nimport { UserViewMetadata } from 'src/entities/user-view-metadata.entity'\nimport { UserApiKey } from 'src/entities/user-api-key.entity'\nimport { Exclude, Expose } from \"class-transformer\";\n\n@Entity(\"ss_user\")\n@TableInheritance({ column: { type: \"varchar\", name: \"type\", default: \"User\" } })\n@Exclude()\nexport class User extends CommonEntity {\n @Column({ type: \"varchar\", nullable: true })\n @Expose()\n fullName: string;\n\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n @Expose()\n username: string;\n\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n @Expose()\n email: string;\n\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n @Expose()\n mobile: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n password: string;\n\n @Column({ nullable: true, default: true })\n @Expose()\n forcePasswordChange: boolean = true;\n\n @Column({ type: \"varchar\", default: \"local\" })\n // don't send to client\n lastLoginProvider: string = \"local\";\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client (test)\n accessCode: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n googleAccessToken: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n googleId: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n googleProfilePicture: string;\n\n @Column({ default: true })\n @Expose()\n active: boolean = true;\n\n @Column({ nullable: true })\n // don't send to client\n forgotPasswordConfirmedAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n verificationTokenOnForgotPassword: string;\n\n @Column({ nullable: true })\n // don't send to client\n verificationTokenOnForgotPasswordExpiresAt: Date;\n\n @Column({ nullable: true })\n // don't send to client\n emailVerifiedOnRegistrationAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n emailVerificationTokenOnRegistration: string;\n\n @Column({ nullable: true })\n // don't send to client\n emailVerificationTokenOnRegistrationExpiresAt: Date;\n\n @Column({ nullable: true })\n // don't send to client\n mobileVerifiedOnRegistrationAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n mobileVerificationTokenOnRegistration: string;\n\n @Column({ nullable: true })\n // don't send to client\n mobileVerificationTokenOnRegistrationExpiresAt: Date;\n\n @Column({ nullable: true })\n // don't send to client\n emailVerifiedOnLoginAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n emailVerificationTokenOnLogin: string;\n\n @Column({ nullable: true })\n // don't send to client\n emailVerificationTokenOnLoginExpiresAt: Date;\n\n @Column({ nullable: true })\n // don't send to client\n mobileVerifiedOnLoginAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n mobileVerificationTokenOnLogin: string;\n\n @Column({ nullable: true })\n // don't send to client\n mobileVerificationTokenOnLoginExpiresAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n @Expose()\n customPayload: string;\n\n @ManyToMany(() => RoleMetadata, roleMetadata => roleMetadata.users, { cascade: true })\n @JoinTable()\n @Expose()\n roles: RoleMetadata[];\n\n @OneToMany(() => UserViewMetadata, userViewMetadata => userViewMetadata.user, { cascade: true })\n // don't send to client\n userViewMetadata: UserViewMetadata[];\n\n // dont send to client\n @Column({ type: \"varchar\", default: \"bcrypt\" })\n passwordScheme: string;\n\n // dont send to client\n @Column({ type: \"int\", default: 1 })\n passwordSchemeVersion: number;\n\n // dont send to client\n @Column({ nullable: true })\n rehashedAt: Date;\n\n // dont send to client\n @Column({ type: \"int\", default: 0 })\n failedLoginAttempts: number = 0;\n\n @Expose()\n _media: any;\n\n @Column({ default: false })\n @Expose()\n isAllowedToGenerateApiKeys: boolean = false;\n\n @OneToMany(() => UserApiKey, key => key.user)\n @Expose()\n apiKeys: UserApiKey[];\n\n}"]}
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAoG;AACpG,iEAAiE;AACjE,2EAAyE;AACzE,+DAA6D;AAC7D,yDAAoD;AAK7C,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,4BAAY;IAA/B;;QA0BH,wBAAmB,GAAY,IAAI,CAAC;QAIpC,sBAAiB,GAAW,OAAO,CAAC;QAoDpC,WAAM,GAAY,IAAI,CAAC;QAyFvB,wBAAmB,GAAW,CAAC,CAAC;QAOhC,+BAA0B,GAAY,KAAK,CAAC;KAM/C;;2UA9JkC,IAAI,wzBAwDjB,IAAI,ysDAgGgB,KAAK;;CAM9C,CAAA;AAxLY,oBAAI;AAGb;IAFC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,0BAAM,GAAE;;sCACQ;AAKjB;IAHC,IAAA,eAAK,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IACvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC3B,IAAA,0BAAM,GAAE;;sCACQ;AAKjB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,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,EAAC,GAAG,EAAE,CAAC,4CAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8CAE3D;AAIrC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;;4CACxB;AAIvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACN;AAI9B;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACf,IAAI;wCAAC;AAIjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;iDACJ;AAGhC;IADC,IAAA,0BAAM,GAAE;;oCACG;AAIZ;IAFC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC1B,IAAA,0BAAM,GAAE;;wDACmC;AAI5C;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAU,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC5C,IAAA,0BAAM,GAAE;;qCACa;eAtLb,IAAI;IAHhB,IAAA,gBAAM,EAAC,SAAS,CAAC;IACjB,IAAA,0BAAgB,EAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IAChF,IAAA,2BAAO,GAAE;GACG,IAAI,CAwLhB","sourcesContent":["import { CommonEntity } from \"src/entities/common.entity\"\nimport { Entity, Column, Index, JoinTable, ManyToMany, OneToMany, TableInheritance } from \"typeorm\";\nimport { RoleMetadata } from 'src/entities/role-metadata.entity';\nimport { UserViewMetadata } from 'src/entities/user-view-metadata.entity'\nimport { UserApiKey } from 'src/entities/user-api-key.entity'\nimport { Exclude, Expose } from \"class-transformer\";\n\n@Entity(\"ss_user\")\n@TableInheritance({ column: { type: \"varchar\", name: \"type\", default: \"User\" } })\n@Exclude()\nexport class User extends CommonEntity {\n @Column({ type: \"varchar\", nullable: true })\n @Expose()\n fullName: string;\n\n @Index({ unique: true })\n @Column({ type: \"varchar\" })\n @Expose()\n username: string;\n\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n @Expose()\n email: string;\n\n @Index()\n @Column({ type: \"varchar\", nullable: true })\n @Expose()\n mobile: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n password: string;\n\n @Column({ nullable: true, default: true })\n @Expose()\n forcePasswordChange: boolean = true;\n\n @Column({ type: \"varchar\", default: \"local\" })\n // don't send to client\n lastLoginProvider: string = \"local\";\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client (test)\n accessCode: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n googleAccessToken: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n googleId: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n googleProfilePicture: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n facebookId: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n facebookAccessToken: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n facebookProfilePicture: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n appleId: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n appleAccessToken: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n microsoftId: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n microsoftAccessToken: string;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n microsoftProfilePicture: string;\n\n @Column({ default: true })\n @Expose()\n active: boolean = true;\n\n @Column({ nullable: true })\n // don't send to client\n forgotPasswordConfirmedAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n verificationTokenOnForgotPassword: string;\n\n @Column({ nullable: true })\n // don't send to client\n verificationTokenOnForgotPasswordExpiresAt: Date;\n\n @Column({ nullable: true })\n // don't send to client\n emailVerifiedOnRegistrationAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n emailVerificationTokenOnRegistration: string;\n\n @Column({ nullable: true })\n // don't send to client\n emailVerificationTokenOnRegistrationExpiresAt: Date;\n\n @Column({ nullable: true })\n // don't send to client\n mobileVerifiedOnRegistrationAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n mobileVerificationTokenOnRegistration: string;\n\n @Column({ nullable: true })\n // don't send to client\n mobileVerificationTokenOnRegistrationExpiresAt: Date;\n\n @Column({ nullable: true })\n // don't send to client\n emailVerifiedOnLoginAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n emailVerificationTokenOnLogin: string;\n\n @Column({ nullable: true })\n // don't send to client\n emailVerificationTokenOnLoginExpiresAt: Date;\n\n @Column({ nullable: true })\n // don't send to client\n mobileVerifiedOnLoginAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n // don't send to client\n mobileVerificationTokenOnLogin: string;\n\n @Column({ nullable: true })\n // don't send to client\n mobileVerificationTokenOnLoginExpiresAt: Date;\n\n @Column({ type: \"varchar\", nullable: true })\n @Expose()\n customPayload: string;\n\n @ManyToMany(() => RoleMetadata, roleMetadata => roleMetadata.users, { cascade: true })\n @JoinTable()\n @Expose()\n roles: RoleMetadata[];\n\n @OneToMany(() => UserViewMetadata, userViewMetadata => userViewMetadata.user, { cascade: true })\n // don't send to client\n userViewMetadata: UserViewMetadata[];\n\n // dont send to client\n @Column({ type: \"varchar\", default: \"bcrypt\" })\n passwordScheme: string;\n\n // dont send to client\n @Column({ type: \"int\", default: 1 })\n passwordSchemeVersion: number;\n\n // dont send to client\n @Column({ nullable: true })\n rehashedAt: Date;\n\n // dont send to client\n @Column({ type: \"int\", default: 0 })\n failedLoginAttempts: number = 0;\n\n @Expose()\n _media: any;\n\n @Column({ default: false })\n @Expose()\n isAllowedToGenerateApiKeys: boolean = false;\n\n @OneToMany(() => UserApiKey, key => key.user)\n @Expose()\n apiKeys: UserApiKey[];\n\n}"]}
|
|
@@ -35,7 +35,7 @@ function buildDefaultCorsOptions() {
|
|
|
35
35
|
return cb(new Error(`Origin ${origin} not allowed by CORS. Allowed origins: ${allowed.join(', ')}`), false);
|
|
36
36
|
},
|
|
37
37
|
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'],
|
|
38
|
-
allowedHeaders: ['Content-Type', 'Authorization'],
|
|
38
|
+
allowedHeaders: ['Content-Type', 'Authorization', 'solidx-api-key'],
|
|
39
39
|
credentials: true,
|
|
40
40
|
};
|
|
41
41
|
}
|