|
|
@@ -1,35 +1,38 @@
|
|
|
-import {Str, Model, Uid} from '@vuex-orm/core'
|
|
|
+import {Str, Model, Uid, Attr} from '@vuex-orm/core'
|
|
|
|
|
|
export class ContactPoint extends Model {
|
|
|
static entity = 'contact_points'
|
|
|
|
|
|
@Uid()
|
|
|
- id!: number | null
|
|
|
+ id!: number | string | null
|
|
|
|
|
|
@Str('PRINCIPAL', { nullable: false })
|
|
|
contactType!: string
|
|
|
|
|
|
- @Str('', { nullable: true })
|
|
|
+ @Str(null, { nullable: true })
|
|
|
email!: string
|
|
|
|
|
|
- @Str('', { nullable: true })
|
|
|
+ @Str(null, { nullable: true })
|
|
|
emailInvalid!: string
|
|
|
|
|
|
- @Str('', { nullable: true })
|
|
|
+ @Str(null, { nullable: true })
|
|
|
telphone!: string
|
|
|
|
|
|
- @Str('', { nullable: true })
|
|
|
+ @Str(null, { nullable: true })
|
|
|
telphoneInvalid!: string
|
|
|
|
|
|
- @Str('', { nullable: true })
|
|
|
+ @Str(null, { nullable: true })
|
|
|
mobilPhone!: string
|
|
|
|
|
|
- @Str('', { nullable: true })
|
|
|
+ @Str(null, { nullable: true })
|
|
|
mobilPhoneInvalid!: string
|
|
|
|
|
|
- @Str('', { nullable: true })
|
|
|
+ @Str(null, { nullable: true })
|
|
|
faxNumber!: string
|
|
|
|
|
|
- @Str('', { nullable: true })
|
|
|
+ @Str(null, { nullable: true })
|
|
|
faxNumberInvalid!: string
|
|
|
+
|
|
|
+ @Attr([])
|
|
|
+ organization!: []
|
|
|
}
|