mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 14:24:24 +00:00
Add user_group for returning type
This commit is contained in:
parent
4996ac3b7c
commit
580a60c939
@ -1,6 +1,6 @@
|
||||
export interface DateTime {
|
||||
datetime: string;
|
||||
datetime8601: string
|
||||
datetime8601: string;
|
||||
}
|
||||
|
||||
export interface Civility {
|
||||
@ -12,8 +12,8 @@ export interface Job {
|
||||
id: number;
|
||||
type: "user_job";
|
||||
label: {
|
||||
"fr": string; // could have other key. How to do that in ts ?
|
||||
}
|
||||
fr: string; // could have other key. How to do that in ts ?
|
||||
};
|
||||
}
|
||||
|
||||
export interface Center {
|
||||
@ -26,8 +26,8 @@ export interface Scope {
|
||||
id: number;
|
||||
type: "scope";
|
||||
name: {
|
||||
"fr": string
|
||||
}
|
||||
fr: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface User {
|
||||
@ -43,12 +43,12 @@ export interface User {
|
||||
}
|
||||
|
||||
export interface UserGroup {
|
||||
type: "chill_main_user_group",
|
||||
id: number,
|
||||
label: TranslatableString,
|
||||
backgroundColor: string,
|
||||
foregroundColor: string,
|
||||
excludeKey: string,
|
||||
type: "chill_main_user_group" | "user_group";
|
||||
id: number;
|
||||
label: TranslatableString;
|
||||
backgroundColor: string;
|
||||
foregroundColor: string;
|
||||
excludeKey: string;
|
||||
}
|
||||
|
||||
export type UserGroupOrUser = User | UserGroup;
|
||||
@ -56,12 +56,12 @@ export type UserGroupOrUser = User | UserGroup;
|
||||
export interface UserAssociatedInterface {
|
||||
type: "user";
|
||||
id: number;
|
||||
};
|
||||
}
|
||||
|
||||
export type TranslatableString = {
|
||||
fr?: string;
|
||||
nl?: string;
|
||||
}
|
||||
};
|
||||
|
||||
export interface Postcode {
|
||||
id: number;
|
||||
@ -73,7 +73,7 @@ export interface Postcode {
|
||||
export type Point = {
|
||||
type: "Point";
|
||||
coordinates: [lat: number, lon: number];
|
||||
}
|
||||
};
|
||||
|
||||
export interface Country {
|
||||
id: number;
|
||||
@ -81,7 +81,7 @@ export interface Country {
|
||||
code: string;
|
||||
}
|
||||
|
||||
export type AddressRefStatus = 'match'|'to_review'|'reviewed';
|
||||
export type AddressRefStatus = "match" | "to_review" | "reviewed";
|
||||
|
||||
export interface Address {
|
||||
type: "address";
|
||||
@ -109,7 +109,7 @@ export interface Address {
|
||||
}
|
||||
|
||||
export interface AddressWithPoint extends Address {
|
||||
point: Point
|
||||
point: Point;
|
||||
}
|
||||
|
||||
export interface AddressReference {
|
||||
@ -149,7 +149,7 @@ export interface Location {
|
||||
createdBy: User | null;
|
||||
updatedAt: DateTime | null;
|
||||
updatedBy: User | null;
|
||||
email: string | null
|
||||
email: string | null;
|
||||
name: string;
|
||||
phonenumber1: string | null;
|
||||
phonenumber2: string | null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user