@develit-services/ledger 0.3.0 → 0.3.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.
- package/dist/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/database/schema.mjs +2 -2
- package/dist/export/worker.d.cts +5 -4
- package/dist/export/worker.d.mts +5 -4
- package/dist/export/worker.d.ts +5 -4
- package/dist/export/worker.mjs +2 -2
- package/dist/export/wrangler.d.cts +1 -1
- package/dist/export/wrangler.d.mts +1 -1
- package/dist/export/wrangler.d.ts +1 -1
- package/dist/shared/{ledger.CvKXXw9R.mjs → ledger.149a0ags.mjs} +2 -2
- package/dist/shared/{ledger.DHX1YtaC.d.ts → ledger.Bombc2Sm.d.ts} +5 -5
- package/dist/shared/{ledger.B9-7wKL6.d.cts → ledger.C63GL8Bq.d.mts} +5 -5
- package/dist/shared/{ledger.o5dDJQGc.d.mts → ledger.CeePJr7h.d.cts} +5 -5
- package/dist/shared/{ledger.D9n1klaX.d.cts → ledger.Ci2NnLFo.d.cts} +33 -513
- package/dist/shared/{ledger.D9n1klaX.d.mts → ledger.Ci2NnLFo.d.mts} +33 -513
- package/dist/shared/{ledger.D9n1klaX.d.ts → ledger.Ci2NnLFo.d.ts} +33 -513
- package/dist/shared/{ledger.229hTbXo.mjs → ledger.DkcYdsVZ.mjs} +1 -1
- package/dist/shared/{ledger.Ce2yPDUS.d.ts → ledger.VQWxyeV6.d.cts} +1 -1
- package/dist/shared/{ledger.Ce2yPDUS.d.cts → ledger.VQWxyeV6.d.mts} +1 -1
- package/dist/shared/{ledger.Ce2yPDUS.d.mts → ledger.VQWxyeV6.d.ts} +1 -1
- package/dist/types.d.cts +4 -4
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/dist/types.mjs +1 -1
- package/package.json +4 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as drizzle_orm from 'drizzle-orm';
|
|
2
2
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
3
3
|
import { BankAccountMetadata } from '@develit-io/backend-sdk';
|
|
4
|
-
import { CURRENCY_CODES, CRYPTO_NETWORK_CODES, CODES
|
|
4
|
+
import { CURRENCY_CODES, BANK_CODES, CRYPTO_NETWORK_CODES, CODES } from '@develit-io/general-codes';
|
|
5
5
|
|
|
6
6
|
declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
7
7
|
name: "account";
|
|
@@ -161,133 +161,13 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
161
161
|
identity: undefined;
|
|
162
162
|
generated: undefined;
|
|
163
163
|
}, {}, {}>;
|
|
164
|
-
id:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
notNull: true;
|
|
172
|
-
hasDefault: false;
|
|
173
|
-
isPrimaryKey: true;
|
|
174
|
-
isAutoincrement: false;
|
|
175
|
-
hasRuntimeDefault: false;
|
|
176
|
-
enumValues: [string, ...string[]];
|
|
177
|
-
baseColumn: never;
|
|
178
|
-
identity: undefined;
|
|
179
|
-
generated: undefined;
|
|
180
|
-
}, {}, {
|
|
181
|
-
length: number | undefined;
|
|
182
|
-
}>;
|
|
183
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
184
|
-
name: "created_at";
|
|
185
|
-
tableName: "account";
|
|
186
|
-
dataType: "date";
|
|
187
|
-
columnType: "SQLiteTimestamp";
|
|
188
|
-
data: Date;
|
|
189
|
-
driverParam: number;
|
|
190
|
-
notNull: false;
|
|
191
|
-
hasDefault: true;
|
|
192
|
-
isPrimaryKey: false;
|
|
193
|
-
isAutoincrement: false;
|
|
194
|
-
hasRuntimeDefault: false;
|
|
195
|
-
enumValues: undefined;
|
|
196
|
-
baseColumn: never;
|
|
197
|
-
identity: undefined;
|
|
198
|
-
generated: undefined;
|
|
199
|
-
}, {}, {}>;
|
|
200
|
-
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
201
|
-
name: "created_by";
|
|
202
|
-
tableName: "account";
|
|
203
|
-
dataType: "string";
|
|
204
|
-
columnType: "SQLiteText";
|
|
205
|
-
data: string;
|
|
206
|
-
driverParam: string;
|
|
207
|
-
notNull: false;
|
|
208
|
-
hasDefault: false;
|
|
209
|
-
isPrimaryKey: false;
|
|
210
|
-
isAutoincrement: false;
|
|
211
|
-
hasRuntimeDefault: false;
|
|
212
|
-
enumValues: [string, ...string[]];
|
|
213
|
-
baseColumn: never;
|
|
214
|
-
identity: undefined;
|
|
215
|
-
generated: undefined;
|
|
216
|
-
}, {}, {
|
|
217
|
-
length: number | undefined;
|
|
218
|
-
}>;
|
|
219
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
220
|
-
name: "updated_at";
|
|
221
|
-
tableName: "account";
|
|
222
|
-
dataType: "date";
|
|
223
|
-
columnType: "SQLiteTimestamp";
|
|
224
|
-
data: Date;
|
|
225
|
-
driverParam: number;
|
|
226
|
-
notNull: false;
|
|
227
|
-
hasDefault: true;
|
|
228
|
-
isPrimaryKey: false;
|
|
229
|
-
isAutoincrement: false;
|
|
230
|
-
hasRuntimeDefault: false;
|
|
231
|
-
enumValues: undefined;
|
|
232
|
-
baseColumn: never;
|
|
233
|
-
identity: undefined;
|
|
234
|
-
generated: undefined;
|
|
235
|
-
}, {}, {}>;
|
|
236
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
237
|
-
name: "updated_by";
|
|
238
|
-
tableName: "account";
|
|
239
|
-
dataType: "string";
|
|
240
|
-
columnType: "SQLiteText";
|
|
241
|
-
data: string;
|
|
242
|
-
driverParam: string;
|
|
243
|
-
notNull: false;
|
|
244
|
-
hasDefault: false;
|
|
245
|
-
isPrimaryKey: false;
|
|
246
|
-
isAutoincrement: false;
|
|
247
|
-
hasRuntimeDefault: false;
|
|
248
|
-
enumValues: [string, ...string[]];
|
|
249
|
-
baseColumn: never;
|
|
250
|
-
identity: undefined;
|
|
251
|
-
generated: undefined;
|
|
252
|
-
}, {}, {
|
|
253
|
-
length: number | undefined;
|
|
254
|
-
}>;
|
|
255
|
-
deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
256
|
-
name: "deleted_at";
|
|
257
|
-
tableName: "account";
|
|
258
|
-
dataType: "date";
|
|
259
|
-
columnType: "SQLiteTimestamp";
|
|
260
|
-
data: Date;
|
|
261
|
-
driverParam: number;
|
|
262
|
-
notNull: false;
|
|
263
|
-
hasDefault: true;
|
|
264
|
-
isPrimaryKey: false;
|
|
265
|
-
isAutoincrement: false;
|
|
266
|
-
hasRuntimeDefault: false;
|
|
267
|
-
enumValues: undefined;
|
|
268
|
-
baseColumn: never;
|
|
269
|
-
identity: undefined;
|
|
270
|
-
generated: undefined;
|
|
271
|
-
}, {}, {}>;
|
|
272
|
-
deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
273
|
-
name: "deleted_by";
|
|
274
|
-
tableName: "account";
|
|
275
|
-
dataType: "string";
|
|
276
|
-
columnType: "SQLiteText";
|
|
277
|
-
data: string;
|
|
278
|
-
driverParam: string;
|
|
279
|
-
notNull: false;
|
|
280
|
-
hasDefault: false;
|
|
281
|
-
isPrimaryKey: false;
|
|
282
|
-
isAutoincrement: false;
|
|
283
|
-
hasRuntimeDefault: false;
|
|
284
|
-
enumValues: [string, ...string[]];
|
|
285
|
-
baseColumn: never;
|
|
286
|
-
identity: undefined;
|
|
287
|
-
generated: undefined;
|
|
288
|
-
}, {}, {
|
|
289
|
-
length: number | undefined;
|
|
290
|
-
}>;
|
|
164
|
+
id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
165
|
+
createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
166
|
+
createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
|
|
167
|
+
updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
168
|
+
updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
|
|
169
|
+
deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
170
|
+
deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
|
|
291
171
|
};
|
|
292
172
|
dialect: "sqlite";
|
|
293
173
|
}>;
|
|
@@ -508,133 +388,13 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
508
388
|
length: number | undefined;
|
|
509
389
|
$type: "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
|
510
390
|
}>;
|
|
511
|
-
id:
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
notNull: true;
|
|
519
|
-
hasDefault: false;
|
|
520
|
-
isPrimaryKey: true;
|
|
521
|
-
isAutoincrement: false;
|
|
522
|
-
hasRuntimeDefault: false;
|
|
523
|
-
enumValues: [string, ...string[]];
|
|
524
|
-
baseColumn: never;
|
|
525
|
-
identity: undefined;
|
|
526
|
-
generated: undefined;
|
|
527
|
-
}, {}, {
|
|
528
|
-
length: number | undefined;
|
|
529
|
-
}>;
|
|
530
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
531
|
-
name: "created_at";
|
|
532
|
-
tableName: "account_identifier";
|
|
533
|
-
dataType: "date";
|
|
534
|
-
columnType: "SQLiteTimestamp";
|
|
535
|
-
data: Date;
|
|
536
|
-
driverParam: number;
|
|
537
|
-
notNull: false;
|
|
538
|
-
hasDefault: true;
|
|
539
|
-
isPrimaryKey: false;
|
|
540
|
-
isAutoincrement: false;
|
|
541
|
-
hasRuntimeDefault: false;
|
|
542
|
-
enumValues: undefined;
|
|
543
|
-
baseColumn: never;
|
|
544
|
-
identity: undefined;
|
|
545
|
-
generated: undefined;
|
|
546
|
-
}, {}, {}>;
|
|
547
|
-
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
548
|
-
name: "created_by";
|
|
549
|
-
tableName: "account_identifier";
|
|
550
|
-
dataType: "string";
|
|
551
|
-
columnType: "SQLiteText";
|
|
552
|
-
data: string;
|
|
553
|
-
driverParam: string;
|
|
554
|
-
notNull: false;
|
|
555
|
-
hasDefault: false;
|
|
556
|
-
isPrimaryKey: false;
|
|
557
|
-
isAutoincrement: false;
|
|
558
|
-
hasRuntimeDefault: false;
|
|
559
|
-
enumValues: [string, ...string[]];
|
|
560
|
-
baseColumn: never;
|
|
561
|
-
identity: undefined;
|
|
562
|
-
generated: undefined;
|
|
563
|
-
}, {}, {
|
|
564
|
-
length: number | undefined;
|
|
565
|
-
}>;
|
|
566
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
567
|
-
name: "updated_at";
|
|
568
|
-
tableName: "account_identifier";
|
|
569
|
-
dataType: "date";
|
|
570
|
-
columnType: "SQLiteTimestamp";
|
|
571
|
-
data: Date;
|
|
572
|
-
driverParam: number;
|
|
573
|
-
notNull: false;
|
|
574
|
-
hasDefault: true;
|
|
575
|
-
isPrimaryKey: false;
|
|
576
|
-
isAutoincrement: false;
|
|
577
|
-
hasRuntimeDefault: false;
|
|
578
|
-
enumValues: undefined;
|
|
579
|
-
baseColumn: never;
|
|
580
|
-
identity: undefined;
|
|
581
|
-
generated: undefined;
|
|
582
|
-
}, {}, {}>;
|
|
583
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
584
|
-
name: "updated_by";
|
|
585
|
-
tableName: "account_identifier";
|
|
586
|
-
dataType: "string";
|
|
587
|
-
columnType: "SQLiteText";
|
|
588
|
-
data: string;
|
|
589
|
-
driverParam: string;
|
|
590
|
-
notNull: false;
|
|
591
|
-
hasDefault: false;
|
|
592
|
-
isPrimaryKey: false;
|
|
593
|
-
isAutoincrement: false;
|
|
594
|
-
hasRuntimeDefault: false;
|
|
595
|
-
enumValues: [string, ...string[]];
|
|
596
|
-
baseColumn: never;
|
|
597
|
-
identity: undefined;
|
|
598
|
-
generated: undefined;
|
|
599
|
-
}, {}, {
|
|
600
|
-
length: number | undefined;
|
|
601
|
-
}>;
|
|
602
|
-
deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
603
|
-
name: "deleted_at";
|
|
604
|
-
tableName: "account_identifier";
|
|
605
|
-
dataType: "date";
|
|
606
|
-
columnType: "SQLiteTimestamp";
|
|
607
|
-
data: Date;
|
|
608
|
-
driverParam: number;
|
|
609
|
-
notNull: false;
|
|
610
|
-
hasDefault: true;
|
|
611
|
-
isPrimaryKey: false;
|
|
612
|
-
isAutoincrement: false;
|
|
613
|
-
hasRuntimeDefault: false;
|
|
614
|
-
enumValues: undefined;
|
|
615
|
-
baseColumn: never;
|
|
616
|
-
identity: undefined;
|
|
617
|
-
generated: undefined;
|
|
618
|
-
}, {}, {}>;
|
|
619
|
-
deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
620
|
-
name: "deleted_by";
|
|
621
|
-
tableName: "account_identifier";
|
|
622
|
-
dataType: "string";
|
|
623
|
-
columnType: "SQLiteText";
|
|
624
|
-
data: string;
|
|
625
|
-
driverParam: string;
|
|
626
|
-
notNull: false;
|
|
627
|
-
hasDefault: false;
|
|
628
|
-
isPrimaryKey: false;
|
|
629
|
-
isAutoincrement: false;
|
|
630
|
-
hasRuntimeDefault: false;
|
|
631
|
-
enumValues: [string, ...string[]];
|
|
632
|
-
baseColumn: never;
|
|
633
|
-
identity: undefined;
|
|
634
|
-
generated: undefined;
|
|
635
|
-
}, {}, {
|
|
636
|
-
length: number | undefined;
|
|
637
|
-
}>;
|
|
391
|
+
id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
392
|
+
createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
393
|
+
createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
|
|
394
|
+
updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
395
|
+
updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
|
|
396
|
+
deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
397
|
+
deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
|
|
638
398
|
};
|
|
639
399
|
dialect: "sqlite";
|
|
640
400
|
}>;
|
|
@@ -946,7 +706,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
946
706
|
tableName: "entry";
|
|
947
707
|
dataType: "string";
|
|
948
708
|
columnType: "SQLiteText";
|
|
949
|
-
data: "
|
|
709
|
+
data: "FAILED" | "PENDING" | "REALIZED" | "CANCELED";
|
|
950
710
|
driverParam: string;
|
|
951
711
|
notNull: true;
|
|
952
712
|
hasDefault: false;
|
|
@@ -959,7 +719,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
959
719
|
generated: undefined;
|
|
960
720
|
}, {}, {
|
|
961
721
|
length: number | undefined;
|
|
962
|
-
$type: "
|
|
722
|
+
$type: "FAILED" | "PENDING" | "REALIZED" | "CANCELED";
|
|
963
723
|
}>;
|
|
964
724
|
isBalanced: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
965
725
|
name: "is_balanced";
|
|
@@ -1014,133 +774,13 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1014
774
|
identity: undefined;
|
|
1015
775
|
generated: undefined;
|
|
1016
776
|
}, {}, {}>;
|
|
1017
|
-
id:
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
notNull: true;
|
|
1025
|
-
hasDefault: false;
|
|
1026
|
-
isPrimaryKey: true;
|
|
1027
|
-
isAutoincrement: false;
|
|
1028
|
-
hasRuntimeDefault: false;
|
|
1029
|
-
enumValues: [string, ...string[]];
|
|
1030
|
-
baseColumn: never;
|
|
1031
|
-
identity: undefined;
|
|
1032
|
-
generated: undefined;
|
|
1033
|
-
}, {}, {
|
|
1034
|
-
length: number | undefined;
|
|
1035
|
-
}>;
|
|
1036
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1037
|
-
name: "created_at";
|
|
1038
|
-
tableName: "entry";
|
|
1039
|
-
dataType: "date";
|
|
1040
|
-
columnType: "SQLiteTimestamp";
|
|
1041
|
-
data: Date;
|
|
1042
|
-
driverParam: number;
|
|
1043
|
-
notNull: false;
|
|
1044
|
-
hasDefault: true;
|
|
1045
|
-
isPrimaryKey: false;
|
|
1046
|
-
isAutoincrement: false;
|
|
1047
|
-
hasRuntimeDefault: false;
|
|
1048
|
-
enumValues: undefined;
|
|
1049
|
-
baseColumn: never;
|
|
1050
|
-
identity: undefined;
|
|
1051
|
-
generated: undefined;
|
|
1052
|
-
}, {}, {}>;
|
|
1053
|
-
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1054
|
-
name: "created_by";
|
|
1055
|
-
tableName: "entry";
|
|
1056
|
-
dataType: "string";
|
|
1057
|
-
columnType: "SQLiteText";
|
|
1058
|
-
data: string;
|
|
1059
|
-
driverParam: string;
|
|
1060
|
-
notNull: false;
|
|
1061
|
-
hasDefault: false;
|
|
1062
|
-
isPrimaryKey: false;
|
|
1063
|
-
isAutoincrement: false;
|
|
1064
|
-
hasRuntimeDefault: false;
|
|
1065
|
-
enumValues: [string, ...string[]];
|
|
1066
|
-
baseColumn: never;
|
|
1067
|
-
identity: undefined;
|
|
1068
|
-
generated: undefined;
|
|
1069
|
-
}, {}, {
|
|
1070
|
-
length: number | undefined;
|
|
1071
|
-
}>;
|
|
1072
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1073
|
-
name: "updated_at";
|
|
1074
|
-
tableName: "entry";
|
|
1075
|
-
dataType: "date";
|
|
1076
|
-
columnType: "SQLiteTimestamp";
|
|
1077
|
-
data: Date;
|
|
1078
|
-
driverParam: number;
|
|
1079
|
-
notNull: false;
|
|
1080
|
-
hasDefault: true;
|
|
1081
|
-
isPrimaryKey: false;
|
|
1082
|
-
isAutoincrement: false;
|
|
1083
|
-
hasRuntimeDefault: false;
|
|
1084
|
-
enumValues: undefined;
|
|
1085
|
-
baseColumn: never;
|
|
1086
|
-
identity: undefined;
|
|
1087
|
-
generated: undefined;
|
|
1088
|
-
}, {}, {}>;
|
|
1089
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1090
|
-
name: "updated_by";
|
|
1091
|
-
tableName: "entry";
|
|
1092
|
-
dataType: "string";
|
|
1093
|
-
columnType: "SQLiteText";
|
|
1094
|
-
data: string;
|
|
1095
|
-
driverParam: string;
|
|
1096
|
-
notNull: false;
|
|
1097
|
-
hasDefault: false;
|
|
1098
|
-
isPrimaryKey: false;
|
|
1099
|
-
isAutoincrement: false;
|
|
1100
|
-
hasRuntimeDefault: false;
|
|
1101
|
-
enumValues: [string, ...string[]];
|
|
1102
|
-
baseColumn: never;
|
|
1103
|
-
identity: undefined;
|
|
1104
|
-
generated: undefined;
|
|
1105
|
-
}, {}, {
|
|
1106
|
-
length: number | undefined;
|
|
1107
|
-
}>;
|
|
1108
|
-
deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1109
|
-
name: "deleted_at";
|
|
1110
|
-
tableName: "entry";
|
|
1111
|
-
dataType: "date";
|
|
1112
|
-
columnType: "SQLiteTimestamp";
|
|
1113
|
-
data: Date;
|
|
1114
|
-
driverParam: number;
|
|
1115
|
-
notNull: false;
|
|
1116
|
-
hasDefault: true;
|
|
1117
|
-
isPrimaryKey: false;
|
|
1118
|
-
isAutoincrement: false;
|
|
1119
|
-
hasRuntimeDefault: false;
|
|
1120
|
-
enumValues: undefined;
|
|
1121
|
-
baseColumn: never;
|
|
1122
|
-
identity: undefined;
|
|
1123
|
-
generated: undefined;
|
|
1124
|
-
}, {}, {}>;
|
|
1125
|
-
deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1126
|
-
name: "deleted_by";
|
|
1127
|
-
tableName: "entry";
|
|
1128
|
-
dataType: "string";
|
|
1129
|
-
columnType: "SQLiteText";
|
|
1130
|
-
data: string;
|
|
1131
|
-
driverParam: string;
|
|
1132
|
-
notNull: false;
|
|
1133
|
-
hasDefault: false;
|
|
1134
|
-
isPrimaryKey: false;
|
|
1135
|
-
isAutoincrement: false;
|
|
1136
|
-
hasRuntimeDefault: false;
|
|
1137
|
-
enumValues: [string, ...string[]];
|
|
1138
|
-
baseColumn: never;
|
|
1139
|
-
identity: undefined;
|
|
1140
|
-
generated: undefined;
|
|
1141
|
-
}, {}, {
|
|
1142
|
-
length: number | undefined;
|
|
1143
|
-
}>;
|
|
777
|
+
id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
778
|
+
createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
779
|
+
createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
|
|
780
|
+
updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
781
|
+
updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
|
|
782
|
+
deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
783
|
+
deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
|
|
1144
784
|
};
|
|
1145
785
|
dialect: "sqlite";
|
|
1146
786
|
}>;
|
|
@@ -1394,133 +1034,13 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1394
1034
|
length: number | undefined;
|
|
1395
1035
|
$type: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
|
|
1396
1036
|
}>;
|
|
1397
|
-
id:
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
notNull: true;
|
|
1405
|
-
hasDefault: false;
|
|
1406
|
-
isPrimaryKey: true;
|
|
1407
|
-
isAutoincrement: false;
|
|
1408
|
-
hasRuntimeDefault: false;
|
|
1409
|
-
enumValues: [string, ...string[]];
|
|
1410
|
-
baseColumn: never;
|
|
1411
|
-
identity: undefined;
|
|
1412
|
-
generated: undefined;
|
|
1413
|
-
}, {}, {
|
|
1414
|
-
length: number | undefined;
|
|
1415
|
-
}>;
|
|
1416
|
-
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1417
|
-
name: "created_at";
|
|
1418
|
-
tableName: "transaction";
|
|
1419
|
-
dataType: "date";
|
|
1420
|
-
columnType: "SQLiteTimestamp";
|
|
1421
|
-
data: Date;
|
|
1422
|
-
driverParam: number;
|
|
1423
|
-
notNull: false;
|
|
1424
|
-
hasDefault: true;
|
|
1425
|
-
isPrimaryKey: false;
|
|
1426
|
-
isAutoincrement: false;
|
|
1427
|
-
hasRuntimeDefault: false;
|
|
1428
|
-
enumValues: undefined;
|
|
1429
|
-
baseColumn: never;
|
|
1430
|
-
identity: undefined;
|
|
1431
|
-
generated: undefined;
|
|
1432
|
-
}, {}, {}>;
|
|
1433
|
-
createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1434
|
-
name: "created_by";
|
|
1435
|
-
tableName: "transaction";
|
|
1436
|
-
dataType: "string";
|
|
1437
|
-
columnType: "SQLiteText";
|
|
1438
|
-
data: string;
|
|
1439
|
-
driverParam: string;
|
|
1440
|
-
notNull: false;
|
|
1441
|
-
hasDefault: false;
|
|
1442
|
-
isPrimaryKey: false;
|
|
1443
|
-
isAutoincrement: false;
|
|
1444
|
-
hasRuntimeDefault: false;
|
|
1445
|
-
enumValues: [string, ...string[]];
|
|
1446
|
-
baseColumn: never;
|
|
1447
|
-
identity: undefined;
|
|
1448
|
-
generated: undefined;
|
|
1449
|
-
}, {}, {
|
|
1450
|
-
length: number | undefined;
|
|
1451
|
-
}>;
|
|
1452
|
-
updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1453
|
-
name: "updated_at";
|
|
1454
|
-
tableName: "transaction";
|
|
1455
|
-
dataType: "date";
|
|
1456
|
-
columnType: "SQLiteTimestamp";
|
|
1457
|
-
data: Date;
|
|
1458
|
-
driverParam: number;
|
|
1459
|
-
notNull: false;
|
|
1460
|
-
hasDefault: true;
|
|
1461
|
-
isPrimaryKey: false;
|
|
1462
|
-
isAutoincrement: false;
|
|
1463
|
-
hasRuntimeDefault: false;
|
|
1464
|
-
enumValues: undefined;
|
|
1465
|
-
baseColumn: never;
|
|
1466
|
-
identity: undefined;
|
|
1467
|
-
generated: undefined;
|
|
1468
|
-
}, {}, {}>;
|
|
1469
|
-
updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1470
|
-
name: "updated_by";
|
|
1471
|
-
tableName: "transaction";
|
|
1472
|
-
dataType: "string";
|
|
1473
|
-
columnType: "SQLiteText";
|
|
1474
|
-
data: string;
|
|
1475
|
-
driverParam: string;
|
|
1476
|
-
notNull: false;
|
|
1477
|
-
hasDefault: false;
|
|
1478
|
-
isPrimaryKey: false;
|
|
1479
|
-
isAutoincrement: false;
|
|
1480
|
-
hasRuntimeDefault: false;
|
|
1481
|
-
enumValues: [string, ...string[]];
|
|
1482
|
-
baseColumn: never;
|
|
1483
|
-
identity: undefined;
|
|
1484
|
-
generated: undefined;
|
|
1485
|
-
}, {}, {
|
|
1486
|
-
length: number | undefined;
|
|
1487
|
-
}>;
|
|
1488
|
-
deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1489
|
-
name: "deleted_at";
|
|
1490
|
-
tableName: "transaction";
|
|
1491
|
-
dataType: "date";
|
|
1492
|
-
columnType: "SQLiteTimestamp";
|
|
1493
|
-
data: Date;
|
|
1494
|
-
driverParam: number;
|
|
1495
|
-
notNull: false;
|
|
1496
|
-
hasDefault: true;
|
|
1497
|
-
isPrimaryKey: false;
|
|
1498
|
-
isAutoincrement: false;
|
|
1499
|
-
hasRuntimeDefault: false;
|
|
1500
|
-
enumValues: undefined;
|
|
1501
|
-
baseColumn: never;
|
|
1502
|
-
identity: undefined;
|
|
1503
|
-
generated: undefined;
|
|
1504
|
-
}, {}, {}>;
|
|
1505
|
-
deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1506
|
-
name: "deleted_by";
|
|
1507
|
-
tableName: "transaction";
|
|
1508
|
-
dataType: "string";
|
|
1509
|
-
columnType: "SQLiteText";
|
|
1510
|
-
data: string;
|
|
1511
|
-
driverParam: string;
|
|
1512
|
-
notNull: false;
|
|
1513
|
-
hasDefault: false;
|
|
1514
|
-
isPrimaryKey: false;
|
|
1515
|
-
isAutoincrement: false;
|
|
1516
|
-
hasRuntimeDefault: false;
|
|
1517
|
-
enumValues: [string, ...string[]];
|
|
1518
|
-
baseColumn: never;
|
|
1519
|
-
identity: undefined;
|
|
1520
|
-
generated: undefined;
|
|
1521
|
-
}, {}, {
|
|
1522
|
-
length: number | undefined;
|
|
1523
|
-
}>;
|
|
1037
|
+
id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
|
|
1038
|
+
createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
|
|
1039
|
+
createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
|
|
1040
|
+
updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
|
|
1041
|
+
updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
|
|
1042
|
+
deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
1043
|
+
deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
|
|
1524
1044
|
};
|
|
1525
1045
|
dialect: "sqlite";
|
|
1526
1046
|
}>;
|
|
@@ -1546,5 +1066,5 @@ declare namespace schema {
|
|
|
1546
1066
|
};
|
|
1547
1067
|
}
|
|
1548
1068
|
|
|
1549
|
-
export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, schema as D, ENTRY_STATUSES as E, account as F, accountIdentifier as G, accountIdentifierMapping as H, IDENTIFIER_KINDS as I,
|
|
1550
|
-
export type {
|
|
1069
|
+
export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, COUNTRY_CODES as C, schema as D, ENTRY_STATUSES as E, account as F, accountIdentifier as G, accountIdentifierMapping as H, IDENTIFIER_KINDS as I, accountIdentifierMappingRelations as J, accountIdentifierRelations as K, accountRelations as L, entry as M, transaction as N, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as a, BATCH_STATUSES as d, PAYMENT_DIRECTIONS as o, PAYMENT_STATUSES as p, PAYMENT_TYPES as q, TRANSACTION_TYPES as w };
|
|
1070
|
+
export type { AccountType as b, AssetType as c, BalanceStrategy as e, BankCode as f, BatchStatus as g, CountryCode as h, CryptoNetworkCode as i, Currency as j, CurrencyCode as k, EntryMetadata as l, EntryStatus as m, IdentifierKind as n, PaymentChargeType as r, PaymentDirection as s, PaymentStatus as t, PaymentType as u, ReferenceType as v, TransactionMetadata as x, TransactionStatus as y, TransactionType as z };
|
|
@@ -309,4 +309,4 @@ const updateTransactionConfirmationSentAtInputSchema = z.object({
|
|
|
309
309
|
transactionId: z.uuid()
|
|
310
310
|
});
|
|
311
311
|
|
|
312
|
-
export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, COUNTRY_CODES as C, ENTRY_STATUSES as E, IDENTIFIER_KINDS as I, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T,
|
|
312
|
+
export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, COUNTRY_CODES as C, ENTRY_STATUSES as E, IDENTIFIER_KINDS as I, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ALLOWED_TRANSACTION_FILTERS as a, ASSET_TYPES as b, BATCH_STATUSES as c, PAYMENT_DIRECTIONS as d, PAYMENT_STATUSES as e, PAYMENT_TYPES as f, TRANSACTION_TYPES as g, cancelTransactionInputSchema as h, createAccountInputSchema as i, createTransactionInputSchema as j, deleteAccountInputSchema as k, failTransactionInputSchema as l, findAccountByIdentifierInputSchema as m, getAccountBalanceInputSchema as n, getAccountIdentifierInputSchema as o, getAccountInputSchema as p, getAccountsByOwnerInputSchema as q, getTransactionByIdInputSchema as r, getTransactionsByReferenceIdInputSchema as s, getTransactionsInputSchema as t, listAccountIdentifiersInputSchema as u, listAccountsInputSchema as v, matchTransactionInputSchema as w, updateAccountInputSchema as x, updateTransactionConfirmationSentAtInputSchema as y };
|
|
@@ -15,4 +15,4 @@ interface LedgerServiceWranglerConfig {
|
|
|
15
15
|
interface LedgerServiceEnv extends LedgerEnv {
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export type { LedgerServiceWranglerConfig as L,
|
|
18
|
+
export type { LedgerServiceWranglerConfig as L, LedgerServiceEnv as a, LedgerServiceEnvironmentConfig as b };
|
|
@@ -15,4 +15,4 @@ interface LedgerServiceWranglerConfig {
|
|
|
15
15
|
interface LedgerServiceEnv extends LedgerEnv {
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export type { LedgerServiceWranglerConfig as L,
|
|
18
|
+
export type { LedgerServiceWranglerConfig as L, LedgerServiceEnv as a, LedgerServiceEnvironmentConfig as b };
|
|
@@ -15,4 +15,4 @@ interface LedgerServiceWranglerConfig {
|
|
|
15
15
|
interface LedgerServiceEnv extends LedgerEnv {
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export type { LedgerServiceWranglerConfig as L,
|
|
18
|
+
export type { LedgerServiceWranglerConfig as L, LedgerServiceEnv as a, LedgerServiceEnvironmentConfig as b };
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as ACCOUNT_TYPES,
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
1
|
+
export { A as ACCOUNT_TYPES, a as ASSET_TYPES, b as AccountType, c as AssetType, B as BALANCE_STRATEGIES, d as BATCH_STATUSES, e as BalanceStrategy, f as BankCode, g as BatchStatus, C as COUNTRY_CODES, h as CountryCode, i as CryptoNetworkCode, j as Currency, k as CurrencyCode, E as ENTRY_STATUSES, l as EntryMetadata, m as EntryStatus, I as IDENTIFIER_KINDS, n as IdentifierKind, P as PAYMENT_CHARGE_TYPES, o as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, q as PAYMENT_TYPES, r as PaymentChargeType, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as ReferenceType, T as TRANSACTION_STATUSES, w as TRANSACTION_TYPES, x as TransactionMetadata, y as TransactionStatus, z as TransactionType } from './shared/ledger.Ci2NnLFo.cjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.CeePJr7h.cjs';
|
|
3
|
+
export { I as AccountIdentifierInsertType, J as AccountIdentifierMappingInsertType, K as AccountIdentifierMappingSelectType, N as AccountIdentifierSelectType, O as AccountInsertType, P as AccountSelectType, Q as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, R as IncludeRelation, S as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, V as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a0 as getAccountBalanceInputSchema, a1 as getAccountIdentifierInputSchema, a2 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a5 as getTransactionsByReferenceIdInputSchema, a6 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.CeePJr7h.cjs';
|
|
4
|
+
export { a as LedgerServiceEnv, b as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.VQWxyeV6.cjs';
|
|
5
5
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
7
7
|
import 'drizzle-orm';
|