include id property
This commit is contained in:
parent
992ec2cf7b
commit
0fdfabda73
|
@ -18,29 +18,29 @@ export type Scalars = {
|
||||||
|
|
||||||
/** Authentication requires either a valid mail+password combination or a jwt obtained by an earlier login. */
|
/** Authentication requires either a valid mail+password combination or a jwt obtained by an earlier login. */
|
||||||
export type Auth = {
|
export type Auth = {
|
||||||
|
/** Self descriptive. */
|
||||||
|
jwt: Scalars['String'];
|
||||||
/** Self descriptive. */
|
/** Self descriptive. */
|
||||||
mail: Scalars['String'];
|
mail: Scalars['String'];
|
||||||
/** Self descriptive. */
|
/** Self descriptive. */
|
||||||
password: Scalars['String'];
|
password: Scalars['String'];
|
||||||
/** Self descriptive. */
|
|
||||||
jwt: Scalars['String'];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** The type that query operations will be rooted at. */
|
/** The type that query operations will be rooted at. */
|
||||||
export type QueryType = {
|
export type QueryType = {
|
||||||
__typename?: 'QueryType';
|
__typename?: 'QueryType';
|
||||||
/** For a username+password get a jwt containing the login:id */
|
|
||||||
login: Login;
|
|
||||||
/** The offers that are visible for the ngo, belonging to the login */
|
|
||||||
get_offers?: Maybe<Array<Get_Offers>>;
|
|
||||||
/** Export an encrypted database dump */
|
/** Export an encrypted database dump */
|
||||||
export?: Maybe<Export>;
|
export?: Maybe<Export>;
|
||||||
|
/** The offers that are visible for the ngo, belonging to the login */
|
||||||
|
get_offers?: Maybe<Array<Get_Offers>>;
|
||||||
|
/** For a username+password get a jwt containing the login:id */
|
||||||
|
login: Login;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/** The type that query operations will be rooted at. */
|
/** The type that query operations will be rooted at. */
|
||||||
export type QueryTypeLoginArgs = {
|
export type QueryTypeExportArgs = {
|
||||||
auth: Auth;
|
password: Scalars['String'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,38 +51,39 @@ export type QueryTypeGet_OffersArgs = {
|
||||||
|
|
||||||
|
|
||||||
/** The type that query operations will be rooted at. */
|
/** The type that query operations will be rooted at. */
|
||||||
export type QueryTypeExportArgs = {
|
export type QueryTypeLoginArgs = {
|
||||||
password: Scalars['String'];
|
auth: Auth;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Export an encrypted database dump */
|
/** Export an encrypted database dump */
|
||||||
export type Export = {
|
export type Export = {
|
||||||
__typename?: 'export';
|
__typename?: 'export';
|
||||||
|
err?: Maybe<Scalars['String']>;
|
||||||
/** Self descriptive. */
|
/** Self descriptive. */
|
||||||
exit: Scalars['Int'];
|
exit: Scalars['Int'];
|
||||||
out?: Maybe<Scalars['String']>;
|
out?: Maybe<Scalars['String']>;
|
||||||
err?: Maybe<Scalars['String']>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** The offers that are visible for the ngo, belonging to the login */
|
/** The offers that are visible for the ngo, belonging to the login */
|
||||||
export type Get_Offers = {
|
export type Get_Offers = {
|
||||||
__typename?: 'get_offers';
|
__typename?: 'get_offers';
|
||||||
time_from_str?: Maybe<Scalars['String']>;
|
|
||||||
time_duration_str?: Maybe<Scalars['String']>;
|
|
||||||
beds?: Maybe<Scalars['Int']>;
|
|
||||||
languages?: Maybe<Array<Scalars['String']>>;
|
|
||||||
place_country?: Maybe<Scalars['String']>;
|
|
||||||
place_city?: Maybe<Scalars['String']>;
|
|
||||||
place_zip?: Maybe<Scalars['String']>;
|
|
||||||
place_street?: Maybe<Scalars['String']>;
|
|
||||||
place_street_number?: Maybe<Scalars['String']>;
|
|
||||||
accessible?: Maybe<Scalars['Boolean']>;
|
accessible?: Maybe<Scalars['Boolean']>;
|
||||||
animals_allowed?: Maybe<Scalars['Boolean']>;
|
animals_allowed?: Maybe<Scalars['Boolean']>;
|
||||||
animals_present?: Maybe<Scalars['Boolean']>;
|
animals_present?: Maybe<Scalars['Boolean']>;
|
||||||
|
beds?: Maybe<Scalars['Int']>;
|
||||||
|
contact_email?: Maybe<Scalars['String']>;
|
||||||
contact_name_full?: Maybe<Scalars['String']>;
|
contact_name_full?: Maybe<Scalars['String']>;
|
||||||
contact_phone?: Maybe<Scalars['String']>;
|
contact_phone?: Maybe<Scalars['String']>;
|
||||||
contact_email?: Maybe<Scalars['String']>;
|
id?: Maybe<Scalars['String']>;
|
||||||
|
languages?: Maybe<Array<Scalars['String']>>;
|
||||||
note?: Maybe<Scalars['String']>;
|
note?: Maybe<Scalars['String']>;
|
||||||
|
place_city?: Maybe<Scalars['String']>;
|
||||||
|
place_country?: Maybe<Scalars['String']>;
|
||||||
|
place_street?: Maybe<Scalars['String']>;
|
||||||
|
place_street_number?: Maybe<Scalars['String']>;
|
||||||
|
place_zip?: Maybe<Scalars['String']>;
|
||||||
|
time_duration_str?: Maybe<Scalars['String']>;
|
||||||
|
time_from_str?: Maybe<Scalars['String']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** For a username+password get a jwt containing the login:id */
|
/** For a username+password get a jwt containing the login:id */
|
||||||
|
@ -103,7 +104,7 @@ export type GetOffersQueryVariables = Exact<{
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
export type GetOffersQuery = { __typename?: 'QueryType', get_offers?: Array<{ __typename?: 'get_offers', time_from_str?: string | null, time_duration_str?: string | null, beds?: number | null, languages?: Array<string> | null, place_country?: string | null, place_city?: string | null, place_zip?: string | null, place_street?: string | null, place_street_number?: string | null, accessible?: boolean | null, animals_allowed?: boolean | null, animals_present?: boolean | null, contact_name_full?: string | null, contact_phone?: string | null, contact_email?: string | null, note?: string | null }> | null };
|
export type GetOffersQuery = { __typename?: 'QueryType', get_offers?: Array<{ __typename?: 'get_offers', id?: string | null, time_from_str?: string | null, time_duration_str?: string | null, beds?: number | null, languages?: Array<string> | null, place_country?: string | null, place_city?: string | null, place_zip?: string | null, place_street?: string | null, place_street_number?: string | null, accessible?: boolean | null, animals_allowed?: boolean | null, animals_present?: boolean | null, contact_name_full?: string | null, contact_phone?: string | null, contact_email?: string | null, note?: string | null }> | null };
|
||||||
|
|
||||||
|
|
||||||
export const LoginDocument = `
|
export const LoginDocument = `
|
||||||
|
@ -128,6 +129,7 @@ export const useLoginQuery = <
|
||||||
export const GetOffersDocument = `
|
export const GetOffersDocument = `
|
||||||
query GetOffers($auth: Auth!) {
|
query GetOffers($auth: Auth!) {
|
||||||
get_offers(auth: $auth) {
|
get_offers(auth: $auth) {
|
||||||
|
id
|
||||||
time_from_str
|
time_from_str
|
||||||
time_duration_str
|
time_duration_str
|
||||||
beds
|
beds
|
||||||
|
|
|
@ -8,6 +8,7 @@ export const login = gql`
|
||||||
export const get_offers = gql`
|
export const get_offers = gql`
|
||||||
query GetOffers($auth: Auth!) {
|
query GetOffers($auth: Auth!) {
|
||||||
get_offers(auth: $auth) {
|
get_offers(auth: $auth) {
|
||||||
|
id
|
||||||
time_from_str
|
time_from_str
|
||||||
time_duration_str
|
time_duration_str
|
||||||
beds
|
beds
|
||||||
|
|
Loading…
Reference in New Issue