@things-factory/organization 7.0.52 → 7.0.56

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.
Files changed (83) hide show
  1. package/client/component/approval-line-brief.ts +2 -2
  2. package/client/component/approval-line-items-editor-popup.ts +6 -4
  3. package/client/component/approval-line-items-editor.ts +5 -6
  4. package/client/component/approval-line-selector.ts +4 -4
  5. package/client/component/approval-line-templates-manager.ts +8 -6
  6. package/client/component/approval-line-view.ts +10 -6
  7. package/client/component/assignees-editor-popup.ts +4 -4
  8. package/client/component/assignees-editor.ts +3 -3
  9. package/client/component/department-selector.ts +20 -17
  10. package/client/component/recipients-editor-popup.ts +4 -4
  11. package/client/component/recipients-editor.ts +2 -2
  12. package/client/grist-editor/grist-editor-department-object.ts +1 -0
  13. package/client/pages/department/department-importer.ts +5 -4
  14. package/client/pages/department/department-list-page.ts +11 -11
  15. package/client/pages/department/department-tree-page.ts +15 -15
  16. package/client/pages/employee/employee-importer.ts +5 -4
  17. package/client/pages/employee/employee-list-page.ts +122 -98
  18. package/client/pages/employee/employees-by-department.ts +10 -10
  19. package/dist-client/component/approval-line-brief.js +2 -2
  20. package/dist-client/component/approval-line-brief.js.map +1 -1
  21. package/dist-client/component/approval-line-items-editor-popup.d.ts +1 -1
  22. package/dist-client/component/approval-line-items-editor-popup.js +6 -4
  23. package/dist-client/component/approval-line-items-editor-popup.js.map +1 -1
  24. package/dist-client/component/approval-line-items-editor.d.ts +4 -9
  25. package/dist-client/component/approval-line-items-editor.js +4 -5
  26. package/dist-client/component/approval-line-items-editor.js.map +1 -1
  27. package/dist-client/component/approval-line-selector.d.ts +1 -1
  28. package/dist-client/component/approval-line-selector.js +4 -4
  29. package/dist-client/component/approval-line-selector.js.map +1 -1
  30. package/dist-client/component/approval-line-templates-manager.d.ts +3 -7
  31. package/dist-client/component/approval-line-templates-manager.js +6 -4
  32. package/dist-client/component/approval-line-templates-manager.js.map +1 -1
  33. package/dist-client/component/approval-line-view.js +10 -6
  34. package/dist-client/component/approval-line-view.js.map +1 -1
  35. package/dist-client/component/assignees-editor-popup.d.ts +1 -1
  36. package/dist-client/component/assignees-editor-popup.js +4 -4
  37. package/dist-client/component/assignees-editor-popup.js.map +1 -1
  38. package/dist-client/component/assignees-editor.d.ts +3 -8
  39. package/dist-client/component/assignees-editor.js +1 -1
  40. package/dist-client/component/assignees-editor.js.map +1 -1
  41. package/dist-client/component/department-selector.d.ts +1 -1
  42. package/dist-client/component/department-selector.js +19 -17
  43. package/dist-client/component/department-selector.js.map +1 -1
  44. package/dist-client/component/department-view.d.ts +1 -1
  45. package/dist-client/component/recipients-editor-popup.d.ts +1 -1
  46. package/dist-client/component/recipients-editor-popup.js +4 -4
  47. package/dist-client/component/recipients-editor-popup.js.map +1 -1
  48. package/dist-client/component/recipients-editor.d.ts +3 -8
  49. package/dist-client/component/recipients-editor.js.map +1 -1
  50. package/dist-client/grist-editor/grist-editor-department-object.js +1 -0
  51. package/dist-client/grist-editor/grist-editor-department-object.js.map +1 -1
  52. package/dist-client/pages/approval-line/common-approval-line-templates-page.d.ts +1 -1
  53. package/dist-client/pages/approval-line/my-approval-line-templates-page.d.ts +1 -1
  54. package/dist-client/pages/department/department-importer.d.ts +1 -1
  55. package/dist-client/pages/department/department-importer.js +5 -4
  56. package/dist-client/pages/department/department-importer.js.map +1 -1
  57. package/dist-client/pages/department/department-list-page.d.ts +1 -1
  58. package/dist-client/pages/department/department-list-page.js +11 -11
  59. package/dist-client/pages/department/department-list-page.js.map +1 -1
  60. package/dist-client/pages/department/department-tree-page.d.ts +1 -1
  61. package/dist-client/pages/department/department-tree-page.js +15 -15
  62. package/dist-client/pages/department/department-tree-page.js.map +1 -1
  63. package/dist-client/pages/employee/employee-importer.d.ts +1 -1
  64. package/dist-client/pages/employee/employee-importer.js +5 -4
  65. package/dist-client/pages/employee/employee-importer.js.map +1 -1
  66. package/dist-client/pages/employee/employee-list-page.d.ts +8 -3
  67. package/dist-client/pages/employee/employee-list-page.js +122 -95
  68. package/dist-client/pages/employee/employee-list-page.js.map +1 -1
  69. package/dist-client/pages/employee/employees-by-department.d.ts +1 -1
  70. package/dist-client/pages/employee/employees-by-department.js +10 -10
  71. package/dist-client/pages/employee/employees-by-department.js.map +1 -1
  72. package/dist-client/tsconfig.tsbuildinfo +1 -1
  73. package/dist-server/service/employee/employee-type.d.ts +12 -2
  74. package/dist-server/service/employee/employee-type.js +41 -5
  75. package/dist-server/service/employee/employee-type.js.map +1 -1
  76. package/dist-server/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +8 -6
  78. package/server/service/employee/employee-type.ts +28 -4
  79. package/translations/en.json +2 -0
  80. package/translations/ja.json +6 -4
  81. package/translations/ko.json +2 -0
  82. package/translations/ms.json +5 -3
  83. package/translations/zh.json +6 -4
@@ -12,6 +12,14 @@ export declare class ObjectRefForEmployee extends ObjectRef {
12
12
  hiredOn?: string;
13
13
  active?: boolean;
14
14
  }
15
+ export declare class ObjectRefForContact extends ObjectRef {
16
+ email?: string;
17
+ phone?: string;
18
+ address?: string;
19
+ }
20
+ export declare class ObjectRefForDepartment extends ObjectRef {
21
+ controlNo?: string;
22
+ }
15
23
  export declare class ObjectRefForUser extends ObjectRef {
16
24
  email?: string;
17
25
  }
@@ -29,7 +37,8 @@ export declare class NewEmployee {
29
37
  photo?: FileUpload;
30
38
  note?: string;
31
39
  supervisor?: ObjectRefForEmployee;
32
- department?: ObjectRef;
40
+ department?: ObjectRefForDepartment;
41
+ contact?: ObjectRefForContact;
33
42
  user?: ObjectRefForUser;
34
43
  }
35
44
  export declare class EmployeePatch {
@@ -46,7 +55,8 @@ export declare class EmployeePatch {
46
55
  photo?: FileUpload;
47
56
  note?: string;
48
57
  supervisor?: ObjectRefForEmployee;
49
- department?: ObjectRef;
58
+ department?: ObjectRefForDepartment;
59
+ contact?: ObjectRefForContact;
50
60
  user?: ObjectRefForUser;
51
61
  cuFlag?: string;
52
62
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmployeeList = exports.EmployeePatch = exports.NewEmployee = exports.ObjectRefForUser = exports.ObjectRefForEmployee = void 0;
3
+ exports.EmployeeList = exports.EmployeePatch = exports.NewEmployee = exports.ObjectRefForUser = exports.ObjectRefForDepartment = exports.ObjectRefForContact = exports.ObjectRefForEmployee = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const GraphQLUpload_js_1 = tslib_1.__importDefault(require("graphql-upload/GraphQLUpload.js"));
6
6
  const type_graphql_1 = require("type-graphql");
@@ -49,6 +49,34 @@ tslib_1.__decorate([
49
49
  exports.ObjectRefForEmployee = ObjectRefForEmployee = tslib_1.__decorate([
50
50
  (0, type_graphql_1.InputType)()
51
51
  ], ObjectRefForEmployee);
52
+ let ObjectRefForContact = class ObjectRefForContact extends shell_1.ObjectRef {
53
+ };
54
+ exports.ObjectRefForContact = ObjectRefForContact;
55
+ tslib_1.__decorate([
56
+ (0, type_graphql_1.Field)(type => graphql_scalars_1.GraphQLEmailAddress, { nullable: true }),
57
+ tslib_1.__metadata("design:type", String)
58
+ ], ObjectRefForContact.prototype, "email", void 0);
59
+ tslib_1.__decorate([
60
+ (0, type_graphql_1.Field)({ nullable: true }),
61
+ tslib_1.__metadata("design:type", String)
62
+ ], ObjectRefForContact.prototype, "phone", void 0);
63
+ tslib_1.__decorate([
64
+ (0, type_graphql_1.Field)({ nullable: true }),
65
+ tslib_1.__metadata("design:type", String)
66
+ ], ObjectRefForContact.prototype, "address", void 0);
67
+ exports.ObjectRefForContact = ObjectRefForContact = tslib_1.__decorate([
68
+ (0, type_graphql_1.InputType)()
69
+ ], ObjectRefForContact);
70
+ let ObjectRefForDepartment = class ObjectRefForDepartment extends shell_1.ObjectRef {
71
+ };
72
+ exports.ObjectRefForDepartment = ObjectRefForDepartment;
73
+ tslib_1.__decorate([
74
+ (0, type_graphql_1.Field)({ nullable: true }),
75
+ tslib_1.__metadata("design:type", String)
76
+ ], ObjectRefForDepartment.prototype, "controlNo", void 0);
77
+ exports.ObjectRefForDepartment = ObjectRefForDepartment = tslib_1.__decorate([
78
+ (0, type_graphql_1.InputType)()
79
+ ], ObjectRefForDepartment);
52
80
  let ObjectRefForUser = class ObjectRefForUser extends shell_1.ObjectRef {
53
81
  };
54
82
  exports.ObjectRefForUser = ObjectRefForUser;
@@ -115,9 +143,13 @@ tslib_1.__decorate([
115
143
  tslib_1.__metadata("design:type", ObjectRefForEmployee)
116
144
  ], NewEmployee.prototype, "supervisor", void 0);
117
145
  tslib_1.__decorate([
118
- (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
119
- tslib_1.__metadata("design:type", shell_1.ObjectRef)
146
+ (0, type_graphql_1.Field)(type => ObjectRefForDepartment, { nullable: true }),
147
+ tslib_1.__metadata("design:type", ObjectRefForDepartment)
120
148
  ], NewEmployee.prototype, "department", void 0);
149
+ tslib_1.__decorate([
150
+ (0, type_graphql_1.Field)(type => ObjectRefForContact, { nullable: true }),
151
+ tslib_1.__metadata("design:type", ObjectRefForContact)
152
+ ], NewEmployee.prototype, "contact", void 0);
121
153
  tslib_1.__decorate([
122
154
  (0, type_graphql_1.Field)(type => ObjectRefForUser, { nullable: true }),
123
155
  tslib_1.__metadata("design:type", ObjectRefForUser)
@@ -181,9 +213,13 @@ tslib_1.__decorate([
181
213
  tslib_1.__metadata("design:type", ObjectRefForEmployee)
182
214
  ], EmployeePatch.prototype, "supervisor", void 0);
183
215
  tslib_1.__decorate([
184
- (0, type_graphql_1.Field)(type => shell_1.ObjectRef, { nullable: true }),
185
- tslib_1.__metadata("design:type", shell_1.ObjectRef)
216
+ (0, type_graphql_1.Field)(type => ObjectRefForDepartment, { nullable: true }),
217
+ tslib_1.__metadata("design:type", ObjectRefForDepartment)
186
218
  ], EmployeePatch.prototype, "department", void 0);
219
+ tslib_1.__decorate([
220
+ (0, type_graphql_1.Field)(type => ObjectRefForContact, { nullable: true }),
221
+ tslib_1.__metadata("design:type", ObjectRefForContact)
222
+ ], EmployeePatch.prototype, "contact", void 0);
187
223
  tslib_1.__decorate([
188
224
  (0, type_graphql_1.Field)(type => ObjectRefForUser, { nullable: true }),
189
225
  tslib_1.__metadata("design:type", ObjectRefForUser)
@@ -1 +1 @@
1
- {"version":3,"file":"employee-type.js","sourceRoot":"","sources":["../../../server/service/employee/employee-type.ts"],"names":[],"mappings":";;;;AACA,+FAA2D;AAC3D,+CAAsF;AACtF,qDAAqD;AAErD,iDAA+D;AAE/D,yCAAmD;AAG5C,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,iBAAS;CA2BlD,CAAA;AA3BY,oDAAoB;AAE/B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;AAGlB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,uBAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC7B;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAGd;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,qCAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACzC;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDACN;AAGpB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+DACA;AAG1B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACV;+BA1BL,oBAAoB;IADhC,IAAA,wBAAS,GAAE;GACC,oBAAoB,CA2BhC;AAGM,IAAM,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,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACV;AAGhB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACR;AAGlB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,0BAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC/B;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAoB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC3C,oBAAoB;iDAAA;AAGjC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChC,iBAAS;iDAAA;AAGtB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC7C,gBAAgB;2CAAA;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACX;wBA/CJ,aAAa;IADzB,IAAA,wBAAS,GAAE;GACC,aAAa,CAgDzB;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAY;CAMxB,CAAA;AANY,oCAAY;AAEvB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,mBAAQ,CAAC,CAAC;;2CACT;AAGjB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;2CACN;uBALF,YAAY;IADxB,IAAA,yBAAU,GAAE;GACA,YAAY,CAMxB","sourcesContent":["import type { FileUpload } from 'graphql-upload/GraphQLUpload.js'\nimport GraphQLUpload from 'graphql-upload/GraphQLUpload.js'\nimport { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\nimport { GraphQLEmailAddress } from 'graphql-scalars'\n\nimport { ObjectRef, ScalarObject } from '@things-factory/shell'\n\nimport { Employee, EmployeeType } from './employee'\n\n@InputType()\nexport class ObjectRefForEmployee extends ObjectRef {\n @Field({ nullable: true })\n controlNo?: string\n\n @Field(type => EmployeeType, { nullable: true })\n type?: EmployeeType\n\n @Field({ nullable: true })\n alias?: string\n\n @Field({ nullable: true })\n photo?: string\n\n @Field(type => GraphQLEmailAddress, { nullable: true })\n email?: string\n\n @Field({ nullable: true })\n jobPosition?: string\n\n @Field({ nullable: true })\n jobResponsibility?: string\n\n @Field({ nullable: true })\n hiredOn?: string\n\n @Field({ nullable: true })\n active?: boolean\n}\n\n@InputType()\nexport class ObjectRefForUser extends ObjectRef {\n @Field(type => GraphQLEmailAddress, { nullable: true })\n email?: string\n}\n\n@InputType()\nexport class NewEmployee {\n @Field()\n controlNo: string\n\n @Field()\n name: string\n\n @Field({ nullable: true })\n alias?: string\n\n @Field({ nullable: true })\n jobResponsibility?: string\n\n @Field({ nullable: true })\n jobPosition?: string\n\n @Field(type => EmployeeType, { nullable: true })\n type?: EmployeeType\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n extension?: string\n\n @Field({ nullable: true })\n hiredOn?: string\n\n @Field({ nullable: true })\n retiredAt?: string\n\n @Field(type => GraphQLUpload, { nullable: true })\n photo?: FileUpload\n\n @Field({ nullable: true })\n note?: string\n\n @Field(type => ObjectRefForEmployee, { nullable: true })\n supervisor?: ObjectRefForEmployee\n\n @Field(type => ObjectRef, { nullable: true })\n department?: ObjectRef\n\n @Field(type => ObjectRefForUser, { nullable: true })\n user?: ObjectRefForUser\n}\n\n@InputType()\nexport class EmployeePatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n controlNo?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n alias?: string\n\n @Field({ nullable: true })\n jobResponsibility?: string\n\n @Field({ nullable: true })\n jobPosition?: string\n\n @Field(type => EmployeeType, { nullable: true })\n type?: EmployeeType\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n hiredOn?: string\n\n @Field({ nullable: true })\n retiredAt?: string\n\n @Field(type => GraphQLUpload, { nullable: true })\n photo?: FileUpload\n\n @Field({ nullable: true })\n note?: string\n\n @Field(type => ObjectRefForEmployee, { nullable: true })\n supervisor?: ObjectRefForEmployee\n\n @Field(type => ObjectRef, { nullable: true })\n department?: ObjectRef\n\n @Field(type => ObjectRefForUser, { nullable: true })\n user?: ObjectRefForUser\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class EmployeeList {\n @Field(type => [Employee])\n items: Employee[]\n\n @Field(type => Int)\n total: number\n}\n"]}
1
+ {"version":3,"file":"employee-type.js","sourceRoot":"","sources":["../../../server/service/employee/employee-type.ts"],"names":[],"mappings":";;;;AACA,+FAA2D;AAC3D,+CAAsF;AACtF,qDAAqD;AAErD,iDAA+D;AAE/D,yCAAmD;AAG5C,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,iBAAS;CA2BlD,CAAA;AA3BY,oDAAoB;AAE/B;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACR;AAGlB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,uBAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAC7B;AAGnB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACZ;AAGd;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,qCAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACzC;AAGd;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,E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oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,0BAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC/B;AAGlB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAGb;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAoB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC3C,oBAAoB;iDAAA;AAGjC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC7C,sBAAsB;iDAAA;AAGnC;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC7C,mBAAmB;8CAAA;AAG7B;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC7C,gBAAgB;2CAAA;AAGvB;IADC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACX;wBAlDJ,aAAa;IADzB,IAAA,wBAAS,GAAE;GACC,aAAa,CAmDzB;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAY;CAMxB,CAAA;AANY,oCAAY;AAEvB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,mBAAQ,CAAC,CAAC;;2CACT;AAGjB;IADC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAG,CAAC;;2CACN;uBALF,YAAY;IADxB,IAAA,yBAAU,GAAE;GACA,YAAY,CAMxB","sourcesContent":["import type { FileUpload } from 'graphql-upload/GraphQLUpload.js'\nimport GraphQLUpload from 'graphql-upload/GraphQLUpload.js'\nimport { ObjectType, Field, InputType, Int, ID, registerEnumType } from 'type-graphql'\nimport { GraphQLEmailAddress } from 'graphql-scalars'\n\nimport { ObjectRef, ScalarObject } from '@things-factory/shell'\n\nimport { Employee, EmployeeType } from './employee'\n\n@InputType()\nexport class ObjectRefForEmployee extends ObjectRef {\n @Field({ nullable: true })\n controlNo?: string\n\n @Field(type => EmployeeType, { nullable: true })\n type?: EmployeeType\n\n @Field({ nullable: true })\n alias?: string\n\n @Field({ nullable: true })\n photo?: string\n\n @Field(type => GraphQLEmailAddress, { nullable: true })\n email?: string\n\n @Field({ nullable: true })\n jobPosition?: string\n\n @Field({ nullable: true })\n jobResponsibility?: string\n\n @Field({ nullable: true })\n hiredOn?: string\n\n @Field({ nullable: true })\n active?: boolean\n}\n\n@InputType()\nexport class ObjectRefForContact extends ObjectRef {\n @Field(type => GraphQLEmailAddress, { nullable: true })\n email?: string\n\n @Field({ nullable: true })\n phone?: string\n\n @Field({ nullable: true })\n address?: string\n}\n\n@InputType()\nexport class ObjectRefForDepartment extends ObjectRef {\n @Field({ nullable: true })\n controlNo?: string\n}\n\n@InputType()\nexport class ObjectRefForUser extends ObjectRef {\n @Field(type => GraphQLEmailAddress, { nullable: true })\n email?: string\n}\n\n@InputType()\nexport class NewEmployee {\n @Field()\n controlNo: string\n\n @Field()\n name: string\n\n @Field({ nullable: true })\n alias?: string\n\n @Field({ nullable: true })\n jobResponsibility?: string\n\n @Field({ nullable: true })\n jobPosition?: string\n\n @Field(type => EmployeeType, { nullable: true })\n type?: EmployeeType\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n extension?: string\n\n @Field({ nullable: true })\n hiredOn?: string\n\n @Field({ nullable: true })\n retiredAt?: string\n\n @Field(type => GraphQLUpload, { nullable: true })\n photo?: FileUpload\n\n @Field({ nullable: true })\n note?: string\n\n @Field(type => ObjectRefForEmployee, { nullable: true })\n supervisor?: ObjectRefForEmployee\n\n @Field(type => ObjectRefForDepartment, { nullable: true })\n department?: ObjectRefForDepartment\n\n @Field(type => ObjectRefForContact, { nullable: true })\n contact?: ObjectRefForContact\n\n @Field(type => ObjectRefForUser, { nullable: true })\n user?: ObjectRefForUser\n}\n\n@InputType()\nexport class EmployeePatch {\n @Field(type => ID, { nullable: true })\n id?: string\n\n @Field({ nullable: true })\n controlNo?: string\n\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n alias?: string\n\n @Field({ nullable: true })\n jobResponsibility?: string\n\n @Field({ nullable: true })\n jobPosition?: string\n\n @Field(type => EmployeeType, { nullable: true })\n type?: EmployeeType\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n hiredOn?: string\n\n @Field({ nullable: true })\n retiredAt?: string\n\n @Field(type => GraphQLUpload, { nullable: true })\n photo?: FileUpload\n\n @Field({ nullable: true })\n note?: string\n\n @Field(type => ObjectRefForEmployee, { nullable: true })\n supervisor?: ObjectRefForEmployee\n\n @Field(type => ObjectRefForDepartment, { nullable: true })\n department?: ObjectRefForDepartment\n\n @Field(type => ObjectRefForContact, { nullable: true })\n contact?: ObjectRefForContact\n\n @Field(type => ObjectRefForUser, { nullable: true })\n user?: ObjectRefForUser\n\n @Field({ nullable: true })\n cuFlag?: string\n}\n\n@ObjectType()\nexport class EmployeeList {\n @Field(type => [Employee])\n items: Employee[]\n\n @Field(type => Int)\n total: number\n}\n"]}