@develit-services/bank 0.2.4 → 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.
Files changed (34) hide show
  1. package/dist/database/schema.cjs +2 -1
  2. package/dist/database/schema.d.cts +1 -1
  3. package/dist/database/schema.d.mts +1 -1
  4. package/dist/database/schema.d.ts +1 -1
  5. package/dist/database/schema.mjs +2 -1
  6. package/dist/export/worker.cjs +218 -170
  7. package/dist/export/worker.d.cts +133 -25
  8. package/dist/export/worker.d.mts +133 -25
  9. package/dist/export/worker.d.ts +133 -25
  10. package/dist/export/worker.mjs +210 -162
  11. package/dist/export/workflows.cjs +12 -14
  12. package/dist/export/workflows.d.cts +10 -3
  13. package/dist/export/workflows.d.mts +10 -3
  14. package/dist/export/workflows.d.ts +10 -3
  15. package/dist/export/workflows.mjs +7 -9
  16. package/dist/export/wrangler.cjs +7 -2
  17. package/dist/export/wrangler.mjs +7 -2
  18. package/dist/shared/{bank.CyinOg3r.cjs → bank.BGuS_o9V.cjs} +1 -1
  19. package/dist/shared/bank.CIJDq7GL.cjs +401 -0
  20. package/dist/shared/{bank.NdqOkgpd.cjs → bank.CpcK1Dse.cjs} +12 -8
  21. package/dist/shared/{bank.DKtu6cfY.mjs → bank.CthUj-ff.mjs} +1 -1
  22. package/dist/shared/{bank.DXn9jD0Q.mjs → bank.lZMrqjVR.mjs} +12 -8
  23. package/dist/shared/bank.mZtcXaJo.mjs +391 -0
  24. package/dist/shared/{bank.Cfz44GPA.d.ts → bank.xrXNjWCo.d.cts} +109 -14
  25. package/dist/shared/{bank.Cfz44GPA.d.cts → bank.xrXNjWCo.d.mts} +109 -14
  26. package/dist/shared/{bank.Cfz44GPA.d.mts → bank.xrXNjWCo.d.ts} +109 -14
  27. package/dist/types.cjs +3 -2
  28. package/dist/types.d.cts +2 -2
  29. package/dist/types.d.mts +2 -2
  30. package/dist/types.d.ts +2 -2
  31. package/dist/types.mjs +3 -2
  32. package/package.json +1 -1
  33. package/dist/shared/bank.BvUtf1S3.mjs +0 -130
  34. package/dist/shared/bank.CHS79KTx.cjs +0 -136
@@ -33,7 +33,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
33
33
  tableName: "batch";
34
34
  dataType: "json";
35
35
  columnType: "SQLiteTextJson";
36
- data: string | string[];
36
+ data: string[];
37
37
  driverParam: string;
38
38
  notNull: false;
39
39
  hasDefault: false;
@@ -45,7 +45,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
45
45
  identity: undefined;
46
46
  generated: undefined;
47
47
  }, {}, {
48
- $type: string | string[];
48
+ $type: string[];
49
49
  }>;
50
50
  accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
51
51
  name: "account_id";
@@ -71,20 +71,20 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
71
71
  tableName: "batch";
72
72
  dataType: "string";
73
73
  columnType: "SQLiteText";
74
- data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
74
+ data: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
75
75
  driverParam: string;
76
76
  notNull: false;
77
77
  hasDefault: false;
78
78
  isPrimaryKey: false;
79
79
  isAutoincrement: false;
80
80
  hasRuntimeDefault: false;
81
- enumValues: ["OPEN", "PROCESSING", "READY_TO_SIGN", "WAITING_FOR_PROCESSING", "PREPARED", "COMPLETED", "FAILED"];
81
+ enumValues: ["OPEN", "FULL", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED"];
82
82
  baseColumn: never;
83
83
  identity: undefined;
84
84
  generated: undefined;
85
85
  }, {}, {
86
86
  length: number | undefined;
87
- $type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
87
+ $type: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
88
88
  }>;
