Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Sina Hashemy committed Nov 24, 2023
1 parent ad68e65 commit 1eddedb
Show file tree
Hide file tree
Showing 3 changed files with 218 additions and 8 deletions.
111 changes: 108 additions & 3 deletions lib/graphql/schema.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,40 @@ export type BizTaxBookkeepingConfirmation = {|
year: $ElementType<Scalars, 'Int'>,
|};

export type BizTaxCarUsageEuerRows = {|
__typename?: 'BizTaxCarUsageEuerRows',
row106: $ElementType<Scalars, 'Int'>,
row140: $ElementType<Scalars, 'Int'>,
row142: $ElementType<Scalars, 'Int'>,
row176: $ElementType<Scalars, 'Int'>,
|};

export type BizTaxHomeOfficeEuerRows = {|
__typename?: 'BizTaxHomeOfficeEuerRows',
row172: $ElementType<Scalars, 'Int'>,
row185: $ElementType<Scalars, 'Int'>,
|};

export type BizTaxQuestionnairesEuer = {|
__typename?: 'BizTaxQuestionnairesEuer',
carUsage: BizTaxCarUsageEuerRows,
homeOffice: BizTaxHomeOfficeEuerRows,
travelExpenses: BizTaxTravelExpensesEuerRows,
|};

export type BizTaxTravelExpensesEuerRows = {|
__typename?: 'BizTaxTravelExpensesEuerRows',
row147: $ElementType<Scalars, 'Int'>,
row171: $ElementType<Scalars, 'Int'>,
row176: $ElementType<Scalars, 'Int'>,
|};

export type BoundDevice = {|
__typename?: 'BoundDevice',
id: $ElementType<Scalars, 'String'>,
name: $ElementType<Scalars, 'String'>,
|};

/** Business Address of a Kontax User */
export type BusinessAddress = {|
__typename?: 'BusinessAddress',
Expand Down Expand Up @@ -950,6 +984,18 @@ export const DeviceActivityTypeValues = Object.freeze({

export type DeviceActivityType = $Values<typeof DeviceActivityTypeValues>;

/** Device binding attempts */
export type DeviceBindingRequest = {|
__typename?: 'DeviceBindingRequest',
address: $ElementType<Scalars, 'String'>,
confirmedAt?: ?$ElementType<Scalars, 'DateTime'>,
createdAt: $ElementType<Scalars, 'DateTime'>,
deviceName: $ElementType<Scalars, 'String'>,
id: $ElementType<Scalars, 'ID'>,
ipAddress: $ElementType<Scalars, 'String'>,
rejectedAt?: ?$ElementType<Scalars, 'DateTime'>,
|};

export const DeviceConsentEventTypeValues = Object.freeze({
Approved: 'APPROVED',
Rejected: 'REJECTED'
Expand Down Expand Up @@ -1125,6 +1171,12 @@ export type FormDataPair = {|
value: $ElementType<Scalars, 'String'>,
|};

export type FrodaLendingEligibility = {|
__typename?: 'FrodaLendingEligibility',
canRetryOn?: ?$ElementType<Scalars, 'DateTime'>,
eligible: $ElementType<Scalars, 'Boolean'>,
|};

export const GenderValues = Object.freeze({
Female: 'FEMALE',
Male: 'MALE'
Expand Down Expand Up @@ -1477,6 +1529,8 @@ export type Mutation = {|
createContact: Contact,
/** Creates a DATEV export */
createDatevExport: DatevExport,
/** Create device binding request */
createDeviceBindingRequest: DeviceBindingRequest,
/** Creates a draft external transaction entry */
createDraftTransaction: CreateDraftTransactionResponse,
/** The logo a user can add to his invoice. The path to it is stored in invoiceSettings */
Expand All @@ -1500,6 +1554,8 @@ export type Mutation = {|
declineDeclaration: DeclarationDecline,
/** Remove an Asset */
deleteAsset: MutationResult,
/** Delete bound device */
deleteBoundDevice: $ElementType<Scalars, 'Boolean'>,
/** Delete business asset */
deleteBusinessAsset: MutationResult,
/** Delete an OAuth2 client */
Expand Down Expand Up @@ -1537,8 +1593,12 @@ export type Mutation = {|
finalizeTransactionAssetUpload: TransactionAsset,
/** Exports list of receipts for given time frame */
generateReceiptExport: ReceiptExportResult,
/** Check if user is eligible for lending */
getLendingEligibility: FrodaLendingEligibility,
initDirectDebitRefund: AuthorizeThroughDeviceSigningOrMobileNumberResponse,
matchEmailDocumentToTransaction: MutationResult,
/** Onboards user if needed */
onboardUser: $ElementType<Scalars, 'String'>,
postponeQuestionnaireAnswer: Questionnaire,
refundDirectDebit: MutationResult,
/** Close and order new card. Call when customer's card is damaged */
Expand All @@ -1547,6 +1607,8 @@ export type Mutation = {|
replaceCard: Card,
/** Adds card to Apple/Google Pay wallet */
requestCardPushProvisioning: AuthorizeChangeRequestResponse,
/** Request access url */
requestFrodaAccessUrl?: ?$ElementType<Scalars, 'String'>,
/** Create a new identification if applicable */
requestIdentification: IdentificationDetails,
/** Create Overdraft Application - only available for Kontist Application */
Expand Down Expand Up @@ -1575,6 +1637,8 @@ export type Mutation = {|
updateConsentForDeviceMonitoring?: ?MutationResult,
/** Update contact */
updateContact: Contact,
/** Update device binding request */
updateDeviceBindingRequest: $ElementType<Scalars, 'Boolean'>,
/** Updates document meta */
updateDocument: Document,
/** Updates draft external transaction entry. Returns null if finalized transaction was created */
Expand Down Expand Up @@ -1807,6 +1871,11 @@ export type MutationCreateDatevExportArgs = {|
|};


export type MutationCreateDeviceBindingRequestArgs = {|
deviceName: $ElementType<Scalars, 'String'>,
|};


export type MutationCreateDraftTransactionArgs = {|
fileName: $ElementType<Scalars, 'String'>,
|};
Expand Down Expand Up @@ -1888,6 +1957,11 @@ export type MutationDeleteAssetArgs = {|
|};


export type MutationDeleteBoundDeviceArgs = {|
deviceId: $ElementType<Scalars, 'String'>,
|};


export type MutationDeleteBusinessAssetArgs = {|
id: $ElementType<Scalars, 'ID'>,
|};
Expand Down Expand Up @@ -2125,6 +2199,12 @@ export type MutationUpdateContactArgs = {|
|};


export type MutationUpdateDeviceBindingRequestArgs = {|
id: $ElementType<Scalars, 'String'>,
isConfirmation: $ElementType<Scalars, 'Boolean'>,
|};


export type MutationUpdateDocumentArgs = {|
id: $ElementType<Scalars, 'ID'>,
metadata?: ?UpdateDocumentMetadata,
Expand Down Expand Up @@ -2672,7 +2752,6 @@ export const PurchaseStateValues = Object.freeze({
export type PurchaseState = $Values<typeof PurchaseStateValues>;

export const PurchaseTypeValues = Object.freeze({
Accounting: 'ACCOUNTING',
Basic: 'BASIC',
BasicInitial: 'BASIC_INITIAL',
BizTax: 'BIZ_TAX',
Expand Down Expand Up @@ -2721,12 +2800,16 @@ export type Query = {|
draftTransactions: Array<DraftTransaction>,
/** Get all released generic features, that are needed before user creation */
genericFeatures: Array<GenericFeature>,
/** Get device binding request */
getDeviceBindingRequest?: ?DeviceBindingRequest,
/** Get bank information for IBAN */
getIBANInformation: IbanInformation,
/** Get all existing receipt exports requested by the user */
getReceiptExports: Array<ReceiptExport>,
/** Determines if user device has restricted key added */
hasDeviceRestrictedKey: $ElementType<Scalars, 'Boolean'>,
/** Returns list of bound devices */
listBoundDevices: Array<BoundDevice>,
listPaymentMethods: Array<PaymentMethod>,
naceCodes: Array<NaceCode>,
status: SystemStatus,
Expand All @@ -2746,6 +2829,11 @@ export type QueryContactsArgs = {|
|};


export type QueryGetDeviceBindingRequestArgs = {|
id?: ?$ElementType<Scalars, 'String'>,
|};


export type QueryGetIbanInformationArgs = {|
iban: $ElementType<Scalars, 'String'>,
|};
Expand All @@ -2762,6 +2850,7 @@ export type QueryTermsAndConditionsArgs = {|

export type Questionnaire = {|
__typename?: 'Questionnaire',
answers: Array<QuestionnaireAnswer>,
completedAt?: ?$ElementType<Scalars, 'DateTime'>,
context?: ?$ElementType<Scalars, 'JSON'>,
documents: Array<QuestionnaireDocument>,
Expand All @@ -2776,6 +2865,11 @@ export type Questionnaire = {|
|};


export type QuestionnaireAnswersArgs = {|
questionNames?: ?Array<$ElementType<Scalars, 'String'>>,
|};


export type QuestionnaireNextQuestionArgs = {|
includePostponed?: ?$ElementType<Scalars, 'Boolean'>,
|};
Expand Down Expand Up @@ -3463,6 +3557,7 @@ export type TermsAndConditions = {|
|};

export const TermsAndConditionsNameValues = Object.freeze({
InstantCreditTransfer: 'INSTANT_CREDIT_TRANSFER',
TopUp: 'TOP_UP'
});

Expand Down Expand Up @@ -3622,6 +3717,7 @@ export type TransactionCondition = {|
bookingDate_lt?: ?$ElementType<Scalars, 'DateTime'>,
bookingDate_lte?: ?$ElementType<Scalars, 'DateTime'>,
bookingDate_ne?: ?$ElementType<Scalars, 'DateTime'>,
categoryCode_exist?: ?$ElementType<Scalars, 'Boolean'>,
category_eq?: ?TransactionCategory,
category_in?: ?Array<TransactionCategory>,
iban_eq?: ?$ElementType<Scalars, 'String'>,
Expand Down Expand Up @@ -3650,6 +3746,7 @@ export type TransactionCondition = {|
valutaDate_lte?: ?$ElementType<Scalars, 'DateTime'>,
valutaDate_ne?: ?$ElementType<Scalars, 'DateTime'>,
vatAssets_exist?: ?$ElementType<Scalars, 'Boolean'>,
vatCategoryCode_exist?: ?$ElementType<Scalars, 'Boolean'>,
|};

export type TransactionFee = {|
Expand Down Expand Up @@ -3701,6 +3798,7 @@ export type TransactionFilter = {|
bookingDate_lt?: ?$ElementType<Scalars, 'DateTime'>,
bookingDate_lte?: ?$ElementType<Scalars, 'DateTime'>,
bookingDate_ne?: ?$ElementType<Scalars, 'DateTime'>,
categoryCode_exist?: ?$ElementType<Scalars, 'Boolean'>,
category_eq?: ?TransactionCategory,
category_in?: ?Array<TransactionCategory>,
conditions?: ?Array<TransactionCondition>,
Expand Down Expand Up @@ -3730,6 +3828,7 @@ export type TransactionFilter = {|
valutaDate_lte?: ?$ElementType<Scalars, 'DateTime'>,
valutaDate_ne?: ?$ElementType<Scalars, 'DateTime'>,
vatAssets_exist?: ?$ElementType<Scalars, 'Boolean'>,
vatCategoryCode_exist?: ?$ElementType<Scalars, 'Boolean'>,
|};

export type TransactionForAccountingView = {|
Expand Down Expand Up @@ -4062,6 +4161,8 @@ export type UpdateTransferInput = {|
personalNote?: ?$ElementType<Scalars, 'String'>,
/** The purpose of the Standing Order - 140 max characters, if not specified with the update, it will be set to null */
purpose?: ?$ElementType<Scalars, 'String'>,
/** Unique id of transfer session */
reference?: ?$ElementType<Scalars, 'String'>,
/** The reoccurrence type of the payments for Standing Orders */
reoccurrence?: ?StandingOrderReoccurrenceType,
/** The type of transfer to update, currently only Standing Orders are supported */
Expand Down Expand Up @@ -4094,6 +4195,7 @@ export type User = {|
birthDate?: ?$ElementType<Scalars, 'DateTime'>,
birthPlace?: ?$ElementType<Scalars, 'String'>,
bizTaxBookkeepingConfirmation?: ?BizTaxBookkeepingConfirmation,
bizTaxQuestionnairesEuer: BizTaxQuestionnairesEuer,
businessAddress?: ?UserBusinessAddress,
/** User's business addresses */
businessAddresses: Array<BusinessAddress>,
Expand Down Expand Up @@ -4241,6 +4343,11 @@ export type UserBizTaxBookkeepingConfirmationArgs = {|
|};


export type UserBizTaxQuestionnairesEuerArgs = {|
year: $ElementType<Scalars, 'Int'>,
|};


export type UserBusinessAssetArgs = {|
businessAssetId: $ElementType<Scalars, 'ID'>,
|};
Expand Down Expand Up @@ -4525,8 +4632,6 @@ export type UserTour = {|
export type UserUpdateInput = {|
/** The version of terms user has accepted */
acceptedTermsVersion?: ?$ElementType<Scalars, 'String'>,
/** Indicates if user started upgrading to accounting plan */
accountingOnboardingStarted?: ?$ElementType<Scalars, 'Boolean'>,
accountingTool?: ?$ElementType<Scalars, 'String'>,
adjustAdvancePayments?: ?$ElementType<Scalars, 'Boolean'>,
birthDate?: ?$ElementType<Scalars, 'DateTime'>,
Expand Down
Loading

0 comments on commit 1eddedb

Please sign in to comment.