@accounter/green-invoice-graphql
Version:
Graphql proxy for Green Invoice API
179 lines (178 loc) • 7.7 kB
TypeScript
import { InContextSdkMethod } from '@graphql-mesh/types';
import { MeshContext } from '@graphql-mesh/runtime';
export declare namespace GreenInvoiceNewTypes {
type Maybe<T> = T | null;
type InputMaybe<T> = Maybe<T>;
type Exact<T extends {
[key: string]: unknown;
}> = {
[K in keyof T]: T[K];
};
type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]?: Maybe<T[SubKey]>;
};
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]: Maybe<T[SubKey]>;
};
type MakeEmpty<T extends {
[key: string]: unknown;
}, K extends keyof T> = {
[_ in K]?: never;
};
type Incremental<T> = T | {
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
};
/** All built-in and custom scalars, mapped to their actual values */
type Scalars = {
ID: {
input: string;
output: string;
};
/** The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. */
String: {
input: string;
output: string;
};
/** The `Boolean` scalar type represents `true` or `false`. */
Boolean: {
input: boolean;
output: boolean;
};
/** The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. */
Int: {
input: number;
output: number;
};
/** The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). */
Float: {
input: number;
output: number;
};
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
JSON: {
input: any;
output: any;
};
ObjMap: {
input: any;
output: any;
};
};
type Query = {
getFileUploadUrl?: Maybe<getFileUploadUrlResponse>;
getBankTransactions?: Maybe<getBankTransactionsResponse>;
};
type QuerygetFileUploadUrlArgs = {
context?: InputMaybe<Scalars['String']['input']>;
data?: InputMaybe<queryInput_getFileUploadUrl_data_Input>;
};
type QuerygetBankTransactionsArgs = {
valueDate?: InputMaybe<queryInput_getBankTransactions_valueDate_Input>;
from?: InputMaybe<Scalars['Float']['input']>;
size?: InputMaybe<Scalars['Float']['input']>;
bookingStatus?: InputMaybe<Scalars['String']['input']>;
};
type getFileUploadUrlResponse = {
/** File Upload URL */
url: Scalars['String']['output'];
fields: query_getFileUploadUrl_fields;
};
type query_getFileUploadUrl_fields = {
otherField?: Maybe<Scalars['String']['output']>;
bucket?: Maybe<Scalars['String']['output']>;
key?: Maybe<Scalars['String']['output']>;
Policy?: Maybe<Scalars['String']['output']>;
x_amz_meta_account_id?: Maybe<Scalars['String']['output']>;
x_amz_meta_user_id?: Maybe<Scalars['String']['output']>;
x_amz_meta_business_id?: Maybe<Scalars['String']['output']>;
x_amz_meta_file_context?: Maybe<Scalars['String']['output']>;
x_amz_meta_file_data?: Maybe<Scalars['String']['output']>;
X_Amz_Algorithm?: Maybe<Scalars['String']['output']>;
X_Amz_Credential?: Maybe<Scalars['String']['output']>;
X_Amz_Date?: Maybe<Scalars['String']['output']>;
X_Amz_Security_Token?: Maybe<Scalars['String']['output']>;
X_Amz_Signature?: Maybe<Scalars['String']['output']>;
};
type queryInput_getFileUploadUrl_data_Input = {
source: Scalars['Int']['input'];
id?: InputMaybe<Scalars['String']['input']>;
state?: InputMaybe<Scalars['String']['input']>;
};
type getBankTransactionsResponse = {
size?: Maybe<Scalars['Int']['output']>;
total?: Maybe<Scalars['Int']['output']>;
pages?: Maybe<Scalars['Int']['output']>;
page?: Maybe<Scalars['Int']['output']>;
from?: Maybe<Scalars['Int']['output']>;
to?: Maybe<Scalars['Int']['output']>;
aggregations?: Maybe<Scalars['JSON']['output']>;
results?: Maybe<Array<Maybe<BankTransaction>>>;
};
type BankTransaction = {
/** The transaction ID */
id?: Maybe<Scalars['String']['output']>;
aspspCode?: Maybe<_12_const>;
/** The business ID */
businessId?: Maybe<Scalars['String']['output']>;
/** The creation date timestamp */
createdAt?: Maybe<Scalars['Float']['output']>;
/** The update date timestamp */
updatedAt?: Maybe<Scalars['Float']['output']>;
status?: Maybe<Scalars['Int']['output']>;
classification?: Maybe<Scalars['Int']['output']>;
bookingStatus?: Maybe<booked_const>;
source?: Maybe<bank_const>;
/** The amount of the transaction */
amount?: Maybe<Scalars['Float']['output']>;
/** The resource ID */
resourceId?: Maybe<Scalars['String']['output']>;
/** The creditor name */
creditorName?: Maybe<Scalars['String']['output']>;
/** The creditor account */
creditorAccount?: Maybe<Scalars['String']['output']>;
currency?: Maybe<Currency>;
/** Value date of the transaction */
valueDate?: Maybe<Scalars['String']['output']>;
/** Booking date of the transaction */
bookingDate?: Maybe<Scalars['String']['output']>;
/** The check ID */
checkId?: Maybe<Scalars['String']['output']>;
description?: Maybe<Scalars['String']['output']>;
/** The debtor name */
debtorName?: Maybe<Scalars['String']['output']>;
/** The debtor account */
debtorAccount?: Maybe<Scalars['String']['output']>;
type?: Maybe<query_getBankTransactions_results_items_type>;
name?: Maybe<Scalars['String']['output']>;
date?: Maybe<Scalars['String']['output']>;
/** The IBAN of the transaction */
iban?: Maybe<Scalars['String']['output']>;
};
type _12_const = '_12';
type booked_const = 'booked';
type bank_const = 'bank';
/** 3-letter ISO item currency code */
type Currency = 'ILS' | 'USD' | 'EUR' | 'GBP' | 'JPY' | 'CHF' | 'CNY' | 'AUD' | 'CAD' | 'RUB' | 'BRL' | 'HKD' | 'SGD' | 'THB' | 'MXN' | 'TRY' | 'NZD' | 'SEK' | 'NOK' | 'DKK' | 'KRW' | 'INR' | 'IDR' | 'PLN' | 'RON' | 'ZAR' | 'HRK';
/** The type of the transaction */
type query_getBankTransactions_results_items_type = 'credit' | 'debt';
type queryInput_getBankTransactions_valueDate_Input = {
from: Scalars['String']['input'];
to: Scalars['String']['input'];
};
type HTTPMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
type QuerySdk = {
/** undefined **/
getFileUploadUrl: InContextSdkMethod<Query['getFileUploadUrl'], QuerygetFileUploadUrlArgs, MeshContext>;
/** undefined **/
getBankTransactions: InContextSdkMethod<Query['getBankTransactions'], QuerygetBankTransactionsArgs, MeshContext>;
};
type MutationSdk = {};
type SubscriptionSdk = {};
type Context = {
["GreenInvoiceNew"]: {
Query: QuerySdk;
Mutation: MutationSdk;
Subscription: SubscriptionSdk;
};
};
}