@0xtorch/csv 0.0.1

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 (147) hide show
  1. package/.DS_Store +0 -0
  2. package/_cjs/formatCsvRows.js +67 -0
  3. package/_cjs/formatCsvRows.js.map +1 -0
  4. package/_cjs/index.js +12 -0
  5. package/_cjs/index.js.map +1 -0
  6. package/_cjs/package.json +1 -0
  7. package/_cjs/parseCsvFileToAccountActions.js +26 -0
  8. package/_cjs/parseCsvFileToAccountActions.js.map +1 -0
  9. package/_cjs/parseCsvFileToText.js +15 -0
  10. package/_cjs/parseCsvFileToText.js.map +1 -0
  11. package/_cjs/parseCsvRowToNormalAction/asset.js +62 -0
  12. package/_cjs/parseCsvRowToNormalAction/asset.js.map +1 -0
  13. package/_cjs/parseCsvRowToNormalAction/condition.js +32 -0
  14. package/_cjs/parseCsvRowToNormalAction/condition.js.map +1 -0
  15. package/_cjs/parseCsvRowToNormalAction/index.js +6 -0
  16. package/_cjs/parseCsvRowToNormalAction/index.js.map +1 -0
  17. package/_cjs/parseCsvRowToNormalAction/nft.js +15 -0
  18. package/_cjs/parseCsvRowToNormalAction/nft.js.map +1 -0
  19. package/_cjs/parseCsvRowToNormalAction/parseCsvRowToNormalAction.js +83 -0
  20. package/_cjs/parseCsvRowToNormalAction/parseCsvRowToNormalAction.js.map +1 -0
  21. package/_cjs/parseCsvRowToNormalAction/text.js +31 -0
  22. package/_cjs/parseCsvRowToNormalAction/text.js.map +1 -0
  23. package/_cjs/parseCsvRowToNormalAction/timestamp.js +12 -0
  24. package/_cjs/parseCsvRowToNormalAction/timestamp.js.map +1 -0
  25. package/_cjs/parseCsvRowToNormalAction/transfer.js +29 -0
  26. package/_cjs/parseCsvRowToNormalAction/transfer.js.map +1 -0
  27. package/_cjs/parseCsvRowsToAccountActions.js +49 -0
  28. package/_cjs/parseCsvRowsToAccountActions.js.map +1 -0
  29. package/_cjs/parseCsvText.js +15 -0
  30. package/_cjs/parseCsvText.js.map +1 -0
  31. package/_cjs/schemas/formatter.js +15 -0
  32. package/_cjs/schemas/formatter.js.map +1 -0
  33. package/_cjs/schemas/formatterTypes.js +37 -0
  34. package/_cjs/schemas/formatterTypes.js.map +1 -0
  35. package/_cjs/schemas/index.js +6 -0
  36. package/_cjs/schemas/index.js.map +1 -0
  37. package/_cjs/schemas/parser.js +80 -0
  38. package/_cjs/schemas/parser.js.map +1 -0
  39. package/_cjs/schemas/schemas.js +14 -0
  40. package/_cjs/schemas/schemas.js.map +1 -0
  41. package/_cjs/types.js +3 -0
  42. package/_cjs/types.js.map +1 -0
  43. package/_esm/formatCsvRows.js +67 -0
  44. package/_esm/formatCsvRows.js.map +1 -0
  45. package/_esm/index.js +5 -0
  46. package/_esm/index.js.map +1 -0
  47. package/_esm/package.json +1 -0
  48. package/_esm/parseCsvFileToAccountActions.js +22 -0
  49. package/_esm/parseCsvFileToAccountActions.js.map +1 -0
  50. package/_esm/parseCsvFileToText.js +11 -0
  51. package/_esm/parseCsvFileToText.js.map +1 -0
  52. package/_esm/parseCsvRowToNormalAction/asset.js +58 -0
  53. package/_esm/parseCsvRowToNormalAction/asset.js.map +1 -0
  54. package/_esm/parseCsvRowToNormalAction/condition.js +28 -0
  55. package/_esm/parseCsvRowToNormalAction/condition.js.map +1 -0
  56. package/_esm/parseCsvRowToNormalAction/index.js +2 -0
  57. package/_esm/parseCsvRowToNormalAction/index.js.map +1 -0
  58. package/_esm/parseCsvRowToNormalAction/nft.js +11 -0
  59. package/_esm/parseCsvRowToNormalAction/nft.js.map +1 -0
  60. package/_esm/parseCsvRowToNormalAction/parseCsvRowToNormalAction.js +81 -0
  61. package/_esm/parseCsvRowToNormalAction/parseCsvRowToNormalAction.js.map +1 -0
  62. package/_esm/parseCsvRowToNormalAction/text.js +27 -0
  63. package/_esm/parseCsvRowToNormalAction/text.js.map +1 -0
  64. package/_esm/parseCsvRowToNormalAction/timestamp.js +8 -0
  65. package/_esm/parseCsvRowToNormalAction/timestamp.js.map +1 -0
  66. package/_esm/parseCsvRowToNormalAction/transfer.js +25 -0
  67. package/_esm/parseCsvRowToNormalAction/transfer.js.map +1 -0
  68. package/_esm/parseCsvRowsToAccountActions.js +47 -0
  69. package/_esm/parseCsvRowsToAccountActions.js.map +1 -0
  70. package/_esm/parseCsvText.js +11 -0
  71. package/_esm/parseCsvText.js.map +1 -0
  72. package/_esm/schemas/formatter.js +12 -0
  73. package/_esm/schemas/formatter.js.map +1 -0
  74. package/_esm/schemas/formatterTypes.js +35 -0
  75. package/_esm/schemas/formatterTypes.js.map +1 -0
  76. package/_esm/schemas/index.js +2 -0
  77. package/_esm/schemas/index.js.map +1 -0
  78. package/_esm/schemas/parser.js +100 -0
  79. package/_esm/schemas/parser.js.map +1 -0
  80. package/_esm/schemas/schemas.js +11 -0
  81. package/_esm/schemas/schemas.js.map +1 -0
  82. package/_esm/types.js +2 -0
  83. package/_esm/types.js.map +1 -0
  84. package/_types/formatCsvRows.d.ts +11 -0
  85. package/_types/formatCsvRows.d.ts.map +1 -0
  86. package/_types/index.d.ts +6 -0
  87. package/_types/index.d.ts.map +1 -0
  88. package/_types/parseCsvFileToAccountActions.d.ts +12 -0
  89. package/_types/parseCsvFileToAccountActions.d.ts.map +1 -0
  90. package/_types/parseCsvFileToText.d.ts +2 -0
  91. package/_types/parseCsvFileToText.d.ts.map +1 -0
  92. package/_types/parseCsvRowToNormalAction/asset.d.ts +17 -0
  93. package/_types/parseCsvRowToNormalAction/asset.d.ts.map +1 -0
  94. package/_types/parseCsvRowToNormalAction/condition.d.ts +10 -0
  95. package/_types/parseCsvRowToNormalAction/condition.d.ts.map +1 -0
  96. package/_types/parseCsvRowToNormalAction/index.d.ts +2 -0
  97. package/_types/parseCsvRowToNormalAction/index.d.ts.map +1 -0
  98. package/_types/parseCsvRowToNormalAction/nft.d.ts +12 -0
  99. package/_types/parseCsvRowToNormalAction/nft.d.ts.map +1 -0
  100. package/_types/parseCsvRowToNormalAction/parseCsvRowToNormalAction.d.ts +20 -0
  101. package/_types/parseCsvRowToNormalAction/parseCsvRowToNormalAction.d.ts.map +1 -0
  102. package/_types/parseCsvRowToNormalAction/text.d.ts +11 -0
  103. package/_types/parseCsvRowToNormalAction/text.d.ts.map +1 -0
  104. package/_types/parseCsvRowToNormalAction/timestamp.d.ts +8 -0
  105. package/_types/parseCsvRowToNormalAction/timestamp.d.ts.map +1 -0
  106. package/_types/parseCsvRowToNormalAction/transfer.d.ts +18 -0
  107. package/_types/parseCsvRowToNormalAction/transfer.d.ts.map +1 -0
  108. package/_types/parseCsvRowsToAccountActions.d.ts +16 -0
  109. package/_types/parseCsvRowsToAccountActions.d.ts.map +1 -0
  110. package/_types/parseCsvText.d.ts +4 -0
  111. package/_types/parseCsvText.d.ts.map +1 -0
  112. package/_types/schemas/formatter.d.ts +4 -0
  113. package/_types/schemas/formatter.d.ts.map +1 -0
  114. package/_types/schemas/formatterTypes.d.ts +10 -0
  115. package/_types/schemas/formatterTypes.d.ts.map +1 -0
  116. package/_types/schemas/index.d.ts +2 -0
  117. package/_types/schemas/index.d.ts.map +1 -0
  118. package/_types/schemas/parser.d.ts +1505 -0
  119. package/_types/schemas/parser.d.ts.map +1 -0
  120. package/_types/schemas/schemas.d.ts +806 -0
  121. package/_types/schemas/schemas.d.ts.map +1 -0
  122. package/_types/types.d.ts +13 -0
  123. package/_types/types.d.ts.map +1 -0
  124. package/formatCsvRows.ts +97 -0
  125. package/index.ts +5 -0
  126. package/package.json +50 -0
  127. package/parseCsvFileToAccountActions.ts +40 -0
  128. package/parseCsvFileToText.ts +11 -0
  129. package/parseCsvRowToNormalAction/asset.ts +92 -0
  130. package/parseCsvRowToNormalAction/condition.ts +39 -0
  131. package/parseCsvRowToNormalAction/index.ts +1 -0
  132. package/parseCsvRowToNormalAction/nft.ts +27 -0
  133. package/parseCsvRowToNormalAction/parseCsvRowToNormalAction.ts +146 -0
  134. package/parseCsvRowToNormalAction/text.ts +37 -0
  135. package/parseCsvRowToNormalAction/timestamp.ts +19 -0
  136. package/parseCsvRowToNormalAction/transfer.ts +55 -0
  137. package/parseCsvRowsToAccountActions.ts +67 -0
  138. package/parseCsvText.ts +14 -0
  139. package/schemas/formatter.ts +13 -0
  140. package/schemas/formatterTypes.ts +44 -0
  141. package/schemas/index.ts +1 -0
  142. package/schemas/parser.ts +110 -0
  143. package/schemas/schemas.ts +11 -0
  144. package/tests/assets.ts +28 -0
  145. package/tests/coincheck-standard.csv +17 -0
  146. package/tests/coincheck.ts +137 -0
  147. package/types.ts +17 -0
