@develit-services/ledger 0.3.3 → 0.3.4
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 +2 -2
- 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 +2 -2
- package/dist/export/worker.cjs +2 -2
- package/dist/export/worker.d.cts +2 -2
- package/dist/export/worker.d.mts +2 -2
- package/dist/export/worker.d.ts +2 -2
- package/dist/export/worker.mjs +2 -2
- package/dist/shared/{ledger.rYDhcjdG.d.mts → ledger.5cAlw89w.d.ts} +8 -7
- package/dist/shared/{ledger.BeDlCGN3.d.ts → ledger.B08p9mSv.d.mts} +8 -7
- package/dist/shared/{ledger.OvxTlwqn.d.cts → ledger.BUVGgzID.d.cts} +8 -7
- package/dist/shared/{ledger.DWO4eS7Q.mjs → ledger.Bb6l1o9P.mjs} +3 -3
- package/dist/shared/{ledger.QNHpaH-m.cjs → ledger.Bmi7Cafn.cjs} +3 -3
- package/dist/shared/{ledger.aRF1eJOD.d.cts → ledger.CZjiiQQk.d.cts} +523 -42
- package/dist/shared/{ledger.aRF1eJOD.d.ts → ledger.CZjiiQQk.d.mts} +523 -42
- package/dist/shared/{ledger.aRF1eJOD.d.mts → ledger.CZjiiQQk.d.ts} +523 -42
- package/dist/shared/{ledger.B-gGCFFu.mjs → ledger.DKVdStuQ.mjs} +1 -1
- package/dist/shared/{ledger._WA8Ag9K.cjs → ledger.V5SF3fcq.cjs} +1 -1
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/types.mjs +1 -1
- package/package.json +2 -2
package/dist/database/schema.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('../shared/ledger.
|
|
3
|
+
const database_schema = require('../shared/ledger.V5SF3fcq.cjs');
|
|
4
4
|
require('@develit-io/backend-sdk');
|
|
5
5
|
require('drizzle-orm');
|
|
6
6
|
require('drizzle-orm/sqlite-core');
|
|
7
|
-
require('../shared/ledger.
|
|
7
|
+
require('../shared/ledger.Bmi7Cafn.cjs');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('@develit-io/general-codes');
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.
|
|
1
|
+
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.CZjiiQQk.cjs';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.
|
|
1
|
+
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.CZjiiQQk.mjs';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.
|
|
1
|
+
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.CZjiiQQk.js';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
package/dist/database/schema.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as account, b as accountIdentifier, c as accountIdentifierMapping, d as accountIdentifierMappingRelations, e as accountIdentifierRelations, f as accountRelations, g as entry, t as transaction } from '../shared/ledger.
|
|
1
|
+
export { a as account, b as accountIdentifier, c as accountIdentifierMapping, d as accountIdentifierMappingRelations, e as accountIdentifierRelations, f as accountRelations, g as entry, t as transaction } from '../shared/ledger.DKVdStuQ.mjs';
|
|
2
2
|
import '@develit-io/backend-sdk';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
|
5
|
-
import '../shared/ledger.
|
|
5
|
+
import '../shared/ledger.Bb6l1o9P.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@develit-io/general-codes';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
6
|
const cloudflare_workers = require('cloudflare:workers');
|
|
7
7
|
const d1 = require('drizzle-orm/d1');
|
|
8
|
-
const database_schema = require('../shared/ledger.
|
|
8
|
+
const database_schema = require('../shared/ledger.V5SF3fcq.cjs');
|
|
9
9
|
const drizzleOrm = require('drizzle-orm');
|
|
10
|
-
const updateTransactionStatus = require('../shared/ledger.
|
|
10
|
+
const updateTransactionStatus = require('../shared/ledger.Bmi7Cafn.cjs');
|
|
11
11
|
require('@develit-io/general-codes');
|
|
12
12
|
require('drizzle-orm/sqlite-core');
|
|
13
13
|
require('zod');
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -2,9 +2,9 @@ import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.
|
|
5
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.BUVGgzID.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.CZjiiQQk.cjs';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -2,9 +2,9 @@ import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.
|
|
5
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.B08p9mSv.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.CZjiiQQk.mjs';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.
|
|
5
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.5cAlw89w.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.CZjiiQQk.js';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { first, develitWorker, uuidv4, useResult, createInternalError, action, service } from '@develit-io/backend-sdk';
|
|
2
2
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
3
3
|
import { drizzle } from 'drizzle-orm/d1';
|
|
4
|
-
import { s as schema } from '../shared/ledger.
|
|
4
|
+
import { s as schema } from '../shared/ledger.DKVdStuQ.mjs';
|
|
5
5
|
import { eq, and, inArray, or, count, gte, lte, sql, asc, desc } from 'drizzle-orm';
|
|
6
|
-
import { k as createTransactionInputSchema, x as matchTransactionInputSchema, m as failTransactionInputSchema, i as cancelTransactionInputSchema, y as refundTransactionInputSchema, g as REFUNDABLE_TRANSACTION_STATUSES, s as getTransactionByIdInputSchema, t as getTransactionsByReferenceIdInputSchema, u as getTransactionsInputSchema, j as createAccountInputSchema, z as updateAccountInputSchema, l as deleteAccountInputSchema, q as getAccountInputSchema, r as getAccountsByOwnerInputSchema, w as listAccountsInputSchema, p as getAccountIdentifierInputSchema, v as listAccountIdentifiersInputSchema, n as findAccountByIdentifierInputSchema, o as getAccountBalanceInputSchema, D as updateTransactionConfirmationSentAtInputSchema, F as updateTransactionStatusInputSchema } from '../shared/ledger.
|
|
6
|
+
import { k as createTransactionInputSchema, x as matchTransactionInputSchema, m as failTransactionInputSchema, i as cancelTransactionInputSchema, y as refundTransactionInputSchema, g as REFUNDABLE_TRANSACTION_STATUSES, s as getTransactionByIdInputSchema, t as getTransactionsByReferenceIdInputSchema, u as getTransactionsInputSchema, j as createAccountInputSchema, z as updateAccountInputSchema, l as deleteAccountInputSchema, q as getAccountInputSchema, r as getAccountsByOwnerInputSchema, w as listAccountsInputSchema, p as getAccountIdentifierInputSchema, v as listAccountIdentifiersInputSchema, n as findAccountByIdentifierInputSchema, o as getAccountBalanceInputSchema, D as updateTransactionConfirmationSentAtInputSchema, F as updateTransactionStatusInputSchema } from '../shared/ledger.Bb6l1o9P.mjs';
|
|
7
7
|
import '@develit-io/general-codes';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as schema } from './ledger.
|
|
2
|
+
import { F as schema } from './ledger.CZjiiQQk.js';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -326,6 +326,7 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
326
326
|
UA: "UA";
|
|
327
327
|
AE: "AE";
|
|
328
328
|
GB: "GB";
|
|
329
|
+
US: "US";
|
|
329
330
|
UZ: "UZ";
|
|
330
331
|
VU: "VU";
|
|
331
332
|
VE: "VE";
|
|
@@ -410,8 +411,8 @@ interface CreateAccountOutput {
|
|
|
410
411
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
411
412
|
correlationId: z.ZodString;
|
|
412
413
|
referenceType: z.ZodEnum<{
|
|
413
|
-
PAYMENT: "PAYMENT";
|
|
414
414
|
EXCHANGE: "EXCHANGE";
|
|
415
|
+
PAYMENT: "PAYMENT";
|
|
415
416
|
ORDER: "ORDER";
|
|
416
417
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
417
418
|
FORWARD: "FORWARD";
|
|
@@ -419,13 +420,13 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
419
420
|
}>;
|
|
420
421
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
421
422
|
type: z.ZodEnum<{
|
|
422
|
-
EXCHANGE: "EXCHANGE";
|
|
423
423
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
424
424
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
425
425
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
426
426
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
427
427
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
428
428
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
429
|
+
EXCHANGE: "EXCHANGE";
|
|
429
430
|
UNMATCHED: "UNMATCHED";
|
|
430
431
|
ADJUSTMENT: "ADJUSTMENT";
|
|
431
432
|
TRANSFER: "TRANSFER";
|
|
@@ -449,7 +450,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
449
450
|
SEPA: "SEPA";
|
|
450
451
|
UNKNOWN: "UNKNOWN";
|
|
451
452
|
}>;
|
|
452
|
-
|
|
453
|
+
chargeBearer: z.ZodOptional<z.ZodEnum<{
|
|
453
454
|
SHA: "SHA";
|
|
454
455
|
OUR: "OUR";
|
|
455
456
|
BEN: "BEN";
|
|
@@ -1377,8 +1378,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1377
1378
|
}, z.core.$strip>;
|
|
1378
1379
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1379
1380
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1380
|
-
PAYMENT: "PAYMENT";
|
|
1381
1381
|
EXCHANGE: "EXCHANGE";
|
|
1382
|
+
PAYMENT: "PAYMENT";
|
|
1382
1383
|
ORDER: "ORDER";
|
|
1383
1384
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1384
1385
|
FORWARD: "FORWARD";
|
|
@@ -1386,13 +1387,13 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1386
1387
|
}>>;
|
|
1387
1388
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1388
1389
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1389
|
-
EXCHANGE: "EXCHANGE";
|
|
1390
1390
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1391
1391
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1392
1392
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1393
1393
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
1394
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
1395
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
+
EXCHANGE: "EXCHANGE";
|
|
1396
1397
|
UNMATCHED: "UNMATCHED";
|
|
1397
1398
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1398
1399
|
TRANSFER: "TRANSFER";
|
|
@@ -1423,8 +1424,8 @@ interface GetTransactionsOutput {
|
|
|
1423
1424
|
|
|
1424
1425
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1425
1426
|
referenceType: z.ZodEnum<{
|
|
1426
|
-
PAYMENT: "PAYMENT";
|
|
1427
1427
|
EXCHANGE: "EXCHANGE";
|
|
1428
|
+
PAYMENT: "PAYMENT";
|
|
1428
1429
|
ORDER: "ORDER";
|
|
1429
1430
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1430
1431
|
FORWARD: "FORWARD";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as schema } from './ledger.
|
|
2
|
+
import { F as schema } from './ledger.CZjiiQQk.mjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -326,6 +326,7 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
326
326
|
UA: "UA";
|
|
327
327
|
AE: "AE";
|
|
328
328
|
GB: "GB";
|
|
329
|
+
US: "US";
|
|
329
330
|
UZ: "UZ";
|
|
330
331
|
VU: "VU";
|
|
331
332
|
VE: "VE";
|
|
@@ -410,8 +411,8 @@ interface CreateAccountOutput {
|
|
|
410
411
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
411
412
|
correlationId: z.ZodString;
|
|
412
413
|
referenceType: z.ZodEnum<{
|
|
413
|
-
PAYMENT: "PAYMENT";
|
|
414
414
|
EXCHANGE: "EXCHANGE";
|
|
415
|
+
PAYMENT: "PAYMENT";
|
|
415
416
|
ORDER: "ORDER";
|
|
416
417
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
417
418
|
FORWARD: "FORWARD";
|
|
@@ -419,13 +420,13 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
419
420
|
}>;
|
|
420
421
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
421
422
|
type: z.ZodEnum<{
|
|
422
|
-
EXCHANGE: "EXCHANGE";
|
|
423
423
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
424
424
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
425
425
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
426
426
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
427
427
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
428
428
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
429
|
+
EXCHANGE: "EXCHANGE";
|
|
429
430
|
UNMATCHED: "UNMATCHED";
|
|
430
431
|
ADJUSTMENT: "ADJUSTMENT";
|
|
431
432
|
TRANSFER: "TRANSFER";
|
|
@@ -449,7 +450,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
449
450
|
SEPA: "SEPA";
|
|
450
451
|
UNKNOWN: "UNKNOWN";
|
|
451
452
|
}>;
|
|
452
|
-
|
|
453
|
+
chargeBearer: z.ZodOptional<z.ZodEnum<{
|
|
453
454
|
SHA: "SHA";
|
|
454
455
|
OUR: "OUR";
|
|
455
456
|
BEN: "BEN";
|
|
@@ -1377,8 +1378,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1377
1378
|
}, z.core.$strip>;
|
|
1378
1379
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1379
1380
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1380
|
-
PAYMENT: "PAYMENT";
|
|
1381
1381
|
EXCHANGE: "EXCHANGE";
|
|
1382
|
+
PAYMENT: "PAYMENT";
|
|
1382
1383
|
ORDER: "ORDER";
|
|
1383
1384
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1384
1385
|
FORWARD: "FORWARD";
|
|
@@ -1386,13 +1387,13 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1386
1387
|
}>>;
|
|
1387
1388
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1388
1389
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1389
|
-
EXCHANGE: "EXCHANGE";
|
|
1390
1390
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1391
1391
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1392
1392
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1393
1393
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
1394
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
1395
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
+
EXCHANGE: "EXCHANGE";
|
|
1396
1397
|
UNMATCHED: "UNMATCHED";
|
|
1397
1398
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1398
1399
|
TRANSFER: "TRANSFER";
|
|
@@ -1423,8 +1424,8 @@ interface GetTransactionsOutput {
|
|
|
1423
1424
|
|
|
1424
1425
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1425
1426
|
referenceType: z.ZodEnum<{
|
|
1426
|
-
PAYMENT: "PAYMENT";
|
|
1427
1427
|
EXCHANGE: "EXCHANGE";
|
|
1428
|
+
PAYMENT: "PAYMENT";
|
|
1428
1429
|
ORDER: "ORDER";
|
|
1429
1430
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1430
1431
|
FORWARD: "FORWARD";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as schema } from './ledger.
|
|
2
|
+
import { F as schema } from './ledger.CZjiiQQk.cjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -326,6 +326,7 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
326
326
|
UA: "UA";
|
|
327
327
|
AE: "AE";
|
|
328
328
|
GB: "GB";
|
|
329
|
+
US: "US";
|
|
329
330
|
UZ: "UZ";
|
|
330
331
|
VU: "VU";
|
|
331
332
|
VE: "VE";
|
|
@@ -410,8 +411,8 @@ interface CreateAccountOutput {
|
|
|
410
411
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
411
412
|
correlationId: z.ZodString;
|
|
412
413
|
referenceType: z.ZodEnum<{
|
|
413
|
-
PAYMENT: "PAYMENT";
|
|
414
414
|
EXCHANGE: "EXCHANGE";
|
|
415
|
+
PAYMENT: "PAYMENT";
|
|
415
416
|
ORDER: "ORDER";
|
|
416
417
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
417
418
|
FORWARD: "FORWARD";
|
|
@@ -419,13 +420,13 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
419
420
|
}>;
|
|
420
421
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
421
422
|
type: z.ZodEnum<{
|
|
422
|
-
EXCHANGE: "EXCHANGE";
|
|
423
423
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
424
424
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
425
425
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
426
426
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
427
427
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
428
428
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
429
|
+
EXCHANGE: "EXCHANGE";
|
|
429
430
|
UNMATCHED: "UNMATCHED";
|
|
430
431
|
ADJUSTMENT: "ADJUSTMENT";
|
|
431
432
|
TRANSFER: "TRANSFER";
|
|
@@ -449,7 +450,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
449
450
|
SEPA: "SEPA";
|
|
450
451
|
UNKNOWN: "UNKNOWN";
|
|
451
452
|
}>;
|
|
452
|
-
|
|
453
|
+
chargeBearer: z.ZodOptional<z.ZodEnum<{
|
|
453
454
|
SHA: "SHA";
|
|
454
455
|
OUR: "OUR";
|
|
455
456
|
BEN: "BEN";
|
|
@@ -1377,8 +1378,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1377
1378
|
}, z.core.$strip>;
|
|
1378
1379
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1379
1380
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1380
|
-
PAYMENT: "PAYMENT";
|
|
1381
1381
|
EXCHANGE: "EXCHANGE";
|
|
1382
|
+
PAYMENT: "PAYMENT";
|
|
1382
1383
|
ORDER: "ORDER";
|
|
1383
1384
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1384
1385
|
FORWARD: "FORWARD";
|
|
@@ -1386,13 +1387,13 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1386
1387
|
}>>;
|
|
1387
1388
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1388
1389
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1389
|
-
EXCHANGE: "EXCHANGE";
|
|
1390
1390
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1391
1391
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1392
1392
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1393
1393
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
1394
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
1395
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
+
EXCHANGE: "EXCHANGE";
|
|
1396
1397
|
UNMATCHED: "UNMATCHED";
|
|
1397
1398
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1398
1399
|
TRANSFER: "TRANSFER";
|
|
@@ -1423,8 +1424,8 @@ interface GetTransactionsOutput {
|
|
|
1423
1424
|
|
|
1424
1425
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1425
1426
|
referenceType: z.ZodEnum<{
|
|
1426
|
-
PAYMENT: "PAYMENT";
|
|
1427
1427
|
EXCHANGE: "EXCHANGE";
|
|
1428
|
+
PAYMENT: "PAYMENT";
|
|
1428
1429
|
ORDER: "ORDER";
|
|
1429
1430
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1430
1431
|
FORWARD: "FORWARD";
|
|
@@ -93,7 +93,7 @@ const REFERENCE_TYPES = [
|
|
|
93
93
|
"FORWARD",
|
|
94
94
|
"TRANSACTION"
|
|
95
95
|
];
|
|
96
|
-
const
|
|
96
|
+
const CHARGE_BEARERS = ["SHA", "OUR", "BEN"];
|
|
97
97
|
const PAYMENT_TYPES = ["DOMESTIC", "SEPA", "SWIFT", "UNKNOWN"];
|
|
98
98
|
const REFUNDABLE_TRANSACTION_STATUSES = [
|
|
99
99
|
"WAITING_FOR_MANUAL_PROCESSING"
|
|
@@ -174,7 +174,7 @@ const transactionMetadataSchema = z.object({
|
|
|
174
174
|
// zpráva pro příjemce
|
|
175
175
|
type: z.enum(PAYMENT_TYPES),
|
|
176
176
|
// typ platby
|
|
177
|
-
|
|
177
|
+
chargeBearer: z.enum(CHARGE_BEARERS).optional(),
|
|
178
178
|
expressPayment: z.boolean().optional(),
|
|
179
179
|
reference: z.string().optional(),
|
|
180
180
|
// další reference
|
|
@@ -327,4 +327,4 @@ const updateTransactionStatusInputSchema = z.object({
|
|
|
327
327
|
completedAt: z.date().optional()
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B,
|
|
330
|
+
export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, CHARGE_BEARERS as C, updateTransactionConfirmationSentAtInputSchema as D, ENTRY_STATUSES as E, updateTransactionStatusInputSchema as F, IDENTIFIER_KINDS as I, PAYMENT_DIRECTIONS as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ALLOWED_TRANSACTION_FILTERS as a, ASSET_TYPES as b, BATCH_STATUSES as c, COUNTRY_CODES as d, PAYMENT_STATUSES as e, PAYMENT_TYPES as f, REFUNDABLE_TRANSACTION_STATUSES as g, TRANSACTION_TYPES as h, cancelTransactionInputSchema as i, createAccountInputSchema as j, createTransactionInputSchema as k, deleteAccountInputSchema as l, failTransactionInputSchema as m, findAccountByIdentifierInputSchema as n, getAccountBalanceInputSchema as o, getAccountIdentifierInputSchema as p, getAccountInputSchema as q, getAccountsByOwnerInputSchema as r, getTransactionByIdInputSchema as s, getTransactionsByReferenceIdInputSchema as t, getTransactionsInputSchema as u, listAccountIdentifiersInputSchema as v, listAccountsInputSchema as w, matchTransactionInputSchema as x, refundTransactionInputSchema as y, updateAccountInputSchema as z };
|
|
@@ -95,7 +95,7 @@ const REFERENCE_TYPES = [
|
|
|
95
95
|
"FORWARD",
|
|
96
96
|
"TRANSACTION"
|
|
97
97
|
];
|
|
98
|
-
const
|
|
98
|
+
const CHARGE_BEARERS = ["SHA", "OUR", "BEN"];
|
|
99
99
|
const PAYMENT_TYPES = ["DOMESTIC", "SEPA", "SWIFT", "UNKNOWN"];
|
|
100
100
|
const REFUNDABLE_TRANSACTION_STATUSES = [
|
|
101
101
|
"WAITING_FOR_MANUAL_PROCESSING"
|
|
@@ -176,7 +176,7 @@ const transactionMetadataSchema = zod.z.object({
|
|
|
176
176
|
// zpráva pro příjemce
|
|
177
177
|
type: zod.z.enum(PAYMENT_TYPES),
|
|
178
178
|
// typ platby
|
|
179
|
-
|
|
179
|
+
chargeBearer: zod.z.enum(CHARGE_BEARERS).optional(),
|
|
180
180
|
expressPayment: zod.z.boolean().optional(),
|
|
181
181
|
reference: zod.z.string().optional(),
|
|
182
182
|
// další reference
|
|
@@ -334,10 +334,10 @@ exports.ALLOWED_TRANSACTION_FILTERS = ALLOWED_TRANSACTION_FILTERS;
|
|
|
334
334
|
exports.ASSET_TYPES = ASSET_TYPES;
|
|
335
335
|
exports.BALANCE_STRATEGIES = BALANCE_STRATEGIES;
|
|
336
336
|
exports.BATCH_STATUSES = BATCH_STATUSES;
|
|
337
|
+
exports.CHARGE_BEARERS = CHARGE_BEARERS;
|
|
337
338
|
exports.COUNTRY_CODES = COUNTRY_CODES;
|
|
338
339
|
exports.ENTRY_STATUSES = ENTRY_STATUSES;
|
|
339
340
|
exports.IDENTIFIER_KINDS = IDENTIFIER_KINDS;
|
|
340
|
-
exports.PAYMENT_CHARGE_TYPES = PAYMENT_CHARGE_TYPES;
|
|
341
341
|
exports.PAYMENT_DIRECTIONS = PAYMENT_DIRECTIONS;
|
|
342
342
|
exports.PAYMENT_STATUSES = PAYMENT_STATUSES;
|
|
343
343
|
exports.PAYMENT_TYPES = PAYMENT_TYPES;
|