@develit-services/bank 2.4.0 → 3.0.0

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 (38) hide show
  1. package/dist/database/schema.cjs +1 -10
  2. package/dist/database/schema.d.cts +3 -3
  3. package/dist/database/schema.d.mts +3 -3
  4. package/dist/database/schema.d.ts +3 -3
  5. package/dist/database/schema.mjs +1 -8
  6. package/dist/export/worker.cjs +137 -137
  7. package/dist/export/worker.d.cts +113 -449
  8. package/dist/export/worker.d.mts +113 -449
  9. package/dist/export/worker.d.ts +113 -449
  10. package/dist/export/worker.mjs +40 -40
  11. package/dist/export/workflows.cjs +29 -23
  12. package/dist/export/workflows.mjs +18 -12
  13. package/dist/export/wrangler.cjs +3 -11
  14. package/dist/export/wrangler.d.cts +1 -1
  15. package/dist/export/wrangler.d.mts +1 -1
  16. package/dist/export/wrangler.d.ts +1 -1
  17. package/dist/export/wrangler.mjs +3 -11
  18. package/dist/shared/bank.9Yw4KHyl.cjs +275 -0
  19. package/dist/shared/{bank.BI2OxQsM.d.mts → bank.BanqNaZK.d.cts} +9 -9
  20. package/dist/shared/{bank.fZkUcrn9.mjs → bank.ByesVuDp.mjs} +2 -1
  21. package/dist/shared/bank.BzDNLxB_.mjs +254 -0
  22. package/dist/shared/{bank.IlVbIEuM.mjs → bank.CTFqGRuY.mjs} +193 -433
  23. package/dist/shared/{bank.BJ_vbyUT.d.ts → bank.CVCyY-qU.d.cts} +1225 -3788
  24. package/dist/shared/{bank.BJ_vbyUT.d.cts → bank.CVCyY-qU.d.mts} +1225 -3788
  25. package/dist/shared/{bank.BJ_vbyUT.d.mts → bank.CVCyY-qU.d.ts} +1225 -3788
  26. package/dist/shared/{bank.Ca0iWjhb.d.cts → bank.DOlM7clW.d.mts} +9 -9
  27. package/dist/shared/{bank.B0I6H6AT.cjs → bank.OSj3Smwv.cjs} +17 -16
  28. package/dist/shared/{bank.Bs0isbAY.d.ts → bank.SoKDxQxH.d.ts} +9 -9
  29. package/dist/shared/{bank.c1sHv5v_.cjs → bank.pU2vSCUr.cjs} +200 -460
  30. package/dist/types.cjs +38 -38
  31. package/dist/types.d.cts +57 -450
  32. package/dist/types.d.mts +57 -450
  33. package/dist/types.d.ts +57 -450
  34. package/dist/types.mjs +4 -4
  35. package/package.json +6 -5
  36. package/dist/shared/{bank.Bz4DIxJL.d.cts → bank.C6sLje8B.d.cts} +3 -3
  37. package/dist/shared/{bank.Bz4DIxJL.d.mts → bank.C6sLje8B.d.mts} +3 -3
  38. package/dist/shared/{bank.Bz4DIxJL.d.ts → bank.C6sLje8B.d.ts} +3 -3
