@things-factory/quotation 7.0.1-beta.9 → 7.0.1-rc.1

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.
Files changed (52) hide show
  1. package/dist-client/activities/activity-quotation-edit.d.ts +1 -1
  2. package/dist-client/activities/activity-quotation-edit.js.map +1 -1
  3. package/dist-client/activities/activity-quotation-view.d.ts +1 -1
  4. package/dist-client/activities/activity-quotation-view.js.map +1 -1
  5. package/dist-client/pages/main.js.map +1 -1
  6. package/dist-client/pages/quotation/quotation-importer.d.ts +1 -1
  7. package/dist-client/pages/quotation/quotation-importer.js.map +1 -1
  8. package/dist-client/pages/quotation/quotation-list-page.d.ts +1 -1
  9. package/dist-client/pages/quotation/quotation-list-page.js.map +1 -1
  10. package/dist-client/reducers/main.js.map +1 -1
  11. package/dist-client/route.js.map +1 -1
  12. package/dist-client/tsconfig.tsbuildinfo +1 -1
  13. package/dist-server/activities/activity-quotation.d.ts +42 -0
  14. package/dist-server/activities/activity-quotation.js.map +1 -1
  15. package/dist-server/activities/index.d.ts +1 -0
  16. package/dist-server/activities/index.js +1 -1
  17. package/dist-server/activities/index.js.map +1 -1
  18. package/dist-server/controllers/index.d.ts +0 -0
  19. package/dist-server/index.d.ts +3 -0
  20. package/dist-server/middlewares/index.d.ts +1 -0
  21. package/dist-server/middlewares/index.js +1 -2
  22. package/dist-server/middlewares/index.js.map +1 -1
  23. package/dist-server/migrations/index.d.ts +1 -0
  24. package/dist-server/routes.d.ts +0 -0
  25. package/dist-server/routes.js +0 -1
  26. package/dist-server/routes.js.map +1 -1
  27. package/dist-server/service/index.d.ts +6 -0
  28. package/dist-server/service/quotation/event-subscriber.d.ts +7 -0
  29. package/dist-server/service/quotation/event-subscriber.js +2 -2
  30. package/dist-server/service/quotation/event-subscriber.js.map +1 -1
  31. package/dist-server/service/quotation/index.d.ts +7 -0
  32. package/dist-server/service/quotation/quotation-history.d.ts +25 -0
  33. package/dist-server/service/quotation/quotation-history.js +4 -4
  34. package/dist-server/service/quotation/quotation-history.js.map +1 -1
  35. package/dist-server/service/quotation/quotation-mutation.d.ts +10 -0
  36. package/dist-server/service/quotation/quotation-mutation.js +2 -2
  37. package/dist-server/service/quotation/quotation-mutation.js.map +1 -1
  38. package/dist-server/service/quotation/quotation-query.d.ts +12 -0
  39. package/dist-server/service/quotation/quotation-query.js +3 -3
  40. package/dist-server/service/quotation/quotation-query.js.map +1 -1
  41. package/dist-server/service/quotation/quotation-type.d.ts +23 -0
  42. package/dist-server/service/quotation/quotation-type.js +6 -6
  43. package/dist-server/service/quotation/quotation-type.js.map +1 -1
  44. package/dist-server/service/quotation/quotation.d.ts +25 -0
  45. package/dist-server/service/quotation/quotation.js +3 -3
  46. package/dist-server/service/quotation/quotation.js.map +1 -1
  47. package/dist-server/tsconfig.tsbuildinfo +1 -1
  48. package/package.json +7 -7
  49. package/server/activities/index.ts +3 -4
  50. package/server/routes.ts +0 -2
  51. package/server/service/quotation/quotation-history.ts +2 -2
  52. 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-beta.9",
3
+ "version": "7.0.1-rc.1",
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": "^2.0.0-beta.0",
31
- "@operato/shell": "^2.0.0-beta.0",
32
- "@things-factory/auth-base": "^7.0.1-beta.9",
33
- "@things-factory/shell": "^7.0.1-beta.8",
34
- "@things-factory/worklist": "^7.0.1-beta.9"
30
+ "@operato/graphql": "^7.0.0-rc",
31
+ "@operato/shell": "^7.0.0-rc",
32
+ "@things-factory/auth-base": "^7.0.1-rc.1",
33
+ "@things-factory/shell": "^7.0.1-rc.1",
34
+ "@things-factory/worklist": "^7.0.1-rc.1"
35
35
  },
36
- "gitHead": "b2fb4923e2763b4d831f934905dd6ae0019446a4"
36
+ "gitHead": "fa52d291483c4aa913a9c6a9a4463a73058b1b0d"
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
- ActivityQuotation,
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
@@ -1,5 +1,3 @@
1
- const debug = require('debug')('things-factory:quotation:routes')
2
-
3
1
  process.on('bootstrap-module-global-public-route' as any, (app, globalPublicRouter) => {
4
2
  /*
5
3
  * can add global public routes to application (auth not required, tenancy not required)
@@ -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(@Args() params: ListParam, @Ctx() context: ResolverContext): Promise<QuotationList> {
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({