@develit-services/bank 0.0.12 → 0.0.13
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/@types.d.cts +4 -4
- package/dist/@types.d.mts +4 -4
- package/dist/@types.d.ts +4 -4
- 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/export/worker.d.cts +3 -3
- package/dist/export/worker.d.mts +3 -3
- package/dist/export/worker.d.ts +3 -3
- package/dist/export/wrangler.cjs +6 -16
- package/dist/export/wrangler.d.cts +16 -16
- package/dist/export/wrangler.d.mts +16 -16
- package/dist/export/wrangler.d.ts +16 -16
- package/dist/export/wrangler.mjs +6 -16
- package/dist/shared/{bank.DrgcXMkG.d.cts → bank.BULPVep1.d.cts} +1 -1
- package/dist/shared/{bank.D1VhQbrS.d.ts → bank.BYxCT5rk.d.ts} +1 -1
- package/dist/shared/{bank.dxpKOn1t.d.ts → bank.CBNQZ5Pd.d.cts} +6 -6
- package/dist/shared/{bank.dxpKOn1t.d.cts → bank.CBNQZ5Pd.d.mts} +6 -6
- package/dist/shared/{bank.dxpKOn1t.d.mts → bank.CBNQZ5Pd.d.ts} +6 -6
- package/dist/shared/{bank.yLyF54-_.d.mts → bank.Dxfp5h5B.d.mts} +1 -1
- package/package.json +9 -9
package/dist/@types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.
|
|
2
|
-
export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { t as tables, a as PaymentInsertType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.BULPVep1.cjs';
|
|
2
|
+
export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.BULPVep1.cjs';
|
|
3
|
+
import { t as tables, a as PaymentInsertType } from './shared/bank.CBNQZ5Pd.cjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.CBNQZ5Pd.cjs';
|
|
5
5
|
import { Environment } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.DxGqqFhD.cjs';
|
package/dist/@types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.
|
|
2
|
-
export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { t as tables, a as PaymentInsertType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.Dxfp5h5B.mjs';
|
|
2
|
+
export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.Dxfp5h5B.mjs';
|
|
3
|
+
import { t as tables, a as PaymentInsertType } from './shared/bank.CBNQZ5Pd.mjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.CBNQZ5Pd.mjs';
|
|
5
5
|
import { Environment } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.DxGqqFhD.mjs';
|
package/dist/@types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.
|
|
2
|
-
export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { t as tables, a as PaymentInsertType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.BYxCT5rk.js';
|
|
2
|
+
export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.BYxCT5rk.js';
|
|
3
|
+
import { t as tables, a as PaymentInsertType } from './shared/bank.CBNQZ5Pd.js';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.CBNQZ5Pd.js';
|
|
5
5
|
import { Environment } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.DxGqqFhD.js';
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
3
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.CBNQZ5Pd.cjs';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.
|
|
7
|
+
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.BULPVep1.cjs';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -210,10 +210,10 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
210
210
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
211
211
|
paymentsToBatch: SendPaymentInput[];
|
|
212
212
|
}): Promise<IRPCResponse<{
|
|
213
|
-
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
214
213
|
batchPaymentInitiatedAt: Date | null;
|
|
215
214
|
authorizationUrls: string | string[] | null;
|
|
216
215
|
accountId: string | null;
|
|
216
|
+
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
217
217
|
payments: PaymentInsertType[];
|
|
218
218
|
metadata: object | null;
|
|
219
219
|
id: string;
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
3
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.CBNQZ5Pd.mjs';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.
|
|
7
|
+
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.Dxfp5h5B.mjs';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -210,10 +210,10 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
210
210
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
211
211
|
paymentsToBatch: SendPaymentInput[];
|
|
212
212
|
}): Promise<IRPCResponse<{
|
|
213
|
-
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
214
213
|
batchPaymentInitiatedAt: Date | null;
|
|
215
214
|
authorizationUrls: string | string[] | null;
|
|
216
215
|
accountId: string | null;
|
|
216
|
+
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
217
217
|
payments: PaymentInsertType[];
|
|
218
218
|
metadata: object | null;
|
|
219
219
|
id: string;
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
3
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.CBNQZ5Pd.js';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.
|
|
7
|
+
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.BYxCT5rk.js';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -210,10 +210,10 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
210
210
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
211
211
|
paymentsToBatch: SendPaymentInput[];
|
|
212
212
|
}): Promise<IRPCResponse<{
|
|
213
|
-
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
214
213
|
batchPaymentInitiatedAt: Date | null;
|
|
215
214
|
authorizationUrls: string | string[] | null;
|
|
216
215
|
accountId: string | null;
|
|
216
|
+
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
217
217
|
payments: PaymentInsertType[];
|
|
218
218
|
metadata: object | null;
|
|
219
219
|
id: string;
|
package/dist/export/wrangler.cjs
CHANGED
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
+
|
|
3
5
|
function defineBankServiceWrangler(config) {
|
|
4
6
|
const { project, name, envs } = config;
|
|
5
7
|
const base = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
compatibility_flags: ["nodejs_compat"],
|
|
11
|
-
observability: {
|
|
12
|
-
enabled: true,
|
|
13
|
-
head_sampling_rate: 1,
|
|
14
|
-
logs: {
|
|
15
|
-
enabled: true,
|
|
16
|
-
invocation_logs: false
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
preview_urls: false,
|
|
20
|
-
workers_dev: false,
|
|
21
|
-
keep_vars: true,
|
|
8
|
+
...backendSdk.composeWranglerBase({
|
|
9
|
+
project,
|
|
10
|
+
name
|
|
11
|
+
}),
|
|
22
12
|
vars: {
|
|
23
13
|
// Secrets
|
|
24
14
|
FINBRICKS_PRIVATE_KEY_PEM: "[SECRET]",
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.cjs';
|
|
2
2
|
|
|
3
3
|
declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
4
|
-
$schema: string;
|
|
5
|
-
name: string;
|
|
6
|
-
main: string;
|
|
7
|
-
compatibility_date: string;
|
|
8
|
-
compatibility_flags: string[];
|
|
9
|
-
observability: {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
head_sampling_rate: number;
|
|
12
|
-
logs: {
|
|
13
|
-
enabled: boolean;
|
|
14
|
-
invocation_logs: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
preview_urls: boolean;
|
|
18
|
-
workers_dev: boolean;
|
|
19
|
-
keep_vars: boolean;
|
|
20
4
|
vars: {
|
|
21
5
|
ENVIRONMENT: string;
|
|
22
6
|
ERSTE_REDIRECT_URI: string;
|
|
@@ -57,6 +41,22 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
57
41
|
}[];
|
|
58
42
|
};
|
|
59
43
|
env: Record<string, unknown>;
|
|
44
|
+
$schema: string;
|
|
45
|
+
name: string;
|
|
46
|
+
main: string;
|
|
47
|
+
compatibility_date: string;
|
|
48
|
+
compatibility_flags: string[];
|
|
49
|
+
observability: {
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
head_sampling_rate: number;
|
|
52
|
+
logs: {
|
|
53
|
+
enabled: boolean;
|
|
54
|
+
invocation_logs: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
preview_urls: boolean;
|
|
58
|
+
workers_dev: boolean;
|
|
59
|
+
keep_vars: boolean;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
export { defineBankServiceWrangler };
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.mjs';
|
|
2
2
|
|
|
3
3
|
declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
4
|
-
$schema: string;
|
|
5
|
-
name: string;
|
|
6
|
-
main: string;
|
|
7
|
-
compatibility_date: string;
|
|
8
|
-
compatibility_flags: string[];
|
|
9
|
-
observability: {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
head_sampling_rate: number;
|
|
12
|
-
logs: {
|
|
13
|
-
enabled: boolean;
|
|
14
|
-
invocation_logs: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
preview_urls: boolean;
|
|
18
|
-
workers_dev: boolean;
|
|
19
|
-
keep_vars: boolean;
|
|
20
4
|
vars: {
|
|
21
5
|
ENVIRONMENT: string;
|
|
22
6
|
ERSTE_REDIRECT_URI: string;
|
|
@@ -57,6 +41,22 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
57
41
|
}[];
|
|
58
42
|
};
|
|
59
43
|
env: Record<string, unknown>;
|
|
44
|
+
$schema: string;
|
|
45
|
+
name: string;
|
|
46
|
+
main: string;
|
|
47
|
+
compatibility_date: string;
|
|
48
|
+
compatibility_flags: string[];
|
|
49
|
+
observability: {
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
head_sampling_rate: number;
|
|
52
|
+
logs: {
|
|
53
|
+
enabled: boolean;
|
|
54
|
+
invocation_logs: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
preview_urls: boolean;
|
|
58
|
+
workers_dev: boolean;
|
|
59
|
+
keep_vars: boolean;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
export { defineBankServiceWrangler };
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.js';
|
|
2
2
|
|
|
3
3
|
declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
4
|
-
$schema: string;
|
|
5
|
-
name: string;
|
|
6
|
-
main: string;
|
|
7
|
-
compatibility_date: string;
|
|
8
|
-
compatibility_flags: string[];
|
|
9
|
-
observability: {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
head_sampling_rate: number;
|
|
12
|
-
logs: {
|
|
13
|
-
enabled: boolean;
|
|
14
|
-
invocation_logs: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
preview_urls: boolean;
|
|
18
|
-
workers_dev: boolean;
|
|
19
|
-
keep_vars: boolean;
|
|
20
4
|
vars: {
|
|
21
5
|
ENVIRONMENT: string;
|
|
22
6
|
ERSTE_REDIRECT_URI: string;
|
|
@@ -57,6 +41,22 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
57
41
|
}[];
|
|
58
42
|
};
|
|
59
43
|
env: Record<string, unknown>;
|
|
44
|
+
$schema: string;
|
|
45
|
+
name: string;
|
|
46
|
+
main: string;
|
|
47
|
+
compatibility_date: string;
|
|
48
|
+
compatibility_flags: string[];
|
|
49
|
+
observability: {
|
|
50
|
+
enabled: boolean;
|
|
51
|
+
head_sampling_rate: number;
|
|
52
|
+
logs: {
|
|
53
|
+
enabled: boolean;
|
|
54
|
+
invocation_logs: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
preview_urls: boolean;
|
|
58
|
+
workers_dev: boolean;
|
|
59
|
+
keep_vars: boolean;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
export { defineBankServiceWrangler };
|
package/dist/export/wrangler.mjs
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
|
+
import { composeWranglerBase } from '@develit-io/backend-sdk';
|
|
2
|
+
|
|
1
3
|
function defineBankServiceWrangler(config) {
|
|
2
4
|
const { project, name, envs } = config;
|
|
3
5
|
const base = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
compatibility_flags: ["nodejs_compat"],
|
|
9
|
-
observability: {
|
|
10
|
-
enabled: true,
|
|
11
|
-
head_sampling_rate: 1,
|
|
12
|
-
logs: {
|
|
13
|
-
enabled: true,
|
|
14
|
-
invocation_logs: false
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
preview_urls: false,
|
|
18
|
-
workers_dev: false,
|
|
19
|
-
keep_vars: true,
|
|
6
|
+
...composeWranglerBase({
|
|
7
|
+
project,
|
|
8
|
+
name
|
|
9
|
+
}),
|
|
20
10
|
vars: {
|
|
21
11
|
// Secrets
|
|
22
12
|
FINBRICKS_PRIVATE_KEY_PEM: "[SECRET]",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { BANK_CODES, CURRENCY_CODES, CODES } from '@develit-io/general-codes';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.CBNQZ5Pd.cjs';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
|
|
6
6
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { BANK_CODES, CURRENCY_CODES, CODES } from '@develit-io/general-codes';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.CBNQZ5Pd.js';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
|
|
6
6
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
|
@@ -82,10 +82,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
84
84
|
PREPARED: "PREPARED";
|
|
85
|
-
|
|
85
|
+
COMPLETED: "COMPLETED";
|
|
86
86
|
FAILED: "FAILED";
|
|
87
|
+
INITIALIZED: "INITIALIZED";
|
|
87
88
|
PENDING: "PENDING";
|
|
88
|
-
COMPLETED: "COMPLETED";
|
|
89
89
|
CREATED: "CREATED";
|
|
90
90
|
}>;
|
|
91
91
|
batchId: z.ZodString;
|
|
@@ -163,7 +163,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
163
163
|
tableName: "batch";
|
|
164
164
|
dataType: "string";
|
|
165
165
|
columnType: "SQLiteText";
|
|
166
|
-
data: "
|
|
166
|
+
data: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
167
167
|
driverParam: string;
|
|
168
168
|
notNull: false;
|
|
169
169
|
hasDefault: false;
|
|
@@ -176,7 +176,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
176
176
|
generated: undefined;
|
|
177
177
|
}, {}, {
|
|
178
178
|
length: number | undefined;
|
|
179
|
-
$type: "
|
|
179
|
+
$type: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
180
180
|
}>;
|
|
181
181
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
182
182
|
name: "payments";
|
|
@@ -414,7 +414,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
414
414
|
tableName: "payment";
|
|
415
415
|
dataType: "string";
|
|
416
416
|
columnType: "SQLiteText";
|
|
417
|
-
data: "PREPARED" | "
|
|
417
|
+
data: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
418
418
|
driverParam: string;
|
|
419
419
|
notNull: true;
|
|
420
420
|
hasDefault: false;
|
|
@@ -427,7 +427,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
427
427
|
generated: undefined;
|
|
428
428
|
}, {}, {
|
|
429
429
|
length: number | undefined;
|
|
430
|
-
$type: "PREPARED" | "
|
|
430
|
+
$type: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
431
431
|
}>;
|
|
432
432
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
433
433
|
name: "status_reason";
|
|
@@ -82,10 +82,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
84
84
|
PREPARED: "PREPARED";
|
|
85
|
-
|
|
85
|
+
COMPLETED: "COMPLETED";
|
|
86
86
|
FAILED: "FAILED";
|
|
87
|
+
INITIALIZED: "INITIALIZED";
|
|
87
88
|
PENDING: "PENDING";
|
|
88
|
-
COMPLETED: "COMPLETED";
|
|
89
89
|
CREATED: "CREATED";
|
|
90
90
|
}>;
|
|
91
91
|
batchId: z.ZodString;
|
|
@@ -163,7 +163,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
163
163
|
tableName: "batch";
|
|
164
164
|
dataType: "string";
|
|
165
165
|
columnType: "SQLiteText";
|
|
166
|
-
data: "
|
|
166
|
+
data: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
167
167
|
driverParam: string;
|
|
168
168
|
notNull: false;
|
|
169
169
|
hasDefault: false;
|
|
@@ -176,7 +176,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
176
176
|
generated: undefined;
|
|
177
177
|
}, {}, {
|
|
178
178
|
length: number | undefined;
|
|
179
|
-
$type: "
|
|
179
|
+
$type: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
180
180
|
}>;
|
|
181
181
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
182
182
|
name: "payments";
|
|
@@ -414,7 +414,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
414
414
|
tableName: "payment";
|
|
415
415
|
dataType: "string";
|
|
416
416
|
columnType: "SQLiteText";
|
|
417
|
-
data: "PREPARED" | "
|
|
417
|
+
data: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
418
418
|
driverParam: string;
|
|
419
419
|
notNull: true;
|
|
420
420
|
hasDefault: false;
|
|
@@ -427,7 +427,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
427
427
|
generated: undefined;
|
|
428
428
|
}, {}, {
|
|
429
429
|
length: number | undefined;
|
|
430
|
-
$type: "PREPARED" | "
|
|
430
|
+
$type: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
431
431
|
}>;
|
|
432
432
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
433
433
|
name: "status_reason";
|
|
@@ -82,10 +82,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
84
84
|
PREPARED: "PREPARED";
|
|
85
|
-
|
|
85
|
+
COMPLETED: "COMPLETED";
|
|
86
86
|
FAILED: "FAILED";
|
|
87
|
+
INITIALIZED: "INITIALIZED";
|
|
87
88
|
PENDING: "PENDING";
|
|
88
|
-
COMPLETED: "COMPLETED";
|
|
89
89
|
CREATED: "CREATED";
|
|
90
90
|
}>;
|
|
91
91
|
batchId: z.ZodString;
|
|
@@ -163,7 +163,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
163
163
|
tableName: "batch";
|
|
164
164
|
dataType: "string";
|
|
165
165
|
columnType: "SQLiteText";
|
|
166
|
-
data: "
|
|
166
|
+
data: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
167
167
|
driverParam: string;
|
|
168
168
|
notNull: false;
|
|
169
169
|
hasDefault: false;
|
|
@@ -176,7 +176,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
176
176
|
generated: undefined;
|
|
177
177
|
}, {}, {
|
|
178
178
|
length: number | undefined;
|
|
179
|
-
$type: "
|
|
179
|
+
$type: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
180
180
|
}>;
|
|
181
181
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
182
182
|
name: "payments";
|
|
@@ -414,7 +414,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
414
414
|
tableName: "payment";
|
|
415
415
|
dataType: "string";
|
|
416
416
|
columnType: "SQLiteText";
|
|
417
|
-
data: "PREPARED" | "
|
|
417
|
+
data: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
418
418
|
driverParam: string;
|
|
419
419
|
notNull: true;
|
|
420
420
|
hasDefault: false;
|
|
@@ -427,7 +427,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
427
427
|
generated: undefined;
|
|
428
428
|
}, {}, {
|
|
429
429
|
length: number | undefined;
|
|
430
|
-
$type: "PREPARED" | "
|
|
430
|
+
$type: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
431
431
|
}>;
|
|
432
432
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
433
433
|
name: "status_reason";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { BANK_CODES, CURRENCY_CODES, CODES } from '@develit-io/general-codes';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.CBNQZ5Pd.mjs';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
|
|
6
6
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/bank",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"dev": "wrangler dev --port 9231 --persist-to ../../.wrangler/state",
|
|
34
|
-
"wrangler:generate": "
|
|
34
|
+
"wrangler:generate": "develit wrangler:generate",
|
|
35
35
|
"db:init": "wrangler d1 execute develit-bank --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
|
|
36
36
|
"db:generate": "drizzle-kit generate",
|
|
37
37
|
"db:migrate": "drizzle-kit migrate",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"release": "bun run build && bunx changelogen@latest --release --push && npm publish --access public"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@develit-io/backend-sdk": "
|
|
53
|
-
"@develit-io/general-codes": "
|
|
54
|
-
"drizzle-kit": "
|
|
55
|
-
"drizzle-orm": "
|
|
56
|
-
"drizzle-seed": "
|
|
57
|
-
"wrangler": "
|
|
58
|
-
"zod": "
|
|
52
|
+
"@develit-io/backend-sdk": "*",
|
|
53
|
+
"@develit-io/general-codes": "*",
|
|
54
|
+
"drizzle-kit": "*",
|
|
55
|
+
"drizzle-orm": "*",
|
|
56
|
+
"drizzle-seed": "*",
|
|
57
|
+
"wrangler": "*",
|
|
58
|
+
"zod": "*"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"date-fns": "^4.1.0",
|