Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
161 changes: 111 additions & 50 deletions public/hyperswitch/wasm/euclid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,32 @@
* to all different currencies present.
*/
export function setForexData(forex: any): any;
export function getPayoutVariantValues(key: string): any;
/**
* This function can be used to perform currency_conversion on the input amount, from_currency,
* to_currency which are all expected to be one of currencies we already have in our Currency
* enum.
*/
export function convertCurrency(amount: bigint, from_currency: any, to_currency: any): any;
/**
* This function allows the frontend to get all the merchant's configured
* connectors that are valid for a rule based on the conditions specified in
* the rule
*/
export function getValidConnectorsForRule(rule: any): any;
export function getThreeDsDecisionRuleKeys(): any;
export function getTaxProcessorConfig(key: string): any;
export function getAuthenticationConnectorConfig(key: string): any;
export function getAllConnectors(): any;
export function getPayoutConnectorConfig(key: string): any;
export function getAllKeys(): any;
export function getValidWebhookStatus(key: string): any;
export function getResponsePayload(input: any): any;
export function getBillingConnectorConfig(key: string): any;
export function getDescriptionCategory(): any;
export function getPayoutDescriptionCategory(): any;
export function getVariantValues(key: string): any;
export function parseToString(val: string): string;
/**
* This function can be used by the frontend to get all the two letter country codes
* along with their country names.
Expand All @@ -22,42 +42,24 @@ export function getTwoLetterCountryCode(): any;
* along with their names.
*/
export function getMerchantCategoryCodeWithName(): any;
export function getConnectorConfig(key: string): any;
export function runProgram(program: any, input: any): any;
export function analyzeProgram(js_program: any): any;
export function getPMAuthenticationProcessorConfig(key: string): any;
export function getKeyType(key: string): string;
export function getAllPayoutKeys(): any;
export function getRequestPayload(input: any, response: any): any;
export function getCardTypeValues(): any;
/**
* This function can be used by the frontend to provide the WASM with information about
* all the merchant's connector accounts. The input argument is a vector of all the merchant's
* connector accounts from the API.
*/
export function seedKnowledgeGraph(mcas: any): any;
/**
* This function allows the frontend to get all the merchant's configured
* connectors that are valid for a rule based on the conditions specified in
* the rule
*/
export function getValidConnectorsForRule(rule: any): any;
export function analyzeProgram(js_program: any): any;
export function runProgram(program: any, input: any): any;
export function getAllConnectors(): any;
export function getAllKeys(): any;
export function getKeyType(key: string): string;
export function getCardSubtypeValues(): any;
export function addTwo(n1: bigint, n2: bigint): bigint;
export function getThreeDsKeys(): any;
export function getSurchargeKeys(): any;
export function getThreeDsDecisionRuleKeys(): any;
export function parseToString(val: string): string;
export function getVariantValues(key: string): any;
export function addTwo(n1: bigint, n2: bigint): bigint;
export function getDescriptionCategory(): any;
export function getConnectorConfig(key: string): any;
export function getBillingConnectorConfig(key: string): any;
export function getPayoutConnectorConfig(key: string): any;
export function getAuthenticationConnectorConfig(key: string): any;
export function getTaxProcessorConfig(key: string): any;
export function getPMAuthenticationProcessorConfig(key: string): any;
export function getRequestPayload(input: any, response: any): any;
export function getResponsePayload(input: any): any;
export function getAllPayoutKeys(): any;
export function getPayoutVariantValues(key: string): any;
export function getPayoutDescriptionCategory(): any;
export function getValidWebhookStatus(key: string): any;
/**
*
* Function exposed as `wasm` function in js `parse`. Allowing use to extend the functionality and
Expand All @@ -69,38 +71,97 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl

export interface InitOutput {
readonly memory: WebAssembly.Memory;
readonly setForexData: (a: number, b: number) => void;
readonly convertCurrency: (a: number, b: bigint, c: number, d: number) => void;
readonly getTwoLetterCountryCode: (a: number) => void;
readonly getMerchantCategoryCodeWithName: (a: number) => void;
readonly seedKnowledgeGraph: (a: number, b: number) => void;
readonly getValidConnectorsForRule: (a: number, b: number) => void;
readonly addTwo: (a: bigint, b: bigint) => bigint;
readonly analyzeProgram: (a: number, b: number) => void;
readonly runProgram: (a: number, b: number, c: number) => void;
readonly convertCurrency: (a: number, b: bigint, c: number, d: number) => void;
readonly getAllConnectors: (a: number) => void;
readonly getAllKeys: (a: number) => void;
readonly getKeyType: (a: number, b: number, c: number) => void;
readonly getThreeDsKeys: (a: number) => void;
readonly getSurchargeKeys: (a: number) => void;
readonly getThreeDsDecisionRuleKeys: (a: number) => void;
readonly parseToString: (a: number, b: number, c: number) => void;
readonly getVariantValues: (a: number, b: number, c: number) => void;
readonly addTwo: (a: bigint, b: bigint) => bigint;
readonly getDescriptionCategory: (a: number) => void;
readonly getConnectorConfig: (a: number, b: number, c: number) => void;
readonly getBillingConnectorConfig: (a: number, b: number, c: number) => void;
readonly getPayoutConnectorConfig: (a: number, b: number, c: number) => void;
readonly getAllPayoutKeys: (a: number) => void;
readonly getAuthenticationConnectorConfig: (a: number, b: number, c: number) => void;
readonly getTaxProcessorConfig: (a: number, b: number, c: number) => void;
readonly getBillingConnectorConfig: (a: number, b: number, c: number) => void;
readonly getCardSubtypeValues: (a: number) => void;
readonly getCardTypeValues: (a: number) => void;
readonly getConnectorConfig: (a: number, b: number, c: number) => void;
readonly getDescriptionCategory: (a: number) => void;
readonly getKeyType: (a: number, b: number, c: number) => void;
readonly getMerchantCategoryCodeWithName: (a: number) => void;
readonly getPMAuthenticationProcessorConfig: (a: number, b: number, c: number) => void;
readonly getPayoutConnectorConfig: (a: number, b: number, c: number) => void;
readonly getPayoutDescriptionCategory: (a: number) => void;
readonly getPayoutVariantValues: (a: number, b: number, c: number) => void;
readonly getRequestPayload: (a: number, b: number, c: number) => void;
readonly getResponsePayload: (a: number, b: number) => void;
readonly getAllPayoutKeys: (a: number) => void;
readonly getPayoutVariantValues: (a: number, b: number, c: number) => void;
readonly getPayoutDescriptionCategory: (a: number) => void;
readonly getSurchargeKeys: (a: number) => void;
readonly getTaxProcessorConfig: (a: number, b: number, c: number) => void;
readonly getThreeDsDecisionRuleKeys: (a: number) => void;
readonly getThreeDsKeys: (a: number) => void;
readonly getTwoLetterCountryCode: (a: number) => void;
readonly getValidConnectorsForRule: (a: number, b: number) => void;
readonly getValidWebhookStatus: (a: number, b: number, c: number) => void;
readonly getVariantValues: (a: number, b: number, c: number) => void;
readonly runProgram: (a: number, b: number, c: number) => void;
readonly seedKnowledgeGraph: (a: number, b: number) => void;
readonly setForexData: (a: number, b: number) => void;
readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly parse: (a: number, b: number, c: number) => void;
readonly ffi_superposition_types_rust_future_cancel_f32: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_complete_f32: (a: bigint, b: number) => number;
readonly ffi_superposition_types_rust_future_complete_f64: (a: bigint, b: number) => number;
readonly ffi_superposition_types_rust_future_complete_i16: (a: bigint, b: number) => number;
readonly ffi_superposition_types_rust_future_complete_i32: (a: bigint, b: number) => number;
readonly ffi_superposition_types_rust_future_complete_i64: (a: bigint, b: number) => bigint;
readonly ffi_superposition_types_rust_future_complete_i8: (a: bigint, b: number) => number;
readonly ffi_superposition_types_rust_future_complete_rust_buffer: (a: number, b: bigint, c: number) => void;
readonly ffi_superposition_types_rust_future_complete_u16: (a: bigint, b: number) => number;
readonly ffi_superposition_types_rust_future_complete_u8: (a: bigint, b: number) => number;
readonly ffi_superposition_types_rust_future_complete_void: (a: bigint, b: number) => void;
readonly ffi_superposition_types_rust_future_free_f32: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_f32: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rustbuffer_alloc: (a: number, b: bigint, c: number) => void;
readonly ffi_superposition_types_rustbuffer_free: (a: number, b: number) => void;
readonly ffi_superposition_types_rustbuffer_from_bytes: (a: number, b: number, c: number) => void;
readonly ffi_superposition_types_rustbuffer_reserve: (a: number, b: number, c: bigint, d: number) => void;
readonly ffi_superposition_types_uniffi_contract_version: () => number;
readonly parseToString: (a: number, b: number, c: number) => void;
readonly ffi_superposition_types_rust_future_cancel_u32: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_cancel_i64: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_cancel_i16: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_cancel_void: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_cancel_u64: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_complete_u64: (a: bigint, b: number) => bigint;
readonly ffi_superposition_types_rust_future_cancel_i8: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_cancel_i32: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_complete_u32: (a: bigint, b: number) => number;
readonly ffi_superposition_types_rust_future_cancel_u8: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_cancel_u16: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_cancel_pointer: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_complete_pointer: (a: bigint, b: number) => number;
readonly ffi_superposition_types_rust_future_cancel_f64: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_free_u32: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_u32: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rust_future_free_i64: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_i64: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rust_future_free_i16: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_i16: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rust_future_free_u64: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_u64: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rust_future_free_u8: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_u8: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rust_future_free_i32: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_i32: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rust_future_free_u16: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_u16: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rust_future_cancel_rust_buffer: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_free_rust_buffer: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_rust_buffer: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rust_future_free_pointer: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_pointer: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rust_future_free_void: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_void: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rust_future_free_f64: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_f64: (a: bigint, b: number, c: bigint) => void;
readonly ffi_superposition_types_rust_future_free_i8: (a: bigint) => void;
readonly ffi_superposition_types_rust_future_poll_i8: (a: bigint, b: number, c: bigint) => void;
readonly __wbindgen_export_0: (a: number, b: number) => number;
readonly __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
readonly __wbindgen_export_2: (a: number) => void;
Expand Down
Loading
Loading