component-dbs-core
Version:
DTO objects shared among device backend
52 lines • 3.56 kB
JavaScript
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnvironmentService = void 0;
const common_1 = require("@nestjs/common");
const config_1 = require("@nestjs/config");
let EnvironmentService = class EnvironmentService {
constructor(configService) {
this.configService = configService;
this.deviceTableName = this.configService.get('DEVICE_TABLE', 'Devices');
this.siteTableName = this.configService.get('SITE_TABLE', 'Sites');
this.modelSerialGsi = this.configService.get('DEVICE_MODELSERIAL_GSI', 'modelSerialGsi');
this.cqrsCommandHandler = this.configService.get('CQRS_COMMAND_HANDLER', '');
this.transactionGsi = this.configService.get('TRANSACTION_GSI', 'transactionGsi');
this.depositGsi = this.configService.get('DEPOSIT_GSI', 'depositGsi');
this.accessTokenGsi = this.configService.get('ACCESS_TOKEN_GSI', 'accessTokenGsi');
this.entityUuidGsi = this.configService.get('ENTITY_UUID_GSI', 'entityUuidGsi');
this.siteUuidGsi = this.configService.get('SITE_UUID_GSI', 'siteUuidGsi');
this.auth0ClientKey = this.configService.get('AUTH0_CLIENT_ID', '');
this.auth0ClientSecret = this.configService.get('AUTH0_CLIENT_SECRET', '');
this.auth0ManagementAudience = this.configService.get('AUTH0_MANAGEMENT_AUDIENCE', '');
this.auth0Audience = this.configService.get('AUTH0_AUDIENCE', '');
this.auth0UrlTenant = this.configService.get('AUTH0_TENANT', '');
this.auth0JwtMaxAge = this.configService.get('AUTH0_JWT_MAX_AGE', '');
this.auth0JwtIssuer = this.configService.get('AUTH0_JWT_ISSUER', '');
this.auth0UrlCreateUser = this.configService.get('AUTH0_PATH_CREATE_USER', '');
this.auth0UrlGetToken = this.configService.get('AUTH0_PATH_GET_TOKEN', '');
this.auth0UrlJwtWellKnown = this.configService.get('AUTH0_PATH_JWT_WELLKNOWN', '');
this.auth0UrlForgotPwd = this.configService.get('AUTH0_PATH_FORGOT_PWD', '');
this.auth0UrlChangePwd = this.configService.get('AUTH0_PATH_CHANGE_PWD', '');
this.auth0UrlRevokeToken = this.configService.get('AUTH0_PATH_REVOKE_TOKEN', '');
this.appSyncEndpoint = this.configService.get('APP_SYNC_ENDPOINT', '');
this.awsRegion = this.configService.get('AWS_REGION', '');
this.iamUserKey = this.configService.get('IAM_USER_KEY', '');
this.iamUserSecret = this.configService.get('IAM_USER_SECRET', '');
this.isInLambda = !!this.configService.get('LAMBDA_TASK_ROOT', '');
}
};
EnvironmentService = __decorate([
common_1.Injectable(),
__metadata("design:paramtypes", [config_1.ConfigService])
], EnvironmentService);
exports.EnvironmentService = EnvironmentService;
//# sourceMappingURL=envService.js.map