@develit-services/bank 0.6.0 → 0.7.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 (42) hide show
  1. package/README.md +381 -0
  2. package/dist/database/schema.cjs +1 -1
  3. package/dist/database/schema.d.cts +1 -1
  4. package/dist/database/schema.d.mts +1 -1
  5. package/dist/database/schema.d.ts +1 -1
  6. package/dist/database/schema.mjs +1 -1
  7. package/dist/export/worker.cjs +47 -36
  8. package/dist/export/worker.d.cts +76 -27
  9. package/dist/export/worker.d.mts +76 -27
  10. package/dist/export/worker.d.ts +76 -27
  11. package/dist/export/worker.mjs +47 -36
  12. package/dist/export/workflows.cjs +24 -9
  13. package/dist/export/workflows.mjs +25 -10
  14. package/dist/export/wrangler.cjs +7 -6
  15. package/dist/export/wrangler.d.cts +7 -1
  16. package/dist/export/wrangler.d.mts +7 -1
  17. package/dist/export/wrangler.d.ts +7 -1
  18. package/dist/export/wrangler.mjs +7 -6
  19. package/dist/shared/{bank.BHU46soy.d.ts → bank.BC06Rbrx.d.cts} +2 -1
  20. package/dist/shared/{bank.BHU46soy.d.cts → bank.BC06Rbrx.d.mts} +2 -1
  21. package/dist/shared/{bank.BHU46soy.d.mts → bank.BC06Rbrx.d.ts} +2 -1
  22. package/dist/shared/{bank.qc8ALZwm.mjs → bank.BnIYdBEF.mjs} +10 -1
  23. package/dist/shared/{bank.CsJuzqZH.d.cts → bank.C6_7Rch8.d.cts} +785 -30
  24. package/dist/shared/{bank.CsJuzqZH.d.mts → bank.C6_7Rch8.d.mts} +785 -30
  25. package/dist/shared/{bank.CsJuzqZH.d.ts → bank.C6_7Rch8.d.ts} +785 -30
  26. package/dist/shared/{bank.DEvSNsEs.cjs → bank.CTqIXnHg.cjs} +2 -2
  27. package/dist/shared/{bank.BUSlmr6r.mjs → bank.CTtFAN03.mjs} +1 -1
  28. package/dist/shared/{bank.Dpx6PvkA.mjs → bank.CbAwwIhZ.mjs} +1 -1
  29. package/dist/shared/{bank.B-ZnLUcL.mjs → bank.CkUMU1sJ.mjs} +368 -53
  30. package/dist/shared/{bank.BeIpkWR-.cjs → bank.D7kwLMqF.cjs} +9 -0
  31. package/dist/shared/{bank.c38V_FCq.cjs → bank.DlW1XNug.cjs} +1 -1
  32. package/dist/shared/{bank.B51e8oDT.mjs → bank.e8T8fQDG.mjs} +2 -2
  33. package/dist/shared/{bank.BJroS_i3.cjs → bank.iEgK7rge.cjs} +367 -52
  34. package/dist/types.cjs +2 -2
  35. package/dist/types.d.cts +244 -21
  36. package/dist/types.d.mts +244 -21
  37. package/dist/types.d.ts +244 -21
  38. package/dist/types.mjs +3 -3
  39. package/package.json +12 -14
  40. package/dist/shared/{bank.CDoYUKBx.d.cts → bank.BVIkpji3.d.cts} +2 -2
  41. package/dist/shared/{bank.CDoYUKBx.d.mts → bank.BVIkpji3.d.mts} +2 -2
  42. package/dist/shared/{bank.CDoYUKBx.d.ts → bank.BVIkpji3.d.ts} +2 -2
@@ -1,4 +1,4 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.BHU46soy.js';
1
+ import { B as BankServiceWranglerConfig } from '../shared/bank.BC06Rbrx.js';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
4
  vars: {
@@ -13,6 +13,7 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
13
13
  BANK_AUTH_RECIPIENT: string;
14
14
  DBUCS_BASE_URI: string;
15
15
  DBUCS_USERNAME: string;
16
+ DBUCS_TX_AUTH_URI: string;
16
17
  REDIRECT_URI: string;
17
18
  };
18
19
  services: {
@@ -37,6 +38,11 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
37
38
  binding: string;
38
39
  class_name: string;
39
40
  }[];
