@silexpert/core 0.4.185 → 0.4.187
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/es/api/resources/Employee.d.ts +2 -2
- package/es/api/resources/Employee.d.ts.map +1 -1
- package/es/api/resources/Employee.js +13 -1
- package/es/api/resources/Employee.js.map +1 -1
- package/es/api/resources/SheetMonthSchedule.d.ts +4 -1
- package/es/api/resources/SheetMonthSchedule.d.ts.map +1 -1
- package/es/api/resources/SheetMonthSchedule.js +10 -1
- package/es/api/resources/SheetMonthSchedule.js.map +1 -1
- package/es/api/resources/Society.d.ts +1 -0
- package/es/api/resources/Society.d.ts.map +1 -1
- package/es/api/resources/Society.js +3 -0
- package/es/api/resources/Society.js.map +1 -1
- package/es/types/Enum/Role.d.ts +5 -1
- package/es/types/Enum/Role.d.ts.map +1 -1
- package/es/types/Enum/Role.js +4 -0
- package/es/types/Enum/Role.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +24 -0
- package/es/types/Enum/RoleDetail.d.ts.map +1 -1
- package/es/types/Enum/RoleDetail.js +24 -0
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/SheetMonthScheduleDetailType.d.ts +12 -0
- package/es/types/Enum/SheetMonthScheduleDetailType.d.ts.map +1 -0
- package/es/types/Enum/SheetMonthScheduleDetailType.js +14 -0
- package/es/types/Enum/SheetMonthScheduleDetailType.js.map +1 -0
- package/es/types/Interface/api/employee/QueryCreateEmployee.d.ts +7 -0
- package/es/types/Interface/api/employee/QueryCreateEmployee.d.ts.map +1 -0
- package/es/types/Interface/api/employee/QueryCreateEmployee.js +2 -0
- package/es/types/Interface/api/employee/QueryCreateEmployee.js.map +1 -0
- package/es/types/Interface/api/webmail/CreateMailFromLambda.d.ts +0 -3
- package/es/types/Interface/api/webmail/CreateMailFromLambda.d.ts.map +1 -1
- package/es/types/Interface/api/webmail/CreateMailFromLambda.js +0 -5
- package/es/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts +1 -0
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.d.ts.map +1 -1
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +10 -1
- package/es/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
- package/es/types/Interface/models/ISheetMonthSchedule.d.ts +2 -0
- package/es/types/Interface/models/ISheetMonthSchedule.d.ts.map +1 -1
- package/es/types/Interface/models/ISheetMonthSchedule.js.map +1 -1
- package/es/types/Interface/models/ISheetMonthScheduleDetails.d.ts +10 -0
- package/es/types/Interface/models/ISheetMonthScheduleDetails.d.ts.map +1 -0
- package/es/types/Interface/models/ISheetMonthScheduleDetails.js +2 -0
- package/es/types/Interface/models/ISheetMonthScheduleDetails.js.map +1 -0
- package/es/types/index.d.ts +4 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +4 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/webmail.d.ts.map +1 -1
- package/es/utils/webmail.js +15 -3
- package/es/utils/webmail.js.map +1 -1
- package/js/api/resources/Employee.js +17 -1
- package/js/api/resources/Employee.js.map +1 -1
- package/js/api/resources/SheetMonthSchedule.js +13 -1
- package/js/api/resources/SheetMonthSchedule.js.map +1 -1
- package/js/api/resources/Society.js +4 -0
- package/js/api/resources/Society.js.map +1 -1
- package/js/types/Enum/Role.js +4 -0
- package/js/types/Enum/Role.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +24 -0
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/SheetMonthScheduleDetailType.js +28 -0
- package/js/types/Enum/SheetMonthScheduleDetailType.js.map +1 -0
- package/js/types/Interface/api/employee/QueryCreateEmployee.js +6 -0
- package/js/types/Interface/api/employee/QueryCreateEmployee.js.map +1 -0
- package/js/types/Interface/api/webmail/CreateMailFromLambda.js +0 -2
- package/js/types/Interface/api/webmail/CreateMailFromLambda.js.map +1 -1
- package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js +4 -0
- package/js/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.js.map +1 -1
- package/js/types/Interface/models/ISheetMonthScheduleDetails.js +6 -0
- package/js/types/Interface/models/ISheetMonthScheduleDetails.js.map +1 -0
- package/js/types/index.js +48 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/webmail.js +11 -3
- package/js/utils/webmail.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Employee.ts +14 -3
- package/ts/api/resources/SheetMonthSchedule.ts +14 -2
- package/ts/api/resources/Society.ts +3 -0
- package/ts/types/Enum/Role.ts +4 -0
- package/ts/types/Enum/RoleDetail.ts +24 -0
- package/ts/types/Enum/SheetMonthScheduleDetailType.ts +15 -0
- package/ts/types/Interface/api/employee/QueryCreateEmployee.ts +7 -0
- package/ts/types/Interface/api/webmail/CreateMailFromLambda.ts +3 -3
- package/ts/types/Interface/api/webmail/PostAttachmentEmailFromLambdaParams.ts +9 -1
- package/ts/types/Interface/models/ISheetMonthSchedule.ts +2 -0
- package/ts/types/Interface/models/ISheetMonthScheduleDetails.ts +10 -0
- package/ts/types/index.ts +4 -0
- package/ts/utils/webmail.ts +11 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IsArray,
|
|
3
|
-
IsNumber, IsOptional, IsString,
|
|
3
|
+
IsNumber, IsOptional, IsString, IsInt,
|
|
4
4
|
} from 'class-validator';
|
|
5
5
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
6
6
|
import { TFile } from '../file/TFile';
|
|
@@ -54,4 +54,12 @@ export class MigrateParams {
|
|
|
54
54
|
@IsOptional()
|
|
55
55
|
@IsNumber()
|
|
56
56
|
endId?: number;
|
|
57
|
+
|
|
58
|
+
@ApiPropertyOptional()
|
|
59
|
+
@IsOptional()
|
|
60
|
+
@IsArray()
|
|
61
|
+
@IsInt({
|
|
62
|
+
each: true,
|
|
63
|
+
})
|
|
64
|
+
listIdToForceImport?: number;
|
|
57
65
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IEmployee } from './IEmployee';
|
|
2
2
|
import { IMonth } from './IMonth';
|
|
3
|
+
import { ISheetMonthScheduleDetail } from './ISheetMonthScheduleDetails';
|
|
3
4
|
|
|
4
5
|
// sheetMonthSchedules
|
|
5
6
|
export interface ISheetMonthSchedule {
|
|
@@ -41,4 +42,5 @@ export interface ISheetMonthSchedule {
|
|
|
41
42
|
// Associations
|
|
42
43
|
employee: IEmployee;
|
|
43
44
|
month: IMonth;
|
|
45
|
+
sheetMonthScheduleDetails: ISheetMonthScheduleDetail[]
|
|
44
46
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -168,6 +168,7 @@ export * from './Interface/models/ISector';
|
|
|
168
168
|
export * from './Interface/models/ISendMethod';
|
|
169
169
|
export * from './Interface/models/IService';
|
|
170
170
|
export * from './Interface/models/ISheetMonthSchedule';
|
|
171
|
+
export * from './Interface/models/ISheetMonthScheduleDetails';
|
|
171
172
|
export * from './Interface/models/ISimulation';
|
|
172
173
|
export * from './Interface/models/ISimulationAdditionalFinance';
|
|
173
174
|
export * from './Interface/models/ISimulationColor';
|
|
@@ -404,6 +405,8 @@ export * from './Enum/WebmailType';
|
|
|
404
405
|
export * from './Enum/WebmailFlag';
|
|
405
406
|
export * from './Enum/MailFlag';
|
|
406
407
|
export * from './Enum/Contract';
|
|
408
|
+
export * from './Enum/SalariesType';
|
|
409
|
+
export * from './Enum/SheetMonthScheduleDetailType';
|
|
407
410
|
|
|
408
411
|
// Interfaces API
|
|
409
412
|
export * from './Interface/api/jeDeclare/ReadJeDeclare';
|
|
@@ -531,6 +534,7 @@ export * from './Interface/api/promoCode/ReadDefaultPaginationPromoCode';
|
|
|
531
534
|
export * from './Interface/api/bankAccount/QueryBankAccount';
|
|
532
535
|
export * from './Interface/api/log/QueryLogPagination';
|
|
533
536
|
export * from './Interface/api/employee/QueryEmployeeSearch';
|
|
537
|
+
export * from './Interface/api/employee/QueryCreateEmployee';
|
|
534
538
|
|
|
535
539
|
// export * from './Interface/api/survey/QuerySurvey';
|
|
536
540
|
export * from './Interface/api/survey/ReadSurvey';
|
package/ts/utils/webmail.ts
CHANGED
|
@@ -2,12 +2,20 @@ import { Role } from '../types/Enum/Role';
|
|
|
2
2
|
|
|
3
3
|
const getIdRoleUsedForEmail = (listRoles: number[]): number => {
|
|
4
4
|
let idRole = Role.CUSTOMER_SUCCESS;
|
|
5
|
-
if (listRoles.includes(Role.FRONT_OFFICE)
|
|
5
|
+
if (listRoles.includes(Role.FRONT_OFFICE)) {
|
|
6
6
|
idRole = Role.FRONT_OFFICE;
|
|
7
|
-
} else if (listRoles.includes(Role.
|
|
8
|
-
idRole = Role.
|
|
7
|
+
} else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {
|
|
8
|
+
idRole = Role.FRONT_OFFICE_EXPRESS;
|
|
9
|
+
} else if (listRoles.includes(Role.COMMERCIAL) || listRoles.includes(Role.COMMERCIAL_MANAGER)) {
|
|
10
|
+
idRole = Role.COMMERCIAL;
|
|
11
|
+
} else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {
|
|
12
|
+
idRole = Role.EXPERT_ACCOUNTANT;
|
|
9
13
|
} else if (listRoles.includes(Role.MANAGER)) {
|
|
10
14
|
idRole = Role.MANAGER;
|
|
15
|
+
} else if (listRoles.includes(Role.SOCIAL)) {
|
|
16
|
+
idRole = Role.SOCIAL;
|
|
17
|
+
} else if (listRoles.includes(Role.JURIDIC)) {
|
|
18
|
+
idRole = Role.JURIDIC;
|
|
11
19
|
}
|
|
12
20
|
return idRole;
|
|
13
21
|
};
|