From 0fdfabda73e1e0344b87fc8ff6bc6c94982549b5 Mon Sep 17 00:00:00 2001 From: winzlieb Date: Thu, 10 Mar 2022 13:57:48 +0100 Subject: [PATCH] include id property --- frontend/search/codegen/generates.ts | 46 +++++++++++++++------------- frontend/search/codegen/queries.ts | 1 + 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/frontend/search/codegen/generates.ts b/frontend/search/codegen/generates.ts index 6cb7f7b..4835097 100644 --- a/frontend/search/codegen/generates.ts +++ b/frontend/search/codegen/generates.ts @@ -18,29 +18,29 @@ export type Scalars = { /** Authentication requires either a valid mail+password combination or a jwt obtained by an earlier login. */ export type Auth = { + /** Self descriptive. */ + jwt: Scalars['String']; /** Self descriptive. */ mail: Scalars['String']; /** Self descriptive. */ password: Scalars['String']; - /** Self descriptive. */ - jwt: Scalars['String']; }; /** The type that query operations will be rooted at. */ export type 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>; /** Export an encrypted database dump */ export?: Maybe; + /** The offers that are visible for the ngo, belonging to the login */ + get_offers?: Maybe>; + /** For a username+password get a jwt containing the login:id */ + login: Login; }; /** The type that query operations will be rooted at. */ -export type QueryTypeLoginArgs = { - auth: Auth; +export type QueryTypeExportArgs = { + password: Scalars['String']; }; @@ -51,38 +51,39 @@ export type QueryTypeGet_OffersArgs = { /** The type that query operations will be rooted at. */ -export type QueryTypeExportArgs = { - password: Scalars['String']; +export type QueryTypeLoginArgs = { + auth: Auth; }; /** Export an encrypted database dump */ export type Export = { __typename?: 'export'; + err?: Maybe; /** Self descriptive. */ exit: Scalars['Int']; out?: Maybe; - err?: Maybe; }; /** The offers that are visible for the ngo, belonging to the login */ export type Get_Offers = { __typename?: 'get_offers'; - time_from_str?: Maybe; - time_duration_str?: Maybe; - beds?: Maybe; - languages?: Maybe>; - place_country?: Maybe; - place_city?: Maybe; - place_zip?: Maybe; - place_street?: Maybe; - place_street_number?: Maybe; accessible?: Maybe; animals_allowed?: Maybe; animals_present?: Maybe; + beds?: Maybe; + contact_email?: Maybe; contact_name_full?: Maybe; contact_phone?: Maybe; - contact_email?: Maybe; + id?: Maybe; + languages?: Maybe>; note?: Maybe; + place_city?: Maybe; + place_country?: Maybe; + place_street?: Maybe; + place_street_number?: Maybe; + place_zip?: Maybe; + time_duration_str?: Maybe; + time_from_str?: Maybe; }; /** 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 | 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 | 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 = ` @@ -128,6 +129,7 @@ export const useLoginQuery = < export const GetOffersDocument = ` query GetOffers($auth: Auth!) { get_offers(auth: $auth) { + id time_from_str time_duration_str beds diff --git a/frontend/search/codegen/queries.ts b/frontend/search/codegen/queries.ts index 2e95dec..ba60777 100644 --- a/frontend/search/codegen/queries.ts +++ b/frontend/search/codegen/queries.ts @@ -8,6 +8,7 @@ export const login = gql` export const get_offers = gql` query GetOffers($auth: Auth!) { get_offers(auth: $auth) { + id time_from_str time_duration_str beds