package/dist/types.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.BJ_vbyUT.js';
2
- export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BATCH_MODES, N as BATCH_STATUES, N as BATCH_STATUSES, O as BankAccountWithLastSync, Q as BankCode, R as BatchInsertType, S as BatchLifecycle, T as BatchMode, U as BatchPayment, B as BatchSelectType, V as BatchStatus, W as CHARGE_BEARERS, X as CONNECTOR_KEYS, Y as COUNTRY_CODES, Z as CREDENTIALS_TYPES, _ as ChargeBearer, $ as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a0 as CountryCode, a1 as CredentialsType, e as CurrencyCode, a2 as INSTRUCTION_PRIORITIES, a3 as InstructionPriority, L as LastSyncMetadata, a4 as PAYMENT_DIRECTIONS, a5 as PAYMENT_REQUEST_STATUSES, a6 as PAYMENT_STATUSES, a7 as PAYMENT_TYPES, a8 as PaymentDirection, a9 as PaymentFailedInsertType, aa as PaymentInsertType, ab as PaymentLifecycle, ac as PaymentPreparedInsertType, ad as PaymentStatus, ae as ProcessingBatch, af as ReadyToSignBatch, ag as ResolvedCredentials, ah as TOKEN_TYPES, ai as TokenType, aj as accountCredentialsInsertSchema, ak as accountCredentialsSelectSchema, al as accountCredentialsUpdateSchema, am as accountInsertSchema, an as accountSelectSchema, ao as accountUpdateSchema, ap as hasPaymentAccountAssigned, aq as isBatchAuthorized, ar as isBatchCompleted, as as isBatchFailed, at as isBatchInitiated, au as isBatchProcessing, av as isBatchReadyToSign, aw as isPaymentCompleted, ax as isPendingStatus, ay as isProcessedStatus, az as isTerminalStatus } from './shared/bank.BJ_vbyUT.js';
3
- import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.Bs0isbAY.js';
4
- export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.Bs0isbAY.js';
1
+ import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.CVCyY-qU.js';
2
+ export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BATCH_MODES, N as BATCH_STATUES, N as BATCH_STATUSES, O as BankAccountWithLastSync, Q as BankCode, R as BatchInsertType, S as BatchLifecycle, T as BatchMode, U as BatchPayment, B as BatchSelectType, V as BatchStatus, W as CHARGE_BEARERS, X as CONNECTOR_KEYS, Y as COUNTRY_CODES, Z as CREDENTIALS_TYPES, _ as ChargeBearer, $ as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a0 as CountryCode, a1 as CredentialsType, e as CurrencyCode, a2 as INSTRUCTION_PRIORITIES, a3 as InstructionPriority, L as LastSyncMetadata, a4 as PAYMENT_DIRECTIONS, a5 as PAYMENT_REQUEST_STATUSES, a6 as PAYMENT_STATUSES, a7 as PAYMENT_TYPES, a8 as PaymentDirection, a9 as PaymentFailedInsertType, aa as PaymentInsertType, ab as PaymentLifecycle, ac as PaymentPreparedInsertType, ad as PaymentStatus, ae as ProcessingBatch, af as ReadyToSignBatch, ag as ResolvedCredentials, ah as TOKEN_TYPES, ai as TokenType, aj as accountCredentialsInsertSchema, ak as accountCredentialsSelectSchema, al as accountCredentialsUpdateSchema, am as accountInsertSchema, an as accountSelectSchema, ao as accountUpdateSchema, ap as hasPaymentAccountAssigned, aq as isBatchAuthorized, ar as isBatchCompleted, as as isBatchFailed, at as isBatchInitiated, au as isBatchProcessing, av as isBatchReadyToSign, aw as isPaymentCompleted, ax as isPendingStatus, ay as isProcessedStatus, az as isTerminalStatus } from './shared/bank.CVCyY-qU.js';
3
+ import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.SoKDxQxH.js';
4
+ export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.SoKDxQxH.js';
5
5
  import { z } from 'zod';
6
- export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.Bz4DIxJL.js';
6
+ export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.C6sLje8B.js';
7
7
  import { BaseEvent } from '@develit-io/backend-sdk';
8
8
  import * as drizzle_zod from 'drizzle-zod';
9
+ import * as drizzle_orm from 'drizzle-orm';
9
10
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
10
11
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
11
- import 'drizzle-orm';
12
12
  import 'zod/v4/core';
13
13
 
14
14
  type FinbricksProvider = 'KB' | 'ERSTE' | 'CSOB' | 'MOCK_COBS' | 'CREDITAS' | 'FIO' | 'MONETA' | 'AIRBANK' | 'CSAS';
