@things-factory/operato-board 6.1.21 → 6.1.23

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 (2) hide show
  1. package/package.json +34 -34
  2. package/schema.gql +620 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-board",
3
- "version": "6.1.21",
3
+ "version": "6.1.23",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -80,41 +80,41 @@
80
80
  "@operato/shell": "^1.0.1",
81
81
  "@operato/styles": "^1.0.0",
82
82
  "@operato/utils": "^1.0.1",
83
- "@things-factory/apptool-ui": "^6.1.18",
84
- "@things-factory/auth-ui": "^6.1.18",
85
- "@things-factory/board-service": "^6.1.18",
86
- "@things-factory/board-ui": "^6.1.18",
87
- "@things-factory/context-ui": "^6.1.18",
88
- "@things-factory/export-ui": "^6.1.18",
89
- "@things-factory/fav-base": "^6.1.18",
90
- "@things-factory/font-base": "^6.1.18",
91
- "@things-factory/form-ui": "^6.1.18",
92
- "@things-factory/help": "^6.1.18",
93
- "@things-factory/i18n-base": "^6.1.18",
94
- "@things-factory/import-ui": "^6.1.18",
95
- "@things-factory/integration-base": "^6.1.21",
96
- "@things-factory/integration-msgraph": "^6.1.21",
97
- "@things-factory/integration-notification": "^6.1.21",
98
- "@things-factory/integration-openai": "^6.1.21",
99
- "@things-factory/integration-ui": "^6.1.21",
100
- "@things-factory/layout-ui": "^6.1.18",
101
- "@things-factory/more-ui": "^6.1.18",
102
- "@things-factory/notification": "^6.1.18",
103
- "@things-factory/oauth2-client": "^6.1.18",
104
- "@things-factory/offline-ui": "^6.1.18",
83
+ "@things-factory/apptool-ui": "^6.1.23",
84
+ "@things-factory/auth-ui": "^6.1.23",
85
+ "@things-factory/board-service": "^6.1.23",
86
+ "@things-factory/board-ui": "^6.1.23",
87
+ "@things-factory/context-ui": "^6.1.23",
88
+ "@things-factory/export-ui": "^6.1.23",
89
+ "@things-factory/fav-base": "^6.1.23",
90
+ "@things-factory/font-base": "^6.1.23",
91
+ "@things-factory/form-ui": "^6.1.23",
92
+ "@things-factory/help": "^6.1.23",
93
+ "@things-factory/i18n-base": "^6.1.23",
94
+ "@things-factory/import-ui": "^6.1.23",
95
+ "@things-factory/integration-base": "^6.1.23",
96
+ "@things-factory/integration-msgraph": "^6.1.23",
97
+ "@things-factory/integration-notification": "^6.1.23",
98
+ "@things-factory/integration-openai": "^6.1.23",
99
+ "@things-factory/integration-ui": "^6.1.23",
100
+ "@things-factory/layout-ui": "^6.1.23",
101
+ "@things-factory/more-ui": "^6.1.23",
102
+ "@things-factory/notification": "^6.1.23",
103
+ "@things-factory/oauth2-client": "^6.1.23",
104
+ "@things-factory/offline-ui": "^6.1.23",
105
105
  "@things-factory/operato-license-checker": "^3.1.0",
106
- "@things-factory/pdf": "^6.1.18",
107
- "@things-factory/print-service": "^6.1.18",
108
- "@things-factory/print-ui": "^6.1.18",
109
- "@things-factory/resource-ui": "^6.1.18",
110
- "@things-factory/scene-google-map": "^6.1.18",
111
- "@things-factory/setting-ui": "^6.1.20",
112
- "@things-factory/shell": "^6.1.18",
113
- "@things-factory/system-ui": "^6.1.18"
106
+ "@things-factory/pdf": "^6.1.23",
107
+ "@things-factory/print-service": "^6.1.23",
108
+ "@things-factory/print-ui": "^6.1.23",
109
+ "@things-factory/resource-ui": "^6.1.23",
110
+ "@things-factory/scene-google-map": "^6.1.23",
111
+ "@things-factory/setting-ui": "^6.1.23",
112
+ "@things-factory/shell": "^6.1.23",
113
+ "@things-factory/system-ui": "^6.1.23"
114
114
  },
115
115
  "devDependencies": {
116
- "@things-factory/board-test": "^6.1.18",
117
- "@things-factory/builder": "^6.1.18"
116
+ "@things-factory/board-test": "^6.1.23",
117
+ "@things-factory/builder": "^6.1.23"
118
118
  },
119
- "gitHead": "f7daba255a423d7a47f636a13e417750cbbaf232"
119
+ "gitHead": "125d105c9f2e7ab6f04b1549128635f747b719fa"
120
120
  }
