New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kontist

Package Overview
Dependencies
Maintainers
4
Versions
208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kontist - npm Package Compare versions

Comparing version 0.29.0 to 0.29.1

27

dist/lib/graphql/schema.d.ts

@@ -284,2 +284,4 @@ export declare type Maybe<T> = T | null;

purpose?: Maybe<Scalars['String']>;
/** The personal note of the SEPA Transfer - 140 max characters */
personalNote?: Maybe<Scalars['String']>;
/** The end to end ID of the SEPA Transfer */

@@ -307,2 +309,4 @@ e2eId?: Maybe<Scalars['String']>;

purpose?: Maybe<Scalars['String']>;
/** The personal note of the transfer - 140 max characters */
personalNote?: Maybe<Scalars['String']>;
/** The end to end ID of the transfer */

@@ -441,4 +445,10 @@ e2eId?: Maybe<Scalars['String']>;

setCardHolderRepresentation: Scalars['String'];
/** Categorize a transaction with an optional custom booking date for VAT or Tax categories */
/**
* Categorize a transaction with an optional custom booking date for VAT or Tax categories
* @deprecated This method will be removed in an upcoming release,
* we should now use 'updateTransaction' method instead.
*/
categorizeTransaction: Transaction;
/** Update a transaction with a category (with an optional custom booking date for VAT or Tax categories) and/or a personal note */
updateTransaction: Transaction;
/** Create Overdraft Application - only available for Kontist Application */

