Comparing version 0.28.2 to 0.28.3
@@ -9,3 +9,7 @@ # Changelog | ||
## [0.28.3] - 2020-05-06 | ||
### Changed | ||
- Extended Overdraft with requestedAt field | ||
## [0.28.2] - 2020-05-05 | ||
@@ -12,0 +16,0 @@ |
@@ -18,2 +18,3 @@ export declare type Maybe<T> = T | null; | ||
balance: Scalars['Int']; | ||
canCreateOverdraft: Scalars['Boolean']; | ||
cardHolderRepresentations: Array<Scalars['String']>; | ||
@@ -37,2 +38,7 @@ transfers: TransfersConnection; | ||
overdraft?: Maybe<Overdraft>; | ||
/** | ||
* Wirecard details | ||
* @deprecated This data will be removed in an upcoming release. Do not use it for any new features. | ||
*/ | ||
wirecard: WirecardDetails; | ||
}; | ||
@@ -69,2 +75,10 @@ /** The bank account of the current user */ | ||
}; | ||
export declare enum AccountState { | ||
Free = "FREE", | ||
Trial = "TRIAL", | ||
Premium = "PREMIUM", | ||
Blocked = "BLOCKED", | ||
FreeOld = "FREE_OLD", | ||
PremiumOld = "PREMIUM_OLD" | ||
} | ||
export declare type AccountStats = { | ||
@@ -95,4 +109,17 @@ __typename?: 'AccountStats'; | ||
}; | ||
export declare type AvailableStatements = { | ||
__typename?: 'AvailableStatements'; | ||
year: Scalars['Int']; | ||
months: Array<Scalars['Int']>; | ||
}; | ||
export declare type Banner = { | ||
__typename?: 'Banner'; | ||
name: BannerName; | ||
dismissedAt?: Maybe<Scalars['DateTime']>; | ||
isVisible: Scalars['Boolean']; | ||
}; | ||
export declare enum BannerName { | ||
Overdraft = "OVERDRAFT" | ||
Overdraft = "OVERDRAFT", | ||
Bookkeeping = "BOOKKEEPING", | ||
FriendReferral = "FRIEND_REFERRAL" | ||
} | ||
@@ -155,2 +182,10 @@ export declare enum BaseOperator { | ||
}; | ||
export declare enum CardMigrationStatus { | ||
Required = "REQUIRED", | ||
Requested = "REQUESTED", | ||
RequestedAndLocked = "REQUESTED_AND_LOCKED", | ||
RequestedAndClosed = "REQUESTED_AND_CLOSED", | ||
Completed = "COMPLETED", | ||
NotRequired = "NOT_REQUIRED" | ||
} | ||
export declare type CardSettings = { | ||
@@ -308,2 +343,15 @@ __typename?: 'CardSettings'; | ||
} | ||
export declare type Icon = { | ||
__typename?: 'Icon'; | ||
uri: Scalars['String']; | ||
}; | ||
export declare type IdentificationDetails = { | ||
__typename?: 'IdentificationDetails'; | ||
/** The link to use for IDNow identification */ | ||
link?: Maybe<Scalars['String']>; | ||
/** The user's IDNow identification status */ | ||
status?: Maybe<IdentificationStatus>; | ||
/** The number of identifications attempted by the user */ | ||
attempts: Scalars['Int']; | ||
}; | ||
export declare enum IdentificationStatus { | ||
@@ -320,2 +368,7 @@ Pending = "PENDING", | ||
} | ||
export declare enum IntegrationType { | ||
Lexoffice = "LEXOFFICE", | ||
Debitoor = "DEBITOOR", | ||
Fastbill = "FASTBILL" | ||
} | ||
export declare enum InvoiceStatus { | ||
@@ -327,2 +380,8 @@ Open = "OPEN", | ||
} | ||
export declare type Money = { | ||
__typename?: 'Money'; | ||
amount: Scalars['Int']; | ||
fullAmount?: Maybe<Scalars['Int']>; | ||
discountPercentage?: Maybe<Scalars['Int']>; | ||
}; | ||
export declare type Mutation = { | ||
@@ -351,4 +410,2 @@ __typename?: 'Mutation'; | ||
confirmTransfers: BatchTransfer; | ||
/** Update user's subscription plan */ | ||
updateSubscriptionPlan: UpdateSubscriptionPlanResult; | ||
whitelistCard: WhitelistCardResponse; | ||
@@ -382,2 +439,4 @@ confirmFraud: ConfirmFraudResponse; | ||
requestOverdraft?: Maybe<Overdraft>; | ||
/** Activate Overdraft Application - only available for Kontist Application */ | ||
activateOverdraft?: Maybe<Overdraft>; | ||
/** Create transaction splits */ | ||
@@ -389,2 +448,6 @@ createTransactionSplits: Transaction; | ||
deleteTransactionSplits: Transaction; | ||
/** Subscribe user to a plan */ | ||
subscribeToPlan: UserSubscription; | ||
/** Update user's subscription plan */ | ||
updateSubscriptionPlan: UpdateSubscriptionPlanResult; | ||
dismissBanner: MutationResult; | ||
@@ -430,5 +493,2 @@ }; | ||
}; | ||
export declare type MutationUpdateSubscriptionPlanArgs = { | ||
newPlan: PurchaseType; | ||
}; | ||
export declare type MutationWhitelistCardArgs = { | ||
@@ -502,2 +562,8 @@ fraudCaseId: Scalars['String']; | ||
}; | ||
export declare type MutationSubscribeToPlanArgs = { | ||
type: PurchaseType; | ||
}; | ||
export declare type MutationUpdateSubscriptionPlanArgs = { | ||
newPlan: PurchaseType; | ||
}; | ||
export declare type MutationDismissBannerArgs = { | ||
@@ -767,2 +833,4 @@ name: BannerName; | ||
limit?: Maybe<Scalars['Int']>; | ||
/** Overdraft request date */ | ||
requestedAt: Scalars['DateTime']; | ||
}; | ||
@@ -791,2 +859,6 @@ export declare enum OverdraftApplicationStatus { | ||
} | ||
export declare enum PurchaseState { | ||
Processed = "PROCESSED", | ||
Pending = "PENDING" | ||
} | ||
export declare enum PurchaseType { | ||
@@ -805,2 +877,9 @@ BasicInitial = "BASIC_INITIAL", | ||
}; | ||
export declare type ReferralDetails = { | ||
__typename?: 'ReferralDetails'; | ||
code?: Maybe<Scalars['String']>; | ||
link?: Maybe<Scalars['String']>; | ||
/** Amount in euros granted to user and his referee */ | ||
bonusAmount: Scalars['Int']; | ||
}; | ||
export declare enum ScopeType { | ||
@@ -816,3 +895,4 @@ Offline = "OFFLINE", | ||
Clients = "CLIENTS", | ||
Overdraft = "OVERDRAFT" | ||
Overdraft = "OVERDRAFT", | ||
Banners = "BANNERS" | ||
} | ||
@@ -853,2 +933,24 @@ export declare type SepaTransfer = { | ||
}; | ||
export declare type SubscriptionFeature = { | ||
__typename?: 'SubscriptionFeature'; | ||
title: Scalars['String']; | ||
icon?: Maybe<Icon>; | ||
}; | ||
export declare type SubscriptionFeatureGroup = { | ||
__typename?: 'SubscriptionFeatureGroup'; | ||
title?: Maybe<Scalars['String']>; | ||
icon?: Maybe<Icon>; | ||
features: Array<SubscriptionFeature>; | ||
}; | ||
export declare type SubscriptionPlan = { | ||
__typename?: 'SubscriptionPlan'; | ||
type: PurchaseType; | ||
subtitle?: Maybe<Scalars['String']>; | ||
fee: Money; | ||
title: Scalars['String']; | ||
description: Scalars['String']; | ||
button: Scalars['String']; | ||
featuresToggleLabel?: Maybe<Scalars['String']>; | ||
featureGroups: Array<SubscriptionFeatureGroup>; | ||
}; | ||
export declare type SystemStatus = { | ||
@@ -859,2 +961,5 @@ __typename?: 'SystemStatus'; | ||
}; | ||
export declare enum TaxPaymentFrequency { | ||
Quarterly = "QUARTERLY" | ||
} | ||
export declare type TaxYearSetting = { | ||
@@ -1182,12 +1287,25 @@ __typename?: 'TaxYearSetting'; | ||
email: Scalars['String']; | ||
/** @deprecated This field will be removed in an upcoming release */ | ||
createdAt: Scalars['DateTime']; | ||
/** @deprecated This field will be removed in an upcoming release */ | ||
vatCutoffLine?: Maybe<Scalars['DateTime']>; | ||
/** @deprecated This field will be removed in an upcoming release */ | ||
taxCutoffLine?: Maybe<Scalars['DateTime']>; | ||
/** @deprecated This field will be removed in an upcoming release and should now be queried from "viewer.taxDetails.vatPaymentFrequency" */ | ||
vatPaymentFrequency?: Maybe<PaymentFrequency>; | ||
taxPaymentFrequency?: Maybe<PaymentFrequency>; | ||
/** @deprecated This field will be removed in an upcoming release and should now be queried from "viewer.taxDetails.taxPaymentFrequency" */ | ||
taxPaymentFrequency?: Maybe<TaxPaymentFrequency>; | ||
/** @deprecated This field will be removed in an upcoming release and should now be queried from "viewer.taxDetails.taxRate" */ | ||
taxRate?: Maybe<Scalars['Int']>; | ||
/** @deprecated This field will be removed in an upcoming release and should now be queried from "viewer.taxDetails.vatRate" */ | ||
vatRate?: Maybe<Scalars['Int']>; | ||
/** The user's IDNow identification status */ | ||
/** | ||
* The user's IDNow identification status | ||
* @deprecated This field will be removed in an upcoming release and should now be queried from "viewer.identification.status" | ||
*/ | ||
identificationStatus?: Maybe<IdentificationStatus>; | ||
/** The link to use for IDNow identification */ | ||
/** | ||
* The link to use for IDNow identification | ||
* @deprecated This field will be removed in an upcoming release and should now be queried from "viewer.identification.link" | ||
*/ | ||
identificationLink?: Maybe<Scalars['String']>; | ||
@@ -1217,5 +1335,12 @@ gender?: Maybe<Gender>; | ||
otherEconomicSector?: Maybe<Scalars['String']>; | ||
/** @deprecated This field will be removed in an upcoming release and should now be queried from "viewer.taxDetails.vatNumber" */ | ||
vatNumber?: Maybe<Scalars['String']>; | ||
/** The user's referral code to use for promotional purposes */ | ||
/** | ||
* The user's referral code to use for promotional purposes | ||
* @deprecated This field will be removed in an upcoming release and should now be queried from "viewer.referral.code" | ||
*/ | ||
referralCode?: Maybe<Scalars['String']>; | ||
/** The current state of user's Kontist account based on his subscription plan */ | ||
accountState?: Maybe<AccountState>; | ||
businessTradingName?: Maybe<Scalars['String']>; | ||
/** The list of all OAuth2 clients for the current user */ | ||
@@ -1226,2 +1351,20 @@ clients: Array<Client>; | ||
mainAccount?: Maybe<Account>; | ||
/** The plans a user has subscribed to */ | ||
subscriptions: Array<UserSubscription>; | ||
/** The state of banners in Kontist App for the user */ | ||
banners?: Maybe<Array<Banner>>; | ||
/** Bookkeeping partners information for user */ | ||
integrations: Array<UserIntegration>; | ||
/** Information about the plans a user can subscribe to */ | ||
availablePlans: Array<SubscriptionPlan>; | ||
/** Tax details for user */ | ||
taxDetails: UserTaxDetails; | ||
/** Active user features */ | ||
features: Array<Scalars['String']>; | ||
/** Referral details for user */ | ||
referral: ReferralDetails; | ||
/** IDNow identification details for user */ | ||
identification: IdentificationDetails; | ||
/** User metadata. These fields are likely to get frequently updated or changed. */ | ||
metadata: UserMetadata; | ||
}; | ||
@@ -1231,2 +1374,52 @@ export declare type UserClientArgs = { | ||
}; | ||
export declare type UserMetadataArgs = { | ||
os?: Maybe<UserOs>; | ||
}; | ||
export declare type UserIntegration = { | ||
__typename?: 'UserIntegration'; | ||
type: IntegrationType; | ||
hasAccount: Scalars['Boolean']; | ||
isConnected: Scalars['Boolean']; | ||
}; | ||
export declare type UserMetadata = { | ||
__typename?: 'UserMetadata'; | ||
currentTermsAccepted: Scalars['Boolean']; | ||
acceptedTermsVersion?: Maybe<Scalars['String']>; | ||
/** List of months user can request a bank statement for */ | ||
availableStatements?: Maybe<Array<AvailableStatements>>; | ||
/** Is user's Kontist account closed */ | ||
isAccountClosed: Scalars['Boolean']; | ||
/** User status for VISA card migration */ | ||
cardMigrationStatus: CardMigrationStatus; | ||
currentTermsVersion: Scalars['String']; | ||
intercomDigest?: Maybe<Scalars['String']>; | ||
directDebitMandateAccepted: Scalars['Boolean']; | ||
marketingConsentAccepted: Scalars['Boolean']; | ||
phoneNumberVerificationRequired: Scalars['Boolean']; | ||
signupCompleted: Scalars['Boolean']; | ||
}; | ||
export declare enum UserOs { | ||
Ios = "IOS", | ||
Android = "ANDROID" | ||
} | ||
export declare type UserSubscription = { | ||
__typename?: 'UserSubscription'; | ||
/** The type of the plans a user has subscribed to */ | ||
type: PurchaseType; | ||
/** The state of the subscription */ | ||
state: PurchaseState; | ||
}; | ||
export declare type UserTaxDetails = { | ||
__typename?: 'UserTaxDetails'; | ||
adjustAdvancePayments: Scalars['Boolean']; | ||
lastTaxPaymentDate?: Maybe<Scalars['DateTime']>; | ||
lastVatPaymentDate?: Maybe<Scalars['DateTime']>; | ||
vatPaymentFrequency?: Maybe<PaymentFrequency>; | ||
/** @deprecated This field will be removed in an upcoming release, do not rely on it for any new code */ | ||
taxPaymentFrequency?: Maybe<TaxPaymentFrequency>; | ||
taxRate?: Maybe<Scalars['Int']>; | ||
vatRate?: Maybe<Scalars['Int']>; | ||
vatNumber?: Maybe<Scalars['String']>; | ||
needsToProvideTaxIdentification: Scalars['Boolean']; | ||
}; | ||
export declare type WhitelistCardResponse = { | ||
@@ -1238,1 +1431,13 @@ __typename?: 'WhitelistCardResponse'; | ||
}; | ||
export declare enum WirecardCardStatus { | ||
NotOrdered = "NOT_ORDERED", | ||
Ordered = "ORDERED", | ||
Issued = "ISSUED" | ||
} | ||
export declare type WirecardDetails = { | ||
__typename?: 'WirecardDetails'; | ||
cardStatus: WirecardCardStatus; | ||
directDebitMandateAccepted: Scalars['Boolean']; | ||
hasAccount: Scalars['Boolean']; | ||
plasticCardOrderedAt?: Maybe<Scalars['DateTime']>; | ||
}; |
@@ -21,2 +21,3 @@ /* @flow */ | ||
balance: $ElementType<Scalars, 'Int'>, | ||
canCreateOverdraft: $ElementType<Scalars, 'Boolean'>, | ||
cardHolderRepresentations: Array<$ElementType<Scalars, 'String'>>, | ||
@@ -40,2 +41,4 @@ transfers: TransfersConnection, | ||
overdraft?: ?Overdraft, | ||
/** Wirecard details */ | ||
wirecard: WirecardDetails, | ||
|}; | ||
@@ -83,2 +86,14 @@ | ||
export const AccountStateValues = Object.freeze({ | ||
Free: 'FREE', | ||
Trial: 'TRIAL', | ||
Premium: 'PREMIUM', | ||
Blocked: 'BLOCKED', | ||
FreeOld: 'FREE_OLD', | ||
PremiumOld: 'PREMIUM_OLD' | ||
}); | ||
export type AccountState = $Values<typeof AccountStateValues>; | ||
export type AccountStats = {| | ||
@@ -110,4 +125,19 @@ __typename?: 'AccountStats', | ||
export type AvailableStatements = {| | ||
__typename?: 'AvailableStatements', | ||
year: $ElementType<Scalars, 'Int'>, | ||
months: Array<$ElementType<Scalars, 'Int'>>, | ||
|}; | ||
export type Banner = {| | ||
__typename?: 'Banner', | ||
name: BannerName, | ||
dismissedAt?: ?$ElementType<Scalars, 'DateTime'>, | ||
isVisible: $ElementType<Scalars, 'Boolean'>, | ||
|}; | ||
export const BannerNameValues = Object.freeze({ | ||
Overdraft: 'OVERDRAFT' | ||
Overdraft: 'OVERDRAFT', | ||
Bookkeeping: 'BOOKKEEPING', | ||
FriendReferral: 'FRIEND_REFERRAL' | ||
}); | ||
@@ -193,2 +223,14 @@ | ||
export const CardMigrationStatusValues = Object.freeze({ | ||
Required: 'REQUIRED', | ||
Requested: 'REQUESTED', | ||
RequestedAndLocked: 'REQUESTED_AND_LOCKED', | ||
RequestedAndClosed: 'REQUESTED_AND_CLOSED', | ||
Completed: 'COMPLETED', | ||
NotRequired: 'NOT_REQUIRED' | ||
}); | ||
export type CardMigrationStatus = $Values<typeof CardMigrationStatusValues>; | ||
export type CardSettings = {| | ||
@@ -384,2 +426,17 @@ __typename?: 'CardSettings', | ||
export type Icon = {| | ||
__typename?: 'Icon', | ||
uri: $ElementType<Scalars, 'String'>, | ||
|}; | ||
export type IdentificationDetails = {| | ||
__typename?: 'IdentificationDetails', | ||
/** The link to use for IDNow identification */ | ||
link?: ?$ElementType<Scalars, 'String'>, | ||
/** The user's IDNow identification status */ | ||
status?: ?IdentificationStatus, | ||
/** The number of identifications attempted by the user */ | ||
attempts: $ElementType<Scalars, 'Int'>, | ||
|}; | ||
export const IdentificationStatusValues = Object.freeze({ | ||
@@ -400,2 +457,11 @@ Pending: 'PENDING', | ||
export const IntegrationTypeValues = Object.freeze({ | ||
Lexoffice: 'LEXOFFICE', | ||
Debitoor: 'DEBITOOR', | ||
Fastbill: 'FASTBILL' | ||
}); | ||
export type IntegrationType = $Values<typeof IntegrationTypeValues>; | ||
export const InvoiceStatusValues = Object.freeze({ | ||
@@ -411,2 +477,9 @@ Open: 'OPEN', | ||
export type Money = {| | ||
__typename?: 'Money', | ||
amount: $ElementType<Scalars, 'Int'>, | ||
fullAmount?: ?$ElementType<Scalars, 'Int'>, | ||
discountPercentage?: ?$ElementType<Scalars, 'Int'>, | ||
|}; | ||
export type Mutation = {| | ||
@@ -416,3 +489,3 @@ __typename?: 'Mutation', | ||
cancelTransfer: ConfirmationRequestOrTransfer, | ||
/** Confirm a Standing Order cancelation */ | ||
/** Confirm a Standing Order cancellation */ | ||
confirmCancelTransfer: Transfer, | ||
@@ -436,4 +509,2 @@ /** Create an OAuth2 client */ | ||
confirmTransfers: BatchTransfer, | ||
/** Update user's subscription plan */ | ||
updateSubscriptionPlan: UpdateSubscriptionPlanResult, | ||
whitelistCard: WhitelistCardResponse, | ||
@@ -467,2 +538,4 @@ confirmFraud: ConfirmFraudResponse, | ||
requestOverdraft?: ?Overdraft, | ||
/** Activate Overdraft Application - only available for Kontist Application */ | ||
activateOverdraft?: ?Overdraft, | ||
/** Create transaction splits */ | ||
@@ -474,2 +547,6 @@ createTransactionSplits: Transaction, | ||
deleteTransactionSplits: Transaction, | ||
/** Subscribe user to a plan */ | ||
subscribeToPlan: UserSubscription, | ||
/** Update user's subscription plan */ | ||
updateSubscriptionPlan: UpdateSubscriptionPlanResult, | ||
dismissBanner: MutationResult, | ||
@@ -539,7 +616,2 @@ |}; | ||
export type MutationUpdateSubscriptionPlanArgs = {| | ||
newPlan: PurchaseType, | ||
|}; | ||
export type MutationWhitelistCardArgs = {| | ||
@@ -647,2 +719,12 @@ fraudCaseId: $ElementType<Scalars, 'String'>, | ||
export type MutationSubscribeToPlanArgs = {| | ||
type: PurchaseType, | ||
|}; | ||
export type MutationUpdateSubscriptionPlanArgs = {| | ||
newPlan: PurchaseType, | ||
|}; | ||
export type MutationDismissBannerArgs = {| | ||
@@ -918,2 +1000,4 @@ name: BannerName, | ||
limit?: ?$ElementType<Scalars, 'Int'>, | ||
/** Overdraft request date */ | ||
requestedAt: $ElementType<Scalars, 'DateTime'>, | ||
|}; | ||
@@ -952,2 +1036,10 @@ | ||
export const PurchaseStateValues = Object.freeze({ | ||
Processed: 'PROCESSED', | ||
Pending: 'PENDING' | ||
}); | ||
export type PurchaseState = $Values<typeof PurchaseStateValues>; | ||
export const PurchaseTypeValues = Object.freeze({ | ||
@@ -971,2 +1063,10 @@ BasicInitial: 'BASIC_INITIAL', | ||
export type ReferralDetails = {| | ||
__typename?: 'ReferralDetails', | ||
code?: ?$ElementType<Scalars, 'String'>, | ||
link?: ?$ElementType<Scalars, 'String'>, | ||
/** Amount in euros granted to user and his referee */ | ||
bonusAmount: $ElementType<Scalars, 'Int'>, | ||
|}; | ||
export const ScopeTypeValues = Object.freeze({ | ||
@@ -982,3 +1082,4 @@ Offline: 'OFFLINE', | ||
Clients: 'CLIENTS', | ||
Overdraft: 'OVERDRAFT' | ||
Overdraft: 'OVERDRAFT', | ||
Banners: 'BANNERS' | ||
}); | ||
@@ -1037,2 +1138,27 @@ | ||
export type SubscriptionFeature = {| | ||
__typename?: 'SubscriptionFeature', | ||
title: $ElementType<Scalars, 'String'>, | ||
icon?: ?Icon, | ||
|}; | ||
export type SubscriptionFeatureGroup = {| | ||
__typename?: 'SubscriptionFeatureGroup', | ||
title?: ?$ElementType<Scalars, 'String'>, | ||
icon?: ?Icon, | ||
features: Array<SubscriptionFeature>, | ||
|}; | ||
export type SubscriptionPlan = {| | ||
__typename?: 'SubscriptionPlan', | ||
type: PurchaseType, | ||
subtitle?: ?$ElementType<Scalars, 'String'>, | ||
fee: Money, | ||
title: $ElementType<Scalars, 'String'>, | ||
description: $ElementType<Scalars, 'String'>, | ||
button: $ElementType<Scalars, 'String'>, | ||
featuresToggleLabel?: ?$ElementType<Scalars, 'String'>, | ||
featureGroups: Array<SubscriptionFeatureGroup>, | ||
|}; | ||
export type SystemStatus = {| | ||
@@ -1044,2 +1170,9 @@ __typename?: 'SystemStatus', | ||
export const TaxPaymentFrequencyValues = Object.freeze({ | ||
Quarterly: 'QUARTERLY' | ||
}); | ||
export type TaxPaymentFrequency = $Values<typeof TaxPaymentFrequencyValues>; | ||
export type TaxYearSetting = {| | ||
@@ -1413,3 +1546,3 @@ __typename?: 'TaxYearSetting', | ||
vatPaymentFrequency?: ?PaymentFrequency, | ||
taxPaymentFrequency?: ?PaymentFrequency, | ||
taxPaymentFrequency?: ?TaxPaymentFrequency, | ||
taxRate?: ?$ElementType<Scalars, 'Int'>, | ||
@@ -1447,2 +1580,5 @@ vatRate?: ?$ElementType<Scalars, 'Int'>, | ||
referralCode?: ?$ElementType<Scalars, 'String'>, | ||
/** The current state of user's Kontist account based on his subscription plan */ | ||
accountState?: ?AccountState, | ||
businessTradingName?: ?$ElementType<Scalars, 'String'>, | ||
/** The list of all OAuth2 clients for the current user */ | ||
@@ -1453,2 +1589,20 @@ clients: Array<Client>, | ||
mainAccount?: ?Account, | ||
/** The plans a user has subscribed to */ | ||
subscriptions: Array<UserSubscription>, | ||
/** The state of banners in Kontist App for the user */ | ||
banners?: ?Array<Banner>, | ||
/** Bookkeeping partners information for user */ | ||
integrations: Array<UserIntegration>, | ||
/** Information about the plans a user can subscribe to */ | ||
availablePlans: Array<SubscriptionPlan>, | ||
/** Tax details for user */ | ||
taxDetails: UserTaxDetails, | ||
/** Active user features */ | ||
features: Array<$ElementType<Scalars, 'String'>>, | ||
/** Referral details for user */ | ||
referral: ReferralDetails, | ||
/** IDNow identification details for user */ | ||
identification: IdentificationDetails, | ||
/** User metadata. These fields are likely to get frequently updated or changed. */ | ||
metadata: UserMetadata, | ||
|}; | ||
@@ -1461,2 +1615,61 @@ | ||
export type UserMetadataArgs = {| | ||
os?: ?UserOs, | ||
|}; | ||
export type UserIntegration = {| | ||
__typename?: 'UserIntegration', | ||
type: IntegrationType, | ||
hasAccount: $ElementType<Scalars, 'Boolean'>, | ||
isConnected: $ElementType<Scalars, 'Boolean'>, | ||
|}; | ||
export type UserMetadata = {| | ||
__typename?: 'UserMetadata', | ||
currentTermsAccepted: $ElementType<Scalars, 'Boolean'>, | ||
acceptedTermsVersion?: ?$ElementType<Scalars, 'String'>, | ||
/** List of months user can request a bank statement for */ | ||
availableStatements?: ?Array<AvailableStatements>, | ||
/** Is user's Kontist account closed */ | ||
isAccountClosed: $ElementType<Scalars, 'Boolean'>, | ||
/** User status for VISA card migration */ | ||
cardMigrationStatus: CardMigrationStatus, | ||
currentTermsVersion: $ElementType<Scalars, 'String'>, | ||
intercomDigest?: ?$ElementType<Scalars, 'String'>, | ||
directDebitMandateAccepted: $ElementType<Scalars, 'Boolean'>, | ||
marketingConsentAccepted: $ElementType<Scalars, 'Boolean'>, | ||
phoneNumberVerificationRequired: $ElementType<Scalars, 'Boolean'>, | ||
signupCompleted: $ElementType<Scalars, 'Boolean'>, | ||
|}; | ||
export const UserOsValues = Object.freeze({ | ||
Ios: 'IOS', | ||
Android: 'ANDROID' | ||
}); | ||
export type UserOs = $Values<typeof UserOsValues>; | ||
export type UserSubscription = {| | ||
__typename?: 'UserSubscription', | ||
/** The type of the plans a user has subscribed to */ | ||
type: PurchaseType, | ||
/** The state of the subscription */ | ||
state: PurchaseState, | ||
|}; | ||
export type UserTaxDetails = {| | ||
__typename?: 'UserTaxDetails', | ||
adjustAdvancePayments: $ElementType<Scalars, 'Boolean'>, | ||
lastTaxPaymentDate?: ?$ElementType<Scalars, 'DateTime'>, | ||
lastVatPaymentDate?: ?$ElementType<Scalars, 'DateTime'>, | ||
vatPaymentFrequency?: ?PaymentFrequency, | ||
taxPaymentFrequency?: ?TaxPaymentFrequency, | ||
taxRate?: ?$ElementType<Scalars, 'Int'>, | ||
vatRate?: ?$ElementType<Scalars, 'Int'>, | ||
vatNumber?: ?$ElementType<Scalars, 'String'>, | ||
needsToProvideTaxIdentification: $ElementType<Scalars, 'Boolean'>, | ||
|}; | ||
export type WhitelistCardResponse = {| | ||
@@ -1468,1 +1681,18 @@ __typename?: 'WhitelistCardResponse', | ||
|}; | ||
export const WirecardCardStatusValues = Object.freeze({ | ||
NotOrdered: 'NOT_ORDERED', | ||
Ordered: 'ORDERED', | ||
Issued: 'ISSUED' | ||
}); | ||
export type WirecardCardStatus = $Values<typeof WirecardCardStatusValues>; | ||
export type WirecardDetails = {| | ||
__typename?: 'WirecardDetails', | ||
cardStatus: WirecardCardStatus, | ||
directDebitMandateAccepted: $ElementType<Scalars, 'Boolean'>, | ||
hasAccount: $ElementType<Scalars, 'Boolean'>, | ||
plasticCardOrderedAt?: ?$ElementType<Scalars, 'DateTime'>, | ||
|}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var AccountState; | ||
(function (AccountState) { | ||
AccountState["Free"] = "FREE"; | ||
AccountState["Trial"] = "TRIAL"; | ||
AccountState["Premium"] = "PREMIUM"; | ||
AccountState["Blocked"] = "BLOCKED"; | ||
AccountState["FreeOld"] = "FREE_OLD"; | ||
AccountState["PremiumOld"] = "PREMIUM_OLD"; | ||
})(AccountState = exports.AccountState || (exports.AccountState = {})); | ||
var BannerName; | ||
(function (BannerName) { | ||
BannerName["Overdraft"] = "OVERDRAFT"; | ||
BannerName["Bookkeeping"] = "BOOKKEEPING"; | ||
BannerName["FriendReferral"] = "FRIEND_REFERRAL"; | ||
})(BannerName = exports.BannerName || (exports.BannerName = {})); | ||
@@ -26,2 +37,11 @@ var BaseOperator; | ||
})(CardAction = exports.CardAction || (exports.CardAction = {})); | ||
var CardMigrationStatus; | ||
(function (CardMigrationStatus) { | ||
CardMigrationStatus["Required"] = "REQUIRED"; | ||
CardMigrationStatus["Requested"] = "REQUESTED"; | ||
CardMigrationStatus["RequestedAndLocked"] = "REQUESTED_AND_LOCKED"; | ||
CardMigrationStatus["RequestedAndClosed"] = "REQUESTED_AND_CLOSED"; | ||
CardMigrationStatus["Completed"] = "COMPLETED"; | ||
CardMigrationStatus["NotRequired"] = "NOT_REQUIRED"; | ||
})(CardMigrationStatus = exports.CardMigrationStatus || (exports.CardMigrationStatus = {})); | ||
var CardStatus; | ||
@@ -92,2 +112,8 @@ (function (CardStatus) { | ||
})(IdentificationStatus = exports.IdentificationStatus || (exports.IdentificationStatus = {})); | ||
var IntegrationType; | ||
(function (IntegrationType) { | ||
IntegrationType["Lexoffice"] = "LEXOFFICE"; | ||
IntegrationType["Debitoor"] = "DEBITOOR"; | ||
IntegrationType["Fastbill"] = "FASTBILL"; | ||
})(IntegrationType = exports.IntegrationType || (exports.IntegrationType = {})); | ||
var InvoiceStatus; | ||
@@ -368,2 +394,7 @@ (function (InvoiceStatus) { | ||
})(PaymentFrequency = exports.PaymentFrequency || (exports.PaymentFrequency = {})); | ||
var PurchaseState; | ||
(function (PurchaseState) { | ||
PurchaseState["Processed"] = "PROCESSED"; | ||
PurchaseState["Pending"] = "PENDING"; | ||
})(PurchaseState = exports.PurchaseState || (exports.PurchaseState = {})); | ||
var PurchaseType; | ||
@@ -389,2 +420,3 @@ (function (PurchaseType) { | ||
ScopeType["Overdraft"] = "OVERDRAFT"; | ||
ScopeType["Banners"] = "BANNERS"; | ||
})(ScopeType = exports.ScopeType || (exports.ScopeType = {})); | ||
@@ -408,2 +440,6 @@ var SepaTransferStatus; | ||
})(Status = exports.Status || (exports.Status = {})); | ||
var TaxPaymentFrequency; | ||
(function (TaxPaymentFrequency) { | ||
TaxPaymentFrequency["Quarterly"] = "QUARTERLY"; | ||
})(TaxPaymentFrequency = exports.TaxPaymentFrequency || (exports.TaxPaymentFrequency = {})); | ||
var TransactionCategory; | ||
@@ -494,2 +530,13 @@ (function (TransactionCategory) { | ||
})(TransferType = exports.TransferType || (exports.TransferType = {})); | ||
var UserOs; | ||
(function (UserOs) { | ||
UserOs["Ios"] = "IOS"; | ||
UserOs["Android"] = "ANDROID"; | ||
})(UserOs = exports.UserOs || (exports.UserOs = {})); | ||
var WirecardCardStatus; | ||
(function (WirecardCardStatus) { | ||
WirecardCardStatus["NotOrdered"] = "NOT_ORDERED"; | ||
WirecardCardStatus["Ordered"] = "ORDERED"; | ||
WirecardCardStatus["Issued"] = "ISSUED"; | ||
})(WirecardCardStatus = exports.WirecardCardStatus || (exports.WirecardCardStatus = {})); | ||
//# sourceMappingURL=schema.js.map |
{ | ||
"name": "kontist", | ||
"version": "0.28.2", | ||
"version": "0.28.3", | ||
"description": "Kontist client SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
605708
10040