@things-factory/quotation 7.0.1-beta.8 → 7.0.1-rc.0
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-client/activities/activity-quotation-edit.d.ts +1 -1
- package/dist-client/activities/activity-quotation-edit.js.map +1 -1
- package/dist-client/activities/activity-quotation-view.d.ts +1 -1
- package/dist-client/activities/activity-quotation-view.js.map +1 -1
- package/dist-client/pages/main.js.map +1 -1
- package/dist-client/pages/quotation/quotation-importer.d.ts +1 -1
- package/dist-client/pages/quotation/quotation-importer.js.map +1 -1
- package/dist-client/pages/quotation/quotation-list-page.d.ts +1 -1
- package/dist-client/pages/quotation/quotation-list-page.js.map +1 -1
- package/dist-client/reducers/main.js.map +1 -1
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/activities/activity-quotation.d.ts +42 -0
- package/dist-server/activities/activity-quotation.js.map +1 -1
- package/dist-server/activities/index.d.ts +1 -0
- package/dist-server/activities/index.js +1 -1
- package/dist-server/activities/index.js.map +1 -1
- package/dist-server/controllers/index.d.ts +0 -0
- package/dist-server/index.d.ts +3 -0
- package/dist-server/middlewares/index.d.ts +1 -0
- package/dist-server/middlewares/index.js +1 -2
- package/dist-server/middlewares/index.js.map +1 -1
- package/dist-server/migrations/index.d.ts +1 -0
- package/dist-server/routes.d.ts +0 -0
- package/dist-server/routes.js +0 -1
- package/dist-server/routes.js.map +1 -1
- package/dist-server/service/index.d.ts +6 -0
- package/dist-server/service/quotation/event-subscriber.d.ts +7 -0
- package/dist-server/service/quotation/event-subscriber.js +2 -2
- package/dist-server/service/quotation/event-subscriber.js.map +1 -1
- package/dist-server/service/quotation/index.d.ts +7 -0
- package/dist-server/service/quotation/quotation-history.d.ts +25 -0
- package/dist-server/service/quotation/quotation-history.js +4 -4
- package/dist-server/service/quotation/quotation-history.js.map +1 -1
- package/dist-server/service/quotation/quotation-mutation.d.ts +10 -0
- package/dist-server/service/quotation/quotation-mutation.js +2 -2
- package/dist-server/service/quotation/quotation-mutation.js.map +1 -1
- package/dist-server/service/quotation/quotation-query.d.ts +12 -0
- package/dist-server/service/quotation/quotation-query.js +3 -3
- package/dist-server/service/quotation/quotation-query.js.map +1 -1
- package/dist-server/service/quotation/quotation-type.d.ts +23 -0
- package/dist-server/service/quotation/quotation-type.js +6 -6
- package/dist-server/service/quotation/quotation-type.js.map +1 -1
- package/dist-server/service/quotation/quotation.d.ts +25 -0
- package/dist-server/service/quotation/quotation.js +3 -3
- package/dist-server/service/quotation/quotation.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/server/activities/index.ts +3 -4
- package/server/routes.ts +0 -2
- package/server/service/quotation/quotation-history.ts +2 -2
- package/server/service/quotation/quotation-query.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/quotation",
|
|
3
|
-
"version": "7.0.1-
|
|
3
|
+
"version": "7.0.1-rc.0",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@operato/graphql": "^
|
|
31
|
-
"@operato/shell": "^
|
|
32
|
-
"@things-factory/auth-base": "^7.0.1-
|
|
33
|
-
"@things-factory/shell": "^7.0.1-
|
|
34
|
-
"@things-factory/worklist": "^7.0.1-
|
|
30
|
+
"@operato/graphql": "^7.0.0-rc",
|
|
31
|
+
"@operato/shell": "^7.0.0-rc",
|
|
32
|
+
"@things-factory/auth-base": "^7.0.1-rc.0",
|
|
33
|
+
"@things-factory/shell": "^7.0.1-rc.0",
|
|
34
|
+
"@things-factory/worklist": "^7.0.1-rc.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "45476b164b69aef2c211d9a5257897f42d8e2f5f"
|
|
37
37
|
}
|
|
@@ -2,12 +2,11 @@ import { ActivityInstallations } from '@things-factory/worklist'
|
|
|
2
2
|
|
|
3
3
|
/* IMPORT ACTIVITY TEMPLATES */
|
|
4
4
|
import { ActivityQuotation } from './activity-quotation'
|
|
5
|
-
|
|
6
5
|
;[
|
|
7
|
-
/* ACTIVITY TEMPLATES */
|
|
8
|
-
|
|
6
|
+
/* ACTIVITY TEMPLATES */
|
|
7
|
+
ActivityQuotation
|
|
9
8
|
].forEach(template => {
|
|
10
|
-
ActivityInstallations.installActivityTemplate(template)
|
|
9
|
+
ActivityInstallations.installActivityTemplate(template as any)
|
|
11
10
|
})
|
|
12
11
|
|
|
13
12
|
/*
|
package/server/routes.ts
CHANGED
|
@@ -81,14 +81,14 @@ export class QuotationHistory implements HistoryEntityInterface<Quotation> {
|
|
|
81
81
|
deletedAt?: Date
|
|
82
82
|
|
|
83
83
|
@ManyToOne(type => User, { nullable: true })
|
|
84
|
-
@Field({ nullable: true })
|
|
84
|
+
@Field(type => User, { nullable: true })
|
|
85
85
|
creator?: User
|
|
86
86
|
|
|
87
87
|
@RelationId((quotation: Quotation) => quotation.creator)
|
|
88
88
|
creatorId?: string
|
|
89
89
|
|
|
90
90
|
@ManyToOne(type => User, { nullable: true })
|
|
91
|
-
@Field({ nullable: true })
|
|
91
|
+
@Field(type => User, { nullable: true })
|
|
92
92
|
updater?: User
|
|
93
93
|
|
|
94
94
|
@RelationId((quotation: Quotation) => quotation.updater)
|
|
@@ -17,7 +17,10 @@ export class QuotationQuery {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@Query(returns => QuotationList, { description: 'To fetch multiple Quotations' })
|
|
20
|
-
async quotations(
|
|
20
|
+
async quotations(
|
|
21
|
+
@Args(type => ListParam) params: ListParam,
|
|
22
|
+
@Ctx() context: ResolverContext
|
|
23
|
+
): Promise<QuotationList> {
|
|
21
24
|
const { domain } = context.state
|
|
22
25
|
|
|
23
26
|
const queryBuilder = getQueryBuilderFromListParams({
|