@@ -675,10 +675,9 @@ type BankPaymentRequestEvent = BaseEvent & {
675
675
 
676
676
  declare const ottInsertSchema: drizzle_zod.BuildSchema<"insert", {
677
677
  oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
678
- name: "one_time_token";
678
+ name: string;
679
679
  tableName: "ott";
680
680
  dataType: "string";
681
- columnType: "SQLiteText";
682
681
  data: string;
683
682
  driverParam: string;
684
683
  notNull: true;
@@ -690,14 +689,11 @@ declare const ottInsertSchema: drizzle_zod.BuildSchema<"insert", {
690
689
  baseColumn: never;
691
690
  identity: undefined;
692
691
  generated: undefined;
693
- }, {}, {
694
- length: number | undefined;
695
- }>;
692
+ }, {}>;
696
693
  refId: drizzle_orm_sqlite_core.SQLiteColumn<{
697
- name: "ref_id";
694
+ name: string;
698
695
  tableName: "ott";
699
696
  dataType: "string";
700
- columnType: "SQLiteText";
701
697
  data: string;
702
698
  driverParam: string;
703
699
  notNull: true;
@@ -709,14 +705,11 @@ declare const ottInsertSchema: drizzle_zod.BuildSchema<"insert", {
709
705
  baseColumn: never;
710
706
  identity: undefined;
711
707
  generated: undefined;
712
- }, {}, {
713
- length: number | undefined;
714
- }>;
708
+ }, {}>;
715
709
  tokenType: drizzle_orm_sqlite_core.SQLiteColumn<{
716
- name: "token_type";
710
+ name: string;
717
711
  tableName: "ott";
718
- dataType: "string";
719
- columnType: "SQLiteText";
712
+ dataType: "string enum";
720
713
  data: "ACCOUNT_AUTHORIZATION";
721
714
  driverParam: string;
722
715
  notNull: true;
@@ -728,15 +721,11 @@ declare const ottInsertSchema: drizzle_zod.BuildSchema<"insert", {
728
721
  baseColumn: never;
729
722
  identity: undefined;
730
723
  generated: undefined;
731
- }, {}, {
732
- length: number | undefined;
733
- $type: "ACCOUNT_AUTHORIZATION";
734
- }>;
724
+ }, {}>;
735
725
  expiresAt: drizzle_orm_sqlite_core.SQLiteColumn<{
736
- name: "expires_at";
726
+ name: string;
737
727
  tableName: "ott";
738
- dataType: "date";
739
- columnType: "SQLiteTimestamp";
728
+ dataType: "object date";
740
729
  data: Date;
741
730
  driverParam: number;
742
731
  notNull: true;
@@ -748,141 +737,20 @@ declare const ottInsertSchema: drizzle_zod.BuildSchema<"insert", {
748
737
  baseColumn: never;
749
738
  identity: undefined;
750
739
  generated: undefined;
751
- }, {}, {}>;
752
- id: drizzle_orm_sqlite_core.SQLiteColumn<{
753
- name: "id";
754
- tableName: "ott";
755
- dataType: "string";
756
- columnType: "SQLiteText";
757
- data: string;
758
- driverParam: string;
759
- notNull: true;
760
- hasDefault: false;
761
- isPrimaryKey: true;
762
- isAutoincrement: false;
763
- hasRuntimeDefault: false;
764
- enumValues: [string, ...string[]];
765
- baseColumn: never;
766
- identity: undefined;
767
- generated: undefined;
768
- }, {}, {
769
- length: number | undefined;
770
- }>;
771
- createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
772
- name: "created_at";
773
- tableName: "ott";
774
- dataType: "date";
775
- columnType: "SQLiteTimestamp";
776
- data: Date;
777
- driverParam: number;
778
- notNull: false;
779
- hasDefault: true;
780
- isPrimaryKey: false;
781
- isAutoincrement: false;
782
- hasRuntimeDefault: false;
783
- enumValues: undefined;
784
- baseColumn: never;
785
- identity: undefined;
786
- generated: undefined;
787
- }, {}, {}>;
788
- createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
789
- name: "created_by";
790
- tableName: "ott";
791
- dataType: "string";
792
- columnType: "SQLiteText";
793
- data: string;
794
- driverParam: string;
795
- notNull: false;
796
- hasDefault: true;
797
- isPrimaryKey: false;
798
- isAutoincrement: false;
799
- hasRuntimeDefault: false;
800
- enumValues: [string, ...string[]];
801
- baseColumn: never;
802
- identity: undefined;
803
- generated: undefined;
804
- }, {}, {
805
- length: number | undefined;
806
- }>;
807
- updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
808
- name: "updated_at";
809
- tableName: "ott";
810
- dataType: "date";
811
- columnType: "SQLiteTimestamp";
812
- data: Date;
813
- driverParam: number;
814
- notNull: false;
815
- hasDefault: true;
816
- isPrimaryKey: false;
817
- isAutoincrement: false;
818
- hasRuntimeDefault: false;
819
- enumValues: undefined;
820
- baseColumn: never;
821
- identity: undefined;
822
- generated: undefined;
823
- }, {}, {}>;
824
- updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
825
- name: "updated_by";
826
- tableName: "ott";
827
- dataType: "string";
828
- columnType: "SQLiteText";
829
- data: string;
830
- driverParam: string;
831
- notNull: false;
832
- hasDefault: true;
833
- isPrimaryKey: false;
834
- isAutoincrement: false;
835
- hasRuntimeDefault: false;
836
- enumValues: [string, ...string[]];
837
- baseColumn: never;
838
- identity: undefined;
839
- generated: undefined;
840
- }, {}, {
841
- length: number | undefined;
842
- }>;
843
- deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
844
- name: "deleted_at";
845
- tableName: "ott";
846
- dataType: "date";
847
- columnType: "SQLiteTimestamp";
848
- data: Date;
849
- driverParam: number;
850
- notNull: false;
851
- hasDefault: true;
852
- isPrimaryKey: false;
853
- isAutoincrement: false;
854
- hasRuntimeDefault: false;
855
- enumValues: undefined;
856
- baseColumn: never;
857
- identity: undefined;
858
- generated: undefined;
859
- }, {}, {}>;
860
- deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
861
- name: "deleted_by";
862
- tableName: "ott";
863
- dataType: "string";
864
- columnType: "SQLiteText";
865
- data: string;
866
- driverParam: string;
867
- notNull: false;
868
- hasDefault: true;
869
- isPrimaryKey: false;
870
- isAutoincrement: false;
871
- hasRuntimeDefault: false;
872
- enumValues: [string, ...string[]];
873
- baseColumn: never;
874
- identity: undefined;
875
- generated: undefined;
876
- }, {}, {
877
- length: number | undefined;
878
- }>;
740
+ }, {}>;
741
+ id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
742
+ createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
743
+ createdBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>>;
744
+ updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
745
+ updatedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>>;
746
+ deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
747
+ deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
879
748
  }, undefined, undefined>;
880
749
  declare const ottUpdateSchema: drizzle_zod.BuildSchema<"update", {
881
750
  oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
882
- name: "one_time_token";
751
+ name: string;
883
752
  tableName: "ott";
884
753
  dataType: "string";
885
- columnType: "SQLiteText";
886
754
  data: string;
887
755
  driverParam: string;
888
756
  notNull: true;
@@ -894,14 +762,11 @@ declare const ottUpdateSchema: drizzle_zod.BuildSchema<"update", {
894
762
  baseColumn: never;
895
763
  identity: undefined;
896
764
  generated: undefined;
897
- }, {}, {
898
- length: number | undefined;
899
- }>;
765
+ }, {}>;
900
766
  refId: drizzle_orm_sqlite_core.SQLiteColumn<{
901
- name: "ref_id";
767
+ name: string;
902
768
  tableName: "ott";
903
769
  dataType: "string";
904
- columnType: "SQLiteText";
905
770
  data: string;
906
771
  driverParam: string;
907
772
  notNull: true;
@@ -913,14 +778,11 @@ declare const ottUpdateSchema: drizzle_zod.BuildSchema<"update", {
913
778
  baseColumn: never;
914
779
  identity: undefined;
915
780
  generated: undefined;
916
- }, {}, {
917
- length: number | undefined;
918
- }>;
781
+ }, {}>;
919
782
  tokenType: drizzle_orm_sqlite_core.SQLiteColumn<{
920
- name: "token_type";
783
+ name: string;
921
784
  tableName: "ott";
922
- dataType: "string";
923
- columnType: "SQLiteText";
785
+ dataType: "string enum";
924
786
  data: "ACCOUNT_AUTHORIZATION";
925
787
  driverParam: string;
926
788
  notNull: true;
@@ -932,15 +794,11 @@ declare const ottUpdateSchema: drizzle_zod.BuildSchema<"update", {
932
794
  baseColumn: never;
933
795
  identity: undefined;
934
796
  generated: undefined;
935
- }, {}, {
936
- length: number | undefined;
937
- $type: "ACCOUNT_AUTHORIZATION";
938
- }>;
797
+ }, {}>;
939
798
  expiresAt: drizzle_orm_sqlite_core.SQLiteColumn<{
940
- name: "expires_at";
799
+ name: string;
941
800
  tableName: "ott";
942
- dataType: "date";
943
- columnType: "SQLiteTimestamp";
801
+ dataType: "object date";
944
802
  data: Date;
945
803
  driverParam: number;
946
804
  notNull: true;
@@ -952,141 +810,20 @@ declare const ottUpdateSchema: drizzle_zod.BuildSchema<"update", {
952
810
  baseColumn: never;
953
811
  identity: undefined;
954
812
  generated: undefined;
955
- }, {}, {}>;
956
- id: drizzle_orm_sqlite_core.SQLiteColumn<{
957
- name: "id";
958
- tableName: "ott";
959
- dataType: "string";
960
- columnType: "SQLiteText";
961
- data: string;
962
- driverParam: string;
963
- notNull: true;
964
- hasDefault: false;
965
- isPrimaryKey: true;
966
- isAutoincrement: false;
967
- hasRuntimeDefault: false;
968
- enumValues: [string, ...string[]];
969
- baseColumn: never;
970
- identity: undefined;
971
- generated: undefined;
972
- }, {}, {
973
- length: number | undefined;
974
- }>;
975
- createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
976
- name: "created_at";
977
- tableName: "ott";
978
- dataType: "date";
979
- columnType: "SQLiteTimestamp";
980
- data: Date;
981
- driverParam: number;
982
- notNull: false;
983
- hasDefault: true;
984
- isPrimaryKey: false;
985
- isAutoincrement: false;
986
- hasRuntimeDefault: false;
987
- enumValues: undefined;
988
- baseColumn: never;
989
- identity: undefined;
990
- generated: undefined;
991
- }, {}, {}>;
992
- createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
993
- name: "created_by";
994
- tableName: "ott";
995
- dataType: "string";
996
- columnType: "SQLiteText";
997
- data: string;
998
- driverParam: string;
999
- notNull: false;
1000
- hasDefault: true;
1001
- isPrimaryKey: false;
1002
- isAutoincrement: false;
1003
- hasRuntimeDefault: false;
1004
- enumValues: [string, ...string[]];
1005
- baseColumn: never;
1006
- identity: undefined;
1007
- generated: undefined;
1008
- }, {}, {
1009
- length: number | undefined;
1010
- }>;
1011
- updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1012
- name: "updated_at";
1013
- tableName: "ott";
1014
- dataType: "date";
1015
- columnType: "SQLiteTimestamp";
1016
- data: Date;
1017
- driverParam: number;
1018
- notNull: false;
1019
- hasDefault: true;
1020
- isPrimaryKey: false;
1021
- isAutoincrement: false;
1022
- hasRuntimeDefault: false;
1023
- enumValues: undefined;
1024
- baseColumn: never;
1025
- identity: undefined;
1026
- generated: undefined;
1027
- }, {}, {}>;
1028
- updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
1029
- name: "updated_by";
1030
- tableName: "ott";
1031
- dataType: "string";
1032
- columnType: "SQLiteText";
1033
- data: string;
1034
- driverParam: string;
1035
- notNull: false;
1036
- hasDefault: true;
1037
- isPrimaryKey: false;
1038
- isAutoincrement: false;
1039
- hasRuntimeDefault: false;
1040
- enumValues: [string, ...string[]];
1041
- baseColumn: never;
1042
- identity: undefined;
1043
- generated: undefined;
1044
- }, {}, {
1045
- length: number | undefined;
1046
- }>;
1047
- deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1048
- name: "deleted_at";
1049
- tableName: "ott";
1050
- dataType: "date";
1051
- columnType: "SQLiteTimestamp";
1052
- data: Date;
1053
- driverParam: number;
1054
- notNull: false;
1055
- hasDefault: true;
1056
- isPrimaryKey: false;
1057
- isAutoincrement: false;
1058
- hasRuntimeDefault: false;
1059
- enumValues: undefined;
1060
- baseColumn: never;
1061
- identity: undefined;
1062
- generated: undefined;
1063
- }, {}, {}>;
1064
- deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
1065
- name: "deleted_by";
1066
- tableName: "ott";
1067
- dataType: "string";
1068
- columnType: "SQLiteText";
1069
- data: string;
1070
- driverParam: string;
1071
- notNull: false;
1072
- hasDefault: true;
1073
- isPrimaryKey: false;
1074
- isAutoincrement: false;
1075
- hasRuntimeDefault: false;
1076
- enumValues: [string, ...string[]];
1077
- baseColumn: never;
1078
- identity: undefined;
1079
- generated: undefined;
1080
- }, {}, {
1081
- length: number | undefined;
1082
- }>;
813
+ }, {}>;
814
+ id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
815
+ createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
816
+ createdBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>>;
817
+ updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
818
+ updatedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>>;
819
+ deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
820
+ deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
1083
821
  }, undefined, undefined>;
1084
822
  declare const ottSelectSchema: drizzle_zod.BuildSchema<"select", {
1085
823
  oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
1086
- name: "one_time_token";
824
+ name: string;
1087
825
  tableName: "ott";
1088
826
  dataType: "string";
1089
- columnType: "SQLiteText";
1090
827
  data: string;
1091
828
  driverParam: string;
1092
829
  notNull: true;
@@ -1098,14 +835,11 @@ declare const ottSelectSchema: drizzle_zod.BuildSchema<"select", {
1098
835
  baseColumn: never;
1099
836
  identity: undefined;
1100
837
  generated: undefined;
1101
- }, {}, {
1102
- length: number | undefined;
1103
- }>;
838
+ }, {}>;
1104
839
  refId: drizzle_orm_sqlite_core.SQLiteColumn<{
1105
- name: "ref_id";
840
+ name: string;
1106
841
  tableName: "ott";
1107
842
  dataType: "string";
1108
- columnType: "SQLiteText";
1109
843
  data: string;
1110
844
  driverParam: string;
1111
845
  notNull: true;
@@ -1117,14 +851,11 @@ declare const ottSelectSchema: drizzle_zod.BuildSchema<"select", {
1117
851
  baseColumn: never;
1118
852
  identity: undefined;
1119
853
  generated: undefined;
1120
- }, {}, {
1121
- length: number | undefined;
1122
- }>;
854
+ }, {}>;
1123
855
  tokenType: drizzle_orm_sqlite_core.SQLiteColumn<{
1124
- name: "token_type";
856
+ name: string;
1125
857
  tableName: "ott";
1126
- dataType: "string";
1127
- columnType: "SQLiteText";
858
+ dataType: "string enum";
1128
859
  data: "ACCOUNT_AUTHORIZATION";
1129
860
  driverParam: string;
1130
861
  notNull: true;
@@ -1136,15 +867,11 @@ declare const ottSelectSchema: drizzle_zod.BuildSchema<"select", {
1136
867
  baseColumn: never;
1137
868
  identity: undefined;
1138
869
  generated: undefined;
1139
- }, {}, {
1140
- length: number | undefined;
1141
- $type: "ACCOUNT_AUTHORIZATION";
1142
- }>;
870
+ }, {}>;
1143
871
  expiresAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1144
- name: "expires_at";
872
+ name: string;
1145
873
  tableName: "ott";
1146
- dataType: "date";
1147
- columnType: "SQLiteTimestamp";
874
+ dataType: "object date";
1148
875
  data: Date;
1149
876
  driverParam: number;
1150
877
  notNull: true;
@@ -1156,134 +883,14 @@ declare const ottSelectSchema: drizzle_zod.BuildSchema<"select", {
1156
883
  baseColumn: never;
1157
884
  identity: undefined;
1158
885
  generated: undefined;
1159
- }, {}, {}>;
1160
- id: drizzle_orm_sqlite_core.SQLiteColumn<{
1161
- name: "id";
1162
- tableName: "ott";
1163
- dataType: "string";
1164
- columnType: "SQLiteText";
1165
- data: string;
1166
- driverParam: string;
1167
- notNull: true;
1168
- hasDefault: false;
1169
- isPrimaryKey: true;
1170
- isAutoincrement: false;
1171
- hasRuntimeDefault: false;
1172
- enumValues: [string, ...string[]];
1173
- baseColumn: never;
1174
- identity: undefined;
1175
- generated: undefined;
1176
- }, {}, {
1177
- length: number | undefined;
1178
- }>;
1179
- createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1180
- name: "created_at";
1181
- tableName: "ott";
1182
- dataType: "date";
1183
- columnType: "SQLiteTimestamp";
1184
- data: Date;
1185
- driverParam: number;
1186
- notNull: false;
1187
- hasDefault: true;
1188
- isPrimaryKey: false;
1189
- isAutoincrement: false;
1190
- hasRuntimeDefault: false;
1191
- enumValues: undefined;
1192
- baseColumn: never;
1193
- identity: undefined;
1194
- generated: undefined;
1195
- }, {}, {}>;
1196
- createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
1197
- name: "created_by";
1198
- tableName: "ott";
1199
- dataType: "string";
1200
- columnType: "SQLiteText";
1201
- data: string;
1202
- driverParam: string;
1203
- notNull: false;
1204
- hasDefault: true;
1205
- isPrimaryKey: false;
1206
- isAutoincrement: false;
1207
- hasRuntimeDefault: false;
1208
- enumValues: [string, ...string[]];
1209
- baseColumn: never;
1210
- identity: undefined;
1211
- generated: undefined;
1212
- }, {}, {
1213
- length: number | undefined;
1214
- }>;
1215
- updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1216
- name: "updated_at";
1217
- tableName: "ott";
1218
- dataType: "date";
1219
- columnType: "SQLiteTimestamp";
1220
- data: Date;
1221
- driverParam: number;
1222
- notNull: false;
1223
- hasDefault: true;
1224
- isPrimaryKey: false;
1225
- isAutoincrement: false;
1226
- hasRuntimeDefault: false;
1227
- enumValues: undefined;
1228
- baseColumn: never;
1229
- identity: undefined;
1230
- generated: undefined;
1231
- }, {}, {}>;
1232
- updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
1233
- name: "updated_by";
1234
- tableName: "ott";
1235
- dataType: "string";
1236
- columnType: "SQLiteText";
1237
- data: string;
1238
- driverParam: string;
1239
- notNull: false;
1240
- hasDefault: true;
1241
- isPrimaryKey: false;
1242
- isAutoincrement: false;
1243
- hasRuntimeDefault: false;
1244
- enumValues: [string, ...string[]];
1245
- baseColumn: never;
1246
- identity: undefined;
1247
- generated: undefined;
1248
- }, {}, {
1249
- length: number | undefined;
1250
- }>;
1251
- deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1252
- name: "deleted_at";
1253
- tableName: "ott";
1254
- dataType: "date";
1255
- columnType: "SQLiteTimestamp";
1256
- data: Date;
1257
- driverParam: number;
1258
- notNull: false;
1259
- hasDefault: true;
1260
- isPrimaryKey: false;
1261
- isAutoincrement: false;
1262
- hasRuntimeDefault: false;
1263
- enumValues: undefined;
1264
- baseColumn: never;
1265
- identity: undefined;
1266
- generated: undefined;
1267
- }, {}, {}>;
1268
- deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
1269
- name: "deleted_by";
1270
- tableName: "ott";
1271
- dataType: "string";
1272
- columnType: "SQLiteText";
1273
- data: string;
1274
- driverParam: string;
1275
- notNull: false;
1276
- hasDefault: true;
1277
- isPrimaryKey: false;
1278
- isAutoincrement: false;
1279
- hasRuntimeDefault: false;
1280
- enumValues: [string, ...string[]];
1281
- baseColumn: never;
1282
- identity: undefined;
1283
- generated: undefined;
1284
- }, {}, {
1285
- length: number | undefined;
1286
- }>;
886
+ }, {}>;
887
+ id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
888
+ createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
889
+ createdBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>>;
890
+ updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
891
+ updatedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>>;
892
+ deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
893
+ deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
1287
894
  }, undefined, undefined>;
