@accounter/modern-poalim-scraper
Version:
Modern scraper for Israeli banks (Hapoalim, Isracard, Max)
594 lines (593 loc) • 22.9 kB
TypeScript
import { z } from 'zod';
export declare const IsracardCardsTransactionsListSchema: z.ZodObject<{
Header: z.ZodObject<{
ErrorPage: z.ZodOptional<z.ZodString>;
Status: z.ZodEnum<{
1: "1";
[-2]: "-2";
}>;
Message: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
CardsTransactionsListBean: z.ZodObject<{
EsbServicesCall: z.ZodNull;
accountErrorCode: z.ZodNull;
bcKey: z.ZodNull;
card0: z.ZodArray<z.ZodObject<{
EsbServicesCall: z.ZodNull;
accountErrorCode: z.ZodNull;
bcKey: z.ZodNull;
clientIpAddress: z.ZodOptional<z.ZodNull>;
currentId: z.ZodNullable<z.ZodEnum<{
0: "0";
1: "1";
2: "2";
3: "3";
4: "4";
5: "5";
}>>;
displayProperties: z.ZodNull;
holderId: z.ZodString;
holderName: z.ZodNull;
isButton: z.ZodLiteral<"false">;
isCaptcha: z.ZodLiteral<"false">;
isError: z.ZodLiteral<"false">;
message: z.ZodNull;
monthlyRefundCardIndex: z.ZodNull;
requestNumber: z.ZodNull;
returnCode: z.ZodNull;
returnMessage: z.ZodNull;
siteName: z.ZodNull;
stage: z.ZodNull;
tablePageNum: z.ZodLiteral<"0">;
totalDollar: z.ZodNullable<z.ZodEnum<{
0: "0";
}>>;
totalEuro: z.ZodNullable<z.ZodEnum<{
0: "0";
}>>;
totalNis: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
card6Digits: z.ZodString;
cardIdx: z.ZodEnum<{
0: "0";
"0,1,2,3,4,5": "0,1,2,3,4,5";
"0,1,2,3,4": "0,1,2,3,4";
"0,1,2,3": "0,1,2,3";
"0,1,2": "0,1,2";
"0,1": "0,1";
}>;
cardNumberList: z.ZodArray<z.ZodString>;
cardNumberTail: z.ZodString;
clientIpAddress: z.ZodOptional<z.ZodString>;
currentDate: z.ZodString;
dateList: z.ZodArray<z.ZodString>;
displayProperties: z.ZodString;
endDate: z.ZodNull;
Index0: z.ZodObject<{
'@AllCards': z.ZodLiteral<"AllCards">;
CurrentCardTransactions: z.ZodArray<z.ZodObject<{
'@cardTransactions': z.ZodString;
txnAbroad: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
EsbServicesCall: z.ZodNull;
accountErrorCode: z.ZodNull;
adendum: z.ZodNull;
bcKey: z.ZodNull;
cardIndex: z.ZodEnum<{
0: "0";
1: "1";
2: "2";
3: "3";
4: "4";
5: "5";
}>;
city: z.ZodNullable<z.ZodString>;
clientIpAddress: z.ZodOptional<z.ZodNull>;
currencyId: z.ZodNullable<z.ZodEnum<{
EUR: "EUR";
USD: "USD";
NIS: "NIS";
}>>;
currentPaymentCurrency: z.ZodNullable<z.ZodEnum<{
AUD: "AUD";
CAD: "CAD";
EUR: "EUR";
GBP: "GBP";
JPY: "JPY";
USD: "USD";
NIS: "NIS";
LEU: "LEU";
SUR: "SUR";
DKK: "DKK";
TRY: "TRY";
CHF: "CHF";
HUF: "HUF";
INR: "INR";
HKD: "HKD";
YUN: "YUN";
SGD: "SGD";
OMR: "OMR";
CZE: "CZE";
NOK: "NOK";
THB: "THB";
KOR: "KOR";
TWD: "TWD";
CDL: "CDL";
AUR: "AUR";
SER: "SER";
PLZ: "PLZ";
ISK: "ISK";
RSD: "RSD";
PLN: "PLN";
}>>;
dealsInbound: z.ZodNull;
dealSum: z.ZodNull;
dealSumOutbound: z.ZodNullable<z.ZodString>;
dealSumType: z.ZodNull;
displayProperties: z.ZodNull;
fullPaymentDate: z.ZodNullable<z.ZodString>;
fullPurchaseDate: z.ZodNull;
fullPurchaseDateOutbound: z.ZodNullable<z.ZodString>;
fullSupplierNameHeb: z.ZodNull;
fullSupplierNameOutbound: z.ZodString;
horaatKeva: z.ZodNull;
isButton: z.ZodLiteral<"false">;
isCaptcha: z.ZodLiteral<"false">;
isError: z.ZodLiteral<"false">;
isHoraatKeva: z.ZodLiteral<"false">;
isShowDealsOutbound: z.ZodNullable<z.ZodEnum<{
_: "_";
}>>;
isShowLinkForSupplierDetails: z.ZodNull;
kodMatbeaMekori: z.ZodNull;
message: z.ZodNull;
monthlyRefundCardIndex: z.ZodNull;
moreInfo: z.ZodNull;
paymentDate: z.ZodNullable<z.ZodString>;
paymentSum: z.ZodNull;
paymentSumOutbound: z.ZodString;
paymentSumSign: z.ZodNull;
purchaseDate: z.ZodNull;
purchaseDateOutbound: z.ZodNullable<z.ZodString>;
requestNumber: z.ZodNull;
returnCode: z.ZodNull;
returnMessage: z.ZodNull;
siteName: z.ZodNull;
solek: z.ZodNull;
specificDate: z.ZodNull;
stage: z.ZodNull;
supplierId: z.ZodNull;
supplierName: z.ZodNull;
supplierNameOutbound: z.ZodString;
tablePageNum: z.ZodLiteral<"0">;
voucherNumber: z.ZodNullable<z.ZodString>;
voucherNumberRatz: z.ZodNull;
voucherNumberRatzOutbound: z.ZodString;
}, z.core.$strict>>>>;
txnInfo: z.ZodOptional<z.ZodNull>;
txnIsrael: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
EsbServicesCall: z.ZodNull;
accountErrorCode: z.ZodNull;
adendum: z.ZodNull;
bcKey: z.ZodNull;
cardIndex: z.ZodEnum<{
0: "0";
1: "1";
2: "2";
3: "3";
4: "4";
5: "5";
}>;
city: z.ZodNull;
clientIpAddress: z.ZodOptional<z.ZodNull>;
currencyId: z.ZodNullable<z.ZodEnum<{
"\u05E9\"\u05D7": "ש\"ח";
דולר: "דולר";
}>>;
currentPaymentCurrency: z.ZodNull;
dealsInbound: z.ZodEnum<{
yes: "yes";
NO: "NO";
}>;
dealSum: z.ZodNullable<z.ZodString>;
dealSumOutbound: z.ZodNull;
dealSumType: z.ZodNullable<z.ZodEnum<{
1: "1";
T: "T";
P: "P";
}>>;
displayProperties: z.ZodNull;
fullPaymentDate: z.ZodNull;
fullPurchaseDate: z.ZodNullable<z.ZodString>;
fullPurchaseDateOutbound: z.ZodNull;
fullSupplierNameHeb: z.ZodNullable<z.ZodString>;
fullSupplierNameOutbound: z.ZodNull;
horaatKeva: z.ZodNullable<z.ZodEnum<{
K: "K";
}>>;
isButton: z.ZodLiteral<"false">;
isCaptcha: z.ZodLiteral<"false">;
isError: z.ZodLiteral<"false">;
isHoraatKeva: z.ZodEnum<{
false: "false";
true: "true";
}>;
isShowDealsOutbound: z.ZodNull;
isShowLinkForSupplierDetails: z.ZodEnum<{
yes: "yes";
NO: "NO";
}>;
kodMatbeaMekori: z.ZodNullable<z.ZodEnum<{
"\u05E9\"\u05D7": "ש\"ח";
דולר: "דולר";
}>>;
message: z.ZodNull;
monthlyRefundCardIndex: z.ZodNull;
moreInfo: z.ZodNullable<z.ZodString>;
paymentDate: z.ZodNull;
paymentSum: z.ZodNullable<z.ZodString>;
paymentSumOutbound: z.ZodNull;
paymentSumSign: z.ZodNullable<z.ZodEnum<{
"-": "-";
}>>;
purchaseDate: z.ZodNullable<z.ZodString>;
purchaseDateOutbound: z.ZodNull;
requestNumber: z.ZodNull;
returnCode: z.ZodNull;
returnMessage: z.ZodNull;
siteName: z.ZodNull;
solek: z.ZodNullable<z.ZodEnum<{
_: "_";
T: "T";
K: "K";
I: "I";
L: "L";
V: "V";
}>>;
specificDate: z.ZodNull;
stage: z.ZodNull;
supplierId: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodLiteral<"0">]>;
supplierName: z.ZodNullable<z.ZodString>;
supplierNameOutbound: z.ZodNull;
tablePageNum: z.ZodLiteral<"0">;
voucherNumber: z.ZodNullable<z.ZodString>;
voucherNumberRatz: z.ZodString;
voucherNumberRatzOutbound: z.ZodNull;
}, z.core.$strict>>>>;
}, z.core.$strict>>;
}, z.core.$strict>;
isButton: z.ZodLiteral<"false">;
isCaptcha: z.ZodLiteral<"false">;
isCashBack: z.ZodLiteral<"false">;
isError: z.ZodLiteral<"false">;
isShowDealsInboundForCharge: z.ZodEnum<{
yes: "yes";
NO: "NO";
}>;
isShowDealsInboundForInfo: z.ZodLiteral<"NO">;
isThereData: z.ZodNullable<z.ZodEnum<{
1: "1";
}>>;
isTooManyRecords: z.ZodNull;
message: z.ZodNull;
moed: z.ZodString;
month: z.ZodEnum<{
"09": "09";
"05": "05";
"01": "01";
"02": "02";
"03": "03";
"04": "04";
"06": "06";
"07": "07";
"08": "08";
10: "10";
11: "11";
12: "12";
}>;
monthlyRefundCardIndex: z.ZodNull;
payDay: z.ZodNullable<z.ZodEnum<{
"02": "02";
10: "10";
15: "15";
}>>;
paymentPercent: z.ZodNull;
paymentSum: z.ZodEnum<{
"000": "000";
280: "280";
}>;
requestNumber: z.ZodNull;
returnCode: z.ZodNull;
returnMessage: z.ZodNull;
selectedCardIndex: z.ZodEnum<{
0: "0";
1: "1";
2: "2";
3: "3";
4: "4";
5: "5";
}>;
selectedCardInfo: z.ZodString;
selectedDateIndex: z.ZodEnum<{
23: "23";
24: "24";
}>;
siteName: z.ZodNullable<z.ZodString>;
specificDate: z.ZodNull;
stage: z.ZodNull;
startDate: z.ZodNull;
tablePageNum: z.ZodLiteral<"0">;
totalChargeDollar: z.ZodNull;
totalChargeEuro: z.ZodNull;
totalChargeNis: z.ZodNullable<z.ZodString>;
totalDebit: z.ZodNull;
userId: z.ZodString;
year: z.ZodEnum<{
2010: "2010";
2015: "2015";
2019: "2019";
2011: "2011";
2012: "2012";
2013: "2013";
2014: "2014";
2016: "2016";
2017: "2017";
2018: "2018";
2020: "2020";
2025: "2025";
2021: "2021";
2022: "2022";
2023: "2023";
2024: "2024";
2026: "2026";
}>;
}, z.core.$catchall<z.ZodUnion<readonly [z.ZodObject<{
'@AllCards': z.ZodLiteral<"AllCards">;
CurrentCardTransactions: z.ZodArray<z.ZodObject<{
'@cardTransactions': z.ZodString;
txnAbroad: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
EsbServicesCall: z.ZodNull;
accountErrorCode: z.ZodNull;
adendum: z.ZodNull;
bcKey: z.ZodNull;
cardIndex: z.ZodEnum<{
0: "0";
1: "1";
2: "2";
3: "3";
4: "4";
5: "5";
}>;
city: z.ZodNullable<z.ZodString>;
clientIpAddress: z.ZodOptional<z.ZodNull>;
currencyId: z.ZodNullable<z.ZodEnum<{
EUR: "EUR";
USD: "USD";
NIS: "NIS";
}>>;
currentPaymentCurrency: z.ZodNullable<z.ZodEnum<{
AUD: "AUD";
CAD: "CAD";
EUR: "EUR";
GBP: "GBP";
JPY: "JPY";
USD: "USD";
NIS: "NIS";
LEU: "LEU";
SUR: "SUR";
DKK: "DKK";
TRY: "TRY";
CHF: "CHF";
HUF: "HUF";
INR: "INR";
HKD: "HKD";
YUN: "YUN";
SGD: "SGD";
OMR: "OMR";
CZE: "CZE";
NOK: "NOK";
THB: "THB";
KOR: "KOR";
TWD: "TWD";
CDL: "CDL";
AUR: "AUR";
SER: "SER";
PLZ: "PLZ";
ISK: "ISK";
RSD: "RSD";
PLN: "PLN";
}>>;
dealsInbound: z.ZodNull;
dealSum: z.ZodNull;
dealSumOutbound: z.ZodNullable<z.ZodString>;
dealSumType: z.ZodNull;
displayProperties: z.ZodNull;
fullPaymentDate: z.ZodNullable<z.ZodString>;
fullPurchaseDate: z.ZodNull;
fullPurchaseDateOutbound: z.ZodNullable<z.ZodString>;
fullSupplierNameHeb: z.ZodNull;
fullSupplierNameOutbound: z.ZodString;
horaatKeva: z.ZodNull;
isButton: z.ZodLiteral<"false">;
isCaptcha: z.ZodLiteral<"false">;
isError: z.ZodLiteral<"false">;
isHoraatKeva: z.ZodLiteral<"false">;
isShowDealsOutbound: z.ZodNullable<z.ZodEnum<{
_: "_";
}>>;
isShowLinkForSupplierDetails: z.ZodNull;
kodMatbeaMekori: z.ZodNull;
message: z.ZodNull;
monthlyRefundCardIndex: z.ZodNull;
moreInfo: z.ZodNull;
paymentDate: z.ZodNullable<z.ZodString>;
paymentSum: z.ZodNull;
paymentSumOutbound: z.ZodString;
paymentSumSign: z.ZodNull;
purchaseDate: z.ZodNull;
purchaseDateOutbound: z.ZodNullable<z.ZodString>;
requestNumber: z.ZodNull;
returnCode: z.ZodNull;
returnMessage: z.ZodNull;
siteName: z.ZodNull;
solek: z.ZodNull;
specificDate: z.ZodNull;
stage: z.ZodNull;
supplierId: z.ZodNull;
supplierName: z.ZodNull;
supplierNameOutbound: z.ZodString;
tablePageNum: z.ZodLiteral<"0">;
voucherNumber: z.ZodNullable<z.ZodString>;
voucherNumberRatz: z.ZodNull;
voucherNumberRatzOutbound: z.ZodString;
}, z.core.$strict>>>>;
txnInfo: z.ZodOptional<z.ZodNull>;
txnIsrael: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
EsbServicesCall: z.ZodNull;
accountErrorCode: z.ZodNull;
adendum: z.ZodNull;
bcKey: z.ZodNull;
cardIndex: z.ZodEnum<{
0: "0";
1: "1";
2: "2";
3: "3";
4: "4";
5: "5";
}>;
city: z.ZodNull;
clientIpAddress: z.ZodOptional<z.ZodNull>;
currencyId: z.ZodNullable<z.ZodEnum<{
"\u05E9\"\u05D7": "ש\"ח";
דולר: "דולר";
}>>;
currentPaymentCurrency: z.ZodNull;
dealsInbound: z.ZodEnum<{
yes: "yes";
NO: "NO";
}>;
dealSum: z.ZodNullable<z.ZodString>;
dealSumOutbound: z.ZodNull;
dealSumType: z.ZodNullable<z.ZodEnum<{
1: "1";
T: "T";
P: "P";
}>>;
displayProperties: z.ZodNull;
fullPaymentDate: z.ZodNull;
fullPurchaseDate: z.ZodNullable<z.ZodString>;
fullPurchaseDateOutbound: z.ZodNull;
fullSupplierNameHeb: z.ZodNullable<z.ZodString>;
fullSupplierNameOutbound: z.ZodNull;
horaatKeva: z.ZodNullable<z.ZodEnum<{
K: "K";
}>>;
isButton: z.ZodLiteral<"false">;
isCaptcha: z.ZodLiteral<"false">;
isError: z.ZodLiteral<"false">;
isHoraatKeva: z.ZodEnum<{
false: "false";
true: "true";
}>;
isShowDealsOutbound: z.ZodNull;
isShowLinkForSupplierDetails: z.ZodEnum<{
yes: "yes";
NO: "NO";
}>;
kodMatbeaMekori: z.ZodNullable<z.ZodEnum<{
"\u05E9\"\u05D7": "ש\"ח";
דולר: "דולר";
}>>;
message: z.ZodNull;
monthlyRefundCardIndex: z.ZodNull;
moreInfo: z.ZodNullable<z.ZodString>;
paymentDate: z.ZodNull;
paymentSum: z.ZodNullable<z.ZodString>;
paymentSumOutbound: z.ZodNull;
paymentSumSign: z.ZodNullable<z.ZodEnum<{
"-": "-";
}>>;
purchaseDate: z.ZodNullable<z.ZodString>;
purchaseDateOutbound: z.ZodNull;
requestNumber: z.ZodNull;
returnCode: z.ZodNull;
returnMessage: z.ZodNull;
siteName: z.ZodNull;
solek: z.ZodNullable<z.ZodEnum<{
_: "_";
T: "T";
K: "K";
I: "I";
L: "L";
V: "V";
}>>;
specificDate: z.ZodNull;
stage: z.ZodNull;
supplierId: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodLiteral<"0">]>;
supplierName: z.ZodNullable<z.ZodString>;
supplierNameOutbound: z.ZodNull;
tablePageNum: z.ZodLiteral<"0">;
voucherNumber: z.ZodNullable<z.ZodString>;
voucherNumberRatz: z.ZodString;
voucherNumberRatzOutbound: z.ZodNull;
}, z.core.$strict>>>>;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodArray<z.ZodObject<{
clientIpAddress: z.ZodOptional<z.ZodNull>;
currentId: z.ZodString;
displayProperties: z.ZodNull;
holderId: z.ZodNull;
holderName: z.ZodString;
isButton: z.ZodLiteral<"false">;
isCaptcha: z.ZodLiteral<"false">;
isError: z.ZodLiteral<"false">;
message: z.ZodNull;
monthlyRefundCardIndex: z.ZodNull;
returnCode: z.ZodNull;
returnMessage: z.ZodNull;
siteName: z.ZodNull;
stage: z.ZodNull;
tablePageNum: z.ZodLiteral<"0">;
totalDollar: z.ZodNullable<z.ZodString>;
totalEuro: z.ZodNullable<z.ZodString>;
totalNis: z.ZodString;
bcKey: z.ZodNull;
requestNumber: z.ZodNull;
accountErrorCode: z.ZodNull;
EsbServicesCall: z.ZodNull;
}, z.core.$strict>>, z.ZodArray<z.ZodObject<{
EsbServicesCall: z.ZodNull;
accountErrorCode: z.ZodNull;
bcKey: z.ZodNull;
clientIpAddress: z.ZodOptional<z.ZodNull>;
currentId: z.ZodNullable<z.ZodEnum<{
0: "0";
1: "1";
2: "2";
3: "3";
4: "4";
5: "5";
}>>;
displayProperties: z.ZodNull;
holderId: z.ZodString;
holderName: z.ZodNull;
isButton: z.ZodLiteral<"false">;
isCaptcha: z.ZodLiteral<"false">;
isError: z.ZodLiteral<"false">;
message: z.ZodNull;
monthlyRefundCardIndex: z.ZodNull;
requestNumber: z.ZodNull;
returnCode: z.ZodNull;
returnMessage: z.ZodNull;
siteName: z.ZodNull;
stage: z.ZodNull;
tablePageNum: z.ZodLiteral<"0">;
totalDollar: z.ZodNullable<z.ZodEnum<{
0: "0";
}>>;
totalEuro: z.ZodNullable<z.ZodEnum<{
0: "0";
}>>;
totalNis: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>]>>>;
}, z.core.$strict>;
export type IsracardCardsTransactionsList = z.infer<typeof IsracardCardsTransactionsListSchema>;