@aristid/leav-types 1.5.2-46bc669c → 1.5.2-755080fa
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/apps/core/config/default.d.ts +1 -0
- package/apps/core/src/_types/config.d.ts +6 -0
- package/apps/core/src/app/core/permissionApp/permissionApp.d.ts +3 -1
- package/apps/core/src/domain/permission/_types.d.ts +1 -0
- package/apps/core/src/domain/permission/permissionDomain.d.ts +1 -1
- package/package.json +1 -1
|
@@ -91,6 +91,12 @@ export interface IAuth {
|
|
|
91
91
|
cookie: {
|
|
92
92
|
sameSite: 'none' | 'lax' | 'strict';
|
|
93
93
|
secure: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Do not set cookie domain to avoid sharing cookies between subdomains
|
|
96
|
+
* https://developer.mozilla.org/en-US/docs/Web/Security/Practical_implementation_guides/Cookies#domain
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
99
|
+
withDomain: boolean;
|
|
94
100
|
};
|
|
95
101
|
resetPasswordExpiration: string;
|
|
96
102
|
oidc: {
|
|
@@ -3,6 +3,7 @@ import { type IPermissionDomain } from 'domain/permission/permissionDomain';
|
|
|
3
3
|
import { type IAppModule } from '_types/shared';
|
|
4
4
|
import { PermissionTypes } from '../../../_types/permissions';
|
|
5
5
|
import { type IGraphqlAppModule } from 'app/graphql/graphqlApp';
|
|
6
|
+
import { type GetSystemQueryContext } from '../../../utils/helpers/getSystemQueryContext';
|
|
6
7
|
export interface IPluginPermission {
|
|
7
8
|
name: string;
|
|
8
9
|
type: PermissionTypes;
|
|
@@ -12,6 +13,7 @@ export type ICorePermissionApp = IAppModule & IGraphqlAppModule;
|
|
|
12
13
|
interface IDeps {
|
|
13
14
|
'core.domain.permission'?: IPermissionDomain;
|
|
14
15
|
'core.domain.attribute'?: IAttributeDomain;
|
|
16
|
+
'core.utils.getSystemQueryContext'?: GetSystemQueryContext;
|
|
15
17
|
}
|
|
16
|
-
export default function ({ 'core.domain.permission': permissionDomain, 'core.domain.attribute': attributeDomain, }?: IDeps): ICorePermissionApp;
|
|
18
|
+
export default function ({ 'core.domain.permission': permissionDomain, 'core.domain.attribute': attributeDomain, 'core.utils.getSystemQueryContext': getSystemQueryContext, }?: IDeps): ICorePermissionApp;
|
|
17
19
|
export {};
|
|
@@ -24,7 +24,7 @@ export interface IPermissionDomain {
|
|
|
24
24
|
*/
|
|
25
25
|
getInheritedPermissions({ type, applyTo, action, userGroupId, permissionTreeTarget, ctx, }: IGetInheritedPermissionsParams): Promise<boolean>;
|
|
26
26
|
isAllowed({ type, action, applyTo, target, ctx }: IIsAllowedParams): Promise<boolean>;
|
|
27
|
-
getActionsByType(params: IGetActionsByTypeParams): ILabeledPermissionsAction[]
|
|
27
|
+
getActionsByType(params: IGetActionsByTypeParams): Promise<ILabeledPermissionsAction[]>;
|
|
28
28
|
registerActions(type: PermissionTypes, actions: string[], applyOn?: string[]): void;
|
|
29
29
|
isAdminOrSystemUser(ctx: IQueryInfos): boolean;
|
|
30
30
|
}
|