@burdenoff/be-sdk 2026.510.79
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/README.md +173 -0
- package/configs/eslint/index.js +492 -0
- package/configs/tsconfig/tsconfig.json +53 -0
- package/dist/EventQueueFactory-6NMSGECR.js +8 -0
- package/dist/EventQueueFactory-6NMSGECR.js.map +1 -0
- package/dist/auth/index.d.ts +66 -0
- package/dist/auth/index.js +8 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/cache/index.d.ts +2 -0
- package/dist/cache/index.js +6 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/captcha/index.d.ts +1 -0
- package/dist/captcha/index.js +4 -0
- package/dist/captcha/index.js.map +1 -0
- package/dist/chunk-2HANKZZM.js +245 -0
- package/dist/chunk-2HANKZZM.js.map +1 -0
- package/dist/chunk-2SD5L2F2.js +816 -0
- package/dist/chunk-2SD5L2F2.js.map +1 -0
- package/dist/chunk-3O2RQOPV.js +1068 -0
- package/dist/chunk-3O2RQOPV.js.map +1 -0
- package/dist/chunk-4B43DZIS.js +560 -0
- package/dist/chunk-4B43DZIS.js.map +1 -0
- package/dist/chunk-4XAEES25.js +2444 -0
- package/dist/chunk-4XAEES25.js.map +1 -0
- package/dist/chunk-4XGGWW36.js +1405 -0
- package/dist/chunk-4XGGWW36.js.map +1 -0
- package/dist/chunk-5LXDPGDH.js +245 -0
- package/dist/chunk-5LXDPGDH.js.map +1 -0
- package/dist/chunk-AI7L22ZJ.js +472 -0
- package/dist/chunk-AI7L22ZJ.js.map +1 -0
- package/dist/chunk-CBZNP6RF.js +286 -0
- package/dist/chunk-CBZNP6RF.js.map +1 -0
- package/dist/chunk-ELLX3K54.js +613 -0
- package/dist/chunk-ELLX3K54.js.map +1 -0
- package/dist/chunk-F5XEAGHQ.js +1875 -0
- package/dist/chunk-F5XEAGHQ.js.map +1 -0
- package/dist/chunk-FNZEQOJY.js +628 -0
- package/dist/chunk-FNZEQOJY.js.map +1 -0
- package/dist/chunk-GTEMQXCA.js +516 -0
- package/dist/chunk-GTEMQXCA.js.map +1 -0
- package/dist/chunk-HIWTWIGQ.js +226 -0
- package/dist/chunk-HIWTWIGQ.js.map +1 -0
- package/dist/chunk-IYE2NTRX.js +764 -0
- package/dist/chunk-IYE2NTRX.js.map +1 -0
- package/dist/chunk-J26YGR2U.js +1484 -0
- package/dist/chunk-J26YGR2U.js.map +1 -0
- package/dist/chunk-JG2FTZPI.js +509 -0
- package/dist/chunk-JG2FTZPI.js.map +1 -0
- package/dist/chunk-JVBTNSPG.js +1551 -0
- package/dist/chunk-JVBTNSPG.js.map +1 -0
- package/dist/chunk-L7ZMN2FJ.js +12 -0
- package/dist/chunk-L7ZMN2FJ.js.map +1 -0
- package/dist/chunk-M5IMU3US.js +473 -0
- package/dist/chunk-M5IMU3US.js.map +1 -0
- package/dist/chunk-MLW2HPS5.js +1267 -0
- package/dist/chunk-MLW2HPS5.js.map +1 -0
- package/dist/chunk-MNCGUYLJ.js +269 -0
- package/dist/chunk-MNCGUYLJ.js.map +1 -0
- package/dist/chunk-MOCUBSTW.js +373 -0
- package/dist/chunk-MOCUBSTW.js.map +1 -0
- package/dist/chunk-NGMEI42S.js +103 -0
- package/dist/chunk-NGMEI42S.js.map +1 -0
- package/dist/chunk-NUB5GQTU.js +270 -0
- package/dist/chunk-NUB5GQTU.js.map +1 -0
- package/dist/chunk-OVSYMNCI.js +145 -0
- package/dist/chunk-OVSYMNCI.js.map +1 -0
- package/dist/chunk-QLVKMWFA.js +94 -0
- package/dist/chunk-QLVKMWFA.js.map +1 -0
- package/dist/chunk-SAG6ZYWQ.js +89 -0
- package/dist/chunk-SAG6ZYWQ.js.map +1 -0
- package/dist/chunk-SAK2JCA7.js +198 -0
- package/dist/chunk-SAK2JCA7.js.map +1 -0
- package/dist/chunk-SBS4S2PJ.js +100 -0
- package/dist/chunk-SBS4S2PJ.js.map +1 -0
- package/dist/chunk-SNEOLWXT.js +148 -0
- package/dist/chunk-SNEOLWXT.js.map +1 -0
- package/dist/chunk-TKBD2ONF.js +564 -0
- package/dist/chunk-TKBD2ONF.js.map +1 -0
- package/dist/chunk-UBXFIIAW.js +127 -0
- package/dist/chunk-UBXFIIAW.js.map +1 -0
- package/dist/chunk-VI4VSNTI.js +57 -0
- package/dist/chunk-VI4VSNTI.js.map +1 -0
- package/dist/chunk-VWCN5PMD.js +268 -0
- package/dist/chunk-VWCN5PMD.js.map +1 -0
- package/dist/chunk-XC2YD6CF.js +913 -0
- package/dist/chunk-XC2YD6CF.js.map +1 -0
- package/dist/chunk-XE4OXN2W.js +10 -0
- package/dist/chunk-XE4OXN2W.js.map +1 -0
- package/dist/chunk-YMZEUTD2.js +110 -0
- package/dist/chunk-YMZEUTD2.js.map +1 -0
- package/dist/chunk-Z4IRLBWO.js +758 -0
- package/dist/chunk-Z4IRLBWO.js.map +1 -0
- package/dist/client/internal-client.d.ts +7 -0
- package/dist/client/internal-client.js +5 -0
- package/dist/client/internal-client.js.map +1 -0
- package/dist/client-CSjIrYKS.d.ts +77 -0
- package/dist/config-UKE2E3BW.js +4 -0
- package/dist/config-UKE2E3BW.js.map +1 -0
- package/dist/crypto/index.d.ts +1 -0
- package/dist/crypto/index.js +4 -0
- package/dist/crypto/index.js.map +1 -0
- package/dist/database/index.d.ts +117 -0
- package/dist/database/index.js +7 -0
- package/dist/database/index.js.map +1 -0
- package/dist/dataloader/index.d.ts +1 -0
- package/dist/dataloader/index.js +4 -0
- package/dist/dataloader/index.js.map +1 -0
- package/dist/esm-K6H7EIWK.js +1450 -0
- package/dist/esm-K6H7EIWK.js.map +1 -0
- package/dist/event-queue/index.d.ts +6 -0
- package/dist/event-queue/index.js +10 -0
- package/dist/event-queue/index.js.map +1 -0
- package/dist/export/index.d.ts +2 -0
- package/dist/export/index.js +9 -0
- package/dist/export/index.js.map +1 -0
- package/dist/feature-flags/index.d.ts +1 -0
- package/dist/feature-flags/index.js +4 -0
- package/dist/feature-flags/index.js.map +1 -0
- package/dist/gateway/index.d.ts +4 -0
- package/dist/gateway/index.js +8 -0
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/security/index.d.ts +2 -0
- package/dist/gateway/security/index.js +5 -0
- package/dist/gateway/security/index.js.map +1 -0
- package/dist/graph/index.d.ts +9 -0
- package/dist/graph/index.js +13 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph-emitter-Bk0FqD53.d.ts +47 -0
- package/dist/graphql/index.d.ts +2 -0
- package/dist/graphql/index.js +7 -0
- package/dist/graphql/index.js.map +1 -0
- package/dist/graphql/services/index.d.ts +24 -0
- package/dist/graphql/services/index.js +5 -0
- package/dist/graphql/services/index.js.map +1 -0
- package/dist/graphql-BAVrUgBF.d.ts +22 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/index.js +5 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n-DA6IPnYy.d.ts +101 -0
- package/dist/index-4gKQKZ2B.d.ts +71 -0
- package/dist/index-B18rrFru.d.ts +42 -0
- package/dist/index-B70b5mYS.d.ts +33 -0
- package/dist/index-BMq3lFjj.d.ts +247 -0
- package/dist/index-BODgvRtL.d.ts +316 -0
- package/dist/index-BS2idbnr.d.ts +874 -0
- package/dist/index-BV3G48cH.d.ts +124 -0
- package/dist/index-CHbVw5M7.d.ts +73 -0
- package/dist/index-Cq_xNjcv.d.ts +602 -0
- package/dist/index-CrQgidpx.d.ts +77 -0
- package/dist/index-CyVEg86m.d.ts +309 -0
- package/dist/index-DOcBnmMe.d.ts +166 -0
- package/dist/index-DSOpj8DI.d.ts +17 -0
- package/dist/index-DW9q22GH.d.ts +75 -0
- package/dist/index-DlFDFyWD.d.ts +55 -0
- package/dist/index-DoK0bjhH.d.ts +607 -0
- package/dist/index-Dtf6FBaD.d.ts +199 -0
- package/dist/index-KVWGHMbS.d.ts +415 -0
- package/dist/index-PaojfSdd.d.ts +71 -0
- package/dist/index-RU_M5c74.d.ts +163 -0
- package/dist/index-UhkH2eaB.d.ts +192 -0
- package/dist/index-e_18DzAg.d.ts +18 -0
- package/dist/index-jOuh_TKn.d.ts +59 -0
- package/dist/index.d.ts +584 -0
- package/dist/index.js +2626 -0
- package/dist/index.js.map +1 -0
- package/dist/init/index.d.ts +2 -0
- package/dist/init/index.js +12 -0
- package/dist/init/index.js.map +1 -0
- package/dist/instrumentation/index.d.ts +3 -0
- package/dist/instrumentation/index.js +5 -0
- package/dist/instrumentation/index.js.map +1 -0
- package/dist/layer/index.d.ts +2 -0
- package/dist/layer/index.js +6 -0
- package/dist/layer/index.js.map +1 -0
- package/dist/layer-DDip18KY.d.ts +67 -0
- package/dist/logger/index.d.ts +2 -0
- package/dist/logger/index.js +4 -0
- package/dist/logger/index.js.map +1 -0
- package/dist/middleware/index.d.ts +3 -0
- package/dist/middleware/index.js +5 -0
- package/dist/middleware/index.js.map +1 -0
- package/dist/notifications/index.d.ts +4 -0
- package/dist/notifications/index.js +7 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/observability/index.d.ts +3 -0
- package/dist/observability/index.js +5 -0
- package/dist/observability/index.js.map +1 -0
- package/dist/pino-logger-RYLGXPHZ.js +5 -0
- package/dist/pino-logger-RYLGXPHZ.js.map +1 -0
- package/dist/prisma/generator/index.d.ts +1 -0
- package/dist/prisma/generator/index.js +228 -0
- package/dist/prisma/generator/index.js.map +1 -0
- package/dist/prisma/index.d.ts +5 -0
- package/dist/prisma/index.js +12 -0
- package/dist/prisma/index.js.map +1 -0
- package/dist/prisma-extension-krXnYnrN.d.ts +30 -0
- package/dist/rbac/index.d.ts +116 -0
- package/dist/rbac/index.js +7 -0
- package/dist/rbac/index.js.map +1 -0
- package/dist/sdk-THO3IWEE.js +136 -0
- package/dist/sdk-THO3IWEE.js.map +1 -0
- package/dist/server/index.d.ts +359 -0
- package/dist/server/index.js +884 -0
- package/dist/server/index.js.map +1 -0
- package/dist/telemetry/index.d.ts +83 -0
- package/dist/telemetry/index.js +209 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/temporal/index.d.ts +148 -0
- package/dist/temporal/index.js +6 -0
- package/dist/temporal/index.js.map +1 -0
- package/dist/tracker/index.d.ts +5 -0
- package/dist/tracker/index.js +9 -0
- package/dist/tracker/index.js.map +1 -0
- package/dist/types-Bo2wkjSP.d.ts +35 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/workspace-guard-LHBNK4TG.js +5 -0
- package/dist/workspace-guard-LHBNK4TG.js.map +1 -0
- package/package.json +241 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { I as I18nContext, T as TranslationVariables, L as LocaleCode, P as ParsedLocale, a as LanguageCode, b as TranslationDictionary, F as FlatTranslationMap, c as I18nConfig, d as I18n, e as II18n, f as LanguageInfo, g as PluralForms, h as PluralTranslateFunction, R as RTL_LANGUAGES, i as TextDirection, j as TranslateFunction, k as createI18n, l as getI18n, m as getTextDirection, n as initializeI18n } from './i18n-DA6IPnYy.js';
|
|
2
|
+
|
|
3
|
+
interface I18nCapableContext {
|
|
4
|
+
i18n?: I18nContext;
|
|
5
|
+
}
|
|
6
|
+
declare function t(ctx: I18nCapableContext, key: string, defaultMessage: string, variables?: TranslationVariables): string;
|
|
7
|
+
type Translator = (key: string, defaultMessage: string, variables?: TranslationVariables) => string;
|
|
8
|
+
declare function createTranslator(ctx: I18nCapableContext): Translator;
|
|
9
|
+
declare function hasI18n(ctx: I18nCapableContext): ctx is I18nCapableContext & {
|
|
10
|
+
i18n: I18nContext;
|
|
11
|
+
};
|
|
12
|
+
declare function getLocale(ctx: I18nCapableContext, defaultLocale?: string): string;
|
|
13
|
+
declare function getLanguage(ctx: I18nCapableContext, defaultLanguage?: string): string;
|
|
14
|
+
|
|
15
|
+
declare function parseLocaleString(localeStr: string): ParsedLocale | null;
|
|
16
|
+
declare function parseAcceptLanguage(header: string | null | undefined): ParsedLocale[];
|
|
17
|
+
declare function extractLocaleFromRequest(request: Request, defaultLocale?: LocaleCode): ParsedLocale;
|
|
18
|
+
declare function normalizeLocale(locale: string): LocaleCode;
|
|
19
|
+
declare function getLanguageFromLocale(locale: LocaleCode): LanguageCode;
|
|
20
|
+
declare function getRegionFromLocale(locale: LocaleCode): string | undefined;
|
|
21
|
+
declare function findBestMatch(requested: ParsedLocale[], available: LocaleCode[], defaultLocale: LocaleCode): LocaleCode;
|
|
22
|
+
|
|
23
|
+
declare function flattenDictionary(obj: TranslationDictionary, prefix?: string): FlatTranslationMap;
|
|
24
|
+
declare function loadTranslationFile(filePath: string, baseDir: string): Promise<TranslationDictionary>;
|
|
25
|
+
declare function loadTranslationsForLocale(config: I18nConfig, locale: LocaleCode): Promise<FlatTranslationMap>;
|
|
26
|
+
declare function discoverLocales(localesPath: string): Promise<LocaleCode[]>;
|
|
27
|
+
declare function preloadAllTranslations(config: I18nConfig): Promise<void>;
|
|
28
|
+
declare function clearTranslationCache(namespace?: string): void;
|
|
29
|
+
declare function getCachedTranslations(namespace: string | undefined, locale: LocaleCode): FlatTranslationMap | undefined;
|
|
30
|
+
declare function setCachedTranslations(namespace: string | undefined, locale: LocaleCode, translations: FlatTranslationMap): void;
|
|
31
|
+
|
|
32
|
+
declare const Locales: {
|
|
33
|
+
readonly EN_US: "en-US";
|
|
34
|
+
readonly EN_GB: "en-GB";
|
|
35
|
+
readonly EN_AU: "en-AU";
|
|
36
|
+
readonly EN_CA: "en-CA";
|
|
37
|
+
readonly EN_IN: "en-IN";
|
|
38
|
+
readonly ES_ES: "es-ES";
|
|
39
|
+
readonly ES_MX: "es-MX";
|
|
40
|
+
readonly FR_FR: "fr-FR";
|
|
41
|
+
readonly FR_CA: "fr-CA";
|
|
42
|
+
readonly DE_DE: "de-DE";
|
|
43
|
+
readonly DE_AT: "de-AT";
|
|
44
|
+
readonly DE_CH: "de-CH";
|
|
45
|
+
readonly IT_IT: "it-IT";
|
|
46
|
+
readonly PT_PT: "pt-PT";
|
|
47
|
+
readonly PT_BR: "pt-BR";
|
|
48
|
+
readonly RU_RU: "ru-RU";
|
|
49
|
+
readonly ZH_CN: "zh-CN";
|
|
50
|
+
readonly ZH_TW: "zh-TW";
|
|
51
|
+
readonly ZH_HK: "zh-HK";
|
|
52
|
+
readonly JA_JP: "ja-JP";
|
|
53
|
+
readonly KO_KR: "ko-KR";
|
|
54
|
+
readonly AR_SA: "ar-SA";
|
|
55
|
+
readonly AR_AE: "ar-AE";
|
|
56
|
+
readonly HI_IN: "hi-IN";
|
|
57
|
+
readonly TA_IN: "ta-IN";
|
|
58
|
+
readonly NL_NL: "nl-NL";
|
|
59
|
+
readonly PL_PL: "pl-PL";
|
|
60
|
+
readonly TR_TR: "tr-TR";
|
|
61
|
+
readonly VI_VN: "vi-VN";
|
|
62
|
+
readonly TH_TH: "th-TH";
|
|
63
|
+
readonly ID_ID: "id-ID";
|
|
64
|
+
readonly HE_IL: "he-IL";
|
|
65
|
+
readonly UK_UA: "uk-UA";
|
|
66
|
+
};
|
|
67
|
+
declare const DEFAULT_I18N_CONFIG: {
|
|
68
|
+
readonly defaultLocale: "en-US";
|
|
69
|
+
readonly fallbackLocale: "en-US";
|
|
70
|
+
readonly enableCache: true;
|
|
71
|
+
readonly lazyLoad: false;
|
|
72
|
+
readonly logMissing: true;
|
|
73
|
+
readonly returnKeyOnMissing: true;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
declare const index_DEFAULT_I18N_CONFIG: typeof DEFAULT_I18N_CONFIG;
|
|
77
|
+
declare const index_FlatTranslationMap: typeof FlatTranslationMap;
|
|
78
|
+
declare const index_I18n: typeof I18n;
|
|
79
|
+
type index_I18nCapableContext = I18nCapableContext;
|
|
80
|
+
declare const index_I18nConfig: typeof I18nConfig;
|
|
81
|
+
declare const index_I18nContext: typeof I18nContext;
|
|
82
|
+
declare const index_II18n: typeof II18n;
|
|
83
|
+
declare const index_LanguageCode: typeof LanguageCode;
|
|
84
|
+
declare const index_LanguageInfo: typeof LanguageInfo;
|
|
85
|
+
declare const index_LocaleCode: typeof LocaleCode;
|
|
86
|
+
declare const index_Locales: typeof Locales;
|
|
87
|
+
declare const index_ParsedLocale: typeof ParsedLocale;
|
|
88
|
+
declare const index_PluralForms: typeof PluralForms;
|
|
89
|
+
declare const index_PluralTranslateFunction: typeof PluralTranslateFunction;
|
|
90
|
+
declare const index_RTL_LANGUAGES: typeof RTL_LANGUAGES;
|
|
91
|
+
declare const index_TextDirection: typeof TextDirection;
|
|
92
|
+
declare const index_TranslateFunction: typeof TranslateFunction;
|
|
93
|
+
declare const index_TranslationDictionary: typeof TranslationDictionary;
|
|
94
|
+
declare const index_TranslationVariables: typeof TranslationVariables;
|
|
95
|
+
type index_Translator = Translator;
|
|
96
|
+
declare const index_clearTranslationCache: typeof clearTranslationCache;
|
|
97
|
+
declare const index_createI18n: typeof createI18n;
|
|
98
|
+
declare const index_createTranslator: typeof createTranslator;
|
|
99
|
+
declare const index_discoverLocales: typeof discoverLocales;
|
|
100
|
+
declare const index_extractLocaleFromRequest: typeof extractLocaleFromRequest;
|
|
101
|
+
declare const index_findBestMatch: typeof findBestMatch;
|
|
102
|
+
declare const index_flattenDictionary: typeof flattenDictionary;
|
|
103
|
+
declare const index_getCachedTranslations: typeof getCachedTranslations;
|
|
104
|
+
declare const index_getI18n: typeof getI18n;
|
|
105
|
+
declare const index_getLanguage: typeof getLanguage;
|
|
106
|
+
declare const index_getLanguageFromLocale: typeof getLanguageFromLocale;
|
|
107
|
+
declare const index_getLocale: typeof getLocale;
|
|
108
|
+
declare const index_getRegionFromLocale: typeof getRegionFromLocale;
|
|
109
|
+
declare const index_getTextDirection: typeof getTextDirection;
|
|
110
|
+
declare const index_hasI18n: typeof hasI18n;
|
|
111
|
+
declare const index_initializeI18n: typeof initializeI18n;
|
|
112
|
+
declare const index_loadTranslationFile: typeof loadTranslationFile;
|
|
113
|
+
declare const index_loadTranslationsForLocale: typeof loadTranslationsForLocale;
|
|
114
|
+
declare const index_normalizeLocale: typeof normalizeLocale;
|
|
115
|
+
declare const index_parseAcceptLanguage: typeof parseAcceptLanguage;
|
|
116
|
+
declare const index_parseLocaleString: typeof parseLocaleString;
|
|
117
|
+
declare const index_preloadAllTranslations: typeof preloadAllTranslations;
|
|
118
|
+
declare const index_setCachedTranslations: typeof setCachedTranslations;
|
|
119
|
+
declare const index_t: typeof t;
|
|
120
|
+
declare namespace index {
|
|
121
|
+
export { index_DEFAULT_I18N_CONFIG as DEFAULT_I18N_CONFIG, index_FlatTranslationMap as FlatTranslationMap, index_I18n as I18n, type index_I18nCapableContext as I18nCapableContext, index_I18nConfig as I18nConfig, index_I18nContext as I18nContext, index_II18n as II18n, index_LanguageCode as LanguageCode, index_LanguageInfo as LanguageInfo, index_LocaleCode as LocaleCode, index_Locales as Locales, index_ParsedLocale as ParsedLocale, index_PluralForms as PluralForms, index_PluralTranslateFunction as PluralTranslateFunction, index_RTL_LANGUAGES as RTL_LANGUAGES, index_TextDirection as TextDirection, index_TranslateFunction as TranslateFunction, index_TranslationDictionary as TranslationDictionary, index_TranslationVariables as TranslationVariables, type index_Translator as Translator, index_clearTranslationCache as clearTranslationCache, index_createI18n as createI18n, index_createTranslator as createTranslator, index_discoverLocales as discoverLocales, index_extractLocaleFromRequest as extractLocaleFromRequest, index_findBestMatch as findBestMatch, index_flattenDictionary as flattenDictionary, index_getCachedTranslations as getCachedTranslations, index_getI18n as getI18n, index_getLanguage as getLanguage, index_getLanguageFromLocale as getLanguageFromLocale, index_getLocale as getLocale, index_getRegionFromLocale as getRegionFromLocale, index_getTextDirection as getTextDirection, index_hasI18n as hasI18n, index_initializeI18n as initializeI18n, index_loadTranslationFile as loadTranslationFile, index_loadTranslationsForLocale as loadTranslationsForLocale, index_normalizeLocale as normalizeLocale, index_parseAcceptLanguage as parseAcceptLanguage, index_parseLocaleString as parseLocaleString, index_preloadAllTranslations as preloadAllTranslations, index_setCachedTranslations as setCachedTranslations, index_t as t };
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export { DEFAULT_I18N_CONFIG as D, type I18nCapableContext as I, Locales as L, type Translator as T, getLocale as a, clearTranslationCache as b, createTranslator as c, discoverLocales as d, extractLocaleFromRequest as e, findBestMatch as f, getLanguage as g, hasI18n as h, index as i, flattenDictionary as j, getCachedTranslations as k, getLanguageFromLocale as l, getRegionFromLocale as m, loadTranslationFile as n, loadTranslationsForLocale as o, normalizeLocale as p, parseAcceptLanguage as q, parseLocaleString as r, preloadAllTranslations as s, t, setCachedTranslations as u };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
interface SDKConfig {
|
|
2
|
+
workspacesApiUrl: string;
|
|
3
|
+
tenantApiUrl?: string;
|
|
4
|
+
timeout?: number;
|
|
5
|
+
retry?: RetryConfig;
|
|
6
|
+
logger?: LoggerConfig;
|
|
7
|
+
nats?: NATSSDKConfig;
|
|
8
|
+
temporalModuleType?: 'workspace' | 'tenant';
|
|
9
|
+
temporalAddress?: string;
|
|
10
|
+
temporalNamespace?: string;
|
|
11
|
+
temporalTaskQueue?: string;
|
|
12
|
+
temporalAutoConnect?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface RetryConfig {
|
|
15
|
+
maxAttempts: number;
|
|
16
|
+
initialDelay: number;
|
|
17
|
+
maxDelay: number;
|
|
18
|
+
backoffMultiplier: number;
|
|
19
|
+
}
|
|
20
|
+
interface LoggerConfig {
|
|
21
|
+
level: 'debug' | 'info' | 'warn' | 'error';
|
|
22
|
+
console: boolean;
|
|
23
|
+
transport?: LoggerTransport;
|
|
24
|
+
}
|
|
25
|
+
interface LoggerTransport {
|
|
26
|
+
log(level: string, message: string, meta?: Record<string, unknown>): void;
|
|
27
|
+
}
|
|
28
|
+
type ActorType = 'user' | 'app' | 'service' | 'super_admin';
|
|
29
|
+
interface SDKContext {
|
|
30
|
+
actorId?: string;
|
|
31
|
+
actorType?: ActorType;
|
|
32
|
+
workspaceId?: string;
|
|
33
|
+
tenantId?: string;
|
|
34
|
+
projectId?: string;
|
|
35
|
+
appId?: string;
|
|
36
|
+
token?: string;
|
|
37
|
+
productId?: string;
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
}
|
|
40
|
+
interface NATSSDKConfig {
|
|
41
|
+
url?: string;
|
|
42
|
+
servers?: string[];
|
|
43
|
+
user?: string;
|
|
44
|
+
password?: string;
|
|
45
|
+
token?: string;
|
|
46
|
+
maxReconnectAttempts?: number;
|
|
47
|
+
reconnectTimeWait?: number;
|
|
48
|
+
name?: string;
|
|
49
|
+
autoConnect?: boolean;
|
|
50
|
+
}
|
|
51
|
+
interface NatsHealthStatus {
|
|
52
|
+
status: 'healthy' | 'unhealthy' | 'not_configured';
|
|
53
|
+
connected: boolean;
|
|
54
|
+
url?: string;
|
|
55
|
+
details?: Record<string, unknown>;
|
|
56
|
+
}
|
|
57
|
+
interface TemporalHealthStatus {
|
|
58
|
+
status: 'healthy' | 'unhealthy' | 'not_configured';
|
|
59
|
+
connected: boolean;
|
|
60
|
+
address?: string;
|
|
61
|
+
namespace?: string;
|
|
62
|
+
details?: Record<string, unknown>;
|
|
63
|
+
}
|
|
64
|
+
interface SDKHealthStatus {
|
|
65
|
+
nats: NatsHealthStatus;
|
|
66
|
+
temporal: TemporalHealthStatus;
|
|
67
|
+
}
|
|
68
|
+
interface SDKShutdownOptions {
|
|
69
|
+
timeout?: number;
|
|
70
|
+
force?: boolean;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type { LoggerConfig as L, NatsHealthStatus as N, SDKContext as S, TemporalHealthStatus as T, SDKConfig as a, SDKHealthStatus as b, SDKShutdownOptions as c, LoggerTransport as d, NATSSDKConfig as e };
|