@things-factory/operato-board 6.0.111 → 6.0.114

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": "6.0.111",
3
+ "version": "6.0.114",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -79,40 +79,40 @@
79
79
  "@operato/shell": "^1.0.1",
80
80
  "@operato/styles": "^1.0.0",
81
81
  "@operato/utils": "^1.0.1",
82
- "@things-factory/apptool-ui": "^6.0.107",
83
- "@things-factory/auth-ui": "^6.0.107",
84
- "@things-factory/board-service": "^6.0.107",
85
- "@things-factory/board-ui": "^6.0.107",
86
- "@things-factory/context-ui": "^6.0.107",
87
- "@things-factory/export-ui": "^6.0.107",
88
- "@things-factory/fav-base": "^6.0.107",
89
- "@things-factory/font-base": "^6.0.107",
82
+ "@things-factory/apptool-ui": "^6.0.114",
83
+ "@things-factory/auth-ui": "^6.0.114",
84
+ "@things-factory/board-service": "^6.0.114",
85
+ "@things-factory/board-ui": "^6.0.114",
86
+ "@things-factory/context-ui": "^6.0.114",
87
+ "@things-factory/export-ui": "^6.0.114",
88
+ "@things-factory/fav-base": "^6.0.114",
89
+ "@things-factory/font-base": "^6.0.114",
90
90
  "@things-factory/form-ui": "^6.0.101",
91
- "@things-factory/help": "^6.0.107",
92
- "@things-factory/i18n-base": "^6.0.107",
93
- "@things-factory/import-ui": "^6.0.107",
94
- "@things-factory/integration-base": "^6.0.111",
95
- "@things-factory/integration-msgraph": "^6.0.111",
96
- "@things-factory/integration-notification": "^6.0.111",
97
- "@things-factory/integration-openai": "^6.0.111",
98
- "@things-factory/integration-ui": "^6.0.111",
91
+ "@things-factory/help": "^6.0.114",
92
+ "@things-factory/i18n-base": "^6.0.114",
93
+ "@things-factory/import-ui": "^6.0.114",
94
+ "@things-factory/integration-base": "^6.0.114",
95
+ "@things-factory/integration-msgraph": "^6.0.114",
96
+ "@things-factory/integration-notification": "^6.0.114",
97
+ "@things-factory/integration-openai": "^6.0.114",
98
+ "@things-factory/integration-ui": "^6.0.114",
99
99
  "@things-factory/layout-ui": "^6.0.101",
100
- "@things-factory/more-ui": "^6.0.107",
101
- "@things-factory/notification": "^6.0.107",
102
- "@things-factory/oauth2-client": "^6.0.107",
103
- "@things-factory/offline-ui": "^6.0.107",
100
+ "@things-factory/more-ui": "^6.0.114",
101
+ "@things-factory/notification": "^6.0.114",
102
+ "@things-factory/oauth2-client": "^6.0.114",
103
+ "@things-factory/offline-ui": "^6.0.114",
104
104
  "@things-factory/operato-license-checker": "^3.1.0",
105
105
  "@things-factory/pdf": "^6.0.101",
106
- "@things-factory/print-service": "^6.0.107",
107
- "@things-factory/print-ui": "^6.0.107",
108
- "@things-factory/resource-ui": "^6.0.107",
106
+ "@things-factory/print-service": "^6.0.114",
107
+ "@things-factory/print-ui": "^6.0.114",
108
+ "@things-factory/resource-ui": "^6.0.114",
109
109
  "@things-factory/scene-google-map": "^6.0.101",
110
- "@things-factory/setting-ui": "^6.0.107",
111
- "@things-factory/system-ui": "^6.0.107"
110
+ "@things-factory/setting-ui": "^6.0.114",
111
+ "@things-factory/system-ui": "^6.0.114"
112
112
  },
