@spytecgps/nova-orm 1.0.15 → 1.0.16
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/entities/userInvitation.d.ts +1 -0
- package/dist/entities/userInvitation.js +5 -0
- package/dist/index.js +1 -1
- package/dist/repositories/userInvitations/createUserInvitation.js +1 -0
- package/dist/repositories/userInvitations/updateUserInvitation.js +3 -1
- package/dist/types/userInvitations.d.ts +2 -0
- package/package.json +1 -1
|
@@ -35,6 +35,7 @@ export const createUserInvitation = async (novaDataSource, params, logger) => {
|
|
|
35
35
|
minAccessDate: params.minAccessDate,
|
|
36
36
|
boundaries: params.boundaries,
|
|
37
37
|
boundaryAccess: params.boundaryAccess,
|
|
38
|
+
tasksAccess: params.tasksAccess,
|
|
38
39
|
createdAt: now,
|
|
39
40
|
modifiedAt: now,
|
|
40
41
|
};
|
|
@@ -21,7 +21,8 @@ export const updateUserInvitation = async (novaDataSource, params, logger) => {
|
|
|
21
21
|
!params?.values?.trackerAccess &&
|
|
22
22
|
!params?.values?.minAccessDate &&
|
|
23
23
|
!params?.values?.boundaries &&
|
|
24
|
-
!params?.values?.boundaryAccess
|
|
24
|
+
!params?.values?.boundaryAccess &&
|
|
25
|
+
!params?.values?.tasksAccess) {
|
|
25
26
|
logger.warn({ params }, 'UsersRepository::updateUserInvitation - missing required parameters');
|
|
26
27
|
return false;
|
|
27
28
|
}
|
|
@@ -41,6 +42,7 @@ export const updateUserInvitation = async (novaDataSource, params, logger) => {
|
|
|
41
42
|
minAccessDate: params?.values?.minAccessDate,
|
|
42
43
|
boundaries: params?.values?.boundaries,
|
|
43
44
|
boundaryAccess: params?.values?.boundaryAccess,
|
|
45
|
+
tasksAccess: params?.values?.tasksAccess,
|
|
44
46
|
modifiedAt: now,
|
|
45
47
|
});
|
|
46
48
|
queryBuilder = queryBuilder.where('id = :id', { id: invitationIdBinaryBuffer });
|
|
@@ -24,6 +24,7 @@ export interface UpdateUserInvitationParams {
|
|
|
24
24
|
minAccessDate?: Date;
|
|
25
25
|
boundaries?: string;
|
|
26
26
|
boundaryAccess?: string;
|
|
27
|
+
tasksAccess?: string;
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
export interface CreateUserInvitationParams {
|
|
@@ -38,4 +39,5 @@ export interface CreateUserInvitationParams {
|
|
|
38
39
|
minAccessDate?: Date;
|
|
39
40
|
boundaries?: string;
|
|
40
41
|
boundaryAccess?: string;
|
|
42
|
+
tasksAccess?: string;
|
|
41
43
|
}
|