@accounter/payper-mesh
Version:
Graphql proxy for Payper API
138 lines (137 loc) • 5.64 kB
TypeScript
import { InContextSdkMethod } from '@graphql-mesh/types';
import { MeshContext } from '@graphql-mesh/runtime';
export declare namespace PayperTypes {
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;
};
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;
};
ObjMap: {
input: any;
output: any;
};
};
type Query = {
getExpensesRaw?: Maybe<getExpensesResponse>;
getExpenses?: Maybe<getExpensesResponse>;
};
type QuerygetExpensesRawArgs = {
input?: InputMaybe<getExpensesRequest_Input>;
};
type QuerygetExpensesArgs = {
input?: InputMaybe<getExpensesRequest_Input>;
};
type getExpensesResponse = {
description: Scalars['String']['output'];
/** An array of JSON of the search */
expenses?: Maybe<Array<Maybe<Expense>>>;
/** The next available page */
next_page?: Maybe<Scalars['String']['output']>;
result: Scalars['Int']['output'];
/** The total size of the query */
total_entries?: Maybe<Scalars['Int']['output']>;
/** The total pages of the query */
total_pages?: Maybe<Scalars['String']['output']>;
};
/** A Single Expense */
type Expense = {
created_at: Scalars['String']['output'];
currency_symbol?: Maybe<query_getExpensesRaw_expenses_items_currency_symbol>;
document_date?: Maybe<Scalars['String']['output']>;
document_id?: Maybe<Scalars['String']['output']>;
document_type?: Maybe<Scalars['String']['output']>;
file_name: Scalars['String']['output'];
file_url: Scalars['String']['output'];
foreign_total_for_payment?: Maybe<Scalars['Float']['output']>;
original_file_name?: Maybe<Scalars['String']['output']>;
provider: Scalars['String']['output'];
provider_business_num: Scalars['String']['output'];
recognized_vat_payment: Scalars['Float']['output'];
remarks?: Maybe<Scalars['String']['output']>;
status_classification: Scalars['String']['output'];
system_id: Scalars['Int']['output'];
total_for_payment: Scalars['Float']['output'];
total_for_vat: Scalars['Float']['output'];
updated_at: Scalars['String']['output'];
vat_payment: Scalars['Float']['output'];
};
type query_getExpensesRaw_expenses_items_currency_symbol = 'EUR' | 'USD' | 'ILS';
type getExpensesRequest_Input = {
api_user?: InputMaybe<Scalars['String']['input']>;
query_options?: InputMaybe<queryInput_getExpensesRaw_input_query_options_Input>;
};
type queryInput_getExpensesRaw_input_query_options_Input = {
updated_from?: InputMaybe<Scalars['String']['input']>;
updated_to?: InputMaybe<Scalars['String']['input']>;
created_from?: InputMaybe<Scalars['String']['input']>;
created_to?: InputMaybe<Scalars['String']['input']>;
document_date_from?: InputMaybe<Scalars['String']['input']>;
document_date_to?: InputMaybe<Scalars['String']['input']>;
document_id?: InputMaybe<Scalars['String']['input']>;
/** default: -100000000 */
system_id?: InputMaybe<Scalars['Int']['input']>;
order?: InputMaybe<document_date_const>;
/** default: 1 */
page?: InputMaybe<Scalars['Int']['input']>;
/** default: 50 */
per_page?: InputMaybe<Scalars['Int']['input']>;
};
type document_date_const = 'document_date';
type HTTPMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH';
type QuerySdk = {
/** undefined **/
getExpensesRaw: InContextSdkMethod<Query['getExpensesRaw'], QuerygetExpensesRawArgs, MeshContext>;
/** undefined **/
getExpenses: InContextSdkMethod<Query['getExpenses'], QuerygetExpensesArgs, MeshContext>;
};
type MutationSdk = {};
type SubscriptionSdk = {};
type Context = {
["Payper"]: {
Query: QuerySdk;
Mutation: MutationSdk;
Subscription: SubscriptionSdk;
};
};
}