89
89
  payments: drizzle_orm_sqlite_core.SQLiteColumn<{
90
90
  name: "payments";
@@ -110,7 +110,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
110
110
  tableName: "batch";
111
111
  dataType: "json";
112
112
  columnType: "SQLiteTextJson";
113
- data: object;
113
+ data: BatchMetadata;
114
114
  driverParam: string;
115
115
  notNull: false;
116
116
  hasDefault: false;
@@ -122,7 +122,26 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
122
122
  identity: undefined;
123
123
  generated: undefined;
124
124
  }, {}, {
125
- $type: object;
125
+ $type: BatchMetadata;
126
+ }>;
127
+ paymentsChecksum: drizzle_orm_sqlite_core.SQLiteColumn<{
128
+ name: "payments_checksum";
129
+ tableName: "batch";
130
+ dataType: "string";
131
+ columnType: "SQLiteText";
132
+ data: string;
133
+ driverParam: string;
134
+ notNull: false;
135
+ hasDefault: false;
136
+ isPrimaryKey: false;
137
+ isAutoincrement: false;
138
+ hasRuntimeDefault: false;
139
+ enumValues: [string, ...string[]];
140
+ baseColumn: never;
141
+ identity: undefined;
142
+ generated: undefined;
143
+ }, {}, {
144
+ length: number | undefined;
126
145
  }>;
127
146
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
128
147
  name: "id";
@@ -380,7 +399,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
380
399
  tableName: "payment";
381
400
  dataType: "string";
382
401
  columnType: "SQLiteText";
383
- data: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
402
+ data: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
384
403
  driverParam: string;
385
404
  notNull: true;
386
405
  hasDefault: false;
@@ -393,7 +412,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
393
412
  generated: undefined;
394
413
  }, {}, {
395
414
  length: number | undefined;
396
- $type: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
415
+ $type: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
397
416
  }>;
398
417
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
399
418
  name: "status_reason";
@@ -893,6 +912,25 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
893
912
  }, {}, {
894
913
  length: number | undefined;
895
914
  }>;
