@ellipticltd/aml-utils 0.15.32 → 0.15.33

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 (66) hide show
  1. package/lib/errors/errors.d.ts +9 -0
  2. package/lib/errors/errors.js +19 -30
  3. package/lib/errors/errors.js.map +1 -0
  4. package/lib/file-parser/errors.d.ts +3 -0
  5. package/lib/file-parser/errors.js +11 -0
  6. package/lib/file-parser/errors.js.map +1 -0
  7. package/lib/file-parser/file-parser.d.ts +6 -0
  8. package/lib/file-parser/file-parser.js +60 -0
  9. package/lib/file-parser/file-parser.js.map +1 -0
  10. package/lib/file-parser/parse-row.d.ts +2 -0
  11. package/lib/file-parser/parse-row.js +40 -0
  12. package/lib/file-parser/parse-row.js.map +1 -0
  13. package/lib/file-parser/sanitizeRows.d.ts +5 -0
  14. package/lib/file-parser/sanitizeRows.js +15 -0
  15. package/lib/file-parser/sanitizeRows.js.map +1 -0
  16. package/lib/formatting/formatting.d.ts +2 -0
  17. package/lib/formatting/formatting.js +11 -12
  18. package/lib/formatting/formatting.js.map +1 -0
  19. package/lib/{index.ts → index.d.ts} +0 -1
  20. package/lib/index.js +21 -0
  21. package/lib/index.js.map +1 -0
  22. package/lib/middleware/middleware.d.ts +4 -0
  23. package/lib/middleware/middleware.js +14 -17
  24. package/lib/middleware/middleware.js.map +1 -0
  25. package/lib/orm-helpers/ormHelpers.d.ts +1 -0
  26. package/lib/orm-helpers/ormHelpers.js +7 -9
  27. package/lib/orm-helpers/ormHelpers.js.map +1 -0
  28. package/lib/structured-file-parser/errors.d.ts +12 -0
  29. package/lib/structured-file-parser/errors.js +33 -0
  30. package/lib/structured-file-parser/errors.js.map +1 -0
  31. package/lib/structured-file-parser/parse-row.d.ts +2 -0
  32. package/lib/structured-file-parser/parse-row.js +40 -0
  33. package/lib/structured-file-parser/parse-row.js.map +1 -0
  34. package/lib/structured-file-parser/sanitize-rows.d.ts +2 -0
  35. package/lib/structured-file-parser/sanitize-rows.js +14 -0
  36. package/lib/structured-file-parser/sanitize-rows.js.map +1 -0
  37. package/lib/structured-file-parser/structured-file-parser.d.ts +10 -0
  38. package/lib/structured-file-parser/structured-file-parser.js +96 -0
  39. package/lib/structured-file-parser/structured-file-parser.js.map +1 -0
  40. package/lib/types/types.d.ts +11 -0
  41. package/lib/types/types.js +190 -200
  42. package/lib/types/types.js.map +1 -0
  43. package/lib/validations/validations.d.ts +179 -0
  44. package/lib/validations/validations.js +500 -505
  45. package/lib/validations/validations.js.map +1 -0
  46. package/package.json +15 -1
  47. package/.eslintrc.js +0 -22
  48. package/jest.config.ts +0 -13
  49. package/lib/errors/errors.spec.js +0 -49
  50. package/lib/file-parser/__tests/parse-row.spec.js +0 -34
  51. package/lib/file-parser/__tests/sanitize-rows.spec.js +0 -85
  52. package/lib/file-parser/errors.ts +0 -6
  53. package/lib/file-parser/file-parser.ts +0 -67
  54. package/lib/file-parser/parse-row.ts +0 -46
  55. package/lib/file-parser/sanitizeRows.ts +0 -22
  56. package/lib/formatting/formatting.spec.js +0 -47
  57. package/lib/orm-helpers/ormHelpers.spec.js +0 -47
  58. package/lib/structured-file-parser/errors.ts +0 -25
  59. package/lib/structured-file-parser/parse-row.ts +0 -46
  60. package/lib/structured-file-parser/sanitize-rows.ts +0 -17
  61. package/lib/structured-file-parser/structured-file-parser.ts +0 -129
  62. package/lib/validations/validations.spec.js +0 -973
  63. package/project.json +0 -55
  64. package/tsconfig.json +0 -13
  65. package/tsconfig.lib.json +0 -14
  66. package/tsconfig.spec.json +0 -10
