@things-factory/operato-board 9.0.0-beta.2 → 9.0.0-beta.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-board",
3
- "version": "9.0.0-beta.2",
3
+ "version": "9.0.0-beta.21",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -91,46 +91,46 @@
91
91
  "@operato/shell": "^9.0.0-beta",
92
92
  "@operato/styles": "^9.0.0-beta",
93
93
  "@operato/utils": "^9.0.0-beta",
94
- "@things-factory/apptool-ui": "^9.0.0-beta.0",
95
- "@things-factory/auth-azure-ad": "^9.0.0-beta.0",
96
- "@things-factory/auth-google": "^9.0.0-beta.0",
97
- "@things-factory/auth-ui": "^9.0.0-beta.0",
98
- "@things-factory/board-service": "^9.0.0-beta.0",
99
- "@things-factory/board-ui": "^9.0.0-beta.0",
100
- "@things-factory/context-ui": "^9.0.0-beta.0",
101
- "@things-factory/evaluation": "^9.0.0-beta.0",
102
- "@things-factory/export-ui": "^9.0.0-beta.0",
103
- "@things-factory/fav-base": "^9.0.0-beta.0",
104
- "@things-factory/font-base": "^9.0.0-beta.0",
94
+ "@things-factory/apptool-ui": "^9.0.0-beta.21",
95
+ "@things-factory/auth-azure-ad": "^9.0.0-beta.21",
96
+ "@things-factory/auth-google": "^9.0.0-beta.21",
97
+ "@things-factory/auth-ui": "^9.0.0-beta.21",
98
+ "@things-factory/board-service": "^9.0.0-beta.21",
99
+ "@things-factory/board-ui": "^9.0.0-beta.21",
100
+ "@things-factory/context-ui": "^9.0.0-beta.21",
101
+ "@things-factory/evaluation": "^9.0.0-beta.21",
102
+ "@things-factory/export-ui": "^9.0.0-beta.21",
103
+ "@things-factory/fav-base": "^9.0.0-beta.21",
104
+ "@things-factory/font-base": "^9.0.0-beta.21",
105
105
  "@things-factory/form-ui": "^9.0.0-beta.0",
106
- "@things-factory/help": "^9.0.0-beta.0",
107
- "@things-factory/i18n-base": "^9.0.0-beta.0",
108
- "@things-factory/import-ui": "^9.0.0-beta.0",
109
- "@things-factory/integration-base": "^9.0.0-beta.0",
110
- "@things-factory/integration-email": "^9.0.0-beta.0",
111
- "@things-factory/integration-influxdb": "^9.0.0-beta.0",
112
- "@things-factory/integration-msgraph": "^9.0.0-beta.0",
113
- "@things-factory/integration-notification": "^9.0.0-beta.0",
114
- "@things-factory/integration-openai": "^9.0.0-beta.0",
115
- "@things-factory/integration-ui": "^9.0.0-beta.0",
116
- "@things-factory/more-ui": "^9.0.0-beta.0",
117
- "@things-factory/notification": "^9.0.0-beta.0",
118
- "@things-factory/oauth2-client": "^9.0.0-beta.0",
119
- "@things-factory/offline-ui": "^9.0.0-beta.0",
120
- "@things-factory/pdf": "^9.0.0-beta.0",
121
- "@things-factory/print-ui": "^9.0.0-beta.0",
122
- "@things-factory/resource-ui": "^9.0.0-beta.0",
123
- "@things-factory/scheduler": "^9.0.0-beta.0",
124
- "@things-factory/setting-ui": "^9.0.0-beta.2",
125
- "@things-factory/shell": "^9.0.0-beta.0",
126
- "@things-factory/system": "^9.0.0-beta.0"
106
+ "@things-factory/help": "^9.0.0-beta.21",
107
+ "@things-factory/i18n-base": "^9.0.0-beta.21",
108
+ "@things-factory/import-ui": "^9.0.0-beta.21",
109
+ "@things-factory/integration-base": "^9.0.0-beta.21",
110
+ "@things-factory/integration-email": "^9.0.0-beta.21",
111
+ "@things-factory/integration-influxdb": "^9.0.0-beta.21",
112
+ "@things-factory/integration-msgraph": "^9.0.0-beta.21",
113
+ "@things-factory/integration-notification": "^9.0.0-beta.21",
114
+ "@things-factory/integration-openai": "^9.0.0-beta.21",
115
+ "@things-factory/integration-ui": "^9.0.0-beta.21",
116
+ "@things-factory/more-ui": "^9.0.0-beta.21",
117
+ "@things-factory/notification": "^9.0.0-beta.21",
118
+ "@things-factory/oauth2-client": "^9.0.0-beta.21",
119
+ "@things-factory/offline-ui": "^9.0.0-beta.21",
120
+ "@things-factory/pdf": "^9.0.0-beta.21",
121
+ "@things-factory/print-ui": "^9.0.0-beta.21",
122
+ "@things-factory/resource-ui": "^9.0.0-beta.21",
123
+ "@things-factory/scheduler": "^9.0.0-beta.21",
124
+ "@things-factory/setting-ui": "^9.0.0-beta.21",
125
+ "@things-factory/shell": "^9.0.0-beta.21",
126
+ "@things-factory/system": "^9.0.0-beta.21"
127
127
  },