915
+ name: drizzle_orm_sqlite_core.SQLiteColumn<{
916
+ name: "name";
917
+ tableName: "account";
918
+ dataType: "string";
919
+ columnType: "SQLiteText";
920
+ data: string;
921
+ driverParam: string;
922
+ notNull: false;
923
+ hasDefault: false;
924
+ isPrimaryKey: false;
925
+ isAutoincrement: false;
926
+ hasRuntimeDefault: false;
927
+ enumValues: [string, ...string[]];
928
+ baseColumn: never;
929
+ identity: undefined;
930
+ generated: undefined;
931
+ }, {}, {
932
+ length: number | undefined;
933
+ }>;
896
934
  iban: drizzle_orm_sqlite_core.SQLiteColumn<{
897
935
  name: "iban";
898
936
  tableName: "account";
@@ -1550,7 +1588,7 @@ type CurrencyCode = (typeof CURRENCY_CODES)[number];
1550
1588
  /**
1551
1589
  * Batch status constants
1552
1590
  */
1553
- declare const BATCH_STATUSES: readonly ["OPEN", "PROCESSING", "READY_TO_SIGN", "WAITING_FOR_PROCESSING", "PREPARED", "COMPLETED", "FAILED"];
1591
+ declare const BATCH_STATUSES: readonly ["OPEN", "FULL", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED"];
1554
1592
  /**
1555
1593
  * Type definition for batch status
1556
1594
  */
@@ -1573,19 +1611,19 @@ type WithStatus<T extends {
1573
1611
  };
1574
1612
  type PaymentFailedInsertType = WithStatus<PaymentInsertType, 'FAILED'>;
1575
1613
  type PaymentPreparedInsertType = WithStatus<PaymentInsertType, 'PREPARED'>;
1576
- type paymentInitializedInsertType = WithStatus<PaymentInsertType, 'INITIALIZED'>;
1614
+ type PaymentInitializedInsertType = WithStatus<PaymentInsertType, 'INITIALIZED'>;
1577
1615
  type BatchMetadata = {
1578
1616
  signHash: string;
1579
1617
  signId: string;
1580
1618
  };
1581
1619
  type InitiatedPayment = {
1582
1620
  authorizationUrl: string;
1583
- payment: paymentInitializedInsertType;
1621
+ payment: PaymentInitializedInsertType;
1584
1622
  };
1585
1623
  type InitiatedBatch = {
1586
1624
  id: string;
1587
1625
  authorizationUrls: string[];
1588
- payments: paymentInitializedInsertType[];
1626
+ payments: PaymentInitializedInsertType[];
1589
1627
  metadata?: BatchMetadata | null;
1590
1628
  };
1591
1629
  type ConnectedAccount = {
@@ -1676,6 +1714,25 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
1676
1714
  }, {}, {
1677
1715
  length: number | undefined;
1678
1716
  }>;
1717
+ name: drizzle_orm_sqlite_core.SQLiteColumn<{
1718
+ name: "name";
1719
+ tableName: "account";
1720
+ dataType: "string";
1721
+ columnType: "SQLiteText";
1722
+ data: string;
1723
+ driverParam: string;
1724
+ notNull: false;
1725
+ hasDefault: false;
1726
+ isPrimaryKey: false;
1727
+ isAutoincrement: false;
1728
+ hasRuntimeDefault: false;
1729
+ enumValues: [string, ...string[]];
1730
+ baseColumn: never;
1731
+ identity: undefined;
1732
+ generated: undefined;
1733
+ }, {}, {
1734
+ length: number | undefined;
1735
+ }>;
1679
1736
  iban: drizzle_orm_sqlite_core.SQLiteColumn<{
1680
1737
  name: "iban";
1681
1738
  tableName: "account";
@@ -2143,6 +2200,25 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
2143
2200
  }, {}, {
2144
2201
  length: number | undefined;
2145
2202
  }>;
2203
+ name: drizzle_orm_sqlite_core.SQLiteColumn<{
2204
+ name: "name";
2205
+ tableName: "account";
2206
+ dataType: "string";
2207
+ columnType: "SQLiteText";
2208
+ data: string;
2209
+ driverParam: string;
2210
+ notNull: false;
2211
+ hasDefault: false;
2212
+ isPrimaryKey: false;
2213
+ isAutoincrement: false;
2214
+ hasRuntimeDefault: false;
2215
+ enumValues: [string, ...string[]];
2216
+ baseColumn: never;
2217
+ identity: undefined;
2218
+ generated: undefined;
2219
+ }, {}, {
2220
+ length: number | undefined;
2221
+ }>;
2146
2222
  iban: drizzle_orm_sqlite_core.SQLiteColumn<{
2147
2223
  name: "iban";
2148
2224
  tableName: "account";
@@ -2610,6 +2686,25 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
2610
2686
  }, {}, {
2611
2687
  length: number | undefined;
2612
2688
  }>;
2689
+ name: drizzle_orm_sqlite_core.SQLiteColumn<{
2690
+ name: "name";
2691
+ tableName: "account";
2692
+ dataType: "string";
2693
+ columnType: "SQLiteText";
2694
+ data: string;
2695
+ driverParam: string;
2696
+ notNull: false;
2697
+ hasDefault: false;
2698
+ isPrimaryKey: false;
2699
+ isAutoincrement: false;
2700
+ hasRuntimeDefault: false;
2701
+ enumValues: [string, ...string[]];
2702
+ baseColumn: never;
2703
+ identity: undefined;
2704
+ generated: undefined;
2705
+ }, {}, {
2706
+ length: number | undefined;
2707
+ }>;
2613
2708
  iban: drizzle_orm_sqlite_core.SQLiteColumn<{
2614
2709
  name: "iban";
2615
2710
  tableName: "account";
@@ -3575,4 +3670,4 @@ type AccountCredentialsPatchType = z.infer<typeof accountCredentialsUpdateSchema
3575
3670
  type AccountCredentialsSelectType = z.infer<typeof accountCredentialsSelectSchema>;
3576
3671
 
3577
3672
  export { accountCredentialsInsertSchema as $, INSTRUCTION_PRIORITIES as E, PAYMENT_STATUSES as G, PAYMENT_DIRECTIONS as H, IBankConnector as I, ACCOUNT_STATUSES as K, COUNTRY_CODES as N, CONNECTOR_KEYS as R, CREDENTIALS_TYPES as S, TOKEN_TYPES as U, accountInsertSchema as W, accountUpdateSchema as X, accountSelectSchema as Y, accountCredentialsUpdateSchema as a0, accountCredentialsSelectSchema as a1, batch as a5, payment as a6, paymentRelations as a7, ott as a8, account as a9, accountCredentials as aa, tables as t, BATCH_STATUSES as w, PAYMENT_TYPES as x, CHARGE_BEARERS as z };
3578
- export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, ChargeBearer as D, InstructionPriority as F, PaymentDirection as J, LastSyncMetadata as L, AccountStatus as M, OutgoingPaymentMessage as O, PaymentSelectType as P, BankAccountWithLastSync as Q, CredentialsType as T, TokenType as V, AccountUpdateType as Z, AccountPatchType as _, ConnectorKey as a, AccountCredentialsUpdateType as a2, AccountCredentialsPatchType as a3, AccountCredentialsSelectType as a4, PaymentInsertType as b, IncomingPaymentMessage as c, InitiatedPayment as d, ConnectedAccount as e, AccountCredentialsInsertType as f, AccountInsertType as g, PaymentPreparedInsertType as h, InitiatedBatch as i, BatchMetadata as j, ParsedBankPayment as k, PaymentStatus as l, BatchStatus as m, CurrencyCode as n, BankCode as o, CountryCode as p, AuthInput as q, Currency as r, PaymentFailedInsertType as s, paymentInitializedInsertType as u, BatchInsertType as v, PaymentType as y };
3673
+ export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, ChargeBearer as D, InstructionPriority as F, PaymentDirection as J, LastSyncMetadata as L, AccountStatus as M, OutgoingPaymentMessage as O, PaymentSelectType as P, BankAccountWithLastSync as Q, CredentialsType as T, TokenType as V, AccountUpdateType as Z, AccountPatchType as _, ConnectorKey as a, AccountCredentialsUpdateType as a2, AccountCredentialsPatchType as a3, AccountCredentialsSelectType as a4, PaymentInsertType as b, BatchMetadata as c, IncomingPaymentMessage as d, InitiatedPayment as e, ConnectedAccount as f, AccountCredentialsInsertType as g, AccountInsertType as h, PaymentPreparedInsertType as i, InitiatedBatch as j, ParsedBankPayment as k, PaymentStatus as l, BatchStatus as m, CurrencyCode as n, BankCode as o, CountryCode as p, AuthInput as q, Currency as r, PaymentFailedInsertType as s, PaymentInitializedInsertType as u, BatchInsertType as v, PaymentType as y };
@@ -33,7 +33,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
33
33
  tableName: "batch";
34
34
  dataType: "json";
35
35
  columnType: "SQLiteTextJson";
36
- data: string | string[];
36
+ data: string[];
37
37
  driverParam: string;
38
38
  notNull: false;
39
39
  hasDefault: false;
@@ -45,7 +45,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
45
45
  identity: undefined;
46
46
  generated: undefined;
47
47
  }, {}, {
48
- $type: string | string[];
48
+ $type: string[];
49
49
  }>;
