@things-factory/contact 6.2.73 → 6.2.77

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/contact",
3
- "version": "6.2.73",
3
+ "version": "6.2.77",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -32,9 +32,9 @@
32
32
  "@operato/i18n": "^1.0.0",
33
33
  "@operato/shell": "^1.0.0",
34
34
  "@operato/styles": "^1.0.0",
35
- "@things-factory/attachment-base": "^6.2.73",
36
- "@things-factory/auth-base": "^6.2.70",
37
- "@things-factory/shell": "^6.2.70"
35
+ "@things-factory/attachment-base": "^6.2.77",
36
+ "@things-factory/auth-base": "^6.2.77",
37
+ "@things-factory/shell": "^6.2.77"
38
38
  },
39
- "gitHead": "eb578bc7a3f5a2301af8ae599d00e929ef3bb6ca"
39
+ "gitHead": "91090127331d8e4cdbbfeb2f82c8dfe8dc65bfee"
40
40
  }
@@ -1,4 +1,5 @@
1
1
  import { ObjectType, Field, InputType, Int, ID } from 'type-graphql'
2
+ import { GraphQLEmailAddress } from 'graphql-scalars'
2
3
 
3
4
  import { ProfileInput } from './profile'
4
5
  import { ContactItemPatch } from './contact-item'
@@ -12,7 +13,7 @@ export class NewContact {
12
13
  @Field({ nullable: true })
13
14
  company?: string
14
15
 
15
- @Field({ nullable: true })
16
+ @Field(type => GraphQLEmailAddress, { nullable: true })
16
17
  email?: string
17
18
 
18
19
  @Field({ nullable: true })
@@ -45,7 +46,7 @@ export class ContactPatch {
45
46
  @Field({ nullable: true })
46
47
  company?: string
47
48
 
48
- @Field({ nullable: true })
49
+ @Field(type => GraphQLEmailAddress, { nullable: true })
49
50
  email?: string
50
51
 
51
52
  @Field({ nullable: true })
@@ -11,6 +11,7 @@ import {
11
11
  PrimaryGeneratedColumn
12
12
  } from 'typeorm'
13
13
  import { ObjectType, Field, Int, ID, registerEnumType } from 'type-graphql'
14
+ import { GraphQLEmailAddress } from 'graphql-scalars'
14
15
 
15
16
  import { Domain, ScalarObject } from '@things-factory/shell'
16
17
  import { User } from '@things-factory/auth-base'
@@ -60,7 +61,7 @@ export class Contact {
60
61
  @Field({ nullable: true })
61
62
  company?: string
62
63
 
63
- @Field({ nullable: true })
64
+ @Field(type => GraphQLEmailAddress, { nullable: true })
64
65
  email?: string
65
66
 
66
67
  @Field({ nullable: true })