@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/dist-server/service/quotation/quotation-history.js +6 -2
- package/dist-server/service/quotation/quotation-history.js.map +1 -1
- package/dist-server/service/quotation/quotation.js +4 -2
- package/dist-server/service/quotation/quotation.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/server/service/quotation/quotation-history.ts +8 -4
- package/server/service/quotation/quotation.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/quotation",
|
|
3
|
-
"version": "7.0.1-alpha.
|
|
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.
|
|
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.
|
|
34
|
+
"@things-factory/worklist": "^7.0.1-alpha.78"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
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) => [
|
|
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(
|
|
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
|
-
|
|
106
|
-
|
|
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], {
|
|
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(
|
|
43
|
+
@Field(type => Domain)
|
|
42
44
|
domain?: Domain
|
|
43
45
|
|
|
44
46
|
@RelationId((quotation: Quotation) => quotation.domain)
|