@accounter/modern-poalim-scraper 0.10.3-alpha-20251215090645-0224d7cad2901369f8bcdf894baaacb58a807931 → 0.10.3-alpha-20251215163206-c4f00fef8cb6de2a649d3e2e84519961f73037f2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +36 -1
  2. package/dist/index.d.ts +394 -17
  3. package/dist/index.js +1 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/scrapers/amex.d.ts +194 -7
  6. package/dist/scrapers/amex.js +6 -6
  7. package/dist/scrapers/amex.js.map +1 -1
  8. package/dist/scrapers/hapoalim.d.ts +11 -11
  9. package/dist/scrapers/hapoalim.js +35 -23
  10. package/dist/scrapers/hapoalim.js.map +1 -1
  11. package/dist/scrapers/isracard.d.ts +194 -7
  12. package/dist/scrapers/isracard.js +6 -6
  13. package/dist/scrapers/isracard.js.map +1 -1
  14. package/dist/zod-schemas/hapoalim-account-data-schema.d.ts +38 -0
  15. package/dist/zod-schemas/hapoalim-account-data-schema.js +42 -0
  16. package/dist/zod-schemas/hapoalim-account-data-schema.js.map +1 -0
  17. package/dist/zod-schemas/hapoalim-deposits-schema.d.ts +204 -0
  18. package/dist/zod-schemas/hapoalim-deposits-schema.js +145 -0
  19. package/dist/zod-schemas/hapoalim-deposits-schema.js.map +1 -0
  20. package/dist/zod-schemas/hapoalim-foreign-deposits-schema.d.ts +200 -0
  21. package/dist/zod-schemas/hapoalim-foreign-deposits-schema.js +166 -0
  22. package/dist/zod-schemas/hapoalim-foreign-deposits-schema.js.map +1 -0
  23. package/dist/zod-schemas/hapoalim-foreign-transactions-business-schema.d.ts +143 -0
  24. package/dist/zod-schemas/hapoalim-foreign-transactions-business-schema.js +159 -0
  25. package/dist/zod-schemas/hapoalim-foreign-transactions-business-schema.js.map +1 -0
  26. package/dist/zod-schemas/hapoalim-foreign-transactions-personal-schema.d.ts +122 -0
  27. package/dist/zod-schemas/hapoalim-foreign-transactions-personal-schema.js +140 -0
  28. package/dist/zod-schemas/hapoalim-foreign-transactions-personal-schema.js.map +1 -0
  29. package/dist/zod-schemas/hapoalim-ils-checking-transactions-schema.d.ts +90 -0
  30. package/dist/zod-schemas/hapoalim-ils-checking-transactions-schema.js +110 -0
  31. package/dist/zod-schemas/hapoalim-ils-checking-transactions-schema.js.map +1 -0
  32. package/dist/zod-schemas/isracard-dashboard-month-schema.d.ts +49 -0
  33. package/dist/zod-schemas/isracard-dashboard-month-schema.js +63 -0
  34. package/dist/zod-schemas/isracard-dashboard-month-schema.js.map +1 -0
  35. package/dist/zod-schemas/types.d.ts +10 -0
  36. package/dist/zod-schemas/types.js +2 -0
  37. package/dist/zod-schemas/types.js.map +1 -0
  38. package/package.json +2 -4
  39. package/dist/__generated__/accountDataSchema.d.ts +0 -60
  40. package/dist/__generated__/foreignTransactionsBusinessSchema.d.ts +0 -161
  41. package/dist/__generated__/foreignTransactionsPersonalSchema.d.ts +0 -136
  42. package/dist/__generated__/hapoalimDepositsSchema.d.ts +0 -146
  43. package/dist/__generated__/hapoalimForeignDepositsSchema.d.ts +0 -219
  44. package/dist/__generated__/isracardDashboardMonth.d.ts +0 -54
  45. package/dist/schemas/ILSCheckingTransactionsDataSchema.json +0 -392
  46. package/dist/schemas/accountDataSchema.json +0 -105
  47. package/dist/schemas/foreignTransactionsBusinessSchema.json +0 -582
  48. package/dist/schemas/foreignTransactionsPersonalSchema.json +0 -498
  49. package/dist/schemas/hapoalimDepositsSchema.json +0 -458
  50. package/dist/schemas/hapoalimForeignDepositsSchema.json +0 -657
  51. package/dist/schemas/isracardDashboardMonth.json +0 -192
  52. package/dist/utils/validate-schema.d.ts +0 -4
  53. package/dist/utils/validate-schema.js +0 -16
  54. package/dist/utils/validate-schema.js.map +0 -1
