Work around Addresses to bring them properly through GraphQL
Got caught with https://github.com/absinthe-graphql/absinthe/issues/601 at some point, that's why fields are renamed Fix tests Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
13
js/src/types/address.model.ts
Normal file
13
js/src/types/address.model.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export interface IAddress {
|
||||
description: string;
|
||||
floor: string;
|
||||
street: string;
|
||||
locality: string;
|
||||
postal_code: string;
|
||||
region: string;
|
||||
country: string;
|
||||
geom: {
|
||||
lat: number;
|
||||
lon: number;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Actor, IActor } from './actor.model';
|
||||
import {IAddress} from "@/types/address.model";
|
||||
|
||||
export enum EventStatus {
|
||||
TENTATIVE,
|
||||
@@ -67,8 +68,9 @@ export interface IEvent {
|
||||
attributedTo: IActor;
|
||||
participants: IParticipant[];
|
||||
|
||||
// online_address: Address;
|
||||
// phone_address: string;
|
||||
onlineAddress?: string;
|
||||
phoneAddress?: string;
|
||||
physicalAddress?: IAddress;
|
||||
}
|
||||
|
||||
|
||||
@@ -90,4 +92,6 @@ export class EventModel implements IEvent {
|
||||
visibility: EventVisibility = EventVisibility.PUBLIC;
|
||||
attributedTo: IActor = new Actor();
|
||||
organizerActor: IActor = new Actor();
|
||||
onlineAddress: string = '';
|
||||
phoneAddress: string = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user