@things-factory/integration-base 7.0.1-alpha.73 → 7.0.1-alpha.78

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/integration-base",
3
- "version": "7.0.1-alpha.73",
3
+ "version": "7.0.1-alpha.78",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -27,11 +27,11 @@
27
27
  "dependencies": {
28
28
  "@apollo/client": "^3.6.9",
29
29
  "@operato/moment-timezone-es": "^2.0.0-alpha.0",
30
- "@things-factory/api": "^7.0.1-alpha.73",
31
- "@things-factory/auth-base": "^7.0.1-alpha.73",
30
+ "@things-factory/api": "^7.0.1-alpha.78",
31
+ "@things-factory/auth-base": "^7.0.1-alpha.78",
32
32
  "@things-factory/env": "^7.0.1-alpha.71",
33
- "@things-factory/oauth2-client": "^7.0.1-alpha.73",
34
- "@things-factory/scheduler-client": "^7.0.1-alpha.73",
33
+ "@things-factory/oauth2-client": "^7.0.1-alpha.78",
34
+ "@things-factory/scheduler-client": "^7.0.1-alpha.78",
35
35
  "@things-factory/shell": "^7.0.1-alpha.71",
36
36
  "@things-factory/utils": "^7.0.1-alpha.71",
37
37
  "async-mqtt": "^2.5.0",
@@ -43,5 +43,5 @@
43
43
  "readline": "^1.3.0",
44
44
  "vm2": "^3.9.11"
45
45
  },
46
- "gitHead": "e642f88c83cc1b004c31786eb1c9e3a4e8d0eb59"
46
+ "gitHead": "6423c664e70e7877c362b4aebb7f169e4a2ad22d"
47
47
  }
@@ -1,5 +1,14 @@
1
1
  import { Field, ID, InputType, Int, ObjectType, registerEnumType } from 'type-graphql'
2
- import { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'
2
+ import {
3
+ Column,
4
+ CreateDateColumn,
5
+ Entity,
6
+ Index,
7
+ ManyToOne,
8
+ PrimaryGeneratedColumn,
9
+ RelationId,
10
+ UpdateDateColumn
11
+ } from 'typeorm'
3
12
 
4
13
  import { User, Appliance } from '@things-factory/auth-base'
5
14
  import { logger } from '@things-factory/env'
@@ -193,7 +202,7 @@ export interface InputConnection extends Connection {
193
202
 
194
203
  @ObjectType()
195
204
  export class ConnectionState {
196
- @Field({ nullable: true })
205
+ @Field(type => Domain)
197
206
  domain?: Domain
198
207
 
199
208
  @Field({ nullable: true })
@@ -32,7 +32,7 @@ export class PayloadLog {
32
32
  readonly id: string
33
33
 
34
34
  @ManyToOne(type => Domain)
35
- @Field({ nullable: true })
35
+ @Field(type => Domain)
36
36
  domain?: Domain
37
37
 
38
38
  @RelationId((payloadLog: PayloadLog) => payloadLog.domain)
@@ -47,8 +47,8 @@ export class PayloadLog {
47
47
  DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
48
48
  ? 'enum'
49
49
  : DATABASE_TYPE == 'oracle'
50
- ? 'varchar2'
51
- : 'smallint',
50
+ ? 'varchar2'
51
+ : 'smallint',
52
52
  enum: PayloadType,
53
53
  default: PayloadType.EGESTION,
54
54
  nullable: true
@@ -26,7 +26,7 @@ export class Scenario {
26
26
  id?: string
27
27
 
28
28
  @ManyToOne(type => Domain)
29
- @Field({ nullable: true })
29
+ @Field(type => Domain)
30
30
  domain?: Domain
31
31
 
32
32
  @RelationId((scenario: Scenario) => scenario.domain)
@@ -26,7 +26,7 @@ export class StateRegister {
26
26
  readonly id: string
27
27
 
28
28
  @ManyToOne(type => Domain)
29
- @Field({ nullable: true })
29
+ @Field(type => Domain)
30
30
  domain?: Domain
31
31
 
32
32
  @RelationId((stateRegister: StateRegister) => stateRegister.domain)