UNPKG

@accru/client

Version:

SDK client for Accru API

1,506 lines (1,499 loc) 802 kB
import { ApolloClient } from '@apollo/client/core'; import { GraphQLFormattedError } from 'graphql'; import { TypedDocumentNode } from '@graphql-typed-document-node/core'; type AccruClientContext = { apolloClient: ApolloClient; }; declare const AccruEnvironmentUrls: { production: string; qa: string; }; interface IAccruClientParams { environment?: keyof typeof AccruEnvironmentUrls; /** Overrides the environment base URL */ url?: string; getAuthToken?: () => Promise<string>; onAuthError?: () => void; onGraphQLError?: (errors: ReadonlyArray<GraphQLFormattedError>) => void; onNetworkError?: (error: GraphQLFormattedError) => void; } type WithoutTypename<T> = { [P in keyof T as Exclude<P, '__typename'>]: T[P]; }; type Res<T> = WithoutTypename<T> extends Record<string, infer U> ? U : never; type IStandardList = { edges: { cursor: any; node: any; }[]; pageInfo: any; totalCount: number; }; type ListResponse<T extends IStandardList> = { items: Array<T['edges'][number]['node'] & { cursor: T['edges'][number]['cursor']; }>; edges: T['edges']; pageInfo: T['pageInfo']; totalCount: T['totalCount']; }; type IStandardChildrenList = { [key: string]: any; data: IStandardList; }; type ChildrenEdgeListResponse<T extends IStandardChildrenList> = T & ListResponse<T['data']>; declare const processResponseAsList: <T extends IStandardList>(response: T) => ListResponse<T>; /** Internal type. DO NOT USE DIRECTLY. */ type Exact<T extends { [key: string]: unknown; }> = { [K in keyof T]: T[K]; }; /** Internal type. DO NOT USE DIRECTLY. */ type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never; }; declare enum ACCT_PROVIDER { QUICKBOOKS = "QUICKBOOKS" } declare enum BILL_STATUS { OPEN = "OPEN", PAID = "PAID" } declare enum COUNTRY_ISO_3 { ABW = "ABW", AFG = "AFG", AGO = "AGO", AIA = "AIA", ALA = "ALA", ALB = "ALB", AND = "AND", ARE = "ARE", ARG = "ARG", ARM = "ARM", ASM = "ASM", ATA = "ATA", ATF = "ATF", ATG = "ATG", AUS = "AUS", AUT = "AUT", AZE = "AZE", BDI = "BDI", BEL = "BEL", BEN = "BEN", BES = "BES", BFA = "BFA", BGD = "BGD", BGR = "BGR", BHR = "BHR", BHS = "BHS", BIH = "BIH", BLM = "BLM", BLR = "BLR", BLZ = "BLZ", BMU = "BMU", BOL = "BOL", BRA = "BRA", BRB = "BRB", BRN = "BRN", BTN = "BTN", BVT = "BVT", BWA = "BWA", CAF = "CAF", CAN = "CAN", CCK = "CCK", CHE = "CHE", CHL = "CHL", CHN = "CHN", CIV = "CIV", CMR = "CMR", COD = "COD", COG = "COG", COK = "COK", COL = "COL", COM = "COM", CPV = "CPV", CRI = "CRI", CUB = "CUB", CUW = "CUW", CXR = "CXR", CYM = "CYM", CYP = "CYP", CZE = "CZE", DEU = "DEU", DJI = "DJI", DMA = "DMA", DNK = "DNK", DOM = "DOM", DZA = "DZA", ECU = "ECU", EGY = "EGY", ERI = "ERI", ESH = "ESH", ESP = "ESP", EST = "EST", ETH = "ETH", FIN = "FIN", FJI = "FJI", FLK = "FLK", FRA = "FRA", FRO = "FRO", FSM = "FSM", GAB = "GAB", GBR = "GBR", GEO = "GEO", GGY = "GGY", GHA = "GHA", GIB = "GIB", GIN = "GIN", GLP = "GLP", GMB = "GMB", GNB = "GNB", GNQ = "GNQ", GRC = "GRC", GRD = "GRD", GRL = "GRL", GTM = "GTM", GUF = "GUF", GUM = "GUM", GUY = "GUY", HKG = "HKG", HMD = "HMD", HND = "HND", HRV = "HRV", HTI = "HTI", HUN = "HUN", IDN = "IDN", IMN = "IMN", IND = "IND", IOT = "IOT", IRL = "IRL", IRN = "IRN", IRQ = "IRQ", ISL = "ISL", ISR = "ISR", ITA = "ITA", JAM = "JAM", JEY = "JEY", JOR = "JOR", JPN = "JPN", KAZ = "KAZ", KEN = "KEN", KGZ = "KGZ", KHM = "KHM", KIR = "KIR", KNA = "KNA", KOR = "KOR", KWT = "KWT", LAO = "LAO", LBN = "LBN", LBR = "LBR", LBY = "LBY", LCA = "LCA", LIE = "LIE", LKA = "LKA", LSO = "LSO", LTU = "LTU", LUX = "LUX", LVA = "LVA", MAC = "MAC", MAF = "MAF", MAR = "MAR", MCO = "MCO", MDA = "MDA", MDG = "MDG", MDV = "MDV", MEX = "MEX", MHL = "MHL", MKD = "MKD", MLI = "MLI", MLT = "MLT", MMR = "MMR", MNE = "MNE", MNG = "MNG", MNP = "MNP", MOZ = "MOZ", MRT = "MRT", MSR = "MSR", MTQ = "MTQ", MUS = "MUS", MWI = "MWI", MYS = "MYS", MYT = "MYT", NAM = "NAM", NCL = "NCL", NER = "NER", NFK = "NFK", NGA = "NGA", NIC = "NIC", NIU = "NIU", NLD = "NLD", NOR = "NOR", NPL = "NPL", NRU = "NRU", NZL = "NZL", OMN = "OMN", PAK = "PAK", PAN = "PAN", PCN = "PCN", PER = "PER", PHL = "PHL", PLW = "PLW", PNG = "PNG", POL = "POL", PRI = "PRI", PRK = "PRK", PRT = "PRT", PRY = "PRY", PSE = "PSE", PYF = "PYF", QAT = "QAT", REU = "REU", ROU = "ROU", RUS = "RUS", RWA = "RWA", SAU = "SAU", SDN = "SDN", SEN = "SEN", SGP = "SGP", SGS = "SGS", SHN = "SHN", SJM = "SJM", SLB = "SLB", SLE = "SLE", SLV = "SLV", SMR = "SMR", SOM = "SOM", SPM = "SPM", SRB = "SRB", SSD = "SSD", STP = "STP", SUR = "SUR", SVK = "SVK", SVN = "SVN", SWE = "SWE", SWZ = "SWZ", SXM = "SXM", SYC = "SYC", SYR = "SYR", TCA = "TCA", TCD = "TCD", TGO = "TGO", THA = "THA", TJK = "TJK", TKL = "TKL", TKM = "TKM", TLS = "TLS", TON = "TON", TTO = "TTO", TUN = "TUN", TUR = "TUR", TUV = "TUV", TWN = "TWN", TZA = "TZA", UGA = "UGA", UKR = "UKR", UMI = "UMI", URY = "URY", USA = "USA", UZB = "UZB", VAT = "VAT", VCT = "VCT", VEN = "VEN", VGB = "VGB", VIR = "VIR", VNM = "VNM", VUT = "VUT", WLF = "WLF", WSM = "WSM", YEM = "YEM", ZAF = "ZAF", ZMB = "ZMB", ZWE = "ZWE" } declare enum CURRENCY { EUR = "EUR", USD = "USD" } declare enum INVOICE_STATUS { OPEN = "OPEN", PAID = "PAID" } declare enum NOTIFICATION_CHANNEL { EMAIL = "EMAIL", SMS = "SMS" } declare enum NOTIFICATION_EMAIL_COPY_MODE { BCC = "BCC", TO = "TO" } declare enum NOTIFICATION_FEATURE_TYPE { ORGANIZATION_ACCT_PROVIDER_APP_DISCONNECTED = "ORGANIZATION_ACCT_PROVIDER_APP_DISCONNECTED", ORGANIZATION_ACCT_PROVIDER_CONNECTION_EXPIRED = "ORGANIZATION_ACCT_PROVIDER_CONNECTION_EXPIRED", ORGANIZATION_ACCT_PROVIDER_CONNECTION_SUCCESS = "ORGANIZATION_ACCT_PROVIDER_CONNECTION_SUCCESS", ORGANIZATION_ACCT_PROVIDER_CONNECTION_WITHOUT_CONFIG = "ORGANIZATION_ACCT_PROVIDER_CONNECTION_WITHOUT_CONFIG", ORGANIZATION_ACCT_PROVIDER_ORG_DISCONNECTED = "ORGANIZATION_ACCT_PROVIDER_ORG_DISCONNECTED", ORGANIZATION_CONNECTION_ACCEPTED = "ORGANIZATION_CONNECTION_ACCEPTED", ORGANIZATION_CONNECTION_INVITE = "ORGANIZATION_CONNECTION_INVITE", ORGANIZATION_CUSTOMER_INVOICE = "ORGANIZATION_CUSTOMER_INVOICE", ORGANIZATION_CUSTOMER_STATEMENT = "ORGANIZATION_CUSTOMER_STATEMENT", ORGANIZATION_EMAIL_CHANGED = "ORGANIZATION_EMAIL_CHANGED", ORGANIZATION_EMAIL_VERIFICATION = "ORGANIZATION_EMAIL_VERIFICATION", ORGANIZATION_GENERIC_INVITE = "ORGANIZATION_GENERIC_INVITE", ORGANIZATION_INVITE_COLLABORATOR = "ORGANIZATION_INVITE_COLLABORATOR", ORGANIZATION_INVOICE_DUE_REMINDER = "ORGANIZATION_INVOICE_DUE_REMINDER", ORGANIZATION_INVOICE_OVERDUE_REMINDER = "ORGANIZATION_INVOICE_OVERDUE_REMINDER", ORGANIZATION_PROJECT_CHANGE_REQUEST_ACTION = "ORGANIZATION_PROJECT_CHANGE_REQUEST_ACTION", ORGANIZATION_PROJECT_CHANGE_REQUEST_PUBLISHED = "ORGANIZATION_PROJECT_CHANGE_REQUEST_PUBLISHED", ORGANIZATION_REMINDER_BLOCKED_ACCT_DISCONNECTED = "ORGANIZATION_REMINDER_BLOCKED_ACCT_DISCONNECTED", ORGANIZATION_REMINDER_BLOCKED_STALE_SYNC = "ORGANIZATION_REMINDER_BLOCKED_STALE_SYNC", ORGANIZATION_UNCONNECTED_CUSTOMER_PROJECT_ACTION_VERIFICATION = "ORGANIZATION_UNCONNECTED_CUSTOMER_PROJECT_ACTION_VERIFICATION", ORGANIZATION_UNCONNECTED_CUSTOMER_STATEMENT = "ORGANIZATION_UNCONNECTED_CUSTOMER_STATEMENT", USER_CREATED = "USER_CREATED", USER_EMAIL_CHANGED = "USER_EMAIL_CHANGED", USER_EMAIL_VERIFICATION = "USER_EMAIL_VERIFICATION", USER_PASSWORD_CHANGED = "USER_PASSWORD_CHANGED", USER_PASSWORD_CHANGE_VERIFICATION = "USER_PASSWORD_CHANGE_VERIFICATION", USER_PASSWORD_RESET = "USER_PASSWORD_RESET", USER_PASSWORD_RESET_VERIFICATION = "USER_PASSWORD_RESET_VERIFICATION", USER_PHONE_NUMBER_CHANGED = "USER_PHONE_NUMBER_CHANGED", USER_PHONE_NUMBER_REMOVED = "USER_PHONE_NUMBER_REMOVED", USER_PHONE_VERIFICATION = "USER_PHONE_VERIFICATION", USER_SIGN_UP_EMAIL_VERIFICATION = "USER_SIGN_UP_EMAIL_VERIFICATION" } declare enum NOTIFICATION_PROVIDER { EMAIL_CUSTOMER_IO = "EMAIL_CUSTOMER_IO", PENDING = "PENDING", SMS_AWS_SNS = "SMS_AWS_SNS" } declare enum NOTIFICATION_RELATED_ENTITY_TYPE { ORGANIZATION_CONNECTION = "ORGANIZATION_CONNECTION", ORGANIZATION_INVOICE = "ORGANIZATION_INVOICE", ORGANIZATION_PROJECT_CHANGE_REQUEST = "ORGANIZATION_PROJECT_CHANGE_REQUEST" } declare enum NOTIFICATION_SENDER_TARGET_ENTITY_TYPE { ORGANIZATION_CUSTOMER = "ORGANIZATION_CUSTOMER" } declare enum NOTIFICATION_SENDER_TYPE { ORGANIZATION = "ORGANIZATION", SYSTEM = "SYSTEM" } declare enum ORGANIZATION_ACCT_PROVIDER_CONN_STATUS { CONNECTED = "CONNECTED", DISCONNECTED = "DISCONNECTED", EXPIRED = "EXPIRED" } declare enum ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_MODE { AUTOMATIC = "AUTOMATIC", MANUAL = "MANUAL", SCHEDULED = "SCHEDULED" } declare enum ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_SCOPE { COMPLETE = "COMPLETE", CUSTOMER = "CUSTOMER" } declare enum ORGANIZATION_ACCT_PROVIDER_TOKEN_EXCHANGE_STATUS { ACCT_PROVIDER_CONNECTED_TO_DIFFERENT_ORGANIZATION = "ACCT_PROVIDER_CONNECTED_TO_DIFFERENT_ORGANIZATION", COMPLETED = "COMPLETED", DIFFERENT_ACCOUNTING_PROVIDER_ALREADY_CONNECTED = "DIFFERENT_ACCOUNTING_PROVIDER_ALREADY_CONNECTED", ORGANIZATION_ALREADY_EXISTS = "ORGANIZATION_ALREADY_EXISTS" } declare enum ORGANIZATION_CONNECTION_STATUS { ACCEPTED = "ACCEPTED", INVITED = "INVITED", REJECTED = "REJECTED" } declare enum ORGANIZATION_COUPON_CAMPAIGN { FOUNDING_FIRST_1OO_ORGANIZATIONS = "FOUNDING_FIRST_1OO_ORGANIZATIONS", RANDOM_ADMIN_GIVEAWAY = "RANDOM_ADMIN_GIVEAWAY" } declare enum ORGANIZATION_COUPON_CATEGORY { ORGANIZATION_SUBSCRIPTION = "ORGANIZATION_SUBSCRIPTION" } declare enum ORGANIZATION_COUPON_STATUS { ACTIVATED = "ACTIVATED", AVAILABLE = "AVAILABLE", EXPIRED = "EXPIRED" } declare enum ORGANIZATION_COUPON_SUBDIVISION { ORGANIZATION_SUBSCRIPTION_FOUNDING_PRICING_TIER = "ORGANIZATION_SUBSCRIPTION_FOUNDING_PRICING_TIER" } declare enum ORGANIZATION_PAYMENT_METHOD_BOUND_MODE { SYSTEM_SUBSCRIPTION_PAYMENT = "SYSTEM_SUBSCRIPTION_PAYMENT", VENDOR_RECEIVING_METHOD_PAYMENT = "VENDOR_RECEIVING_METHOD_PAYMENT" } declare enum ORGANIZATION_PROJECT_CHANGE_REQUEST_SIDE { CUSTOMER = "CUSTOMER", VENDOR = "VENDOR" } declare enum ORGANIZATION_SUBSCRIPTION_ADDON_ITEM { ADDITIONAL_USERS_ADDON = "ADDITIONAL_USERS_ADDON" } declare enum ORGANIZATION_SUBSCRIPTION_BASE_ITEM { BASIC_PLAN = "BASIC_PLAN", FREE_PLAN = "FREE_PLAN", PROJECTS_MODULE = "PROJECTS_MODULE", PRO_PLAN = "PRO_PLAN" } declare enum ORGANIZATION_SUBSCRIPTION_ITEM { ADDITIONAL_USERS_ADDON = "ADDITIONAL_USERS_ADDON", BASIC_PLAN = "BASIC_PLAN", FREE_PLAN = "FREE_PLAN", PROJECTS_MODULE = "PROJECTS_MODULE", PRO_PLAN = "PRO_PLAN" } declare enum ORGANIZATION_SUBSCRIPTION_ITEM_CATEGORY { ADDON = "ADDON", MODULE = "MODULE", PLAN = "PLAN" } declare enum ORGANIZATION_SUBSCRIPTION_ITEM_CLASSIFICATION { ADDON = "ADDON", BASE = "BASE" } declare enum ORGANIZATION_SUBSCRIPTION_ITEM_STATUS { ACTIVE = "ACTIVE", CANCELED = "CANCELED" } declare enum ORGANIZATION_SUBSCRIPTION_PAYMENT_STATUS { CURRENT = "CURRENT", OVERDUE = "OVERDUE", PENDING = "PENDING", REQUIRES_ACTION = "REQUIRES_ACTION" } declare enum ORGANIZATION_SUBSCRIPTION_PRICE_TIER { FOUNDING = "FOUNDING", STANDARD = "STANDARD" } declare enum ORGANIZATION_SUBSCRIPTION_PROVIDER { ACCRUPAY = "ACCRUPAY", MANUAL = "MANUAL", NUVEI = "NUVEI" } declare enum ORGANIZATION_SUBSCRIPTION_PROVIDER_STATUS { ACTIVE = "ACTIVE", CANCELED = "CANCELED", EXPIRED = "EXPIRED", INACTIVE = "INACTIVE", INITIALIZING = "INITIALIZING" } declare enum ORGANIZATION_SUBSCRIPTION_RENEW_INTERVAL { MONTHLY = "MONTHLY", YEARLY = "YEARLY" } declare enum ORGANIZATION_SUBSCRIPTION_STATUS { ACTIVE = "ACTIVE", CANCELED = "CANCELED", INACTIVE = "INACTIVE", INITIALIZING = "INITIALIZING" } declare enum ORGANIZATION_SUBSCRIPTION_TRANSACTION_PROCEDURE { CHANGE = "CHANGE", PURCHASE = "PURCHASE", RENEWAL = "RENEWAL" } declare enum ORGANIZATION_USER_ROLE { ADMIN = "ADMIN", EDITOR = "EDITOR", OWNER = "OWNER", VIEWER = "VIEWER" } type OrganizationProjectChangeRequestUpsertSchema = { budget_amount: bigint; change_request_expires_at?: unknown; contract_url?: string | null | undefined; ends_at?: unknown; name: string; publish?: boolean | null | undefined; starts_at?: unknown; }; type OrganizationTransactionBillingAddressSchema = { billing_address_city?: string | null | undefined; billing_address_country_code_iso_3: COUNTRY_ISO_3; billing_address_line_1?: string | null | undefined; billing_address_line_2?: string | null | undefined; billing_address_number?: string | null | undefined; billing_address_state?: string | null | undefined; billing_address_zip_code?: string | null | undefined; billing_email: string; billing_first_name: string; billing_last_name: string; billing_phone_number?: string | null | undefined; }; declare enum PAYMENT_METHOD { CARD = "CARD", CHECK = "CHECK", MANUAL = "MANUAL", QUICKBOOKS = "QUICKBOOKS", SYNC = "SYNC" } declare enum PAYMENT_PROVIDER { ACCRUPAY = "ACCRUPAY", MANUAL = "MANUAL", NUVEI = "NUVEI", QUICKBOOKS = "QUICKBOOKS" } declare enum PROJECT_CHANGE_REQUEST_STATUS { ACCEPTED = "ACCEPTED", CANCELED = "CANCELED", DRAFT = "DRAFT", EXPIRED = "EXPIRED", PUBLISHED = "PUBLISHED", REJECTED = "REJECTED" } declare enum PROJECT_STATUS { ACTIVE = "ACTIVE", CANCELED = "CANCELED", COMPLETED = "COMPLETED", EXPIRED = "EXPIRED", WAITING = "WAITING" } declare enum RECIPIENT_TYPE { ORGANIZATION = "ORGANIZATION", OTHER = "OTHER", USER = "USER" } declare enum REMINDER_DUE_DATE_MODE { AFTER = "AFTER", BEFORE = "BEFORE" } declare enum REMINDER_REPEAT_MODE { DAILY = "DAILY", MONTHLY = "MONTHLY", WEEKLY = "WEEKLY" } declare enum SORT_ORDER { ASC = "ASC", DESC = "DESC" } declare enum STATEMENT_ACCESS_TYPE { CONNECTED_CUSTOMER = "CONNECTED_CUSTOMER", UNCONNECTED_CUSTOMER = "UNCONNECTED_CUSTOMER" } declare enum STATEMENT_LINE_TYPE { INVOICE = "INVOICE", TRANSACTION = "TRANSACTION" } type SortingFieldSchema = { field: string; order: SORT_ORDER; }; declare enum TAX_TYPE { ATIN = "ATIN", EIN = "EIN", ITIN = "ITIN", PTIN = "PTIN", SSN = "SSN" } declare enum TRANSACTION_PROVIDER { ACCRUPAY = "ACCRUPAY", MANUAL = "MANUAL", NUVEI = "NUVEI", QUICKBOOKS = "QUICKBOOKS" } declare enum TRANSACTION_STATUS { EXPIRED = "EXPIRED", FAILED = "FAILED", PENDING = "PENDING", REVERTED = "REVERTED", STARTED = "STARTED", SUCCEEDED = "SUCCEEDED" } type UserEmailVerifyOrChangeFinishSchema = { email: string; verification_code: string; }; type UserEmailVerifyOrChangeStartSchema = { email: string; }; type UserOrganizationAcctProviderConnUpdateSchema = { automatic_pull_enabled: boolean; }; type UserOrganizationCollaboratorUpdateSchema = { customer_email_copy_mode?: NOTIFICATION_EMAIL_COPY_MODE | null | undefined; receive_invoice_reminders: boolean; role: ORGANIZATION_USER_ROLE; }; type UserOrganizationCreateSchema = { address_city?: string | null | undefined; address_country_code_iso_3?: COUNTRY_ISO_3 | null | undefined; address_line_1?: string | null | undefined; address_line_2?: string | null | undefined; address_number?: string | null | undefined; address_state?: string | null | undefined; address_zip_code?: string | null | undefined; business_industry?: string | null | undefined; business_number_of_employees?: number | null | undefined; email: string; language?: string | null | undefined; name: string; phone_number?: string | null | undefined; primary_contact_name?: string | null | undefined; referred_by_code?: string | null | undefined; setting_customer_email_copy_mode?: NOTIFICATION_EMAIL_COPY_MODE | null | undefined; timezone?: string | null | undefined; website?: string | null | undefined; }; type UserOrganizationCustomerContactCreateSchema = { email: string; email_copy_mode?: NOTIFICATION_EMAIL_COPY_MODE | null | undefined; is_default: boolean; name: string; phone_number?: string | null | undefined; receive_invoice_reminders: boolean; }; type UserOrganizationCustomerContactUpdateSchema = { email: string; email_copy_mode?: NOTIFICATION_EMAIL_COPY_MODE | null | undefined; is_default: boolean; name: string; phone_number?: string | null | undefined; receive_invoice_reminders: boolean; }; type UserOrganizationCustomerSendInvoiceEmailSchema = { contact_ids: Array<string>; organization_invoice_id: string; send_to_base_customer_email?: boolean | null | undefined; send_to_primary_contact?: boolean | null | undefined; }; type UserOrganizationCustomerSendStatementEmailSchema = { contact_ids: Array<string>; organization_customer_id: string; send_to_base_customer_email?: boolean | null | undefined; send_to_primary_contact?: boolean | null | undefined; }; type UserOrganizationEmailVerifyOrChangeFinishSchema = { email: string; verification_code: string; }; type UserOrganizationEmailVerifyOrChangeStartSchema = { email: string; }; type UserOrganizationInviteCollaboratorCreateSchema = { email: string; role: ORGANIZATION_USER_ROLE; }; type UserOrganizationProjectCreateSchema = { budget_amount: bigint; budget_currency_code: CURRENCY; contract_url?: string | null | undefined; description?: string | null | undefined; ends_at?: unknown; name: string; organization_customer_id: string; starts_at?: unknown; }; type UserOrganizationProjectUpdateSchema = { canceled_at?: unknown; completed_at?: unknown; contract_url?: string | null | undefined; description?: string | null | undefined; }; type UserOrganizationReminderSettingSchema = { days_amount: number; due_date_mode: REMINDER_DUE_DATE_MODE; organization_customer_id?: string | null | undefined; organization_invoice_id?: string | null | undefined; organization_project_id?: string | null | undefined; repeat_mode?: REMINDER_REPEAT_MODE | null | undefined; repeat_value?: number | null | undefined; selected_hour: number; }; type UserOrganizationSubscriptionCalculatePricingAddonItemSchema = { item_type: ORGANIZATION_SUBSCRIPTION_ADDON_ITEM; quantity: number; }; type UserOrganizationSubscriptionCalculatePricingSchema = { currency: CURRENCY; organization_coupon_id?: string | null | undefined; renew_interval: ORGANIZATION_SUBSCRIPTION_RENEW_INTERVAL; selected_addon_items: Array<UserOrganizationSubscriptionCalculatePricingAddonItemSchema>; selected_base_item: ORGANIZATION_SUBSCRIPTION_BASE_ITEM; }; type UserOrganizationSubscriptionStartPurchaseSchema = { billing_address?: OrganizationTransactionBillingAddressSchema | null | undefined; calculated_total_amount: bigint; currency: CURRENCY; organization_coupon_id?: string | null | undefined; renew_interval: ORGANIZATION_SUBSCRIPTION_RENEW_INTERVAL; selected_addon_items: Array<UserOrganizationSubscriptionCalculatePricingAddonItemSchema>; selected_base_item: ORGANIZATION_SUBSCRIPTION_BASE_ITEM; }; type UserOrganizationUpdateSchema = { address_city?: string | null | undefined; address_country_code_iso_3?: COUNTRY_ISO_3 | null | undefined; address_line_1?: string | null | undefined; address_line_2?: string | null | undefined; address_number?: string | null | undefined; address_state?: string | null | undefined; address_zip_code?: string | null | undefined; business_industry?: string | null | undefined; business_number_of_employees?: number | null | undefined; language?: string | null | undefined; name?: string | null | undefined; phone_number?: string | null | undefined; primary_contact_name?: string | null | undefined; setting_customer_email_copy_mode?: NOTIFICATION_EMAIL_COPY_MODE | null | undefined; timezone?: string | null | undefined; website?: string | null | undefined; }; type UserOrganizationVendorContactCreateSchema = { email: string; is_default: boolean; name: string; phone_number?: string | null | undefined; }; type UserOrganizationVendorContactUpdateSchema = { email: string; is_default: boolean; name: string; phone_number?: string | null | undefined; }; type UserPasswordChangeFinishSchema = { new_password: string; verification_code: string; }; type UserPasswordChangeStartSchema = { current_password?: string | null | undefined; }; type UserPasswordResetFinishSchema = { email: string; new_password: string; user_id: string; verification_code: string; }; type UserPasswordResetStartSchema = { email: string; }; type UserPhoneNumberVerifyOrChangeFinishSchema = { phone_number: string; verification_code: string; }; type UserPhoneNumberVerifyOrChangeStartSchema = { phone_number: string; }; type UserSignUpWithEmailFinishSchema = { email: string; password: string; verification_code: string; }; type UserSignUpWithEmailStartSchema = { email: string; }; type UserSignUpWithEmailVerifySchema = { email: string; verification_code: string; }; type UserUpdateDataSchema = { first_name: string; language: string; last_name: string; timezone: string; }; type ApolloClientTestQueryQueryVariables = Exact<{ [key: string]: never; }>; type ApolloClientTestQueryQuery = { __typename: 'Query'; }; type OrganizationAcctProviderConnFragmentFragment = { id: string; acct_provider: ACCT_PROVIDER; code: string; url: string | null; payload: unknown; customer_add_url: string | null; invoice_add_url: string | null; vendor_add_url: string | null; bill_add_url: string | null; name: string | null; email: string | null; phone_number: string | null; website_url: string | null; primary_contact_name: string | null; business_name: string | null; business_industry: string | null; business_number_of_employees: number | null; timezone: string | null; language: string | null; business_tax_code_type: TAX_TYPE | null; business_tax_code: string | null; address_line_1: string | null; address_number: string | null; address_line_2: string | null; address_city: string | null; address_state: string | null; address_zip_code: string | null; address_country_code_iso_3: COUNTRY_ISO_3 | null; address_lat: number | null; address_lng: number | null; business_address_line_1: string | null; business_address_number: string | null; business_address_line_2: string | null; business_address_city: string | null; business_address_state: string | null; business_address_zip_code: string | null; business_address_country_code_iso_3: COUNTRY_ISO_3 | null; business_address_lat: number | null; business_address_lng: number | null; automatic_pull_enabled: boolean; status: ORGANIZATION_ACCT_PROVIDER_CONN_STATUS; disconnected_at: unknown; conn_expires_at: unknown; organization_id: string; last_conn_at: unknown; last_successful_sync_id: string | null; last_successful_sync_at: unknown; last_sync_succeeded: boolean | null; last_sync_id: string | null; last_sync_at: unknown; created_at: unknown; updated_at: unknown; synchronizations: { edges: Array<{ node: { id: string; mode: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_MODE; force: boolean | null; provider: ACCT_PROVIDER; errors: Array<string>; warnings: Array<string>; started_at: unknown; finished_at: unknown; failed_at: unknown; succeeded_at: unknown; skipped_at: unknown; read_success: number; read_failure: number; skipped: number; create_success: number; create_failure: number; update_success: number; update_failure: number; delete_failure: number; delete_success: number; process_failure: number; process_success: number; created_at: unknown; updated_at: unknown; scope: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_SCOPE; scope_id: string | null; scope_description: string | null; organization_id: string; organization_acct_provider_conn_id: string; data: { customer: { items: unknown; } | null; invoice: { items: unknown; } | null; invoice_transaction: { items: unknown; } | null; vendor: { items: unknown; } | null; bill: { items: unknown; } | null; bill_transaction: { items: unknown; } | null; } | null; }; }>; }; }; type OrganizationAcctProviderConnSynchronizationFragmentFragment = { id: string; mode: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_MODE; force: boolean | null; provider: ACCT_PROVIDER; errors: Array<string>; warnings: Array<string>; started_at: unknown; finished_at: unknown; failed_at: unknown; succeeded_at: unknown; skipped_at: unknown; read_success: number; read_failure: number; skipped: number; create_success: number; create_failure: number; update_success: number; update_failure: number; delete_failure: number; delete_success: number; process_failure: number; process_success: number; created_at: unknown; updated_at: unknown; scope: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_SCOPE; scope_id: string | null; scope_description: string | null; organization_id: string; organization_acct_provider_conn_id: string; data: { customer: { items: unknown; } | null; invoice: { items: unknown; } | null; invoice_transaction: { items: unknown; } | null; vendor: { items: unknown; } | null; bill: { items: unknown; } | null; bill_transaction: { items: unknown; } | null; } | null; }; type UserOrganizationAcctProviderConnDisconnectMutationVariables = Exact<{ organizationId: string; accountProvider: ACCT_PROVIDER; }>; type UserOrganizationAcctProviderConnDisconnectMutation = { userOrganizationAcctProviderConnDisconnect: { id: string; acct_provider: ACCT_PROVIDER; code: string; url: string | null; payload: unknown; customer_add_url: string | null; invoice_add_url: string | null; vendor_add_url: string | null; bill_add_url: string | null; name: string | null; email: string | null; phone_number: string | null; website_url: string | null; primary_contact_name: string | null; business_name: string | null; business_industry: string | null; business_number_of_employees: number | null; timezone: string | null; language: string | null; business_tax_code_type: TAX_TYPE | null; business_tax_code: string | null; address_line_1: string | null; address_number: string | null; address_line_2: string | null; address_city: string | null; address_state: string | null; address_zip_code: string | null; address_country_code_iso_3: COUNTRY_ISO_3 | null; address_lat: number | null; address_lng: number | null; business_address_line_1: string | null; business_address_number: string | null; business_address_line_2: string | null; business_address_city: string | null; business_address_state: string | null; business_address_zip_code: string | null; business_address_country_code_iso_3: COUNTRY_ISO_3 | null; business_address_lat: number | null; business_address_lng: number | null; automatic_pull_enabled: boolean; status: ORGANIZATION_ACCT_PROVIDER_CONN_STATUS; disconnected_at: unknown; conn_expires_at: unknown; organization_id: string; last_conn_at: unknown; last_successful_sync_id: string | null; last_successful_sync_at: unknown; last_sync_succeeded: boolean | null; last_sync_id: string | null; last_sync_at: unknown; created_at: unknown; updated_at: unknown; synchronizations: { edges: Array<{ node: { id: string; mode: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_MODE; force: boolean | null; provider: ACCT_PROVIDER; errors: Array<string>; warnings: Array<string>; started_at: unknown; finished_at: unknown; failed_at: unknown; succeeded_at: unknown; skipped_at: unknown; read_success: number; read_failure: number; skipped: number; create_success: number; create_failure: number; update_success: number; update_failure: number; delete_failure: number; delete_success: number; process_failure: number; process_success: number; created_at: unknown; updated_at: unknown; scope: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_SCOPE; scope_id: string | null; scope_description: string | null; organization_id: string; organization_acct_provider_conn_id: string; data: { customer: { items: unknown; } | null; invoice: { items: unknown; } | null; invoice_transaction: { items: unknown; } | null; vendor: { items: unknown; } | null; bill: { items: unknown; } | null; bill_transaction: { items: unknown; } | null; } | null; }; }>; }; }; }; type UserOrganizationAcctProviderConnUpdateMutationVariables = Exact<{ organizationId: string; accountProvider: ACCT_PROVIDER; data: UserOrganizationAcctProviderConnUpdateSchema; }>; type UserOrganizationAcctProviderConnUpdateMutation = { userOrganizationAcctProviderConnUpdate: { id: string; acct_provider: ACCT_PROVIDER; code: string; url: string | null; payload: unknown; customer_add_url: string | null; invoice_add_url: string | null; vendor_add_url: string | null; bill_add_url: string | null; name: string | null; email: string | null; phone_number: string | null; website_url: string | null; primary_contact_name: string | null; business_name: string | null; business_industry: string | null; business_number_of_employees: number | null; timezone: string | null; language: string | null; business_tax_code_type: TAX_TYPE | null; business_tax_code: string | null; address_line_1: string | null; address_number: string | null; address_line_2: string | null; address_city: string | null; address_state: string | null; address_zip_code: string | null; address_country_code_iso_3: COUNTRY_ISO_3 | null; address_lat: number | null; address_lng: number | null; business_address_line_1: string | null; business_address_number: string | null; business_address_line_2: string | null; business_address_city: string | null; business_address_state: string | null; business_address_zip_code: string | null; business_address_country_code_iso_3: COUNTRY_ISO_3 | null; business_address_lat: number | null; business_address_lng: number | null; automatic_pull_enabled: boolean; status: ORGANIZATION_ACCT_PROVIDER_CONN_STATUS; disconnected_at: unknown; conn_expires_at: unknown; organization_id: string; last_conn_at: unknown; last_successful_sync_id: string | null; last_successful_sync_at: unknown; last_sync_succeeded: boolean | null; last_sync_id: string | null; last_sync_at: unknown; created_at: unknown; updated_at: unknown; synchronizations: { edges: Array<{ node: { id: string; mode: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_MODE; force: boolean | null; provider: ACCT_PROVIDER; errors: Array<string>; warnings: Array<string>; started_at: unknown; finished_at: unknown; failed_at: unknown; succeeded_at: unknown; skipped_at: unknown; read_success: number; read_failure: number; skipped: number; create_success: number; create_failure: number; update_success: number; update_failure: number; delete_failure: number; delete_success: number; process_failure: number; process_success: number; created_at: unknown; updated_at: unknown; scope: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_SCOPE; scope_id: string | null; scope_description: string | null; organization_id: string; organization_acct_provider_conn_id: string; data: { customer: { items: unknown; } | null; invoice: { items: unknown; } | null; invoice_transaction: { items: unknown; } | null; vendor: { items: unknown; } | null; bill: { items: unknown; } | null; bill_transaction: { items: unknown; } | null; } | null; }; }>; }; }; }; type UserOrganizationAcctProviderConnectMutationVariables = Exact<{ organizationId: string; accountProvider: ACCT_PROVIDER; url: string; automaticPull: boolean; }>; type UserOrganizationAcctProviderConnectMutation = { userOrganizationAcctProviderConnect: { id: string; acct_provider: ACCT_PROVIDER; code: string; url: string | null; payload: unknown; customer_add_url: string | null; invoice_add_url: string | null; vendor_add_url: string | null; bill_add_url: string | null; name: string | null; email: string | null; phone_number: string | null; website_url: string | null; primary_contact_name: string | null; business_name: string | null; business_industry: string | null; business_number_of_employees: number | null; timezone: string | null; language: string | null; business_tax_code_type: TAX_TYPE | null; business_tax_code: string | null; address_line_1: string | null; address_number: string | null; address_line_2: string | null; address_city: string | null; address_state: string | null; address_zip_code: string | null; address_country_code_iso_3: COUNTRY_ISO_3 | null; address_lat: number | null; address_lng: number | null; business_address_line_1: string | null; business_address_number: string | null; business_address_line_2: string | null; business_address_city: string | null; business_address_state: string | null; business_address_zip_code: string | null; business_address_country_code_iso_3: COUNTRY_ISO_3 | null; business_address_lat: number | null; business_address_lng: number | null; automatic_pull_enabled: boolean; status: ORGANIZATION_ACCT_PROVIDER_CONN_STATUS; disconnected_at: unknown; conn_expires_at: unknown; organization_id: string; last_conn_at: unknown; last_successful_sync_id: string | null; last_successful_sync_at: unknown; last_sync_succeeded: boolean | null; last_sync_id: string | null; last_sync_at: unknown; created_at: unknown; updated_at: unknown; synchronizations: { edges: Array<{ node: { id: string; mode: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_MODE; force: boolean | null; provider: ACCT_PROVIDER; errors: Array<string>; warnings: Array<string>; started_at: unknown; finished_at: unknown; failed_at: unknown; succeeded_at: unknown; skipped_at: unknown; read_success: number; read_failure: number; skipped: number; create_success: number; create_failure: number; update_success: number; update_failure: number; delete_failure: number; delete_success: number; process_failure: number; process_success: number; created_at: unknown; updated_at: unknown; scope: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_SCOPE; scope_id: string | null; scope_description: string | null; organization_id: string; organization_acct_provider_conn_id: string; data: { customer: { items: unknown; } | null; invoice: { items: unknown; } | null; invoice_transaction: { items: unknown; } | null; vendor: { items: unknown; } | null; bill: { items: unknown; } | null; bill_transaction: { items: unknown; } | null; } | null; }; }>; }; }; }; type UserOrganizationAcctProviderGetOAuthUrlMutationVariables = Exact<{ organizationId: string; accountProvider: ACCT_PROVIDER; }>; type UserOrganizationAcctProviderGetOAuthUrlMutation = { userOrganizationAcctProviderGetOAuthUrl: string; }; type UserOrganizationAcctProviderSynchronizeMutationVariables = Exact<{ organizationId: string; accountProvider: ACCT_PROVIDER; }>; type UserOrganizationAcctProviderSynchronizeMutation = { userOrganizationAcctProviderSynchronize: unknown; }; type UserOrganizationAcctProvidersQueryVariables = Exact<{ organizationId: string; after?: unknown; first?: number | null | undefined; before?: unknown; last?: number | null | undefined; skip?: number | null | undefined; take?: number | null | undefined; sorting?: Array<SortingFieldSchema> | SortingFieldSchema | null | undefined; }>; type UserOrganizationAcctProvidersQuery = { userOrganizationAcctProviders: { totalCount: number; edges: Array<{ cursor: unknown; node: { id: string; acct_provider: ACCT_PROVIDER; code: string; url: string | null; payload: unknown; customer_add_url: string | null; invoice_add_url: string | null; vendor_add_url: string | null; bill_add_url: string | null; name: string | null; email: string | null; phone_number: string | null; website_url: string | null; primary_contact_name: string | null; business_name: string | null; business_industry: string | null; business_number_of_employees: number | null; timezone: string | null; language: string | null; business_tax_code_type: TAX_TYPE | null; business_tax_code: string | null; address_line_1: string | null; address_number: string | null; address_line_2: string | null; address_city: string | null; address_state: string | null; address_zip_code: string | null; address_country_code_iso_3: COUNTRY_ISO_3 | null; address_lat: number | null; address_lng: number | null; business_address_line_1: string | null; business_address_number: string | null; business_address_line_2: string | null; business_address_city: string | null; business_address_state: string | null; business_address_zip_code: string | null; business_address_country_code_iso_3: COUNTRY_ISO_3 | null; business_address_lat: number | null; business_address_lng: number | null; automatic_pull_enabled: boolean; status: ORGANIZATION_ACCT_PROVIDER_CONN_STATUS; disconnected_at: unknown; conn_expires_at: unknown; organization_id: string; last_conn_at: unknown; last_successful_sync_id: string | null; last_successful_sync_at: unknown; last_sync_succeeded: boolean | null; last_sync_id: string | null; last_sync_at: unknown; created_at: unknown; updated_at: unknown; synchronizations: { edges: Array<{ node: { id: string; mode: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_MODE; force: boolean | null; provider: ACCT_PROVIDER; errors: Array<string>; warnings: Array<string>; started_at: unknown; finished_at: unknown; failed_at: unknown; succeeded_at: unknown; skipped_at: unknown; read_success: number; read_failure: number; skipped: number; create_success: number; create_failure: number; update_success: number; update_failure: number; delete_failure: number; delete_success: number; process_failure: number; process_success: number; created_at: unknown; updated_at: unknown; scope: ORGANIZATION_ACCT_PROVIDER_SYNCHRONIZATION_SCOPE; scope_id: string | null; scope_description: string | null; organization_id: string; organization_acct_provider_conn_id: string; data: { customer: { items: unknown; } | null; invoice: { items: unknown; } | null; invoice_transaction: { items: unknown; } | null; vendor: { items: unknown; } | null; bill: { items: unknown; } | null; bill_transaction: { items: unknown; } | null; } | null; }; }>; }; }; }>; pageInfo: { startCursor: string | null; endCursor: string | null; hasPreviousPage: boolean; hasNextPage: boolean; }; }; }; type UserOrganizationAcctProviderQueryVariables = Exact<{ organizationId: string; organizationAcctProviderConnId: string; }>; type UserOrganizationAcctProviderQuery = { userOrganizationAcctProvider: { id: string; acct_provider: ACCT_PROVIDER; code: string; url: string | null; payload: unknown; customer_add_url: string | null; invoice_add_url: string | null; vendor_add_url: string | null; bill_add_url: string | null; name: string | null; email: string | null; phone_number: string | null; website_url: string | null; primary_contact_name: string | null; business_name: string | null; business_industry: string | null; business_number_of_employees: number | null; timezone: string | null; language: string | null; business_tax_code_type: TAX_TYPE | null; business_tax_code: string | null; address_line_1: string | null; address_number: string | null; address_line_2: string | null; address_city: string | null; address_state: string | null; address_zip_code: string | null; address_country_code_iso_3: COUNTRY_ISO_3 | null; address_lat: number | null; address_lng: number | null; business_address_line_1: string | null; business_address_number: string | null; business_address_line_2: string | null; business_address_city: string | null; business_address_state: string | null; business_address_zip_code: string | null; business_address_country_code_iso_3: COUNTRY_ISO_3 | null; business_address_lat: number | null; business_address_lng: number | null; automatic_pull_enabled: boolean;