@things-factory/operato-board 6.0.111 → 6.0.113

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.113",
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.113",
83
+ "@things-factory/auth-ui": "^6.0.113",
84
+ "@things-factory/board-service": "^6.0.113",
85
+ "@things-factory/board-ui": "^6.0.113",
86
+ "@things-factory/context-ui": "^6.0.113",
87
+ "@things-factory/export-ui": "^6.0.113",
88
+ "@things-factory/fav-base": "^6.0.113",
89
+ "@things-factory/font-base": "^6.0.113",
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.113",
92
+ "@things-factory/i18n-base": "^6.0.113",
93
+ "@things-factory/import-ui": "^6.0.113",
94
+ "@things-factory/integration-base": "^6.0.113",
95
+ "@things-factory/integration-msgraph": "^6.0.113",
96
+ "@things-factory/integration-notification": "^6.0.113",
97
+ "@things-factory/integration-openai": "^6.0.113",
98
+ "@things-factory/integration-ui": "^6.0.113",
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.113",
101
+ "@things-factory/notification": "^6.0.113",
102
+ "@things-factory/oauth2-client": "^6.0.113",
103
+ "@things-factory/offline-ui": "^6.0.113",
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.113",
107
+ "@things-factory/print-ui": "^6.0.113",
108
+ "@things-factory/resource-ui": "^6.0.113",
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.113",
111
+ "@things-factory/system-ui": "^6.0.113"
112
112
  },
113
113
  "devDependencies": {
114
- "@things-factory/board-test": "^6.0.107",
114
+ "@things-factory/board-test": "^6.0.113",
115
115
  "@things-factory/builder": "^6.0.104"
116
116
  },
117
- "gitHead": "0968c04da88d4571f800b217dc794ac7129ef258"
117
+ "gitHead": "1f753c3122911f7e014edae7e469784cdfb8678e"
118
118
  }
package/schema.gql CHANGED
@@ -391,7 +391,8 @@ type Domain {
391
391
  id: ID!
392
392
  name: String!
393
393
  owner: String
394
- ownerUser: User!
394
+ ownerUser: User
395
+ parent: Domain
395
396
  subdomain: String
396
397
  systemFlag: Boolean
397
398
  theme: String
@@ -422,6 +423,8 @@ input DomainPatch {
422
423
  description: String
423
424
  id: String
424
425
  name: String
426
+ owner: String
427
+ parent: ObjectRef
425
428
  subdomain: String
426
429
  systemFlag: Boolean
427
430
  theme: String
@@ -2203,6 +2206,9 @@ type Query {
2203
2206
  """To fetch a board"""
2204
2207
  board(id: String!): Board!
2205
2208
 
2209
+ """To fetch a Board Model by name"""
2210
+ boardByName(name: String!): Board
2211
+
2206
2212
  """Board Usage Permissions"""
2207
2213
  boardPermissions: [String!]!
2208
2214
 
@@ -2290,9 +2296,6 @@ type Query {
2290
2296
 
2291
2297
  """To fetch multiple Fonts"""
2292
2298
  fonts(filters: [Filter!], pagination: Pagination, sortings: [Sorting!]): FontList!
2293
-
2294
- """To fetch a Global Board Model"""
2295
- globalBoardByName(name: String!): Board
2296
2299
  grantedRoles: [GrantedRole!]!
2297
2300
  grantingRoles(customerId: String!): [GrantedRole!]!
2298
2301
 
@@ -2489,6 +2492,7 @@ type RolePrivilege {
2489
2492
  }
2490
2493
 
2491
2494
  type Scenario {
2495
+ """[will be deprecated] automatically be started when this server start"""
2492
2496
  active: Boolean
2493
2497
  createdAt: Timestamp
2494
2498
  creator: User
@@ -2497,6 +2501,9 @@ type Scenario {
2497
2501
  id: ID!
2498
2502
  instances: [ScenarioInstance!]
2499
2503
  name: String!
2504
+
2505
+ """accessible and executable system-wide"""
2506
+ public: Boolean
2500
2507
  schedule: String
2501
2508
  scheduleId: String
2502
2509
  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