@darraghor/nest-backend-libs 1.41.0 → 1.42.0
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/person/person.module.js +1 -8
- package/dist/person/person.module.js.map +1 -1
- package/dist/person/person.service.d.ts +1 -3
- package/dist/person/person.service.js +2 -22
- package/dist/person/person.service.js.map +1 -1
- package/dist/twitter-client/services/twitter-client.service.js +1 -1
- package/dist/twitter-client/services/twitter-client.service.js.map +1 -1
- package/package.json +1 -1
- package/dist/person/PersonConfigurationService.d.ts +0 -12
- package/dist/person/PersonConfigurationService.js +0 -83
- package/dist/person/PersonConfigurationService.js.map +0 -1
- package/dist/person/PersonConfigurationVariables.d.ts +0 -16
- package/dist/person/PersonConfigurationVariables.js +0 -12
- package/dist/person/PersonConfigurationVariables.js.map +0 -1
|
@@ -5,9 +5,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
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
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
-
};
|
|
11
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
9
|
exports.PersonModule = void 0;
|
|
13
10
|
const common_1 = require("@nestjs/common");
|
|
@@ -17,21 +14,17 @@ const person_entity_1 = require("./entities/person.entity");
|
|
|
17
14
|
const logger_module_1 = require("../logger/logger.module");
|
|
18
15
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
19
16
|
const authz_client_module_1 = require("../authzclient/authz-client.module");
|
|
20
|
-
const PersonConfigurationService_1 = require("./PersonConfigurationService");
|
|
21
|
-
const config_1 = require("@nestjs/config");
|
|
22
|
-
const PersonConfigurationVariables_1 = __importDefault(require("./PersonConfigurationVariables"));
|
|
23
17
|
let PersonModule = class PersonModule {
|
|
24
18
|
};
|
|
25
19
|
PersonModule = __decorate([
|
|
26
20
|
(0, common_1.Module)({
|
|
27
21
|
imports: [
|
|
28
|
-
config_1.ConfigModule.forFeature(PersonConfigurationVariables_1.default),
|
|
29
22
|
logger_module_1.LoggerModule,
|
|
30
23
|
typeorm_1.TypeOrmModule.forFeature([person_entity_1.Person]),
|
|
31
24
|
authz_client_module_1.AuthzClientModule,
|
|
32
25
|
],
|
|
33
26
|
controllers: [person_controller_1.PersonController],
|
|
34
|
-
providers: [person_service_1.PersonService
|
|
27
|
+
providers: [person_service_1.PersonService],
|
|
35
28
|
exports: [person_service_1.PersonService],
|
|
36
29
|
})
|
|
37
30
|
], PersonModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.module.js","sourceRoot":"","sources":["../../src/person/person.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"person.module.js","sourceRoot":"","sources":["../../src/person/person.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAsC;AACtC,qDAA+C;AAC/C,2DAAqD;AACrD,4DAAgD;AAChD,2DAAqD;AACrD,6CAA8C;AAC9C,4EAAqE;AAY9D,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,YAAY;IAVxB,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE;YACL,4BAAY;YACZ,uBAAa,CAAC,UAAU,CAAC,CAAC,sBAAM,CAAC,CAAC;YAClC,uCAAiB;SACpB;QACD,WAAW,EAAE,CAAC,oCAAgB,CAAC;QAC/B,SAAS,EAAE,CAAC,8BAAa,CAAC;QAC1B,OAAO,EAAE,CAAC,8BAAa,CAAC;KAC3B,CAAC;GACW,YAAY,CAAG;AAAf,oCAAY"}
|
|
@@ -5,13 +5,11 @@ import { UserProfile } from "../authzclient/UserProfile.dto";
|
|
|
5
5
|
import CoreLoggerService from "../logger/CoreLoggerService";
|
|
6
6
|
import { UpdatePersonDto } from "./dto/update-person.dto";
|
|
7
7
|
import { Person } from "./entities/person.entity";
|
|
8
|
-
import { PersonConfigurationService } from "./PersonConfigurationService";
|
|
9
8
|
export declare class PersonService {
|
|
10
9
|
private repository;
|
|
11
10
|
private logger;
|
|
12
11
|
private authzClient;
|
|
13
|
-
|
|
14
|
-
constructor(repository: Repository<Person>, logger: CoreLoggerService, authzClient: AuthZClientService, personConfig: PersonConfigurationService);
|
|
12
|
+
constructor(repository: Repository<Person>, logger: CoreLoggerService, authzClient: AuthZClientService);
|
|
15
13
|
getAuth0User(payload: AccessToken, rawAccessToken: string): Promise<UserProfile | undefined>;
|
|
16
14
|
validateUser(payload: AccessToken, rawAccessToken: string): Promise<Person | undefined>;
|
|
17
15
|
findAll(): Promise<Person[]>;
|
|
@@ -20,35 +20,16 @@ const common_1 = require("@nestjs/common");
|
|
|
20
20
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
21
21
|
const typeorm_2 = require("typeorm");
|
|
22
22
|
const authz_service_1 = require("../authzclient/authz.service");
|
|
23
|
-
const UserProfile_dto_1 = require("../authzclient/UserProfile.dto");
|
|
24
23
|
const CoreLoggerService_1 = __importDefault(require("../logger/CoreLoggerService"));
|
|
25
24
|
const organisation_entity_1 = require("../organisation/entities/organisation.entity");
|
|
26
25
|
const person_entity_1 = require("./entities/person.entity");
|
|
27
|
-
const PersonConfigurationService_1 = require("./PersonConfigurationService");
|
|
28
26
|
let PersonService = class PersonService {
|
|
29
|
-
constructor(repository, logger, authzClient
|
|
27
|
+
constructor(repository, logger, authzClient) {
|
|
30
28
|
this.repository = repository;
|
|
31
29
|
this.logger = logger;
|
|
32
30
|
this.authzClient = authzClient;
|
|
33
|
-
this.personConfig = personConfig;
|
|
34
31
|
}
|
|
35
32
|
async getAuth0User(payload, rawAccessToken) {
|
|
36
|
-
// fake the user for our m2m token user used in testing
|
|
37
|
-
// m2m users don't get profiles
|
|
38
|
-
if (payload.sub === this.personConfig.fakeSub) {
|
|
39
|
-
const integrationTestM2MFakeUser = new UserProfile_dto_1.UserProfile();
|
|
40
|
-
integrationTestM2MFakeUser.email_verified = true;
|
|
41
|
-
integrationTestM2MFakeUser.family_name =
|
|
42
|
-
this.personConfig.fakeFamilyName;
|
|
43
|
-
integrationTestM2MFakeUser.gender = undefined;
|
|
44
|
-
integrationTestM2MFakeUser.sub = payload.sub;
|
|
45
|
-
integrationTestM2MFakeUser.given_name =
|
|
46
|
-
this.personConfig.fakeGivenNAme;
|
|
47
|
-
integrationTestM2MFakeUser.name = this.personConfig.fakeName;
|
|
48
|
-
integrationTestM2MFakeUser.email = this.personConfig.fakeEmail;
|
|
49
|
-
integrationTestM2MFakeUser.picture = this.personConfig.fakePicture;
|
|
50
|
-
return integrationTestM2MFakeUser;
|
|
51
|
-
}
|
|
52
33
|
return await this.authzClient.getUser(rawAccessToken);
|
|
53
34
|
}
|
|
54
35
|
async validateUser(payload, rawAccessToken) {
|
|
@@ -134,8 +115,7 @@ PersonService = __decorate([
|
|
|
134
115
|
__param(0, (0, typeorm_1.InjectRepository)(person_entity_1.Person)),
|
|
135
116
|
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
136
117
|
CoreLoggerService_1.default,
|
|
137
|
-
authz_service_1.AuthZClientService
|
|
138
|
-
PersonConfigurationService_1.PersonConfigurationService])
|
|
118
|
+
authz_service_1.AuthZClientService])
|
|
139
119
|
], PersonService);
|
|
140
120
|
exports.PersonService = PersonService;
|
|
141
121
|
//# sourceMappingURL=person.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.service.js","sourceRoot":"","sources":["../../src/person/person.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA6D;AAC7D,6CAAiD;AACjD,qCAAmC;AAEnC,gEAAgE;
|
|
1
|
+
{"version":3,"file":"person.service.js","sourceRoot":"","sources":["../../src/person/person.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2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I,EAAE,eAAe,EAAE,QAAQ,CAAC,CAAC;QACnD,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAC,IAAI,EAAC,EAAE,eAAe,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,eAAuB;QAC9C,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,QAAQ,CAAC,CAAC;QAEnD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;YAC7C,KAAK,EAAE;gBACH,IAAI;aACP;SACJ,CAAC,CAAC;QACH,IAAI,IAAI,CAAC,oBAAoB,CAAC,MAAM,GAAG,CAAC,EAAE;YACtC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;SAChE;QAED,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAEO,YAAY,CAChB,IAAY,EACZ,eAAuB,EACvB,eAAuB;QAEvB,IAAI,IAAI,KAAK,eAAe,EAAE;YAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,eAAe,eAAe,EAAE;gBAC7D,eAAe;gBACf,IAAI;aACP,CAAC,CAAC;YACH,MAAM,IAAI,0BAAiB,EAAE,CAAC;SACjC;IACL,CAAC;CACJ,CAAA;AAjHY,aAAa;IADzB,IAAA,mBAAU,GAAE;IAGJ,WAAA,IAAA,0BAAgB,EAAC,sBAAM,CAAC,CAAA;qCACL,oBAAU;QACd,2BAAiB;QACZ,kCAAkB;GALlC,aAAa,CAiHzB;AAjHY,sCAAa"}
|
|
@@ -29,7 +29,7 @@ let TwitterClientService = class TwitterClientService {
|
|
|
29
29
|
async uploadMedia(bytes, type) {
|
|
30
30
|
return this.clientInstance.v1.uploadMedia(
|
|
31
31
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
32
|
-
Buffer.from(bytes, "binary"), { type });
|
|
32
|
+
Buffer.from(bytes, "binary"), { mimeType: type });
|
|
33
33
|
}
|
|
34
34
|
async sendTweet(message, mediaIds) {
|
|
35
35
|
await this.clientInstance.v2.tweet(message, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twitter-client.service.js","sourceRoot":"","sources":["../../../src/twitter-client/services/twitter-client.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,2CAAkD;AAClD,mDAAoE;AACpE,uFAA+D;AAGxD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,YACqB,MAAyB,EAEzB,cAAmC;QAFnC,WAAM,GAAN,MAAM,CAAmB;QAEzB,mBAAc,GAAd,cAAc,CAAqB;QAEpD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;IACjD,CAAC;IAEM,KAAK,CAAC,WAAW,CACpB,KAAa,EACb,IAAqB;QAErB,OAAO,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,WAAW;QACrC,iEAAiE;QACjE,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC5B,EAAC,IAAI,EAAC,
|
|
1
|
+
{"version":3,"file":"twitter-client.service.js","sourceRoot":"","sources":["../../../src/twitter-client/services/twitter-client.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,2CAAkD;AAClD,mDAAoE;AACpE,uFAA+D;AAGxD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,YACqB,MAAyB,EAEzB,cAAmC;QAFnC,WAAM,GAAN,MAAM,CAAmB;QAEzB,mBAAc,GAAd,cAAc,CAAqB;QAEpD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;IACjD,CAAC;IAEM,KAAK,CAAC,WAAW,CACpB,KAAa,EACb,IAAqB;QAErB,OAAO,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,WAAW;QACrC,iEAAiE;QACjE,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,EAC5B,EAAC,QAAQ,EAAE,IAAI,EAAC,CACnB,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,SAAS,CAClB,OAAe,EACf,QAAmB;QAEnB,MAAM,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE;YACxC,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AA5BY,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAIJ,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;qCADC,2BAAiB;QAET,oCAAmB;GAJ/C,oBAAoB,CA4BhC;AA5BY,oDAAoB"}
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ConfigService } from "@nestjs/config";
|
|
2
|
-
import { ValidatedConfigurationService } from "../configuration/ValidatedConfigurationService";
|
|
3
|
-
export declare class PersonConfigurationService extends ValidatedConfigurationService {
|
|
4
|
-
private configService;
|
|
5
|
-
constructor(configService: ConfigService);
|
|
6
|
-
get fakeSub(): string;
|
|
7
|
-
get fakeFamilyName(): string;
|
|
8
|
-
get fakeGivenNAme(): string;
|
|
9
|
-
get fakeName(): string;
|
|
10
|
-
get fakeEmail(): string;
|
|
11
|
-
get fakePicture(): string;
|
|
12
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PersonConfigurationService = void 0;
|
|
13
|
-
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
14
|
-
const common_1 = require("@nestjs/common");
|
|
15
|
-
const config_1 = require("@nestjs/config");
|
|
16
|
-
const class_validator_1 = require("class-validator");
|
|
17
|
-
const ValidatedConfigurationService_1 = require("../configuration/ValidatedConfigurationService");
|
|
18
|
-
let PersonConfigurationService = class PersonConfigurationService extends ValidatedConfigurationService_1.ValidatedConfigurationService {
|
|
19
|
-
constructor(configService) {
|
|
20
|
-
super();
|
|
21
|
-
this.configService = configService;
|
|
22
|
-
}
|
|
23
|
-
get fakeSub() {
|
|
24
|
-
return this.configService.get("person.fakeSub");
|
|
25
|
-
}
|
|
26
|
-
get fakeFamilyName() {
|
|
27
|
-
return this.configService.get("person.fakeFamilyName");
|
|
28
|
-
}
|
|
29
|
-
get fakeGivenNAme() {
|
|
30
|
-
return this.configService.get("person.fakeGivenNAme");
|
|
31
|
-
}
|
|
32
|
-
get fakeName() {
|
|
33
|
-
return this.configService.get("person.fakeName");
|
|
34
|
-
}
|
|
35
|
-
get fakeEmail() {
|
|
36
|
-
return this.configService.get("person.fakeEmail");
|
|
37
|
-
}
|
|
38
|
-
get fakePicture() {
|
|
39
|
-
return this.configService.get("person.fakePicture");
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_validator_1.IsDefined)(),
|
|
44
|
-
(0, class_validator_1.IsString)(),
|
|
45
|
-
__metadata("design:type", String),
|
|
46
|
-
__metadata("design:paramtypes", [])
|
|
47
|
-
], PersonConfigurationService.prototype, "fakeSub", null);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_validator_1.IsDefined)(),
|
|
50
|
-
(0, class_validator_1.IsString)(),
|
|
51
|
-
__metadata("design:type", String),
|
|
52
|
-
__metadata("design:paramtypes", [])
|
|
53
|
-
], PersonConfigurationService.prototype, "fakeFamilyName", null);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, class_validator_1.IsDefined)(),
|
|
56
|
-
(0, class_validator_1.IsString)(),
|
|
57
|
-
__metadata("design:type", String),
|
|
58
|
-
__metadata("design:paramtypes", [])
|
|
59
|
-
], PersonConfigurationService.prototype, "fakeGivenNAme", null);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, class_validator_1.IsDefined)(),
|
|
62
|
-
(0, class_validator_1.IsString)(),
|
|
63
|
-
__metadata("design:type", String),
|
|
64
|
-
__metadata("design:paramtypes", [])
|
|
65
|
-
], PersonConfigurationService.prototype, "fakeName", null);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, class_validator_1.IsDefined)(),
|
|
68
|
-
(0, class_validator_1.IsString)(),
|
|
69
|
-
__metadata("design:type", String),
|
|
70
|
-
__metadata("design:paramtypes", [])
|
|
71
|
-
], PersonConfigurationService.prototype, "fakeEmail", null);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, class_validator_1.IsDefined)(),
|
|
74
|
-
(0, class_validator_1.IsString)(),
|
|
75
|
-
__metadata("design:type", String),
|
|
76
|
-
__metadata("design:paramtypes", [])
|
|
77
|
-
], PersonConfigurationService.prototype, "fakePicture", null);
|
|
78
|
-
PersonConfigurationService = __decorate([
|
|
79
|
-
(0, common_1.Injectable)(),
|
|
80
|
-
__metadata("design:paramtypes", [config_1.ConfigService])
|
|
81
|
-
], PersonConfigurationService);
|
|
82
|
-
exports.PersonConfigurationService = PersonConfigurationService;
|
|
83
|
-
//# sourceMappingURL=PersonConfigurationService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PersonConfigur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AA,2BAAS,GAAE;IACX,IAAA,0BAAQ,GAAE;;;6DAGV;AAnCQ,0BAA0B;IADtC,IAAA,mBAAU,GAAE;qCAE0B,sBAAa;GADvC,0BAA0B,CAoCtC;AApCY,gEAA0B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const _default: (() => {
|
|
2
|
-
fakeSub: string | undefined;
|
|
3
|
-
fakeFamilyName: string | undefined;
|
|
4
|
-
fakeGivenNAme: string | undefined;
|
|
5
|
-
fakeName: string | undefined;
|
|
6
|
-
fakeEmail: string | undefined;
|
|
7
|
-
fakePicture: string | undefined;
|
|
8
|
-
}) & import("@nestjs/config").ConfigFactoryKeyHost<{
|
|
9
|
-
fakeSub: string | undefined;
|
|
10
|
-
fakeFamilyName: string | undefined;
|
|
11
|
-
fakeGivenNAme: string | undefined;
|
|
12
|
-
fakeName: string | undefined;
|
|
13
|
-
fakeEmail: string | undefined;
|
|
14
|
-
fakePicture: string | undefined;
|
|
15
|
-
}>;
|
|
16
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const config_1 = require("@nestjs/config");
|
|
4
|
-
exports.default = (0, config_1.registerAs)("person", () => ({
|
|
5
|
-
fakeSub: process.env.AUTH0_M2M_FAKE_SUB,
|
|
6
|
-
fakeFamilyName: process.env.AUTH0_M2M_FAKE_FAMILY_NAME,
|
|
7
|
-
fakeGivenNAme: process.env.AUTH0_M2M_FAKE_GIVEN_NAME,
|
|
8
|
-
fakeName: process.env.AUTH0_M2M_FAKE_NAME,
|
|
9
|
-
fakeEmail: process.env.AUTH0_M2M_FAKE_EMAIL,
|
|
10
|
-
fakePicture: process.env.AUTH0_M2M_FAKE_PICTURE,
|
|
11
|
-
}));
|
|
12
|
-
//# sourceMappingURL=PersonConfigurationVariables.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PersonConfigurationVariables.js","sourceRoot":"","sources":["../../src/person/PersonConfigurationVariables.ts"],"names":[],"mappings":";;AAAA,2CAA0C;AAE1C,kBAAe,IAAA,mBAAU,EAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB;IACvC,cAAc,EAAE,OAAO,CAAC,GAAG,CAAC,0BAA0B;IACtD,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,yBAAyB;IACpD,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;IACzC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB;IAC3C,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB;CAClD,CAAC,CAAC,CAAC"}
|