@punks/backend-entity-manager 0.0.228 → 0.0.231
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 +38 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/media.d.ts +3 -0
- package/dist/cjs/types/integrations/repository/typeorm/clause.d.ts +6 -0
- package/dist/cjs/types/platforms/nest/__test__/server/infrastructure/authentication/providers/userRoles/index.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/__test__/server/shared/api/fields.d.ts +17 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/abstractions/index.d.ts +1 -0
- package/dist/esm/index.js +39 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/media.d.ts +3 -0
- package/dist/esm/types/integrations/repository/typeorm/clause.d.ts +6 -0
- package/dist/esm/types/platforms/nest/__test__/server/infrastructure/authentication/providers/userRoles/index.d.ts +1 -0
- package/dist/esm/types/platforms/nest/__test__/server/shared/api/fields.d.ts +17 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/abstractions/index.d.ts +1 -0
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
|
@@ -46,6 +46,7 @@ export type IMediaFolderRepository = {
|
|
|
46
46
|
folderCreate(input: {
|
|
47
47
|
name: string;
|
|
48
48
|
parentId?: string;
|
|
49
|
+
organizationId: string;
|
|
49
50
|
}): Promise<MediaFolderRecord>;
|
|
50
51
|
folderRename(id: string, name: string): Promise<void>;
|
|
51
52
|
folderMove(id: string, parentId?: string): Promise<void>;
|
|
@@ -56,6 +57,7 @@ export type IMediaFolderRepository = {
|
|
|
56
57
|
export type MediaFolderCreateInput = {
|
|
57
58
|
folderName: string;
|
|
58
59
|
parentId?: string;
|
|
60
|
+
organizationId: string;
|
|
59
61
|
};
|
|
60
62
|
export type MediaFolderReference = {
|
|
61
63
|
id: string;
|
|
@@ -75,6 +77,7 @@ export type MediaInfo = {
|
|
|
75
77
|
};
|
|
76
78
|
export type MediaFolderEnsureInput = {
|
|
77
79
|
path: string[];
|
|
80
|
+
organizationId: string;
|
|
78
81
|
};
|
|
79
82
|
export type IMediaLibraryManager = {
|
|
80
83
|
mediaUpload(input: MediaUploadInput): Promise<MediaReference>;
|
|
@@ -5,6 +5,7 @@ export type NumericFilter = {
|
|
|
5
5
|
gte?: number;
|
|
6
6
|
lt?: number;
|
|
7
7
|
lte?: number;
|
|
8
|
+
isNull?: boolean;
|
|
8
9
|
};
|
|
9
10
|
export type StringFilter = {
|
|
10
11
|
gt?: string;
|
|
@@ -19,22 +20,26 @@ export type StringFilter = {
|
|
|
19
20
|
ine?: string;
|
|
20
21
|
notIn?: string[];
|
|
21
22
|
notLike?: string;
|
|
23
|
+
isNull?: boolean;
|
|
22
24
|
};
|
|
23
25
|
export type IdFilter = {
|
|
24
26
|
in?: string[];
|
|
25
27
|
eq?: string;
|
|
26
28
|
ne?: string;
|
|
27
29
|
notIn?: string[];
|
|
30
|
+
isNull?: boolean;
|
|
28
31
|
};
|
|
29
32
|
export type EnumFilter<T> = {
|
|
30
33
|
in?: T[];
|
|
31
34
|
eq?: T;
|
|
32
35
|
ne?: T;
|
|
33
36
|
notIn?: T[];
|
|
37
|
+
isNull?: boolean;
|
|
34
38
|
};
|
|
35
39
|
export type BooleanFilter = {
|
|
36
40
|
eq?: boolean;
|
|
37
41
|
ne?: boolean;
|
|
42
|
+
isNull?: boolean;
|
|
38
43
|
};
|
|
39
44
|
export type DateFilter = {
|
|
40
45
|
in?: Date[];
|
|
@@ -43,4 +48,5 @@ export type DateFilter = {
|
|
|
43
48
|
gte?: Date;
|
|
44
49
|
lt?: Date;
|
|
45
50
|
lte?: Date;
|
|
51
|
+
isNull?: boolean;
|
|
46
52
|
};
|
|
@@ -21,4 +21,5 @@ export declare class AuthUserRolesService implements IAuthUserRolesService<AppUs
|
|
|
21
21
|
removeUserFromRole(userId: string, roleId: string): Promise<void>;
|
|
22
22
|
removeUserFromRoleByUid(userId: string, roleUid: string): Promise<void>;
|
|
23
23
|
clearUserRoles(userId: string): Promise<void>;
|
|
24
|
+
isUserInRole(userId: string, roleId: string): Promise<boolean>;
|
|
24
25
|
}
|
|
@@ -5,6 +5,7 @@ export declare class NumericFilter {
|
|
|
5
5
|
gte?: number;
|
|
6
6
|
lt?: number;
|
|
7
7
|
lte?: number;
|
|
8
|
+
isNull?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare class StringFilter {
|
|
10
11
|
gt?: string;
|
|
@@ -19,10 +20,25 @@ export declare class StringFilter {
|
|
|
19
20
|
ine?: string;
|
|
20
21
|
notIn?: string[];
|
|
21
22
|
notLike?: string;
|
|
23
|
+
isNull?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare class IdFilter {
|
|
26
|
+
in?: string[];
|
|
27
|
+
eq?: string;
|
|
28
|
+
ne?: string;
|
|
29
|
+
notIn?: string[];
|
|
30
|
+
isNull?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare class EnumFilter<T> {
|
|
33
|
+
in?: T[];
|
|
34
|
+
eq?: T;
|
|
35
|
+
ne?: T;
|
|
36
|
+
notIn?: T[];
|
|
22
37
|
}
|
|
23
38
|
export declare class BooleanFilter {
|
|
24
39
|
eq?: boolean;
|
|
25
40
|
ne?: boolean;
|
|
41
|
+
isNull?: boolean;
|
|
26
42
|
}
|
|
27
43
|
export declare class DateFilter {
|
|
28
44
|
in?: Date[];
|
|
@@ -31,4 +47,5 @@ export declare class DateFilter {
|
|
|
31
47
|
gte?: Date;
|
|
32
48
|
lt?: Date;
|
|
33
49
|
lte?: Date;
|
|
50
|
+
isNull?: boolean;
|
|
34
51
|
}
|
|
@@ -88,4 +88,5 @@ export interface IAuthUserRolesService<TUser extends IAuthUser, TRole extends IA
|
|
|
88
88
|
removeUserFromRole(userId: string, roleId: string): Promise<void>;
|
|
89
89
|
removeUserFromRoleByUid(userId: string, roleUid: string): Promise<void>;
|
|
90
90
|
clearUserRoles(userId: string): Promise<void>;
|
|
91
|
+
isUserInRole(userId: string, roleId: string): Promise<boolean>;
|
|
91
92
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1340,6 +1340,7 @@ interface IAuthUserRolesService<TUser extends IAuthUser, TRole extends IAuthRole
|
|
|
1340
1340
|
removeUserFromRole(userId: string, roleId: string): Promise<void>;
|
|
1341
1341
|
removeUserFromRoleByUid(userId: string, roleUid: string): Promise<void>;
|
|
1342
1342
|
clearUserRoles(userId: string): Promise<void>;
|
|
1343
|
+
isUserInRole(userId: string, roleId: string): Promise<boolean>;
|
|
1343
1344
|
}
|
|
1344
1345
|
|
|
1345
1346
|
type CurrentUserData = {
|
|
@@ -2072,6 +2073,7 @@ type NumericFilter = {
|
|
|
2072
2073
|
gte?: number;
|
|
2073
2074
|
lt?: number;
|
|
2074
2075
|
lte?: number;
|
|
2076
|
+
isNull?: boolean;
|
|
2075
2077
|
};
|
|
2076
2078
|
type StringFilter = {
|
|
2077
2079
|
gt?: string;
|
|
@@ -2086,22 +2088,26 @@ type StringFilter = {
|
|
|
2086
2088
|
ine?: string;
|
|
2087
2089
|
notIn?: string[];
|
|
2088
2090
|
notLike?: string;
|
|
2091
|
+
isNull?: boolean;
|
|
2089
2092
|
};
|
|
2090
2093
|
type IdFilter = {
|
|
2091
2094
|
in?: string[];
|
|
2092
2095
|
eq?: string;
|
|
2093
2096
|
ne?: string;
|
|
2094
2097
|
notIn?: string[];
|
|
2098
|
+
isNull?: boolean;
|
|
2095
2099
|
};
|
|
2096
2100
|
type EnumFilter<T> = {
|
|
2097
2101
|
in?: T[];
|
|
2098
2102
|
eq?: T;
|
|
2099
2103
|
ne?: T;
|
|
2100
2104
|
notIn?: T[];
|
|
2105
|
+
isNull?: boolean;
|
|
2101
2106
|
};
|
|
2102
2107
|
type BooleanFilter = {
|
|
2103
2108
|
eq?: boolean;
|
|
2104
2109
|
ne?: boolean;
|
|
2110
|
+
isNull?: boolean;
|
|
2105
2111
|
};
|
|
2106
2112
|
type DateFilter = {
|
|
2107
2113
|
in?: Date[];
|
|
@@ -2110,6 +2116,7 @@ type DateFilter = {
|
|
|
2110
2116
|
gte?: Date;
|
|
2111
2117
|
lt?: Date;
|
|
2112
2118
|
lte?: Date;
|
|
2119
|
+
isNull?: boolean;
|
|
2113
2120
|
};
|
|
2114
2121
|
|
|
2115
2122
|
declare class QueryClauseBuilder {
|
|
@@ -2967,6 +2974,7 @@ type IMediaFolderRepository = {
|
|
|
2967
2974
|
folderCreate(input: {
|
|
2968
2975
|
name: string;
|
|
2969
2976
|
parentId?: string;
|
|
2977
|
+
organizationId: string;
|
|
2970
2978
|
}): Promise<MediaFolderRecord>;
|
|
2971
2979
|
folderRename(id: string, name: string): Promise<void>;
|
|
2972
2980
|
folderMove(id: string, parentId?: string): Promise<void>;
|
|
@@ -2977,6 +2985,7 @@ type IMediaFolderRepository = {
|
|
|
2977
2985
|
type MediaFolderCreateInput = {
|
|
2978
2986
|
folderName: string;
|
|
2979
2987
|
parentId?: string;
|
|
2988
|
+
organizationId: string;
|
|
2980
2989
|
};
|
|
2981
2990
|
type MediaFolderReference = {
|
|
2982
2991
|
id: string;
|
|
@@ -2996,6 +3005,7 @@ type MediaInfo = {
|
|
|
2996
3005
|
};
|
|
2997
3006
|
type MediaFolderEnsureInput = {
|
|
2998
3007
|
path: string[];
|
|
3008
|
+
organizationId: string;
|
|
2999
3009
|
};
|
|
3000
3010
|
type IMediaLibraryManager = {
|
|
3001
3011
|
mediaUpload(input: MediaUploadInput): Promise<MediaReference>;
|