@hatiolab/things-scene 9.0.0-beta.23 → 9.0.0-beta.25

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/db.sqlite CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatiolab/things-scene",
3
- "version": "9.0.0-beta.23",
3
+ "version": "9.0.0-beta.25",
4
4
  "description": "2D graphic library",
5
5
  "main": "src/index.js",
6
6
  "module": "things-scene.mjs",
package/schema.graphql CHANGED
@@ -716,6 +716,31 @@ input DomainInput {
716
716
  name: String!
717
717
  }
718
718
 
719
+ """Entity for DomainLink representing a connection between two domains"""
720
+ type DomainLink {
721
+ createdAt: DateTimeISO!
722
+ creator: User
723
+ id: ID!
724
+ sourceDomain: Domain!
725
+ targetDomain: Domain!
726
+ type: String!
727
+ updatedAt: DateTimeISO!
728
+ updater: User
729
+ }
730
+
731
+ type DomainLinkList {
732
+ items: [DomainLink!]!
733
+ total: Int!
734
+ }
735
+
736
+ input DomainLinkPatch {
737
+ cuFlag: String
738
+ id: ID!
739
+ sourceDomain: ObjectRef
740
+ targetDomain: ObjectRef
741
+ type: String
742
+ }
743
+
719
744
  type DomainList {
720
745
  items: [Domain!]
721
746
  total: Int
@@ -1573,6 +1598,9 @@ type Mutation {
1573
1598
  """To create domain (Only superuser is granted this privilege.)"""
1574
1599
  createDomain(domainInput: DomainPatch!): Domain!
1575
1600
 
1601
+ """To create new DomainLink"""
1602
+ createDomainLink(domainLink: NewDomainLink!): DomainLink!
1603
+
1576
1604
  """
1577
1605
  Creates a new employee record with the provided details. Optionally associates the employee with a supervisor, department, and system user. If a photo is provided, it will be attached to the employee record.
1578
1606
  """
@@ -1732,6 +1760,12 @@ type Mutation {
1732
1760
  """To delete domain (Only superuser is granted this privilege.)"""
1733
1761
  deleteDomain(name: String!): Domain!
1734
1762
 
1763
+ """To delete DomainLink"""
1764
+ deleteDomainLink(id: String!): Boolean!
1765
+
1766
+ """To delete multiple DomainLinks"""
1767
+ deleteDomainLinks(ids: [String!]!): Boolean!
1768
+
1735
1769
  """To delete domain user"""
1736
1770
  deleteDomainUser(username: String!): Boolean!
1737
1771
 
@@ -2147,6 +2181,9 @@ type Mutation {
2147
2181
  """To update domain (Only superuser is granted this privilege.)"""
2148
2182
  updateDomain(name: String!, patch: DomainPatch!): Domain!
2149
2183
 
2184
+ """To modify DomainLink information"""
2185
+ updateDomainLink(id: String!, patch: DomainLinkPatch!): DomainLink!
2186
+
2150
2187
  """To update multiple domains (Only superuser is granted this privilege.)"""
2151
2188
  updateDomains(patches: [DomainPatch!]!): Boolean!
2152
2189
 
@@ -2207,6 +2244,9 @@ type Mutation {
2207
2244
  """To modify multiple Departments' information"""
2208
2245
  updateMultipleDepartment(patches: [DepartmentPatch!]!): [Department!]!
2209
2246
 
2247
+ """To modify multiple DomainLinks' information"""
2248
+ updateMultipleDomainLink(patches: [DomainLinkPatch!]!): [DomainLink!]!
2249
+
2210
2250
  """
2211
2251
  Updates or creates multiple employee records based on the provided patches. New employees are created if the "cuFlag" is "+", and existing employees are updated if the "cuFlag" is "M".
2212
2252
  """
@@ -2459,6 +2499,12 @@ input NewDepartment {
2459
2499
  picture: Upload
2460
2500
  }
2461
2501
 
2502
+ input NewDomainLink {
2503
+ sourceDomain: ObjectRef!
2504
+ targetDomain: ObjectRef!
2505
+ type: String!
2506
+ }
2507
+
2462
2508
  input NewEmployee {
2463
2509
  active: Boolean
2464
2510
  alias: String
@@ -3648,6 +3694,9 @@ type Query {
3648
3694
  """To fetch domain"""
3649
3695
  domain(id: String!): Domain!
3650
3696
 
3697
+ """To fetch multiple DomainLinks"""
3698
+ domainLinks(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainLinkList!
3699
+
3651
3700
  """To fetch domain"""
3652
3701
  domainTypes: [String!]!
3653
3702