@@ -0,0 +1,179 @@
1
+ export function _validate(Err: any, pred: any, x: any, msg: any): any;
2
+ export function _validateArg(pred: any, x: any, msg: any): any;
3
+ export function _tryCheck(fn: any, arg: any): boolean;
4
+ export function exists(x: any): boolean;
5
+ export function nonEmpty(x: any): boolean;
6
+ export function isNonEmptyString(x: any): boolean;
7
+ export function isSafeString(str: any): boolean;
8
+ export function isAssetSafeString(str: any): boolean;
9
+ export function ensureShortEnough(limit: any, x: any): boolean;
10
+ export function ensure(crit: any, msg: any): boolean;
11
+ export function argExists(x: any, msg: any): any;
12
+ export namespace check {
13
+ function matches(required: any, given: any, msg: any): boolean;
14
+ function wasFound(type: any): (item: any) => any;
15
+ function wasCreated(msg: any): (arr: any) => any;
16
+ function isTrue(crit: any, msg: any): boolean;
17
+ function isFalse(crit: any, msg: any): boolean;
18
+ }
19
+ export function isCustomerReference(x: any): boolean;
20
+ export function isCustomerLabelName(x: any): boolean;
21
+ export namespace binanceChain {
22
+ function isAddress(str: any): boolean;
23
+ function isTxHash(str: any): boolean;
24
+ }
25
+ export namespace bitcoin {
26
+ function isAddress(str: any): any;
27
+ function isBech32Address(str: any): boolean;
28
+ function isHDPublicKey(str: any): boolean;
29
+ function isPublicKey(str: any): boolean;
30
+ function isTxHash(str: any): boolean;
31
+ function isTxHex(str: any): boolean;
32
+ function isHDPath(str: any): any;
33
+ function isScriptHex(str: any): boolean;
34
+ function isTxSignature(str: any): boolean;
35
+ function isBlockHeight(obj: any): boolean;
36
+ }
37
+ export namespace bitcoinCash {
38
+ function isAddress(str: any): boolean;
39
+ function isTxHash(str: any): boolean;
40
+ }
41
+ export namespace ethereum {
42
+ function isAddress(str: any): any;
43
+ function isBlockHash(str: any): any;
44
+ function isTxHash(str: any): any;
45
+ function isAddressCode(str: any): any;
46
+ function isValidWeiAmount(str: any): boolean;
47
+ }
48
+ export namespace horizen {
49
+ function isAddress(str: any): any;
50
+ function isTxHash(str: any): boolean;
51
+ }
52
+ export namespace litecoin {
53
+ function isAddress(str: any): boolean;
54
+ function isTxHash(str: any): boolean;
55
+ }
56
+ export namespace ripple {
57
+ function isAddress(str: any): any;
58
+ function isTxHash(str: any): boolean;
59
+ }
60
+ export namespace stellar {
61
+ function isAddress(str: any): boolean;
62
+ function isTxHash(str: any): boolean;
63
+ }
64
+ export namespace zcash {
65
+ function isAddress(str: any): any;
66
+ function isTxHash(str: any): boolean;
67
+ }
68
+ export namespace zilliqa {
69
+ function isAddress(str: any): boolean;
70
+ function isTxHash(str: any): any;
71
+ }
72
+ export namespace algorand {
73
+ function isAddress(str: any): any;
74
+ function isTxHash(str: any): boolean;
75
+ }
76
+ export namespace tezos {
77
+ function isAddress(str: any): any;
78
+ function isTxHash(str: any): boolean;
79
+ }
80
+ export namespace polkadot {
81
+ function isAddress(str: any): any;
82
+ function isTxHash(str: any): any;
83
+ }
84
+ export namespace cardano {
85
+ function isAddress(str: any): any;
86
+ function isTxHash(str: any): boolean;
87
+ }
88
+ export namespace cryptocom {
89
+ function isAddress(str: any): any;
90
+ function isTxHash(str: any): boolean;
91
+ }
92
+ export namespace near {
93
+ function isAddress(str: any): boolean;
94
+ function isTxHash(str: any): boolean;
95
+ }
96
+ export namespace doge {
97
+ function isAddress(str: any): boolean;
98
+ function isTxHash(str: any): boolean;
99
+ }
100
+ export namespace cosmos {
101
+ function isAddress(str: any): boolean;
102
+ function isTxHash(str: any): any;
103
+ }
104
+ export namespace solana {
105
+ function isAddress(str: any): boolean;
106
+ function isTxHash(str: any): boolean;
107
+ }
108
+ export namespace binanceSmartChain {
109
+ function isAddress(str: any): any;
110
+ function isTxHash(str: any): any;
111
+ }
112
+ export namespace polygon {
113
+ function isAddress(str: any): any;
114
+ function isTxHash(str: any): any;
115
+ }
116
+ export namespace filecoin {
117
+ function isAddress(str: any): boolean;
118
+ function isTxHash(str: any): boolean;
119
+ }
120
+ export namespace optimism {
121
+ function isAddress(str: any): any;
122
+ function isTxHash(str: any): any;
123
+ }
124
+ export namespace avalanche {
125
+ function isAddress(str: any): any;
126
+ function isTxHash(str: any): any;
127
+ }
128
+ export namespace arbitrum {
129
+ function isAddress(str: any): any;
130
+ function isTxHash(str: any): any;
131
+ }
132
+ export namespace tron {
133
+ function isAddress(str: any): any;
134
+ function isTxHash(str: any): any;
135
+ }
136
+ export namespace fantom {
137
+ function isAddress(str: any): any;
138
+ function isTxHash(str: any): any;
139
+ }
140
+ export namespace celo {
141
+ function isAddress(str: any): any;
142
+ function isTxHash(str: any): any;
143
+ }
144
+ export namespace ethereumClassic {
145
+ function isAddress(str: any): any;
146
+ function isTxHash(str: any): any;
147
+ }
148
+ export namespace mobilecoin {
149
+ function isAddress(str: any): boolean;
150
+ function isTxHash(str: any): any;
151
+ }
152
+ export namespace sui {
153
+ function isAddress(str: any): boolean;
154
+ function isTxHash(str: any): boolean;
155
+ }
156
+ export namespace flare {
157
+ function isAddress(str: any): boolean;
158
+ function isTxHash(str: any): boolean;
159
+ }
160
+ export namespace ton {
161
+ function isAddress(str: any): boolean;
162
+ function isTxHash(str: any): boolean;
163
+ }
164
+ export namespace gnosis {
165
+ function isAddress(str: any): any;
166
+ function isTxHash(str: any): any;
167
+ }
168
+ export namespace dydx {
169
+ function isAddress(str: any): boolean;
170
+ function isTxHash(str: any): any;
171
+ }
172
+ export namespace hederaHashgraph {
173
+ function isAddress(str: any): boolean;
174
+ function isTxHash(str: any): boolean;
175
+ }
176
+ export namespace aptos {
177
+ function isAddress(str: any): any;
178
+ function isTxHash(str: any): any;
179
+ }