@buka/nestjs-kit 4.4.12 → 4.5.0

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.5.0](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.4.13...v4.5.0) (2026-10-07)
4
+
5
+
6
+ ### Features
7
+
8
+ * add skills ([dc7213a](https://github.com/buka-ltd/npm.nestjs-kit/commit/dc7213af706ccb85ee3285ef4723ec5bc0347f7e))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * 分页参数为标量时避免 in 运算符抛 TypeError ([3d5b2ab](https://github.com/buka-ltd/npm.nestjs-kit/commit/3d5b2ab32731182942b2acb6d775c66f37600ed4))
14
+
15
+ ## [4.4.13](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.4.12...v4.4.13) (2026-08-09)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * 修复FilterQuery对普通object和array的类型推导不正确的问题 ([0d7346d](https://github.com/buka-ltd/npm.nestjs-kit/commit/0d7346dc024b8e2684fc39f89c1652e6050d6bbb))
21
+
3
22
  ## [4.4.12](https://github.com/buka-ltd/npm.nestjs-kit/compare/v4.4.11...v4.4.12) (2026-08-09)
4
23
 
5
24
 
package/README.md CHANGED
@@ -9,3 +9,41 @@
9
9
  ```bash
10
10
  pnpm install @buka/nestjs-kit
11
11
  ```
12
+
13
+ ## Skills
14
+
15
+ 本仓库的 [skills/](./skills) 目录沉淀了 kit 各功能域的使用约定与编写规范(共 9 个 skill,其中 dto/entity/service/controller/query 等文件编写规范聚合为 nestjs-kit-coding-standards,细节经其 references/ 目录按需加载),
16
+ 供业务项目的 AI 编码助手(Claude Code 等)使用,按需自动触发(每个 skill 的 description 声明了其适用任务)。通过 [`skills`](https://www.npmjs.com/package/skills) CLI 安装:
17
+
18
+ ```bash
19
+ # 查看本仓库可用的 skills
20
+ npx skills add buka-ltd/npm.nestjs-kit --list
21
+
22
+ # 在业务项目中安装到 Claude Code(交互式选择)
23
+ npx skills add buka-ltd/npm.nestjs-kit -a claude-code
24
+
25
+ # 按需安装指定 skills
26
+ npx skills add buka-ltd/npm.nestjs-kit -a claude-code \
27
+ --skill nestjs-kit-coding-standards
28
+
29
+ # 全量安装(CI/脚本等非交互场景)
30
+ npx skills add buka-ltd/npm.nestjs-kit --skill '*' -a claude-code -y
31
+
32
+ # 更新已安装的 skills
33
+ npx skills update
34
+ ```
35
+
36
+ > 默认安装到项目的 `.claude/skills/`(用 `-g` 装到全局 `~/.claude/skills/`;用 `--copy` 以复制代替符号链接)。
37
+ > 本仓库的 skills 也可用本地路径安装(开发调试时):`npx skills add ./skills -a claude-code`。
38
+
39
+ | Skill | 覆盖内容 |
40
+ | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
41
+ | `nestjs-kit-coding-standards` | 模块目录组织与 dto/entity/service/controller/query 的编写规范(@Model/Column/Cardinality/command/@FilterQuery/Slice/@IsBrowserRequest 等,references/ 按需加载) |
42
+ | `nestjs-kit-urn` | URN 格式规范、概念域与资源段、通配匹配 |
43
+ | `nestjs-kit-exception` | 异常工厂、@ModuleExceptions、错误码体系 |
44
+ | `nestjs-kit-logger` | LoggerModule、@InjectLogger、LoggerConfig |
45
+ | `nestjs-kit-http` | keq 服务间调用的错误处理 |
46
+ | `nestjs-kit-crypto` | 信封加密 / 盲索引 / 加盐哈希 |
47
+ | `nestjs-kit-object-storage` | S3 兼容对象存储 |
48
+ | `nestjs-kit-open-bao` | OpenBao/Vault 集成 |
49
+ | `nestjs-kit-swagger` | Swagger 文档修补 |
package/dist/index.d.mts CHANGED
@@ -882,20 +882,13 @@ declare class BukaPageQueryValidationPipe implements PipeTransform {
882
882
  transform(value: any, metadata: ArgumentMetadata): any;
883
883
  }
884
884
  //#endregion
885
- //#region src/modules/core/converters/filter-query-type/types/relation.d.ts
885
+ //#region src/modules/core/converters/filter-query-type/types/filter-query.d.ts
886
886
  /**
887
- * 表示该字段是关联到另一个表的实体,而不是 JSON 类型
887
+ * 标量字段的比较操作符。
888
+ *
889
+ * @typeParam T - 标量值类型(如 string、number、Date)
888
890
  */
889
- type Relation<T = unknown> = T & Relation.Brand;
890
- declare namespace Relation {
891
- const __relation: unique symbol;
892
- interface Brand {
893
- [__relation]?: 1;
894
- }
895
- }
896
- //#endregion
897
- //#region src/modules/core/converters/filter-query-type/types/filter-query.d.ts
898
- interface IFilterQueryCondition<T> {
891
+ interface IScalarOperator<T> {
899
892
  $lt?: T;
900
893
  $gt?: T;
901
894
  $lte?: T;
@@ -905,25 +898,113 @@ interface IFilterQueryCondition<T> {
905
898
  $in?: T[];
906
899
  $nin?: T[];
907
900
  }
908
- interface IFilterQueryCollectionCondition<T> {
909
- $some?: IFilterQueryNestedProperty<T>;
910
- $every?: IFilterQueryNestedProperty<T>;
911
- $none?: IFilterQueryNestedProperty<T>;
901
+ /**
902
+ * 集合字段的量化操作符。
903
+ *
904
+ * @typeParam T - 集合元素的类型
905
+ */
906
+ interface ICollectionOperator<T> {
907
+ $some?: INestedOperator<T>;
908
+ $every?: INestedOperator<T>;
909
+ $none?: INestedOperator<T>;
912
910
  }
913
- type IFilterQueryNestedProperty<T> = T extends Array<infer U> ? IFilterQueryCollectionCondition<U> : IFilterQueryObject<T>;
914
911
  /**
915
- * MikroORM Collection 类型检测
912
+ * 嵌套属性操作符分发。
913
+ *
914
+ * - 数组 → {@link ICollectionOperator}<元素类型>
915
+ * - 非数组 → {@link IObjectOperator}<T>(递归展开实体属性)
916
+ *
917
+ * @typeParam T - 待分发的属性类型
918
+ */
919
+ type INestedOperator<T> = T extends Array<infer U> ? ICollectionOperator<U> : IObjectOperator<T>;
920
+ /**
921
+ * MikroORM 标量类型联合。
922
+ *
923
+ * 命中此白名单 → {@link IScalarOperator}(生成 $eq/$ne 等比较操作符)。
924
+ * 未命中 → {@link IObjectOperator}(递归展开,适用于 @Composite + @Model 嵌套 filter)。
925
+ */
926
+ type MikroOrmScalar = string | number | boolean | Date | bigint | Buffer | null | undefined;
927
+ /**
928
+ * 判断 T 是否为 MikroORM 标量类型。
929
+ *
930
+ * @typeParam T - 待判断的类型
931
+ */
932
+ type IsMikroOrmScalar<T> = [T] extends [MikroOrmScalar] ? true : false;
933
+ /**
934
+ * 判断 T 是否为 MikroORM Collection 类型。
916
935
  *
917
936
  * 注意:必须使用 `Collection<any>` 而非 `Collection<infer U>`,参考 `EntityDtoType` 的实现。
918
- * `Collection` 含有两个泛型参数(`T`、`O`),`infer U` 在条件类型中可能因 TypeScript
937
+ * `Collection` 含有两个泛型参数(T、O),`infer U` 在条件类型中可能因 TypeScript
919
938
  * 泛型推断限制而匹配失败。
939
+ *
940
+ * @typeParam T - 待判断的类型
941
+ */
942
+ type IsMikroOrmCollection<T> = T extends Collection<any> ? true : false;
943
+ /**
944
+ * 处理 MikroORM Collection 属性 —— 应用集合量化操作符。
945
+ *
946
+ * @typeParam T - Collection 类型
947
+ */
948
+ type ResolveCollectionOperator<T> = T extends Collection<infer U> ? ICollectionOperator<U> : never;
949
+ /**
950
+ * 处理 MikroORM Ref 属性 —— 应用标量操作符于主键类型。
951
+ *
952
+ * @typeParam T - Ref 类型
953
+ */
954
+ type ResolveRefOperator<T> = T extends Ref<infer U> ? IScalarOperator<Primary<U>> : never;
955
+ /**
956
+ * 处理标量属性 —— 应用标量比较操作符。
957
+ *
958
+ * @typeParam T - 标量值类型
959
+ */
960
+ type ResolveScalarOperator<T> = IScalarOperator<T>;
961
+ /**
962
+ * 处理数组属性 —— 通过 {@link INestedOperator} 走集合操作符。
963
+ *
964
+ * @typeParam T - 数组类型
965
+ */
966
+ type ResolveArrayOperator<T> = INestedOperator<T>;
967
+ /**
968
+ * 处理嵌套实体属性(兜底) —— 递归映射所有属性。
969
+ *
970
+ * @typeParam T - 实体类型
971
+ */
972
+ type ResolveObjectOperator<T> = IObjectOperator<T>;
973
+ /**
974
+ * 根据属性类型推导对应的 filter 操作符集合。
975
+ *
976
+ * 分发优先级(从上到下,命中即停止):
977
+ * 1. MikroORM Collection → 集合量化操作符($some/$every/$none)
978
+ * 2. MikroORM Ref → 标量比较操作符(作用于主键类型)
979
+ * 3. 标量类型 → 标量比较操作符($eq/$ne/$lt 等)
980
+ * 4. 数组类型 → 通过 {@link INestedOperator} 走集合操作符
981
+ * 5. 嵌套实体(兜底) → 递归映射所有属性
982
+ *
983
+ * @typeParam T - 待分发的属性类型
984
+ */
985
+ type IPropertyOperator<T> = IsMikroOrmCollection<T> extends true ? ResolveCollectionOperator<T> : T extends Ref<any> ? ResolveRefOperator<T> : IsMikroOrmScalar<T> extends true ? ResolveScalarOperator<T> : [T] extends [unknown[]] ? ResolveArrayOperator<T> : ResolveObjectOperator<T>;
986
+ /**
987
+ * 实体属性的递归映射类型。将实体的每个属性映射为对应的 filter 操作符类型。
988
+ *
989
+ * @typeParam T - 实体类型
990
+ */
991
+ type IObjectOperator<T> = { [K in keyof T as K extends string ? K : never]: IPropertyOperator<Exclude<T[K], undefined>> };
992
+ /**
993
+ * 实体的 filter 类型。
994
+ *
995
+ * `undefined` 表示无过滤条件(不过滤)。
996
+ *
997
+ * @typeParam T - 实体类型
998
+ */
999
+ type IFilter<T> = IObjectOperator<T> | undefined;
1000
+ /**
1001
+ * 查询对象的 filter 包装。
1002
+ *
1003
+ * @typeParam T - 实体类型
920
1004
  */
921
- type IsCollection$1<T> = T extends Collection<any> ? true : false;
922
- type IFilterQueryProperty<T> = T extends Relation ? IFilterQueryNestedProperty<T> : IsCollection$1<T> extends true ? IFilterQueryCollectionCondition<T extends Collection<infer U> ? U : never> : T extends Ref<infer U> ? IFilterQueryCondition<Primary<U>> : IFilterQueryCondition<T>;
923
- type IFilterQueryObject<T> = { [K in keyof T as K extends string ? K : never]: IFilterQueryProperty<Exclude<T[K], undefined>> };
924
- type IFilter<T> = IFilterQueryObject<T> | undefined;
925
1005
  interface IFilterQuery<T> {
926
- filter?: IFilterQueryObject<T>;
1006
+ /** 可选的 filter 条件 */
1007
+ filter?: IObjectOperator<T>;
927
1008
  }
928
1009
  //#endregion
929
1010
  //#region src/modules/core/pipes/filter-query-validation.pipe.d.ts
@@ -17875,5 +17956,5 @@ declare function throwOnResponseError(options?: ThrowOnResponseErrorOptions): Ke
17875
17956
  */
17876
17957
  declare function stableStringify(value: unknown): string;
17877
17958
  //#endregion
17878
- export { AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaRequestException, type BukaRequestExceptionOptions, BukaValidationPipe, BusinessException, Cardinality, type CipherMetadata, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, type EncryptCommand, EncryptedPayload, EntityDto, EntityDtoShape, EntityRef, Enum, EnumPropertyMetadata, EnvelopeEncryptionModule, type EnvelopeEncryptionModuleOptions, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, type ErrorCodeOptions, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, type ExceptionConstructor, type ExceptionConstructorWithArgs, type ExceptionDetail, ExceptionDetailSchema, ExceptionModule, type ExceptionModuleOptions as ExceptionNestModuleOptions, type ExceptionOptions, type ExceptionOptionsWithFactory, type ExceptionOptionsWithMessage, ExcludeDefinedOpt, ExcludeHidden, ExcludeOpt, ExcludeRef, ExcludeScalarClass, FeatureException, FilterQuery, FilterQueryOperator, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, type HttpExceptionOptions, IEntityPrimaryKey, IFilter, IFilterQuery, IFilterQueryCollectionCondition, IFilterQueryCondition, IFilterQueryNestedProperty, IFilterQueryObject, IFilterQueryProperty, IListResponseBody, IListResponseBodyMeta, INextCursorPageParameters, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IResponseBody, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_ENUM_COLUMN, IS_SCALAR_DICTIONARY, IS_URN, InjectLogger, IntersectionType, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsEnumColumn, IsHidden, IsOpt, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, MatchesUrn, Model, ModelMetadata, ModelOptions, ModelRegister, ModelSchemaOptions, ModuleExceptions, type ExceptionModuleOptions$1 as ModuleExceptionsOptions, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageModuleOptions, ObjectStorageOptions, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuth, OpenBaoAppRoleAuthConfig, OpenBaoAuthMethod, OpenBaoAuthResponse, OpenBaoHttpClient, OpenBaoKubernetesAuth, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoModuleOptions, OpenBaoTokenAuth, OpenBaoTokenAuthConfig, OpenBaoTokenLookupSelfResponse, OpenBaoTokenManager, OpenBaoUserpassAuth, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, Relation, type ResolveExceptions, ResponseBodyType, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, Slice, SwaggerPatcher, SystemException, ThirdPartyException, type ThrowOnResponseErrorOptions, TimestampedEntity, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify, throwOnResponseError };
17959
+ export { AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaRequestException, type BukaRequestExceptionOptions, BukaValidationPipe, BusinessException, Cardinality, type CipherMetadata, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, type EncryptCommand, EncryptedPayload, EntityDto, EntityDtoShape, EntityRef, Enum, EnumPropertyMetadata, EnvelopeEncryptionModule, type EnvelopeEncryptionModuleOptions, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, type ErrorCodeOptions, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, type ExceptionConstructor, type ExceptionConstructorWithArgs, type ExceptionDetail, ExceptionDetailSchema, ExceptionModule, type ExceptionModuleOptions as ExceptionNestModuleOptions, type ExceptionOptions, type ExceptionOptionsWithFactory, type ExceptionOptionsWithMessage, ExcludeDefinedOpt, ExcludeHidden, ExcludeOpt, ExcludeRef, ExcludeScalarClass, FeatureException, FilterQuery, FilterQueryOperator, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, type HttpExceptionOptions, ICollectionOperator, IEntityPrimaryKey, IFilter, IFilterQuery, IListResponseBody, IListResponseBodyMeta, INestedOperator, INextCursorPageParameters, IObjectOperator, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IPropertyOperator, IResponseBody, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_ENUM_COLUMN, IS_SCALAR_DICTIONARY, IS_URN, IScalarOperator, InjectLogger, IntersectionType, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsEnumColumn, IsHidden, IsOpt, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, MatchesUrn, Model, ModelMetadata, ModelOptions, ModelRegister, ModelSchemaOptions, ModuleExceptions, type ExceptionModuleOptions$1 as ModuleExceptionsOptions, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageModuleOptions, ObjectStorageOptions, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuth, OpenBaoAppRoleAuthConfig, OpenBaoAuthMethod, OpenBaoAuthResponse, OpenBaoHttpClient, OpenBaoKubernetesAuth, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoModuleOptions, OpenBaoTokenAuth, OpenBaoTokenAuthConfig, OpenBaoTokenLookupSelfResponse, OpenBaoTokenManager, OpenBaoUserpassAuth, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, type ResolveExceptions, ResponseBodyType, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, Slice, SwaggerPatcher, SystemException, ThirdPartyException, type ThrowOnResponseErrorOptions, TimestampedEntity, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify, throwOnResponseError };
17879
17960
  //# sourceMappingURL=index.d.mts.map
package/dist/index.d.ts CHANGED
@@ -882,20 +882,13 @@ declare class BukaPageQueryValidationPipe implements PipeTransform {
882
882
  transform(value: any, metadata: ArgumentMetadata): any;
883
883
  }
884
884
  //#endregion
885
- //#region src/modules/core/converters/filter-query-type/types/relation.d.ts
885
+ //#region src/modules/core/converters/filter-query-type/types/filter-query.d.ts
886
886
  /**
887
- * 表示该字段是关联到另一个表的实体,而不是 JSON 类型
887
+ * 标量字段的比较操作符。
888
+ *
889
+ * @typeParam T - 标量值类型(如 string、number、Date)
888
890
  */
889
- type Relation<T = unknown> = T & Relation.Brand;
890
- declare namespace Relation {
891
- const __relation: unique symbol;
892
- interface Brand {
893
- [__relation]?: 1;
894
- }
895
- }
896
- //#endregion
897
- //#region src/modules/core/converters/filter-query-type/types/filter-query.d.ts
898
- interface IFilterQueryCondition<T> {
891
+ interface IScalarOperator<T> {
899
892
  $lt?: T;
900
893
  $gt?: T;
901
894
  $lte?: T;
@@ -905,25 +898,113 @@ interface IFilterQueryCondition<T> {
905
898
  $in?: T[];
906
899
  $nin?: T[];
907
900
  }
908
- interface IFilterQueryCollectionCondition<T> {
909
- $some?: IFilterQueryNestedProperty<T>;
910
- $every?: IFilterQueryNestedProperty<T>;
911
- $none?: IFilterQueryNestedProperty<T>;
901
+ /**
902
+ * 集合字段的量化操作符。
903
+ *
904
+ * @typeParam T - 集合元素的类型
905
+ */
906
+ interface ICollectionOperator<T> {
907
+ $some?: INestedOperator<T>;
908
+ $every?: INestedOperator<T>;
909
+ $none?: INestedOperator<T>;
912
910
  }
913
- type IFilterQueryNestedProperty<T> = T extends Array<infer U> ? IFilterQueryCollectionCondition<U> : IFilterQueryObject<T>;
914
911
  /**
915
- * MikroORM Collection 类型检测
912
+ * 嵌套属性操作符分发。
913
+ *
914
+ * - 数组 → {@link ICollectionOperator}<元素类型>
915
+ * - 非数组 → {@link IObjectOperator}<T>(递归展开实体属性)
916
+ *
917
+ * @typeParam T - 待分发的属性类型
918
+ */
919
+ type INestedOperator<T> = T extends Array<infer U> ? ICollectionOperator<U> : IObjectOperator<T>;
920
+ /**
921
+ * MikroORM 标量类型联合。
922
+ *
923
+ * 命中此白名单 → {@link IScalarOperator}(生成 $eq/$ne 等比较操作符)。
924
+ * 未命中 → {@link IObjectOperator}(递归展开,适用于 @Composite + @Model 嵌套 filter)。
925
+ */
926
+ type MikroOrmScalar = string | number | boolean | Date | bigint | Buffer | null | undefined;
927
+ /**
928
+ * 判断 T 是否为 MikroORM 标量类型。
929
+ *
930
+ * @typeParam T - 待判断的类型
931
+ */
932
+ type IsMikroOrmScalar<T> = [T] extends [MikroOrmScalar] ? true : false;
933
+ /**
934
+ * 判断 T 是否为 MikroORM Collection 类型。
916
935
  *
917
936
  * 注意:必须使用 `Collection<any>` 而非 `Collection<infer U>`,参考 `EntityDtoType` 的实现。
918
- * `Collection` 含有两个泛型参数(`T`、`O`),`infer U` 在条件类型中可能因 TypeScript
937
+ * `Collection` 含有两个泛型参数(T、O),`infer U` 在条件类型中可能因 TypeScript
919
938
  * 泛型推断限制而匹配失败。
939
+ *
940
+ * @typeParam T - 待判断的类型
941
+ */
942
+ type IsMikroOrmCollection<T> = T extends Collection<any> ? true : false;
943
+ /**
944
+ * 处理 MikroORM Collection 属性 —— 应用集合量化操作符。
945
+ *
946
+ * @typeParam T - Collection 类型
947
+ */
948
+ type ResolveCollectionOperator<T> = T extends Collection<infer U> ? ICollectionOperator<U> : never;
949
+ /**
950
+ * 处理 MikroORM Ref 属性 —— 应用标量操作符于主键类型。
951
+ *
952
+ * @typeParam T - Ref 类型
953
+ */
954
+ type ResolveRefOperator<T> = T extends Ref<infer U> ? IScalarOperator<Primary<U>> : never;
955
+ /**
956
+ * 处理标量属性 —— 应用标量比较操作符。
957
+ *
958
+ * @typeParam T - 标量值类型
959
+ */
960
+ type ResolveScalarOperator<T> = IScalarOperator<T>;
961
+ /**
962
+ * 处理数组属性 —— 通过 {@link INestedOperator} 走集合操作符。
963
+ *
964
+ * @typeParam T - 数组类型
965
+ */
966
+ type ResolveArrayOperator<T> = INestedOperator<T>;
967
+ /**
968
+ * 处理嵌套实体属性(兜底) —— 递归映射所有属性。
969
+ *
970
+ * @typeParam T - 实体类型
971
+ */
972
+ type ResolveObjectOperator<T> = IObjectOperator<T>;
973
+ /**
974
+ * 根据属性类型推导对应的 filter 操作符集合。
975
+ *
976
+ * 分发优先级(从上到下,命中即停止):
977
+ * 1. MikroORM Collection → 集合量化操作符($some/$every/$none)
978
+ * 2. MikroORM Ref → 标量比较操作符(作用于主键类型)
979
+ * 3. 标量类型 → 标量比较操作符($eq/$ne/$lt 等)
980
+ * 4. 数组类型 → 通过 {@link INestedOperator} 走集合操作符
981
+ * 5. 嵌套实体(兜底) → 递归映射所有属性
982
+ *
983
+ * @typeParam T - 待分发的属性类型
984
+ */
985
+ type IPropertyOperator<T> = IsMikroOrmCollection<T> extends true ? ResolveCollectionOperator<T> : T extends Ref<any> ? ResolveRefOperator<T> : IsMikroOrmScalar<T> extends true ? ResolveScalarOperator<T> : [T] extends [unknown[]] ? ResolveArrayOperator<T> : ResolveObjectOperator<T>;
986
+ /**
987
+ * 实体属性的递归映射类型。将实体的每个属性映射为对应的 filter 操作符类型。
988
+ *
989
+ * @typeParam T - 实体类型
990
+ */
991
+ type IObjectOperator<T> = { [K in keyof T as K extends string ? K : never]: IPropertyOperator<Exclude<T[K], undefined>> };
992
+ /**
993
+ * 实体的 filter 类型。
994
+ *
995
+ * `undefined` 表示无过滤条件(不过滤)。
996
+ *
997
+ * @typeParam T - 实体类型
998
+ */
999
+ type IFilter<T> = IObjectOperator<T> | undefined;
1000
+ /**
1001
+ * 查询对象的 filter 包装。
1002
+ *
1003
+ * @typeParam T - 实体类型
920
1004
  */
921
- type IsCollection$1<T> = T extends Collection<any> ? true : false;
922
- type IFilterQueryProperty<T> = T extends Relation ? IFilterQueryNestedProperty<T> : IsCollection$1<T> extends true ? IFilterQueryCollectionCondition<T extends Collection<infer U> ? U : never> : T extends Ref<infer U> ? IFilterQueryCondition<Primary<U>> : IFilterQueryCondition<T>;
923
- type IFilterQueryObject<T> = { [K in keyof T as K extends string ? K : never]: IFilterQueryProperty<Exclude<T[K], undefined>> };
924
- type IFilter<T> = IFilterQueryObject<T> | undefined;
925
1005
  interface IFilterQuery<T> {
926
- filter?: IFilterQueryObject<T>;
1006
+ /** 可选的 filter 条件 */
1007
+ filter?: IObjectOperator<T>;
927
1008
  }
928
1009
  //#endregion
929
1010
  //#region src/modules/core/pipes/filter-query-validation.pipe.d.ts
@@ -17875,5 +17956,5 @@ declare function throwOnResponseError(options?: ThrowOnResponseErrorOptions): Ke
17875
17956
  */
17876
17957
  declare function stableStringify(value: unknown): string;
17877
17958
  //#endregion
17878
- export { AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaRequestException, type BukaRequestExceptionOptions, BukaValidationPipe, BusinessException, Cardinality, type CipherMetadata, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, type EncryptCommand, EncryptedPayload, EntityDto, EntityDtoShape, EntityRef, Enum, EnumPropertyMetadata, EnvelopeEncryptionModule, type EnvelopeEncryptionModuleOptions, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, type ErrorCodeOptions, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, type ExceptionConstructor, type ExceptionConstructorWithArgs, type ExceptionDetail, ExceptionDetailSchema, ExceptionModule, type ExceptionModuleOptions as ExceptionNestModuleOptions, type ExceptionOptions, type ExceptionOptionsWithFactory, type ExceptionOptionsWithMessage, ExcludeDefinedOpt, ExcludeHidden, ExcludeOpt, ExcludeRef, ExcludeScalarClass, FeatureException, FilterQuery, FilterQueryOperator, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, type HttpExceptionOptions, IEntityPrimaryKey, IFilter, IFilterQuery, IFilterQueryCollectionCondition, IFilterQueryCondition, IFilterQueryNestedProperty, IFilterQueryObject, IFilterQueryProperty, IListResponseBody, IListResponseBodyMeta, INextCursorPageParameters, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IResponseBody, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_ENUM_COLUMN, IS_SCALAR_DICTIONARY, IS_URN, InjectLogger, IntersectionType, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsEnumColumn, IsHidden, IsOpt, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, MatchesUrn, Model, ModelMetadata, ModelOptions, ModelRegister, ModelSchemaOptions, ModuleExceptions, type ExceptionModuleOptions$1 as ModuleExceptionsOptions, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageModuleOptions, ObjectStorageOptions, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuth, OpenBaoAppRoleAuthConfig, OpenBaoAuthMethod, OpenBaoAuthResponse, OpenBaoHttpClient, OpenBaoKubernetesAuth, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoModuleOptions, OpenBaoTokenAuth, OpenBaoTokenAuthConfig, OpenBaoTokenLookupSelfResponse, OpenBaoTokenManager, OpenBaoUserpassAuth, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, Relation, type ResolveExceptions, ResponseBodyType, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, Slice, SwaggerPatcher, SystemException, ThirdPartyException, type ThrowOnResponseErrorOptions, TimestampedEntity, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify, throwOnResponseError };
17959
+ export { AssociationMetadata, AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexHasher, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaModuleOptions, BukaPageQueryValidationPipe, BukaRequestException, type BukaRequestExceptionOptions, BukaValidationPipe, BusinessException, Cardinality, type CipherMetadata, CollectionAssociationMetadata, Column, Composite, CompositePropertyMetadata, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, type DecryptCommand, DegradeException, Dictionary, DictionaryPropertyMetadata, DiscreteEntity, type EncryptCommand, EncryptedPayload, EntityDto, EntityDtoShape, EntityRef, Enum, EnumPropertyMetadata, EnvelopeEncryptionModule, type EnvelopeEncryptionModuleOptions, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, type ErrorCodeOptions, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, type ExceptionConstructor, type ExceptionConstructorWithArgs, type ExceptionDetail, ExceptionDetailSchema, ExceptionModule, type ExceptionModuleOptions as ExceptionNestModuleOptions, type ExceptionOptions, type ExceptionOptionsWithFactory, type ExceptionOptionsWithMessage, ExcludeDefinedOpt, ExcludeHidden, ExcludeOpt, ExcludeRef, ExcludeScalarClass, FeatureException, FilterQuery, FilterQueryOperator, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, type HttpExceptionOptions, ICollectionOperator, IEntityPrimaryKey, IFilter, IFilterQuery, IListResponseBody, IListResponseBodyMeta, INestedOperator, INextCursorPageParameters, IObjectOperator, IOffsetPageParameters, IOrderQuery, IPageQuery, IPreviousCursorPageParameters, IPropertyOperator, IResponseBody, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_ENUM_COLUMN, IS_SCALAR_DICTIONARY, IS_URN, IScalarOperator, InjectLogger, IntersectionType, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsEnumColumn, IsHidden, IsOpt, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListPropertyMetadata, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, type LoggerModuleOptions, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, MatchesUrn, Model, ModelMetadata, ModelOptions, ModelRegister, ModelSchemaOptions, ModuleExceptions, type ExceptionModuleOptions$1 as ModuleExceptionsOptions, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageModuleOptions, ObjectStorageOptions, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuth, OpenBaoAppRoleAuthConfig, OpenBaoAuthMethod, OpenBaoAuthResponse, OpenBaoHttpClient, OpenBaoKubernetesAuth, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoModuleOptions, OpenBaoTokenAuth, OpenBaoTokenAuthConfig, OpenBaoTokenLookupSelfResponse, OpenBaoTokenManager, OpenBaoUserpassAuth, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, PropertyKind, PropertyMetadata, RateLimitException, type ReencryptCommand, RefAssociationMetadata, type ResolveExceptions, ResponseBodyType, SaltedHash, SaltedHashHasher, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, ScalarClass, ScalarPropertyMetadata, type SchemaObject, Slice, SwaggerPatcher, SystemException, ThirdPartyException, type ThrowOnResponseErrorOptions, TimestampedEntity, type UnifyExceptionResponsesOptions, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify, throwOnResponseError };
17879
17960
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1353,6 +1353,13 @@ let BukaPageQueryValidationPipe = class BukaPageQueryValidationPipe {
1353
1353
  if (metadata.type !== "query") throw new _nestjs_common.InternalServerErrorException("BukaPageQueryValidationPipe can only be used to validate query parameters.");
1354
1354
  if (!value.page) if (this.options.optional) return value;
1355
1355
  else throw new _nestjs_common.BadRequestException("Missing required query parameter: page");
1356
+ /**
1357
+ * 走到这里时 `value.page` 已非空,但 query string 可能把 `page` 解析为标量
1358
+ * (如 `?page=1` 解析为字符串 `"1"`),对原始值使用 `in` 运算符会抛 TypeError,
1359
+ * 冒泡到全局异常过滤器后被映射为 500。先保证 `page` 是纯对象,数组一并拦截,
1360
+ * 使非法形态收敛为 400。
1361
+ */
1362
+ if (typeof value.page !== "object" || Array.isArray(value.page)) throw new _nestjs_common.BadRequestException("Invalid page query: page must be an object.");
1356
1363
  const mode = this.options.mode;
1357
1364
  if ((!mode || mode === "offset") && ("limit" in value.page || "offset" in value.page)) {
1358
1365
  if ("after" in value.page || "first" in value.page || "before" in value.page || "last" in value.page) throw new _nestjs_common.BadRequestException(mixedOffsetAndCursorError);
@@ -1608,6 +1615,27 @@ function swaggerMetadataToJsonSchema(metadata) {
1608
1615
  }
1609
1616
  //#endregion
1610
1617
  //#region src/modules/core/converters/filter-query-type/get-filter-query-schema.ts
1618
+ /**
1619
+ * 为单个标量属性生成 filter 操作符的 Swagger schema。
1620
+ *
1621
+ * 生成 `{ type: 'object', properties: { eq: ..., ne: ..., in: [...], ... } }` 结构,
1622
+ * 值类型取自原始 Swagger metadata(如 `{ type: 'string' }`),无 metadata 时兜底为 `string`。
1623
+ */
1624
+ function getScalarOperatorSchema(classRef, propertyKey) {
1625
+ const propertySchema = {
1626
+ type: "object",
1627
+ properties: {},
1628
+ additionalProperties: false
1629
+ };
1630
+ const originalSchema = getMetadata$1(classRef, propertyKey);
1631
+ const operators = getPropertyOperators(classRef, propertyKey);
1632
+ for (const operator of operators) if (["in", "nin"].includes(operator)) propertySchema.properties[operator] = {
1633
+ type: "array",
1634
+ items: originalSchema ? swaggerMetadataToJsonSchema(originalSchema) : { type: "string" }
1635
+ };
1636
+ else propertySchema.properties[operator] = originalSchema ? swaggerMetadataToJsonSchema(originalSchema) : { type: "string" };
1637
+ return propertySchema;
1638
+ }
1611
1639
  function getObjectSchema(classRef, visited = /* @__PURE__ */ new WeakSet()) {
1612
1640
  const properties = {};
1613
1641
  const requiredKeys = [];
@@ -1620,38 +1648,28 @@ function getObjectSchema(classRef, visited = /* @__PURE__ */ new WeakSet()) {
1620
1648
  for (const propertyKey of ModelRegister.getModelPropertyKeys(classRef)) {
1621
1649
  if (typeof propertyKey !== "string") continue;
1622
1650
  const propertyMetadata = ModelRegister.getProperty(classRef, propertyKey);
1623
- const isCollection = propertyMetadata?.association?.kind === "1:m" || propertyMetadata?.association?.kind === "m:n";
1624
- const isRelation = !!propertyMetadata?.association;
1625
1651
  if (!!!propertyMetadata?.optional) requiredKeys.push(propertyKey);
1626
- if (isRelation) {
1627
- const relationClassRef = propertyMetadata.association.type();
1628
- if (visited.has(relationClassRef)) continue;
1629
- if (isCollection) {
1630
- const sub = getObjectSchema(relationClassRef, visited);
1631
- const operators = getCollectionOperators(classRef, propertyKey);
1632
- const wrapper = {
1633
- type: "object",
1634
- properties: {},
1635
- additionalProperties: false
1636
- };
1637
- for (const operator of operators) wrapper.properties[operator] = sub;
1638
- properties[propertyKey] = wrapper;
1639
- } else properties[propertyKey] = getObjectSchema(relationClassRef, visited);
1640
- } else {
1641
- const propertySchema = {
1652
+ if (propertyMetadata?.kind === "scalar" || propertyMetadata?.kind === "enum") properties[propertyKey] = getScalarOperatorSchema(classRef, propertyKey);
1653
+ else if (propertyMetadata?.kind === "composite" && propertyMetadata.type) {
1654
+ const compositeType = propertyMetadata.type();
1655
+ if (ModelRegister.isModel(compositeType) && !visited.has(compositeType)) properties[propertyKey] = getObjectSchema(compositeType, visited);
1656
+ else properties[propertyKey] = getScalarOperatorSchema(classRef, propertyKey);
1657
+ } else if (propertyMetadata?.kind === "list" || propertyMetadata?.kind === "dictionary") {
1658
+ let elementSchema;
1659
+ if (propertyMetadata.type && !isScalarClass(propertyMetadata.type)) {
1660
+ const elementType = propertyMetadata.type();
1661
+ if (ModelRegister.isModel(elementType) && !visited.has(elementType)) elementSchema = getObjectSchema(elementType, visited);
1662
+ else elementSchema = getScalarOperatorSchema(classRef, propertyKey);
1663
+ } else elementSchema = getScalarOperatorSchema(classRef, propertyKey);
1664
+ const operators = getCollectionOperators(classRef, propertyKey);
1665
+ const wrapper = {
1642
1666
  type: "object",
1643
1667
  properties: {},
1644
1668
  additionalProperties: false
1645
1669
  };
1646
- const originalSchema = getMetadata$1(classRef, propertyKey);
1647
- const operators = getPropertyOperators(classRef, propertyKey);
1648
- for (const operator of operators) if (["in", "nin"].includes(operator)) propertySchema.properties[operator] = {
1649
- type: "array",
1650
- items: originalSchema ? swaggerMetadataToJsonSchema(originalSchema) : { type: "string" }
1651
- };
1652
- else propertySchema.properties[operator] = originalSchema ? swaggerMetadataToJsonSchema(originalSchema) : { type: "string" };
1653
- properties[propertyKey] = propertySchema;
1654
- }
1670
+ for (const operator of operators) wrapper.properties[operator] = elementSchema;
1671
+ properties[propertyKey] = wrapper;
1672
+ } else properties[propertyKey] = getScalarOperatorSchema(classRef, propertyKey);
1655
1673
  }
1656
1674
  if (requiredKeys.length > 0) schema.required = requiredKeys;
1657
1675
  return schema;
@@ -1756,6 +1774,23 @@ function createFilterQueryObjectClassRef(classRef, visited = /* @__PURE__ */ new
1756
1774
  optional: isOptional
1757
1775
  })(FilterQueryObjectClass.prototype, propertyKey);
1758
1776
  }
1777
+ } else if (propertyMetadata?.kind === "composite" && propertyMetadata?.type) {
1778
+ const compositeType = propertyMetadata.type();
1779
+ if (ModelRegister.isModel(compositeType) && !visited.has(compositeType)) {
1780
+ const sub = createFilterQueryObjectClassRef(compositeType, visited);
1781
+ Composite({
1782
+ type: () => sub,
1783
+ optional: isOptional
1784
+ })(FilterQueryObjectClass.prototype, propertyKey);
1785
+ if (!isOptional) HasAnyKey(getFilterQueryOperators(classRef, propertyKey) || getPropertyOperators(classRef, propertyKey))(FilterQueryObjectClass.prototype, propertyKey);
1786
+ } else {
1787
+ const propertyClass = createFilterQueryPropertyClassRef(classRef, propertyKey);
1788
+ Composite({
1789
+ type: () => propertyClass,
1790
+ optional: isOptional
1791
+ })(FilterQueryObjectClass.prototype, propertyKey);
1792
+ if (!isOptional) HasAnyKey(getPropertyOperators(classRef, propertyKey))(FilterQueryObjectClass.prototype, propertyKey);
1793
+ }
1759
1794
  } else {
1760
1795
  const propertyClass = createFilterQueryPropertyClassRef(classRef, propertyKey);
1761
1796
  Composite({