@punks/backend-entity-manager 0.0.147 → 0.0.149
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/cjs/index.js +19 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/integrations/repository/typeorm/clause.d.ts +6 -0
- package/dist/cjs/types/integrations/repository/typeorm/queryClauseBuilder.d.ts +2 -1
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +1 -1
- package/dist/esm/index.js +20 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/integrations/repository/typeorm/clause.d.ts +6 -0
- package/dist/esm/types/integrations/repository/typeorm/queryClauseBuilder.d.ts +2 -1
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +1 -1
- package/dist/index.d.ts +8 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FindOperator } from "typeorm";
|
|
2
|
-
import { BooleanFilter, DateFilter, NumericFilter, StringFilter } from "./clause";
|
|
2
|
+
import { BooleanFilter, DateFilter, EnumFilter, NumericFilter, StringFilter } from "./clause";
|
|
3
3
|
export declare class QueryClauseBuilder {
|
|
4
|
+
enumFilter<T>(filter: EnumFilter<T>): FindOperator<T>;
|
|
4
5
|
stringFilter(filter: StringFilter): FindOperator<string>;
|
|
5
6
|
numericFilter(filter: NumericFilter): FindOperator<number>;
|
|
6
7
|
dateFilter(filter: DateFilter): FindOperator<Date>;
|
package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface UserRegistrationInput<TUserRegistrationInfo, TUserContext exten
|
|
|
10
10
|
password: string;
|
|
11
11
|
registrationInfo: TUserRegistrationInfo;
|
|
12
12
|
callback: UserRegisterCallbackTemplate;
|
|
13
|
-
|
|
13
|
+
languageCode: string;
|
|
14
14
|
context?: TUserContext;
|
|
15
15
|
}
|
|
16
16
|
export interface UserRegistrationResult {
|
package/dist/index.d.ts
CHANGED
|
@@ -1762,7 +1762,7 @@ interface UserRegistrationInput<TUserRegistrationInfo, TUserContext extends IAut
|
|
|
1762
1762
|
password: string;
|
|
1763
1763
|
registrationInfo: TUserRegistrationInfo;
|
|
1764
1764
|
callback: UserRegisterCallbackTemplate;
|
|
1765
|
-
|
|
1765
|
+
languageCode: string;
|
|
1766
1766
|
context?: TUserContext;
|
|
1767
1767
|
}
|
|
1768
1768
|
interface UserRegistrationResult {
|
|
@@ -2196,6 +2196,12 @@ type StringFilter = {
|
|
|
2196
2196
|
notIn?: string[];
|
|
2197
2197
|
notLike?: string;
|
|
2198
2198
|
};
|
|
2199
|
+
type EnumFilter<T> = {
|
|
2200
|
+
in?: T[];
|
|
2201
|
+
eq?: T;
|
|
2202
|
+
ne?: T;
|
|
2203
|
+
notIn?: T[];
|
|
2204
|
+
};
|
|
2199
2205
|
type BooleanFilter = {
|
|
2200
2206
|
eq?: boolean;
|
|
2201
2207
|
ne?: boolean;
|
|
@@ -2210,6 +2216,7 @@ type DateFilter = {
|
|
|
2210
2216
|
};
|
|
2211
2217
|
|
|
2212
2218
|
declare class QueryClauseBuilder {
|
|
2219
|
+
enumFilter<T>(filter: EnumFilter<T>): FindOperator<T>;
|
|
2213
2220
|
stringFilter(filter: StringFilter): FindOperator<string>;
|
|
2214
2221
|
numericFilter(filter: NumericFilter): FindOperator<number>;
|
|
2215
2222
|
dateFilter(filter: DateFilter): FindOperator<Date>;
|