@bunnyapp/api-client
Version:
Node.js client for Bunny CRM
1,264 lines • 378 kB
TypeScript
export type Maybe<T> = T | null;
export type InputMaybe<T> = T | null;
export type Exact<T extends {
[key: string]: unknown;
}> = {
[K in keyof T]: T[K];
};
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]?: Maybe<T[SubKey]>;
};
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
[SubKey in K]: Maybe<T[SubKey]>;
};
export type MakeEmpty<T extends {
[key: string]: unknown;
}, K extends keyof T> = {
[_ in K]?: never;
};
export 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 */
export type Scalars = {
ID: {
input: string;
output: string;
};
String: {
input: string;
output: string;
};
Boolean: {
input: boolean;
output: boolean;
};
Int: {
input: number;
output: number;
};
Float: {
input: number;
output: number;
};
BigDecimal: {
input: any;
output: any;
};
DynamicComponentValue: {
input: any;
output: any;
};
ISO8601Date: {
input: any;
output: any;
};
ISO8601DateTime: {
input: any;
output: any;
};
JSON: {
input: any;
output: any;
};
};
/** An account record is used to represent a customer or trialist */
export type Account = {
__typename?: 'Account';
/** The type of account */
accountType?: Maybe<AccountType>;
/** Type of account */
accountTypeId: Scalars['ID']['output'];
/** Address validated status */
addressValidated: Scalars['Boolean']['output'];
/** Annual revenue */
annualRevenue?: Maybe<Scalars['Int']['output']>;
/** ARR (Annual Recurring Revenue) amount */
arr?: Maybe<Scalars['Float']['output']>;
/** Pcode (a reference code for location data from Avalara) for Avalara AFC */
avalaraAfcPcode?: Maybe<Scalars['String']['output']>;
balances: Array<AccountBalance>;
/** City for billing */
billingCity?: Maybe<Scalars['String']['output']>;
/** Contact for billing correspondence */
billingContact?: Maybe<Contact>;
/** Contact for billing correspondence */
billingContactId?: Maybe<Scalars['ID']['output']>;
/** Country for billing */
billingCountry?: Maybe<Scalars['String']['output']>;
/** Day of the month to process billing */
billingDay?: Maybe<Scalars['Int']['output']>;
/** State for billing */
billingState?: Maybe<Scalars['String']['output']>;
/** Street address for billing */
billingStreet?: Maybe<Scalars['String']['output']>;
/** Zip/PostalCode for billing */
billingZip?: Maybe<Scalars['String']['output']>;
/** Custom unique identifier for the account */
code?: Maybe<Scalars['String']['output']>;
/** List of contacts for the account */
contacts?: Maybe<Array<Contact>>;
/** Datetime the account was created */
createdAt: Scalars['ISO8601DateTime']['output'];
/** Primary currency for billing */
currency?: Maybe<Currency>;
/** Primary currency for billing */
currencyId?: Maybe<Scalars['ID']['output']>;
/** Default values for a new deal */
dealDefaults?: Maybe<Deal>;
/** List of deals for the account */
deals?: Maybe<Array<Deal>>;
/** Description of the account */
description?: Maybe<Scalars['String']['output']>;
/** Send new invoices to draft state */
draftInvoices: Scalars['Boolean']['output'];
/** Dun & Bradstreet Number */
duns?: Maybe<Scalars['String']['output']>;
/** Enable sending emails to account contacts */
emailsEnabled: Scalars['Boolean']['output'];
/** Number of employees */
employees?: Maybe<Scalars['Int']['output']>;
/** The entity this account belongs to */
entity?: Maybe<Entity>;
/** The ID of the entity this account belongs to */
entityId?: Maybe<Scalars['ID']['output']>;
/** Tax entity use code */
entityUseCode?: Maybe<Scalars['String']['output']>;
/** Primary fax number for the account */
fax?: Maybe<Scalars['String']['output']>;
/** Group that the account belongs to */
groupId?: Maybe<Scalars['ID']['output']>;
/** Unique identifier for the account */
id: Scalars['ID']['output'];
/** The industry the account belongs to */
industry?: Maybe<Industry>;
/** Industry the account belongs to */
industryId?: Maybe<Scalars['ID']['output']>;
/** Invoice template to be used for invoice generation */
invoiceTemplate?: Maybe<InvoiceTemplate>;
/** Invoice template to be used for invoice generation */
invoiceTemplateId?: Maybe<Scalars['ID']['output']>;
/** Invoices for the account */
invoices?: Maybe<Array<Invoice>>;
/** Link to the account's LinkedIn profile */
linkedinUrl?: Maybe<Scalars['String']['output']>;
/** MRR (Monthly Recurring Revenue) amount */
mrr?: Maybe<Scalars['Float']['output']>;
/** MUR (Monthly Usage Revenue) amount */
mur?: Maybe<Scalars['Float']['output']>;
/** Name of the account */
name?: Maybe<Scalars['String']['output']>;
/** Payment terms in days */
netPaymentDays?: Maybe<Scalars['Int']['output']>;
/** Account owner */
owner?: Maybe<User>;
/** Account owner */
ownerUserId?: Maybe<Scalars['ID']['output']>;
/** Paying status */
payingStatus?: Maybe<PayingStatus>;
/** Payment methods associated with this account */
paymentMethods?: Maybe<Array<PaymentMethod>>;
/** Primary phone number for the account */
phone?: Maybe<Scalars['String']['output']>;
/** Recurring revenues for the account */
recurringRevenues?: Maybe<Array<RecurringRevenue>>;
revenueMovements?: Maybe<Array<RevenueMovement>>;
/** Secondary billing contact IDs */
secondaryBillingContactIds?: Maybe<Array<Scalars['ID']['output']>>;
/** Secondary billing contact IDs */
secondaryBillingContacts?: Maybe<Array<Contact>>;
/** City for shipping */
shippingCity?: Maybe<Scalars['String']['output']>;
/** Country for shipping */
shippingCountry?: Maybe<Scalars['String']['output']>;
/** State for shipping */
shippingState?: Maybe<Scalars['String']['output']>;
/** Street address for shipping */
shippingStreet?: Maybe<Scalars['String']['output']>;
/** Zip/PostalCode for shipping */
shippingZip?: Maybe<Scalars['String']['output']>;
/** List of subscriptions */
subscriptions?: Maybe<Array<Subscription>>;
/** Tax number */
taxNumber?: Maybe<Scalars['String']['output']>;
/** The tax number supplied has been validated with an official source */
taxNumberValidated?: Maybe<Scalars['Boolean']['output']>;
/** Time zone for the account */
timezone?: Maybe<Scalars['String']['output']>;
transactions?: Maybe<Array<Transaction>>;
/** Datetime the account was last updated */
updatedAt: Scalars['ISO8601DateTime']['output'];
/** Website of the account */
website?: Maybe<Scalars['String']['output']>;
};
/** An account record is used to represent a customer or trialist */
export type AccountInvoicesArgs = {
filter?: InputMaybe<Scalars['String']['input']>;
sort?: InputMaybe<Scalars['String']['input']>;
};
/** An account record is used to represent a customer or trialist */
export type AccountRecurringRevenuesArgs = {
filter?: InputMaybe<Scalars['String']['input']>;
sort?: InputMaybe<Scalars['String']['input']>;
};
/** An account record is used to represent a customer or trialist */
export type AccountSubscriptionsArgs = {
filter?: InputMaybe<Scalars['String']['input']>;
sort?: InputMaybe<Scalars['String']['input']>;
};
/** Attributes for creating and updating an account */
export type AccountAttributes = {
/** The type of account */
accountTypeId?: InputMaybe<Scalars['ID']['input']>;
/** Annual revenue */
annualRevenue?: InputMaybe<Scalars['Int']['input']>;
/** Pcode (a reference code for location data from Avalara) for Avalara AFC */
avalaraAfcPcode?: InputMaybe<Scalars['String']['input']>;
/** City for billing */
billingCity?: InputMaybe<Scalars['String']['input']>;
/** Contact for billing correspondence */
billingContact?: InputMaybe<ContactAttributes>;
/** Contact id for billing correspondence */
billingContactId?: InputMaybe<Scalars['ID']['input']>;
/** Country for billing */
billingCountry?: InputMaybe<Scalars['String']['input']>;
/** State for billing */
billingState?: InputMaybe<Scalars['String']['input']>;
/** Street address for billing */
billingStreet?: InputMaybe<Scalars['String']['input']>;
/** Zip/PostalCode for billing */
billingZip?: InputMaybe<Scalars['String']['input']>;
/** Custom unique identifier for the account */
code?: InputMaybe<Scalars['String']['input']>;
/** Primary currency for billing */
currencyId?: InputMaybe<Scalars['ID']['input']>;
/** Description of the account */
description?: InputMaybe<Scalars['String']['input']>;
/** Send new invoices to draft state */
draftInvoices?: InputMaybe<Scalars['Boolean']['input']>;
/** Dun & Bradstreet Number */
duns?: InputMaybe<Scalars['String']['input']>;
/** Enable sending emails to account contacts */
emailsEnabled?: InputMaybe<Scalars['Boolean']['input']>;
/** Number of employees */
employees?: InputMaybe<Scalars['Int']['input']>;
/** The entity this account belongs to */
entityId?: InputMaybe<Scalars['ID']['input']>;
/** Tax entity use code */
entityUseCode?: InputMaybe<Scalars['String']['input']>;
/** Primary fax number for the account */
fax?: InputMaybe<Scalars['String']['input']>;
/** Group that the account belongs to */
groupId?: InputMaybe<Scalars['ID']['input']>;
/** Industry the account belongs to */
industryId?: InputMaybe<Scalars['ID']['input']>;
/** Invoice template to be used for invoice generation */
invoiceTemplateId?: InputMaybe<Scalars['ID']['input']>;
/** Remote IP address of the lead */
ipAddress?: InputMaybe<Scalars['String']['input']>;
/** Link to the account's LinkedIn profile */
linkedinUrl?: InputMaybe<Scalars['String']['input']>;
/** Name of the account */
name?: InputMaybe<Scalars['String']['input']>;
/** Payment terms in days */
netPaymentDays?: InputMaybe<Scalars['Int']['input']>;
/** Account owner */
ownerUserId?: InputMaybe<Scalars['ID']['input']>;
/** Primary phone number for the account */
phone?: InputMaybe<Scalars['String']['input']>;
/** Secondary billing contact IDs */
secondaryBillingContactIds?: InputMaybe<Array<Scalars['ID']['input']>>;
/** City for shipping */
shippingCity?: InputMaybe<Scalars['String']['input']>;
/** Country for shipping */
shippingCountry?: InputMaybe<Scalars['String']['input']>;
/** State for shipping */
shippingState?: InputMaybe<Scalars['String']['input']>;
/** Street address for shipping */
shippingStreet?: InputMaybe<Scalars['String']['input']>;
/** Zip/PostalCode for shipping */
shippingZip?: InputMaybe<Scalars['String']['input']>;
/** Tax number */
taxNumber?: InputMaybe<Scalars['String']['input']>;
/** Time zone */
timezone?: InputMaybe<Scalars['String']['input']>;
/** Website of the account */
website?: InputMaybe<Scalars['String']['input']>;
};
/** An account balance represents the money debited or credited in a given currency */
export type AccountBalance = {
__typename?: 'AccountBalance';
/** Account the balance is associated with */
accountId: Scalars['ID']['output'];
/** The amount credited or debited */
balance: Scalars['Float']['output'];
/** Currency of the amount */
currencyId: Scalars['String']['output'];
/** Unique identifier for the account balance */
id: Scalars['ID']['output'];
};
/** The connection type for AccountBalance. */
export type AccountBalanceConnection = {
__typename?: 'AccountBalanceConnection';
/** A list of edges. */
edges?: Maybe<Array<Maybe<AccountBalanceEdge>>>;
/** A list of nodes. */
nodes?: Maybe<Array<Maybe<AccountBalance>>>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};
/** An edge in a connection. */
export type AccountBalanceEdge = {
__typename?: 'AccountBalanceEdge';
/** A cursor for use in pagination. */
cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
node?: Maybe<AccountBalance>;
};
/** The connection type for Account. */
export type AccountConnection = {
__typename?: 'AccountConnection';
/** A list of edges. */
edges?: Maybe<Array<Maybe<AccountEdge>>>;
/** A list of nodes. */
nodes?: Maybe<Array<Maybe<Account>>>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};
/** Autogenerated return type of AccountCreate. */
export type AccountCreatePayload = {
__typename?: 'AccountCreatePayload';
account?: Maybe<Account>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
/** Autogenerated return type of AccountDelete. */
export type AccountDeletePayload = {
__typename?: 'AccountDeletePayload';
account?: Maybe<Account>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
/** An edge in a connection. */
export type AccountEdge = {
__typename?: 'AccountEdge';
/** A cursor for use in pagination. */
cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
node?: Maybe<Account>;
};
/** Autogenerated return type of AccountReset. */
export type AccountResetPayload = {
__typename?: 'AccountResetPayload';
errors?: Maybe<Scalars['String']['output']>;
};
/** Autogenerated return type of AccountSignup. */
export type AccountSignupPayload = {
__typename?: 'AccountSignupPayload';
errors?: Maybe<Array<Scalars['String']['output']>>;
quote?: Maybe<Quote>;
};
/** The type of account */
export type AccountType = {
__typename?: 'AccountType';
/** Code for the account type */
code?: Maybe<Scalars['String']['output']>;
/** Datetime the account type was created */
createdAt: Scalars['ISO8601DateTime']['output'];
/** ID of the account type */
id: Scalars['ID']['output'];
/** Label for the account type */
name: Scalars['String']['output'];
/** Datetime the account type was last updated */
updatedAt: Scalars['ISO8601DateTime']['output'];
};
/** The connection type for AccountType. */
export type AccountTypeConnection = {
__typename?: 'AccountTypeConnection';
/** A list of edges. */
edges?: Maybe<Array<Maybe<AccountTypeEdge>>>;
/** A list of nodes. */
nodes?: Maybe<Array<Maybe<AccountType>>>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};
/** An edge in a connection. */
export type AccountTypeEdge = {
__typename?: 'AccountTypeEdge';
/** A cursor for use in pagination. */
cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
node?: Maybe<AccountType>;
};
/** Autogenerated return type of AccountUpdate. */
export type AccountUpdatePayload = {
__typename?: 'AccountUpdatePayload';
account?: Maybe<Account>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
/** Autogenerated return type of AccountValidateAddress. */
export type AccountValidateAddressPayload = {
__typename?: 'AccountValidateAddressPayload';
account?: Maybe<Account>;
};
export type AccountingTable = {
__typename?: 'AccountingTable';
rows: Array<AccountingTableRow>;
};
export type AccountingTableCell = {
__typename?: 'AccountingTableCell';
alignment?: Maybe<Scalars['String']['output']>;
content?: Maybe<Scalars['String']['output']>;
span?: Maybe<Scalars['Int']['output']>;
style?: Maybe<Scalars['String']['output']>;
width?: Maybe<Scalars['Int']['output']>;
};
export type AccountingTableRow = {
__typename?: 'AccountingTableRow';
cells: Array<AccountingTableCell>;
style?: Maybe<Scalars['String']['output']>;
};
/** Autogenerated return type of ApiAccessTokenCreate. */
export type ApiAccessTokenCreatePayload = {
__typename?: 'ApiAccessTokenCreatePayload';
accessToken?: Maybe<Scalars['String']['output']>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
export type ApiClient = {
__typename?: 'ApiClient';
/** Number of seconds that access tokens will be issued for */
accessTokenExpiresIn?: Maybe<Scalars['Int']['output']>;
/** Lets authorization code grant be used to generate access tokens */
authorizationCodeEnabled: Scalars['Boolean']['output'];
/** Lets client credentials grant be used to generate access tokens */
clientCredentialsEnabled: Scalars['Boolean']['output'];
/** The client_id to use when making authorization requests */
clientId?: Maybe<Scalars['String']['output']>;
/** Only returned on creation of an api client */
clientSecret?: Maybe<Scalars['String']['output']>;
/** Unique identifier of the api client */
id: Scalars['ID']['output'];
/** Name of the api client */
name?: Maybe<Scalars['String']['output']>;
/** The ID of the user that created the application */
ownerId?: Maybe<Scalars['ID']['output']>;
/** Required for authorization_code grant. The callback url of the client. */
redirectUri?: Maybe<Scalars['String']['output']>;
/** The scopes that this application can request */
scopes?: Maybe<Array<Scalars['String']['output']>>;
};
/** Attributes for creating and updating an api client */
export type ApiClientAttributes = {
/** Number of seconds that access tokens will be issued for */
accessTokenExpiresIn?: InputMaybe<Scalars['Int']['input']>;
/** Lets authorization code grant be used to generate access tokens */
authorizationCodeEnabled?: InputMaybe<Scalars['Boolean']['input']>;
/** Lets client credentials grant be used to generate access tokens */
clientCredentialsEnabled?: InputMaybe<Scalars['Boolean']['input']>;
/** Name of the api client */
name?: InputMaybe<Scalars['String']['input']>;
/** Required for authorization_code grant. The callback url of the client. */
redirectUri?: InputMaybe<Scalars['String']['input']>;
/** The scopes that this application can request */
scopes?: InputMaybe<Array<Scalars['String']['input']>>;
};
/** The connection type for ApiClient. */
export type ApiClientConnection = {
__typename?: 'ApiClientConnection';
/** A list of edges. */
edges?: Maybe<Array<Maybe<ApiClientEdge>>>;
/** A list of nodes. */
nodes?: Maybe<Array<Maybe<ApiClient>>>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};
/** Autogenerated return type of ApiClientCreate. */
export type ApiClientCreatePayload = {
__typename?: 'ApiClientCreatePayload';
apiClient?: Maybe<ApiClient>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
/** Autogenerated return type of ApiClientDelete. */
export type ApiClientDeletePayload = {
__typename?: 'ApiClientDeletePayload';
apiClient?: Maybe<ApiClient>;
errors?: Maybe<Scalars['String']['output']>;
};
/** An edge in a connection. */
export type ApiClientEdge = {
__typename?: 'ApiClientEdge';
/** A cursor for use in pagination. */
cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
node?: Maybe<ApiClient>;
};
/** Autogenerated return type of ApiClientSecretRenew. */
export type ApiClientSecretRenewPayload = {
__typename?: 'ApiClientSecretRenewPayload';
clientId?: Maybe<Scalars['String']['output']>;
clientSecret?: Maybe<Scalars['String']['output']>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
/** Autogenerated return type of ApiClientUpdate. */
export type ApiClientUpdatePayload = {
__typename?: 'ApiClientUpdatePayload';
apiClient?: Maybe<ApiClient>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
export type ApprovalDecision = {
__typename?: 'ApprovalDecision';
/** Approval request */
approvalRequest: ApprovalRequest;
/** ID of approval request */
approvalRequestId: Scalars['ID']['output'];
/** Approver associated with this decision */
approver: Approver;
/** ID of approver */
approverId: Scalars['ID']['output'];
/** Unique ID */
id?: Maybe<Scalars['ID']['output']>;
/** Additional notes to this decision */
notes?: Maybe<Scalars['String']['output']>;
state: ApprovalRequestState;
};
export type ApprovalRequest = {
__typename?: 'ApprovalRequest';
/** List of decisions from approvers reviewing this quote */
approvalDecisions: Array<ApprovalDecision>;
/** List of approvers to review this quote */
approvers: Array<Approver>;
/** Unique ID */
id?: Maybe<Scalars['ID']['output']>;
/** Requested quote for approval */
quote: Quote;
/** ID of requested quote for approval */
quoteId: Scalars['ID']['output'];
state: ApprovalRequestState;
/** Total amount of users approving this quote */
totalApprovals: Scalars['Int']['output'];
/** Total amount of approvers for this quote */
totalApprovers: Scalars['Int']['output'];
/** Total amount of users rejecting this quote */
totalRejections: Scalars['Int']['output'];
/** List of triggered approval rules for this quote */
triggeredApprovalRules: Array<ApprovalRule>;
};
export type ApprovalRequestState =
/** Approved */
'APPROVED'
/** Pending */
| 'PENDING'
/** Rejected */
| 'REJECTED';
export type ApprovalRule = {
__typename?: 'ApprovalRule';
/** Rule will be applied when active */
active?: Maybe<Scalars['Boolean']['output']>;
anyDiscount?: Maybe<Scalars['Int']['output']>;
anyDiscountEnabled?: Maybe<Scalars['Boolean']['output']>;
/** Approver for this rule */
approver?: Maybe<Approver>;
/** ID of approver for this rule */
approverId?: Maybe<Scalars['ID']['output']>;
billingPeriod?: Maybe<BillingPeriod>;
billingPeriodEnabled?: Maybe<Scalars['Boolean']['output']>;
/** First date the rule will apply */
fromDate?: Maybe<Scalars['ISO8601Date']['output']>;
/** Unique ID */
id?: Maybe<Scalars['ID']['output']>;
isRampEnabled?: Maybe<Scalars['Boolean']['output']>;
/** Rule name */
name?: Maybe<Scalars['String']['output']>;
overallQuoteDiscount?: Maybe<Scalars['Int']['output']>;
overallQuoteDiscountEnabled?: Maybe<Scalars['Boolean']['output']>;
plan?: Maybe<Plan>;
planId?: Maybe<Scalars['ID']['output']>;
planIdEnabled?: Maybe<Scalars['Boolean']['output']>;
product?: Maybe<Product>;
productId?: Maybe<Scalars['ID']['output']>;
productIdEnabled?: Maybe<Scalars['Boolean']['output']>;
/** Last date the rule will apply */
toDate?: Maybe<Scalars['ISO8601Date']['output']>;
totalQuoteAmount?: Maybe<Scalars['Int']['output']>;
totalQuoteAmountEnabled?: Maybe<Scalars['Boolean']['output']>;
};
/** Attributes for creating and updating an approval rule */
export type ApprovalRuleAttributes = {
/** Rule will be applied when active */
active?: InputMaybe<Scalars['Boolean']['input']>;
anyDiscount?: InputMaybe<Scalars['Int']['input']>;
anyDiscountEnabled?: InputMaybe<Scalars['Boolean']['input']>;
/** ID of approver for this rule */
approverId?: InputMaybe<Scalars['ID']['input']>;
billingPeriod?: InputMaybe<BillingPeriod>;
billingPeriodEnabled?: InputMaybe<Scalars['Boolean']['input']>;
/** First date the rule will apply */
fromDate?: InputMaybe<Scalars['ISO8601Date']['input']>;
isRampEnabled?: InputMaybe<Scalars['Boolean']['input']>;
/** Name of the approval rule */
name?: InputMaybe<Scalars['String']['input']>;
overallQuoteDiscount?: InputMaybe<Scalars['Int']['input']>;
overallQuoteDiscountEnabled?: InputMaybe<Scalars['Boolean']['input']>;
planId?: InputMaybe<Scalars['ID']['input']>;
planIdEnabled?: InputMaybe<Scalars['Boolean']['input']>;
productId?: InputMaybe<Scalars['ID']['input']>;
productIdEnabled?: InputMaybe<Scalars['Boolean']['input']>;
/** Late date the rule will apply */
toDate?: InputMaybe<Scalars['ISO8601Date']['input']>;
totalQuoteAmount?: InputMaybe<Scalars['Int']['input']>;
totalQuoteAmountEnabled?: InputMaybe<Scalars['Boolean']['input']>;
};
/** The connection type for ApprovalRule. */
export type ApprovalRuleConnection = {
__typename?: 'ApprovalRuleConnection';
/** A list of edges. */
edges?: Maybe<Array<Maybe<ApprovalRuleEdge>>>;
/** A list of nodes. */
nodes?: Maybe<Array<Maybe<ApprovalRule>>>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};
/** Autogenerated return type of ApprovalRuleCreate. */
export type ApprovalRuleCreatePayload = {
__typename?: 'ApprovalRuleCreatePayload';
approvalRule?: Maybe<ApprovalRule>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
/** Autogenerated return type of ApprovalRuleDelete. */
export type ApprovalRuleDeletePayload = {
__typename?: 'ApprovalRuleDeletePayload';
approvalRule?: Maybe<ApprovalRule>;
errors?: Maybe<Scalars['String']['output']>;
};
/** An edge in a connection. */
export type ApprovalRuleEdge = {
__typename?: 'ApprovalRuleEdge';
/** A cursor for use in pagination. */
cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
node?: Maybe<ApprovalRule>;
};
/** Autogenerated return type of ApprovalRuleUpdate. */
export type ApprovalRuleUpdatePayload = {
__typename?: 'ApprovalRuleUpdatePayload';
approvalRule?: Maybe<ApprovalRule>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
export type Approver = {
__typename?: 'Approver';
approvalRules?: Maybe<Array<ApprovalRule>>;
id?: Maybe<Scalars['ID']['output']>;
name?: Maybe<Scalars['String']['output']>;
user?: Maybe<User>;
userId?: Maybe<Scalars['ID']['output']>;
};
/** Attributes for creating and updating an approver */
export type ApproverAttributes = {
/** Name of the approver */
name?: InputMaybe<Scalars['String']['input']>;
/** Single-user approver */
userId?: InputMaybe<Scalars['ID']['input']>;
};
/** The connection type for Approver. */
export type ApproverConnection = {
__typename?: 'ApproverConnection';
/** A list of edges. */
edges?: Maybe<Array<Maybe<ApproverEdge>>>;
/** A list of nodes. */
nodes?: Maybe<Array<Maybe<Approver>>>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};
/** Autogenerated return type of ApproverCreate. */
export type ApproverCreatePayload = {
__typename?: 'ApproverCreatePayload';
approver?: Maybe<Approver>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
/** Autogenerated return type of ApproverDelete. */
export type ApproverDeletePayload = {
__typename?: 'ApproverDeletePayload';
approver?: Maybe<Approver>;
errors?: Maybe<Scalars['String']['output']>;
};
/** An edge in a connection. */
export type ApproverEdge = {
__typename?: 'ApproverEdge';
/** A cursor for use in pagination. */
cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
node?: Maybe<Approver>;
};
/** Autogenerated return type of ApproverUpdate. */
export type ApproverUpdatePayload = {
__typename?: 'ApproverUpdatePayload';
approver?: Maybe<Approver>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
export type Attachment = {
__typename?: 'Attachment';
id: Scalars['String']['output'];
name: Scalars['String']['output'];
};
/** The Authorized Object represents the entity for which the authorization was granted */
export type AuthObject = Invoice | Quote;
export type BatchMutation = {
__typename?: 'BatchMutation';
mutation: BatchMutationName;
result: Scalars['JSON']['output'];
};
export type BatchMutationAttributes = {
attributes?: InputMaybe<Scalars['JSON']['input']>;
body?: InputMaybe<Scalars['String']['input']>;
mutation: BatchMutationName;
};
export type BatchMutationName = 'QUOTE_CHANGE_ADD' | 'QUOTE_CHANGE_DELETE' | 'QUOTE_CHANGE_UPDATE' | 'SUBSCRIPTION_CANCEL';
export type BillRun = {
__typename?: 'BillRun';
accountsProcessed?: Maybe<Scalars['Int']['output']>;
amountInvoiced?: Maybe<Scalars['Float']['output']>;
billingDate: Scalars['ISO8601Date']['output'];
currencyId: Scalars['ID']['output'];
endedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
entity?: Maybe<Entity>;
entityId?: Maybe<Scalars['ID']['output']>;
id: Scalars['ID']['output'];
invoiceSeqEnd?: Maybe<Scalars['Int']['output']>;
invoiceSeqStart?: Maybe<Scalars['Int']['output']>;
invoicesGenerated?: Maybe<Scalars['Int']['output']>;
lastAccountId?: Maybe<Scalars['ID']['output']>;
startedAt: Scalars['ISO8601DateTime']['output'];
state?: Maybe<Scalars['String']['output']>;
};
/** The connection type for BillRun. */
export type BillRunConnection = {
__typename?: 'BillRunConnection';
/** A list of edges. */
edges?: Maybe<Array<Maybe<BillRunEdge>>>;
/** A list of nodes. */
nodes?: Maybe<Array<Maybe<BillRun>>>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};
/** An edge in a connection. */
export type BillRunEdge = {
__typename?: 'BillRunEdge';
/** A cursor for use in pagination. */
cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
node?: Maybe<BillRun>;
};
export type BillingCycle = {
__typename?: 'BillingCycle';
endDate: Scalars['ISO8601Date']['output'];
startDate: Scalars['ISO8601Date']['output'];
};
/** Billing details for an account */
export type BillingDetails = {
__typename?: 'BillingDetails';
/** City for billing */
billingCity?: Maybe<Scalars['String']['output']>;
/** Billing contact */
billingContact?: Maybe<Contact>;
/** Country for billing */
billingCountry?: Maybe<Scalars['String']['output']>;
/** State for billing */
billingState?: Maybe<Scalars['String']['output']>;
/** Street address for billing */
billingStreet?: Maybe<Scalars['String']['output']>;
/** Zip/PostalCode for billing */
billingZip?: Maybe<Scalars['String']['output']>;
/** Currency */
currency?: Maybe<Currency>;
/** Name of the account */
name?: Maybe<Scalars['String']['output']>;
/** Tax number */
taxNumber?: Maybe<Scalars['String']['output']>;
};
/** Attributes for creating and updating billing details */
export type BillingDetailsAttributes = {
/** City for billing */
billingCity?: InputMaybe<Scalars['String']['input']>;
/** Email of the billing contact */
billingContactEmail?: InputMaybe<Scalars['String']['input']>;
/** Country for billing */
billingCountry?: InputMaybe<Scalars['String']['input']>;
/** State for billing */
billingState?: InputMaybe<Scalars['String']['input']>;
/** Street address for billing */
billingStreet?: InputMaybe<Scalars['String']['input']>;
/** Zip/PostalCode for billing */
billingZip?: InputMaybe<Scalars['String']['input']>;
/** Name of the account */
name?: InputMaybe<Scalars['String']['input']>;
/** Tax number */
taxNumber?: InputMaybe<Scalars['String']['input']>;
};
/** Autogenerated return type of BillingDetailsUpdate. */
export type BillingDetailsUpdatePayload = {
__typename?: 'BillingDetailsUpdatePayload';
billingDetails?: Maybe<BillingDetails>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
export type BillingPeriod =
/** Billed Annual */
'ANNUAL'
/** Billed Monthly */
| 'MONTHLY'
/** Billed Once */
| 'ONCE'
/** Billed Quarterly */
| 'QUARTERLY'
/** Billed Semi_annual */
| 'SEMI_ANNUAL';
export type BillingPeriodAmount = {
__typename?: 'BillingPeriodAmount';
/** Total amount to pay for the period duration */
amount?: Maybe<Scalars['Float']['output']>;
/** ID */
id: Scalars['ID']['output'];
/** Proration percentage */
prorationRate?: Maybe<Scalars['Float']['output']>;
};
/** Campaigns are used to track where contacts and leads originate from */
export type Campaign = {
__typename?: 'Campaign';
/** Human-readable, unique reference */
code?: Maybe<Scalars['String']['output']>;
/** Number of contacts in this campaign */
contactCount: Scalars['Int']['output'];
/** End date of campaign */
endDate?: Maybe<Scalars['ISO8601Date']['output']>;
/** Unique identifier for the campaign */
id: Scalars['ID']['output'];
/** Number of leads in this campaign */
leadCount: Scalars['Int']['output'];
/** Campaign name */
name?: Maybe<Scalars['String']['output']>;
/** Campaign owner */
owner?: Maybe<User>;
/** ID of the user owning this campaign */
ownerUserId?: Maybe<Scalars['ID']['output']>;
/** Start date of campaign */
startDate?: Maybe<Scalars['ISO8601Date']['output']>;
};
export type CampaignAttributes = {
code?: InputMaybe<Scalars['String']['input']>;
endDate: Scalars['ISO8601Date']['input'];
name?: InputMaybe<Scalars['String']['input']>;
/** Account owner */
ownerUserId?: InputMaybe<Scalars['ID']['input']>;
startDate: Scalars['ISO8601Date']['input'];
};
/** The connection type for Campaign. */
export type CampaignConnection = {
__typename?: 'CampaignConnection';
/** A list of edges. */
edges?: Maybe<Array<Maybe<CampaignEdge>>>;
/** A list of nodes. */
nodes?: Maybe<Array<Maybe<Campaign>>>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};
/** Autogenerated return type of CampaignCreate. */
export type CampaignCreatePayload = {
__typename?: 'CampaignCreatePayload';
campaign?: Maybe<Campaign>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
/** Autogenerated return type of CampaignDelete. */
export type CampaignDeletePayload = {
__typename?: 'CampaignDeletePayload';
campaign?: Maybe<Campaign>;
errors?: Maybe<Scalars['String']['output']>;
};
/** An edge in a connection. */
export type CampaignEdge = {
__typename?: 'CampaignEdge';
/** A cursor for use in pagination. */
cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
node?: Maybe<Campaign>;
};
/** Autogenerated return type of CampaignUpdate. */
export type CampaignUpdatePayload = {
__typename?: 'CampaignUpdatePayload';
campaign?: Maybe<Campaign>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
export type Charge = QuoteCharge | SubscriptionCharge;
export type ChargeType =
/** One_time charge */
'ONE_TIME'
/** Recurring charge */
| 'RECURRING'
/** Usage charge */
| 'USAGE';
/** Autogenerated return type of Checkout. */
export type CheckoutPayload = {
__typename?: 'CheckoutPayload';
invoice?: Maybe<Invoice>;
payment?: Maybe<Payment>;
paymentApplication?: Maybe<PaymentApplication>;
transaction?: Maybe<Transaction>;
};
export type CheckoutPaymentMethodAttributes = {
metadata?: InputMaybe<Scalars['JSON']['input']>;
pluginGuid: Scalars['ID']['input'];
savePaymentMethod?: InputMaybe<Scalars['Boolean']['input']>;
token: Scalars['String']['input'];
};
export type Company = {
__typename?: 'Company';
/** Datetime that the company was created */
createdAt: Scalars['ISO8601DateTime']['output'];
/** Default role to assign to new users */
defaultRoleId?: Maybe<Scalars['ID']['output']>;
inactivityTimeout?: Maybe<Scalars['Int']['output']>;
/** Whether the company is in migration mode */
migrationMode: Scalars['Boolean']['output'];
/** Name of the company */
name?: Maybe<Scalars['String']['output']>;
/** Whether outbound email is enabled */
outboundEmailsEnabled: Scalars['Boolean']['output'];
/** Identity Provider Issuer */
samlIssuer?: Maybe<Scalars['String']['output']>;
/** X.509 Certificate */
samlSignatureCertificate?: Maybe<Scalars['String']['output']>;
/** Identity Provider Single Sign-On URL */
samlSsoUrl?: Maybe<Scalars['String']['output']>;
ssoEnabled: Scalars['Boolean']['output'];
ssoGoogleEnabled: Scalars['Boolean']['output'];
ssoMode: SsoMode;
/** Datetime that the company was last updated */
updatedAt: Scalars['ISO8601DateTime']['output'];
/** Whitelisted origin for API requests */
whitelistedOrigin: Scalars['String']['output'];
};
/** Attributes the company that owns this Bunny account */
export type CompanyAttributes = {
/** Base currency for the company */
baseCurrencyId?: InputMaybe<Scalars['String']['input']>;
/** Default role to assign to new users */
defaultRoleId?: InputMaybe<Scalars['ID']['input']>;
inactivityTimeout?: InputMaybe<Scalars['Int']['input']>;
/** Whether the company is in migration mode */
migrationMode?: InputMaybe<Scalars['Boolean']['input']>;
name?: InputMaybe<Scalars['String']['input']>;
/** Whether outbound email is enabled */
outboundEmailsEnabled?: InputMaybe<Scalars['Boolean']['input']>;
/** Identity Provider Issuer */
samlIssuer?: InputMaybe<Scalars['String']['input']>;
/** X.509 Certificate */
samlSignatureCertificate?: InputMaybe<Scalars['String']['input']>;
/** Identity Provider Single Sign-On URL */
samlSsoUrl?: InputMaybe<Scalars['String']['input']>;
ssoEnabled?: InputMaybe<Scalars['Boolean']['input']>;
ssoGoogleEnabled?: InputMaybe<Scalars['Boolean']['input']>;
ssoMode?: InputMaybe<SsoMode>;
/** Whitelisted origin for API requests */
whitelistedOrigin?: InputMaybe<Scalars['String']['input']>;
};
/** Autogenerated return type of CompanyUpdate. */
export type CompanyUpdatePayload = {
__typename?: 'CompanyUpdatePayload';
company?: Maybe<Company>;
errors?: Maybe<Scalars['String']['output']>;
};
/** The contact record for a person on an account */
export type Contact = {
__typename?: 'Contact';
/** The account the contact belongs to */
account?: Maybe<Account>;
/** The account the contact belongs to */
accountId?: Maybe<Scalars['ID']['output']>;
/** The campaigns the contact is a member of */
campaigns: Array<Campaign>;
/** Custom unique identifier for the contact */
code?: Maybe<Scalars['String']['output']>;
/** Datetime the contact was created */
createdAt: Scalars['ISO8601DateTime']['output'];
/** A description of the contact */
description?: Maybe<Scalars['String']['output']>;
/** Email address of the contact */
email?: Maybe<Scalars['String']['output']>;
/** The entity the contact belongs to */
entityId?: Maybe<Scalars['ID']['output']>;
/** First name of the contact */
firstName: Scalars['String']['output'];
/** Full name of the contact */
fullName: Scalars['String']['output'];
/** Unique ID for the contact */
id: Scalars['ID']['output'];
/** Last name of the contact */
lastName?: Maybe<Scalars['String']['output']>;
/** Link to the contact's LinkedIn profile */
linkedinUrl?: Maybe<Scalars['String']['output']>;
/** City for the contact */
mailingCity?: Maybe<Scalars['String']['output']>;
/** Country of the contact */
mailingCountry?: Maybe<Scalars['String']['output']>;
/** State for the contact */
mailingState?: Maybe<Scalars['String']['output']>;
/** Street address for the contact */
mailingStreet?: Maybe<Scalars['String']['output']>;
/** Zip/PostalCode for the contact */
mailingZip?: Maybe<Scalars['String']['output']>;
/** Primary mobile number for the contact */
mobile?: Maybe<Scalars['String']['output']>;
/** Primary phone number for the contact */
phone?: Maybe<Scalars['String']['output']>;
/** Allow portal access */
portalAccess?: Maybe<Scalars['Boolean']['output']>;
/** Salutation for the contact */
salutation?: Maybe<Scalars['String']['output']>;
/** Job title of the contact */
title?: Maybe<Scalars['String']['output']>;
/** Datetime the contact was last updated */
updatedAt?: Maybe<Scalars['ISO8601DateTime']['output']>;
};
/** Attributes for creating and updating a contact */
export type ContactAttributes = {
/** The account the contact belongs to */
accountId?: InputMaybe<Scalars['ID']['input']>;
/** Campaign code */
campaignCode?: InputMaybe<Scalars['String']['input']>;
/** Custom unique identifier for the contact */
code?: InputMaybe<Scalars['String']['input']>;
/** A description of the contact */
description?: InputMaybe<Scalars['String']['input']>;
/** Email address of the contact */
email?: InputMaybe<Scalars['String']['input']>;
/** First name of the contact */
firstName?: InputMaybe<Scalars['String']['input']>;
/** Last name of the contact */
lastName?: InputMaybe<Scalars['String']['input']>;
/** Link to the contact's LinkedIn profile */
linkedinUrl?: InputMaybe<Scalars['String']['input']>;
/** City for the contact */
mailingCity?: InputMaybe<Scalars['String']['input']>;
/** Country of the contact */
mailingCountry?: InputMaybe<Scalars['String']['input']>;
/** State for the contact */
mailingState?: InputMaybe<Scalars['String']['input']>;
/** Street address for the contact */
mailingStreet?: InputMaybe<Scalars['String']['input']>;
/** Zip/PostalCode of the contact */
mailingZip?: InputMaybe<Scalars['String']['input']>;
/** Primary mobile number for the contact */
mobile?: InputMaybe<Scalars['String']['input']>;
/** Primary phone number for the contact */
phone?: InputMaybe<Scalars['String']['input']>;
/** Portal access allowed */
portalAccess?: InputMaybe<Scalars['Boolean']['input']>;
/** Salutation for the contact */
salutation?: InputMaybe<Scalars['String']['input']>;
/** Job title of the contact */
title?: InputMaybe<Scalars['String']['input']>;
};
/** The connection type for Contact. */
export type ContactConnection = {
__typename?: 'ContactConnection';
/** A list of edges. */
edges?: Maybe<Array<Maybe<ContactEdge>>>;
/** A list of nodes. */
nodes?: Maybe<Array<Maybe<Contact>>>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};
/** Autogenerated return type of ContactCreate. */
export type ContactCreatePayload = {
__typename?: 'ContactCreatePayload';
contact?: Maybe<Contact>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
/** Autogenerated return type of ContactDelete. */
export type ContactDeletePayload = {
__typename?: 'ContactDeletePayload';
contact?: Maybe<Contact>;
errors?: Maybe<Scalars['String']['output']>;
};
/** An edge in a connection. */
export type ContactEdge = {
__typename?: 'ContactEdge';
/** A cursor for use in pagination. */
cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
node?: Maybe<Contact>;
};
/** Autogenerated return type of ContactUpdate. */
export type ContactUpdatePayload = {
__typename?: 'ContactUpdatePayload';
contact?: Maybe<Contact>;
errors?: Maybe<Scalars['String']['output']>;
};
/** The coupon record that can be applied to a subscription */
export type Coupon = {
__typename?: 'Coupon';
/** Is the coupon active */
active: Scalars['Boolean']['output'];
/** Unique coupon code */
couponCode: Scalars['String']['output'];
/** Datetime the coupon was created */
createdAt: Scalars['ISO8601DateTime']['output'];
/** Currency ID of the coupon */
currencyId?: Maybe<Scalars['ID']['output']>;
/** Description of the coupon */
description?: Maybe<Scalars['String']['output']>;
/** Amount of the discount */
discountAmount?: Maybe<Scalars['Float']['output']>;
/** Type of discount the coupon applies */
discountKind: CouponDiscountKind;
/** Percent of the discount */
discountPercentage?: Maybe<Scalars['Float']['output']>;
/** Unique ID for the coupon */
id: Scalars['ID']['output'];
/** Name of the coupon */
name: Scalars['String']['output'];
/** Plan ID the coupon applies to */
planId?: Maybe<Scalars['ID']['output']>;
/** Date the coupon expires */
redemptionEndDate?: Maybe<Scalars['ISO8601Date']['output']>;
/** Number of times the coupon has been redeemed */
redemptionsCount?: Maybe<Scalars['Int']['output']>;
/** Maximum number of times the coupon can be redeemed */
redemptionsMax?: Maybe<Scalars['Int']['output']>;
/** Datetime the coupon was last updated */
updatedAt: Scalars['ISO8601DateTime']['output'];
};
/** Attributes for creating and updating a coupon */
export type CouponAttributes = {
/** Is the coupon active */
active?: InputMaybe<Scalars['Boolean']['input']>;
/** Unique coupon code */
couponCode?: InputMaybe<Scalars['String']['input']>;
/** Currency ID of the coupon */
currencyId?: InputMaybe<Scalars['ID']['input']>;
/** Description of the coupon */
description?: InputMaybe<Scalars['String']['input']>;
/** Amount of the discount */
discountAmount?: InputMaybe<Scalars['Float']['input']>;
/** Type of discount the coupon applies */
discountKind?: InputMaybe<CouponDiscountKind>;
/** Percent of the discount */
discountPercentage?: InputMaybe<Scalars['Float']['input']>;
/** Name of the coupon */
name?: InputMaybe<Scalars['String']['input']>;
/** Date the coupon expires */
redemptionEndDate?: InputMaybe<Scalars['ISO8601Date']['input']>;
/** Maximum number of times the coupon can be redeemed */
redemptionsMax?: InputMaybe<Scalars['Int']['input']>;
};
/** The connection type for Coupon. */
export type CouponConnection = {
__typename?: 'CouponConnection';
/** A list of edges. */
edges?: Maybe<Array<Maybe<CouponEdge>>>;
/** A list of nodes. */
nodes?: Maybe<Array<Maybe<Coupon>>>;
/** Information to aid in pagination. */
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};
/** Autogenerated return type of CouponCreate. */
export type CouponCreatePayload = {
__typename?: 'CouponCreatePayload';
coupon?: Maybe<Coupon>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
/** Autogenerated return type of CouponDelete. */
export type CouponDeletePayload = {
__typename?: 'CouponDeletePayload';
coupon?: Maybe<Coupon>;
errors?: Maybe<Scalars['String']['output']>;
};
export type CouponDiscountKind =
/** Amount */
'AMOUNT'
/** Percentage */
| 'PERCENTAGE';
/** An edge in a connection. */
export type CouponEdge = {
__typename?: 'CouponEdge';
/** A cursor for use in pagination. */
cursor: Scalars['String']['output'];
/** The item at the end of the edge. */
node?: Maybe<Coupon>;
};
/** Autogenerated return type of CouponUpdate. */
export type CouponUpdatePayload = {
__typename?: 'CouponUpdatePayload';
coupon?: Maybe<Coupon>;
errors?: Maybe<Array<Scalars['String']['output']>>;
};
export type CouponValidate = {
__typename?: 'CouponValidate';
couponIsValid: Scalars['Boolean']['output'];
};
export type CreditItemAttributes = {
amount: Scalars['Float']['input'];
id: Scalars['ID']['input'];
};
export type CreditNote = {
__typename?: 'CreditNote';
account: Account;
accountId: Scalars['ID']['output'];
amount: Scalars['Float']['output'];
amountApplied: Scalars['Float']['output'];
amountUnapplied: Scalars['Float']['output'];
appliedToInvoices?: Maybe<InvoiceConnection>;
createdAt: Scalars['ISO8601DateTime']['output'];
creditNoteItems?: Maybe<Array<CreditNoteItem>>;
creditedInvoice?: Maybe<Invoice>;
creditedInvoiceId?: Maybe<Scalars['ID']['output']>;
currencyId: Scalars['ID']['output'];
description: Scalars['String']['output'];
disputeReason?: Maybe<DisputeReason>;
disputeReasonId?: Maybe<Scalars['ID']['output']>;
entity: Entity;
entityId: Scalars['ID']['output'];
id?: Maybe<Scalars['ID']['output']>;
isCredit: Scalars['Boolean']['output'];
isLegacy: Scalars['Boolean']['output'];
issuedAt?: Maybe<Scalars['ISO8601Date']['output']>;
kind: CreditNoteKind;
number?: Maybe<Scalars['String']['output']>;
operations: Array<Scalars['String']['output']>;
state: CreditNoteState;
subtotal: Scalars['Float']['output'];
taxAmount: Scalars['Float']['output'];
updatedAt: Scalars['ISO8601DateTime']['output'];
uuid: Scalars['ID']['output'];
warren: Warren;
warrenId: Scalars['ID']['output'];
};
export type CreditNoteAppliedToInvoicesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
filter?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
/** Autogenerated return type of CreditNoteApplyToInvoices. */
export type CreditNoteApplyToInvoicesPayload = {
__typename?: 'CreditNoteApplyToInvoicesPayload';
creditNote?: Maybe<CreditNote>;
errors?: Maybe<Array<Scalars['String']['output']>>;
paidInvoices?: Maybe<Array<Invoice>>;
paymentApplications?: Maybe<Array<PaymentApplication>>;
removedInvoices?: Maybe<Array<Invoice>>;
};
export type CreditNoteAttributes = {
creditNoteItems?: InputMaybe<Array<CreditNoteItemAttributes>>;
disputeReasonId?: InputMaybe<Scalars['ID']['input']>;
kind?: InputMaybe<CreditNoteKind>;
};
/** The connection type for CreditNote. */
export type CreditNoteCo