128
128
  "devDependencies": {
129
- "@things-factory/board-test": "^9.0.0-beta.0",
130
- "@things-factory/builder": "^8.0.0-beta.4"
129
+ "@things-factory/board-test": "^9.0.0-beta.21",
130
+ "@things-factory/builder": "^9.0.0-beta.19"
131
131
  },
132
132
  "resolutions": {
133
133
  "passport": "^0.7.0"
134
134
  },
135
- "gitHead": "fb5db4704bbf15d20b6be7f11093e3a99dc429f1"
135
+ "gitHead": "c06587776650048bf08e5507fe629627ea9bdf8a"
136
136
  }
package/schema.graphql CHANGED
@@ -40,6 +40,7 @@ type AppBinding {
40
40
  updatedAt: DateTimeISO
41
41
  updater: User!
42
42
  userType: String
43
+ username: String
43
44
  usersAuthProviders: [UsersAuthProviders!]
44
45
  }
45
46
 
@@ -711,6 +712,7 @@ input DomainGeneratorInput {
711
712
 
712
713
  input DomainInput {
713
714
  description: String
715
+ extType: String
714
716
  name: String!
715
717
  }
716
718
 
@@ -725,6 +727,7 @@ input DomainPatch {
725
727
  brandName: String
726
728
  contentImage: String
727
729
  description: String
730
+ extType: String
728
731
  id: String
729
732
  name: String
730
733
  owner: String
@@ -752,6 +755,8 @@ type Employee {
752
755
  address: String
753
756
  alias: String
754
757
  approvalLines: [ApprovalLine!]!
758
+ bankAccount: String
759
+ bankName: String
755
760
  contact: Contact
756
761
  controlNo: String!
757
762
  createdAt: DateTimeISO
@@ -760,8 +765,10 @@ type Employee {
760
765
  department: Department
761
766
  domain: Domain!
762
767
  email: EmailAddress
768
+ emergencyContact: String
769
+ emergencyContactPhone: String
763
770
  extension: String
764
- hiredOn: String
771
+ hiredOn: DateTimeISO
765
772
  id: ID!
766
773
  jobPosition: String
767
774
  jobResponsibility: String
@@ -771,7 +778,7 @@ type Employee {
771
778
  phone: String
772
779
  photo: String
773
780
  profile: Profile
774
- retiredAt: String
781
+ retiredOn: DateTimeISO
775
782
  supervises: [Employee!]!
776
783
  supervisor: Employee
777
784
  type: String
@@ -789,18 +796,22 @@ type EmployeeList {
789
796
  input EmployeePatch {
790
797
  active: Boolean
791
798
  alias: String
799
+ bankAccount: String
800
+ bankName: String
792
801
  contact: ObjectRefForContact
793
802
  controlNo: String
794
803
  cuFlag: String
795
804
  department: ObjectRefForDepartment
796
- hiredOn: String
805
+ emergencyContact: String
806
+ emergencyContactPhone: String
807
+ hiredOn: DateTimeISO
797
808
  id: ID
798
809
  jobPosition: String
799
810
  jobResponsibility: String
800
811
  name: String
801
812
  note: String
802
813
  photo: Upload
803
- retiredAt: String
814
+ retiredOn: DateTimeISO
804
815
  supervisor: ObjectRefForEmployee
805
816
  type: EmployeeType
806
817
  user: ObjectRefForUser
@@ -1165,7 +1176,6 @@ type Menu {
1165
1176
  name: String
1166
1177
  pagination: Boolean
1167
1178
  parent: Menu
1168
- privilege: PrivilegeObject
1169
1179
  rank: Float
1170
1180
  resourceId: String
1171
1181
  resourceName: String
@@ -1487,7 +1497,6 @@ input MenuPatch {
1487
1497
  name: String
1488
1498
  pagination: Boolean
1489
1499
  parent: ObjectRef
1490
- privilege: PrivilegeInput
1491
1500
  rank: Int
1492
1501
  resourceId: String
1493
1502
  resourceName: String
@@ -1503,7 +1512,7 @@ input MenuPatch {
1503
1512
 
1504
1513
  type Mutation {
1505
1514
  """To activate user"""
1506
- activateUser(userId: String!): Boolean!
1515
+ activateUser(username: String!): Boolean!
1507
1516
 
1508
1517
  """
1509
1518
  Attaches an existing contact to an employee. The contact is identified by its ID and the employee is identified by their ID.
@@ -1724,7 +1733,7 @@ type Mutation {
1724
1733
  deleteDomain(name: String!): Domain!
1725
1734
 
1726
1735
  """To delete domain user"""
1727
- deleteDomainUser(email: EmailAddress!): Boolean!
1736
+ deleteDomainUser(username: String!): Boolean!
1728
1737
 
1729
1738
  """To delete multiple domains (Only superuser is granted this privilege.)"""
1730
1739
  deleteDomains(names: [String!]!): Boolean!
@@ -1905,7 +1914,7 @@ type Mutation {
1905
1914
  deleteThemes(ids: [String!]!): Boolean!
1906
1915
 
1907
1916
  """To delete a user"""
1908
- deleteUser(email: EmailAddress!): Boolean!
1917
+ deleteUser(username: String!): Boolean!
1909
1918
 
1910
1919
  """To delete UserPreference"""
1911
1920
  deleteUserPreference(id: String!): Boolean!
@@ -1914,7 +1923,7 @@ type Mutation {
1914
1923
  deleteUserPreferences(ids: [String!]!): Boolean!
1915
1924
 
1916
1925
  """To delete some users"""
1917
- deleteUsers(emails: [String!]!): Boolean!
1926
+ deleteUsers(usernames: [String!]!): Boolean!
1918
1927
 
1919
1928
  """
1920
1929
  Detaches an existing contact from an employee. The employee is identified by their ID.
@@ -2008,11 +2017,11 @@ type Mutation {
2008
2017
  importThemes(themes: [ThemePatch!]!): Boolean!
2009
2018
 
2010
2019
  """To inactivate user"""
2011
- inactivateUser(userId: String!): Boolean!
2020
+ inactivateUser(username: String!): Boolean!
2012
2021
  inviteCustomer(customerDomainName: String!): Boolean!
2013
2022
 
2014
2023
  """To invite new user"""
2015
- inviteUser(email: EmailAddress!): Boolean!
2024
+ inviteUser(username: String!): Boolean!
2016
2025
 
2017
2026
  """To make the board to join the group"""
2018
2027
  joinGroup(boardIds: [String!]!, id: String!): Group!
@@ -2049,6 +2058,7 @@ type Mutation {
2049
2058
  """Employee Id"""
2050
2059
  employeeId: String!
2051
2060
  ): Boolean!
2061
+ registerSchedule(schedule: NewSchedule!): ID!
2052
2062
 
2053
2063
  """To release a Board"""
2054
2064
  releaseBoard(id: String!): Board!
@@ -2058,7 +2068,7 @@ type Mutation {
2058
2068
  reorderPlayGroup(boardIds: [String!]!, id: String!): PlayGroup!
2059
2069
 
2060
2070
  """To reset password to default"""
2061
- resetPasswordToDefault(userId: String!): Boolean!
2071
+ resetPasswordToDefault(username: String!): Boolean!
2062
2072
 
2063
2073
  """To revert Board version"""
2064
2074
  revertBoardVersion(id: String!, version: Float!): Board!
@@ -2098,7 +2108,8 @@ type Mutation {
2098
2108
  terminateContract(partnerName: String!): Boolean!
2099
2109
 
2100
2110
  """To transfer owner of domain"""
2101
- transferOwner(email: EmailAddress!): Boolean!
2111
+ transferOwner(username: String!): Boolean!
2112
+ unregisterSchedule(handle: ID!): Boolean!
2102
2113
  updateAppliance(id: String!, patch: AppliancePatch!): Appliance!
2103
2114
  updateApplication(id: String!, patch: ApplicationPatch!): Application!
2104
2115
 
@@ -2302,6 +2313,7 @@ type Mutation {
2302
2313
 
2303
2314
  """To modify scenario information"""
2304
2315
  updateScenario(name: String!, patch: ScenarioPatch!): Scenario!
2316
+ updateSchedule(schedule: SchedulePatch!): ID!
2305
2317
 
2306
2318
  """To update secure IP list for domain"""
2307
2319
  updateSecureIPList(iplist: Object!): Object
@@ -2328,7 +2340,7 @@ type Mutation {
2328
2340
  updateUserPreference(id: String!, patch: UserPreferencePatch!): UserPreference!
2329
2341
 
2330
2342
  """To update roles for a user"""
2331
- updateUserRoles(availableRoles: [ObjectRef!]!, selectedRoles: [ObjectRef!]!, userId: String!): User!
2343
+ updateUserRoles(availableRoles: [ObjectRef!]!, selectedRoles: [ObjectRef!]!, username: String!): User!
2332
2344
  }
2333
2345
 
2334
2346
  input NewAppliance {
@@ -2450,17 +2462,21 @@ input NewDepartment {
2450
2462
  input NewEmployee {
2451
2463
  active: Boolean
2452
2464
  alias: String
2465
+ bankAccount: String
2466
+ bankName: String
2453
2467
  contact: ObjectRefForContact
2454
2468
  controlNo: String!
2455
2469
  department: ObjectRefForDepartment
2470
+ emergencyContact: String
2471
+ emergencyContactPhone: String
2456
2472
  extension: String
2457
- hiredOn: String
2473
+ hiredOn: DateTimeISO
2458
2474
  jobPosition: String
2459
2475
  jobResponsibility: String
2460
2476
  name: String!
2461
2477
  note: String
2462
2478
  photo: Upload
2463
- retiredAt: String
2479
+ retiredOn: DateTimeISO
2464
2480
  supervisor: ObjectRefForEmployee
2465
2481
  type: EmployeeType
2466
2482
  user: ObjectRefForUser
@@ -2560,7 +2576,6 @@ input NewMenu {
2560
2576
  name: String!
2561
2577
  pagination: Boolean
2562
2578
  parent: ObjectRef
2563
- privilege: PrivilegeInput
2564
2579
  rank: Int
2565
2580
  resourceId: String
2566
2581
  resourceName: String
@@ -2803,13 +2818,22 @@ input NewScenario {
2803
2818
  active: Boolean
2804
2819
  description: String
2805
2820
  name: String!
2806
- privilege: PrivilegeInput
2821
+ role: ObjectRef
2807
2822
  schedule: String
2808
2823
  timezone: String
2809
2824
  ttl: Float
2810
2825
  type: String
2811
2826
  }
2812
2827
 
2828
+ input NewSchedule {
2829
+ client: ScheduleClientInput!
2830
+ name: String!
2831
+ schedule: String
2832
+ task: ScheduleTaskInput!
2833
+ timezone: String
2834
+ type: String!
2835
+ }
2836
+
2813
2837
  input NewSetting {
2814
2838
  category: String!
2815
2839
  description: String
@@ -2871,6 +2895,7 @@ input NewUser {
2871
2895
  password: String
2872
2896
  roles: [ObjectRef!]
2873
2897
  userType: String
2898
+ username: String!
2874
2899
  }
2875
2900
 
2876
2901
  input NewUserByDomainWizardInput {
@@ -3091,7 +3116,7 @@ input ObjectRefForEmployee {
3091
3116
  """Field description"""
3092
3117
  description: String
3093
3118
  email: EmailAddress
3094
- hiredOn: String
3119
+ hiredOn: DateTimeISO
3095
3120
 
3096
3121
  """Field id"""
3097
3122
  id: ID!
@@ -3428,13 +3453,6 @@ type Privilege {
3428
3453
  updater: User
3429
3454
  }
3430
3455
 
3431
- input PrivilegeInput {
3432
- category: String
3433
- owner: Boolean
3434
- privilege: String
3435
- super: Boolean
3436
- }
3437
-
3438
3456
  type PrivilegeList {
3439
3457
  items: [Privilege!]
3440
3458
  total: Int
@@ -3630,6 +3648,9 @@ type Query {
3630
3648
  """To fetch domain"""
3631
3649
  domain(id: String!): Domain!
3632
3650
 
3651
+ """To fetch domain"""
3652
+ domainTypes: [String!]!
3653
+
3633
3654
  """To fetch all domains (Only superuser is granted this privilege.)"""
3634
3655
  domains(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainList!
3635
3656
 
@@ -3865,6 +3886,10 @@ type Query {
3865
3886
 
3866
3887
  """To fetch multiple scenarios"""
3867
3888
  scenarios(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ScenarioList!
3889
+ schedule(id: ID!): Schedule
3890
+
3891
+ """To fetch multiple Schedules"""
3892
+ schedules(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): ScheduleList!
3868
3893
  searchCustomers(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainList!
3869
3894
 
3870
3895
  """To fetch domain"""
@@ -3985,6 +4010,7 @@ type Scenario {
3985
4010
  """accessible and executable system-wide"""
3986
4011
  public: Boolean
3987
4012
  publishTags: [Connection!]!
4013
+ role: Role
3988
4014
  schedule: String
3989
4015
  scheduleId: String
3990
4016
  state: String
@@ -4066,7 +4092,7 @@ input ScenarioPatch {
4066
4092
  description: String
4067
4093
  id: ID
4068
4094
  name: String
4069
- privilege: PrivilegeInput
4095
+ role: ObjectRef
4070
4096
  schedule: String
4071
4097
  steps: [StepPatch!]
4072
4098
  timezone: String
@@ -4079,6 +4105,81 @@ type ScenarioQueueState {
4079
4105
  queue: [PendingObject!]!
4080
4106
  }
4081
4107
 
4108
+ type Schedule {
4109
+ client: ScheduleClient!
4110
+ id: ID!
4111
+ name: String
4112
+ schedule: String
4113
+ task: ScheduleTask!
4114
+ timezone: String
4115
+ type: String!
4116
+ }
4117
+
4118
+ type ScheduleClient {
4119
+ application: String!
4120
+ group: String!
4121
+ key: String!
4122
+ operation: String!
4123
+ type: String!
4124
+ }
4125
+
4126
+ input ScheduleClientInput {
4127
+ application: String!
4128
+ group: String!
4129
+ key: String!
4130
+ operation: String!
4131
+ type: String!
4132
+ }
4133
+
4134
+ type ScheduleList {
4135
+ items: [Schedule!]!
4136
+ total: Int!
4137
+ }
4138
+
4139
+ input SchedulePatch {
4140
+ client: ScheduleClientInput!
4141
+ id: String
4142
+ name: String
4143
+ schedule: String
4144
+ task: ScheduleTaskInput!
4145
+ timezone: String
4146
+ type: String!
4147
+ }
4148
+
4149
+ type ScheduleTask {
4150
+ connection: ScheduleTaskConnection!
4151
+ data: Object!
4152
+ failed_policy: String!
4153
+ history_check: Boolean!
4154
+ max_retry_count: Int!
4155
+ retry_count: Int!
4156
+ retry_wait: Int!
4157
+ type: String!
4158
+ }
4159
+
4160
+ type ScheduleTaskConnection {
4161
+ headers: Object
4162
+ host: String
4163
+ topic: String
4164
+ }
4165
+
4166
+ input ScheduleTaskConnectionInput {
4167
+ headers: Object
4168
+ host: String
4169
+ topic: String
4170
+ }
4171
+
4172
+ input ScheduleTaskInput {
4173
+ connection: ScheduleTaskConnectionInput!
4174
+ data: Object!
4175
+ failed_policy: String!
4176
+ history_check: Boolean!
4177
+ max_retry_count: Int!
4178
+ retry_count: Int!
4179
+ retry_wait: Int!
4180
+ type: String!
4181
+ }
4182
+
4082
4183
  """Entity for Setting"""
4083
4184
  type Setting {
4084
4185
  category: String!
@@ -4381,6 +4482,7 @@ type User {
4381
4482
  updatedAt: DateTimeISO
4382
4483
  updater: User
4383
4484
  userType: String
4485
+ username: String
4384
4486
  usersAuthProviders: [UsersAuthProviders!]
4385
4487
  }
4386
4488