50
50
  accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
51
51
  name: "account_id";
@@ -71,20 +71,20 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
71
71
  tableName: "batch";
72
72
  dataType: "string";
73
73
  columnType: "SQLiteText";
74
- data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
74
+ data: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
75
75
  driverParam: string;
76
76
  notNull: false;
77
77
  hasDefault: false;
78
78
  isPrimaryKey: false;
79
79
  isAutoincrement: false;
80
80
  hasRuntimeDefault: false;
81
- enumValues: ["OPEN", "PROCESSING", "READY_TO_SIGN", "WAITING_FOR_PROCESSING", "PREPARED", "COMPLETED", "FAILED"];
81
+ enumValues: ["OPEN", "FULL", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED"];
82
82
  baseColumn: never;
83
83
  identity: undefined;
84
84
  generated: undefined;
85
85
  }, {}, {
86
86
  length: number | undefined;
87
- $type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
87
+ $type: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
88
88
  }>;
89
89
  payments: drizzle_orm_sqlite_core.SQLiteColumn<{
90
90
  name: "payments";
@@ -110,7 +110,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
110
110
  tableName: "batch";
111
111
  dataType: "json";
112
112
  columnType: "SQLiteTextJson";
113
- data: object;
113
+ data: BatchMetadata;
114
114
  driverParam: string;
115
115
  notNull: false;
116
116
  hasDefault: false;
@@ -122,7 +122,26 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
122
122
  identity: undefined;
123
123
  generated: undefined;
124
124
  }, {}, {
125
- $type: object;
125
+ $type: BatchMetadata;
126
+ }>;
127
+ paymentsChecksum: drizzle_orm_sqlite_core.SQLiteColumn<{
128
+ name: "payments_checksum";
129
+ tableName: "batch";
130
+ dataType: "string";
131
+ columnType: "SQLiteText";
132
+ data: string;
133
+ driverParam: string;
134
+ notNull: false;
135
+ hasDefault: false;
136
+ isPrimaryKey: false;
137
+ isAutoincrement: false;
138
+ hasRuntimeDefault: false;
139
+ enumValues: [string, ...string[]];
140
+ baseColumn: never;
141
+ identity: undefined;
142
+ generated: undefined;
143
+ }, {}, {
144
+ length: number | undefined;
126
145
  }>;
