"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Operation = exports.CreateTransferStatus = exports.CreateAccountStatus = exports.QueryFilterFlags = exports.AccountFilterFlags = exports.TransferFlags = exports.AccountFlags = void 0;
var AccountFlags;
(function (AccountFlags) {
    AccountFlags[AccountFlags["none"] = 0] = "none";
    AccountFlags[AccountFlags["linked"] = 1] = "linked";
    AccountFlags[AccountFlags["debits_must_not_exceed_credits"] = 2] = "debits_must_not_exceed_credits";
    AccountFlags[AccountFlags["credits_must_not_exceed_debits"] = 4] = "credits_must_not_exceed_debits";
    AccountFlags[AccountFlags["history"] = 8] = "history";
    AccountFlags[AccountFlags["imported"] = 16] = "imported";
    AccountFlags[AccountFlags["closed"] = 32] = "closed";
})(AccountFlags || (exports.AccountFlags = AccountFlags = {}));
var TransferFlags;
(function (TransferFlags) {
    TransferFlags[TransferFlags["none"] = 0] = "none";
    TransferFlags[TransferFlags["linked"] = 1] = "linked";
    TransferFlags[TransferFlags["pending"] = 2] = "pending";
    TransferFlags[TransferFlags["post_pending_transfer"] = 4] = "post_pending_transfer";
    TransferFlags[TransferFlags["void_pending_transfer"] = 8] = "void_pending_transfer";
    TransferFlags[TransferFlags["balancing_debit"] = 16] = "balancing_debit";
    TransferFlags[TransferFlags["balancing_credit"] = 32] = "balancing_credit";
    TransferFlags[TransferFlags["closing_debit"] = 64] = "closing_debit";
    TransferFlags[TransferFlags["closing_credit"] = 128] = "closing_credit";
    TransferFlags[TransferFlags["imported"] = 256] = "imported";
})(TransferFlags || (exports.TransferFlags = TransferFlags = {}));
var AccountFilterFlags;
(function (AccountFilterFlags) {
    AccountFilterFlags[AccountFilterFlags["none"] = 0] = "none";
    AccountFilterFlags[AccountFilterFlags["debits"] = 1] = "debits";
    AccountFilterFlags[AccountFilterFlags["credits"] = 2] = "credits";
    AccountFilterFlags[AccountFilterFlags["reversed"] = 4] = "reversed";
})(AccountFilterFlags || (exports.AccountFilterFlags = AccountFilterFlags = {}));
var QueryFilterFlags;
(function (QueryFilterFlags) {
    QueryFilterFlags[QueryFilterFlags["none"] = 0] = "none";
    QueryFilterFlags[QueryFilterFlags["reversed"] = 1] = "reversed";
})(QueryFilterFlags || (exports.QueryFilterFlags = QueryFilterFlags = {}));
var CreateAccountStatus;
(function (CreateAccountStatus) {
    CreateAccountStatus[CreateAccountStatus["created"] = 4294967295] = "created";
    CreateAccountStatus[CreateAccountStatus["linked_event_failed"] = 1] = "linked_event_failed";
    CreateAccountStatus[CreateAccountStatus["linked_event_chain_open"] = 2] = "linked_event_chain_open";
    CreateAccountStatus[CreateAccountStatus["imported_event_expected"] = 22] = "imported_event_expected";
    CreateAccountStatus[CreateAccountStatus["imported_event_not_expected"] = 23] = "imported_event_not_expected";
    CreateAccountStatus[CreateAccountStatus["timestamp_must_be_zero"] = 3] = "timestamp_must_be_zero";
    CreateAccountStatus[CreateAccountStatus["imported_event_timestamp_out_of_range"] = 24] = "imported_event_timestamp_out_of_range";
    CreateAccountStatus[CreateAccountStatus["imported_event_timestamp_must_not_advance"] = 25] = "imported_event_timestamp_must_not_advance";
    CreateAccountStatus[CreateAccountStatus["reserved_field"] = 4] = "reserved_field";
    CreateAccountStatus[CreateAccountStatus["reserved_flag"] = 5] = "reserved_flag";
    CreateAccountStatus[CreateAccountStatus["id_must_not_be_zero"] = 6] = "id_must_not_be_zero";
    CreateAccountStatus[CreateAccountStatus["id_must_not_be_int_max"] = 7] = "id_must_not_be_int_max";
    CreateAccountStatus[CreateAccountStatus["exists_with_different_flags"] = 15] = "exists_with_different_flags";
    CreateAccountStatus[CreateAccountStatus["exists_with_different_user_data_128"] = 16] = "exists_with_different_user_data_128";
    CreateAccountStatus[CreateAccountStatus["exists_with_different_user_data_64"] = 17] = "exists_with_different_user_data_64";
    CreateAccountStatus[CreateAccountStatus["exists_with_different_user_data_32"] = 18] = "exists_with_different_user_data_32";
    CreateAccountStatus[CreateAccountStatus["exists_with_different_ledger"] = 19] = "exists_with_different_ledger";
    CreateAccountStatus[CreateAccountStatus["exists_with_different_code"] = 20] = "exists_with_different_code";
    CreateAccountStatus[CreateAccountStatus["exists"] = 21] = "exists";
    CreateAccountStatus[CreateAccountStatus["flags_are_mutually_exclusive"] = 8] = "flags_are_mutually_exclusive";
    CreateAccountStatus[CreateAccountStatus["debits_pending_must_be_zero"] = 9] = "debits_pending_must_be_zero";
    CreateAccountStatus[CreateAccountStatus["debits_posted_must_be_zero"] = 10] = "debits_posted_must_be_zero";
    CreateAccountStatus[CreateAccountStatus["credits_pending_must_be_zero"] = 11] = "credits_pending_must_be_zero";
    CreateAccountStatus[CreateAccountStatus["credits_posted_must_be_zero"] = 12] = "credits_posted_must_be_zero";
    CreateAccountStatus[CreateAccountStatus["ledger_must_not_be_zero"] = 13] = "ledger_must_not_be_zero";
    CreateAccountStatus[CreateAccountStatus["code_must_not_be_zero"] = 14] = "code_must_not_be_zero";
    CreateAccountStatus[CreateAccountStatus["imported_event_timestamp_must_not_regress"] = 26] = "imported_event_timestamp_must_not_regress";
})(CreateAccountStatus || (exports.CreateAccountStatus = CreateAccountStatus = {}));
var CreateTransferStatus;
(function (CreateTransferStatus) {
    CreateTransferStatus[CreateTransferStatus["created"] = 4294967295] = "created";
    CreateTransferStatus[CreateTransferStatus["linked_event_failed"] = 1] = "linked_event_failed";
    CreateTransferStatus[CreateTransferStatus["linked_event_chain_open"] = 2] = "linked_event_chain_open";
    CreateTransferStatus[CreateTransferStatus["imported_event_expected"] = 56] = "imported_event_expected";
    CreateTransferStatus[CreateTransferStatus["imported_event_not_expected"] = 57] = "imported_event_not_expected";
    CreateTransferStatus[CreateTransferStatus["timestamp_must_be_zero"] = 3] = "timestamp_must_be_zero";
    CreateTransferStatus[CreateTransferStatus["imported_event_timestamp_out_of_range"] = 58] = "imported_event_timestamp_out_of_range";
    CreateTransferStatus[CreateTransferStatus["imported_event_timestamp_must_not_advance"] = 59] = "imported_event_timestamp_must_not_advance";
    CreateTransferStatus[CreateTransferStatus["reserved_flag"] = 4] = "reserved_flag";
    CreateTransferStatus[CreateTransferStatus["id_must_not_be_zero"] = 5] = "id_must_not_be_zero";
    CreateTransferStatus[CreateTransferStatus["id_must_not_be_int_max"] = 6] = "id_must_not_be_int_max";
    CreateTransferStatus[CreateTransferStatus["exists_with_different_flags"] = 36] = "exists_with_different_flags";
    CreateTransferStatus[CreateTransferStatus["exists_with_different_pending_id"] = 40] = "exists_with_different_pending_id";
    CreateTransferStatus[CreateTransferStatus["exists_with_different_timeout"] = 44] = "exists_with_different_timeout";
    CreateTransferStatus[CreateTransferStatus["exists_with_different_debit_account_id"] = 37] = "exists_with_different_debit_account_id";
    CreateTransferStatus[CreateTransferStatus["exists_with_different_credit_account_id"] = 38] = "exists_with_different_credit_account_id";
    CreateTransferStatus[CreateTransferStatus["exists_with_different_amount"] = 39] = "exists_with_different_amount";
    CreateTransferStatus[CreateTransferStatus["exists_with_different_user_data_128"] = 41] = "exists_with_different_user_data_128";
    CreateTransferStatus[CreateTransferStatus["exists_with_different_user_data_64"] = 42] = "exists_with_different_user_data_64";
    CreateTransferStatus[CreateTransferStatus["exists_with_different_user_data_32"] = 43] = "exists_with_different_user_data_32";
    CreateTransferStatus[CreateTransferStatus["exists_with_different_ledger"] = 67] = "exists_with_different_ledger";
    CreateTransferStatus[CreateTransferStatus["exists_with_different_code"] = 45] = "exists_with_different_code";
    CreateTransferStatus[CreateTransferStatus["exists"] = 46] = "exists";
    CreateTransferStatus[CreateTransferStatus["id_already_failed"] = 68] = "id_already_failed";
    CreateTransferStatus[CreateTransferStatus["flags_are_mutually_exclusive"] = 7] = "flags_are_mutually_exclusive";
    CreateTransferStatus[CreateTransferStatus["debit_account_id_must_not_be_zero"] = 8] = "debit_account_id_must_not_be_zero";
    CreateTransferStatus[CreateTransferStatus["debit_account_id_must_not_be_int_max"] = 9] = "debit_account_id_must_not_be_int_max";
    CreateTransferStatus[CreateTransferStatus["credit_account_id_must_not_be_zero"] = 10] = "credit_account_id_must_not_be_zero";
    CreateTransferStatus[CreateTransferStatus["credit_account_id_must_not_be_int_max"] = 11] = "credit_account_id_must_not_be_int_max";
    CreateTransferStatus[CreateTransferStatus["accounts_must_be_different"] = 12] = "accounts_must_be_different";
    CreateTransferStatus[CreateTransferStatus["pending_id_must_be_zero"] = 13] = "pending_id_must_be_zero";
    CreateTransferStatus[CreateTransferStatus["pending_id_must_not_be_zero"] = 14] = "pending_id_must_not_be_zero";
    CreateTransferStatus[CreateTransferStatus["pending_id_must_not_be_int_max"] = 15] = "pending_id_must_not_be_int_max";
    CreateTransferStatus[CreateTransferStatus["pending_id_must_be_different"] = 16] = "pending_id_must_be_different";
    CreateTransferStatus[CreateTransferStatus["timeout_reserved_for_pending_transfer"] = 17] = "timeout_reserved_for_pending_transfer";
    CreateTransferStatus[CreateTransferStatus["closing_transfer_must_be_pending"] = 64] = "closing_transfer_must_be_pending";
    CreateTransferStatus[CreateTransferStatus["ledger_must_not_be_zero"] = 19] = "ledger_must_not_be_zero";
    CreateTransferStatus[CreateTransferStatus["code_must_not_be_zero"] = 20] = "code_must_not_be_zero";
    CreateTransferStatus[CreateTransferStatus["debit_account_not_found"] = 21] = "debit_account_not_found";
    CreateTransferStatus[CreateTransferStatus["credit_account_not_found"] = 22] = "credit_account_not_found";
    CreateTransferStatus[CreateTransferStatus["accounts_must_have_the_same_ledger"] = 23] = "accounts_must_have_the_same_ledger";
    CreateTransferStatus[CreateTransferStatus["transfer_must_have_the_same_ledger_as_accounts"] = 24] = "transfer_must_have_the_same_ledger_as_accounts";
    CreateTransferStatus[CreateTransferStatus["pending_transfer_not_found"] = 25] = "pending_transfer_not_found";
    CreateTransferStatus[CreateTransferStatus["pending_transfer_not_pending"] = 26] = "pending_transfer_not_pending";
    CreateTransferStatus[CreateTransferStatus["pending_transfer_has_different_debit_account_id"] = 27] = "pending_transfer_has_different_debit_account_id";
    CreateTransferStatus[CreateTransferStatus["pending_transfer_has_different_credit_account_id"] = 28] = "pending_transfer_has_different_credit_account_id";
    CreateTransferStatus[CreateTransferStatus["pending_transfer_has_different_ledger"] = 29] = "pending_transfer_has_different_ledger";
    CreateTransferStatus[CreateTransferStatus["pending_transfer_has_different_code"] = 30] = "pending_transfer_has_different_code";
    CreateTransferStatus[CreateTransferStatus["exceeds_pending_transfer_amount"] = 31] = "exceeds_pending_transfer_amount";
    CreateTransferStatus[CreateTransferStatus["pending_transfer_has_different_amount"] = 32] = "pending_transfer_has_different_amount";
    CreateTransferStatus[CreateTransferStatus["pending_transfer_already_posted"] = 33] = "pending_transfer_already_posted";
    CreateTransferStatus[CreateTransferStatus["pending_transfer_already_voided"] = 34] = "pending_transfer_already_voided";
    CreateTransferStatus[CreateTransferStatus["pending_transfer_expired"] = 35] = "pending_transfer_expired";
    CreateTransferStatus[CreateTransferStatus["imported_event_timestamp_must_not_regress"] = 60] = "imported_event_timestamp_must_not_regress";
    CreateTransferStatus[CreateTransferStatus["imported_event_timestamp_must_postdate_debit_account"] = 61] = "imported_event_timestamp_must_postdate_debit_account";
    CreateTransferStatus[CreateTransferStatus["imported_event_timestamp_must_postdate_credit_account"] = 62] = "imported_event_timestamp_must_postdate_credit_account";
    CreateTransferStatus[CreateTransferStatus["imported_event_timeout_must_be_zero"] = 63] = "imported_event_timeout_must_be_zero";
    CreateTransferStatus[CreateTransferStatus["debit_account_already_closed"] = 65] = "debit_account_already_closed";
    CreateTransferStatus[CreateTransferStatus["credit_account_already_closed"] = 66] = "credit_account_already_closed";
    CreateTransferStatus[CreateTransferStatus["overflows_debits_pending"] = 47] = "overflows_debits_pending";
    CreateTransferStatus[CreateTransferStatus["overflows_credits_pending"] = 48] = "overflows_credits_pending";
    CreateTransferStatus[CreateTransferStatus["overflows_debits_posted"] = 49] = "overflows_debits_posted";
    CreateTransferStatus[CreateTransferStatus["overflows_credits_posted"] = 50] = "overflows_credits_posted";
    CreateTransferStatus[CreateTransferStatus["overflows_debits"] = 51] = "overflows_debits";
    CreateTransferStatus[CreateTransferStatus["overflows_credits"] = 52] = "overflows_credits";
    CreateTransferStatus[CreateTransferStatus["overflows_timeout"] = 53] = "overflows_timeout";
    CreateTransferStatus[CreateTransferStatus["exceeds_credits"] = 54] = "exceeds_credits";
    CreateTransferStatus[CreateTransferStatus["exceeds_debits"] = 55] = "exceeds_debits";
})(CreateTransferStatus || (exports.CreateTransferStatus = CreateTransferStatus = {}));
var Operation;
(function (Operation) {
    Operation[Operation["pulse"] = 128] = "pulse";
    Operation[Operation["get_change_events"] = 137] = "get_change_events";
    Operation[Operation["lookup_accounts"] = 140] = "lookup_accounts";
    Operation[Operation["lookup_transfers"] = 141] = "lookup_transfers";
    Operation[Operation["get_account_transfers"] = 142] = "get_account_transfers";
    Operation[Operation["get_account_balances"] = 143] = "get_account_balances";
    Operation[Operation["query_accounts"] = 144] = "query_accounts";
    Operation[Operation["query_transfers"] = 145] = "query_transfers";
    Operation[Operation["create_accounts"] = 146] = "create_accounts";
    Operation[Operation["create_transfers"] = 147] = "create_transfers";
})(Operation || (exports.Operation = Operation = {}));
//# sourceMappingURL=bindings.js.map