@@ -563,2 +573,6 @@ requestOverdraft?: Maybe<Overdraft>;

};
/**
* @deprecated This mutation will be removed in an upcoming release,
* we should now use 'MutationUpdateTransactionArgs' instead.
*/
export declare type MutationCategorizeTransactionArgs = {

@@ -569,2 +583,8 @@ id: Scalars['String'];

};
export declare type MutationUpdateTransactionArgs = {
id: Scalars['String'];
category?: Maybe<TransactionCategory>;
userSelectedBookingDate?: Maybe<Scalars['DateTime']>;
personalNote?: Maybe<Scalars['String']>;
};
export declare type MutationUpdateOverdraftArgs = {

@@ -1065,2 +1085,3 @@ offeredScreenShown?: Maybe<Scalars['Boolean']>;

userSelectedBookingDate?: Maybe<Scalars['DateTime']>;
personalNote?: Maybe<Scalars['String']>;
purpose?: Maybe<Scalars['String']>;

@@ -1248,2 +1269,4 @@ documentNumber?: Maybe<Scalars['String']>;

purpose?: Maybe<Scalars['String']>;
/** The personal note of the transfer - 140 max characters */
personalNote?: Maybe<Scalars['String']>;
/** The end to end ID of the transfer */

@@ -1338,2 +1361,4 @@ e2eId?: Maybe<Scalars['String']>;

purpose?: Maybe<Scalars['String']>;
/** The personal note of the transfer - 140 max characters */
personalNote?: Maybe<Scalars['String']>;
/** The end to end ID of the Standing Order, if not specified with the update, it will be set to null */

@@ -1340,0 +1365,0 @@ e2eId?: Maybe<Scalars['String']>;

841

dist/lib/graphql/schema.flow.js

@@ -85,7 +85,7 @@ /* @flow */

export const AccountStateValues = Object.freeze({
Free: 'FREE',
Trial: 'TRIAL',
Premium: 'PREMIUM',
Blocked: 'BLOCKED',
FreeOld: 'FREE_OLD',
Free: 'FREE',
Trial: 'TRIAL',
Premium: 'PREMIUM',
Blocked: 'BLOCKED',
FreeOld: 'FREE_OLD',
PremiumOld: 'PREMIUM_OLD'

@@ -143,4 +143,4 @@ });

export const BannerNameValues = Object.freeze({
Overdraft: 'OVERDRAFT',
Bookkeeping: 'BOOKKEEPING',
Overdraft: 'OVERDRAFT',
Bookkeeping: 'BOOKKEEPING',
FriendReferral: 'FRIEND_REFERRAL'

@@ -153,3 +153,3 @@ });

export const BaseOperatorValues = Object.freeze({
Or: 'OR',
Or: 'OR',
And: 'AND'

@@ -169,6 +169,6 @@ });

export const BatchTransferStatusValues = Object.freeze({
AuthorizationRequired: 'AUTHORIZATION_REQUIRED',
ConfirmationRequired: 'CONFIRMATION_REQUIRED',
Accepted: 'ACCEPTED',
Failed: 'FAILED',
AuthorizationRequired: 'AUTHORIZATION_REQUIRED',
ConfirmationRequired: 'CONFIRMATION_REQUIRED',
Accepted: 'ACCEPTED',
Failed: 'FAILED',
Successful: 'SUCCESSFUL'

@@ -194,4 +194,4 @@ });

export const CardActionValues = Object.freeze({
Close: 'CLOSE',
Block: 'BLOCK',
Close: 'CLOSE',
Block: 'BLOCK',
Unblock: 'UNBLOCK'

@@ -231,7 +231,7 @@ });

export const CardMigrationStatusValues = Object.freeze({
Required: 'REQUIRED',
Requested: 'REQUESTED',
RequestedAndLocked: 'REQUESTED_AND_LOCKED',
RequestedAndClosed: 'REQUESTED_AND_CLOSED',
Completed: 'COMPLETED',
Required: 'REQUIRED',
Requested: 'REQUESTED',
RequestedAndLocked: 'REQUESTED_AND_LOCKED',
RequestedAndClosed: 'REQUESTED_AND_CLOSED',
Completed: 'COMPLETED',
NotRequired: 'NOT_REQUIRED'

@@ -257,9 +257,9 @@ });

export const CardStatusValues = Object.freeze({
Processing: 'PROCESSING',
Inactive: 'INACTIVE',
Active: 'ACTIVE',
Blocked: 'BLOCKED',
BlockedBySolaris: 'BLOCKED_BY_SOLARIS',
ActivationBlockedBySolaris: 'ACTIVATION_BLOCKED_BY_SOLARIS',
Closed: 'CLOSED',
Processing: 'PROCESSING',
Inactive: 'INACTIVE',
Active: 'ACTIVE',
Blocked: 'BLOCKED',
BlockedBySolaris: 'BLOCKED_BY_SOLARIS',
ActivationBlockedBySolaris: 'ACTIVATION_BLOCKED_BY_SOLARIS',
Closed: 'CLOSED',
ClosedBySolaris: 'CLOSED_BY_SOLARIS'

@@ -272,6 +272,6 @@ });

export const CardTypeValues = Object.freeze({
VirtualVisaBusinessDebit: 'VIRTUAL_VISA_BUSINESS_DEBIT',
VisaBusinessDebit: 'VISA_BUSINESS_DEBIT',
MastercardBusinessDebit: 'MASTERCARD_BUSINESS_DEBIT',
VirtualMastercardBusinessDebit: 'VIRTUAL_MASTERCARD_BUSINESS_DEBIT',
VirtualVisaBusinessDebit: 'VIRTUAL_VISA_BUSINESS_DEBIT',
VisaBusinessDebit: 'VISA_BUSINESS_DEBIT',
MastercardBusinessDebit: 'MASTERCARD_BUSINESS_DEBIT',
VirtualMastercardBusinessDebit: 'VIRTUAL_MASTERCARD_BUSINESS_DEBIT',
VirtualVisaFreelanceDebit: 'VIRTUAL_VISA_FREELANCE_DEBIT'

@@ -297,15 +297,15 @@ });

export const CompanyTypeValues = Object.freeze({
Selbstaendig: 'SELBSTAENDIG',
Einzelunternehmer: 'EINZELUNTERNEHMER',
Freiberufler: 'FREIBERUFLER',
Gewerbetreibender: 'GEWERBETREIBENDER',
Limited: 'LIMITED',
EK: 'E_K',
Partgg: 'PARTGG',
Gbr: 'GBR',
Ohg: 'OHG',
Kg: 'KG',
Kgaa: 'KGAA',
Gmbh: 'GMBH',
GmbhUndCoKg: 'GMBH_UND_CO_KG',
Selbstaendig: 'SELBSTAENDIG',
Einzelunternehmer: 'EINZELUNTERNEHMER',
Freiberufler: 'FREIBERUFLER',
Gewerbetreibender: 'GEWERBETREIBENDER',
Limited: 'LIMITED',
EK: 'E_K',
Partgg: 'PARTGG',
Gbr: 'GBR',
Ohg: 'OHG',
Kg: 'KG',
Kgaa: 'KGAA',
Gmbh: 'GMBH',
GmbhUndCoKg: 'GMBH_UND_CO_KG',
Ug: 'UG'

@@ -359,2 +359,4 @@ });

purpose?: ?$ElementType<Scalars, 'String'>,
/** The personal note of the SEPA Transfer - 140 max characters */
personalNote?: ?$ElementType<Scalars, 'String'>,
/** The end to end ID of the SEPA Transfer */

@@ -384,2 +386,4 @@ e2eId?: ?$ElementType<Scalars, 'String'>,

purpose?: ?$ElementType<Scalars, 'String'>,
/** The personal note of the transfer - 140 max characters */
personalNote?: ?$ElementType<Scalars, 'String'>,
/** The end to end ID of the transfer */

@@ -416,3 +420,3 @@ e2eId?: ?$ElementType<Scalars, 'String'>,

export const DocumentTypeValues = Object.freeze({
Voucher: 'VOUCHER',
Voucher: 'VOUCHER',
Invoice: 'INVOICE'

@@ -425,3 +429,3 @@ });

export const GenderValues = Object.freeze({
Male: 'MALE',
Male: 'MALE',
Female: 'FEMALE'

@@ -440,5 +444,5 @@ });

export const GrantTypeValues = Object.freeze({
Password: 'PASSWORD',
AuthorizationCode: 'AUTHORIZATION_CODE',
RefreshToken: 'REFRESH_TOKEN',
Password: 'PASSWORD',
AuthorizationCode: 'AUTHORIZATION_CODE',
RefreshToken: 'REFRESH_TOKEN',
ClientCredentials: 'CLIENT_CREDENTIALS'

@@ -466,10 +470,10 @@ });

export const IdentificationStatusValues = Object.freeze({
Pending: 'PENDING',
PendingSuccessful: 'PENDING_SUCCESSFUL',
PendingFailed: 'PENDING_FAILED',
Successful: 'SUCCESSFUL',
Failed: 'FAILED',
Expired: 'EXPIRED',
Created: 'CREATED',
Aborted: 'ABORTED',
Pending: 'PENDING',
PendingSuccessful: 'PENDING_SUCCESSFUL',
PendingFailed: 'PENDING_FAILED',
Successful: 'SUCCESSFUL',
Failed: 'FAILED',
Expired: 'EXPIRED',
Created: 'CREATED',
Aborted: 'ABORTED',
Canceled: 'CANCELED'

@@ -482,4 +486,4 @@ });

export const IntegrationTypeValues = Object.freeze({
Lexoffice: 'LEXOFFICE',
Debitoor: 'DEBITOOR',
Lexoffice: 'LEXOFFICE',
Debitoor: 'DEBITOOR',
Fastbill: 'FASTBILL'

@@ -492,5 +496,5 @@ });

export const InvoiceStatusValues = Object.freeze({
Open: 'OPEN',
Closed: 'CLOSED',
Rejected: 'REJECTED',
Open: 'OPEN',
Closed: 'CLOSED',
Rejected: 'REJECTED',
Pending: 'PENDING'

@@ -558,2 +562,4 @@ });

categorizeTransaction: Transaction,
/** Update a transaction with a category (with an optional custom booking date for VAT or Tax categories) and/or a personal note */
updateTransaction: Transaction,
/** Create Overdraft Application - only available for Kontist Application */

@@ -734,2 +740,8 @@ requestOverdraft?: ?Overdraft,

export type MutationUpdateTransactionArgs = {|
id: $ElementType<Scalars, 'String'>,
category?: ?TransactionCategory,
userSelectedBookingDate?: ?$ElementType<Scalars, 'DateTime'>,
personalNote?: string,
|}

@@ -802,249 +814,249 @@ export type MutationUpdateOverdraftArgs = {|

export const NationalityValues = Object.freeze({
De: 'DE',
Ad: 'AD',
Ae: 'AE',
Af: 'AF',
Ag: 'AG',
Ai: 'AI',
Al: 'A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H',
Pk: 'PK',
Pl: 'PL',
Pm: 'PM',
Pn: 'PN',
Pr: 'PR',
Ps: 'PS',
Pt: 'PT',
Pw: 'PW',
Py: 'PY',
Qa: 'QA',
Re: 'RE',
Ro: 'RO',
Rs: 'RS',
Ru: 'RU',
Rw: 'RW',
Sa: 'SA',
Sb: 'SB',
Sc: 'SC',
Sd: 'SD',
Se: 'SE',
Sg: 'SG',
Si: 'SI',
Sj: 'SJ',
Sk: 'SK',
Sl: 'SL',
Sm: 'SM',
Sn: 'SN',
So: 'SO',
Sr: 'SR',
Ss: 'SS',
St: 'ST',
Sv: 'SV',
Sx: 'SX',
Sy: 'SY',
Sz: 'SZ',
Tc: 'TC',
Td: 'TD',
Tf: 'TF',
Tg: 'TG',
Th: 'TH',
Tj: 'TJ',
Tk: 'TK',
Tl: 'TL',
Tm: 'TM',
Tn: 'TN',
To: 'TO',
Tr: 'TR',
Tt: 'TT',
Tv: 'TV',
Tw: 'TW',
Tz: 'TZ',
Ua: 'UA',
Ug: 'UG',
Um: 'UM',
Us: 'US',
Uy: 'UY',
Uz: 'UZ',
Va: 'VA',
Vc: 'VC',
Ve: 'VE',
Vg: 'VG',
Vi: 'VI',
Vn: 'VN',
Vu: 'VU',
Wf: 'WF',
Ws: 'WS',
Xk: 'XK',
Ye: 'YE',
Yt: 'YT',
Za: 'ZA',
Zm: 'ZM',
Zw: 'ZW'

@@ -1063,7 +1075,7 @@ });

export const NotificationTypeValues = Object.freeze({
Transactions: 'TRANSACTIONS',
Statements: 'STATEMENTS',
ProductInfo: 'PRODUCT_INFO',
Tax: 'TAX',
ReceiptScanning: 'RECEIPT_SCANNING',
Transactions: 'TRANSACTIONS',
Statements: 'STATEMENTS',
ProductInfo: 'PRODUCT_INFO',
Tax: 'TAX',
ReceiptScanning: 'RECEIPT_SCANNING',
All: 'ALL'

@@ -1091,8 +1103,8 @@ });

export const OverdraftApplicationStatusValues = Object.freeze({
Created: 'CREATED',
InitialScoringPending: 'INITIAL_SCORING_PENDING',
AccountSnapshotPending: 'ACCOUNT_SNAPSHOT_PENDING',
AccountSnapshotVerificationPending: 'ACCOUNT_SNAPSHOT_VERIFICATION_PENDING',
Offered: 'OFFERED',
Rejected: 'REJECTED',
Created: 'CREATED',
InitialScoringPending: 'INITIAL_SCORING_PENDING',
AccountSnapshotPending: 'ACCOUNT_SNAPSHOT_PENDING',
AccountSnapshotVerificationPending: 'ACCOUNT_SNAPSHOT_VERIFICATION_PENDING',
Offered: 'OFFERED',
Rejected: 'REJECTED',
OverdraftCreated: 'OVERDRAFT_CREATED'

@@ -1113,5 +1125,5 @@ });

export const PaymentFrequencyValues = Object.freeze({
Monthly: 'MONTHLY',
Quarterly: 'QUARTERLY',
Yearly: 'YEARLY',
Monthly: 'MONTHLY',
Quarterly: 'QUARTERLY',
Yearly: 'YEARLY',
None: 'NONE'

@@ -1124,4 +1136,4 @@ });

export const PlatformValues = Object.freeze({
Ios: 'IOS',
Android: 'ANDROID',
Ios: 'IOS',
Android: 'ANDROID',
Web: 'WEB'

@@ -1139,3 +1151,3 @@ });

export const PurchaseStateValues = Object.freeze({
Processed: 'PROCESSED',
Processed: 'PROCESSED',
Pending: 'PENDING'

@@ -1148,6 +1160,6 @@ });

export const PurchaseTypeValues = Object.freeze({
BasicInitial: 'BASIC_INITIAL',
Basic: 'BASIC',
Premium: 'PREMIUM',
Card: 'CARD',
BasicInitial: 'BASIC_INITIAL',
Basic: 'BASIC',
Premium: 'PREMIUM',
Card: 'CARD',
Lexoffice: 'LEXOFFICE'

@@ -1175,13 +1187,13 @@ });

export const ScopeTypeValues = Object.freeze({
Offline: 'OFFLINE',
Accounts: 'ACCOUNTS',
Users: 'USERS',
Transactions: 'TRANSACTIONS',
Transfers: 'TRANSFERS',
Subscriptions: 'SUBSCRIPTIONS',
Statements: 'STATEMENTS',
Admin: 'ADMIN',
Clients: 'CLIENTS',
Overdraft: 'OVERDRAFT',
Banners: 'BANNERS',
Offline: 'OFFLINE',
Accounts: 'ACCOUNTS',
Users: 'USERS',
Transactions: 'TRANSACTIONS',
Transfers: 'TRANSFERS',
Subscriptions: 'SUBSCRIPTIONS',
Statements: 'STATEMENTS',
Admin: 'ADMIN',
Clients: 'CLIENTS',
Overdraft: 'OVERDRAFT',
Banners: 'BANNERS',
Signup: 'SIGNUP'

@@ -1211,4 +1223,4 @@ });

export const SepaTransferStatusValues = Object.freeze({
Authorized: 'AUTHORIZED',
Confirmed: 'CONFIRMED',
Authorized: 'AUTHORIZED',
Confirmed: 'CONFIRMED',
Booked: 'BOOKED'

@@ -1221,5 +1233,5 @@ });

export const StandingOrderReoccurrenceTypeValues = Object.freeze({
Monthly: 'MONTHLY',
Quarterly: 'QUARTERLY',
EverySixMonths: 'EVERY_SIX_MONTHS',
Monthly: 'MONTHLY',
Quarterly: 'QUARTERLY',
EverySixMonths: 'EVERY_SIX_MONTHS',
Annually: 'ANNUALLY'

@@ -1325,2 +1337,3 @@ });

userSelectedBookingDate?: ?$ElementType<Scalars, 'DateTime'>,
personalNote?: ?$ElementType<Scalars, 'String'>,
purpose?: ?$ElementType<Scalars, 'String'>,

@@ -1336,12 +1349,12 @@ documentNumber?: ?$ElementType<Scalars, 'String'>,

export const TransactionCategoryValues = Object.freeze({
Private: 'PRIVATE',
Vat: 'VAT',
Vat_0: 'VAT_0',
Vat_7: 'VAT_7',
Vat_19: 'VAT_19',
TaxPayment: 'TAX_PAYMENT',
VatPayment: 'VAT_PAYMENT',
TaxRefund: 'TAX_REFUND',
VatRefund: 'VAT_REFUND',
VatSaving: 'VAT_SAVING',
Private: 'PRIVATE',
Vat: 'VAT',
Vat_0: 'VAT_0',
Vat_7: 'VAT_7',
Vat_19: 'VAT_19',
TaxPayment: 'TAX_PAYMENT',
VatPayment: 'VAT_PAYMENT',
TaxRefund: 'TAX_REFUND',
VatRefund: 'VAT_REFUND',
VatSaving: 'VAT_SAVING',
TaxSaving: 'TAX_SAVING'

@@ -1399,6 +1412,6 @@ });

export const TransactionFeeStatusValues = Object.freeze({
Created: 'CREATED',
Charged: 'CHARGED',
Refunded: 'REFUNDED',
Cancelled: 'CANCELLED',
Created: 'CREATED',
Charged: 'CHARGED',
Refunded: 'REFUNDED',
Cancelled: 'CANCELLED',
RefundInitiated: 'REFUND_INITIATED'

@@ -1411,6 +1424,6 @@ });

export const TransactionFeeTypeValues = Object.freeze({
Atm: 'ATM',
ForeignTransaction: 'FOREIGN_TRANSACTION',
DirectDebitReturn: 'DIRECT_DEBIT_RETURN',
SecondReminderEmail: 'SECOND_REMINDER_EMAIL',
Atm: 'ATM',
ForeignTransaction: 'FOREIGN_TRANSACTION',
DirectDebitReturn: 'DIRECT_DEBIT_RETURN',
SecondReminderEmail: 'SECOND_REMINDER_EMAIL',
CardReplacement: 'CARD_REPLACEMENT'

@@ -1461,32 +1474,32 @@ });

export const TransactionProjectionTypeValues = Object.freeze({
CreditPresentment: 'CREDIT_PRESENTMENT',
CashManual: 'CASH_MANUAL',
Atm: 'ATM',
CancelManualLoad: 'CANCEL_MANUAL_LOAD',
CardUsage: 'CARD_USAGE',
DirectDebitAutomaticTopup: 'DIRECT_DEBIT_AUTOMATIC_TOPUP',
DirectDebitReturn: 'DIRECT_DEBIT_RETURN',
DisputeClearing: 'DISPUTE_CLEARING',
ManualLoad: 'MANUAL_LOAD',
WireTransferTopup: 'WIRE_TRANSFER_TOPUP',
TransferToBankAccount: 'TRANSFER_TO_BANK_ACCOUNT',
CancellationBooking: 'CANCELLATION_BOOKING',
CancellationDoubleBooking: 'CANCELLATION_DOUBLE_BOOKING',
CreditTransferCancellation: 'CREDIT_TRANSFER_CANCELLATION',
CurrencyTransactionCancellation: 'CURRENCY_TRANSACTION_CANCELLATION',
DirectDebit: 'DIRECT_DEBIT',
ForeignPayment: 'FOREIGN_PAYMENT',
Other: 'OTHER',
SepaCreditTransferReturn: 'SEPA_CREDIT_TRANSFER_RETURN',
SepaCreditTransfer: 'SEPA_CREDIT_TRANSFER',
SepaDirectDebitReturn: 'SEPA_DIRECT_DEBIT_RETURN',
SepaDirectDebit: 'SEPA_DIRECT_DEBIT',
Transfer: 'TRANSFER',
InternationalCreditTransfer: 'INTERNATIONAL_CREDIT_TRANSFER',
CancellationSepaDirectDebitReturn: 'CANCELLATION_SEPA_DIRECT_DEBIT_RETURN',
Rebooking: 'REBOOKING',
CancellationDirectDebit: 'CANCELLATION_DIRECT_DEBIT',
CancellationSepaCreditTransferReturn: 'CANCELLATION_SEPA_CREDIT_TRANSFER_RETURN',
CardTransaction: 'CARD_TRANSACTION',
InterestAccrued: 'INTEREST_ACCRUED',
CreditPresentment: 'CREDIT_PRESENTMENT',
CashManual: 'CASH_MANUAL',
Atm: 'ATM',
CancelManualLoad: 'CANCEL_MANUAL_LOAD',
CardUsage: 'CARD_USAGE',
DirectDebitAutomaticTopup: 'DIRECT_DEBIT_AUTOMATIC_TOPUP',
DirectDebitReturn: 'DIRECT_DEBIT_RETURN',
DisputeClearing: 'DISPUTE_CLEARING',
ManualLoad: 'MANUAL_LOAD',
WireTransferTopup: 'WIRE_TRANSFER_TOPUP',
TransferToBankAccount: 'TRANSFER_TO_BANK_ACCOUNT',
CancellationBooking: 'CANCELLATION_BOOKING',
CancellationDoubleBooking: 'CANCELLATION_DOUBLE_BOOKING',
CreditTransferCancellation: 'CREDIT_TRANSFER_CANCELLATION',
CurrencyTransactionCancellation: 'CURRENCY_TRANSACTION_CANCELLATION',
DirectDebit: 'DIRECT_DEBIT',
ForeignPayment: 'FOREIGN_PAYMENT',
Other: 'OTHER',
SepaCreditTransferReturn: 'SEPA_CREDIT_TRANSFER_RETURN',
SepaCreditTransfer: 'SEPA_CREDIT_TRANSFER',
SepaDirectDebitReturn: 'SEPA_DIRECT_DEBIT_RETURN',
SepaDirectDebit: 'SEPA_DIRECT_DEBIT',
Transfer: 'TRANSFER',
InternationalCreditTransfer: 'INTERNATIONAL_CREDIT_TRANSFER',
CancellationSepaDirectDebitReturn: 'CANCELLATION_SEPA_DIRECT_DEBIT_RETURN',
Rebooking: 'REBOOKING',
CancellationDirectDebit: 'CANCELLATION_DIRECT_DEBIT',
CancellationSepaCreditTransferReturn: 'CANCELLATION_SEPA_CREDIT_TRANSFER_RETURN',
CardTransaction: 'CARD_TRANSACTION',
InterestAccrued: 'INTEREST_ACCRUED',
CancellationInterestAccrued: 'CANCELLATION_INTEREST_ACCRUED'

@@ -1535,2 +1548,4 @@ });

purpose?: ?$ElementType<Scalars, 'String'>,
/** The personal note of the transfer - 140 max characters */
personalNote?: ?$ElementType<Scalars, 'String'>,
/** The end to end ID of the transfer */

@@ -1565,13 +1580,13 @@ e2eId?: ?$ElementType<Scalars, 'String'>,

export const TransferStatusValues = Object.freeze({
Authorized: 'AUTHORIZED',
Confirmed: 'CONFIRMED',
Booked: 'BOOKED',
Created: 'CREATED',
Active: 'ACTIVE',
Inactive: 'INACTIVE',
Canceled: 'CANCELED',
AuthorizationRequired: 'AUTHORIZATION_REQUIRED',
ConfirmationRequired: 'CONFIRMATION_REQUIRED',
Scheduled: 'SCHEDULED',
Executed: 'EXECUTED',
Authorized: 'AUTHORIZED',
Confirmed: 'CONFIRMED',
Booked: 'BOOKED',
Created: 'CREATED',
Active: 'ACTIVE',
Inactive: 'INACTIVE',
Canceled: 'CANCELED',
AuthorizationRequired: 'AUTHORIZATION_REQUIRED',
ConfirmationRequired: 'CONFIRMATION_REQUIRED',
Scheduled: 'SCHEDULED',
Executed: 'EXECUTED',
Failed: 'FAILED'

@@ -1590,4 +1605,4 @@ });

export const TransferTypeValues = Object.freeze({
SepaTransfer: 'SEPA_TRANSFER',
StandingOrder: 'STANDING_ORDER',
SepaTransfer: 'SEPA_TRANSFER',
StandingOrder: 'STANDING_ORDER',
TimedOrder: 'TIMED_ORDER'

@@ -1643,2 +1658,4 @@ });

purpose?: ?$ElementType<Scalars, 'String'>,
/** The personal note of the transfer - 140 max characters */
personalNote?: ?$ElementType<Scalars, 'String'>,
/** The end to end ID of the Standing Order, if not specified with the update, it will be set to null */

@@ -1745,2 +1762,10 @@ e2eId?: ?$ElementType<Scalars, 'String'>,

export const UserOsValues = Object.freeze({
Ios: 'IOS',
Android: 'ANDROID'
});
export type UserOs = $Values<typeof UserOsValues>;
export type UserMetadata = {|

@@ -1833,4 +1858,4 @@ __typename?: 'UserMetadata',

export const WirecardCardStatusValues = Object.freeze({
NotOrdered: 'NOT_ORDERED',
Ordered: 'ORDERED',
NotOrdered: 'NOT_ORDERED',
Ordered: 'ORDERED',
Issued: 'ISSUED'

@@ -1837,0 +1862,0 @@ });

import { IterableModel } from "./iterableModel";
import { ResultPage } from "./resultPage";
import { AccountTransactionsArgs, MutationCategorizeTransactionArgs, MutationCreateTransactionSplitsArgs, MutationDeleteTransactionSplitsArgs, MutationUpdateTransactionSplitsArgs, Transaction as TransactionModel } from "./schema";
import { AccountTransactionsArgs, MutationCategorizeTransactionArgs, MutationUpdateTransactionArgs, MutationCreateTransactionSplitsArgs, MutationDeleteTransactionSplitsArgs, MutationUpdateTransactionSplitsArgs, Transaction as TransactionModel } from "./schema";
import { FetchOptions, Subscription } from "./types";
export declare const NEW_TRANSACTION_SUBSCRIPTION: string;
export declare const CATEGORIZE_TRANSACTION: string;
export declare const UPDATE_TRANSACTION: string;
export declare const CREATE_SPLIT_TRANSACTION: string;

@@ -41,2 +42,4 @@ export declare const DELETE_SPLIT_TRANSACTION: string;

* Categorizes a transaction
* @deprecated This method will be removed in an upcoming release.
* Use `transaction.update` method instead.
*

@@ -48,2 +51,9 @@ * @param args query parameters including category and userSelectedBookingDate

/**
* Updates a transaction
*
* @param args query parameters including category, userSelectedBookingDate and personalNote
* @returns the transaction with updated categorization data and updated personalNote
*/
update(args: MutationUpdateTransactionArgs): Promise<TransactionModel>;
/**
* Creates transaction splits

@@ -50,0 +60,0 @@ *

@@ -65,6 +65,7 @@ "use strict";

var MAX_SEARCH_AMOUNT_IN_CENTS = 2000000000;
var TRANSACTION_FIELDS = "\n id\n amount\n name\n iban\n type\n bookingDate\n valutaDate\n originalAmount\n foreignCurrency\n e2eId\n mandateNumber\n paymentMethod\n category\n userSelectedBookingDate\n purpose\n documentNumber\n documentPreviewUrl\n documentDownloadUrl\n documentType\n createdAt\n splits {\n id\n amount\n category\n userSelectedBookingDate\n }\n";
var TRANSACTION_FIELDS = "\n id\n amount\n name\n iban\n type\n bookingDate\n valutaDate\n originalAmount\n foreignCurrency\n e2eId\n mandateNumber\n paymentMethod\n category\n userSelectedBookingDate\n personalNote\n purpose\n documentNumber\n documentPreviewUrl\n documentDownloadUrl\n documentType\n createdAt\n splits {\n id\n amount\n category\n userSelectedBookingDate\n }\n";
var FETCH_TRANSACTIONS = "\n query fetchTransactions ($first: Int, $last: Int, $after: String, $before: String, $filter: TransactionFilter) {\n viewer {\n mainAccount {\n transactions(first: $first, last: $last, after: $after, before: $before, filter: $filter) {\n edges {\n node {\n " + TRANSACTION_FIELDS + "\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n }\n }\n";
exports.NEW_TRANSACTION_SUBSCRIPTION = "subscription {\n newTransaction {\n " + TRANSACTION_FIELDS + "\n }\n}";
exports.CATEGORIZE_TRANSACTION = "mutation categorizeTransaction(\n $id: String!\n $category: TransactionCategory,\n $userSelectedBookingDate: DateTime\n) {\n categorizeTransaction(\n id: $id\n category: $category\n userSelectedBookingDate: $userSelectedBookingDate\n ) {\n " + TRANSACTION_FIELDS + "\n }\n}";
exports.UPDATE_TRANSACTION = "mutation updateTransaction(\n $id: String!\n $category: TransactionCategory,\n $userSelectedBookingDate: DateTime,\n $personalNote: String,\n) {\n updateTransaction(\n id: $id\n category: $category\n userSelectedBookingDate: $userSelectedBookingDate\n personalNote: $personalNote\n ) {\n " + TRANSACTION_FIELDS + "\n }\n}";
exports.CREATE_SPLIT_TRANSACTION = "mutation createTransactionSplits(\n $transactionId: ID!\n $splits: [CreateTransactionSplitsInput!]!\n) {\n createTransactionSplits(\n transactionId: $transactionId\n splits: $splits\n ) {\n " + TRANSACTION_FIELDS + "\n }\n}";

@@ -136,2 +137,4 @@ exports.DELETE_SPLIT_TRANSACTION = "mutation deleteTransactionSplits(\n $transactionId: ID!\n) {\n deleteTransactionSplits(\n transactionId: $transactionId\n ) {\n " + TRANSACTION_FIELDS + "\n }\n}";

* Categorizes a transaction
* @deprecated This method will be removed in an upcoming release.
* Use `transaction.update` method instead.
*

@@ -155,2 +158,21 @@ * @param args query parameters including category and userSelectedBookingDate

/**
* Updates a transaction
*
* @param args query parameters including category, userSelectedBookingDate and personalNote
* @returns the transaction with updated categorization data and updated personalNote
*/
Transaction.prototype.update = function (args) {
return __awaiter(this, void 0, void 0, function () {
var result;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.client.rawQuery(exports.UPDATE_TRANSACTION, args)];
case 1:
result = _a.sent();
return [2 /*return*/, result.updateTransaction];
}
});
});
};
/**
* Creates transaction splits

@@ -157,0 +179,0 @@ *

@@ -54,3 +54,3 @@ "use strict";

var resultPage_1 = require("./resultPage");
var TRANSFER_FIELDS = "\n id\n recipient\n iban\n amount\n status\n executeAt\n lastExecutionDate\n purpose\n e2eId\n reoccurrence\n nextOccurrence\n category\n userSelectedBookingDate\n";
var TRANSFER_FIELDS = "\n id\n recipient\n iban\n amount\n status\n executeAt\n lastExecutionDate\n purpose\n e2eId\n reoccurrence\n nextOccurrence\n category\n userSelectedBookingDate\n personalNote\n";
var CREATE_TRANSFER = "mutation createTransfer($transfer: CreateTransferInput!) {\n createTransfer(transfer: $transfer) {\n confirmationId\n }\n}";

@@ -57,0 +57,0 @@ var CONFIRM_TRANSFER = "mutation confirmTransfer(\n $confirmationId: String!\n $authorizationToken: String!\n) {\n confirmTransfer(\n confirmationId: $confirmationId\n authorizationToken: $authorizationToken\n ) {\n " + TRANSFER_FIELDS + "\n }\n}";

{
"name": "kontist",
"version": "0.29.0",
"version": "0.29.1",
"description": "Kontist client SDK",

@@ -5,0 +5,0 @@ "main": "dist/lib/index.js",

@@ -212,2 +212,40 @@ import { expect } from "chai";

describe("#update", () => {
let client: Client;
let stub: any;
before(() => {
client = createClient();
stub = sinon.stub(client.graphQL, "rawQuery");
});
after(() => {
stub.restore();
});
it("should call rawQuery and return updated transaction details", async () => {
// arrange
const transactionData = createTransaction({
category: TransactionCategory.VatPayment,
userSelectedBookingDate: new Date().toISOString(),
personalNote: "Business lunch"
});
stub.resolves({
updateTransaction: transactionData,
} as any);
// act
const result = await client.models.transaction.update({
id: transactionData.id,
category: TransactionCategory.VatPayment,
userSelectedBookingDate: new Date().toISOString(),
personalNote: transactionData.personalNote
});
// assert
expect(stub.callCount).to.eq(1);
expect(result).to.deep.eq(transactionData);
});
});
describe("#createSplit", () => {

@@ -214,0 +252,0 @@ let client: Client;

@@ -264,2 +264,3 @@ import { expect } from "chai";

const userSelectedBookingDate = new Date().toISOString();
const personalNote = "business travel"
const updatePayload = {

@@ -269,3 +270,4 @@ id: "some-id",

category,
userSelectedBookingDate
userSelectedBookingDate,
personalNote,
};

@@ -278,3 +280,4 @@

category,
userSelectedBookingDate
userSelectedBookingDate,
personalNote,
}

@@ -295,3 +298,4 @@ });

category,
userSelectedBookingDate
userSelectedBookingDate,
personalNote
});

@@ -304,2 +308,3 @@ });

const userSelectedBookingDate = new Date().toISOString();
const personalNote = "best French restaurant in Berlin"
const updatePayload = {

@@ -309,3 +314,4 @@ id: "some-id",

category,
userSelectedBookingDate
userSelectedBookingDate,
personalNote,
};

@@ -318,3 +324,4 @@

category,
userSelectedBookingDate
userSelectedBookingDate,
personalNote
}

@@ -335,3 +342,4 @@ });

category,
userSelectedBookingDate
userSelectedBookingDate,
personalNote
});

@@ -338,0 +346,0 @@ });

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc