mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 22:34: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 {
|
export interface DateTime {
|
||||||
datetime: string;
|
datetime: string;
|
||||||
datetime8601: string
|
datetime8601: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Civility {
|
export interface Civility {
|
||||||
@ -12,8 +12,8 @@ export interface Job {
|
|||||||
id: number;
|
id: number;
|
||||||
type: "user_job";
|
type: "user_job";
|
||||||
label: {
|
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 {
|
export interface Center {
|
||||||
@ -26,8 +26,8 @@ export interface Scope {
|
|||||||
id: number;
|
id: number;
|
||||||
type: "scope";
|
type: "scope";
|
||||||
name: {
|
name: {
|
||||||
"fr": string
|
fr: string;
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface User {
|
export interface User {
|
||||||
@ -43,12 +43,12 @@ export interface User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface UserGroup {
|
export interface UserGroup {
|
||||||
type: "chill_main_user_group",
|
type: "chill_main_user_group" | "user_group";
|
||||||
id: number,
|
id: number;
|
||||||
label: TranslatableString,
|
label: TranslatableString;
|
||||||
backgroundColor: string,
|
backgroundColor: string;
|
||||||
foregroundColor: string,
|
foregroundColor: string;
|
||||||
excludeKey: string,
|
excludeKey: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UserGroupOrUser = User | UserGroup;
|
export type UserGroupOrUser = User | UserGroup;
|
||||||
@ -56,12 +56,12 @@ export type UserGroupOrUser = User | UserGroup;
|
|||||||
export interface UserAssociatedInterface {
|
export interface UserAssociatedInterface {
|
||||||
type: "user";
|
type: "user";
|
||||||
id: number;
|
id: number;
|
||||||
};
|
}
|
||||||
|
|
||||||
export type TranslatableString = {
|
export type TranslatableString = {
|
||||||
fr?: string;
|
fr?: string;
|
||||||
nl?: string;
|
nl?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
export interface Postcode {
|
export interface Postcode {
|
||||||
id: number;
|
id: number;
|
||||||
@ -73,7 +73,7 @@ export interface Postcode {
|
|||||||
export type Point = {
|
export type Point = {
|
||||||
type: "Point";
|
type: "Point";
|
||||||
coordinates: [lat: number, lon: number];
|
coordinates: [lat: number, lon: number];
|
||||||
}
|
};
|
||||||
|
|
||||||
export interface Country {
|
export interface Country {
|
||||||
id: number;
|
id: number;
|
||||||
@ -81,7 +81,7 @@ export interface Country {
|
|||||||
code: string;
|
code: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AddressRefStatus = 'match'|'to_review'|'reviewed';
|
export type AddressRefStatus = "match" | "to_review" | "reviewed";
|
||||||
|
|
||||||
export interface Address {
|
export interface Address {
|
||||||
type: "address";
|
type: "address";
|
||||||
@ -109,7 +109,7 @@ export interface Address {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface AddressWithPoint extends Address {
|
export interface AddressWithPoint extends Address {
|
||||||
point: Point
|
point: Point;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AddressReference {
|
export interface AddressReference {
|
||||||
@ -149,7 +149,7 @@ export interface Location {
|
|||||||
createdBy: User | null;
|
createdBy: User | null;
|
||||||
updatedAt: DateTime | null;
|
updatedAt: DateTime | null;
|
||||||
updatedBy: User | null;
|
updatedBy: User | null;
|
||||||
email: string | null
|
email: string | null;
|
||||||
name: string;
|
name: string;
|
||||||
phonenumber1: string | null;
|
phonenumber1: string | null;
|
||||||
phonenumber2: string | null;
|
phonenumber2: string | null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user