@develit-services/bank 0.7.0 → 0.7.2
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/README.md +381 -0
- package/dist/database/schema.cjs +1 -1
- 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 +1 -1
- package/dist/export/worker.cjs +47 -36
- package/dist/export/worker.d.cts +378 -77
- package/dist/export/worker.d.mts +378 -77
- package/dist/export/worker.d.ts +378 -77
- package/dist/export/worker.mjs +47 -36
- package/dist/export/workflows.cjs +24 -9
- package/dist/export/workflows.mjs +24 -9
- package/dist/export/wrangler.cjs +7 -0
- package/dist/export/wrangler.d.cts +7 -1
- package/dist/export/wrangler.d.mts +7 -1
- package/dist/export/wrangler.d.ts +7 -1
- package/dist/export/wrangler.mjs +7 -0
- package/dist/shared/{bank.Dq27-5wD.mjs → bank.4MQtZVnP.mjs} +366 -51
- package/dist/shared/{bank.Coi0lSqK.d.cts → bank.BC06Rbrx.d.cts} +1 -0
- package/dist/shared/{bank.Coi0lSqK.d.mts → bank.BC06Rbrx.d.mts} +1 -0
- package/dist/shared/{bank.Coi0lSqK.d.ts → bank.BC06Rbrx.d.ts} +1 -0
- package/dist/shared/{bank.DLWegh_f.mjs → bank.BnIYdBEF.mjs} +9 -0
- package/dist/shared/bank.C6_7Rch8.d.cts +4755 -0
- package/dist/shared/bank.C6_7Rch8.d.mts +4755 -0
- package/dist/shared/bank.C6_7Rch8.d.ts +4755 -0
- package/dist/shared/{bank.DNHA-HFP.cjs → bank.CNXTZfXB.cjs} +366 -51
- package/dist/shared/{bank.DEvSNsEs.cjs → bank.CTqIXnHg.cjs} +2 -2
- package/dist/shared/{bank.DFIwAQqg.mjs → bank.CTtFAN03.mjs} +1 -1
- package/dist/shared/{bank.BeIpkWR-.cjs → bank.D7kwLMqF.cjs} +9 -0
- package/dist/shared/{bank.c38V_FCq.cjs → bank.DlW1XNug.cjs} +1 -1
- package/dist/shared/{bank.pd7-Rbo-.mjs → bank.e8T8fQDG.mjs} +2 -2
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +452 -40
- package/dist/types.d.mts +452 -40
- package/dist/types.d.ts +452 -40
- package/dist/types.mjs +2 -2
- package/package.json +1 -1
- package/dist/shared/bank.Vj1x4v-K.d.cts +0 -2515
- package/dist/shared/bank.Vj1x4v-K.d.mts +0 -2515
- package/dist/shared/bank.Vj1x4v-K.d.ts +0 -2515
|
@@ -124,6 +124,9 @@ const batch = sqliteCore.sqliteTable("batch", {
|
|
|
124
124
|
statusResponse: sqliteCore.text("status_response", { mode: "json" }).$type(),
|
|
125
125
|
payments: sqliteCore.text("payments", { mode: "json" }).$type().notNull(),
|
|
126
126
|
metadata: sqliteCore.text("metadata", { mode: "json" }).$type(),
|
|
127
|
+
paymentType: sqliteCore.text("payment_type", {
|
|
128
|
+
enum: PAYMENT_TYPES
|
|
129
|
+
}).$type(),
|
|
127
130
|
paymentsChecksum: sqliteCore.text("payments_checksum")
|
|
128
131
|
});
|
|
129
132
|
|
|
@@ -153,6 +156,12 @@ const payment = sqliteCore.sqliteTable(
|
|
|
153
156
|
ss: sqliteCore.text("ss"),
|
|
154
157
|
ks: sqliteCore.text("ks"),
|
|
155
158
|
message: sqliteCore.text("message"),
|
|
159
|
+
chargeBearer: sqliteCore.text("charge_bearer", {
|
|
160
|
+
enum: CHARGE_BEARERS
|
|
161
|
+
}).$type(),
|
|
162
|
+
instructionPriority: sqliteCore.text("instruction_priority", {
|
|
163
|
+
enum: INSTRUCTION_PRIORITIES
|
|
164
|
+
}).$type(),
|
|
156
165
|
processedAt: sqliteCore.integer("processed_at", {
|
|
157
166
|
mode: "timestamp_ms"
|
|
158
167
|
}),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { uuidv4 } from '@develit-io/backend-sdk';
|
|
2
2
|
import { eq } from 'drizzle-orm';
|
|
3
|
-
import { s as schema } from './bank.
|
|
3
|
+
import { s as schema } from './bank.CTtFAN03.mjs';
|
|
4
4
|
import 'date-fns';
|
|
5
5
|
import '@develit-io/general-codes';
|
|
6
6
|
import 'jose';
|
|
7
|
-
import './bank.
|
|
7
|
+
import './bank.BnIYdBEF.mjs';
|
|
8
8
|
import { createHash } from 'node:crypto';
|
|
9
9
|
|
|
10
10
|
const createPaymentCommand = (db, { payment }) => {
|
package/dist/types.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const mock_connector = require('./shared/bank.
|
|
4
|
-
const payment_schema = require('./shared/bank.
|
|
3
|
+
const mock_connector = require('./shared/bank.CNXTZfXB.cjs');
|
|
4
|
+
const payment_schema = require('./shared/bank.D7kwLMqF.cjs');
|
|
5
5
|
const batchLifecycle = require('./shared/bank.Bg3Pdwm4.cjs');
|
|
6
6
|
const generalCodes = require('@develit-io/general-codes');
|
|
7
7
|
require('@develit-io/backend-sdk');
|