127
146
  id: drizzle_orm_sqlite_core.SQLiteColumn<{
128
147
  name: "id";
@@ -380,7 +399,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
380
399
  tableName: "payment";
381
400
  dataType: "string";
382
401
  columnType: "SQLiteText";
383
- data: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
402
+ data: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
384
403
  driverParam: string;
385
404
  notNull: true;
386
405
  hasDefault: false;
@@ -393,7 +412,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
393
412
  generated: undefined;
394
413
  }, {}, {
395
414
  length: number | undefined;
396
- $type: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
415
+ $type: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
397
416
  }>;
398
417
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
399
418
  name: "status_reason";
@@ -893,6 +912,25 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
893
912
  }, {}, {
894
913
  length: number | undefined;
895
914
  }>;
915
+ name: drizzle_orm_sqlite_core.SQLiteColumn<{
916
+ name: "name";
917
+ tableName: "account";
918
+ dataType: "string";
919
+ columnType: "SQLiteText";
920
+ data: string;
921
+ driverParam: string;
922
+ notNull: false;
923
+ hasDefault: false;
924
+ isPrimaryKey: false;
925
+ isAutoincrement: false;
926
+ hasRuntimeDefault: false;
927
+ enumValues: [string, ...string[]];
928
+ baseColumn: never;
929
+ identity: undefined;
930
+ generated: undefined;
931
+ }, {}, {
932
+ length: number | undefined;
933
+ }>;
896
934
  iban: drizzle_orm_sqlite_core.SQLiteColumn<{
897
935
  name: "iban";
898
936
  tableName: "account";
@@ -1550,7 +1588,7 @@ type CurrencyCode = (typeof CURRENCY_CODES)[number];
1550
1588
  /**
1551
1589
  * Batch status constants
1552
1590
  */
1553
- declare const BATCH_STATUSES: readonly ["OPEN", "PROCESSING", "READY_TO_SIGN", "WAITING_FOR_PROCESSING", "PREPARED", "COMPLETED", "FAILED"];
1591
+ declare const BATCH_STATUSES: readonly ["OPEN", "FULL", "PROCESSING", "READY_TO_SIGN", "SIGNED", "SIGNATURE_FAILED", "FAILED"];
1554
1592
  /**
1555
1593
  * Type definition for batch status
1556
1594
  */
@@ -1573,19 +1611,19 @@ type WithStatus<T extends {
1573
1611
  };
1574
1612
  type PaymentFailedInsertType = WithStatus<PaymentInsertType, 'FAILED'>;
1575
1613
  type PaymentPreparedInsertType = WithStatus<PaymentInsertType, 'PREPARED'>;
1576
- type paymentInitializedInsertType = WithStatus<PaymentInsertType, 'INITIALIZED'>;
1614
+ type PaymentInitializedInsertType = WithStatus<PaymentInsertType, 'INITIALIZED'>;
1577
1615
  type BatchMetadata = {
1578
1616
  signHash: string;
1579
1617
  signId: string;
1580
1618
  };
1581
1619
  type InitiatedPayment = {
1582
1620
  authorizationUrl: string;
1583
- payment: paymentInitializedInsertType;
1621
+ payment: PaymentInitializedInsertType;
1584
1622
  };
1585
1623
  type InitiatedBatch = {
1586
1624
  id: string;
1587
1625
  authorizationUrls: string[];
1588
- payments: paymentInitializedInsertType[];
1626
+ payments: PaymentInitializedInsertType[];
1589
1627
  metadata?: BatchMetadata | null;
1590
1628
  };
1591
1629
  type ConnectedAccount = {
@@ -1676,6 +1714,25 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
1676
1714
  }, {}, {
1677
1715
  length: number | undefined;
1678
1716
  }>;
1717
+ name: drizzle_orm_sqlite_core.SQLiteColumn<{
1718
+ name: "name";
1719
+ tableName: "account";
1720
+ dataType: "string";
1721
+ columnType: "SQLiteText";
1722
+ data: string;
1723
+ driverParam: string;
1724
+ notNull: false;
1725
+ hasDefault: false;
1726
+ isPrimaryKey: false;
1727
+ isAutoincrement: false;
1728
+ hasRuntimeDefault: false;
1729
+ enumValues: [string, ...string[]];
1730
+ baseColumn: never;
1731
+ identity: undefined;
1732
+ generated: undefined;
1733
+ }, {}, {
1734
+ length: number | undefined;
1735
+ }>;
1679
1736
  iban: drizzle_orm_sqlite_core.SQLiteColumn<{
1680
1737
  name: "iban";
1681
1738
  tableName: "account";
@@ -2143,6 +2200,25 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
2143
2200
  }, {}, {
2144
2201
  length: number | undefined;
2145
2202
  }>;
2203
+ name: drizzle_orm_sqlite_core.SQLiteColumn<{
2204
+ name: "name";
2205
+ tableName: "account";
2206
+ dataType: "string";
2207
+ columnType: "SQLiteText";
2208
+ data: string;
2209
+ driverParam: string;
2210
+ notNull: false;
2211
+ hasDefault: false;
2212
+ isPrimaryKey: false;
2213
+ isAutoincrement: false;
2214
+ hasRuntimeDefault: false;
2215
+ enumValues: [string, ...string[]];
2216
+ baseColumn: never;
2217
+ identity: undefined;
2218
+ generated: undefined;
2219
+ }, {}, {
2220
+ length: number | undefined;
2221
+ }>;
2146
2222
  iban: drizzle_orm_sqlite_core.SQLiteColumn<{
2147
2223
  name: "iban";
2148
2224
  tableName: "account";
@@ -2610,6 +2686,25 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
2610
2686
  }, {}, {
2611
2687
  length: number | undefined;
2612
2688
  }>;
2689
+ name: drizzle_orm_sqlite_core.SQLiteColumn<{
2690
+ name: "name";
2691
+ tableName: "account";
2692
+ dataType: "string";
2693
+ columnType: "SQLiteText";
2694
+ data: string;
2695
+ driverParam: string;
2696
+ notNull: false;
2697
+ hasDefault: false;
2698
+ isPrimaryKey: false;
2699
+ isAutoincrement: false;
2700
+ hasRuntimeDefault: false;
2701
+ enumValues: [string, ...string[]];
2702
+ baseColumn: never;
2703
+ identity: undefined;
2704
+ generated: undefined;
2705
+ }, {}, {
2706
+ length: number | undefined;
2707
+ }>;
2613
2708
  iban: drizzle_orm_sqlite_core.SQLiteColumn<{
2614
2709
  name: "iban";
2615
2710
  tableName: "account";
@@ -3575,4 +3670,4 @@ type AccountCredentialsPatchType = z.infer<typeof accountCredentialsUpdateSchema
3575
3670
  type AccountCredentialsSelectType = z.infer<typeof accountCredentialsSelectSchema>;
3576
3671
 
3577
3672
  export { accountCredentialsInsertSchema as $, INSTRUCTION_PRIORITIES as E, PAYMENT_STATUSES as G, PAYMENT_DIRECTIONS as H, IBankConnector as I, ACCOUNT_STATUSES as K, COUNTRY_CODES as N, CONNECTOR_KEYS as R, CREDENTIALS_TYPES as S, TOKEN_TYPES as U, accountInsertSchema as W, accountUpdateSchema as X, accountSelectSchema as Y, accountCredentialsUpdateSchema as a0, accountCredentialsSelectSchema as a1, batch as a5, payment as a6, paymentRelations as a7, ott as a8, account as a9, accountCredentials as aa, tables as t, BATCH_STATUSES as w, PAYMENT_TYPES as x, CHARGE_BEARERS as z };
3578
- export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, ChargeBearer as D, InstructionPriority as F, PaymentDirection as J, LastSyncMetadata as L, AccountStatus as M, OutgoingPaymentMessage as O, PaymentSelectType as P, BankAccountWithLastSync as Q, CredentialsType as T, TokenType as V, AccountUpdateType as Z, AccountPatchType as _, ConnectorKey as a, AccountCredentialsUpdateType as a2, AccountCredentialsPatchType as a3, AccountCredentialsSelectType as a4, PaymentInsertType as b, IncomingPaymentMessage as c, InitiatedPayment as d, ConnectedAccount as e, AccountCredentialsInsertType as f, AccountInsertType as g, PaymentPreparedInsertType as h, InitiatedBatch as i, BatchMetadata as j, ParsedBankPayment as k, PaymentStatus as l, BatchStatus as m, CurrencyCode as n, BankCode as o, CountryCode as p, AuthInput as q, Currency as r, PaymentFailedInsertType as s, paymentInitializedInsertType as u, BatchInsertType as v, PaymentType as y };
3673
+ export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, ChargeBearer as D, InstructionPriority as F, PaymentDirection as J, LastSyncMetadata as L, AccountStatus as M, OutgoingPaymentMessage as O, PaymentSelectType as P, BankAccountWithLastSync as Q, CredentialsType as T, TokenType as V, AccountUpdateType as Z, AccountPatchType as _, ConnectorKey as a, AccountCredentialsUpdateType as a2, AccountCredentialsPatchType as a3, AccountCredentialsSelectType as a4, PaymentInsertType as b, BatchMetadata as c, IncomingPaymentMessage as d, InitiatedPayment as e, ConnectedAccount as f, AccountCredentialsInsertType as g, AccountInsertType as h, PaymentPreparedInsertType as i, InitiatedBatch as j, ParsedBankPayment as k, PaymentStatus as l, BatchStatus as m, CurrencyCode as n, BankCode as o, CountryCode as p, AuthInput as q, Currency as r, PaymentFailedInsertType as s, PaymentInitializedInsertType as u, BatchInsertType as v, PaymentType as y };
package/dist/types.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const database_schema = require('./shared/bank.NdqOkgpd.cjs');
4
- const mockCobs_connector = require('./shared/bank.CyinOg3r.cjs');
3
+ const database_schema = require('./shared/bank.CpcK1Dse.cjs');
4
+ const mockCobs_connector = require('./shared/bank.BGuS_o9V.cjs');
5
5
  const generalCodes = require('@develit-io/general-codes');
