@develit-io/backend-sdk 5.32.0 → 5.32.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/dist/index.d.mts +31 -2
- package/dist/index.d.ts +31 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ import { ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult } from 'dri
|
|
|
5
5
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
6
6
|
import { AnySQLiteTable } from 'drizzle-orm/sqlite-core';
|
|
7
7
|
import * as z from 'zod/v4/core';
|
|
8
|
+
import { CODES } from '@develit-io/general-codes';
|
|
8
9
|
import { StatusCodes, ReasonPhrases } from 'http-status-codes';
|
|
9
10
|
export { ReasonPhrases as InternalResponsePhrase, StatusCodes as InternalResponseStatus } from 'http-status-codes';
|
|
10
11
|
import { Queue } from '@cloudflare/workers-types';
|
|
@@ -68,6 +69,34 @@ interface AuditLogPayload<T> {
|
|
|
68
69
|
|
|
69
70
|
declare const ibanZodSchema: z.$ZodString<unknown>;
|
|
70
71
|
declare const swiftZodSchema: z.$ZodString<unknown>;
|
|
72
|
+
/**
|
|
73
|
+
* Bank account metadata containing all possible bank account information.
|
|
74
|
+
* All fields are optional to allow for flexible usage across different contexts.
|
|
75
|
+
*/
|
|
76
|
+
interface BankAccountMetadata {
|
|
77
|
+
/** Unique identifier of the bank account */
|
|
78
|
+
id?: string;
|
|
79
|
+
/** Bank account number */
|
|
80
|
+
number?: string;
|
|
81
|
+
/** Bank code identifier */
|
|
82
|
+
bankCode?: CODES.BankCode;
|
|
83
|
+
/** Name of the account holder */
|
|
84
|
+
holderName?: string;
|
|
85
|
+
/** International Bank Account Number */
|
|
86
|
+
iban?: string;
|
|
87
|
+
/** Address */
|
|
88
|
+
address?: string;
|
|
89
|
+
/** SWIFT BIC */
|
|
90
|
+
swiftBic?: string;
|
|
91
|
+
/** BIC COR */
|
|
92
|
+
bicCor?: string;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Zod schema for BankAccountMetadata validation
|
|
96
|
+
*/
|
|
97
|
+
declare const bankAccountMetadataSchema: z.$ZodObject<Readonly<Readonly<{
|
|
98
|
+
[k: string]: z.$ZodType<unknown, unknown, z.$ZodTypeInternals<unknown, unknown>>;
|
|
99
|
+
}>>, z.$ZodObjectConfig>;
|
|
71
100
|
|
|
72
101
|
interface CommandLogPayload<T = string> {
|
|
73
102
|
action: T;
|
|
@@ -446,5 +475,5 @@ interface WithRetryCounterOptions {
|
|
|
446
475
|
type AsyncMethod<TArgs extends unknown[] = unknown[], TResult = unknown> = (...args: TArgs) => Promise<TResult>;
|
|
447
476
|
declare function cloudflareQueue<TArgs extends unknown[] = unknown[], TResult = unknown>(options: WithRetryCounterOptions): (target: unknown, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<AsyncMethod<TArgs, TResult>>) => void;
|
|
448
477
|
|
|
449
|
-
export { DatabaseTransaction, ENVIRONMENT, RPCResponse, action, bankAccount, bankAccountBankCodeEnum, bankAccountCountryCodeEnum, bankAccountCurrencyEnum, bankAccountPostgres, base, basePostgres, calculateExponentialBackoff, cloudflareQueue, createAuditLogWriter, createInternalError, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getD1DatabaseIdFromWrangler, getDrizzleD1Config, getDrizzlePgConfig, getPgCredentials, getPgDatabaseIdFromWrangler, getPgLocalConnectionString, handleAction, handleActionResponse, ibanZodSchema, isInternalError, paginationQuerySchema, paginationSchema, service, swiftZodSchema, useFetch, useResult, useResultSync, uuidv4 };
|
|
450
|
-
export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IncludeRelation, InferResultType, InternalError, InternalErrorResponseStatus, Project, ValidatedInput };
|
|
478
|
+
export { DatabaseTransaction, ENVIRONMENT, RPCResponse, action, bankAccount, bankAccountBankCodeEnum, bankAccountCountryCodeEnum, bankAccountCurrencyEnum, bankAccountMetadataSchema, bankAccountPostgres, base, basePostgres, calculateExponentialBackoff, cloudflareQueue, createAuditLogWriter, createInternalError, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getD1DatabaseIdFromWrangler, getDrizzleD1Config, getDrizzlePgConfig, getPgCredentials, getPgDatabaseIdFromWrangler, getPgLocalConnectionString, handleAction, handleActionResponse, ibanZodSchema, isInternalError, paginationQuerySchema, paginationSchema, service, swiftZodSchema, useFetch, useResult, useResultSync, uuidv4 };
|
|
479
|
+
export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, BankAccountMetadata, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IncludeRelation, InferResultType, InternalError, InternalErrorResponseStatus, Project, ValidatedInput };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult } from 'dri
|
|
|
5
5
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
6
6
|
import { AnySQLiteTable } from 'drizzle-orm/sqlite-core';
|
|
7
7
|
import * as z from 'zod/v4/core';
|
|
8
|
+
import { CODES } from '@develit-io/general-codes';
|
|
8
9
|
import { StatusCodes, ReasonPhrases } from 'http-status-codes';
|
|
9
10
|
export { ReasonPhrases as InternalResponsePhrase, StatusCodes as InternalResponseStatus } from 'http-status-codes';
|
|
10
11
|
import { Queue } from '@cloudflare/workers-types';
|
|
@@ -68,6 +69,34 @@ interface AuditLogPayload<T> {
|
|
|
68
69
|
|
|
69
70
|
declare const ibanZodSchema: z.$ZodString<unknown>;
|
|
70
71
|
declare const swiftZodSchema: z.$ZodString<unknown>;
|
|
72
|
+
/**
|
|
73
|
+
* Bank account metadata containing all possible bank account information.
|
|
74
|
+
* All fields are optional to allow for flexible usage across different contexts.
|
|
75
|
+
*/
|
|
76
|
+
interface BankAccountMetadata {
|
|
77
|
+
/** Unique identifier of the bank account */
|
|
78
|
+
id?: string;
|
|
79
|
+
/** Bank account number */
|
|
80
|
+
number?: string;
|
|
81
|
+
/** Bank code identifier */
|
|
82
|
+
bankCode?: CODES.BankCode;
|
|
83
|
+
/** Name of the account holder */
|
|
84
|
+
holderName?: string;
|
|
85
|
+
/** International Bank Account Number */
|
|
86
|
+
iban?: string;
|
|
87
|
+
/** Address */
|
|
88
|
+
address?: string;
|
|
89
|
+
/** SWIFT BIC */
|
|
90
|
+
swiftBic?: string;
|
|
91
|
+
/** BIC COR */
|
|
92
|
+
bicCor?: string;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Zod schema for BankAccountMetadata validation
|
|
96
|
+
*/
|
|
97
|
+
declare const bankAccountMetadataSchema: z.$ZodObject<Readonly<Readonly<{
|
|
98
|
+
[k: string]: z.$ZodType<unknown, unknown, z.$ZodTypeInternals<unknown, unknown>>;
|
|
99
|
+
}>>, z.$ZodObjectConfig>;
|
|
71
100
|
|
|
72
101
|
interface CommandLogPayload<T = string> {
|
|
73
102
|
action: T;
|
|
@@ -446,5 +475,5 @@ interface WithRetryCounterOptions {
|
|
|
446
475
|
type AsyncMethod<TArgs extends unknown[] = unknown[], TResult = unknown> = (...args: TArgs) => Promise<TResult>;
|
|
447
476
|
declare function cloudflareQueue<TArgs extends unknown[] = unknown[], TResult = unknown>(options: WithRetryCounterOptions): (target: unknown, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<AsyncMethod<TArgs, TResult>>) => void;
|
|
448
477
|
|
|
449
|
-
export { DatabaseTransaction, ENVIRONMENT, RPCResponse, action, bankAccount, bankAccountBankCodeEnum, bankAccountCountryCodeEnum, bankAccountCurrencyEnum, bankAccountPostgres, base, basePostgres, calculateExponentialBackoff, cloudflareQueue, createAuditLogWriter, createInternalError, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getD1DatabaseIdFromWrangler, getDrizzleD1Config, getDrizzlePgConfig, getPgCredentials, getPgDatabaseIdFromWrangler, getPgLocalConnectionString, handleAction, handleActionResponse, ibanZodSchema, isInternalError, paginationQuerySchema, paginationSchema, service, swiftZodSchema, useFetch, useResult, useResultSync, uuidv4 };
|
|
450
|
-
export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IncludeRelation, InferResultType, InternalError, InternalErrorResponseStatus, Project, ValidatedInput };
|
|
478
|
+
export { DatabaseTransaction, ENVIRONMENT, RPCResponse, action, bankAccount, bankAccountBankCodeEnum, bankAccountCountryCodeEnum, bankAccountCurrencyEnum, bankAccountMetadataSchema, bankAccountPostgres, base, basePostgres, calculateExponentialBackoff, cloudflareQueue, createAuditLogWriter, createInternalError, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getD1DatabaseIdFromWrangler, getDrizzleD1Config, getDrizzlePgConfig, getPgCredentials, getPgDatabaseIdFromWrangler, getPgLocalConnectionString, handleAction, handleActionResponse, ibanZodSchema, isInternalError, paginationQuerySchema, paginationSchema, service, swiftZodSchema, useFetch, useResult, useResultSync, uuidv4 };
|
|
479
|
+
export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, BankAccountMetadata, Command, CommandLogPayload, DevelitWorkerMethods, Environment, GatewayResponse, IRPCResponse, IncludeRelation, InferResultType, InternalError, InternalErrorResponseStatus, Project, ValidatedInput };
|
package/dist/index.mjs
CHANGED
|
@@ -90,7 +90,7 @@ const swiftZodSchema = new z.$ZodString({
|
|
|
90
90
|
})
|
|
91
91
|
]
|
|
92
92
|
});
|
|
93
|
-
new z.$ZodObject({
|
|
93
|
+
const bankAccountMetadataSchema = new z.$ZodObject({
|
|
94
94
|
type: "object",
|
|
95
95
|
shape: {
|
|
96
96
|
id: new z.$ZodOptional({
|
|
@@ -788,4 +788,4 @@ function develitWorker(Worker) {
|
|
|
788
788
|
return DevelitWorker;
|
|
789
789
|
}
|
|
790
790
|
|
|
791
|
-
export { DatabaseTransaction, ENVIRONMENT, RPCResponse, action, bankAccount, bankAccountBankCodeEnum, bankAccountCountryCodeEnum, bankAccountCurrencyEnum, bankAccountPostgres, base, basePostgres, calculateExponentialBackoff, cloudflareQueue, createAuditLogWriter, createInternalError, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getD1DatabaseIdFromWrangler, getDrizzleD1Config, getDrizzlePgConfig, getPgCredentials, getPgDatabaseIdFromWrangler, getPgLocalConnectionString, handleAction, handleActionResponse, ibanZodSchema, isInternalError, paginationQuerySchema, paginationSchema, service, swiftZodSchema, useFetch, useResult, useResultSync, uuidv4 };
|
|
791
|
+
export { DatabaseTransaction, ENVIRONMENT, RPCResponse, action, bankAccount, bankAccountBankCodeEnum, bankAccountCountryCodeEnum, bankAccountCurrencyEnum, bankAccountMetadataSchema, bankAccountPostgres, base, basePostgres, calculateExponentialBackoff, cloudflareQueue, createAuditLogWriter, createInternalError, defineCommand, derivePortFromId, develitWorker, durableObjectNamespaceIdFromName, first, firstOrError, getD1Credentials, getD1DatabaseIdFromWrangler, getDrizzleD1Config, getDrizzlePgConfig, getPgCredentials, getPgDatabaseIdFromWrangler, getPgLocalConnectionString, handleAction, handleActionResponse, ibanZodSchema, isInternalError, paginationQuerySchema, paginationSchema, service, swiftZodSchema, useFetch, useResult, useResultSync, uuidv4 };
|