@@ -0,0 +1,806 @@
1
+ import { z } from 'zod';
2
+ export declare const csvFormatSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ service: z.ZodString;
5
+ formatter: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodLiteral<"blank">, z.ZodLiteral<"string">, z.ZodLiteral<"big-decimal">, z.ZodLiteral<"big-decimal-positive">, z.ZodLiteral<"big-decimal-negative">, z.ZodLiteral<"iso8601">, z.ZodLiteral<"datetime-jp">]>, "many">>;
6
+ parsers: z.ZodArray<z.ZodObject<{
7
+ conditions: z.ZodArray<z.ZodObject<{
8
+ column: z.ZodString;
9
+ pattern: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
10
+ type: z.ZodLiteral<"defined">;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: "defined";
13
+ }, {
14
+ type: "defined";
15
+ }>, z.ZodObject<{
16
+ type: z.ZodLiteral<"undefined">;
17
+ }, "strip", z.ZodTypeAny, {
18
+ type: "undefined";
19
+ }, {
20
+ type: "undefined";
21
+ }>, z.ZodObject<{
22
+ type: z.ZodLiteral<"in">;
23
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
24
+ }, "strip", z.ZodTypeAny, {
25
+ values: (string | number)[];
26
+ type: "in";
27
+ }, {
28
+ values: (string | number)[];
29
+ type: "in";
30
+ }>, z.ZodObject<{
31
+ type: z.ZodLiteral<"not-in">;
32
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
33
+ }, "strip", z.ZodTypeAny, {
34
+ values: (string | number)[];
35
+ type: "not-in";
36
+ }, {
37
+ values: (string | number)[];
38
+ type: "not-in";
39
+ }>]>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ column: string;
42
+ pattern: string | number | {
43
+ type: "defined";
44
+ } | {
45
+ type: "undefined";
46
+ } | {
47
+ values: (string | number)[];
48
+ type: "in";
49
+ } | {
50
+ values: (string | number)[];
51
+ type: "not-in";
52
+ } | (string & {
53
+ type: "defined";
54
+ }) | (string & {
55
+ type: "undefined";
56
+ }) | (string & {
57
+ values: (string | number)[];
58
+ type: "in";
59
+ }) | (string & {
60
+ values: (string | number)[];
61
+ type: "not-in";
62
+ }) | (number & {
63
+ type: "defined";
64
+ }) | (number & {
65
+ type: "undefined";
66
+ }) | (number & {
67
+ values: (string | number)[];
68
+ type: "in";
69
+ }) | (number & {
70
+ values: (string | number)[];
71
+ type: "not-in";
72
+ }) | ({
73
+ type: "defined";
74
+ } & string) | ({
75
+ type: "defined";
76
+ } & number) | ({
77
+ type: "undefined";
78
+ } & string) | ({
79
+ type: "undefined";
80
+ } & number) | ({
81
+ values: (string | number)[];
82
+ type: "in";
83
+ } & string) | ({
84
+ values: (string | number)[];
85
+ type: "in";
86
+ } & number) | ({
87
+ values: (string | number)[];
88
+ type: "not-in";
89
+ } & string) | ({
90
+ values: (string | number)[];
91
+ type: "not-in";
92
+ } & number);
93
+ }, {
94
+ column: string;
95
+ pattern: string | number | {
96
+ type: "defined";
97
+ } | {
98
+ type: "undefined";
99
+ } | {
100
+ values: (string | number)[];
101
+ type: "in";
102
+ } | {
103
+ values: (string | number)[];
104
+ type: "not-in";
105
+ } | (string & {
106
+ type: "defined";
107
+ }) | (string & {
108
+ type: "undefined";
109
+ }) | (string & {
110
+ values: (string | number)[];
111
+ type: "in";
112
+ }) | (string & {
113
+ values: (string | number)[];
114
+ type: "not-in";
115
+ }) | (number & {
116
+ type: "defined";
117
+ }) | (number & {
118
+ type: "undefined";
119
+ }) | (number & {
120
+ values: (string | number)[];
121
+ type: "in";
122
+ }) | (number & {
123
+ values: (string | number)[];
124
+ type: "not-in";
125
+ }) | ({
126
+ type: "defined";
127
+ } & string) | ({
128
+ type: "defined";
129
+ } & number) | ({
130
+ type: "undefined";
131
+ } & string) | ({
132
+ type: "undefined";
133
+ } & number) | ({
134
+ values: (string | number)[];
135
+ type: "in";
136
+ } & string) | ({
137
+ values: (string | number)[];
138
+ type: "in";
139
+ } & number) | ({
140
+ values: (string | number)[];
141
+ type: "not-in";
142
+ } & string) | ({
143
+ values: (string | number)[];
144
+ type: "not-in";
145
+ } & number);
146
+ }>, "many">;
147
+ action: z.ZodUnion<[z.ZodLiteral<"borrow">, z.ZodLiteral<"bridge-from">, z.ZodLiteral<"bridge-to">, z.ZodLiteral<"cross-replace">, z.ZodLiteral<"cross-trade">, z.ZodLiteral<"add-liquidity">, z.ZodLiteral<"deposit">, z.ZodLiteral<"deposit-with-bond">, z.ZodLiteral<"stake">, z.ZodLiteral<"fee">, z.ZodLiteral<"transaction-fee">, z.ZodLiteral<"approve">, z.ZodLiteral<"fail-tx">, z.ZodLiteral<"receive-from-cex">, z.ZodLiteral<"revoke">, z.ZodLiteral<"send-to-cex">, z.ZodLiteral<"spam">, z.ZodLiteral<"atomic-arbitrage">, z.ZodLiteral<"free-mint-nft">, z.ZodLiteral<"income">, z.ZodLiteral<"repayment">, z.ZodLiteral<"repayment-with-debt">, z.ZodLiteral<"replace">, z.ZodLiteral<"swap-nft">, z.ZodLiteral<"unwrap">, z.ZodLiteral<"wrap">, z.ZodLiteral<"buy-crypto">, z.ZodLiteral<"buy-nft">, z.ZodLiteral<"mint-nft">, z.ZodLiteral<"sell-crypto">, z.ZodLiteral<"sell-nft">, z.ZodLiteral<"trade">, z.ZodLiteral<"transfer">, z.ZodLiteral<"valuedown">, z.ZodLiteral<"valueup">, z.ZodLiteral<"remove-liquidity">, z.ZodLiteral<"unstake">, z.ZodLiteral<"withdraw">, z.ZodLiteral<"withdraw-with-bond">]>;
148
+ source: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
149
+ type: z.ZodLiteral<"service">;
150
+ }, "strip", z.ZodTypeAny, {
151
+ type: "service";
152
+ }, {
153
+ type: "service";
154
+ }>, z.ZodObject<{
155
+ type: z.ZodLiteral<"column">;
156
+ column: z.ZodString;
157
+ }, "strip", z.ZodTypeAny, {
158
+ type: "column";
159
+ column: string;
160
+ }, {
161
+ type: "column";
162
+ column: string;
163
+ }>]>, "many">;
164
+ timestamp: z.ZodString;
165
+ comment: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
166
+ type: z.ZodLiteral<"service">;
167
+ }, "strip", z.ZodTypeAny, {
168
+ type: "service";
169
+ }, {
170
+ type: "service";
171
+ }>, z.ZodObject<{
172
+ type: z.ZodLiteral<"column">;
173
+ column: z.ZodString;
174
+ }, "strip", z.ZodTypeAny, {
175
+ type: "column";
176
+ column: string;
177
+ }, {
178
+ type: "column";
179
+ column: string;
180
+ }>]>, "many">>;
181
+ transfers: z.ZodArray<z.ZodObject<{
182
+ direction: z.ZodUnion<[z.ZodLiteral<"in">, z.ZodLiteral<"out">]>;
183
+ amount: z.ZodString;
184
+ asset: z.ZodUnion<[z.ZodObject<{
185
+ type: z.ZodLiteral<"custom">;
186
+ assetType: z.ZodUnion<[z.ZodLiteral<"CryptoCurrency">, z.ZodLiteral<"FiatCurrency">, z.ZodLiteral<"Nft">]>;
187
+ assetId: z.ZodString;
188
+ }, "strip", z.ZodTypeAny, {
189
+ type: "custom";
190
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
191
+ assetId: string;
192
+ }, {
193
+ type: "custom";
194
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
195
+ assetId: string;
196
+ }>, z.ZodObject<{
197
+ type: z.ZodLiteral<"column">;
198
+ column: z.ZodString;
199
+ }, "strip", z.ZodTypeAny, {
200
+ type: "column";
201
+ column: string;
202
+ }, {
203
+ type: "column";
204
+ column: string;
205
+ }>, z.ZodObject<{
206
+ type: z.ZodLiteral<"nft">;
207
+ id: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
208
+ type: z.ZodLiteral<"service">;
209
+ }, "strip", z.ZodTypeAny, {
210
+ type: "service";
211
+ }, {
212
+ type: "service";
213
+ }>, z.ZodObject<{
214
+ type: z.ZodLiteral<"column">;
215
+ column: z.ZodString;
216
+ }, "strip", z.ZodTypeAny, {
217
+ type: "column";
218
+ column: string;
219
+ }, {
220
+ type: "column";
221
+ column: string;
222
+ }>]>, "many">;
223
+ }, "strip", z.ZodTypeAny, {
224
+ type: "nft";
225
+ id: (string | {
226
+ type: "column";
227
+ column: string;
228
+ } | {
229
+ type: "service";
230
+ })[];
231
+ }, {
232
+ type: "nft";
233
+ id: (string | {
234
+ type: "column";
235
+ column: string;
236
+ } | {
237
+ type: "service";
238
+ })[];
239
+ }>]>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ direction: "in" | "out";
242
+ amount: string;
243
+ asset: {
244
+ type: "column";
245
+ column: string;
246
+ } | {
247
+ type: "nft";
248
+ id: (string | {
249
+ type: "column";
250
+ column: string;
251
+ } | {
252
+ type: "service";
253
+ })[];
254
+ } | {
255
+ type: "custom";
256
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
257
+ assetId: string;
258
+ };
259
+ }, {
260
+ direction: "in" | "out";
261
+ amount: string;
262
+ asset: {
263
+ type: "column";
264
+ column: string;
265
+ } | {
266
+ type: "nft";
267
+ id: (string | {
268
+ type: "column";
269
+ column: string;
270
+ } | {
271
+ type: "service";
272
+ })[];
273
+ } | {
274
+ type: "custom";
275
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
276
+ assetId: string;
277
+ };
278
+ }>, "many">;
279
+ crossId: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
280
+ type: z.ZodLiteral<"service">;
281
+ }, "strip", z.ZodTypeAny, {
282
+ type: "service";
283
+ }, {
284
+ type: "service";
285
+ }>, z.ZodObject<{
286
+ type: z.ZodLiteral<"column">;
287
+ column: z.ZodString;
288
+ }, "strip", z.ZodTypeAny, {
289
+ type: "column";
290
+ column: string;
291
+ }, {
292
+ type: "column";
293
+ column: string;
294
+ }>]>, "many">>;
295
+ crossType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"start">, z.ZodLiteral<"middle">, z.ZodLiteral<"end">]>>;
296
+ loanId: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
297
+ type: z.ZodLiteral<"service">;
298
+ }, "strip", z.ZodTypeAny, {
299
+ type: "service";
300
+ }, {
301
+ type: "service";
302
+ }>, z.ZodObject<{
303
+ type: z.ZodLiteral<"column">;
304
+ column: z.ZodString;
305
+ }, "strip", z.ZodTypeAny, {
306
+ type: "column";
307
+ column: string;
308
+ }, {
309
+ type: "column";
310
+ column: string;
311
+ }>]>, "many">>;
312
+ target: z.ZodOptional<z.ZodObject<{
313
+ type: z.ZodLiteral<"nft">;
314
+ id: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
315
+ type: z.ZodLiteral<"service">;
316
+ }, "strip", z.ZodTypeAny, {
317
+ type: "service";
318
+ }, {
319
+ type: "service";
320
+ }>, z.ZodObject<{
321
+ type: z.ZodLiteral<"column">;
322
+ column: z.ZodString;
323
+ }, "strip", z.ZodTypeAny, {
324
+ type: "column";
325
+ column: string;
326
+ }, {
327
+ type: "column";
328
+ column: string;
329
+ }>]>, "many">;
330
+ }, "strip", z.ZodTypeAny, {
331
+ type: "nft";
332
+ id: (string | {
333
+ type: "column";
334
+ column: string;
335
+ } | {
336
+ type: "service";
337
+ })[];
338
+ }, {
339
+ type: "nft";
340
+ id: (string | {
341
+ type: "column";
342
+ column: string;
343
+ } | {
344
+ type: "service";
345
+ })[];
346
+ }>>;
347
+ }, "strip", z.ZodTypeAny, {
348
+ conditions: {
349
+ column: string;
350
+ pattern: string | number | {
351
+ type: "defined";
352
+ } | {
353
+ type: "undefined";
354
+ } | {
355
+ values: (string | number)[];
356
+ type: "in";
357
+ } | {
358
+ values: (string | number)[];
359
+ type: "not-in";
360
+ } | (string & {
361
+ type: "defined";
362
+ }) | (string & {
363
+ type: "undefined";
364
+ }) | (string & {
365
+ values: (string | number)[];
366
+ type: "in";
367
+ }) | (string & {
368
+ values: (string | number)[];
369
+ type: "not-in";
370
+ }) | (number & {
371
+ type: "defined";
372
+ }) | (number & {
373
+ type: "undefined";
374
+ }) | (number & {
375
+ values: (string | number)[];
376
+ type: "in";
377
+ }) | (number & {
378
+ values: (string | number)[];
379
+ type: "not-in";
380
+ }) | ({
381
+ type: "defined";
382
+ } & string) | ({
383
+ type: "defined";
384
+ } & number) | ({
385
+ type: "undefined";
386
+ } & string) | ({
387
+ type: "undefined";
388
+ } & number) | ({
389
+ values: (string | number)[];
390
+ type: "in";
391
+ } & string) | ({
392
+ values: (string | number)[];
393
+ type: "in";
394
+ } & number) | ({
395
+ values: (string | number)[];
396
+ type: "not-in";
397
+ } & string) | ({
398
+ values: (string | number)[];
399
+ type: "not-in";
400
+ } & number);
401
+ }[];
402
+ action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "fee" | "transaction-fee" | "approve" | "fail-tx" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "atomic-arbitrage" | "free-mint-nft" | "income" | "repayment" | "repayment-with-debt" | "replace" | "swap-nft" | "unwrap" | "wrap" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "valuedown" | "valueup" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
403
+ source: (string | {
404
+ type: "column";
405
+ column: string;
406
+ } | {
407
+ type: "service";
408
+ })[];
409
+ timestamp: string;
410
+ transfers: {
411
+ direction: "in" | "out";
412
+ amount: string;
413
+ asset: {
414
+ type: "column";
415
+ column: string;
416
+ } | {
417
+ type: "nft";
418
+ id: (string | {
419
+ type: "column";
420
+ column: string;
421
+ } | {
422
+ type: "service";
423
+ })[];
424
+ } | {
425
+ type: "custom";
426
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
427
+ assetId: string;
428
+ };
429
+ }[];
430
+ comment?: (string | {
431
+ type: "column";
432
+ column: string;
433
+ } | {
434
+ type: "service";
435
+ })[] | undefined;
436
+ crossId?: (string | {
437
+ type: "column";
438
+ column: string;
439
+ } | {
440
+ type: "service";
441
+ })[] | undefined;
442
+ crossType?: "start" | "middle" | "end" | undefined;
443
+ loanId?: (string | {
444
+ type: "column";
445
+ column: string;
446
+ } | {
447
+ type: "service";
448
+ })[] | undefined;
449
+ target?: {
450
+ type: "nft";
451
+ id: (string | {
452
+ type: "column";
453
+ column: string;
454
+ } | {
455
+ type: "service";
456
+ })[];
457
+ } | undefined;
458
+ }, {
459
+ conditions: {
460
+ column: string;
461
+ pattern: string | number | {
462
+ type: "defined";
463
+ } | {
464
+ type: "undefined";
465
+ } | {
466
+ values: (string | number)[];
467
+ type: "in";
468
+ } | {
469
+ values: (string | number)[];
470
+ type: "not-in";
471
+ } | (string & {
472
+ type: "defined";
473
+ }) | (string & {
474
+ type: "undefined";
475
+ }) | (string & {
476
+ values: (string | number)[];
477
+ type: "in";
478
+ }) | (string & {
479
+ values: (string | number)[];
480
+ type: "not-in";
481
+ }) | (number & {
482
+ type: "defined";
483
+ }) | (number & {
484
+ type: "undefined";
485
+ }) | (number & {
486
+ values: (string | number)[];
487
+ type: "in";
488
+ }) | (number & {
489
+ values: (string | number)[];
490
+ type: "not-in";
491
+ }) | ({
492
+ type: "defined";
493
+ } & string) | ({
494
+ type: "defined";
495
+ } & number) | ({
496
+ type: "undefined";
497
+ } & string) | ({
498
+ type: "undefined";
499
+ } & number) | ({
500
+ values: (string | number)[];
501
+ type: "in";
502
+ } & string) | ({
503
+ values: (string | number)[];
504
+ type: "in";
505
+ } & number) | ({
506
+ values: (string | number)[];
507
+ type: "not-in";
508
+ } & string) | ({
509
+ values: (string | number)[];
510
+ type: "not-in";
511
+ } & number);
512
+ }[];
513
+ action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "fee" | "transaction-fee" | "approve" | "fail-tx" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "atomic-arbitrage" | "free-mint-nft" | "income" | "repayment" | "repayment-with-debt" | "replace" | "swap-nft" | "unwrap" | "wrap" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "valuedown" | "valueup" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
514
+ source: (string | {
515
+ type: "column";
516
+ column: string;
517
+ } | {
518
+ type: "service";
519
+ })[];
520
+ timestamp: string;
521
+ transfers: {
522
+ direction: "in" | "out";
523
+ amount: string;
524
+ asset: {
525
+ type: "column";
526
+ column: string;
527
+ } | {
528
+ type: "nft";
529
+ id: (string | {
530
+ type: "column";
531
+ column: string;
532
+ } | {
533
+ type: "service";
534
+ })[];
535
+ } | {
536
+ type: "custom";
537
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
538
+ assetId: string;
539
+ };
540
+ }[];
541
+ comment?: (string | {
542
+ type: "column";
543
+ column: string;
544
+ } | {
545
+ type: "service";
546
+ })[] | undefined;
547
+ crossId?: (string | {
548
+ type: "column";
549
+ column: string;
550
+ } | {
551
+ type: "service";
552
+ })[] | undefined;
553
+ crossType?: "start" | "middle" | "end" | undefined;
554
+ loanId?: (string | {
555
+ type: "column";
556
+ column: string;
557
+ } | {
558
+ type: "service";
559
+ })[] | undefined;
560
+ target?: {
561
+ type: "nft";
562
+ id: (string | {
563
+ type: "column";
564
+ column: string;
565
+ } | {
566
+ type: "service";
567
+ })[];
568
+ } | undefined;
569
+ }>, "many">;
570
+ symbolAssetMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
571
+ }, "strip", z.ZodTypeAny, {
572
+ service: string;
573
+ id: string;
574
+ formatter: Record<string, ("string" | "blank" | "big-decimal" | "big-decimal-positive" | "big-decimal-negative" | "iso8601" | "datetime-jp")[]>;
575
+ parsers: {
576
+ conditions: {
577
+ column: string;
578
+ pattern: string | number | {
579
+ type: "defined";
580
+ } | {
581
+ type: "undefined";
582
+ } | {
583
+ values: (string | number)[];
584
+ type: "in";
585
+ } | {
586
+ values: (string | number)[];
587
+ type: "not-in";
588
+ } | (string & {
589
+ type: "defined";
590
+ }) | (string & {
591
+ type: "undefined";
592
+ }) | (string & {
593
+ values: (string | number)[];
594
+ type: "in";
595
+ }) | (string & {
596
+ values: (string | number)[];
597
+ type: "not-in";
598
+ }) | (number & {
599
+ type: "defined";
600
+ }) | (number & {
601
+ type: "undefined";
602
+ }) | (number & {
603
+ values: (string | number)[];
604
+ type: "in";
605
+ }) | (number & {
606
+ values: (string | number)[];
607
+ type: "not-in";
608
+ }) | ({
609
+ type: "defined";
610
+ } & string) | ({
611
+ type: "defined";
612
+ } & number) | ({
613
+ type: "undefined";
614
+ } & string) | ({
615
+ type: "undefined";
616
+ } & number) | ({
617
+ values: (string | number)[];
618
+ type: "in";
619
+ } & string) | ({
620
+ values: (string | number)[];
621
+ type: "in";
622
+ } & number) | ({
623
+ values: (string | number)[];
624
+ type: "not-in";
625
+ } & string) | ({
626
+ values: (string | number)[];
627
+ type: "not-in";
628
+ } & number);
629
+ }[];
630
+ action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "fee" | "transaction-fee" | "approve" | "fail-tx" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "atomic-arbitrage" | "free-mint-nft" | "income" | "repayment" | "repayment-with-debt" | "replace" | "swap-nft" | "unwrap" | "wrap" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "valuedown" | "valueup" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
631
+ source: (string | {
632
+ type: "column";
633
+ column: string;
634
+ } | {
635
+ type: "service";
636
+ })[];
637
+ timestamp: string;
638
+ transfers: {
639
+ direction: "in" | "out";
640
+ amount: string;
641
+ asset: {
642
+ type: "column";
643
+ column: string;
644
+ } | {
645
+ type: "nft";
646
+ id: (string | {
647
+ type: "column";
648
+ column: string;
649
+ } | {
650
+ type: "service";
651
+ })[];
652
+ } | {
653
+ type: "custom";
654
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
655
+ assetId: string;
656
+ };
657
+ }[];
658
+ comment?: (string | {
659
+ type: "column";
660
+ column: string;
661
+ } | {
662
+ type: "service";
663
+ })[] | undefined;
664
+ crossId?: (string | {
665
+ type: "column";
666
+ column: string;
667
+ } | {
668
+ type: "service";
669
+ })[] | undefined;
670
+ crossType?: "start" | "middle" | "end" | undefined;
671
+ loanId?: (string | {
672
+ type: "column";
673
+ column: string;
674
+ } | {
675
+ type: "service";
676
+ })[] | undefined;
677
+ target?: {
678
+ type: "nft";
679
+ id: (string | {
680
+ type: "column";
681
+ column: string;
682
+ } | {
683
+ type: "service";
684
+ })[];
685
+ } | undefined;
686
+ }[];
687
+ symbolAssetMap?: Record<string, string> | undefined;
688
+ }, {
689
+ service: string;
690
+ id: string;
691
+ formatter: Record<string, ("string" | "blank" | "big-decimal" | "big-decimal-positive" | "big-decimal-negative" | "iso8601" | "datetime-jp")[]>;
692
+ parsers: {
693
+ conditions: {
694
+ column: string;
695
+ pattern: string | number | {
696
+ type: "defined";
697
+ } | {
698
+ type: "undefined";
699
+ } | {
700
+ values: (string | number)[];
701
+ type: "in";
702
+ } | {
703
+ values: (string | number)[];
704
+ type: "not-in";
705
+ } | (string & {
706
+ type: "defined";
707
+ }) | (string & {
708
+ type: "undefined";
709
+ }) | (string & {
710
+ values: (string | number)[];
711
+ type: "in";
712
+ }) | (string & {
713
+ values: (string | number)[];
714
+ type: "not-in";
715
+ }) | (number & {
716
+ type: "defined";
717
+ }) | (number & {
718
+ type: "undefined";
719
+ }) | (number & {
720
+ values: (string | number)[];
721
+ type: "in";
722
+ }) | (number & {
723
+ values: (string | number)[];
724
+ type: "not-in";
725
+ }) | ({
726
+ type: "defined";
727
+ } & string) | ({
728
+ type: "defined";
729
+ } & number) | ({
730
+ type: "undefined";
731
+ } & string) | ({
732
+ type: "undefined";
733
+ } & number) | ({
734
+ values: (string | number)[];
735
+ type: "in";
736
+ } & string) | ({
737
+ values: (string | number)[];
738
+ type: "in";
739
+ } & number) | ({
740
+ values: (string | number)[];
741
+ type: "not-in";
742
+ } & string) | ({
743
+ values: (string | number)[];
744
+ type: "not-in";
745
+ } & number);
746
+ }[];
747
+ action: "borrow" | "bridge-from" | "bridge-to" | "cross-replace" | "cross-trade" | "add-liquidity" | "deposit" | "deposit-with-bond" | "stake" | "fee" | "transaction-fee" | "approve" | "fail-tx" | "receive-from-cex" | "revoke" | "send-to-cex" | "spam" | "atomic-arbitrage" | "free-mint-nft" | "income" | "repayment" | "repayment-with-debt" | "replace" | "swap-nft" | "unwrap" | "wrap" | "buy-crypto" | "buy-nft" | "mint-nft" | "sell-crypto" | "sell-nft" | "trade" | "transfer" | "valuedown" | "valueup" | "remove-liquidity" | "unstake" | "withdraw" | "withdraw-with-bond";
748
+ source: (string | {
749
+ type: "column";
750
+ column: string;
751
+ } | {
752
+ type: "service";
753
+ })[];
754
+ timestamp: string;
755
+ transfers: {
756
+ direction: "in" | "out";
757
+ amount: string;
758
+ asset: {
759
+ type: "column";
760
+ column: string;
761
+ } | {
762
+ type: "nft";
763
+ id: (string | {
764
+ type: "column";
765
+ column: string;
766
+ } | {
767
+ type: "service";
768
+ })[];
769
+ } | {
770
+ type: "custom";
771
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
772
+ assetId: string;
773
+ };
774
+ }[];
775
+ comment?: (string | {
776
+ type: "column";
777
+ column: string;
778
+ } | {
779
+ type: "service";
780
+ })[] | undefined;
781
+ crossId?: (string | {
782
+ type: "column";
783
+ column: string;
784
+ } | {
785
+ type: "service";
786
+ })[] | undefined;
787
+ crossType?: "start" | "middle" | "end" | undefined;
788
+ loanId?: (string | {
789
+ type: "column";
790
+ column: string;
791
+ } | {
792
+ type: "service";
793
+ })[] | undefined;
794
+ target?: {
795
+ type: "nft";
796
+ id: (string | {
797
+ type: "column";
798
+ column: string;
799
+ } | {
800
+ type: "service";
801
+ })[];
802
+ } | undefined;
803
+ }[];
804
+ symbolAssetMap?: Record<string, string> | undefined;
805
+ }>;
806
+ //# sourceMappingURL=schemas.d.ts.map