Loading packages/common/src/entities/GeoLocation.ts +4 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,10 @@ class GeoLocation extends DBObject<IGeoLocation, IGeoLocationCreateObject> @Column() postcode?: string | null; @Schema({ required: false, type: String }) @Column() notes?: string | null; @Schema({ type: String, required: false }) @Column() apartment?: string | null; Loading packages/common/src/entities/InviteRequest.ts +1 −0 Original line number Diff line number Diff line Loading @@ -116,6 +116,7 @@ class InviteRequest streetAddress: this.geoLocation.streetAddress, city: this.geoLocation.city, postcode: this.geoLocation.postcode, notes: this.geoLocation.notes, countryId: this.geoLocation.countryId, }; } else { Loading packages/common/src/interfaces/IEnterByLocation.ts +2 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ interface IEnterByLocation { streetAddress: string; house: string; postcode?: string | null; notes?: string | null; apartment: string; } Loading @@ -21,6 +22,7 @@ export function toEnterByLocation( city: location.city, countryId: location.countryId, postcode: location.postcode, notes: location.notes, } as any; } Loading packages/common/src/interfaces/IGeoLocation.ts +3 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ export interface IAddress { countryId: Country | null; city: string | null; postcode?: string | null; notes?: string | null; streetAddress: string | null; house: string | null; } Loading @@ -19,6 +20,7 @@ export function getEmptyAddress(): IAddress { countryId: null, city: '', postcode: '', notes: '', streetAddress: '', house: '', }; Loading @@ -32,6 +34,7 @@ export interface IGeolocationUpdateObject { countryId?: Country | null; city?: string | null; postcode?: string | null; notes?: string | null; streetAddress?: string | null; house?: string | null; loc?: ILocation; Loading packages/core/src/graphql/geo-locations/geo-locations.graphql +4 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ type GeoLocation { streetAddress: String! house: String! postcode: String notes: String loc: Loc! coordinates: GeoLocationCoordinates! } Loading @@ -43,6 +44,7 @@ input GeoLocationCreateInput { streetAddress: String! house: String! postcode: String notes: String loc: LocInput! } Loading @@ -52,6 +54,7 @@ input GeoLocationUpdateInput { streetAddress: String house: String postcode: String notes: String loc: LocInput } Loading @@ -61,6 +64,7 @@ input GeoLocationFindInput { streetAddress: String house: String postcode: String notes: String loc: LocInput } Loading Loading
packages/common/src/entities/GeoLocation.ts +4 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,10 @@ class GeoLocation extends DBObject<IGeoLocation, IGeoLocationCreateObject> @Column() postcode?: string | null; @Schema({ required: false, type: String }) @Column() notes?: string | null; @Schema({ type: String, required: false }) @Column() apartment?: string | null; Loading
packages/common/src/entities/InviteRequest.ts +1 −0 Original line number Diff line number Diff line Loading @@ -116,6 +116,7 @@ class InviteRequest streetAddress: this.geoLocation.streetAddress, city: this.geoLocation.city, postcode: this.geoLocation.postcode, notes: this.geoLocation.notes, countryId: this.geoLocation.countryId, }; } else { Loading
packages/common/src/interfaces/IEnterByLocation.ts +2 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ interface IEnterByLocation { streetAddress: string; house: string; postcode?: string | null; notes?: string | null; apartment: string; } Loading @@ -21,6 +22,7 @@ export function toEnterByLocation( city: location.city, countryId: location.countryId, postcode: location.postcode, notes: location.notes, } as any; } Loading
packages/common/src/interfaces/IGeoLocation.ts +3 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ export interface IAddress { countryId: Country | null; city: string | null; postcode?: string | null; notes?: string | null; streetAddress: string | null; house: string | null; } Loading @@ -19,6 +20,7 @@ export function getEmptyAddress(): IAddress { countryId: null, city: '', postcode: '', notes: '', streetAddress: '', house: '', }; Loading @@ -32,6 +34,7 @@ export interface IGeolocationUpdateObject { countryId?: Country | null; city?: string | null; postcode?: string | null; notes?: string | null; streetAddress?: string | null; house?: string | null; loc?: ILocation; Loading
packages/core/src/graphql/geo-locations/geo-locations.graphql +4 −0 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ type GeoLocation { streetAddress: String! house: String! postcode: String notes: String loc: Loc! coordinates: GeoLocationCoordinates! } Loading @@ -43,6 +44,7 @@ input GeoLocationCreateInput { streetAddress: String! house: String! postcode: String notes: String loc: LocInput! } Loading @@ -52,6 +54,7 @@ input GeoLocationUpdateInput { streetAddress: String house: String postcode: String notes: String loc: LocInput } Loading @@ -61,6 +64,7 @@ input GeoLocationFindInput { streetAddress: String house: String postcode: String notes: String loc: LocInput } Loading