law-common 9.1.1-beta.1 → 9.1.1-beta.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.
@@ -72,9 +72,12 @@ export declare enum EntityEnum {
72
72
  CLIENT_USER_MAPPING = "client_user_mapping",
73
73
  ROLE_PERMISSION_MAPPING = "role_permission_mapping"
74
74
  }
75
+ type EntityRelations = {
76
+ [K in EntityEnum]: K;
77
+ };
75
78
  export type ISearchIncludeEntity<T extends EntityEnum> = {
76
79
  name: T;
77
- relations?: ISearchIncludeEntity<T>[];
80
+ relations?: ISearchIncludeEntity<EntityRelations[T]>[];
78
81
  entities?: ISearchIncludeEntity<T>[];
79
82
  columnkeys?: EntityKeyType<T>[];
80
83
  mappingProperties?: EntityKeyType<T>[];
@@ -163,3 +166,4 @@ export type IHistoryEntityChangedLogs = {
163
166
  oldValue: string | number;
164
167
  timeStamp: string;
165
168
  };
169
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "9.1.1-beta.1",
3
+ "version": "9.1.1-beta.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [