@develit-services/bank 1.1.10 → 2.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.
- 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 +4 -4
- package/dist/export/worker.d.cts +552 -385
- package/dist/export/worker.d.mts +552 -385
- package/dist/export/worker.d.ts +552 -385
- package/dist/export/worker.mjs +4 -4
- package/dist/export/workflows.cjs +3 -3
- package/dist/export/workflows.mjs +3 -3
- package/dist/shared/{bank.DKhgxX0w.cjs → bank.B0EWZbAs.cjs} +1 -1
- package/dist/shared/{bank.D-UVTx8r.d.mts → bank.BYUn0j0r.d.mts} +1 -1
- package/dist/shared/{bank.D9mKm0Ix.d.cts → bank.Bl1DnY7_.d.cts} +1 -1
- package/dist/shared/{bank.ab5nxoKB.mjs → bank.BsKwYyaC.mjs} +1 -1
- package/dist/shared/{bank.B0AyRMDu.mjs → bank.C7MA33AX.mjs} +6 -6
- package/dist/shared/{bank.BsrwccTg.cjs → bank.CIWYI18z.cjs} +6 -6
- package/dist/shared/{bank.DR1M9uz_.cjs → bank.CpEGzmAr.cjs} +1 -1
- package/dist/shared/{bank.BHHZnzlp.d.ts → bank.Dg_QI-D5.d.ts} +1 -1
- package/dist/shared/{bank.C8ZtMWui.d.mts → bank.NqesB7DM.d.cts} +1818 -1317
- package/dist/shared/{bank.C8ZtMWui.d.ts → bank.NqesB7DM.d.mts} +1818 -1317
- package/dist/shared/{bank.C8ZtMWui.d.cts → bank.NqesB7DM.d.ts} +1818 -1317
- package/dist/shared/{bank.DPpxjTzG.mjs → bank.UBWdag5k.mjs} +1 -1
- package/dist/types.cjs +2 -2
- 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 +2 -2
- package/package.json +1 -1
package/dist/export/worker.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { uuidv4, first, buildMultiFilterConditions as buildMultiFilterConditions$1, bankAccountMetadataSchema, structuredAddressSchema, workflowInstanceStatusSchema, develitWorker, createInternalError, action, service } from '@develit-io/backend-sdk';
|
|
2
|
-
import { v as tables, I as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, g as PAYMENT_TYPES, b as CONNECTOR_KEYS, a as BATCH_STATUSES, f as PAYMENT_STATUSES, P as PAYMENT_DIRECTIONS, k as accountInsertSchema, e as PAYMENT_REQUEST_STATUSES, q as isProcessedStatus, r as isTerminalStatus, w as getNonTerminalPaymentRequestsQuery } from '../shared/bank.
|
|
2
|
+
import { v as tables, I as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, g as PAYMENT_TYPES, b as CONNECTOR_KEYS, a as BATCH_STATUSES, f as PAYMENT_STATUSES, P as PAYMENT_DIRECTIONS, k as accountInsertSchema, e as PAYMENT_REQUEST_STATUSES, q as isProcessedStatus, r as isTerminalStatus, w as getNonTerminalPaymentRequestsQuery } from '../shared/bank.C7MA33AX.mjs';
|
|
3
3
|
import { eq, sql, and, like, asc, desc, inArray, gte, lte, isNull, count } from 'drizzle-orm';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { drizzle } from 'drizzle-orm/d1';
|
|
6
|
-
import { j as initiateConnector, g as toIncomingPayment, d as assignAccount, t as toBatchedPayment, h as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from '../shared/bank.
|
|
6
|
+
import { j as initiateConnector, g as toIncomingPayment, d as assignAccount, t as toBatchedPayment, h as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from '../shared/bank.BsKwYyaC.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
10
10
|
import 'date-fns';
|
|
11
11
|
import 'node:crypto';
|
|
12
|
-
import { h as encrypt, d as createCredentialsResolver, e as updatePaymentRequestStatusCommand, a as getPaymentRequestsByBatchIdQuery, g as getBatchByIdQuery, u as upsertBatchCommand, i as importAesKey, f as createPaymentCommand, b as getAccountByIdQuery } from '../shared/bank.
|
|
12
|
+
import { h as encrypt, d as createCredentialsResolver, e as updatePaymentRequestStatusCommand, a as getPaymentRequestsByBatchIdQuery, g as getBatchByIdQuery, u as upsertBatchCommand, i as importAesKey, f as createPaymentCommand, b as getAccountByIdQuery } from '../shared/bank.UBWdag5k.mjs';
|
|
13
13
|
import 'drizzle-orm/sqlite-core';
|
|
14
14
|
import 'drizzle-orm/relations';
|
|
15
15
|
import 'drizzle-zod';
|
|
@@ -1611,7 +1611,7 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
1611
1611
|
...account,
|
|
1612
1612
|
id: accountId,
|
|
1613
1613
|
status: "DISABLED",
|
|
1614
|
-
address: account.address
|
|
1614
|
+
address: account.address
|
|
1615
1615
|
}
|
|
1616
1616
|
});
|
|
1617
1617
|
const { command: deleteCredentials } = deleteAccountCredentialsCommand(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const database_schema = require('../shared/bank.
|
|
4
|
+
const database_schema = require('../shared/bank.CIWYI18z.cjs');
|
|
5
5
|
const batchLifecycle = require('../shared/bank.NF8bZBy0.cjs');
|
|
6
|
-
const mock_connector = require('../shared/bank.
|
|
6
|
+
const mock_connector = require('../shared/bank.CpEGzmAr.cjs');
|
|
7
7
|
const drizzleOrm = require('drizzle-orm');
|
|
8
|
-
const credentialsResolver = require('../shared/bank.
|
|
8
|
+
const credentialsResolver = require('../shared/bank.B0EWZbAs.cjs');
|
|
9
9
|
const cloudflare_workers = require('cloudflare:workers');
|
|
10
10
|
const cloudflare_workflows = require('cloudflare:workflows');
|
|
11
11
|
const d1 = require('drizzle-orm/d1');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { first, uuidv4, asNonEmpty } from '@develit-io/backend-sdk';
|
|
2
|
-
import { v as tables, o as isPaymentCompleted } from '../shared/bank.
|
|
2
|
+
import { v as tables, o as isPaymentCompleted } from '../shared/bank.C7MA33AX.mjs';
|
|
3
3
|
import { i as isBatchAuthorized, b as isBatchFailed, d as isBatchProcessing } from '../shared/bank.XqSw509X.mjs';
|
|
4
|
-
import { e as toBatchedPaymentFromPaymentRequest, i as toPreparedPayment, j as initiateConnector } from '../shared/bank.
|
|
4
|
+
import { e as toBatchedPaymentFromPaymentRequest, i as toPreparedPayment, j as initiateConnector } from '../shared/bank.BsKwYyaC.mjs';
|
|
5
5
|
import { eq, and, inArray } from 'drizzle-orm';
|
|
6
|
-
import { g as getBatchByIdQuery, a as getPaymentRequestsByBatchIdQuery, c as checksum, u as upsertBatchCommand, b as getAccountByIdQuery, d as createCredentialsResolver, e as updatePaymentRequestStatusCommand, f as createPaymentCommand } from '../shared/bank.
|
|
6
|
+
import { g as getBatchByIdQuery, a as getPaymentRequestsByBatchIdQuery, c as checksum, u as upsertBatchCommand, b as getAccountByIdQuery, d as createCredentialsResolver, e as updatePaymentRequestStatusCommand, f as createPaymentCommand } from '../shared/bank.UBWdag5k.mjs';
|
|
7
7
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
8
8
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
9
9
|
import { drizzle } from 'drizzle-orm/d1';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const drizzleOrm = require('drizzle-orm');
|
|
4
|
-
const database_schema = require('./bank.
|
|
4
|
+
const database_schema = require('./bank.CIWYI18z.cjs');
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
6
|
require('date-fns');
|
|
7
7
|
require('jose');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.NqesB7DM.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.NqesB7DM.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { uuidv4, createInternalError, useResult } from '@develit-io/backend-sdk';
|
|
2
2
|
import { format, parseISO } from 'date-fns';
|
|
3
3
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
4
|
-
import './bank.
|
|
4
|
+
import './bank.C7MA33AX.mjs';
|
|
5
5
|
import 'drizzle-orm';
|
|
6
6
|
import { importPKCS8, SignJWT } from 'jose';
|
|
7
7
|
import 'node:crypto';
|
|
@@ -123,14 +123,14 @@ const account = sqliteTable(
|
|
|
123
123
|
(t) => [unique().on(t.iban)]
|
|
124
124
|
);
|
|
125
125
|
|
|
126
|
-
const accountInsertSchema = createInsertSchema(account
|
|
127
|
-
address: structuredAddressSchema.optional()
|
|
126
|
+
const accountInsertSchema = createInsertSchema(account, {
|
|
127
|
+
address: () => structuredAddressSchema.optional()
|
|
128
128
|
});
|
|
129
|
-
const accountUpdateSchema = createUpdateSchema(account
|
|
130
|
-
address: structuredAddressSchema.optional()
|
|
129
|
+
const accountUpdateSchema = createUpdateSchema(account, {
|
|
130
|
+
address: () => structuredAddressSchema.optional()
|
|
131
131
|
});
|
|
132
|
-
const accountSelectSchema = createSelectSchema(account
|
|
133
|
-
address: structuredAddressSchema.nullable()
|
|
132
|
+
const accountSelectSchema = createSelectSchema(account, {
|
|
133
|
+
address: () => structuredAddressSchema.nullable()
|
|
134
134
|
});
|
|
135
135
|
|
|
136
136
|
const accountCredentials = sqliteTable("account_credentials", {
|
|
@@ -125,14 +125,14 @@ const account = sqliteCore.sqliteTable(
|
|
|
125
125
|
(t) => [sqliteCore.unique().on(t.iban)]
|
|
126
126
|
);
|
|
127
127
|
|
|
128
|
-
const accountInsertSchema = drizzleZod.createInsertSchema(account
|
|
129
|
-
address: backendSdk.structuredAddressSchema.optional()
|
|
128
|
+
const accountInsertSchema = drizzleZod.createInsertSchema(account, {
|
|
129
|
+
address: () => backendSdk.structuredAddressSchema.optional()
|
|
130
130
|
});
|
|
131
|
-
const accountUpdateSchema = drizzleZod.createUpdateSchema(account
|
|
132
|
-
address: backendSdk.structuredAddressSchema.optional()
|
|
131
|
+
const accountUpdateSchema = drizzleZod.createUpdateSchema(account, {
|
|
132
|
+
address: () => backendSdk.structuredAddressSchema.optional()
|
|
133
133
|
});
|
|
134
|
-
const accountSelectSchema = drizzleZod.createSelectSchema(account
|
|
135
|
-
address: backendSdk.structuredAddressSchema.nullable()
|
|
134
|
+
const accountSelectSchema = drizzleZod.createSelectSchema(account, {
|
|
135
|
+
address: () => backendSdk.structuredAddressSchema.nullable()
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
const accountCredentials = sqliteCore.sqliteTable("account_credentials", {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
const dateFns = require('date-fns');
|
|
5
5
|
const generalCodes = require('@develit-io/general-codes');
|
|
6
|
-
require('./bank.
|
|
6
|
+
require('./bank.CIWYI18z.cjs');
|
|
7
7
|
require('drizzle-orm');
|
|
8
8
|
const jose = require('jose');
|
|
9
9
|
require('node:crypto');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.NqesB7DM.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|