@@ -1,192 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "type": "object",
4
- "additionalProperties": false,
5
- "required": ["Header", "DashboardMonthBean"],
6
- "properties": {
7
- "Header": {
8
- "type": "object",
9
- "additionalProperties": false,
10
- "required": ["Status", "Message"],
11
- "properties": {
12
- "Status": {
13
- "type": "string"
14
- },
15
- "Message": {
16
- "type": "string"
17
- }
18
- }
19
- },
20
- "DashboardMonthBean": {
21
- "type": "object",
22
- "additionalProperties": false,
23
- "required": [
24
- "cardsCharges",
25
- "cardType",
26
- "displayProperties",
27
- "extraCards",
28
- "isButton",
29
- "isCaptcha",
30
- "isError",
31
- "message",
32
- "returnCode",
33
- "returnMessage",
34
- "statementDate",
35
- "totalDebitShekel",
36
- "totalDebitDollar",
37
- "totalDebitEuro",
38
- "tablePageNum"
39
- ],
40
- "properties": {
41
- "totalDebitShekel": {
42
- "type": "string"
43
- },
44
- "totalDebitDollar": {
45
- "type": "string"
46
- },
47
- "totalDebitEuro": {
48
- "type": "string"
49
- },
50
- "cardType": {
51
- "type": "string"
52
- },
53
- "statementDate": {
54
- "type": "array",
55
- "items": {
56
- "type": "object",
57
- "additionalProperties": false,
58
- "required": [
59
- "billingDateCode",
60
- "billingDate",
61
- "totalShekel",
62
- "totalDollar",
63
- "totalEuro",
64
- "cardType",
65
- "billingDateMore",
66
- "statementDateCard"
67
- ],
68
- "properties": {
69
- "billingDateCode": {
70
- "type": "string"
71
- },
72
- "billingDate": {
73
- "type": "string"
74
- },
75
- "totalShekel": {
76
- "type": "string"
77
- },
78
- "totalDollar": {
79
- "type": "string"
80
- },
81
- "totalEuro": {
82
- "type": "string"
83
- },
84
- "cardType": {
85
- "type": "string"
86
- },
87
- "billingDateMore": {
88
- "type": "string"
89
- },
90
- "statementDateCard": {
91
- "type": "null"
92
- }
93
- }
94
- }
95
- },
96
- "cardsCharges": {
97
- "type": "array",
98
- "items": {
99
- "type": "object",
100
- "additionalProperties": false,
101
- "required": [
102
- "period",
103
- "billingDate",
104
- "workingDate",
105
- "cardNumber",
106
- "cardIndex",
107
- "moreNumberDays",
108
- "cardType",
109
- "billingDateMore",
110
- "billingSumSekel",
111
- "billingSumDollar",
112
- "billingSumEuro",
113
- "cardStatus",
114
- "idType"
115
- ],
116
- "properties": {
117
- "period": {
118
- "type": "string"
119
- },
120
- "billingDate": {
121
- "type": "string"
122
- },
123
- "workingDate": {
124
- "type": "string"
125
- },
126
- "cardNumber": {
127
- "type": "string"
128
- },
129
- "cardIndex": {
130
- "type": "string"
131
- },
132
- "moreNumberDays": {
133
- "type": "string"
134
- },
135
- "cardType": {
136
- "type": "string"
137
- },
138
- "billingDateMore": {
139
- "type": "string"
140
- },
141
- "billingSumSekel": {
142
- "type": "string"
143
- },
144
- "billingSumDollar": {
145
- "type": "string"
146
- },
147
- "billingSumEuro": {
148
- "type": "string"
149
- },
150
- "cardStatus": {
151
- "type": "string"
152
- },
153
- "idType": {
154
- "type": "string"
155
- }
156
- }
157
- }
158
- },
159
- "extraCards": {
160
- "type": "string"
161
- },
162
- "returnCode": {
163
- "type": "string"
164
- },
165
- "message": {
166
- "type": "string"
167
- },
168
- "returnMessage": {
169
- "type": "string"
170
- },
171
- "displayProperties": {
172
- "type": "string"
173
- },
174
- "tablePageNum": {
175
- "type": "string"
176
- },
177
- "isError": {
178
- "type": "string"
179
- },
180
- "isCaptcha": {
181
- "type": "string"
182
- },
183
- "isButton": {
184
- "type": "string"
185
- },
186
- "clientIpAddress": {
187
- "type": "string"
188
- }
189
- }
190
- }
191
- }
192
- }
@@ -1,4 +0,0 @@
1
- export declare function validateSchema(jsonSchema: Record<string, unknown>, data: unknown): Promise<{
2
- isValid: boolean;
3
- errors: unknown;
4
- }>;
@@ -1,16 +0,0 @@
1
- import Ajv from 'ajv';
2
- import addFormats from 'ajv-formats';
3
- export async function validateSchema(jsonSchema, data) {
4
- const ajv = new Ajv({ verbose: true, allowMatchingProperties: true });
5
- addFormats(ajv);
6
- let valid;
7
- try {
8
- valid = ajv.validate(jsonSchema, data);
9
- }
10
- catch (e) {
11
- console.log(e);
12
- return { isValid: false, errors: e };
13
- }
14
- return { isValid: valid, errors: ajv.errors };
15
- }
16
- //# sourceMappingURL=validate-schema.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validate-schema.js","sourceRoot":"","sources":["../../src/utils/validate-schema.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,UAAmC,EAAE,IAAa;IACrF,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC,CAAC;IACtE,UAAU,CAAC,GAAG,CAAC,CAAC;IAChB,IAAI,KAAK,CAAC;IACV,IAAI,CAAC;QACH,KAAK,GAAG,GAAG,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IACzC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACf,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IACvC,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC;AAChD,CAAC"}