@accounter/modern-poalim-scraper
Version:
Modern scraper for Israeli banks (Hapoalim, Isracard, Max)
144 lines (143 loc) • 7.49 kB
TypeScript
import { z } from 'zod';
export declare const HapoalimForeignTransactionsBusinessSchema: z.ZodObject<{
balancesAndLimitsDataList: z.ZodArray<z.ZodObject<{
accountNumber: z.ZodNumber;
bankNumber: z.ZodUnion<readonly [z.ZodLiteral<12>, z.ZodLiteral<0>]>;
branchNumber: z.ZodNumber;
creditLimits: z.ZodArray<z.ZodString>;
currencyCode: z.ZodNumber;
currencyLongDescription: z.ZodNullable<z.ZodString>;
currencyShortedDescription: z.ZodNullable<z.ZodString>;
currencySwiftCode: z.ZodNullable<z.ZodString>;
currencySwiftDescription: z.ZodNullable<z.ZodString>;
currentAccountLimitsAmount: z.ZodLiteral<0>;
currentBalance: z.ZodLiteral<0>;
currentBalanceExchangeRateWayDescription: z.ZodNull;
currentBalanceExchangeRateWayCode: z.ZodLiteral<0>;
detailedAccountTypeCode: z.ZodLiteral<142>;
detailedAccountTypeShortedDescription: z.ZodString;
formattedLastEventDate: z.ZodNull;
formattedRetrievalMaxDate: z.ZodNullable<z.ZodString>;
formattedRetrievalMinDate: z.ZodNullable<z.ZodString>;
lastBalance: z.ZodLiteral<0>;
lastBalanceExchangeRateWayCode: z.ZodLiteral<0>;
lastEventDate: z.ZodLiteral<0>;
messages: z.ZodNullable<z.ZodArray<z.ZodObject<{
messageDescription: z.ZodString;
messageCode: z.ZodLiteral<3>;
}, z.core.$strict>>>;
numItemsPerPage: z.ZodNumber;
outputArrayRecordSum3: z.ZodLiteral<0>;
outputArrayRecordSum4: z.ZodLiteral<0>;
pendingBalance: z.ZodLiteral<0>;
rateExerciseDescription: z.ZodNull;
rateRealizationCode: z.ZodLiteral<0>;
retrievalMaxDate: z.ZodNumber;
retrievalMinDate: z.ZodNumber;
revaluatedCurrentBalance: z.ZodArray<z.ZodString>;
transactionResultCode: z.ZodNumber;
transactions: z.ZodArray<z.ZodObject<{
accountName: z.ZodNullable<z.ZodString>;
activityDescription: z.ZodString;
activityTypeCode: z.ZodNumber;
comments: z.ZodNull;
commentExistenceSwitch: z.ZodLiteral<0>;
contraAccountFieldNameLable: z.ZodNullable<z.ZodString>;
contraAccountNumber: z.ZodNumber;
contraBankNumber: z.ZodNumber;
contraBranchNumber: z.ZodNumber;
contraCurrencyCode: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<19>, z.ZodLiteral<27>, z.ZodLiteral<36>, z.ZodLiteral<51>, z.ZodLiteral<78>, z.ZodLiteral<100>, z.ZodLiteral<140>, z.ZodLiteral<248>]>;
currencyLongDescription: z.ZodString;
currencyRate: z.ZodNumber;
currencySwiftCode: z.ZodString;
currentBalance: z.ZodNumber;
dataGroupCode: z.ZodLiteral<0>;
displayCreditAccountDetails: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>;
eventActivityTypeCode: z.ZodNumber;
eventAmount: z.ZodNumber;
eventDetails: z.ZodNullable<z.ZodString>;
eventNumber: z.ZodNumber;
executingDate: z.ZodNumber;
expendedExecutingDate: z.ZodString;
formattedExecutingDate: z.ZodString;
formattedValueDate: z.ZodNullable<z.ZodString>;
metadata: z.ZodOptional<z.ZodObject<{
attributes: z.ZodObject<{
contraAccountFieldNameLable: z.ZodOptional<z.ZodObject<{
disabled: z.ZodOptional<z.ZodLiteral<"true">>;
hidden: z.ZodOptional<z.ZodLiteral<"true">>;
}, z.core.$strict>>;
contraAccountNumber: z.ZodOptional<z.ZodObject<{
disabled: z.ZodOptional<z.ZodLiteral<"true">>;
hidden: z.ZodOptional<z.ZodLiteral<"true">>;
}, z.core.$strict>>;
contraBankNumber: z.ZodOptional<z.ZodObject<{
disabled: z.ZodOptional<z.ZodLiteral<"true">>;
hidden: z.ZodOptional<z.ZodLiteral<"true">>;
}, z.core.$strict>>;
contraBranchNumber: z.ZodOptional<z.ZodObject<{
disabled: z.ZodOptional<z.ZodLiteral<"true">>;
hidden: z.ZodOptional<z.ZodLiteral<"true">>;
}, z.core.$strict>>;
contraCurrencyCode: z.ZodOptional<z.ZodObject<{
disabled: z.ZodOptional<z.ZodLiteral<"true">>;
hidden: z.ZodOptional<z.ZodLiteral<"true">>;
}, z.core.$strict>>;
currencyRate: z.ZodOptional<z.ZodObject<{
disabled: z.ZodOptional<z.ZodLiteral<"true">>;
hidden: z.ZodOptional<z.ZodLiteral<"true">>;
}, z.core.$strict>>;
dataGroupCode: z.ZodOptional<z.ZodObject<{
disabled: z.ZodOptional<z.ZodLiteral<"true">>;
hidden: z.ZodOptional<z.ZodLiteral<"true">>;
}, z.core.$strict>>;
originalEventKey: z.ZodOptional<z.ZodObject<{
disabled: z.ZodOptional<z.ZodLiteral<"true">>;
hidden: z.ZodOptional<z.ZodLiteral<"true">>;
}, z.core.$strict>>;
rateFixingCode: z.ZodOptional<z.ZodObject<{
disabled: z.ZodOptional<z.ZodLiteral<"true">>;
hidden: z.ZodOptional<z.ZodLiteral<"true">>;
}, z.core.$strict>>;
}, z.core.$strict>;
links: z.ZodObject<{}, z.core.$strict>;
}, z.core.$strict>>;
originalEventKey: z.ZodLiteral<0>;
originalSystemId: z.ZodNumber;
rateFixingCode: z.ZodNumber;
rateFixingDescription: z.ZodString;
rateFixingShortDescription: z.ZodString;
recordSerialNumber: z.ZodNumber;
referenceCatenatedNumber: z.ZodNumber;
referenceNumber: z.ZodNumber;
transactionType: z.ZodString;
urlAddress: z.ZodNullable<z.ZodString>;
validityDate: z.ZodNumber;
valueDate: z.ZodNumber;
}, z.core.$strict>>;
withdrawalBalance: z.ZodLiteral<0>;
}, z.core.$strict>>;
balancesAndTransactionsCurrencyCombo: z.ZodObject<{
currencyCode: z.ZodNull;
}, z.core.$strict>;
currancyBalanceData: z.ZodNull;
currencyCode: z.ZodNull;
detailedAccountTypeCode: z.ZodNull;
displayedRevaluationCurrencyCode: z.ZodLiteral<0>;
foreignCurrencyBalancesData: z.ZodNull;
formattedValidityDate: z.ZodNull;
messages: z.ZodNull;
metadata: z.ZodOptional<z.ZodObject<{
links: z.ZodObject<{}, z.core.$strict>;
messages: z.ZodArray<z.ZodObject<{
messageCode: z.ZodUnion<readonly [z.ZodLiteral<330>, z.ZodLiteral<11024>, z.ZodLiteral<11038>, z.ZodLiteral<11039>, z.ZodLiteral<11040>]>;
messageDescription: z.ZodString;
severity: z.ZodUnion<readonly [z.ZodLiteral<"I">, z.ZodLiteral<"E">]>;
}, z.core.$strict>>;
}, z.core.$strict>>;
outputArrayRecordSum2: z.ZodLiteral<0>;
pdfUrl: z.ZodNull;
rateFixingDescription: z.ZodNull;
validityDate: z.ZodLiteral<0>;
}, z.core.$strict>;
export type HapoalimForeignTransactionsBusiness = z.infer<typeof HapoalimForeignTransactionsBusinessSchema>;