@things-factory/quotation 7.0.1-alpha.77 → 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/quotation",
3
- "version": "7.0.1-alpha.77",
3
+ "version": "7.0.1-alpha.78",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -29,9 +29,9 @@
29
29
  "dependencies": {
30
30
  "@operato/graphql": "^2.0.0-alpha.0",
31
31
  "@operato/shell": "^2.0.0-alpha.0",
32
- "@things-factory/auth-base": "^7.0.1-alpha.77",
32
+ "@things-factory/auth-base": "^7.0.1-alpha.78",
33
33
  "@things-factory/shell": "^7.0.1-alpha.71",
34
- "@things-factory/worklist": "^7.0.1-alpha.77"
34
+ "@things-factory/worklist": "^7.0.1-alpha.78"
35
35
  },
36
- "gitHead": "e65893063c79d82a3c67233eac2295de2bae8397"
36
+ "gitHead": "6423c664e70e7877c362b4aebb7f169e4a2ad22d"
37
37
  }
@@ -24,7 +24,11 @@ const DATABASE_TYPE = ORMCONFIG.type
24
24
  )
25
25
  @Index(
26
26
  'ix_quotation_history_1',
27
- (quotationHistory: QuotationHistory) => [quotationHistory.domain, quotationHistory.originalId, quotationHistory.version],
27
+ (quotationHistory: QuotationHistory) => [
28
+ quotationHistory.domain,
29
+ quotationHistory.originalId,
30
+ quotationHistory.version
31
+ ],
28
32
  { unique: true }
29
33
  )
30
34
  @ObjectType({ description: 'History Entity of Quotation' })
@@ -38,7 +42,7 @@ export class QuotationHistory implements HistoryEntityInterface<Quotation> {
38
42
  version?: number = 1
39
43
 
40
44
  @ManyToOne(type => Domain)
41
- @Field({ nullable: true })
45
+ @Field(type => Domain)
42
46
  domain?: Domain
43
47
 
44
48
  @RelationId((quotation: Quotation) => quotation.domain)
@@ -102,8 +106,8 @@ export class QuotationHistory implements HistoryEntityInterface<Quotation> {
102
106
  DATABASE_TYPE == 'postgres' || DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
103
107
  ? 'enum'
104
108
  : DATABASE_TYPE == 'oracle'
105
- ? 'varchar2'
106
- : 'smallint',
109
+ ? 'varchar2'
110
+ : 'smallint',
107
111
  enum: HistoryActionType
108
112
  })
109
113
  public action!: HistoryActionType
@@ -26,7 +26,9 @@ registerEnumType(QuotationStatus, {
26
26
  })
27
27
 
28
28
  @Entity()
29
- @Index('ix_quotation_0', (quotation: Quotation) => [quotation.domain, quotation.name, quotation.deletedAt], { unique: true })
29
+ @Index('ix_quotation_0', (quotation: Quotation) => [quotation.domain, quotation.name, quotation.deletedAt], {
30
+ unique: true
31
+ })
30
32
  @ObjectType({ description: 'Entity for Quotation' })
31
33
  export class Quotation {
32
34
  @PrimaryGeneratedColumn('uuid')
@@ -38,7 +40,7 @@ export class Quotation {
38
40
  version?: number = 1
39
41
 
40
42
  @ManyToOne(type => Domain)
41
- @Field({ nullable: true })
43
+ @Field(type => Domain)
42
44
  domain?: Domain
43
45
 
44
46
  @RelationId((quotation: Quotation) => quotation.domain)