1288
895
 
1289
896
  type OneTimeTokenInsertType = Omit<z.infer<typeof ottInsertSchema>, 'id'> & {
package/dist/types.mjs CHANGED
@@ -1,12 +1,12 @@
1
- export { A as ACCOUNT_STATUSES, B as BATCH_MODES, a as BATCH_STATUES, a as BATCH_STATUSES, C as CHARGE_BEARERS, b as CONNECTOR_KEYS, c as COUNTRY_CODES, d as CREDENTIALS_TYPES, e as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, f as FinbricksClient, g as FinbricksConnector, I as IBankConnector, h as INSTRUCTION_PRIORITIES, K as KBConnector, M as MockCobsConnector, i as MockConnector, P as PAYMENT_DIRECTIONS, j as PAYMENT_REQUEST_STATUSES, k as PAYMENT_STATUSES, l as PAYMENT_TYPES, T as TOKEN_TYPES, m as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, o as accountCredentialsUpdateSchema, p as accountInsertSchema, q as accountSelectSchema, r as accountUpdateSchema, s as assignAccount, t as dbuAccountConfigSchema, u as hasPaymentAccountAssigned, v as isPaymentCompleted, w as isPendingStatus, x as isProcessedStatus, y as isTerminalStatus, z as ottInsertSchema, G as ottSelectSchema, H as ottUpdateSchema, J as signFinbricksJws, L as toBatchedPayment, N as toBatchedPaymentFromPaymentRequest, O as toCompletedPayment, Q as toIncomingPayment, R as toPaymentRequestInsert, S as toPreparedPayment, U as useFinbricksFetch } from './shared/bank.IlVbIEuM.mjs';
1
+ export { C as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, K as KBConnector, M as MockCobsConnector, c as MockConnector, d as accountCredentialsInsertSchema, e as accountCredentialsSelectSchema, f as accountCredentialsUpdateSchema, g as accountInsertSchema, h as accountSelectSchema, i as accountUpdateSchema, j as assignAccount, k as dbuAccountConfigSchema, l as hasPaymentAccountAssigned, m as isPaymentCompleted, n as isPendingStatus, o as isProcessedStatus, p as isTerminalStatus, q as ottInsertSchema, r as ottSelectSchema, s as ottUpdateSchema, t as signFinbricksJws, u as toBatchedPayment, v as toBatchedPaymentFromPaymentRequest, w as toCompletedPayment, x as toIncomingPayment, y as toPaymentRequestInsert, z as toPreparedPayment, A as useFinbricksFetch } from './shared/bank.CTFqGRuY.mjs';
2
+ export { A as ACCOUNT_STATUSES, B as BATCH_MODES, a as BATCH_STATUES, a as BATCH_STATUSES, C as CHARGE_BEARERS, b as CONNECTOR_KEYS, c as COUNTRY_CODES, d as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, P as PAYMENT_DIRECTIONS, e as PAYMENT_REQUEST_STATUSES, f as PAYMENT_STATUSES, g as PAYMENT_TYPES, T as TOKEN_TYPES } from './shared/bank.BzDNLxB_.mjs';
2
3
  export { i as isBatchAuthorized, a as isBatchCompleted, b as isBatchFailed, c as isBatchInitiated, d as isBatchProcessing, e as isBatchReadyToSign } from './shared/bank.XqSw509X.mjs';
3
4
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
4
5
  import '@develit-io/backend-sdk';
5
- import 'drizzle-orm/sqlite-core';
6
6
  import 'date-fns';
7
7
  import 'jose';
8
8
  import 'zod';
9
- import 'drizzle-orm/relations';
10
9
  import 'drizzle-orm';
11
- import 'node:crypto';
12
10
  import 'drizzle-zod';
11
+ import 'node:crypto';
12
+ import 'drizzle-orm/sqlite-core';