113
113
  "devDependencies": {
114
- "@things-factory/board-test": "^6.0.107",
114
+ "@things-factory/board-test": "^6.0.114",
115
115
  "@things-factory/builder": "^6.0.104"
116
116
  },
117
- "gitHead": "0968c04da88d4571f800b217dc794ac7129ef258"
117
+ "gitHead": "5d0bc702cc5e209d01753eea9aa6dbd0a488ac86"
118
118
  }
package/schema.gql CHANGED
@@ -384,6 +384,7 @@ type Domain {
384
384
  attributes: Object
385
385
  brandImage: String
386
386
  brandName: String
387
+ children: Domain
387
388
  contentImage: String
388
389
  createdAt: Timestamp
389
390
  description: String
@@ -391,7 +392,8 @@ type Domain {
391
392
  id: ID!
392
393
  name: String!
393
394
  owner: String
394
- ownerUser: User!
395
+ ownerUser: User
396
+ parent: Domain
395
397
  subdomain: String
396
398
  systemFlag: Boolean
397
399
  theme: String
@@ -422,6 +424,8 @@ input DomainPatch {
422
424
  description: String
423
425
  id: String
424
426
  name: String
427
+ owner: String
428
+ parent: ObjectRef
425
429
  subdomain: String
426
430
  systemFlag: Boolean
427
431
  theme: String
@@ -2203,6 +2207,9 @@ type Query {
2203
2207
  """To fetch a board"""
2204
2208
  board(id: String!): Board!
2205
2209
 
2210
+ """To fetch a Board Model by name"""
2211
+ boardByName(name: String!): Board
2212
+
2206
2213
  """Board Usage Permissions"""
2207
2214
  boardPermissions: [String!]!
2208
2215
 
@@ -2290,9 +2297,6 @@ type Query {
2290
2297
 
2291
2298
  """To fetch multiple Fonts"""
2292
2299
  fonts(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): FontList!
2293
-
2294
- """To fetch a Global Board Model"""
2295
- globalBoardByName(name: String!): Board
2296
2300
  grantedRoles: [GrantedRole!]!
2297
2301
  grantingRoles(customerId: String!): [GrantedRole!]!
2298
2302
 
@@ -2489,6 +2493,7 @@ type RolePrivilege {
2489
2493
  }
2490
2494
 
2491
2495
  type Scenario {
2496
+ """[will be deprecated] automatically be started when this server start"""
2492
2497
  active: Boolean
2493
2498
  createdAt: Timestamp
2494
2499
  creator: User
@@ -2497,6 +2502,9 @@ type Scenario {
2497
2502
  id: ID!
2498
2503
  instances: [ScenarioInstance!]
2499
2504
  name: String!
2505
+
2506
+ """accessible and executable system-wide"""
2507
+ public: Boolean
2500
2508
  schedule: String
2501
2509
  scheduleId: String
2502
2510
  state: String
@@ -1,3 +1,4 @@
1
+ import { In } from 'typeorm'
1
2
  import { Arg, Ctx, Directive, Query, Resolver } from 'type-graphql'
2
3
 
3
4
  import { Board } from '@things-factory/board-service'
@@ -40,7 +41,7 @@ export class BoardResolver {
40
41
  const { domain } = context.state
41
42
 
42
43
  var board = await getRepository(Board).findOne({
43
- where: { domain: { id: domain.id }, id }
44
+ where: { domain: { id: In([domain.id, domain.parentId].filter(Boolean)) }, id }
44
45
  })
45
46
  if (domain) {
46
47
  // 1. check domainSecret is over limit quantity or not
@@ -30,6 +30,10 @@ export class DomainResolver {
30
30
  updateRecord.subdomain = slugger(updateRecord.name)
31
31
  }
32
32
 
33
+ if (updateRecord.parent && updateRecord.parent.id == domain.id) {
34
+ delete updateRecord.parent
35
+ }
36
+
33
37
  await domainRepo.save({
34
38
  ...domain,
35
39
  ...updateRecord