41
+ vpc_services: {
42
+ binding: string;
43
+ service_id: string;
44
+ remote: boolean;
45
+ }[];
40
46
  queues: {
41
47
  producers: {
42
48
  binding: string;
@@ -44,6 +44,13 @@ function defineBankServiceWrangler(config) {
44
44
  class_name: "BankProcessBatch"
45
45
  }
46
46
  ],
47
+ vpc_services: [
48
+ {
49
+ binding: "DBU_CBS_BACKOFFICE_DEV",
50
+ service_id: "019c2962-172c-75a2-a000-b76e246d25d7",
51
+ remote: true
52
+ }
53
+ ],
47
54
  queues: {
48
55
  producers: [
49
56
  {
@@ -78,12 +85,6 @@ function defineBankServiceWrangler(config) {
78
85
  ...envCfg.vars,
79
86
  ENVIRONMENT: envName
80
87
  },
81
- services: [
82
- {
83
- binding: "SECRETS_STORE",
84
- service: `${project}-secrets-store-${envName}`
85
- }
86
- ],
87
88
  triggers: envs.local.triggers,
88
89
  d1_databases: [
89
90
  {
@@ -31,6 +31,7 @@ interface BankServiceEnvironmentConfig {
31
31
  BANK_AUTH_RECIPIENT: string;
32
32
  DBUCS_BASE_URI: string;
33
33
  DBUCS_USERNAME: string;
34
+ DBUCS_TX_AUTH_URI: string;
34
35
  REDIRECT_URI: string;
35
36
  };
36
37
  }
@@ -45,4 +46,4 @@ interface BankServiceWranglerConfig {
45
46
  interface BankServiceEnv extends BankEnv {
46
47
  }
47
48
 
48
- export type { BankServiceWranglerConfig as B, BankServiceEnvironmentConfig as a, BankServiceEnv as b };
49
+ export type { BankServiceWranglerConfig as B, BankServiceEnv as a, BankServiceEnvironmentConfig as b };
@@ -31,6 +31,7 @@ interface BankServiceEnvironmentConfig {
31
31
  BANK_AUTH_RECIPIENT: string;
32
32
  DBUCS_BASE_URI: string;
33
33
  DBUCS_USERNAME: string;
34
+ DBUCS_TX_AUTH_URI: string;
34
35
  REDIRECT_URI: string;
35
36
  };
36
37
  }
@@ -45,4 +46,4 @@ interface BankServiceWranglerConfig {
45
46
  interface BankServiceEnv extends BankEnv {
46
47
  }
47
48
 
48
- export type { BankServiceWranglerConfig as B, BankServiceEnvironmentConfig as a, BankServiceEnv as b };
49
+ export type { BankServiceWranglerConfig as B, BankServiceEnv as a, BankServiceEnvironmentConfig as b };
@@ -31,6 +31,7 @@ interface BankServiceEnvironmentConfig {
31
31
  BANK_AUTH_RECIPIENT: string;
32
32
  DBUCS_BASE_URI: string;
33
33
  DBUCS_USERNAME: string;
34
+ DBUCS_TX_AUTH_URI: string;
34
35
  REDIRECT_URI: string;
35
36
  };
36
37
  }
@@ -45,4 +46,4 @@ interface BankServiceWranglerConfig {
45
46
  interface BankServiceEnv extends BankEnv {
46
47
  }
47
48
 
48
- export type { BankServiceWranglerConfig as B, BankServiceEnvironmentConfig as a, BankServiceEnv as b };
49
+ export type { BankServiceWranglerConfig as B, BankServiceEnv as a, BankServiceEnvironmentConfig as b };
@@ -122,6 +122,9 @@ const batch = sqliteTable("batch", {
122
122
  statusResponse: text("status_response", { mode: "json" }).$type(),
123
123
  payments: text("payments", { mode: "json" }).$type().notNull(),
124
124
  metadata: text("metadata", { mode: "json" }).$type(),
125
+ paymentType: text("payment_type", {
126
+ enum: PAYMENT_TYPES
127
+ }).$type(),
125
128
  paymentsChecksum: text("payments_checksum")
126
129
  });
127
130
 
@@ -151,6 +154,12 @@ const payment = sqliteTable(
151
154
  ss: text("ss"),
152
155
  ks: text("ks"),
153
156
  message: text("message"),
157
+ chargeBearer: text("charge_bearer", {
158
+ enum: CHARGE_BEARERS
159
+ }).$type(),
160
+ instructionPriority: text("instruction_priority", {
161
+ enum: INSTRUCTION_PRIORITIES
162
+ }).$type(),
154
163
  processedAt: integer("processed_at", {
155
164
  mode: "timestamp_ms"
156
165
  }),
@@ -165,4 +174,4 @@ const paymentRelations = relations(payment, ({ one }) => ({
165
174
  batch: one(batch, { fields: [payment.batchId], references: [batch.id] })
166
175
  }));
167
176
 
168
- export { ACCOUNT_STATUSES as A, BATCH_STATUSES as B, CHARGE_BEARERS as C, INSTRUCTION_PRIORITIES as I, PAYMENT_TYPES as P, TOKEN_TYPES as T, PAYMENT_STATUSES as a, PAYMENT_DIRECTIONS as b, COUNTRY_CODES as c, CONNECTOR_KEYS as d, CREDENTIALS_TYPES as e, accountInsertSchema as f, accountUpdateSchema as g, accountSelectSchema as h, accountCredentialsInsertSchema as i, accountCredentialsUpdateSchema as j, accountCredentialsSelectSchema as k, ottUpdateSchema as l, ottSelectSchema as m, account as n, ottInsertSchema as o, accountCredentials as p, batch as q, ott as r, payment as s, paymentRelations as t };
177
+ export { ACCOUNT_STATUSES as A, BATCH_STATUSES as B, CHARGE_BEARERS as C, INSTRUCTION_PRIORITIES as I, PAYMENT_DIRECTIONS as P, TOKEN_TYPES as T, CONNECTOR_KEYS as a, COUNTRY_CODES as b, CREDENTIALS_TYPES as c, PAYMENT_STATUSES as d, PAYMENT_TYPES as e, accountCredentialsInsertSchema as f, accountCredentialsSelectSchema as g, accountCredentialsUpdateSchema as h, accountInsertSchema as i, accountSelectSchema as j, accountUpdateSchema as k, ottSelectSchema as l, ottUpdateSchema as m, account as n, ottInsertSchema as o, accountCredentials as p, batch as q, ott as r, payment as s, paymentRelations as t };