@things-factory/organization 10.1.222 → 10.1.226
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-client/pages/employee-profile/employee-profile-form.d.ts +31 -0
- package/dist-client/pages/employee-profile/employee-profile-form.js +86 -0
- package/dist-client/pages/employee-profile/employee-profile-form.js.map +1 -0
- package/dist-client/pages/employee-profile/employee-profile-list-page.d.ts +38 -0
- package/dist-client/pages/employee-profile/employee-profile-list-page.js +164 -0
- package/dist-client/pages/employee-profile/employee-profile-list-page.js.map +1 -0
- package/dist-client/pages/employee-profile/employee-profile-workbook.d.ts +33 -0
- package/dist-client/pages/employee-profile/employee-profile-workbook.js +87 -0
- package/dist-client/pages/employee-profile/employee-profile-workbook.js.map +1 -0
- package/dist-client/pages/employee-profile/my-employee-profile-page.d.ts +38 -0
- package/dist-client/pages/employee-profile/my-employee-profile-page.js +282 -0
- package/dist-client/pages/employee-profile/my-employee-profile-page.js.map +1 -0
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +7 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/role-tasks.js +4 -1
- package/dist-server/role-tasks.js.map +1 -1
- package/dist-server/service/employee-profile/employee-profile-mutation.d.ts +5 -0
- package/dist-server/service/employee-profile/employee-profile-mutation.js +45 -0
- package/dist-server/service/employee-profile/employee-profile-mutation.js.map +1 -0
- package/dist-server/service/employee-profile/employee-profile-query.d.ts +6 -0
- package/dist-server/service/employee-profile/employee-profile-query.js +58 -0
- package/dist-server/service/employee-profile/employee-profile-query.js.map +1 -0
- package/dist-server/service/employee-profile/employee-profile-rows.d.ts +29 -0
- package/dist-server/service/employee-profile/employee-profile-rows.js +122 -0
- package/dist-server/service/employee-profile/employee-profile-rows.js.map +1 -0
- package/dist-server/service/employee-profile/employee-profile-rules.d.ts +55 -0
- package/dist-server/service/employee-profile/employee-profile-rules.js +80 -0
- package/dist-server/service/employee-profile/employee-profile-rules.js.map +1 -0
- package/dist-server/service/employee-profile/employee-profile-type.d.ts +24 -0
- package/dist-server/service/employee-profile/employee-profile-type.js +81 -0
- package/dist-server/service/employee-profile/employee-profile-type.js.map +1 -0
- package/dist-server/service/employee-profile/employee-profile.d.ts +24 -0
- package/dist-server/service/employee-profile/employee-profile.js +112 -0
- package/dist-server/service/employee-profile/employee-profile.js.map +1 -0
- package/dist-server/service/employee-profile/index.d.ts +5 -0
- package/dist-server/service/employee-profile/index.js +9 -0
- package/dist-server/service/employee-profile/index.js.map +1 -0
- package/dist-server/service/index.d.ts +3 -2
- package/dist-server/service/index.js +6 -2
- package/dist-server/service/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -6
- package/tests/employee-profile-db.test.ts +186 -0
- package/tests/employee-profile-rules.test.ts +76 -0
- package/tests/employee-profile-workbook.test.ts +89 -0
- package/things-factory.config.js +3 -0
- package/translations/en.json +38 -1
- package/translations/es.json +38 -1
- package/translations/ja.json +38 -1
- package/translations/ko.json +38 -1
- package/translations/ms.json +38 -1
- package/translations/zh.json +38 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Domain } from '@things-factory/shell';
|
|
2
|
+
import { User } from '@things-factory/auth-base';
|
|
3
|
+
import { Employee } from '../employee/employee';
|
|
4
|
+
import { EmployeeProfileCareer, EmployeeProfileCertificate, EmployeeProfileEducation, EmployeeProfileProject } from './employee-profile-rows';
|
|
5
|
+
export declare class EmployeeProfile {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
domain?: Domain;
|
|
8
|
+
domainId?: string;
|
|
9
|
+
employee?: Employee;
|
|
10
|
+
employeeId?: string;
|
|
11
|
+
summary?: string;
|
|
12
|
+
skills?: string[];
|
|
13
|
+
educations?: EmployeeProfileEducation[];
|
|
14
|
+
certificates?: EmployeeProfileCertificate[];
|
|
15
|
+
careers?: EmployeeProfileCareer[];
|
|
16
|
+
projects?: EmployeeProfileProject[];
|
|
17
|
+
creator?: User;
|
|
18
|
+
creatorId?: string;
|
|
19
|
+
updater?: User;
|
|
20
|
+
updaterId?: string;
|
|
21
|
+
createdAt?: Date;
|
|
22
|
+
updatedAt?: Date;
|
|
23
|
+
deletedAt?: Date;
|
|
24
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmployeeProfile = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/*
|
|
6
|
+
* An employee's profile - what they studied, hold, did before and worked on - written by the employee and taken by sales
|
|
7
|
+
* to attach to a quotation (ADR-0169).
|
|
8
|
+
*
|
|
9
|
+
* Its own table beside the employee record, one per employee: the record holds contact, address and the pay account,
|
|
10
|
+
* and the people who read profiles (sales) must not read those. Name, department, position and hire day are read from
|
|
11
|
+
* the record, never copied here. So neither the employee nor the writers are fields of this type - only their ids -
|
|
12
|
+
* and reaching a profile does not reach the record behind it.
|
|
13
|
+
*/
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const type_graphql_1 = require("type-graphql");
|
|
16
|
+
const shell_1 = require("@things-factory/shell");
|
|
17
|
+
const auth_base_1 = require("@things-factory/auth-base");
|
|
18
|
+
const employee_1 = require("../employee/employee");
|
|
19
|
+
const employee_profile_rows_1 = require("./employee-profile-rows");
|
|
20
|
+
let EmployeeProfile = class EmployeeProfile {
|
|
21
|
+
};
|
|
22
|
+
exports.EmployeeProfile = EmployeeProfile;
|
|
23
|
+
tslib_1.__decorate([
|
|
24
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
25
|
+
(0, type_graphql_1.Field)(type => type_graphql_1.ID, { description: 'Profile id.' }),
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
27
|
+
], EmployeeProfile.prototype, "id", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, typeorm_1.ManyToOne)(type => shell_1.Domain),
|
|
30
|
+
(0, type_graphql_1.Field)(type => shell_1.Domain, { nullable: true, description: 'The domain the profile is in.' }),
|
|
31
|
+
tslib_1.__metadata("design:type", shell_1.Domain)
|
|
32
|
+
], EmployeeProfile.prototype, "domain", void 0);
|
|
33
|
+
tslib_1.__decorate([
|
|
34
|
+
(0, typeorm_1.RelationId)((one) => one.domain),
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
|
+
], EmployeeProfile.prototype, "domainId", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, typeorm_1.ManyToOne)(type => employee_1.Employee),
|
|
39
|
+
tslib_1.__metadata("design:type", employee_1.Employee)
|
|
40
|
+
], EmployeeProfile.prototype, "employee", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, typeorm_1.RelationId)((one) => one.employee),
|
|
43
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'The employee whose profile it is.' }),
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
45
|
+
], EmployeeProfile.prototype, "employeeId", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
48
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'A few lines about the employee.' }),
|
|
49
|
+
tslib_1.__metadata("design:type", String)
|
|
50
|
+
], EmployeeProfile.prototype, "summary", void 0);
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
|
53
|
+
(0, type_graphql_1.Field)(type => [String], { nullable: true, description: 'The skills, each a word or two.' }),
|
|
54
|
+
tslib_1.__metadata("design:type", Array)
|
|
55
|
+
], EmployeeProfile.prototype, "skills", void 0);
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
|
58
|
+
(0, type_graphql_1.Field)(type => [employee_profile_rows_1.EmployeeProfileEducation], { nullable: true, description: 'The schools.' }),
|
|
59
|
+
tslib_1.__metadata("design:type", Array)
|
|
60
|
+
], EmployeeProfile.prototype, "educations", void 0);
|
|
61
|
+
tslib_1.__decorate([
|
|
62
|
+
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
|
63
|
+
(0, type_graphql_1.Field)(type => [employee_profile_rows_1.EmployeeProfileCertificate], { nullable: true, description: 'The certificates and licences.' }),
|
|
64
|
+
tslib_1.__metadata("design:type", Array)
|
|
65
|
+
], EmployeeProfile.prototype, "certificates", void 0);
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
|
68
|
+
(0, type_graphql_1.Field)(type => [employee_profile_rows_1.EmployeeProfileCareer], { nullable: true, description: 'The jobs held before, at other companies.' }),
|
|
69
|
+
tslib_1.__metadata("design:type", Array)
|
|
70
|
+
], EmployeeProfile.prototype, "careers", void 0);
|
|
71
|
+
tslib_1.__decorate([
|
|
72
|
+
(0, typeorm_1.Column)('simple-json', { nullable: true }),
|
|
73
|
+
(0, type_graphql_1.Field)(type => [employee_profile_rows_1.EmployeeProfileProject], { nullable: true, description: 'The projects worked on.' }),
|
|
74
|
+
tslib_1.__metadata("design:type", Array)
|
|
75
|
+
], EmployeeProfile.prototype, "projects", void 0);
|
|
76
|
+
tslib_1.__decorate([
|
|
77
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
78
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
79
|
+
], EmployeeProfile.prototype, "creator", void 0);
|
|
80
|
+
tslib_1.__decorate([
|
|
81
|
+
(0, typeorm_1.RelationId)((one) => one.creator),
|
|
82
|
+
tslib_1.__metadata("design:type", String)
|
|
83
|
+
], EmployeeProfile.prototype, "creatorId", void 0);
|
|
84
|
+
tslib_1.__decorate([
|
|
85
|
+
(0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
|
|
86
|
+
tslib_1.__metadata("design:type", auth_base_1.User)
|
|
87
|
+
], EmployeeProfile.prototype, "updater", void 0);
|
|
88
|
+
tslib_1.__decorate([
|
|
89
|
+
(0, typeorm_1.RelationId)((one) => one.updater),
|
|
90
|
+
tslib_1.__metadata("design:type", String)
|
|
91
|
+
], EmployeeProfile.prototype, "updaterId", void 0);
|
|
92
|
+
tslib_1.__decorate([
|
|
93
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
94
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Creation timestamp.' }),
|
|
95
|
+
tslib_1.__metadata("design:type", Date)
|
|
96
|
+
], EmployeeProfile.prototype, "createdAt", void 0);
|
|
97
|
+
tslib_1.__decorate([
|
|
98
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
99
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Last update timestamp.' }),
|
|
100
|
+
tslib_1.__metadata("design:type", Date)
|
|
101
|
+
], EmployeeProfile.prototype, "updatedAt", void 0);
|
|
102
|
+
tslib_1.__decorate([
|
|
103
|
+
(0, typeorm_1.DeleteDateColumn)(),
|
|
104
|
+
(0, type_graphql_1.Field)({ nullable: true, description: 'Soft delete timestamp.' }),
|
|
105
|
+
tslib_1.__metadata("design:type", Date)
|
|
106
|
+
], EmployeeProfile.prototype, "deletedAt", void 0);
|
|
107
|
+
exports.EmployeeProfile = EmployeeProfile = tslib_1.__decorate([
|
|
108
|
+
(0, typeorm_1.Entity)(),
|
|
109
|
+
(0, typeorm_1.Index)('ix_employee_profile_0', (one) => [one.domain, one.employee], { unique: true, where: '"deleted_at" IS NULL' }),
|
|
110
|
+
(0, type_graphql_1.ObjectType)({ description: "An employee's profile - summary, skills, schools, certificates, past jobs and projects (ADR-0169)." })
|
|
111
|
+
], EmployeeProfile);
|
|
112
|
+
//# sourceMappingURL=employee-profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employee-profile.js","sourceRoot":"","sources":["../../../server/service/employee-profile/employee-profile.ts"],"names":[],"mappings":";;;;AAAA;;;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DAChC;AAGlB;IADC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAClC,gBAAI;gDAAA;AAGd;IADC,IAAA,oBAAU,EAAC,CAAC,GAAoB,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC;;kDAChC;AAIlB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;sCAClD,IAAI;kDAAA;AAIhB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;sCACrD,IAAI;kDAAA;AAIhB;IAFC,IAAA,0BAAgB,GAAE;IAClB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;sCACrD,IAAI;kDAAA;0BAjEL,eAAe;IAH3B,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,uBAAuB,EAAE,CAAC,GAAoB,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC;IACrI,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,oGAAoG,EAAE,CAAC;GACrH,eAAe,CAkE3B","sourcesContent":["/*\n * An employee's profile - what they studied, hold, did before and worked on - written by the employee and taken by sales\n * to attach to a quotation (ADR-0169).\n *\n * Its own table beside the employee record, one per employee: the record holds contact, address and the pay account,\n * and the people who read profiles (sales) must not read those. Name, department, position and hire day are read from\n * the record, never copied here. So neither the employee nor the writers are fields of this type - only their ids -\n * and reaching a profile does not reach the record behind it.\n */\nimport { Column, CreateDateColumn, DeleteDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'\nimport { Field, ID, ObjectType } from 'type-graphql'\n\nimport { Domain } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\n\nimport { Employee } from '../employee/employee'\nimport { EmployeeProfileCareer, EmployeeProfileCertificate, EmployeeProfileEducation, EmployeeProfileProject } from './employee-profile-rows'\n\n@Entity()\n@Index('ix_employee_profile_0', (one: EmployeeProfile) => [one.domain, one.employee], { unique: true, where: '\"deleted_at\" IS NULL' })\n@ObjectType({ description: \"An employee's profile - summary, skills, schools, certificates, past jobs and projects (ADR-0169).\" })\nexport class EmployeeProfile {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'Profile id.' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain, { nullable: true, description: 'The domain the profile is in.' })\n domain?: Domain\n\n @RelationId((one: EmployeeProfile) => one.domain)\n domainId?: string\n\n @ManyToOne(type => Employee)\n employee?: Employee\n\n @RelationId((one: EmployeeProfile) => one.employee)\n @Field({ nullable: true, description: 'The employee whose profile it is.' })\n employeeId?: string\n\n @Column({ type: 'text', nullable: true })\n @Field({ nullable: true, description: 'A few lines about the employee.' })\n summary?: string\n\n @Column('simple-json', { nullable: true })\n @Field(type => [String], { nullable: true, description: 'The skills, each a word or two.' })\n skills?: string[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [EmployeeProfileEducation], { nullable: true, description: 'The schools.' })\n educations?: EmployeeProfileEducation[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [EmployeeProfileCertificate], { nullable: true, description: 'The certificates and licences.' })\n certificates?: EmployeeProfileCertificate[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [EmployeeProfileCareer], { nullable: true, description: 'The jobs held before, at other companies.' })\n careers?: EmployeeProfileCareer[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [EmployeeProfileProject], { nullable: true, description: 'The projects worked on.' })\n projects?: EmployeeProfileProject[]\n\n @ManyToOne(type => User, { nullable: true })\n creator?: User\n\n @RelationId((one: EmployeeProfile) => one.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n updater?: User\n\n @RelationId((one: EmployeeProfile) => one.updater)\n updaterId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'Creation timestamp.' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'Last update timestamp.' })\n updatedAt?: Date\n\n @DeleteDateColumn()\n @Field({ nullable: true, description: 'Soft delete timestamp.' })\n deletedAt?: Date\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EmployeeProfile } from './employee-profile';
|
|
2
|
+
import { EmployeeProfileMutation } from './employee-profile-mutation';
|
|
3
|
+
import { EmployeeProfileQuery } from './employee-profile-query';
|
|
4
|
+
export declare const entities: (typeof EmployeeProfile)[];
|
|
5
|
+
export declare const resolvers: (typeof EmployeeProfileMutation | typeof EmployeeProfileQuery)[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolvers = exports.entities = void 0;
|
|
4
|
+
const employee_profile_1 = require("./employee-profile");
|
|
5
|
+
const employee_profile_mutation_1 = require("./employee-profile-mutation");
|
|
6
|
+
const employee_profile_query_1 = require("./employee-profile-query");
|
|
7
|
+
exports.entities = [employee_profile_1.EmployeeProfile];
|
|
8
|
+
exports.resolvers = [employee_profile_query_1.EmployeeProfileQuery, employee_profile_mutation_1.EmployeeProfileMutation];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../server/service/employee-profile/index.ts"],"names":[],"mappings":";;;AAAA,yDAAoD;AACpD,2EAAqE;AACrE,qEAA+D;AAElD,QAAA,QAAQ,GAAG,CAAC,kCAAe,CAAC,CAAA;AAC5B,QAAA,SAAS,GAAG,CAAC,6CAAoB,EAAE,mDAAuB,CAAC,CAAA","sourcesContent":["import { EmployeeProfile } from './employee-profile'\nimport { EmployeeProfileMutation } from './employee-profile-mutation'\nimport { EmployeeProfileQuery } from './employee-profile-query'\n\nexport const entities = [EmployeeProfile]\nexport const resolvers = [EmployeeProfileQuery, EmployeeProfileMutation]\n"]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export * from './approval-line/approval-line';
|
|
2
2
|
export * from './department/department';
|
|
3
3
|
export * from './employee/employee';
|
|
4
|
+
export * from './employee-profile/employee-profile';
|
|
4
5
|
export * from './audience/audience';
|
|
5
6
|
export * from './audience/audience-member';
|
|
6
|
-
export declare const entities: (typeof import("./department/department").Department | typeof import("./employee/employee").Employee | typeof import("./approval-line/approval-line").ApprovalLine | typeof import("./department/department-history").DepartmentHistory | typeof import("./employee/employee-history").EmployeeHistory)[];
|
|
7
|
+
export declare const entities: (typeof import("./department/department").Department | typeof import("./employee/employee").Employee | typeof import("./approval-line/approval-line").ApprovalLine | typeof import("./employee-profile/employee-profile").EmployeeProfile | typeof import("./department/department-history").DepartmentHistory | typeof import("./employee/employee-history").EmployeeHistory)[];
|
|
7
8
|
export declare const subscribers: (typeof import("./department/event-subscriber").DepartmentHistoryEntitySubscriber | typeof import("./employee/event-subscriber").EmployeeHistoryEntitySubscriber)[];
|
|
8
9
|
export declare const schema: {
|
|
9
|
-
resolverClasses: (typeof import("./approval-line/approval-line-query").ApprovalLineQuery | typeof import("./approval-line/approval-line-mutation").ApprovalLineMutation | typeof import("./department/department-query").DepartmentQuery | typeof import("./department/department-mutation").DepartmentMutation | typeof import("./employee/employee-query").EmployeeQuery | typeof import("./employee/employee-mutation").EmployeeMutation)[];
|
|
10
|
+
resolverClasses: (typeof import("./approval-line/approval-line-query").ApprovalLineQuery | typeof import("./approval-line/approval-line-mutation").ApprovalLineMutation | typeof import("./department/department-query").DepartmentQuery | typeof import("./department/department-mutation").DepartmentMutation | typeof import("./employee/employee-query").EmployeeQuery | typeof import("./employee/employee-mutation").EmployeeMutation | typeof import("./employee-profile/employee-profile-mutation").EmployeeProfileMutation | typeof import("./employee-profile/employee-profile-query").EmployeeProfileQuery)[];
|
|
10
11
|
};
|
|
@@ -6,17 +6,20 @@ const tslib_1 = require("tslib");
|
|
|
6
6
|
tslib_1.__exportStar(require("./approval-line/approval-line"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./department/department"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./employee/employee"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./employee-profile/employee-profile"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./audience/audience"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./audience/audience-member"), exports);
|
|
11
12
|
/* IMPORT ENTITIES AND RESOLVERS */
|
|
12
13
|
const approval_line_1 = require("./approval-line");
|
|
13
14
|
const department_1 = require("./department");
|
|
14
15
|
const employee_1 = require("./employee");
|
|
16
|
+
const employee_profile_1 = require("./employee-profile");
|
|
15
17
|
exports.entities = [
|
|
16
18
|
/* ENTITIES */
|
|
17
19
|
...approval_line_1.entities,
|
|
18
20
|
...department_1.entities,
|
|
19
|
-
...employee_1.entities
|
|
21
|
+
...employee_1.entities,
|
|
22
|
+
...employee_profile_1.entities
|
|
20
23
|
];
|
|
21
24
|
exports.subscribers = [
|
|
22
25
|
/* SUBSCRIBERS */
|
|
@@ -28,7 +31,8 @@ exports.schema = {
|
|
|
28
31
|
/* RESOLVER CLASSES */
|
|
29
32
|
...approval_line_1.resolvers,
|
|
30
33
|
...department_1.resolvers,
|
|
31
|
-
...employee_1.resolvers
|
|
34
|
+
...employee_1.resolvers,
|
|
35
|
+
...employee_profile_1.resolvers
|
|
32
36
|
]
|
|
33
37
|
};
|
|
34
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,wEAA6C;AAC7C,kEAAuC;AACvC,8DAAmC;AACnC,8DAAmC;AACnC,qEAA0C;AAE1C,mCAAmC;AACnC,mDAAsG;AACtG,6CAIqB;AACrB,yCAImB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/service/index.ts"],"names":[],"mappings":";;;;AAAA,yBAAyB;AACzB,wEAA6C;AAC7C,kEAAuC;AACvC,8DAAmC;AACnC,8EAAmD;AACnD,8DAAmC;AACnC,qEAA0C;AAE1C,mCAAmC;AACnC,mDAAsG;AACtG,6CAIqB;AACrB,yCAImB;AACnB,yDAA+G;AAElG,QAAA,QAAQ,GAAG;IACtB,cAAc;IACd,GAAG,wBAAoB;IACvB,GAAG,qBAAkB;IACrB,GAAG,mBAAgB;IACnB,GAAG,2BAAuB;CAC3B,CAAA;AAEY,QAAA,WAAW,GAAG;IACzB,iBAAiB;IACjB,GAAG,wBAAqB;IACxB,GAAG,sBAAmB;CACvB,CAAA;AAEY,QAAA,MAAM,GAAG;IACpB,eAAe,EAAE;QACf,sBAAsB;QACtB,GAAG,yBAAqB;QACxB,GAAG,sBAAmB;QACtB,GAAG,oBAAiB;QACpB,GAAG,4BAAwB;KAC5B;CACF,CAAA","sourcesContent":["/* EXPORT ENTITY TYPES */\nexport * from './approval-line/approval-line'\nexport * from './department/department'\nexport * from './employee/employee'\nexport * from './employee-profile/employee-profile'\nexport * from './audience/audience'\nexport * from './audience/audience-member'\n\n/* IMPORT ENTITIES AND RESOLVERS */\nimport { entities as ApprovalLineEntities, resolvers as ApprovalLineResolvers } from './approval-line'\nimport {\n entities as DepartmentEntities,\n resolvers as DepartmentResolvers,\n subscribers as DepartmentSubscribers\n} from './department'\nimport {\n entities as EmployeeEntities,\n resolvers as EmployeeResolvers,\n subscribers as EmployeeSubscribers\n} from './employee'\nimport { entities as EmployeeProfileEntities, resolvers as EmployeeProfileResolvers } from './employee-profile'\n\nexport const entities = [\n /* ENTITIES */\n ...ApprovalLineEntities,\n ...DepartmentEntities,\n ...EmployeeEntities,\n ...EmployeeProfileEntities\n]\n\nexport const subscribers = [\n /* SUBSCRIBERS */\n ...DepartmentSubscribers,\n ...EmployeeSubscribers\n]\n\nexport const schema = {\n resolverClasses: [\n /* RESOLVER CLASSES */\n ...ApprovalLineResolvers,\n ...DepartmentResolvers,\n ...EmployeeResolvers,\n ...EmployeeProfileResolvers\n ]\n}\n"]}
|