@things-factory/operato-board 9.0.0-beta.7 → 9.0.0-beta.9

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