@hatiolab/things-scene 9.0.0-beta.3 → 9.0.0-beta.30

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/.cursorignore ADDED
@@ -0,0 +1,62 @@
1
+ # build
2
+ _site/
3
+ dist/
4
+ out-tsc/
5
+
6
+ ## npm
7
+ node_modules/
8
+ npm-debug.log
9
+
10
+ logs/
11
+ uploads/
12
+ attachments/
13
+ extensions/
14
+ *.sqlite
15
+ *.sql
16
+ yarn*.*
17
+ package-lock.json
18
+
19
+ ## system files
20
+ .DS_Store
21
+
22
+ ## editors
23
+ .idea
24
+ .vscode
25
+
26
+ platforms
27
+
28
+ ## temp folders
29
+ .tmp/
30
+
31
+ ## testing
32
+ coverage/
33
+
34
+ *.log
35
+ config.*.js
36
+ config.*.json
37
+ !**/config/config.*.js
38
+ !**/installer/config.*.js
39
+
40
+ # Built style type definitions
41
+ *.scss.d.ts
42
+ *.graphql.d.ts
43
+
44
+ # Directory for instrumented libs generated by jscoverage/JSCover
45
+ lib-cov
46
+
47
+ # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
48
+ .grunt
49
+
50
+ # node-waf configuration
51
+ .lock-wscript
52
+
53
+ tmp
54
+ *.tsbuildinfo
55
+
56
+ # Compiled binary addons (http://nodejs.org/api/addons.html)
57
+ build/Release
58
+
59
+ storybook-static
60
+ custom-elements.json
61
+
62
+ .rollup.cache
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.3",
3
+ "version": "9.0.0-beta.30",
4
4
  "description": "2D graphic library",
5
5
  "main": "src/index.js",
6
6
  "module": "things-scene.mjs",
@@ -28,6 +28,7 @@
28
28
  "serve:dev": "things-factory-dev",
29
29
  "serve:simple-http-server": "webpack-dev-server --config webpack.config.dev.js --hot --inline --host 0.0.0.0",
30
30
  "build": "webpack && rollup -c",
31
+ "build:clean": "rm yarn.lock || echo 'yarn.lock not found.' && yarn install && yarn build",
31
32
  "build:client": "npm run clean:client && webpack --config node_modules/@things-factory/shell/webpack.config.js",
32
33
  "clean:client": "rm -rf dist-client",
33
34
  "prepublish": "webpack && rollup -c",
@@ -80,6 +81,7 @@
80
81
  },
81
82
  "homepage": "https://github.com/hatiolab/things-scene#readme",
82
83
  "dependencies": {
84
+ "@material/web": "^2.2.0",
83
85
  "@wizpanda/super-gif": "^0.0.6",
84
86
  "canvas-roundrect-polyfill": "^0.0.1",
85
87
  "core-js": "^3.26.0",
package/schema.graphql CHANGED
@@ -712,9 +712,35 @@ input DomainGeneratorInput {
712
712
 
713
713
  input DomainInput {
714
714
  description: String
715
+ extType: String
715
716
  name: String!
716
717
  }
717
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
+
718
744
  type DomainList {
719
745
  items: [Domain!]
720
746
  total: Int
@@ -726,6 +752,7 @@ input DomainPatch {
726
752
  brandName: String
727
753
  contentImage: String
728
754
  description: String
755
+ extType: String
729
756
  id: String
730
757
  name: String
731
758
  owner: String
@@ -1571,6 +1598,9 @@ type Mutation {
1571
1598
  """To create domain (Only superuser is granted this privilege.)"""
1572
1599
  createDomain(domainInput: DomainPatch!): Domain!
1573
1600
 
1601
+ """To create new DomainLink"""
1602
+ createDomainLink(domainLink: NewDomainLink!): DomainLink!
1603
+
1574
1604
  """
1575
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.
1576
1606
  """
@@ -1730,6 +1760,12 @@ type Mutation {
1730
1760
  """To delete domain (Only superuser is granted this privilege.)"""
1731
1761
  deleteDomain(name: String!): Domain!
1732
1762
 
1763
+ """To delete DomainLink"""
1764
+ deleteDomainLink(id: String!): Boolean!
1765
+
1766
+ """To delete multiple DomainLinks"""
1767
+ deleteDomainLinks(ids: [String!]!): Boolean!
1768
+
1733
1769
  """To delete domain user"""
1734
1770
  deleteDomainUser(username: String!): Boolean!
1735
1771
 
@@ -2145,6 +2181,9 @@ type Mutation {
2145
2181
  """To update domain (Only superuser is granted this privilege.)"""
2146
2182
  updateDomain(name: String!, patch: DomainPatch!): Domain!
2147
2183
 
2184
+ """To modify DomainLink information"""
2185
+ updateDomainLink(id: String!, patch: DomainLinkPatch!): DomainLink!
2186
+
2148
2187
  """To update multiple domains (Only superuser is granted this privilege.)"""
2149
2188
  updateDomains(patches: [DomainPatch!]!): Boolean!
2150
2189
 
@@ -2205,6 +2244,9 @@ type Mutation {
2205
2244
  """To modify multiple Departments' information"""
2206
2245
  updateMultipleDepartment(patches: [DepartmentPatch!]!): [Department!]!
2207
2246
 
2247
+ """To modify multiple DomainLinks' information"""
2248
+ updateMultipleDomainLink(patches: [DomainLinkPatch!]!): [DomainLink!]!
2249
+
2208
2250
  """
2209
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".
2210
2252
  """
@@ -2457,6 +2499,12 @@ input NewDepartment {
2457
2499
  picture: Upload
2458
2500
  }
2459
2501
 
2502
+ input NewDomainLink {
2503
+ sourceDomain: ObjectRef!
2504
+ targetDomain: ObjectRef!
2505
+ type: String!
2506
+ }
2507
+
2460
2508
  input NewEmployee {
2461
2509
  active: Boolean
2462
2510
  alias: String
@@ -3646,6 +3694,12 @@ type Query {
3646
3694
  """To fetch domain"""
3647
3695
  domain(id: String!): Domain!
3648
3696
 
3697
+ """To fetch multiple DomainLinks"""
3698
+ domainLinks(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainLinkList!
3699
+
3700
+ """To fetch domain"""
3701
+ domainTypes: [String!]!
3702
+
3649
3703
  """To fetch all domains (Only superuser is granted this privilege.)"""
3650
3704
  domains(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): DomainList!
3651
3705