@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,1505 @@
1
+ import { z } from 'zod';
2
+ export declare const conditionComponentSchema: z.ZodObject<{
3
+ column: z.ZodString;
4
+ pattern: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
5
+ type: z.ZodLiteral<"defined">;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type: "defined";
8
+ }, {
9
+ type: "defined";
10
+ }>, z.ZodObject<{
11
+ type: z.ZodLiteral<"undefined">;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type: "undefined";
14
+ }, {
15
+ type: "undefined";
16
+ }>, z.ZodObject<{
17
+ type: z.ZodLiteral<"in">;
18
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
19
+ }, "strip", z.ZodTypeAny, {
20
+ values: (string | number)[];
21
+ type: "in";
22
+ }, {
23
+ values: (string | number)[];
24
+ type: "in";
25
+ }>, z.ZodObject<{
26
+ type: z.ZodLiteral<"not-in">;
27
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
28
+ }, "strip", z.ZodTypeAny, {
29
+ values: (string | number)[];
30
+ type: "not-in";
31
+ }, {
32
+ values: (string | number)[];
33
+ type: "not-in";
34
+ }>]>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ column: string;
37
+ pattern: string | number | {
38
+ type: "defined";
39
+ } | {
40
+ type: "undefined";
41
+ } | {
42
+ values: (string | number)[];
43
+ type: "in";
44
+ } | {
45
+ values: (string | number)[];
46
+ type: "not-in";
47
+ } | (string & {
48
+ type: "defined";
49
+ }) | (string & {
50
+ type: "undefined";
51
+ }) | (string & {
52
+ values: (string | number)[];
53
+ type: "in";
54
+ }) | (string & {
55
+ values: (string | number)[];
56
+ type: "not-in";
57
+ }) | (number & {
58
+ type: "defined";
59
+ }) | (number & {
60
+ type: "undefined";
61
+ }) | (number & {
62
+ values: (string | number)[];
63
+ type: "in";
64
+ }) | (number & {
65
+ values: (string | number)[];
66
+ type: "not-in";
67
+ }) | ({
68
+ type: "defined";
69
+ } & string) | ({
70
+ type: "defined";
71
+ } & number) | ({
72
+ type: "undefined";
73
+ } & string) | ({
74
+ type: "undefined";
75
+ } & number) | ({
76
+ values: (string | number)[];
77
+ type: "in";
78
+ } & string) | ({
79
+ values: (string | number)[];
80
+ type: "in";
81
+ } & number) | ({
82
+ values: (string | number)[];
83
+ type: "not-in";
84
+ } & string) | ({
85
+ values: (string | number)[];
86
+ type: "not-in";
87
+ } & number);
88
+ }, {
89
+ column: string;
90
+ pattern: string | number | {
91
+ type: "defined";
92
+ } | {
93
+ type: "undefined";
94
+ } | {
95
+ values: (string | number)[];
96
+ type: "in";
97
+ } | {
98
+ values: (string | number)[];
99
+ type: "not-in";
100
+ } | (string & {
101
+ type: "defined";
102
+ }) | (string & {
103
+ type: "undefined";
104
+ }) | (string & {
105
+ values: (string | number)[];
106
+ type: "in";
107
+ }) | (string & {
108
+ values: (string | number)[];
109
+ type: "not-in";
110
+ }) | (number & {
111
+ type: "defined";
112
+ }) | (number & {
113
+ type: "undefined";
114
+ }) | (number & {
115
+ values: (string | number)[];
116
+ type: "in";
117
+ }) | (number & {
118
+ values: (string | number)[];
119
+ type: "not-in";
120
+ }) | ({
121
+ type: "defined";
122
+ } & string) | ({
123
+ type: "defined";
124
+ } & number) | ({
125
+ type: "undefined";
126
+ } & string) | ({
127
+ type: "undefined";
128
+ } & number) | ({
129
+ values: (string | number)[];
130
+ type: "in";
131
+ } & string) | ({
132
+ values: (string | number)[];
133
+ type: "in";
134
+ } & number) | ({
135
+ values: (string | number)[];
136
+ type: "not-in";
137
+ } & string) | ({
138
+ values: (string | number)[];
139
+ type: "not-in";
140
+ } & number);
141
+ }>;
142
+ export declare const columnComponentSchema: z.ZodObject<{
143
+ type: z.ZodLiteral<"column">;
144
+ column: z.ZodString;
145
+ }, "strip", z.ZodTypeAny, {
146
+ type: "column";
147
+ column: string;
148
+ }, {
149
+ type: "column";
150
+ column: string;
151
+ }>;
152
+ export declare const actionComponentSchema: z.ZodObject<{
153
+ column: z.ZodString;
154
+ patterns: z.ZodRecord<z.ZodString, 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">]>>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ column: string;
157
+ patterns: Record<string, "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">;
158
+ }, {
159
+ column: string;
160
+ patterns: Record<string, "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">;
161
+ }>;
162
+ export declare const textComponentSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
163
+ type: z.ZodLiteral<"service">;
164
+ }, "strip", z.ZodTypeAny, {
165
+ type: "service";
166
+ }, {
167
+ type: "service";
168
+ }>, z.ZodObject<{
169
+ type: z.ZodLiteral<"column">;
170
+ column: z.ZodString;
171
+ }, "strip", z.ZodTypeAny, {
172
+ type: "column";
173
+ column: string;
174
+ }, {
175
+ type: "column";
176
+ column: string;
177
+ }>]>;
178
+ export declare const nftComponentSchema: z.ZodObject<{
179
+ type: z.ZodLiteral<"nft">;
180
+ id: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
181
+ type: z.ZodLiteral<"service">;
182
+ }, "strip", z.ZodTypeAny, {
183
+ type: "service";
184
+ }, {
185
+ type: "service";
186
+ }>, z.ZodObject<{
187
+ type: z.ZodLiteral<"column">;
188
+ column: z.ZodString;
189
+ }, "strip", z.ZodTypeAny, {
190
+ type: "column";
191
+ column: string;
192
+ }, {
193
+ type: "column";
194
+ column: string;
195
+ }>]>, "many">;
196
+ }, "strip", z.ZodTypeAny, {
197
+ type: "nft";
198
+ id: (string | {
199
+ type: "column";
200
+ column: string;
201
+ } | {
202
+ type: "service";
203
+ })[];
204
+ }, {
205
+ type: "nft";
206
+ id: (string | {
207
+ type: "column";
208
+ column: string;
209
+ } | {
210
+ type: "service";
211
+ })[];
212
+ }>;
213
+ export declare const assetComponentSchema: z.ZodUnion<[z.ZodObject<{
214
+ type: z.ZodLiteral<"custom">;
215
+ assetType: z.ZodUnion<[z.ZodLiteral<"CryptoCurrency">, z.ZodLiteral<"FiatCurrency">, z.ZodLiteral<"Nft">]>;
216
+ assetId: z.ZodString;
217
+ }, "strip", z.ZodTypeAny, {
218
+ type: "custom";
219
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
220
+ assetId: string;
221
+ }, {
222
+ type: "custom";
223
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
224
+ assetId: string;
225
+ }>, z.ZodObject<{
226
+ type: z.ZodLiteral<"column">;
227
+ column: z.ZodString;
228
+ }, "strip", z.ZodTypeAny, {
229
+ type: "column";
230
+ column: string;
231
+ }, {
232
+ type: "column";
233
+ column: string;
234
+ }>, z.ZodObject<{
235
+ type: z.ZodLiteral<"nft">;
236
+ id: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
237
+ type: z.ZodLiteral<"service">;
238
+ }, "strip", z.ZodTypeAny, {
239
+ type: "service";
240
+ }, {
241
+ type: "service";
242
+ }>, z.ZodObject<{
243
+ type: z.ZodLiteral<"column">;
244
+ column: z.ZodString;
245
+ }, "strip", z.ZodTypeAny, {
246
+ type: "column";
247
+ column: string;
248
+ }, {
249
+ type: "column";
250
+ column: string;
251
+ }>]>, "many">;
252
+ }, "strip", z.ZodTypeAny, {
253
+ type: "nft";
254
+ id: (string | {
255
+ type: "column";
256
+ column: string;
257
+ } | {
258
+ type: "service";
259
+ })[];
260
+ }, {
261
+ type: "nft";
262
+ id: (string | {
263
+ type: "column";
264
+ column: string;
265
+ } | {
266
+ type: "service";
267
+ })[];
268
+ }>]>;
269
+ export declare const transferComponentSchema: z.ZodObject<{
270
+ direction: z.ZodUnion<[z.ZodLiteral<"in">, z.ZodLiteral<"out">]>;
271
+ amount: z.ZodString;
272
+ asset: z.ZodUnion<[z.ZodObject<{
273
+ type: z.ZodLiteral<"custom">;
274
+ assetType: z.ZodUnion<[z.ZodLiteral<"CryptoCurrency">, z.ZodLiteral<"FiatCurrency">, z.ZodLiteral<"Nft">]>;
275
+ assetId: z.ZodString;
276
+ }, "strip", z.ZodTypeAny, {
277
+ type: "custom";
278
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
279
+ assetId: string;
280
+ }, {
281
+ type: "custom";
282
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
283
+ assetId: string;
284
+ }>, z.ZodObject<{
285
+ type: z.ZodLiteral<"column">;
286
+ column: z.ZodString;
287
+ }, "strip", z.ZodTypeAny, {
288
+ type: "column";
289
+ column: string;
290
+ }, {
291
+ type: "column";
292
+ column: string;
293
+ }>, z.ZodObject<{
294
+ type: z.ZodLiteral<"nft">;
295
+ id: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
296
+ type: z.ZodLiteral<"service">;
297
+ }, "strip", z.ZodTypeAny, {
298
+ type: "service";
299
+ }, {
300
+ type: "service";
301
+ }>, z.ZodObject<{
302
+ type: z.ZodLiteral<"column">;
303
+ column: z.ZodString;
304
+ }, "strip", z.ZodTypeAny, {
305
+ type: "column";
306
+ column: string;
307
+ }, {
308
+ type: "column";
309
+ column: string;
310
+ }>]>, "many">;
311
+ }, "strip", z.ZodTypeAny, {
312
+ type: "nft";
313
+ id: (string | {
314
+ type: "column";
315
+ column: string;
316
+ } | {
317
+ type: "service";
318
+ })[];
319
+ }, {
320
+ type: "nft";
321
+ id: (string | {
322
+ type: "column";
323
+ column: string;
324
+ } | {
325
+ type: "service";
326
+ })[];
327
+ }>]>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ direction: "in" | "out";
330
+ amount: string;
331
+ asset: {
332
+ type: "column";
333
+ column: string;
334
+ } | {
335
+ type: "nft";
336
+ id: (string | {
337
+ type: "column";
338
+ column: string;
339
+ } | {
340
+ type: "service";
341
+ })[];
342
+ } | {
343
+ type: "custom";
344
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
345
+ assetId: string;
346
+ };
347
+ }, {
348
+ direction: "in" | "out";
349
+ amount: string;
350
+ asset: {
351
+ type: "column";
352
+ column: string;
353
+ } | {
354
+ type: "nft";
355
+ id: (string | {
356
+ type: "column";
357
+ column: string;
358
+ } | {
359
+ type: "service";
360
+ })[];
361
+ } | {
362
+ type: "custom";
363
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
364
+ assetId: string;
365
+ };
366
+ }>;
367
+ export declare const parserSchema: z.ZodObject<{
368
+ conditions: z.ZodArray<z.ZodObject<{
369
+ column: z.ZodString;
370
+ pattern: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
371
+ type: z.ZodLiteral<"defined">;
372
+ }, "strip", z.ZodTypeAny, {
373
+ type: "defined";
374
+ }, {
375
+ type: "defined";
376
+ }>, z.ZodObject<{
377
+ type: z.ZodLiteral<"undefined">;
378
+ }, "strip", z.ZodTypeAny, {
379
+ type: "undefined";
380
+ }, {
381
+ type: "undefined";
382
+ }>, z.ZodObject<{
383
+ type: z.ZodLiteral<"in">;
384
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
385
+ }, "strip", z.ZodTypeAny, {
386
+ values: (string | number)[];
387
+ type: "in";
388
+ }, {
389
+ values: (string | number)[];
390
+ type: "in";
391
+ }>, z.ZodObject<{
392
+ type: z.ZodLiteral<"not-in">;
393
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
394
+ }, "strip", z.ZodTypeAny, {
395
+ values: (string | number)[];
396
+ type: "not-in";
397
+ }, {
398
+ values: (string | number)[];
399
+ type: "not-in";
400
+ }>]>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ column: string;
403
+ pattern: string | number | {
404
+ type: "defined";
405
+ } | {
406
+ type: "undefined";
407
+ } | {
408
+ values: (string | number)[];
409
+ type: "in";
410
+ } | {
411
+ values: (string | number)[];
412
+ type: "not-in";
413
+ } | (string & {
414
+ type: "defined";
415
+ }) | (string & {
416
+ type: "undefined";
417
+ }) | (string & {
418
+ values: (string | number)[];
419
+ type: "in";
420
+ }) | (string & {
421
+ values: (string | number)[];
422
+ type: "not-in";
423
+ }) | (number & {
424
+ type: "defined";
425
+ }) | (number & {
426
+ type: "undefined";
427
+ }) | (number & {
428
+ values: (string | number)[];
429
+ type: "in";
430
+ }) | (number & {
431
+ values: (string | number)[];
432
+ type: "not-in";
433
+ }) | ({
434
+ type: "defined";
435
+ } & string) | ({
436
+ type: "defined";
437
+ } & number) | ({
438
+ type: "undefined";
439
+ } & string) | ({
440
+ type: "undefined";
441
+ } & number) | ({
442
+ values: (string | number)[];
443
+ type: "in";
444
+ } & string) | ({
445
+ values: (string | number)[];
446
+ type: "in";
447
+ } & number) | ({
448
+ values: (string | number)[];
449
+ type: "not-in";
450
+ } & string) | ({
451
+ values: (string | number)[];
452
+ type: "not-in";
453
+ } & number);
454
+ }, {
455
+ column: string;
456
+ pattern: string | number | {
457
+ type: "defined";
458
+ } | {
459
+ type: "undefined";
460
+ } | {
461
+ values: (string | number)[];
462
+ type: "in";
463
+ } | {
464
+ values: (string | number)[];
465
+ type: "not-in";
466
+ } | (string & {
467
+ type: "defined";
468
+ }) | (string & {
469
+ type: "undefined";
470
+ }) | (string & {
471
+ values: (string | number)[];
472
+ type: "in";
473
+ }) | (string & {
474
+ values: (string | number)[];
475
+ type: "not-in";
476
+ }) | (number & {
477
+ type: "defined";
478
+ }) | (number & {
479
+ type: "undefined";
480
+ }) | (number & {
481
+ values: (string | number)[];
482
+ type: "in";
483
+ }) | (number & {
484
+ values: (string | number)[];
485
+ type: "not-in";
486
+ }) | ({
487
+ type: "defined";
488
+ } & string) | ({
489
+ type: "defined";
490
+ } & number) | ({
491
+ type: "undefined";
492
+ } & string) | ({
493
+ type: "undefined";
494
+ } & number) | ({
495
+ values: (string | number)[];
496
+ type: "in";
497
+ } & string) | ({
498
+ values: (string | number)[];
499
+ type: "in";
500
+ } & number) | ({
501
+ values: (string | number)[];
502
+ type: "not-in";
503
+ } & string) | ({
504
+ values: (string | number)[];
505
+ type: "not-in";
506
+ } & number);
507
+ }>, "many">;
508
+ 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">]>;
509
+ /** 指定した値群を結合して作成したテキストを代入 */
510
+ source: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
511
+ type: z.ZodLiteral<"service">;
512
+ }, "strip", z.ZodTypeAny, {
513
+ type: "service";
514
+ }, {
515
+ type: "service";
516
+ }>, z.ZodObject<{
517
+ type: z.ZodLiteral<"column">;
518
+ column: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ type: "column";
521
+ column: string;
522
+ }, {
523
+ type: "column";
524
+ column: string;
525
+ }>]>, "many">;
526
+ /** 指定した column の値を timestamp に代入 */
527
+ timestamp: z.ZodString;
528
+ /** 指定した値群を結合して作成したテキストを代入 */
529
+ comment: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
530
+ type: z.ZodLiteral<"service">;
531
+ }, "strip", z.ZodTypeAny, {
532
+ type: "service";
533
+ }, {
534
+ type: "service";
535
+ }>, z.ZodObject<{
536
+ type: z.ZodLiteral<"column">;
537
+ column: z.ZodString;
538
+ }, "strip", z.ZodTypeAny, {
539
+ type: "column";
540
+ column: string;
541
+ }, {
542
+ type: "column";
543
+ column: string;
544
+ }>]>, "many">>;
545
+ transfers: z.ZodArray<z.ZodObject<{
546
+ direction: z.ZodUnion<[z.ZodLiteral<"in">, z.ZodLiteral<"out">]>;
547
+ amount: z.ZodString;
548
+ asset: z.ZodUnion<[z.ZodObject<{
549
+ type: z.ZodLiteral<"custom">;
550
+ assetType: z.ZodUnion<[z.ZodLiteral<"CryptoCurrency">, z.ZodLiteral<"FiatCurrency">, z.ZodLiteral<"Nft">]>;
551
+ assetId: z.ZodString;
552
+ }, "strip", z.ZodTypeAny, {
553
+ type: "custom";
554
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
555
+ assetId: string;
556
+ }, {
557
+ type: "custom";
558
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
559
+ assetId: string;
560
+ }>, z.ZodObject<{
561
+ type: z.ZodLiteral<"column">;
562
+ column: z.ZodString;
563
+ }, "strip", z.ZodTypeAny, {
564
+ type: "column";
565
+ column: string;
566
+ }, {
567
+ type: "column";
568
+ column: string;
569
+ }>, z.ZodObject<{
570
+ type: z.ZodLiteral<"nft">;
571
+ id: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
572
+ type: z.ZodLiteral<"service">;
573
+ }, "strip", z.ZodTypeAny, {
574
+ type: "service";
575
+ }, {
576
+ type: "service";
577
+ }>, z.ZodObject<{
578
+ type: z.ZodLiteral<"column">;
579
+ column: z.ZodString;
580
+ }, "strip", z.ZodTypeAny, {
581
+ type: "column";
582
+ column: string;
583
+ }, {
584
+ type: "column";
585
+ column: string;
586
+ }>]>, "many">;
587
+ }, "strip", z.ZodTypeAny, {
588
+ type: "nft";
589
+ id: (string | {
590
+ type: "column";
591
+ column: string;
592
+ } | {
593
+ type: "service";
594
+ })[];
595
+ }, {
596
+ type: "nft";
597
+ id: (string | {
598
+ type: "column";
599
+ column: string;
600
+ } | {
601
+ type: "service";
602
+ })[];
603
+ }>]>;
604
+ }, "strip", z.ZodTypeAny, {
605
+ direction: "in" | "out";
606
+ amount: string;
607
+ asset: {
608
+ type: "column";
609
+ column: string;
610
+ } | {
611
+ type: "nft";
612
+ id: (string | {
613
+ type: "column";
614
+ column: string;
615
+ } | {
616
+ type: "service";
617
+ })[];
618
+ } | {
619
+ type: "custom";
620
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
621
+ assetId: string;
622
+ };
623
+ }, {
624
+ direction: "in" | "out";
625
+ amount: string;
626
+ asset: {
627
+ type: "column";
628
+ column: string;
629
+ } | {
630
+ type: "nft";
631
+ id: (string | {
632
+ type: "column";
633
+ column: string;
634
+ } | {
635
+ type: "service";
636
+ })[];
637
+ } | {
638
+ type: "custom";
639
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
640
+ assetId: string;
641
+ };
642
+ }>, "many">;
643
+ /** 指定した値群を結合して作成したテキストを代入 */
644
+ crossId: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
645
+ type: z.ZodLiteral<"service">;
646
+ }, "strip", z.ZodTypeAny, {
647
+ type: "service";
648
+ }, {
649
+ type: "service";
650
+ }>, z.ZodObject<{
651
+ type: z.ZodLiteral<"column">;
652
+ column: z.ZodString;
653
+ }, "strip", z.ZodTypeAny, {
654
+ type: "column";
655
+ column: string;
656
+ }, {
657
+ type: "column";
658
+ column: string;
659
+ }>]>, "many">>;
660
+ crossType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"start">, z.ZodLiteral<"middle">, z.ZodLiteral<"end">]>>;
661
+ /** 指定した値群を結合して作成したテキストを代入 */
662
+ loanId: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
663
+ type: z.ZodLiteral<"service">;
664
+ }, "strip", z.ZodTypeAny, {
665
+ type: "service";
666
+ }, {
667
+ type: "service";
668
+ }>, z.ZodObject<{
669
+ type: z.ZodLiteral<"column">;
670
+ column: z.ZodString;
671
+ }, "strip", z.ZodTypeAny, {
672
+ type: "column";
673
+ column: string;
674
+ }, {
675
+ type: "column";
676
+ column: string;
677
+ }>]>, "many">>;
678
+ target: z.ZodOptional<z.ZodObject<{
679
+ type: z.ZodLiteral<"nft">;
680
+ id: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
681
+ type: z.ZodLiteral<"service">;
682
+ }, "strip", z.ZodTypeAny, {
683
+ type: "service";
684
+ }, {
685
+ type: "service";
686
+ }>, z.ZodObject<{
687
+ type: z.ZodLiteral<"column">;
688
+ column: z.ZodString;
689
+ }, "strip", z.ZodTypeAny, {
690
+ type: "column";
691
+ column: string;
692
+ }, {
693
+ type: "column";
694
+ column: string;
695
+ }>]>, "many">;
696
+ }, "strip", z.ZodTypeAny, {
697
+ type: "nft";
698
+ id: (string | {
699
+ type: "column";
700
+ column: string;
701
+ } | {
702
+ type: "service";
703
+ })[];
704
+ }, {
705
+ type: "nft";
706
+ id: (string | {
707
+ type: "column";
708
+ column: string;
709
+ } | {
710
+ type: "service";
711
+ })[];
712
+ }>>;
713
+ }, "strip", z.ZodTypeAny, {
714
+ conditions: {
715
+ column: string;
716
+ pattern: string | number | {
717
+ type: "defined";
718
+ } | {
719
+ type: "undefined";
720
+ } | {
721
+ values: (string | number)[];
722
+ type: "in";
723
+ } | {
724
+ values: (string | number)[];
725
+ type: "not-in";
726
+ } | (string & {
727
+ type: "defined";
728
+ }) | (string & {
729
+ type: "undefined";
730
+ }) | (string & {
731
+ values: (string | number)[];
732
+ type: "in";
733
+ }) | (string & {
734
+ values: (string | number)[];
735
+ type: "not-in";
736
+ }) | (number & {
737
+ type: "defined";
738
+ }) | (number & {
739
+ type: "undefined";
740
+ }) | (number & {
741
+ values: (string | number)[];
742
+ type: "in";
743
+ }) | (number & {
744
+ values: (string | number)[];
745
+ type: "not-in";
746
+ }) | ({
747
+ type: "defined";
748
+ } & string) | ({
749
+ type: "defined";
750
+ } & number) | ({
751
+ type: "undefined";
752
+ } & string) | ({
753
+ type: "undefined";
754
+ } & number) | ({
755
+ values: (string | number)[];
756
+ type: "in";
757
+ } & string) | ({
758
+ values: (string | number)[];
759
+ type: "in";
760
+ } & number) | ({
761
+ values: (string | number)[];
762
+ type: "not-in";
763
+ } & string) | ({
764
+ values: (string | number)[];
765
+ type: "not-in";
766
+ } & number);
767
+ }[];
768
+ 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";
769
+ source: (string | {
770
+ type: "column";
771
+ column: string;
772
+ } | {
773
+ type: "service";
774
+ })[];
775
+ timestamp: string;
776
+ transfers: {
777
+ direction: "in" | "out";
778
+ amount: string;
779
+ asset: {
780
+ type: "column";
781
+ column: string;
782
+ } | {
783
+ type: "nft";
784
+ id: (string | {
785
+ type: "column";
786
+ column: string;
787
+ } | {
788
+ type: "service";
789
+ })[];
790
+ } | {
791
+ type: "custom";
792
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
793
+ assetId: string;
794
+ };
795
+ }[];
796
+ comment?: (string | {
797
+ type: "column";
798
+ column: string;
799
+ } | {
800
+ type: "service";
801
+ })[] | undefined;
802
+ crossId?: (string | {
803
+ type: "column";
804
+ column: string;
805
+ } | {
806
+ type: "service";
807
+ })[] | undefined;
808
+ crossType?: "start" | "middle" | "end" | undefined;
809
+ loanId?: (string | {
810
+ type: "column";
811
+ column: string;
812
+ } | {
813
+ type: "service";
814
+ })[] | undefined;
815
+ target?: {
816
+ type: "nft";
817
+ id: (string | {
818
+ type: "column";
819
+ column: string;
820
+ } | {
821
+ type: "service";
822
+ })[];
823
+ } | undefined;
824
+ }, {
825
+ conditions: {
826
+ column: string;
827
+ pattern: string | number | {
828
+ type: "defined";
829
+ } | {
830
+ type: "undefined";
831
+ } | {
832
+ values: (string | number)[];
833
+ type: "in";
834
+ } | {
835
+ values: (string | number)[];
836
+ type: "not-in";
837
+ } | (string & {
838
+ type: "defined";
839
+ }) | (string & {
840
+ type: "undefined";
841
+ }) | (string & {
842
+ values: (string | number)[];
843
+ type: "in";
844
+ }) | (string & {
845
+ values: (string | number)[];
846
+ type: "not-in";
847
+ }) | (number & {
848
+ type: "defined";
849
+ }) | (number & {
850
+ type: "undefined";
851
+ }) | (number & {
852
+ values: (string | number)[];
853
+ type: "in";
854
+ }) | (number & {
855
+ values: (string | number)[];
856
+ type: "not-in";
857
+ }) | ({
858
+ type: "defined";
859
+ } & string) | ({
860
+ type: "defined";
861
+ } & number) | ({
862
+ type: "undefined";
863
+ } & string) | ({
864
+ type: "undefined";
865
+ } & number) | ({
866
+ values: (string | number)[];
867
+ type: "in";
868
+ } & string) | ({
869
+ values: (string | number)[];
870
+ type: "in";
871
+ } & number) | ({
872
+ values: (string | number)[];
873
+ type: "not-in";
874
+ } & string) | ({
875
+ values: (string | number)[];
876
+ type: "not-in";
877
+ } & number);
878
+ }[];
879
+ 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";
880
+ source: (string | {
881
+ type: "column";
882
+ column: string;
883
+ } | {
884
+ type: "service";
885
+ })[];
886
+ timestamp: string;
887
+ transfers: {
888
+ direction: "in" | "out";
889
+ amount: string;
890
+ asset: {
891
+ type: "column";
892
+ column: string;
893
+ } | {
894
+ type: "nft";
895
+ id: (string | {
896
+ type: "column";
897
+ column: string;
898
+ } | {
899
+ type: "service";
900
+ })[];
901
+ } | {
902
+ type: "custom";
903
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
904
+ assetId: string;
905
+ };
906
+ }[];
907
+ comment?: (string | {
908
+ type: "column";
909
+ column: string;
910
+ } | {
911
+ type: "service";
912
+ })[] | undefined;
913
+ crossId?: (string | {
914
+ type: "column";
915
+ column: string;
916
+ } | {
917
+ type: "service";
918
+ })[] | undefined;
919
+ crossType?: "start" | "middle" | "end" | undefined;
920
+ loanId?: (string | {
921
+ type: "column";
922
+ column: string;
923
+ } | {
924
+ type: "service";
925
+ })[] | undefined;
926
+ target?: {
927
+ type: "nft";
928
+ id: (string | {
929
+ type: "column";
930
+ column: string;
931
+ } | {
932
+ type: "service";
933
+ })[];
934
+ } | undefined;
935
+ }>;
936
+ export declare const parsersSchema: z.ZodArray<z.ZodObject<{
937
+ conditions: z.ZodArray<z.ZodObject<{
938
+ column: z.ZodString;
939
+ pattern: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
940
+ type: z.ZodLiteral<"defined">;
941
+ }, "strip", z.ZodTypeAny, {
942
+ type: "defined";
943
+ }, {
944
+ type: "defined";
945
+ }>, z.ZodObject<{
946
+ type: z.ZodLiteral<"undefined">;
947
+ }, "strip", z.ZodTypeAny, {
948
+ type: "undefined";
949
+ }, {
950
+ type: "undefined";
951
+ }>, z.ZodObject<{
952
+ type: z.ZodLiteral<"in">;
953
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
954
+ }, "strip", z.ZodTypeAny, {
955
+ values: (string | number)[];
956
+ type: "in";
957
+ }, {
958
+ values: (string | number)[];
959
+ type: "in";
960
+ }>, z.ZodObject<{
961
+ type: z.ZodLiteral<"not-in">;
962
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
963
+ }, "strip", z.ZodTypeAny, {
964
+ values: (string | number)[];
965
+ type: "not-in";
966
+ }, {
967
+ values: (string | number)[];
968
+ type: "not-in";
969
+ }>]>;
970
+ }, "strip", z.ZodTypeAny, {
971
+ column: string;
972
+ pattern: string | number | {
973
+ type: "defined";
974
+ } | {
975
+ type: "undefined";
976
+ } | {
977
+ values: (string | number)[];
978
+ type: "in";
979
+ } | {
980
+ values: (string | number)[];
981
+ type: "not-in";
982
+ } | (string & {
983
+ type: "defined";
984
+ }) | (string & {
985
+ type: "undefined";
986
+ }) | (string & {
987
+ values: (string | number)[];
988
+ type: "in";
989
+ }) | (string & {
990
+ values: (string | number)[];
991
+ type: "not-in";
992
+ }) | (number & {
993
+ type: "defined";
994
+ }) | (number & {
995
+ type: "undefined";
996
+ }) | (number & {
997
+ values: (string | number)[];
998
+ type: "in";
999
+ }) | (number & {
1000
+ values: (string | number)[];
1001
+ type: "not-in";
1002
+ }) | ({
1003
+ type: "defined";
1004
+ } & string) | ({
1005
+ type: "defined";
1006
+ } & number) | ({
1007
+ type: "undefined";
1008
+ } & string) | ({
1009
+ type: "undefined";
1010
+ } & number) | ({
1011
+ values: (string | number)[];
1012
+ type: "in";
1013
+ } & string) | ({
1014
+ values: (string | number)[];
1015
+ type: "in";
1016
+ } & number) | ({
1017
+ values: (string | number)[];
1018
+ type: "not-in";
1019
+ } & string) | ({
1020
+ values: (string | number)[];
1021
+ type: "not-in";
1022
+ } & number);
1023
+ }, {
1024
+ column: string;
1025
+ pattern: string | number | {
1026
+ type: "defined";
1027
+ } | {
1028
+ type: "undefined";
1029
+ } | {
1030
+ values: (string | number)[];
1031
+ type: "in";
1032
+ } | {
1033
+ values: (string | number)[];
1034
+ type: "not-in";
1035
+ } | (string & {
1036
+ type: "defined";
1037
+ }) | (string & {
1038
+ type: "undefined";
1039
+ }) | (string & {
1040
+ values: (string | number)[];
1041
+ type: "in";
1042
+ }) | (string & {
1043
+ values: (string | number)[];
1044
+ type: "not-in";
1045
+ }) | (number & {
1046
+ type: "defined";
1047
+ }) | (number & {
1048
+ type: "undefined";
1049
+ }) | (number & {
1050
+ values: (string | number)[];
1051
+ type: "in";
1052
+ }) | (number & {
1053
+ values: (string | number)[];
1054
+ type: "not-in";
1055
+ }) | ({
1056
+ type: "defined";
1057
+ } & string) | ({
1058
+ type: "defined";
1059
+ } & number) | ({
1060
+ type: "undefined";
1061
+ } & string) | ({
1062
+ type: "undefined";
1063
+ } & number) | ({
1064
+ values: (string | number)[];
1065
+ type: "in";
1066
+ } & string) | ({
1067
+ values: (string | number)[];
1068
+ type: "in";
1069
+ } & number) | ({
1070
+ values: (string | number)[];
1071
+ type: "not-in";
1072
+ } & string) | ({
1073
+ values: (string | number)[];
1074
+ type: "not-in";
1075
+ } & number);
1076
+ }>, "many">;
1077
+ 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">]>;
1078
+ /** 指定した値群を結合して作成したテキストを代入 */
1079
+ source: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1080
+ type: z.ZodLiteral<"service">;
1081
+ }, "strip", z.ZodTypeAny, {
1082
+ type: "service";
1083
+ }, {
1084
+ type: "service";
1085
+ }>, z.ZodObject<{
1086
+ type: z.ZodLiteral<"column">;
1087
+ column: z.ZodString;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ type: "column";
1090
+ column: string;
1091
+ }, {
1092
+ type: "column";
1093
+ column: string;
1094
+ }>]>, "many">;
1095
+ /** 指定した column の値を timestamp に代入 */
1096
+ timestamp: z.ZodString;
1097
+ /** 指定した値群を結合して作成したテキストを代入 */
1098
+ comment: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1099
+ type: z.ZodLiteral<"service">;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ type: "service";
1102
+ }, {
1103
+ type: "service";
1104
+ }>, z.ZodObject<{
1105
+ type: z.ZodLiteral<"column">;
1106
+ column: z.ZodString;
1107
+ }, "strip", z.ZodTypeAny, {
1108
+ type: "column";
1109
+ column: string;
1110
+ }, {
1111
+ type: "column";
1112
+ column: string;
1113
+ }>]>, "many">>;
1114
+ transfers: z.ZodArray<z.ZodObject<{
1115
+ direction: z.ZodUnion<[z.ZodLiteral<"in">, z.ZodLiteral<"out">]>;
1116
+ amount: z.ZodString;
1117
+ asset: z.ZodUnion<[z.ZodObject<{
1118
+ type: z.ZodLiteral<"custom">;
1119
+ assetType: z.ZodUnion<[z.ZodLiteral<"CryptoCurrency">, z.ZodLiteral<"FiatCurrency">, z.ZodLiteral<"Nft">]>;
1120
+ assetId: z.ZodString;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ type: "custom";
1123
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
1124
+ assetId: string;
1125
+ }, {
1126
+ type: "custom";
1127
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
1128
+ assetId: string;
1129
+ }>, z.ZodObject<{
1130
+ type: z.ZodLiteral<"column">;
1131
+ column: z.ZodString;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ type: "column";
1134
+ column: string;
1135
+ }, {
1136
+ type: "column";
1137
+ column: string;
1138
+ }>, z.ZodObject<{
1139
+ type: z.ZodLiteral<"nft">;
1140
+ id: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1141
+ type: z.ZodLiteral<"service">;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ type: "service";
1144
+ }, {
1145
+ type: "service";
1146
+ }>, z.ZodObject<{
1147
+ type: z.ZodLiteral<"column">;
1148
+ column: z.ZodString;
1149
+ }, "strip", z.ZodTypeAny, {
1150
+ type: "column";
1151
+ column: string;
1152
+ }, {
1153
+ type: "column";
1154
+ column: string;
1155
+ }>]>, "many">;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ type: "nft";
1158
+ id: (string | {
1159
+ type: "column";
1160
+ column: string;
1161
+ } | {
1162
+ type: "service";
1163
+ })[];
1164
+ }, {
1165
+ type: "nft";
1166
+ id: (string | {
1167
+ type: "column";
1168
+ column: string;
1169
+ } | {
1170
+ type: "service";
1171
+ })[];
1172
+ }>]>;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ direction: "in" | "out";
1175
+ amount: string;
1176
+ asset: {
1177
+ type: "column";
1178
+ column: string;
1179
+ } | {
1180
+ type: "nft";
1181
+ id: (string | {
1182
+ type: "column";
1183
+ column: string;
1184
+ } | {
1185
+ type: "service";
1186
+ })[];
1187
+ } | {
1188
+ type: "custom";
1189
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
1190
+ assetId: string;
1191
+ };
1192
+ }, {
1193
+ direction: "in" | "out";
1194
+ amount: string;
1195
+ asset: {
1196
+ type: "column";
1197
+ column: string;
1198
+ } | {
1199
+ type: "nft";
1200
+ id: (string | {
1201
+ type: "column";
1202
+ column: string;
1203
+ } | {
1204
+ type: "service";
1205
+ })[];
1206
+ } | {
1207
+ type: "custom";
1208
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
1209
+ assetId: string;
1210
+ };
1211
+ }>, "many">;
1212
+ /** 指定した値群を結合して作成したテキストを代入 */
1213
+ crossId: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1214
+ type: z.ZodLiteral<"service">;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ type: "service";
1217
+ }, {
1218
+ type: "service";
1219
+ }>, z.ZodObject<{
1220
+ type: z.ZodLiteral<"column">;
1221
+ column: z.ZodString;
1222
+ }, "strip", z.ZodTypeAny, {
1223
+ type: "column";
1224
+ column: string;
1225
+ }, {
1226
+ type: "column";
1227
+ column: string;
1228
+ }>]>, "many">>;
1229
+ crossType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"start">, z.ZodLiteral<"middle">, z.ZodLiteral<"end">]>>;
1230
+ /** 指定した値群を結合して作成したテキストを代入 */
1231
+ loanId: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1232
+ type: z.ZodLiteral<"service">;
1233
+ }, "strip", z.ZodTypeAny, {
1234
+ type: "service";
1235
+ }, {
1236
+ type: "service";
1237
+ }>, z.ZodObject<{
1238
+ type: z.ZodLiteral<"column">;
1239
+ column: z.ZodString;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ type: "column";
1242
+ column: string;
1243
+ }, {
1244
+ type: "column";
1245
+ column: string;
1246
+ }>]>, "many">>;
1247
+ target: z.ZodOptional<z.ZodObject<{
1248
+ type: z.ZodLiteral<"nft">;
1249
+ id: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1250
+ type: z.ZodLiteral<"service">;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ type: "service";
1253
+ }, {
1254
+ type: "service";
1255
+ }>, z.ZodObject<{
1256
+ type: z.ZodLiteral<"column">;
1257
+ column: z.ZodString;
1258
+ }, "strip", z.ZodTypeAny, {
1259
+ type: "column";
1260
+ column: string;
1261
+ }, {
1262
+ type: "column";
1263
+ column: string;
1264
+ }>]>, "many">;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ type: "nft";
1267
+ id: (string | {
1268
+ type: "column";
1269
+ column: string;
1270
+ } | {
1271
+ type: "service";
1272
+ })[];
1273
+ }, {
1274
+ type: "nft";
1275
+ id: (string | {
1276
+ type: "column";
1277
+ column: string;
1278
+ } | {
1279
+ type: "service";
1280
+ })[];
1281
+ }>>;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ conditions: {
1284
+ column: string;
1285
+ pattern: string | number | {
1286
+ type: "defined";
1287
+ } | {
1288
+ type: "undefined";
1289
+ } | {
1290
+ values: (string | number)[];
1291
+ type: "in";
1292
+ } | {
1293
+ values: (string | number)[];
1294
+ type: "not-in";
1295
+ } | (string & {
1296
+ type: "defined";
1297
+ }) | (string & {
1298
+ type: "undefined";
1299
+ }) | (string & {
1300
+ values: (string | number)[];
1301
+ type: "in";
1302
+ }) | (string & {
1303
+ values: (string | number)[];
1304
+ type: "not-in";
1305
+ }) | (number & {
1306
+ type: "defined";
1307
+ }) | (number & {
1308
+ type: "undefined";
1309
+ }) | (number & {
1310
+ values: (string | number)[];
1311
+ type: "in";
1312
+ }) | (number & {
1313
+ values: (string | number)[];
1314
+ type: "not-in";
1315
+ }) | ({
1316
+ type: "defined";
1317
+ } & string) | ({
1318
+ type: "defined";
1319
+ } & number) | ({
1320
+ type: "undefined";
1321
+ } & string) | ({
1322
+ type: "undefined";
1323
+ } & number) | ({
1324
+ values: (string | number)[];
1325
+ type: "in";
1326
+ } & string) | ({
1327
+ values: (string | number)[];
1328
+ type: "in";
1329
+ } & number) | ({
1330
+ values: (string | number)[];
1331
+ type: "not-in";
1332
+ } & string) | ({
1333
+ values: (string | number)[];
1334
+ type: "not-in";
1335
+ } & number);
1336
+ }[];
1337
+ 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";
1338
+ source: (string | {
1339
+ type: "column";
1340
+ column: string;
1341
+ } | {
1342
+ type: "service";
1343
+ })[];
1344
+ timestamp: string;
1345
+ transfers: {
1346
+ direction: "in" | "out";
1347
+ amount: string;
1348
+ asset: {
1349
+ type: "column";
1350
+ column: string;
1351
+ } | {
1352
+ type: "nft";
1353
+ id: (string | {
1354
+ type: "column";
1355
+ column: string;
1356
+ } | {
1357
+ type: "service";
1358
+ })[];
1359
+ } | {
1360
+ type: "custom";
1361
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
1362
+ assetId: string;
1363
+ };
1364
+ }[];
1365
+ comment?: (string | {
1366
+ type: "column";
1367
+ column: string;
1368
+ } | {
1369
+ type: "service";
1370
+ })[] | undefined;
1371
+ crossId?: (string | {
1372
+ type: "column";
1373
+ column: string;
1374
+ } | {
1375
+ type: "service";
1376
+ })[] | undefined;
1377
+ crossType?: "start" | "middle" | "end" | undefined;
1378
+ loanId?: (string | {
1379
+ type: "column";
1380
+ column: string;
1381
+ } | {
1382
+ type: "service";
1383
+ })[] | undefined;
1384
+ target?: {
1385
+ type: "nft";
1386
+ id: (string | {
1387
+ type: "column";
1388
+ column: string;
1389
+ } | {
1390
+ type: "service";
1391
+ })[];
1392
+ } | undefined;
1393
+ }, {
1394
+ conditions: {
1395
+ column: string;
1396
+ pattern: string | number | {
1397
+ type: "defined";
1398
+ } | {
1399
+ type: "undefined";
1400
+ } | {
1401
+ values: (string | number)[];
1402
+ type: "in";
1403
+ } | {
1404
+ values: (string | number)[];
1405
+ type: "not-in";
1406
+ } | (string & {
1407
+ type: "defined";
1408
+ }) | (string & {
1409
+ type: "undefined";
1410
+ }) | (string & {
1411
+ values: (string | number)[];
1412
+ type: "in";
1413
+ }) | (string & {
1414
+ values: (string | number)[];
1415
+ type: "not-in";
1416
+ }) | (number & {
1417
+ type: "defined";
1418
+ }) | (number & {
1419
+ type: "undefined";
1420
+ }) | (number & {
1421
+ values: (string | number)[];
1422
+ type: "in";
1423
+ }) | (number & {
1424
+ values: (string | number)[];
1425
+ type: "not-in";
1426
+ }) | ({
1427
+ type: "defined";
1428
+ } & string) | ({
1429
+ type: "defined";
1430
+ } & number) | ({
1431
+ type: "undefined";
1432
+ } & string) | ({
1433
+ type: "undefined";
1434
+ } & number) | ({
1435
+ values: (string | number)[];
1436
+ type: "in";
1437
+ } & string) | ({
1438
+ values: (string | number)[];
1439
+ type: "in";
1440
+ } & number) | ({
1441
+ values: (string | number)[];
1442
+ type: "not-in";
1443
+ } & string) | ({
1444
+ values: (string | number)[];
1445
+ type: "not-in";
1446
+ } & number);
1447
+ }[];
1448
+ 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";
1449
+ source: (string | {
1450
+ type: "column";
1451
+ column: string;
1452
+ } | {
1453
+ type: "service";
1454
+ })[];
1455
+ timestamp: string;
1456
+ transfers: {
1457
+ direction: "in" | "out";
1458
+ amount: string;
1459
+ asset: {
1460
+ type: "column";
1461
+ column: string;
1462
+ } | {
1463
+ type: "nft";
1464
+ id: (string | {
1465
+ type: "column";
1466
+ column: string;
1467
+ } | {
1468
+ type: "service";
1469
+ })[];
1470
+ } | {
1471
+ type: "custom";
1472
+ assetType: "CryptoCurrency" | "FiatCurrency" | "Nft";
1473
+ assetId: string;
1474
+ };
1475
+ }[];
1476
+ comment?: (string | {
1477
+ type: "column";
1478
+ column: string;
1479
+ } | {
1480
+ type: "service";
1481
+ })[] | undefined;
1482
+ crossId?: (string | {
1483
+ type: "column";
1484
+ column: string;
1485
+ } | {
1486
+ type: "service";
1487
+ })[] | undefined;
1488
+ crossType?: "start" | "middle" | "end" | undefined;
1489
+ loanId?: (string | {
1490
+ type: "column";
1491
+ column: string;
1492
+ } | {
1493
+ type: "service";
1494
+ })[] | undefined;
1495
+ target?: {
1496
+ type: "nft";
1497
+ id: (string | {
1498
+ type: "column";
1499
+ column: string;
1500
+ } | {
1501
+ type: "service";
1502
+ })[];
1503
+ } | undefined;
1504
+ }>, "many">;
1505
+ //# sourceMappingURL=parser.d.ts.map