6
6
  require('@develit-io/backend-sdk');
7
7
  require('drizzle-orm/sqlite-core');
@@ -10,6 +10,7 @@ require('drizzle-orm');
10
10
  require('jose');
11
11
  require('drizzle-zod');
12
12
  require('drizzle-orm/relations');
13
+ require('node:crypto');
13
14
 
14
15
 
15
16
 
package/dist/types.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IBankConnector, c as IncomingPaymentMessage, d as InitiatedPayment, a as ConnectorKey, e as ConnectedAccount, f as AccountCredentialsInsertType, g as AccountInsertType, h as PaymentPreparedInsertType, i as InitiatedBatch, j as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.Cfz44GPA.cjs';
2
- export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema, u as paymentInitializedInsertType } from './shared/bank.Cfz44GPA.cjs';
1
+ import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.xrXNjWCo.cjs';
2
+ export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.xrXNjWCo.cjs';
3
3
  import { Environment, BaseEvent } from '@develit-io/backend-sdk';
4
4
  import { DrizzleD1Database } from 'drizzle-orm/d1';
5
5
  export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.cjs';
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IBankConnector, c as IncomingPaymentMessage, d as InitiatedPayment, a as ConnectorKey, e as ConnectedAccount, f as AccountCredentialsInsertType, g as AccountInsertType, h as PaymentPreparedInsertType, i as InitiatedBatch, j as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.Cfz44GPA.mjs';
2
- export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema, u as paymentInitializedInsertType } from './shared/bank.Cfz44GPA.mjs';
1
+ import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.xrXNjWCo.mjs';
2
+ export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.xrXNjWCo.mjs';
3
3
  import { Environment, BaseEvent } from '@develit-io/backend-sdk';
