@develit-io/backend-sdk 5.30.3 → 5.30.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/index.d.cts DELETED
@@ -1,443 +0,0 @@
1
- import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
2
- import { AnyPgTable } from 'drizzle-orm/pg-core';
3
- import * as drizzle_orm from 'drizzle-orm';
4
- import { ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult } from 'drizzle-orm';
5
- import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
6
- import { AnySQLiteTable } from 'drizzle-orm/sqlite-core';
7
- import * as z from 'zod/v4/core';
8
- export { E as Environment } from './shared/backend-sdk.CYcpgphg.cjs';
9
- export { P as Project } from './shared/backend-sdk.CP78x0gl.cjs';
10
- import { StatusCodes, ReasonPhrases } from 'http-status-codes';
11
- export { ReasonPhrases as InternalResponsePhrase, StatusCodes as InternalResponseStatus } from 'http-status-codes';
12
- import { Queue } from '@cloudflare/workers-types';
13
- import { BatchItem } from 'drizzle-orm/batch';
14
- import { DrizzleD1Database } from 'drizzle-orm/d1';
15
-
16
- declare const base: {
17
- id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
18
- createdAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"created_at">>;
19
- updatedAt: drizzle_orm.HasDefault<drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"updated_at">>>;
20
- deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
21
- };
22
- declare const basePostgres: {
23
- id: drizzle_orm.IsPrimaryKey<drizzle_orm.NotNull<drizzle_orm_pg_core.PgUUIDBuilderInitial<"id">>>;
24
- createdAt: drizzle_orm.NotNull<drizzle_orm.HasDefault<drizzle_orm_pg_core.PgTimestampBuilderInitial<"created_at">>>;
25
- updatedAt: drizzle_orm.HasDefault<drizzle_orm.NotNull<drizzle_orm.HasDefault<drizzle_orm_pg_core.PgTimestampBuilderInitial<"updated_at">>>>;
26
- deletedAt: drizzle_orm.HasDefault<drizzle_orm_pg_core.PgTimestampBuilderInitial<"deleted_at">>;
27
- };
28
-
29
- declare const bankAccount: {
30
- holderName: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"holder_name", [string, ...string[]], number | undefined>>;
31
- number: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"number", [string, ...string[]], number | undefined>>;
32
- bankCode: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"bank_code", ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500")[]], number | undefined>>;
33
- iban: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"iban", [string, ...string[]], number | undefined>>;
34
- bic: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"bic", [string, ...string[]], number | undefined>>;
35
- currency: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"currency", ["CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX", ...("CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX")[]], number | undefined>>;
36
- countryCode: drizzle_orm.NotNull<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"country_code", ["AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW", ...("AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[]], number | undefined>>;
37
- };
38
- declare const bankAccountCurrencyEnum: drizzle_orm_pg_core.PgEnum<["CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX", ...("CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX")[]]>;
39
- declare const bankAccountCountryCodeEnum: drizzle_orm_pg_core.PgEnum<["AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW", ...("AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[]]>;
40
- declare const bankAccountBankCodeEnum: drizzle_orm_pg_core.PgEnum<["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500")[]]>;
41
- declare const bankAccountPostgres: {
42
- holderName: drizzle_orm.NotNull<drizzle_orm_pg_core.PgTextBuilderInitial<"holder_name", [string, ...string[]]>>;
43
- number: drizzle_orm.NotNull<drizzle_orm_pg_core.PgTextBuilderInitial<"number", [string, ...string[]]>>;
44
- bankCode: drizzle_orm.NotNull<drizzle_orm.$Type<drizzle_orm_pg_core.PgEnumColumnBuilderInitial<"", ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500")[]]>, "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500">>;
45
- iban: drizzle_orm.NotNull<drizzle_orm_pg_core.PgTextBuilderInitial<"iban", [string, ...string[]]>>;
46
- bic: drizzle_orm.NotNull<drizzle_orm_pg_core.PgTextBuilderInitial<"bic", [string, ...string[]]>>;
47
- currency: drizzle_orm.NotNull<drizzle_orm.$Type<drizzle_orm_pg_core.PgEnumColumnBuilderInitial<"", ["CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX", ...("CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX")[]]>, "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX">>;
48
- countryCode: drizzle_orm.NotNull<drizzle_orm.$Type<drizzle_orm_pg_core.PgEnumColumnBuilderInitial<"", ["AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW", ...("AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[]]>, "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW">>;
49
- };
50
-
51
- declare const ENVIRONMENT: string[];
52
-
53
- interface AuditLogPayload<T> {
54
- action: T;
55
- actorId: string;
56
- actorUsername?: string;
57
- service: string;
58
- entityId?: string;
59
- }
60
-
61
- declare const ibanZodSchema: z.$ZodString<unknown>;
62
- declare const swiftZodSchema: z.$ZodString<unknown>;
63
-
64
- interface CommandLogPayload<T = string> {
65
- action: T;
66
- actorId: string;
67
- actorUsername?: string;
68
- entityId?: string;
69
- }
70
-
71
- interface CommandItem<TAuditAction = string> {
72
- command: BatchItem<'sqlite'>;
73
- logPayload: CommandLogPayload<TAuditAction>;
74
- id: string;
75
- }
76
-
77
- /**
78
- * Utility type to infer possible relation includes (`with`) for a given table.
79
- * This helps define which relations (one-to-many, many-to-one) can be included in a query.
80
- *
81
- * @template Tables - The Drizzle ORM schema object.
82
- * @template TableName - The table for which relations should be inferred.
83
- */
84
- type IncludeRelation<Tables extends Record<string, unknown>, TableName extends keyof ExtractTablesWithRelations<Tables>> = DBQueryConfig<'one' | 'many', boolean, ExtractTablesWithRelations<Tables>, ExtractTablesWithRelations<Tables>[TableName]>['with'];
85
- /**
86
- * Infers the result type of Drizzle ORM select query with optional relations.
87
- * This ensures correct TypeScript inference when querying tables and their relations.
88
- *
89
- * @template Tables - The Drizzle ORM schema object.
90
- * @template TableName - The table for which the query result is being inferred.
91
- * @template With - (Optional) Specifies which relations should be included in the result.
92
- */
93
- type InferResultType<Tables extends Record<string, unknown>, TableName extends keyof ExtractTablesWithRelations<Tables>, With extends IncludeRelation<Tables, TableName> | undefined = undefined> = BuildQueryResult<ExtractTablesWithRelations<Tables>, ExtractTablesWithRelations<Tables>[TableName], {
94
- with: With;
95
- }>;
96
-
97
- declare const paginationQuerySchema: z.$ZodObject<Readonly<Readonly<{
98
- [k: string]: z.$ZodType<unknown, unknown, z.$ZodTypeInternals<unknown, unknown>>;
99
- }>>, z.$ZodObjectConfig>;
100
- declare const paginationSchema: z.$ZodObject<Readonly<Readonly<{
101
- [k: string]: z.$ZodType<unknown, unknown, z.$ZodTypeInternals<unknown, unknown>>;
102
- }>>, z.$ZodObjectConfig>;
103
-
104
- type InternalErrorResponseStatus = Exclude<StatusCodes, 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207>;
105
- interface InternalError {
106
- status: InternalErrorResponseStatus;
107
- code: string;
108
- message: string;
109
- }
110
- interface IRPCResponse<T> {
111
- status: StatusCodes;
112
- message: string;
113
- data: T | null | undefined;
114
- error: boolean;
115
- phrase?: ReasonPhrases;
116
- }
117
- interface GatewayResponse<T> {
118
- status?: number;
119
- message: string;
120
- data?: T;
121
- }
122
-
123
- /**
124
- * A utility function to handle operations and return a standardized result.
125
- *
126
- * This function wraps the call and ensures that both the resolved value
127
- * and any potential errors are captured in a structured tuple format.
128
- *
129
- * @template T - The type of the expected result.
130
- * @returns A call that resolves to a tuple containing:
131
- * - The resolved data (`T | null`) if successful.
132
- * - An `RPCError` object (`RPCError | null`) if an error occurs.
133
- */
134
- type Result<T> = [data: T | null, error: InternalError | null];
135
-
136
- declare const handleActionResponse: <T>({ error, status, message, data, }: {
137
- error: boolean;
138
- status: number;
139
- message: string;
140
- data: T;
141
- }) => T & {};
142
-
143
- type Constructor<T = {}> = abstract new (...args: any[]) => T;
144
- interface DevelitWorkerMethods {
145
- name: string;
146
- action: string;
147
- fetch(): Promise<Response>;
148
- log(data: object, identifier?: string): void;
149
- logQueuePush(data: object): void;
150
- logQueuePull(data: object): void;
151
- logQueueRetries(data: object): void;
152
- logInput(data: object): void;
153
- logOutput(data: object): void;
154
- logError(error: object): void;
155
- pushToQueue<T>(queue: Queue, message: T | T[]): Promise<void>;
156
- recordAuditLogMessage<T>(queue: Queue, message: T | T[]): Promise<void>;
157
- handleInput<T extends z.$ZodType>(args: {
158
- input: z.infer<T>;
159
- schema: T;
160
- }): z.infer<T>;
161
- handleAction<TInput, TOutput>(input: {
162
- data: TInput;
163
- schema: z.$ZodType<TInput>;
164
- } | null, options: ActionHandlerOptions<TInput, TOutput>, actionExecution: TInput extends null ? () => Promise<TOutput> : (validatedInput: TInput) => Promise<TOutput>): Promise<IRPCResponse<TOutput>>;
165
- }
166
- declare function develitWorker<TWorker extends Constructor>(Worker: TWorker): TWorker & Constructor<DevelitWorkerMethods>;
167
-
168
- interface ActionHandlerOptions<TInput, TOutput> {
169
- /**
170
- * Success message to return in the response
171
- * @default "Operation completed successfully."
172
- */
173
- successMessage?: string;
174
- /**
175
- * Transform function to modify the input before logging
176
- * Useful for removing sensitive data from logs
177
- */
178
- logInputTransform?: (input: TInput) => object;
179
- /**
180
- * Transform function to modify the output before logging
181
- * Useful for removing sensitive data from logs
182
- */
183
- logOutputTransform?: (data: TOutput) => object;
184
- /**
185
- * Skip input validation if true
186
- * @default false
187
- */
188
- skipValidation?: boolean;
189
- /**
190
- * Skip logging if true
191
- * @default false
192
- */
193
- skipLogging?: boolean;
194
- }
195
- /**
196
- * Generic action handler that eliminates boilerplate code for service actions
197
- *
198
- * @template TInput - The input type for the action
199
- * @template TOutput - The output type for the action
200
- * @param worker - The worker instance (this context)
201
- * @param input - The input data for the action
202
- * @param options - Configuration options for the handler
203
- * @param actionExecution - The actual business logic function
204
- * @returns Promise resolving to IRPCResponse<TOutput>
205
- */
206
- declare function handleAction<TInput, TOutput>(worker: DevelitWorkerMethods, input: {
207
- data: TInput;
208
- schema: z.$ZodType<TInput>;
209
- } | null, options: ActionHandlerOptions<TInput, TOutput> | undefined, actionExecution: TInput extends null ? () => Promise<TOutput> : (validatedInput: TInput) => Promise<TOutput>): Promise<IRPCResponse<TOutput>>;
210
- /**
211
- * Utility type to extract the validated input type from a schema
212
- */
213
- type ValidatedInput<T extends z.$ZodType> = z.infer<T>;
214
- /**
215
- * Utility type for action execution functions
216
- */
217
- type ActionExecution<TInput, TOutput> = TInput extends null ? () => Promise<TOutput> : (input: TInput) => Promise<TOutput>;
218
-
219
- type AuditLogTable = AnySQLiteTable | AnyPgTable;
220
- type AuditLogWriter<TAuditAction = string> = (logs: AuditLogPayload<TAuditAction>[], db: DrizzleD1Database<Record<string, unknown>>) => BatchItem<'sqlite'>[];
221
- /**
222
- * Creates an audit log writer function that inserts audit logs into a specified table
223
- *
224
- * @param table - The Drizzle table definition for audit logs
225
- * @returns A function that can be passed to DatabaseTransaction constructor
226
- *
227
- * @example
228
- * ```typescript
229
- * import { createAuditLogWriter } from '@develit-io/workers-sdk'
230
- * import { auditLogsTable } from './schema'
231
- *
232
- * const auditWriter = createAuditLogWriter(auditLogsTable)
233
- *
234
- * // Use in initializeDB
235
- * this.initializeDB(env.DB, schema, auditWriter)
236
- * ```
237
- */
238
- declare function createAuditLogWriter<TAuditAction = string>(table: AuditLogTable): AuditLogWriter<TAuditAction>;
239
-
240
- declare function durableObjectNamespaceIdFromName(uniqueKey: string, name: string): string;
241
- declare const getD1DatabaseIdFromWrangler: () => string | undefined;
242
- declare const getD1Credentials: () => {
243
- driver?: undefined;
244
- dbCredentials?: undefined;
245
- } | {
246
- driver: string;
247
- dbCredentials: {
248
- accountId: string | undefined;
249
- databaseId: string;
250
- token: string | undefined;
251
- url?: undefined;
252
- };
253
- } | {
254
- dbCredentials: {
255
- url: string | undefined;
256
- accountId?: undefined;
257
- databaseId?: undefined;
258
- token?: undefined;
259
- };
260
- driver?: undefined;
261
- };
262
- declare const getDrizzleD1Config: () => {
263
- driver?: undefined;
264
- dbCredentials?: undefined;
265
- schema: string;
266
- out: string;
267
- dialect: "sqlite";
268
- } | {
269
- driver: string;
270
- dbCredentials: {
271
- accountId: string | undefined;
272
- databaseId: string;
273
- token: string | undefined;
274
- url?: undefined;
275
- };
276
- schema: string;
277
- out: string;
278
- dialect: "sqlite";
279
- } | {
280
- dbCredentials: {
281
- url: string | undefined;
282
- accountId?: undefined;
283
- databaseId?: undefined;
284
- token?: undefined;
285
- };
286
- driver?: undefined;
287
- schema: string;
288
- out: string;
289
- dialect: "sqlite";
290
- };
291
-
292
- interface Command<TAuditAction = string> {
293
- handler: (db: DrizzleD1Database<Record<string, unknown>>) => CommandItem<TAuditAction>;
294
- }
295
- type CommandFactory<TParams = void, TAuditAction = string> = TParams extends void ? () => Command<TAuditAction> : (params: TParams) => Command<TAuditAction>;
296
- declare const defineCommand: <TParams = void, TAuditAction = string>(handler: (db: DrizzleD1Database<Record<string, unknown>>, params: TParams) => {
297
- command: BatchItem<"sqlite">;
298
- logPayload: CommandLogPayload<TAuditAction>;
299
- id: string;
300
- }) => CommandFactory<TParams, TAuditAction>;
301
-
302
- declare class DatabaseTransaction<TAuditAction = string> {
303
- private db;
304
- private serviceName?;
305
- private auditLogWriter?;
306
- private commands;
307
- private logs;
308
- private ids;
309
- constructor(db: DrizzleD1Database<Record<string, unknown>>, serviceName?: string | undefined, auditLogWriter?: ((logs: AuditLogPayload<TAuditAction>[], db: DrizzleD1Database<Record<string, unknown>>) => BatchItem<"sqlite">[]) | undefined);
310
- enqueue<U extends Command<TAuditAction>, T extends Readonly<U> | Readonly<[U, ...U[]]>>(commands: T): string | string[] | undefined;
311
- execute(commandItem: Command<TAuditAction>): Promise<void>;
312
- executeAll(): Promise<void>;
313
- getLogs(): readonly AuditLogPayload<TAuditAction>[];
314
- getIds(): readonly string[];
315
- getCommandsCount(): number;
316
- }
317
-
318
- declare function first<T>(rows: T[]): T | undefined;
319
- declare function firstOrError<T>(rows: T[]): T;
320
- declare const uuidv4: () => `${string}-${string}-${string}-${string}-${string}`;
321
- declare function derivePortFromId(id: string, base?: number, range?: number): number;
322
-
323
- declare const createInternalError: (error: unknown, details?: {
324
- status?: InternalErrorResponseStatus;
325
- code?: string;
326
- message?: string;
327
- }) => InternalError;
328
- declare const isInternalError: (error: unknown) => error is InternalError;
329
-
330
- interface UseFetchOptions extends RequestInit {
331
- parseAs?: 'json' | 'text' | 'blob';
332
- }
333
- declare function useFetch<T = unknown>(url: string, { parseAs, ...options }?: UseFetchOptions): Promise<Result<T>>;
334
-
335
- declare const getPgLocalConnectionString: (id: string) => string;
336
- declare const getPgDatabaseIdFromWrangler: () => string | undefined;
337
- declare const getPgCredentials: (serviceName?: string) => {
338
- dbCredentials: {
339
- url: string;
340
- };
341
- };
342
- declare const getDrizzlePgConfig: () => {
343
- migrations: {
344
- table: string;
345
- schema: string;
346
- };
347
- dbCredentials: {
348
- url: string;
349
- };
350
- schema: string;
351
- out: string;
352
- dialect: "postgresql";
353
- };
354
-
355
- declare const calculateExponentialBackoff: (attempts: number, baseDelaySeconds: number) => number;
356
-
357
- declare const RPCResponse: {
358
- /**
359
- * ✅ Constructs a successful RPC response.
360
- *
361
- * This method wraps the provided data in a standardized response format,
362
- * ensuring consistency across API responses.
363
- *
364
- * @template T - The type of the response data.
365
- * @param message - Response message
366
- * @param detail - Optional -> Contains data and status code
367
- * @returns An `IRPCResponse<T>` with the provided data and no error.
368
- */
369
- ok<T>(message: string, detail?: {
370
- data?: T;
371
- status?: StatusCodes;
372
- }): IRPCResponse<T>;
373
- /**
374
- * ❌ Constructs a generic service error response.
375
- *
376
- * This method logs the error and returns a standardized error response.
377
- *
378
- * @template T - The expected response type (typically ignored in errors).
379
- * @param error - An `RPCError` containing error details.
380
- * @returns An `IRPCResponse<T>` with `null` data and the provided error.
381
- */
382
- serviceError<T>(error: InternalError): IRPCResponse<T>;
383
- /**
384
- * ❌ Constructs a validation error response (HTTP 400).
385
- *
386
- * This is a convenience method for returning validation errors.
387
- * It internally delegates to `serviceError()`.
388
- *
389
- * @template T - The expected response type (typically ignored in errors).
390
- * @param error - An `RPCError` representing a validation failure.
391
- * @returns An `IRPCResponse<T>` with `null` data and the provided error.
392
- */
393
- validationError<T>(error: InternalError): IRPCResponse<T>;
394
- };
395
-
396
- /**
397
- * Executes a given promise and returns the result in a structured format.
398
- *
399
- * Instead of throwing errors, this function catches them and returns
400
- * a standardized `RPCError` object, making error handling more predictable.
401
- *
402
- * @template T - The expected return type of the promise.
403
- * @param promise - A promise representing an asynchronous operation.
404
- * @returns A promise that resolves to a tuple:
405
- * - `[data, null]` if the operation succeeds.
406
- * - `[null, error]` if the operation fails.
407
- */
408
- declare const useResult: <T>(promise: Promise<T>) => Promise<Result<T>>;
409
- /**
410
- * Executes a given function and returns the result in a structured format.
411
- *
412
- * Instead of throwing errors, this function catches them and returns
413
- * a standardized `RPCError` object, making error handling more predictable.
414
- *
415
- * @template T - The expected return type of the function.
416
- * @param function - A function representing an synchronous operation.
417
- * @returns A a tuple:
418
- * - `[data, null]` if the operation succeeds.
419
- * - `[null, error]` if the operation fails.
420
- */
421
- declare const useResultSync: <T>(fn: () => T) => Result<T>;
422
-
423
- declare const service: (serviceName: string) => <T extends new (...args: any[]) => object>(constructor: T) => {
424
- new (...args: any[]): {
425
- name: string;
426
- };
427
- } & T;
428
-
429
- /**
430
- * Method decorator that sets `this.action` to a specific name before method execution.
431
- *
432
- * This is used to enforce logging context and input validation via `handleActionInput`.
433
- */
434
- declare const action: (name: string) => MethodDecorator;
435
-
436
- interface WithRetryCounterOptions {
437
- baseDelay: number;
438
- }
439
- type AsyncMethod<TArgs extends unknown[] = unknown[], TResult = unknown> = (...args: TArgs) => Promise<TResult>;
440
- declare function cloudflareQueue<TArgs extends unknown[] = unknown[], TResult = unknown>(options: WithRetryCounterOptions): (target: unknown, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<AsyncMethod<TArgs, TResult>>) => void;
441
-
442
- 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 };
443
- export type { ActionExecution, ActionHandlerOptions, AuditLogWriter, Command, CommandLogPayload, DevelitWorkerMethods, GatewayResponse, IRPCResponse, IncludeRelation, InferResultType, InternalError, InternalErrorResponseStatus, ValidatedInput };
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- const worker = require('../shared/backend-sdk.Vru_rcK6.cjs');
4
- require('../shared/backend-sdk.BdcrYpFD.cjs');
5
- require('@std/path');
6
- require('comment-json');
7
-
8
-
9
-
10
- exports.composeWorkerArguments = worker.composeWorkerArguments;
11
- exports.extractWorkerCrons = worker.extractWorkerCrons;
12
- exports.extractWorkerVars = worker.extractWorkerVars;
13
- exports.loadWorkerConfig = worker.loadWorkerConfig;
@@ -1,3 +0,0 @@
1
- export { c as composeWorkerArguments, e as extractWorkerCrons, a as extractWorkerVars, l as loadWorkerConfig } from '../shared/backend-sdk.CdngrAa0.cjs';
2
- import 'alchemy/cloudflare';
3
- import '../shared/backend-sdk.CYcpgphg.cjs';
@@ -1,3 +0,0 @@
1
- export { c as composeWorkerArguments, e as extractWorkerCrons, a as extractWorkerVars, l as loadWorkerConfig } from '../shared/backend-sdk.C-0xIdM4.mjs';
2
- import 'alchemy/cloudflare';
3
- import '../shared/backend-sdk.CYcpgphg.mjs';
@@ -1,3 +0,0 @@
1
- export { c as composeWorkerArguments, e as extractWorkerCrons, a as extractWorkerVars, l as loadWorkerConfig } from '../shared/backend-sdk.qPzlx18G.js';
2
- import 'alchemy/cloudflare';
3
- import '../shared/backend-sdk.CYcpgphg.js';
@@ -1,4 +0,0 @@
1
- export { c as composeWorkerArguments, e as extractWorkerCrons, a as extractWorkerVars, l as loadWorkerConfig } from '../shared/backend-sdk.Fdiq3Ek5.mjs';
2
- import '../shared/backend-sdk.DXRpnctc.mjs';
3
- import '@std/path';
4
- import 'comment-json';
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- const ENVIRONMENT = ["dev", "test", "staging", "production"];
4
-
5
- exports.ENVIRONMENT = ENVIRONMENT;
@@ -1,69 +0,0 @@
1
- import { Bindings, Queue, QueueConsumerSettings } from 'alchemy/cloudflare';
2
- import { E as Environment } from './backend-sdk.CYcpgphg.mjs';
3
-
4
- type Resource = 'kv' | 'd1' | 'queue' | 'dlq' | 'r2' | 'durable-object' | 'worker' | 'service' | 'orchestrator' | 'client';
5
- type WorkerType = 'service' | 'orchestrator' | 'client';
6
- interface WorkerConfig {
7
- vars: {
8
- [key: string]: string;
9
- };
10
- triggers: {
11
- crons: string[];
12
- };
13
- env: {
14
- [key: string]: {
15
- vars: {
16
- [key: string]: string;
17
- };
18
- triggers: {
19
- crons: string[];
20
- };
21
- };
22
- };
23
- }
24
-
25
- declare const loadWorkerConfig: ({ path }: {
26
- path: string;
27
- }) => Promise<WorkerConfig>;
28
- declare const extractWorkerCrons: ({ workerConfig, environment, }: {
29
- workerConfig: WorkerConfig;
30
- environment: Environment;
31
- }) => string[];
32
- declare const extractWorkerVars: ({ workerConfig, environment, }: {
33
- workerConfig: WorkerConfig;
34
- environment: Environment;
35
- }) => {
36
- [key: string]: string;
37
- };
38
- declare const composeWorkerArguments: ({ resourceName, entrypoint, assets, domains, crons, bindings, eventSources, }: {
39
- resourceName: string;
40
- entrypoint: string;
41
- assets?: Bindings;
42
- domains?: string[];
43
- crons?: string[];
44
- bindings?: Bindings;
45
- eventSources?: {
46
- queue: Queue;
47
- settings: QueueConsumerSettings;
48
- }[];
49
- }) => {
50
- name: string;
51
- entrypoint: string;
52
- compatibilityFlags: string[];
53
- compatibilityDate: string;
54
- observability: {
55
- enabled: true;
56
- };
57
- url: false;
58
- assets: Bindings | undefined;
59
- domains: string[];
60
- eventSources: {
61
- queue: Queue;
62
- settings: QueueConsumerSettings;
63
- }[];
64
- crons: string[];
65
- bindings: Bindings | undefined;
66
- };
67
-
68
- export { extractWorkerVars as a, composeWorkerArguments as c, extractWorkerCrons as e, loadWorkerConfig as l };
69
- export type { Resource as R, WorkerType as W };
@@ -1,3 +0,0 @@
1
- type Project = 'creditio' | 'paycorp-fiat-processor' | 'dbu-mdm' | 'moneio' | 'dbu-txs' | 'lrf-website';
2
-
3
- export type { Project as P };
@@ -1,3 +0,0 @@
1
- type Project = 'creditio' | 'paycorp-fiat-processor' | 'dbu-mdm' | 'moneio' | 'dbu-txs' | 'lrf-website';
2
-
3
- export type { Project as P };
@@ -1,3 +0,0 @@
1
- type Project = 'creditio' | 'paycorp-fiat-processor' | 'dbu-mdm' | 'moneio' | 'dbu-txs' | 'lrf-website';
2
-
3
- export type { Project as P };
@@ -1,3 +0,0 @@
1
- type Environment = string | 'dev' | 'test' | 'staging' | 'production';
2
-
3
- export type { Environment as E };
@@ -1,3 +0,0 @@
1
- type Environment = string | 'dev' | 'test' | 'staging' | 'production';
2
-
3
- export type { Environment as E };