package/schema.gql CHANGED
@@ -126,6 +126,64 @@ enum ApplicationType {
126
126
  XILNEX
127
127
  }
128
128
 
129
+ """Entity for ApprovalLine"""
130
+ type ApprovalLine {
131
+ createdAt: Timestamp
132
+ creator: User
133
+ description: String
134
+ domain: Domain
135
+ id: ID!
136
+ model: [ApprovalLineItem!]
137
+ name: String
138
+ owner: ApprovalLineOwner
139
+ ownerEmployee: Employee
140
+ ownerType: String
141
+ ownerValue: String
142
+ updatedAt: Timestamp
143
+ updater: User
144
+ }
145
+
146
+ """Entity for approval line item"""
147
+ type ApprovalLineItem {
148
+ approver: OrgMemberTarget
149
+ type: String
150
+ value: String
151
+ }
152
+
153
+ type ApprovalLineList {
154
+ items: [ApprovalLine!]!
155
+ total: Int!
156
+ }
157
+
158
+ type ApprovalLineOwner {
159
+ controlNo: String
160
+
161
+ """Field description"""
162
+ description: String
163
+
164
+ """Field id"""
165
+ id: ID!
166
+
167
+ """Field name"""
168
+ name: String
169
+ }
170
+
171
+ """type enumeration of a approvalLineOwner"""
172
+ enum ApprovalLineOwnerType {
173
+ Common
174
+ Employee
175
+ }
176
+
177
+ input ApprovalLinePatch {
178
+ cuFlag: String
179
+ description: String
180
+ id: ID
181
+ model: Object
182
+ name: String
183
+ owner: ObjectRefApprovalLineOwnerType
184
+ ownerType: ApprovalLineOwnerType
185
+ }
186
+
129
187
  type Attachment {
130
188
  category: String
131
189
  createdAt: Timestamp!
@@ -393,6 +451,57 @@ type ConnectorType {
393
451
  taskPrefixes: [String!]
394
452
  }
395
453
 
454
+ """Entity for Contact"""
455
+ type Contact {
456
+ address: String
457
+ company: String
458
+ createdAt: Timestamp
459
+ creator: User
460
+ deletedAt: Timestamp
461
+ department: String
462
+ domain: Domain
463
+ email: String
464
+ id: ID!
465
+ items: [ContactItem!]
466
+ name: String
467
+ note: String
468
+ phone: String
469
+ profile: Profile
470
+ updatedAt: Timestamp
471
+ updater: User
472
+ }
473
+
474
+ type ContactItem {
475
+ label: String!
476
+ type: String!
477
+ value: String!
478
+ }
479
+
480
+ input ContactItemPatch {
481
+ label: String!
482
+ type: String!
483
+ value: String!
484
+ }
485
+
486
+ type ContactList {
487
+ items: [Contact!]!
488
+ total: Int!
489
+ }
490
+
491
+ input ContactPatch {
492
+ address: String
493
+ company: String
494
+ cuFlag: String
495
+ department: String
496
+ email: String
497
+ id: ID
498
+ items: [ContactItemPatch!]
499
+ name: String
500
+ note: String
501
+ phone: String
502
+ profile: ProfileInput
503
+ }
504
+
396
505
  type Data {
397
506
  """Data delivered by subscription"""
398
507
  data: Object
@@ -407,6 +516,53 @@ type Data {
407
516
  """Date custom scalar type"""
408
517
  scalar Date
409
518
 
519
+ """Entity for Department"""
520
+ type Department {
521
+ active: Boolean
522
+ children: [Department!]!
523
+ controlNo: String!
524
+ createdAt: Timestamp
525
+ creator: User
526
+ deletedAt: Timestamp
527
+ description: String
528
+ domain: Domain
529
+ extension: String
530
+ id: ID!
531
+ manager: Employee
532
+ members: [Employee!]!
533
+ name: String
534
+ parent: Department
535
+ picture: String
536
+ state: String
537
+ updatedAt: Timestamp
538
+ updater: User
539
+ version: Float
540
+ }
541
+
542
+ type DepartmentList {
543
+ items: [Department!]!
544
+ total: Int!
545
+ }
546
+
547
+ input DepartmentPatch {
548
+ active: Boolean
549
+ controlNo: String
550
+ cuFlag: String
551
+ description: String
552
+ id: ID
553
+ manager: ObjectRefForEmployee
554
+ name: String
555
+ parent: ObjectRef
556
+ picture: Upload
557
+ state: DepartmentStatus
558
+ }
559
+
560
+ """state enumeration of a department"""
561
+ enum DepartmentStatus {
562
+ STATUS_A
563
+ STATUS_B
564
+ }
565
+
410
566
  type Domain {
411
567
  attributes: Object
412
568
  brandImage: String
@@ -465,6 +621,64 @@ input DomainUserRoleInput {
465
621
  users: [NewUserByDomainWizardInput!]!
466
622
  }
467
623
 
624
+ """Entity for Employee"""
625
+ type Employee {
626
+ active: Boolean
627
+ address: String!
628
+ approvalLines: [ApprovalLine!]!
629
+ contact: Contact
630
+ controlNo: String!
631
+ createdAt: Timestamp
632
+ creator: User
633
+ deletedAt: Timestamp
634
+ department: Department
635
+ domain: Domain
636
+ email: String
637
+ extension: String
638
+ hiredOn: String
639
+ id: ID!
640
+ manages: [Department!]!
641
+ name: String
642
+ note: String
643
+ phone: String
644
+ photo: String
645
+ profile: Profile
646
+ supervises: [Employee!]!
647
+ supervisor: Employee
648
+ type: String
649
+ updatedAt: Timestamp
650
+ updater: User
651
+ user: User
652
+ version: Float
653
+ }
654
+
655
+ type EmployeeList {
656
+ items: [Employee!]!
657
+ total: Int!
658
+ }
659
+
660
+ input EmployeePatch {
661
+ active: Boolean
662
+ controlNo: String
663
+ cuFlag: String
664
+ department: ObjectRef
665
+ hiredOn: String
666
+ id: ID
667
+ name: String
668
+ note: String
669
+ photo: Upload
670
+ supervisor: ObjectRefForEmployee
671
+ type: EmployeeType
672
+ user: ObjectRefForUser
673
+ }
674
+
675
+ """type enumeration of a employee"""
676
+ enum EmployeeType {
677
+ FULLTIME
678
+ PARTTIME
679
+ TEMPORARY
680
+ }
681
+
468
682
  """Entity for Entity"""
469
683
  type Entity {
470
684
  active: Boolean
@@ -1144,6 +1358,9 @@ input MenuPatch {
1144
1358
  type Mutation {
1145
1359
  """To activate user"""
1146
1360
  activateUser(userId: String!): Boolean!
1361
+
1362
+ """To attach a contact on Employee"""
1363
+ attachContact(contactId: String!, id: String!): Employee!
1147
1364
  cancelInvitation(email: String!, reference: String!, type: String!): Boolean!
1148
1365
 
1149
1366
  """To connect a connection"""
@@ -1157,6 +1374,9 @@ type Mutation {
1157
1374
 
1158
1375
  """To create new application"""
1159
1376
  createApplication(application: NewApplication!): Application!
1377
+
1378
+ """To create new ApprovalLine"""
1379
+ createApprovalLine(approvalLine: NewApprovalLine!): ApprovalLine!
1160
1380
  createAttachment(attachment: NewAttachment!): Attachment!
1161
1381
  createAttachments(attachments: [NewAttachment!]!): [Attachment!]!
1162
1382
 
@@ -1175,9 +1395,18 @@ type Mutation {
1175
1395
  """To create new connection"""
1176
1396
  createConnection(connection: NewConnection!): Connection!
1177
1397
 
1398
+ """To create new Contact"""
1399
+ createContact(contact: NewContact!): Contact!
1400
+
1401
+ """To create new Department"""
1402
+ createDepartment(department: NewDepartment!): Department!
1403
+
1178
1404
  """To create domain (Only superuser is granted this privilege.)"""
1179
1405
  createDomain(domainInput: DomainPatch!): Domain!
1180
1406
 
1407
+ """To create new Employee"""
1408
+ createEmployee(employee: NewEmployee!): Employee!
1409
+
1181
1410
  """To create new Entity"""
1182
1411
  createEntity(entity: NewEntity!): Entity!
1183
1412
 
@@ -1211,6 +1440,15 @@ type Mutation {
1211
1440
  """To create new MenuDetailColumn"""
1212
1441
  createMenuDetailColumn(menuDetailColumn: NewMenuDetailColumn!): MenuDetailColumn!
1213
1442
 
1443
+ """To create new ApprovalLine for current user"""
1444
+ createMyApprovalLine(approvalLine: NewApprovalLine!): ApprovalLine!
1445
+
1446
+ """To create new Notification"""
1447
+ createNotification(notification: NewNotification!): Notification!
1448
+
1449
+ """To create new NotificationRule"""
1450
+ createNotificationRule(notificationRule: NewNotificationRule!): NotificationRule!
1451
+
1214
1452
  """To create new Oauth2Client"""
1215
1453
  createOauth2Client(oauth2Client: NewOauth2Client!): Oauth2Client!
1216
1454
 
@@ -1244,6 +1482,12 @@ type Mutation {
1244
1482
 
1245
1483
  """To delete application"""
1246
1484
  deleteApplication(id: String!): Boolean!
1485
+
1486
+ """To delete ApprovalLine"""
1487
+ deleteApprovalLine(id: String!): Boolean!
1488
+
1489
+ """To delete multiple ApprovalLines"""
1490
+ deleteApprovalLines(ids: [String!]!): Boolean!
1247
1491
  deleteAttachment(id: String!): Boolean!
1248
1492
  deleteAttachmentsByRef(refBys: [String!]!): Boolean!
1249
1493
 
@@ -1274,6 +1518,18 @@ type Mutation {
1274
1518
  """To delete multiple connections"""
1275
1519
  deleteConnections(names: [String!]!): Boolean!
1276
1520
 
1521
+ """To delete Contact"""
1522
+ deleteContact(id: String!): Boolean!
1523
+
1524
+ """To delete multiple Contacts"""
1525
+ deleteContacts(ids: [String!]!): Boolean!
1526
+
1527
+ """To delete Department"""
1528
+ deleteDepartment(id: String!): Boolean!
1529
+
1530
+ """To delete multiple Departments"""
1531
+ deleteDepartments(ids: [String!]!): Boolean!
1532
+
1277
1533
  """To delete domain (Only superuser is granted this privilege.)"""
1278
1534
  deleteDomain(name: String!): Domain!
1279
1535
 
@@ -1283,6 +1539,12 @@ type Mutation {
1283
1539
  """To delete multiple domains (Only superuser is granted this privilege.)"""
1284
1540
  deleteDomains(names: [String!]!): Boolean!
1285
1541
 
1542
+ """To delete Employee"""
1543
+ deleteEmployee(id: String!): Boolean!
1544
+
1545
+ """To delete multiple Employees"""
1546
+ deleteEmployees(ids: [String!]!): Boolean!
1547
+
1286
1548
  """To delete multiple Entities"""
1287
1549
  deleteEntities(ids: [String!]!): Boolean!
1288
1550
 
@@ -1340,6 +1602,24 @@ type Mutation {
1340
1602
  """To delete multiple Menus"""
1341
1603
  deleteMenus(ids: [String!]!): Boolean!
1342
1604
 
1605
+ """To delete ApprovalLine for current user"""
1606
+ deleteMyApprovalLine(id: String!): Boolean!
1607
+
1608
+ """To delete multiple ApprovalLines for current user"""
1609
+ deleteMyApprovalLines(ids: [String!]!): Boolean!
1610
+
1611
+ """To delete Notification"""
1612
+ deleteNotification(id: String!): Boolean!
1613
+
1614
+ """To delete NotificationRule"""
1615
+ deleteNotificationRule(id: String!): Boolean!
1616
+
1617
+ """To delete multiple NotificationRules"""
1618
+ deleteNotificationRules(ids: [String!]!): Boolean!
1619
+
1620
+ """To delete multiple Notificationes"""
1621
+ deleteNotificationes(ids: [String!]!): Boolean!
1622
+
1343
1623
  """To delete Oauth2Client"""
1344
1624
  deleteOauth2Client(id: String!): Boolean!
1345
1625
 
@@ -1394,6 +1674,9 @@ type Mutation {
1394
1674
  """To delete some users"""
1395
1675
  deleteUsers(emails: [String!]!): Boolean!
1396
1676
 
1677
+ """To detach a contact from Employee"""
1678
+ detachContact(id: String!): Employee!
1679
+
1397
1680
  """To disconnect a connection"""
1398
1681
  disconnectConnection(name: String!): Connection!
1399
1682
  domainRegister(domainInput: DomainGeneratorInput!): Domain!
@@ -1406,6 +1689,9 @@ type Mutation {
1406
1689
  getOauth2AuthUrl(id: String!): String!
1407
1690
  grantRoles(customerId: String!, roles: [RolePatch!]!): Boolean!
1408
1691
 
1692
+ """To import multiple ApprovalLines"""
1693
+ importApprovalLines(approvalLines: [ApprovalLinePatch!]!): Boolean!
1694
+
1409
1695
  """To import multiple AttributeSets"""
1410
1696
  importAttributeSets(attributes: [AttributeSetPatch!]!): Boolean!
1411
1697
 
@@ -1415,6 +1701,15 @@ type Mutation {
1415
1701
  """To import multiple CommonCodes"""
1416
1702
  importCommonCodes(commonCodes: [CommonCodePatch!]!): Boolean!
1417
1703
 
1704
+ """To import multiple Contacts"""
1705
+ importContacts(contacts: [ContactPatch!]!): Boolean!
1706
+
1707
+ """To import multiple Departments"""
1708
+ importDepartments(departments: [DepartmentPatch!]!): Boolean!
1709
+
1710
+ """To import multiple Employees"""
1711
+ importEmployees(employees: [EmployeePatch!]!): Boolean!
1712
+
1418
1713
  """To import multiple MenuButtons"""
1419
1714
  importMenuButtons(menuButtons: [MenuButtonPatch!]!): Boolean!
1420
1715
 
@@ -1433,6 +1728,9 @@ type Mutation {
1433
1728
  """To import multiple Menus"""
1434
1729
  importMenus(menus: [MenuPatch!]!): Boolean!
1435
1730
 
1731
+ """To import multiple NotificationRules"""
1732
+ importNotificationRules(notificationRules: [NotificationRulePatch!]!): Boolean!
1733
+
1436
1734
  """To import multiple Oauth2Clients"""
1437
1735
  importOauth2Clients(oauth2Clients: [Oauth2ClientPatch!]!): Boolean!
1438
1736
 
@@ -1495,6 +1793,9 @@ type Mutation {
1495
1793
  transferOwner(email: String!): Boolean!
1496
1794
  updateAppliance(id: String!, patch: AppliancePatch!): Appliance!
1497
1795
  updateApplication(id: String!, patch: ApplicationPatch!): Application!
1796
+
1797
+ """To modify ApprovalLine information"""
1798
+ updateApprovalLine(id: String!, patch: ApprovalLinePatch!): ApprovalLine!
1498
1799
  updateAttachment(id: String!, patch: AttachmentPatch!): Attachment!
1499
1800
 
1500
1801
  """To modify AttributeSet information"""
@@ -1512,12 +1813,21 @@ type Mutation {
1512
1813
  """To modify connection information"""
1513
1814
  updateConnection(name: String!, patch: ConnectionPatch!): Connection!
1514
1815
 
1816
+ """To modify Contact information"""
1817
+ updateContact(id: String!, patch: ContactPatch!): Contact!
1818
+
1819
+ """To modify Department information"""
1820
+ updateDepartment(id: String!, patch: DepartmentPatch!): Department!
1821
+
1515
1822
  """To update domain (Only superuser is granted this privilege.)"""
1516
1823
  updateDomain(name: String!, patch: DomainPatch!): Domain!
1517
1824
 
1518
1825
  """To update multiple domains"""
1519
1826
  updateDomains(patches: [DomainPatch!]!): Boolean!
1520
1827
 
1828
+ """To modify Employee information"""
1829
+ updateEmployee(id: String!, patch: EmployeePatch!): Employee!
1830
+
1521
1831
  """To modify Entity' information"""
1522
1832
  updateEntity(id: String!, patch: EntityPatch!): Entity!
1523
1833
 
@@ -1548,6 +1858,9 @@ type Mutation {
1548
1858
  """To modify MenuDetailColumn information"""
1549
1859
  updateMenuDetailColumn(id: String!, patch: MenuDetailColumnPatch!): MenuDetailColumn!
1550
1860
 
1861
+ """To modify multiple ApprovalLines' information"""
1862
+ updateMultipleApprovalLine(patches: [ApprovalLinePatch!]!): [ApprovalLine!]!
1863
+
1551
1864
  """To modify multiple AttributeSets' information"""
1552
1865
  updateMultipleAttributeSet(patches: [AttributeSetPatch!]!): [AttributeSet!]!
1553
1866
 
@@ -1560,6 +1873,15 @@ type Mutation {
1560
1873
  """To modify multiple connections' information"""
1561
1874
  updateMultipleConnection(patches: [ConnectionPatch!]!): [Connection!]!
1562
1875
 
1876
+ """To modify multiple Contacts' information"""
1877
+ updateMultipleContact(patches: [ContactPatch!]!): [Contact!]!
1878
+
1879
+ """To modify multiple Departments' information"""
1880
+ updateMultipleDepartment(patches: [DepartmentPatch!]!): [Department!]!
1881
+
1882
+ """To modify multiple Employees' information"""
1883
+ updateMultipleEmployee(patches: [EmployeePatch!]!): [Employee!]!
1884
+
1563
1885
  """To modify multiple Entitys' information"""
1564
1886
  updateMultipleEntity(patches: [EntityPatch!]!): [Entity!]!
1565
1887
 
@@ -1569,6 +1891,15 @@ type Mutation {
1569
1891
  """To modify multiple Menus' information"""
1570
1892
  updateMultipleMenu(patches: [MenuPatch!]!): [Menu!]!
1571
1893
 
1894
+ """To modify multiple ApprovalLines' information for current user"""
1895
+ updateMultipleMyApprovalLine(patches: [ApprovalLinePatch!]!): [ApprovalLine!]!
1896
+
1897
+ """To modify multiple Notificationes' information"""
1898
+ updateMultipleNotification(patches: [NotificationPatch!]!): [Notification!]!
1899
+
1900
+ """To modify multiple NotificationRules' information"""
1901
+ updateMultipleNotificationRule(patches: [NotificationRulePatch!]!): [NotificationRule!]!
1902
+
1572
1903
  """To modify multiple PartnerSettings' information"""
1573
1904
  updateMultiplePartnerSetting(patches: [PartnerSettingPatch!]!): [PartnerSetting!]!
1574
1905
 
@@ -1590,6 +1921,15 @@ type Mutation {
1590
1921
  """To modify multiple users information"""
1591
1922
  updateMultipleUser(patches: [UserPatch!]!): [User!]!
1592
1923
 
1924
+ """To modify ApprovalLine information for current user"""
1925
+ updateMyApprovalLine(id: String!, patch: ApprovalLinePatch!): ApprovalLine!
1926
+
1927
+ """To modify Notification information"""
1928
+ updateNotification(id: String!, patch: NotificationPatch!): Notification!
1929
+
1930
+ """To modify NotificationRule information"""
1931
+ updateNotificationRule(id: String!, patch: NotificationRulePatch!): NotificationRule!
1932
+
1593
1933
  """To modify Oauth2Client information"""
1594
1934
  updateOauth2Client(id: String!, patch: Oauth2ClientPatch!): Oauth2Client!
1595
1935
 
@@ -1647,6 +1987,14 @@ input NewApplication {
1647
1987
  webhook: String
1648
1988
  }
1649
1989
 
1990
+ input NewApprovalLine {
1991
+ description: String
1992
+ model: Object
1993
+ name: String!
1994
+ owner: ObjectRefApprovalLineOwnerType!
1995
+ ownerType: ApprovalLineOwnerType!
1996
+ }
1997
+
1650
1998
  input NewAttachment {
1651
1999
  category: String
1652
2000
  description: String
@@ -1691,6 +2039,44 @@ input NewConnection {
1691
2039
  type: String
1692
2040
  }
1693
2041
 
2042
+ input NewContact {
2043
+ address: String
2044
+ company: String
2045
+ department: String
2046
+ email: String
2047
+ items: [ContactItemPatch!]
2048
+ name: String!
2049
+ note: String
2050
+ phone: String
2051
+ profile: ProfileInput
2052
+ }
2053
+
2054
+ input NewDepartment {
2055
+ active: Boolean
2056
+ controlNo: String!
2057
+ description: String
2058
+ extension: String
2059
+ manager: ObjectRefForEmployee
2060
+ name: String!
2061
+ parent: ObjectRef
2062
+ picture: Upload
2063
+ state: DepartmentStatus
2064
+ }
2065
+
2066
+ input NewEmployee {
2067
+ active: Boolean
2068
+ controlNo: String!
2069
+ department: ObjectRef
2070
+ extension: String
2071
+ hiredOn: String
2072
+ name: String!
2073
+ note: String
2074
+ photo: Upload
2075
+ supervisor: ObjectRefForEmployee
2076
+ type: EmployeeType
2077
+ user: ObjectRefForUser
2078
+ }
2079
+
1694
2080
  input NewEntity {
1695
2081
  active: Boolean
1696
2082
  association: String
@@ -1908,6 +2294,29 @@ input NewMenuDetailColumn {
1908
2294
  virtualField: Boolean
1909
2295
  }
1910
2296
 
2297
+ input NewNotification {
2298
+ body: String
2299
+ image: String
2300
+ ownerId: String
2301
+ property: Object
2302
+ subject: String
2303
+ timestamp: Timestamp
2304
+ title: String
2305
+ type: String
2306
+ url: String
2307
+ }
2308
+
2309
+ input NewNotificationRule {
2310
+ active: Boolean
2311
+ body: String
2312
+ description: String
2313
+ name: String!
2314
+ state: NotificationRuleStatus
2315
+ thumbnail: Upload
2316
+ title: String
2317
+ url: String
2318
+ }
2319
+
1911
2320
  input NewOauth2Client {
1912
2321
  accessToken: String
1913
2322
  accessTokenUrl: String
@@ -1995,18 +2404,89 @@ input NewUserByDomainWizardInput {
1995
2404
  roles: [NewRole!]!
1996
2405
  }
1997
2406
 
2407
+ """Entity for Notification"""
1998
2408
  type Notification {
1999
- body: String!
2409
+ body: String
2410
+ createdAt: Timestamp
2411
+ creator: User
2000
2412
  domain: Domain
2413
+ id: ID!
2001
2414
  image: String
2002
- property: Any
2415
+ owner: User
2416
+ property: Object
2417
+ state: String
2003
2418
  subject: String
2004
2419
  timestamp: Date
2005
- title: String!
2420
+ title: String
2006
2421
  type: String
2422
+ updatedAt: Timestamp
2423
+ updater: User
2007
2424
  url: String
2008
2425
  }
2009
2426
 
2427
+ type NotificationList {
2428
+ items: [Notification!]!
2429
+ total: Int!
2430
+ }
2431
+
2432
+ input NotificationPatch {
2433
+ cuFlag: String
2434
+ id: ID
2435
+ state: NotificationStatus
2436
+ }
2437
+
2438
+ """Entity for NotificationRule"""
2439
+ type NotificationRule {
2440
+ body: String
2441
+ channels: String
2442
+ createdAt: Timestamp
2443
+ creator: User
2444
+ deletedAt: Timestamp
2445
+ description: String
2446
+ domain: Domain
2447
+ id: ID!
2448
+ name: String
2449
+
2450
+ """notification recipients."""
2451
+ recipients: [RecipientItem!]
2452
+ state: String
2453
+ thumbnail: String
2454
+ title: String
2455
+ updatedAt: Timestamp
2456
+ updater: User
2457
+ url: String
2458
+ version: Float
2459
+ }
2460
+
2461
+ type NotificationRuleList {
2462
+ items: [NotificationRule!]!
2463
+ total: Int!
2464
+ }
2465
+
2466
+ input NotificationRulePatch {
2467
+ body: String
2468
+ cuFlag: String
2469
+ description: String
2470
+ id: ID
2471
+ name: String
2472
+ state: NotificationRuleStatus
2473
+ thumbnail: Upload
2474
+ title: String
2475
+ url: String
2476
+ }
2477
+
2478
+ """state enumeration of a notificationRule"""
2479
+ enum NotificationRuleStatus {
2480
+ DRAFT
2481
+ RELEASED
2482
+ }
2483
+
2484
+ """state enumeration of a notification"""
2485
+ enum NotificationStatus {
2486
+ NOTREAD
2487
+ READ
2488
+ }
2489
+
2010
2490
  """Entity for Oauth2Client"""
2011
2491
  type Oauth2Client {
2012
2492
  accessToken: String
@@ -2078,6 +2558,69 @@ input ObjectRef {
2078
2558
  name: String
2079
2559
  }
2080
2560
 
2561
+ input ObjectRefApprovalLineOwnerType {
2562
+ controlNo: String
2563
+
2564
+ """Field description"""
2565
+ description: String
2566
+
2567
+ """Field id"""
2568
+ id: ID!
2569
+
2570
+ """Field name"""
2571
+ name: String
2572
+ }
2573
+
2574
+ input ObjectRefForEmployee {
2575
+ controlNo: String
2576
+
2577
+ """Field description"""
2578
+ description: String
2579
+ email: String
2580
+
2581
+ """Field id"""
2582
+ id: ID!
2583
+
2584
+ """Field name"""
2585
+ name: String
2586
+ photo: String
2587
+ }
2588
+
2589
+ input ObjectRefForUser {
2590
+ """Field description"""
2591
+ description: String
2592
+ email: String
2593
+
2594
+ """Field id"""
2595
+ id: ID!
2596
+
2597
+ """Field name"""
2598
+ name: String
2599
+ }
2600
+
2601
+ type OrgMemberTarget {
2602
+ controlNo: String
2603
+
2604
+ """Field description"""
2605
+ description: String
2606
+
2607
+ """Field id"""
2608
+ id: ID!
2609
+
2610
+ """Field name"""
2611
+ name: String
2612
+ }
2613
+
2614
+ """type enumeration of a approval line item"""
2615
+ enum OrgMemberTargetType {
2616
+ Department
2617
+ Employee
2618
+ MyDepartment
2619
+ MySupervisor
2620
+ Myself
2621
+ Role
2622
+ }
2623
+
2081
2624
  input Pagination {
2082
2625
  limit: Int
2083
2626
  page: Int
@@ -2212,6 +2755,23 @@ input PrivilegePatch {
2212
2755
  roles: [ObjectRef!]
2213
2756
  }
2214
2757
 
2758
+ """Object type for Profile"""
2759
+ type Profile {
2760
+ left: Float
2761
+ picture: String
2762
+ top: Float
2763
+ zoom: Float
2764
+ }
2765
+
2766
+ """Input type for Profile"""
2767
+ input ProfileInput {
2768
+ file: Upload
2769
+ left: Float
2770
+ picture: String
2771
+ top: Float
2772
+ zoom: Float
2773
+ }
2774
+
2215
2775
  type PropertySpec {
2216
2776
  label: String!
2217
2777
  name: String!
@@ -2236,6 +2796,15 @@ type Query {
2236
2796
 
2237
2797
  """To fetch multiple application"""
2238
2798
  applications(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ApplicationList!
2799
+
2800
+ """To fetch a approval line"""
2801
+ approvalLine(id: String!): ApprovalLine
2802
+
2803
+ """To fetch referable approval lines for the user"""
2804
+ approvalLineReferences(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ApprovalLineList!
2805
+
2806
+ """To fetch multiple approval lines"""
2807
+ approvalLines(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ApprovalLineList!
2239
2808
  attachment(id: String!): Attachment!
2240
2809
  attachments(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): AttachmentList!
2241
2810
 
@@ -2279,6 +2848,9 @@ type Query {
2279
2848
  """..."""
2280
2849
  checkUserExistence(email: String!): Boolean!
2281
2850
 
2851
+ """To fetch common approval lines"""
2852
+ commonApprovalLines(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ApprovalLineList!
2853
+
2282
2854
  """To fetch a CommonCode"""
2283
2855
  commonCode(name: String!): CommonCode
2284
2856
 
@@ -2302,16 +2874,37 @@ type Query {
2302
2874
 
2303
2875
  """To fetch multiple connector"""
2304
2876
  connectors: ConnectorList!
2877
+
2878
+ """To fetch a Contact"""
2879
+ contact(id: String!): Contact
2880
+
2881
+ """To fetch multiple Contacts"""
2882
+ contacts(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ContactList!
2305
2883
  customers: [Domain!]!
2306
2884
  decipherCode(input: CodeDecipherInput!): CodeDecipherOutput!
2307
2885
  decipherErrorCode(input: CodeDecipherInput!): CodeDecipherOutput!
2308
2886
 
2887
+ """To fetch a Department"""
2888
+ department(id: String!): Department
2889
+
2890
+ """To fetch a Root Department"""
2891
+ departmentRoot: Department
2892
+
2893
+ """To fetch multiple Departments"""
2894
+ departments(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DepartmentList!
2895
+
2309
2896
  """To fetch domain"""
2310
2897
  domain(id: String!): Domain!
2311
2898
 
2312
2899
  """To fetch all domains (Only superuser is granted this privilege.)"""
2313
2900
  domains(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainList!
2314
2901
 
2902
+ """To fetch a Employee"""
2903
+ employee(id: String!): Employee
2904
+
2905
+ """To fetch multiple Employees"""
2906
+ employees(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): EmployeeList!
2907
+
2315
2908
  """To fetch multiple Entities"""
2316
2909
  entities(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): EntityList!
2317
2910
 
@@ -2399,13 +2992,31 @@ type Query {
2399
2992
  """To fetch multiple Menus"""
2400
2993
  menus(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): MenuList!
2401
2994
 
2995
+ """To fetch approval lines only for to the user"""
2996
+ myApprovalLines(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ApprovalLineList!
2997
+
2402
2998
  """To fetch current user's Favorites"""
2403
2999
  myFavorites: [Favorite!]!
2404
3000
  myLoginHistories(limit: Float!): [LoginHistory!]!
2405
3001
 
3002
+ """To fetch my notifications"""
3003
+ myNotifications(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): NotificationList!
3004
+
2406
3005
  """To fetch roles of current user"""
2407
3006
  myRoles: [Role!]!
2408
3007
 
3008
+ """To fetch a Notification"""
3009
+ notification(id: String!): Notification
3010
+
3011
+ """To fetch a NotificationRule"""
3012
+ notificationRule(id: String!): NotificationRule
3013
+
3014
+ """To fetch multiple NotificationRules"""
3015
+ notificationRules(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): NotificationRuleList!
3016
+
3017
+ """To fetch multiple Notificationes"""
3018
+ notificationes(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): NotificationList!
3019
+
2409
3020
  """To fetch a Oauth2Client"""
2410
3021
  oauth2Client(id: String!): Oauth2Client
2411
3022
 
@@ -2506,6 +3117,12 @@ type Query {
2506
3117
  vendors: [Domain!]!
2507
3118
  }
2508
3119
 
3120
+ type RecipientItem {
3121
+ recipient: OrgMemberTarget
3122
+ type: OrgMemberTargetType
3123
+ value: String
3124
+ }
3125
+
2509
3126
  type Role {
2510
3127
  createdAt: Timestamp
2511
3128
  creator: User