4
4
  import { DrizzleD1Database } from 'drizzle-orm/d1';
5
5
  export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.mjs';
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IBankConnector, c as IncomingPaymentMessage, d as InitiatedPayment, a as ConnectorKey, e as ConnectedAccount, f as AccountCredentialsInsertType, g as AccountInsertType, h as PaymentPreparedInsertType, i as InitiatedBatch, j as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.Cfz44GPA.js';
2
- export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema, u as paymentInitializedInsertType } from './shared/bank.Cfz44GPA.js';
1
+ import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.xrXNjWCo.js';
2
+ export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.xrXNjWCo.js';
3
3
  import { Environment, BaseEvent } from '@develit-io/backend-sdk';
4
4
  import { DrizzleD1Database } from 'drizzle-orm/d1';
5
5
  export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.js';
package/dist/types.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, g as CONNECTOR_KEYS, f as COUNTRY_CODES, h as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, c as INSTRUCTION_PRIORITIES, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, l as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, m as accountCredentialsUpdateSchema, i as accountInsertSchema, k as accountSelectSchema, j as accountUpdateSchema, o as ottInsertSchema, q as ottSelectSchema, p as ottUpdateSchema, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.DXn9jD0Q.mjs';
2
- export { M as MockCobsConnector } from './shared/bank.DKtu6cfY.mjs';
1
+ export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, g as CONNECTOR_KEYS, f as COUNTRY_CODES, h as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, c as INSTRUCTION_PRIORITIES, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, l as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, m as accountCredentialsUpdateSchema, i as accountInsertSchema, k as accountSelectSchema, j as accountUpdateSchema, o as ottInsertSchema, q as ottSelectSchema, p as ottUpdateSchema, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.lZMrqjVR.mjs';
2
+ export { M as MockCobsConnector } from './shared/bank.CthUj-ff.mjs';
3
3
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
4
4
  import '@develit-io/backend-sdk';
5
5
  import 'drizzle-orm/sqlite-core';
@@ -8,3 +8,4 @@ import 'drizzle-orm';
8
8
  import 'jose';
9
9
  import 'drizzle-zod';
10
10
  import 'drizzle-orm/relations';
11
+ import 'node:crypto';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "0.2.4",
3
+ "version": "0.3.1",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {