@buka/nestjs-kit 4.0.0 → 4.1.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/CHANGELOG.md +22 -3
- package/dist/index.d.mts +75 -1
- package/dist/index.d.ts +75 -1
- package/dist/index.js +187 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +170 -19
- package/dist/index.mjs.map +1 -1
- package/docs/core/urn.md +11 -11
- package/docs/exception.md +123 -121
- package/docs/index.md +6 -0
- package/docs/logger.md +289 -0
- package/package.json +6 -4
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BadRequestException, Catch, ConfigurableModuleBuilder, Controller, Get, Global, HttpException as HttpException$1, HttpStatus, Inject, Injectable, InternalServerErrorException, Logger, Module, Query, VERSION_NEUTRAL, ValidationPipe, ValidationPipeOptions, Version, applyDecorators, createParamDecorator } from "@nestjs/common";
|
|
1
|
+
import { BadRequestException, Catch, ConfigurableModuleBuilder, Controller, Get, Global, HttpException as HttpException$1, HttpStatus, Inject, Injectable, InternalServerErrorException, Logger as Logger$1, Module, Query, VERSION_NEUTRAL, ValidationPipe, ValidationPipeOptions, Version, applyDecorators, createParamDecorator } from "@nestjs/common";
|
|
2
2
|
import { APP_FILTER, APP_PIPE } from "@nestjs/core";
|
|
3
3
|
import { BigIntType, Config, Cursor, EntityManager, EntityMetadata, EntitySchema, FlushMode, HiddenProps, MetadataStorage, MikroORM, OptionalProps, PrimaryKeyProp, Reference, Utils, helper } from "@mikro-orm/core";
|
|
4
4
|
import { Embeddable, Embedded, Enum as Enum$1, ManyToMany, ManyToOne, OneToMany, OneToOne, PrimaryKey, Property as Property$1 } from "@mikro-orm/decorators/legacy";
|
|
@@ -8,16 +8,16 @@ import { ApiExtraModels, ApiHideProperty, ApiOkResponse, ApiOperation, ApiProper
|
|
|
8
8
|
import { Transform, Type as Type$1, plainToInstance } from "class-transformer";
|
|
9
9
|
import * as R from "ramda";
|
|
10
10
|
import * as classTransformer from "class-transformer/cjs/storage.js";
|
|
11
|
-
import { ModelPropertiesAccessor } from "@nestjs/swagger/dist/services/model-properties-accessor
|
|
12
|
-
import { DECORATORS } from "@nestjs/swagger/dist/constants
|
|
13
|
-
import { METADATA_FACTORY_NAME } from "@nestjs/swagger/dist/plugin/plugin-constants
|
|
11
|
+
import { ModelPropertiesAccessor } from "@nestjs/swagger/dist/services/model-properties-accessor";
|
|
12
|
+
import { DECORATORS } from "@nestjs/swagger/dist/constants";
|
|
13
|
+
import { METADATA_FACTORY_NAME } from "@nestjs/swagger/dist/plugin/plugin-constants";
|
|
14
14
|
import { clonePluginMetadataFactory } from "@nestjs/swagger/dist/type-helpers/mapped-types.utils";
|
|
15
15
|
import { isFunction } from "@nestjs/common/utils/shared.utils";
|
|
16
16
|
import "@nestjs/swagger/dist/utils/is-built-in-type.util";
|
|
17
17
|
import "@nestjs/swagger/dist/interfaces/schema-object-metadata.interface";
|
|
18
18
|
import { v7, validate as validate$2, version } from "uuid";
|
|
19
19
|
import { inheritTransformationMetadata, inheritValidationMetadata } from "@nestjs/mapped-types";
|
|
20
|
-
import { ToNumber } from "@buka/class-transformer-extra";
|
|
20
|
+
import { ToBoolean, ToNumber } from "@buka/class-transformer-extra";
|
|
21
21
|
import * as util from "util";
|
|
22
22
|
import { Migrator } from "@mikro-orm/migrations";
|
|
23
23
|
import * as fs from "node:fs";
|
|
@@ -28,6 +28,8 @@ import { createCipheriv, createDecipheriv, createHash, randomBytes } from "crypt
|
|
|
28
28
|
import bcrypt from "bcryptjs";
|
|
29
29
|
import { Base32, Base32 as Base32$1, ErrorCategory, ErrorCategory as ErrorCategory$1, ErrorCode, ErrorCode as ErrorCode$1 } from "@buka/error-codes";
|
|
30
30
|
import { Exception } from "@buka/exception";
|
|
31
|
+
import { InjectPinoLogger, Logger, LoggerErrorInterceptor, LoggerErrorInterceptor as LoggerErrorInterceptor$1, LoggerModule as LoggerModule$1 } from "nestjs-pino";
|
|
32
|
+
import { stdSerializers } from "pino";
|
|
31
33
|
import { DeleteObjectCommand, GetObjectCommand, HeadObjectCommand, S3Client } from "@aws-sdk/client-s3";
|
|
32
34
|
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
33
35
|
import { Upload } from "@aws-sdk/lib-storage";
|
|
@@ -478,7 +480,7 @@ function IsUrn(validationOptions) {
|
|
|
478
480
|
}
|
|
479
481
|
},
|
|
480
482
|
defaultMessage() {
|
|
481
|
-
return "$property must be a valid URN (urn:buka
|
|
483
|
+
return "$property must be a valid URN (urn:buka:<namespace>[:<resource>[:<identifier>]])";
|
|
482
484
|
}
|
|
483
485
|
}
|
|
484
486
|
});
|
|
@@ -512,7 +514,7 @@ function IsNamespaceUrn(validationOptions) {
|
|
|
512
514
|
}
|
|
513
515
|
},
|
|
514
516
|
defaultMessage() {
|
|
515
|
-
return "$property must be a namespace-level URN (urn:buka
|
|
517
|
+
return "$property must be a namespace-level URN (urn:buka:<namespace>)";
|
|
516
518
|
}
|
|
517
519
|
}
|
|
518
520
|
});
|
|
@@ -546,7 +548,7 @@ function IsResourceUrn(validationOptions) {
|
|
|
546
548
|
}
|
|
547
549
|
},
|
|
548
550
|
defaultMessage() {
|
|
549
|
-
return "$property must be a resource-level URN (urn:buka
|
|
551
|
+
return "$property must be a resource-level URN (urn:buka:<namespace>:<resource>)";
|
|
550
552
|
}
|
|
551
553
|
}
|
|
552
554
|
});
|
|
@@ -580,7 +582,7 @@ function IsIdentifierUrn(validationOptions) {
|
|
|
580
582
|
}
|
|
581
583
|
},
|
|
582
584
|
defaultMessage() {
|
|
583
|
-
return "$property must be an identifier-level URN (urn:buka
|
|
585
|
+
return "$property must be an identifier-level URN (urn:buka:<namespace>:<resource>:<identifier>)";
|
|
584
586
|
}
|
|
585
587
|
}
|
|
586
588
|
});
|
|
@@ -2963,7 +2965,7 @@ function deepTransform(em, value, metatype) {
|
|
|
2963
2965
|
return result;
|
|
2964
2966
|
}
|
|
2965
2967
|
let BukaValidationPipe = _BukaValidationPipe = class BukaValidationPipe extends ValidationPipe {
|
|
2966
|
-
logger = new Logger(_BukaValidationPipe.name);
|
|
2968
|
+
logger = new Logger$1(_BukaValidationPipe.name);
|
|
2967
2969
|
validationOptions;
|
|
2968
2970
|
constructor(orm, em, options) {
|
|
2969
2971
|
super(options);
|
|
@@ -3420,7 +3422,7 @@ function __decorateParam(paramIndex, decorator) {
|
|
|
3420
3422
|
//#region src/modules/open-bao/open-bao-token.manager.ts
|
|
3421
3423
|
var _OpenBaoTokenManager;
|
|
3422
3424
|
let OpenBaoTokenManager = _OpenBaoTokenManager = class OpenBaoTokenManager {
|
|
3423
|
-
logger = new Logger(_OpenBaoTokenManager.name);
|
|
3425
|
+
logger = new Logger$1(_OpenBaoTokenManager.name);
|
|
3424
3426
|
/**
|
|
3425
3427
|
* 用于认证操作的独立 KeqRequest 实例(不依赖动态 token 中间件)
|
|
3426
3428
|
*/
|
|
@@ -3568,7 +3570,7 @@ OpenBaoTokenManager = _OpenBaoTokenManager = __decorate([
|
|
|
3568
3570
|
//#region src/apis/open-bao-http/open-bao-http.client.ts
|
|
3569
3571
|
var _ref$10, _OpenBaoHttpClient;
|
|
3570
3572
|
let OpenBaoHttpClient = _OpenBaoHttpClient = class OpenBaoHttpClient {
|
|
3571
|
-
logger = new Logger(_OpenBaoHttpClient.name);
|
|
3573
|
+
logger = new Logger$1(_OpenBaoHttpClient.name);
|
|
3572
3574
|
constructor(request) {
|
|
3573
3575
|
this.request = request;
|
|
3574
3576
|
}
|
|
@@ -8061,6 +8063,51 @@ function setOpenBaoToken(getToken) {
|
|
|
8061
8063
|
return middleware;
|
|
8062
8064
|
}
|
|
8063
8065
|
//#endregion
|
|
8066
|
+
//#region src/modules/open-bao/request/format-error.ts
|
|
8067
|
+
/**
|
|
8068
|
+
* 根据 HTTP 状态码生成中文操作建议
|
|
8069
|
+
*/
|
|
8070
|
+
function getStatusCodeGuidance(statusCode) {
|
|
8071
|
+
if (statusCode === 400) return "请检查请求参数是否正确";
|
|
8072
|
+
if (statusCode === 403) return "请检查 OpenBao 策略(Policy)是否为该 Token 授予了足够的权限";
|
|
8073
|
+
if (statusCode === 404) return "请检查请求的路径或密钥是否存在";
|
|
8074
|
+
if (statusCode >= 500) return "请检查 OpenBao 服务器日志以获取更多信息";
|
|
8075
|
+
return "";
|
|
8076
|
+
}
|
|
8077
|
+
/**
|
|
8078
|
+
* OpenBao 请求错误格式化中间件
|
|
8079
|
+
*
|
|
8080
|
+
* 必须注册在 `validateStatusCode` 之后,作为中间件链的最外层,
|
|
8081
|
+
* 捕获 `RequestException` 并重写其错误消息,补充请求上下文和操作建议。
|
|
8082
|
+
*
|
|
8083
|
+
* 非 RequestException 错误(网络故障、超时等)原样透传。
|
|
8084
|
+
*/
|
|
8085
|
+
function formatError() {
|
|
8086
|
+
const middleware = async (ctx, next) => {
|
|
8087
|
+
try {
|
|
8088
|
+
await next();
|
|
8089
|
+
} catch (err) {
|
|
8090
|
+
if (!(err instanceof RequestException)) throw err;
|
|
8091
|
+
const method = ctx.request.method.toUpperCase();
|
|
8092
|
+
const url = ctx.request.url.toString();
|
|
8093
|
+
const statusCode = err.statusCode;
|
|
8094
|
+
const statusText = err.response?.statusText ?? "";
|
|
8095
|
+
let message = `OpenBaoModule API 请求失败: ${method} ${url}`;
|
|
8096
|
+
message += `\n响应状态: ${String(statusCode)} ${statusText}`;
|
|
8097
|
+
if (err.response) try {
|
|
8098
|
+
const bodyText = await err.response.clone().text();
|
|
8099
|
+
if (bodyText) message += `\n响应体: ${bodyText}`;
|
|
8100
|
+
} catch {}
|
|
8101
|
+
const guidance = getStatusCodeGuidance(typeof statusCode === "number" ? statusCode : parseInt(String(statusCode), 10));
|
|
8102
|
+
if (guidance) message += `\n建议: ${guidance}`;
|
|
8103
|
+
err.message = message;
|
|
8104
|
+
throw err;
|
|
8105
|
+
}
|
|
8106
|
+
};
|
|
8107
|
+
middleware.__keqMiddlewareName__ = "formatError";
|
|
8108
|
+
return middleware;
|
|
8109
|
+
}
|
|
8110
|
+
//#endregion
|
|
8064
8111
|
//#region src/modules/open-bao/open-bao.module.ts
|
|
8065
8112
|
/**
|
|
8066
8113
|
* 内部 KeqRequest 注入 Token
|
|
@@ -8076,6 +8123,7 @@ const KEQ_REQUEST_PROVIDER = {
|
|
|
8076
8123
|
request.use(setBaseUrl(options.address + "/v1/"));
|
|
8077
8124
|
request.use(setOpenBaoToken(() => tokenManager.getToken()));
|
|
8078
8125
|
request.use(validateStatusCode());
|
|
8126
|
+
request.use(formatError());
|
|
8079
8127
|
return request;
|
|
8080
8128
|
},
|
|
8081
8129
|
inject: [MODULE_OPTIONS_TOKEN$3, OpenBaoTokenManager]
|
|
@@ -8230,7 +8278,7 @@ BlindIndexV1Hasher = __decorate([Injectable()], BlindIndexV1Hasher);
|
|
|
8230
8278
|
//#region src/modules/blind-index/blind-index.service.ts
|
|
8231
8279
|
var _ref$9, _BlindIndexService;
|
|
8232
8280
|
let BlindIndexService = _BlindIndexService = class BlindIndexService {
|
|
8233
|
-
logger = new Logger(_BlindIndexService.name);
|
|
8281
|
+
logger = new Logger$1(_BlindIndexService.name);
|
|
8234
8282
|
hashers = /* @__PURE__ */ new Map();
|
|
8235
8283
|
defaultHasher;
|
|
8236
8284
|
constructor(hasherV1) {
|
|
@@ -8302,7 +8350,7 @@ SaltedHashV1Hasher = __decorate([Injectable()], SaltedHashV1Hasher);
|
|
|
8302
8350
|
//#region src/modules/salted-hash/salted-hash.service.ts
|
|
8303
8351
|
var _ref$8, _SaltedHashService;
|
|
8304
8352
|
let SaltedHashService = _SaltedHashService = class SaltedHashService {
|
|
8305
|
-
logger = new Logger(_SaltedHashService.name);
|
|
8353
|
+
logger = new Logger$1(_SaltedHashService.name);
|
|
8306
8354
|
hashers = /* @__PURE__ */ new Map();
|
|
8307
8355
|
defaultHasher;
|
|
8308
8356
|
constructor(hasherV1) {
|
|
@@ -9300,7 +9348,7 @@ const { ConfigurableModuleClass: ConfigurableModuleClass$1, MODULE_OPTIONS_TOKEN
|
|
|
9300
9348
|
//#region src/modules/envelope-encryption/kms.provider.ts
|
|
9301
9349
|
var _ref$2, _KmsProvider;
|
|
9302
9350
|
let KmsProvider = _KmsProvider = class KmsProvider {
|
|
9303
|
-
logger = new Logger(_KmsProvider.name);
|
|
9351
|
+
logger = new Logger$1(_KmsProvider.name);
|
|
9304
9352
|
kekMetadataMap = /* @__PURE__ */ new Map();
|
|
9305
9353
|
loadingPromises = /* @__PURE__ */ new Map();
|
|
9306
9354
|
dekCache = /* @__PURE__ */ new Map();
|
|
@@ -9407,7 +9455,7 @@ KmsProvider = _KmsProvider = __decorate([
|
|
|
9407
9455
|
//#region src/modules/envelope-encryption/envelope-encryption-v1.cipher.ts
|
|
9408
9456
|
var _ref$1, _EnvelopeEncryptionV1Cipher;
|
|
9409
9457
|
let EnvelopeEncryptionV1Cipher = _EnvelopeEncryptionV1Cipher = class EnvelopeEncryptionV1Cipher {
|
|
9410
|
-
logger = new Logger(_EnvelopeEncryptionV1Cipher.name);
|
|
9458
|
+
logger = new Logger$1(_EnvelopeEncryptionV1Cipher.name);
|
|
9411
9459
|
version = 1;
|
|
9412
9460
|
algorithm = "aes-256-gcm";
|
|
9413
9461
|
constructor(kmsProvider) {
|
|
@@ -9460,7 +9508,7 @@ EnvelopeEncryptionV1Cipher = _EnvelopeEncryptionV1Cipher = __decorate([Injectabl
|
|
|
9460
9508
|
//#region src/modules/envelope-encryption/envelope-encryption.service.ts
|
|
9461
9509
|
var _ref, _EnvelopeEncryptionService;
|
|
9462
9510
|
let EnvelopeEncryptionService = _EnvelopeEncryptionService = class EnvelopeEncryptionService {
|
|
9463
|
-
logger = new Logger(_EnvelopeEncryptionService.name);
|
|
9511
|
+
logger = new Logger$1(_EnvelopeEncryptionService.name);
|
|
9464
9512
|
ciphers = /* @__PURE__ */ new Map();
|
|
9465
9513
|
defaultCipher;
|
|
9466
9514
|
constructor(options, cipherV1) {
|
|
@@ -9551,6 +9599,109 @@ EnvelopeEncryptionModule = __decorate([Global(), Module({
|
|
|
9551
9599
|
exports: [EnvelopeEncryptionService]
|
|
9552
9600
|
})], EnvelopeEncryptionModule);
|
|
9553
9601
|
//#endregion
|
|
9602
|
+
//#region src/modules/logger/logger.module.ts
|
|
9603
|
+
var _LoggerModule;
|
|
9604
|
+
let LoggerModule = _LoggerModule = class LoggerModule {
|
|
9605
|
+
static register(options = {}) {
|
|
9606
|
+
return {
|
|
9607
|
+
module: _LoggerModule,
|
|
9608
|
+
imports: [LoggerModule$1.forRoot(this.buildParams(options))],
|
|
9609
|
+
providers: [LoggerErrorInterceptor$1],
|
|
9610
|
+
exports: [LoggerModule$1, LoggerErrorInterceptor$1]
|
|
9611
|
+
};
|
|
9612
|
+
}
|
|
9613
|
+
static registerAsync(options) {
|
|
9614
|
+
return {
|
|
9615
|
+
module: _LoggerModule,
|
|
9616
|
+
imports: [...options.imports || [], LoggerModule$1.forRootAsync({
|
|
9617
|
+
imports: options.imports || [],
|
|
9618
|
+
inject: options.inject || [],
|
|
9619
|
+
useFactory: async (...args) => {
|
|
9620
|
+
const opts = await options.useFactory(...args);
|
|
9621
|
+
return _LoggerModule.buildParams(opts);
|
|
9622
|
+
}
|
|
9623
|
+
})],
|
|
9624
|
+
providers: [LoggerErrorInterceptor$1],
|
|
9625
|
+
exports: [LoggerModule$1, LoggerErrorInterceptor$1]
|
|
9626
|
+
};
|
|
9627
|
+
}
|
|
9628
|
+
/**
|
|
9629
|
+
* 将 LoggerModuleOptions 转换为 nestjs-pino 的 Params
|
|
9630
|
+
*/
|
|
9631
|
+
static buildParams(options) {
|
|
9632
|
+
const { serviceName = "unknown", environment = process.env.NODE_ENV || "development", version = "0.0.0", level = "info", pretty = false } = options;
|
|
9633
|
+
return { pinoHttp: {
|
|
9634
|
+
...pretty ? { transport: { target: "pino-pretty" } } : {},
|
|
9635
|
+
level,
|
|
9636
|
+
genReqId: (req) => req.headers["x-request-id"] || crypto.randomUUID(),
|
|
9637
|
+
autoLogging: { ignore: (req) => req.url?.startsWith("/api/v1/health") ?? false },
|
|
9638
|
+
customAttributeKeys: {
|
|
9639
|
+
reqId: "reqId",
|
|
9640
|
+
responseTime: "responseTime"
|
|
9641
|
+
},
|
|
9642
|
+
serializers: {
|
|
9643
|
+
req: (req) => ({
|
|
9644
|
+
method: req.method,
|
|
9645
|
+
url: req.url
|
|
9646
|
+
}),
|
|
9647
|
+
res: (res) => ({ statusCode: res.statusCode }),
|
|
9648
|
+
err: stdSerializers.err
|
|
9649
|
+
},
|
|
9650
|
+
formatters: {
|
|
9651
|
+
level: (label) => ({ level: label }),
|
|
9652
|
+
bindings: (bindings) => ({
|
|
9653
|
+
...bindings,
|
|
9654
|
+
service: serviceName,
|
|
9655
|
+
environment,
|
|
9656
|
+
version
|
|
9657
|
+
})
|
|
9658
|
+
}
|
|
9659
|
+
} };
|
|
9660
|
+
}
|
|
9661
|
+
};
|
|
9662
|
+
LoggerModule = _LoggerModule = __decorate([Global(), Module({})], LoggerModule);
|
|
9663
|
+
//#endregion
|
|
9664
|
+
//#region src/modules/logger/decorators/inject-logger.decorator.ts
|
|
9665
|
+
/**
|
|
9666
|
+
* 注入 Logger,自动以类名为日志上下文
|
|
9667
|
+
*
|
|
9668
|
+
* 用法:
|
|
9669
|
+
* @InjectLogger()
|
|
9670
|
+
* private readonly logger: Logger
|
|
9671
|
+
*
|
|
9672
|
+
* 等价于:
|
|
9673
|
+
* @InjectPinoLogger(MyService.name)
|
|
9674
|
+
* private readonly logger: Logger
|
|
9675
|
+
*/
|
|
9676
|
+
function InjectLogger(context) {
|
|
9677
|
+
return (target, propertyKey, parameterIndex) => {
|
|
9678
|
+
InjectPinoLogger(context || target.constructor.name)(target, propertyKey, parameterIndex);
|
|
9679
|
+
};
|
|
9680
|
+
}
|
|
9681
|
+
//#endregion
|
|
9682
|
+
//#region src/modules/logger/logger.config.ts
|
|
9683
|
+
/**
|
|
9684
|
+
* 日志配置基类
|
|
9685
|
+
*
|
|
9686
|
+
* 项目中的日志配置应继承此类并通过 @Configuration('xxx') 绑定环境变量前缀
|
|
9687
|
+
*/
|
|
9688
|
+
var LoggerConfig = class {
|
|
9689
|
+
pretty = false;
|
|
9690
|
+
level = "info";
|
|
9691
|
+
serviceName = "unknown";
|
|
9692
|
+
environment = process.env.NODE_ENV || "development";
|
|
9693
|
+
version = process.env.npm_package_version || "0.0.0";
|
|
9694
|
+
};
|
|
9695
|
+
__decorate([ToBoolean(), __decorateMetadata("design:type", Boolean)], LoggerConfig.prototype, "pretty", void 0);
|
|
9696
|
+
__decorate([IsIn([
|
|
9697
|
+
"fatal",
|
|
9698
|
+
"error",
|
|
9699
|
+
"warn",
|
|
9700
|
+
"info",
|
|
9701
|
+
"debug",
|
|
9702
|
+
"trace"
|
|
9703
|
+
]), __decorateMetadata("design:type", String)], LoggerConfig.prototype, "level", void 0);
|
|
9704
|
+
//#endregion
|
|
9554
9705
|
//#region src/modules/object-storage/object-storage.config.ts
|
|
9555
9706
|
var ObjectStorageModuleConfig = class {
|
|
9556
9707
|
endpoint;
|
|
@@ -9578,7 +9729,7 @@ const { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN } = new ConfigurableModule
|
|
|
9578
9729
|
//#region src/modules/object-storage/object-storage.service.ts
|
|
9579
9730
|
var _ObjectStorageService;
|
|
9580
9731
|
let ObjectStorageService = _ObjectStorageService = class ObjectStorageService {
|
|
9581
|
-
logger = new Logger(_ObjectStorageService.name);
|
|
9732
|
+
logger = new Logger$1(_ObjectStorageService.name);
|
|
9582
9733
|
constructor(config) {
|
|
9583
9734
|
this.config = config;
|
|
9584
9735
|
}
|
|
@@ -9709,6 +9860,6 @@ ObjectStorageModule = __decorate([Global(), Module({
|
|
|
9709
9860
|
exports: [ObjectStorageService]
|
|
9710
9861
|
})], ObjectStorageModule);
|
|
9711
9862
|
//#endregion
|
|
9712
|
-
export { AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaPageQueryValidationPipe, BukaValidationPipe, BusinessException, Cardinality, Column, Composite, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, DegradeException, Dictionary, DiscreteEntity, EagerType, EncryptedPayload, EntityRef, Enum, EnvelopeEncryptionModule, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, ExceptionDetailSchema, ExceptionModule, FeatureException, FilterQuery, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, IS_CROCKFORD_BASE32, IS_IDENTIFIER_URN, IS_NAMESPACE_URN, IS_RESOURCE_URN, IS_SCALAR_DICTIONARY, IS_URN, IsBrowserRequest, IsCrockfordBase32, IsIdentifierUrn, IsNamespaceUrn, IsResourceUrn, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListResponseBodyType, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, Model, ModelRegister, ModuleExceptions, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuthConfig, OpenBaoHttpClient, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoTokenAuthConfig, OpenBaoTokenManager, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, RateLimitException, ResponseBodyType, SaltedHash, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, Slice, SwaggerPatcher, SystemException, ThirdPartyException, TimestampedEntity, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify };
|
|
9863
|
+
export { AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaPageQueryValidationPipe, BukaValidationPipe, BusinessException, Cardinality, Column, Composite, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, DegradeException, Dictionary, DiscreteEntity, EagerType, EncryptedPayload, EntityRef, Enum, EnvelopeEncryptionModule, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, ExceptionDetailSchema, ExceptionModule, FeatureException, FilterQuery, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, IS_CROCKFORD_BASE32, IS_IDENTIFIER_URN, IS_NAMESPACE_URN, IS_RESOURCE_URN, IS_SCALAR_DICTIONARY, IS_URN, InjectLogger, IsBrowserRequest, IsCrockfordBase32, IsIdentifierUrn, IsNamespaceUrn, IsResourceUrn, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, Model, ModelRegister, ModuleExceptions, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuthConfig, OpenBaoHttpClient, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoTokenAuthConfig, OpenBaoTokenManager, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, RateLimitException, ResponseBodyType, SaltedHash, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, Slice, SwaggerPatcher, SystemException, ThirdPartyException, TimestampedEntity, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify };
|
|
9713
9864
|
|
|
9714
9865
|
//# sourceMappingURL=index.mjs.map
|