@silexpert/core 0.4.188 → 0.4.193

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.
Files changed (141) hide show
  1. package/es/api/resources/Employee.d.ts +3 -3
  2. package/es/api/resources/Employee.d.ts.map +1 -1
  3. package/es/api/resources/Employee.js +13 -2
  4. package/es/api/resources/Employee.js.map +1 -1
  5. package/es/api/resources/Mail.d.ts +1 -0
  6. package/es/api/resources/Mail.d.ts.map +1 -1
  7. package/es/api/resources/Mail.js +3 -0
  8. package/es/api/resources/Mail.js.map +1 -1
  9. package/es/api/resources/NafCode.d.ts +6 -0
  10. package/es/api/resources/NafCode.d.ts.map +1 -0
  11. package/es/api/resources/NafCode.js +10 -0
  12. package/es/api/resources/NafCode.js.map +1 -0
  13. package/es/api/resources/SheetMonthSchedule.d.ts +1 -2
  14. package/es/api/resources/SheetMonthSchedule.d.ts.map +1 -1
  15. package/es/api/resources/SheetMonthSchedule.js +1 -4
  16. package/es/api/resources/SheetMonthSchedule.js.map +1 -1
  17. package/es/api/resources.d.ts +2 -0
  18. package/es/api/resources.d.ts.map +1 -1
  19. package/es/api/resources.js +2 -0
  20. package/es/api/resources.js.map +1 -1
  21. package/es/types/Enum/MailAuto.d.ts +112 -0
  22. package/es/types/Enum/MailAuto.d.ts.map +1 -0
  23. package/es/types/Enum/MailAuto.js +113 -0
  24. package/es/types/Enum/MailAuto.js.map +1 -0
  25. package/es/types/Enum/SalariesType.d.ts.map +1 -1
  26. package/es/types/Enum/SalariesType.js +8 -2
  27. package/es/types/Enum/SalariesType.js.map +1 -1
  28. package/es/types/Enum/SheetMonthScheduleDetailType.d.ts +4 -1
  29. package/es/types/Enum/SheetMonthScheduleDetailType.d.ts.map +1 -1
  30. package/es/types/Enum/SheetMonthScheduleDetailType.js +6 -0
  31. package/es/types/Enum/SheetMonthScheduleDetailType.js.map +1 -1
  32. package/es/types/Enum/TypeBankConnection.d.ts +2 -1
  33. package/es/types/Enum/TypeBankConnection.d.ts.map +1 -1
  34. package/es/types/Enum/TypeBankConnection.js +1 -0
  35. package/es/types/Enum/TypeBankConnection.js.map +1 -1
  36. package/es/types/Interface/api/budgetInsight/Query.d.ts +7 -0
  37. package/es/types/Interface/api/budgetInsight/Query.d.ts.map +1 -1
  38. package/es/types/Interface/api/budgetInsight/Query.js.map +1 -1
  39. package/es/types/Interface/api/calendarEvent/createCalendarEvent.d.ts +18 -0
  40. package/es/types/Interface/api/calendarEvent/createCalendarEvent.d.ts.map +1 -0
  41. package/es/types/Interface/api/calendarEvent/createCalendarEvent.js +73 -0
  42. package/es/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -0
  43. package/es/types/Interface/api/employee/QueryUpdateEmployee.d.ts +7 -0
  44. package/es/types/Interface/api/employee/QueryUpdateEmployee.d.ts.map +1 -0
  45. package/es/types/Interface/api/employee/QueryUpdateEmployee.js +2 -0
  46. package/es/types/Interface/api/employee/QueryUpdateEmployee.js.map +1 -0
  47. package/es/types/Interface/api/mail/CreateMailParams.d.ts +7 -0
  48. package/es/types/Interface/api/mail/CreateMailParams.d.ts.map +1 -1
  49. package/es/types/Interface/api/mail/CreateMailParams.js.map +1 -1
  50. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -0
  51. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
  52. package/es/types/Interface/api/mail/QueryPaginatedMail.js +8 -1
  53. package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  54. package/es/types/Interface/api/workingSchedule/UpdateOrCreateWorkingSchedule.d.ts +10 -0
  55. package/es/types/Interface/api/workingSchedule/UpdateOrCreateWorkingSchedule.d.ts.map +1 -0
  56. package/es/types/Interface/api/workingSchedule/UpdateOrCreateWorkingSchedule.js +2 -0
  57. package/es/types/Interface/api/workingSchedule/UpdateOrCreateWorkingSchedule.js.map +1 -0
  58. package/es/types/Interface/models/IAttestation.d.ts +3 -3
  59. package/es/types/Interface/models/IAttestation.d.ts.map +1 -1
  60. package/es/types/Interface/models/IAttestation.js.map +1 -1
  61. package/es/types/Interface/models/IBusinessLineUser.d.ts +8 -0
  62. package/es/types/Interface/models/IBusinessLineUser.d.ts.map +1 -0
  63. package/es/types/Interface/models/IBusinessLineUser.js +2 -0
  64. package/es/types/Interface/models/IBusinessLineUser.js.map +1 -0
  65. package/es/types/Interface/models/ICustomerTva.d.ts +2 -2
  66. package/es/types/Interface/models/ICustomerTva.d.ts.map +1 -1
  67. package/es/types/Interface/models/ICustomerTva.js.map +1 -1
  68. package/es/types/Interface/models/ILetter.d.ts +3 -0
  69. package/es/types/Interface/models/ILetter.d.ts.map +1 -1
  70. package/es/types/Interface/models/ILetter.js.map +1 -1
  71. package/es/types/Interface/models/INafCode.d.ts +11 -0
  72. package/es/types/Interface/models/INafCode.d.ts.map +1 -0
  73. package/es/types/Interface/models/INafCode.js +2 -0
  74. package/es/types/Interface/models/INafCode.js.map +1 -0
  75. package/es/types/Interface/models/IReport.d.ts +1 -0
  76. package/es/types/Interface/models/IReport.d.ts.map +1 -1
  77. package/es/types/Interface/models/IReport.js.map +1 -1
  78. package/es/types/Interface/models/ISheetMonthScheduleDetails.d.ts +2 -0
  79. package/es/types/Interface/models/ISheetMonthScheduleDetails.d.ts.map +1 -1
  80. package/es/types/Interface/models/ISheetMonthScheduleDetails.js.map +1 -1
  81. package/es/types/index.d.ts +5 -0
  82. package/es/types/index.d.ts.map +1 -1
  83. package/es/types/index.js +5 -0
  84. package/es/types/index.js.map +1 -1
  85. package/js/api/resources/Employee.js +16 -2
  86. package/js/api/resources/Employee.js.map +1 -1
  87. package/js/api/resources/Mail.js +6 -0
  88. package/js/api/resources/Mail.js.map +1 -1
  89. package/js/api/resources/NafCode.js +22 -0
  90. package/js/api/resources/NafCode.js.map +1 -0
  91. package/js/api/resources/SheetMonthSchedule.js +1 -5
  92. package/js/api/resources/SheetMonthSchedule.js.map +1 -1
  93. package/js/api/resources.js +4 -1
  94. package/js/api/resources.js.map +1 -1
  95. package/js/types/Enum/MailAuto.js +119 -0
  96. package/js/types/Enum/MailAuto.js.map +1 -0
  97. package/js/types/Enum/SalariesType.js +3 -2
  98. package/js/types/Enum/SalariesType.js.map +1 -1
  99. package/js/types/Enum/SheetMonthScheduleDetailType.js +12 -0
  100. package/js/types/Enum/SheetMonthScheduleDetailType.js.map +1 -1
  101. package/js/types/Enum/TypeBankConnection.js +1 -0
  102. package/js/types/Enum/TypeBankConnection.js.map +1 -1
  103. package/js/types/Interface/api/budgetInsight/Query.js.map +1 -1
  104. package/js/types/Interface/api/calendarEvent/createCalendarEvent.js +55 -0
  105. package/js/types/Interface/api/calendarEvent/createCalendarEvent.js.map +1 -0
  106. package/js/types/Interface/api/employee/QueryUpdateEmployee.js +6 -0
  107. package/js/types/Interface/api/employee/QueryUpdateEmployee.js.map +1 -0
  108. package/js/types/Interface/api/mail/QueryPaginatedMail.js +2 -0
  109. package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  110. package/js/types/Interface/api/workingSchedule/UpdateOrCreateWorkingSchedule.js +6 -0
  111. package/js/types/Interface/api/workingSchedule/UpdateOrCreateWorkingSchedule.js.map +1 -0
  112. package/js/types/Interface/models/IBusinessLineUser.js +6 -0
  113. package/js/types/Interface/models/IBusinessLineUser.js.map +1 -0
  114. package/js/types/Interface/models/INafCode.js +6 -0
  115. package/js/types/Interface/models/INafCode.js.map +1 -0
  116. package/js/types/index.js +60 -0
  117. package/js/types/index.js.map +1 -1
  118. package/package.json +1 -1
  119. package/ts/api/resources/Employee.ts +14 -4
  120. package/ts/api/resources/Mail.ts +4 -0
  121. package/ts/api/resources/NafCode.ts +10 -0
  122. package/ts/api/resources/SheetMonthSchedule.ts +1 -5
  123. package/ts/api/resources.ts +2 -0
  124. package/ts/types/Enum/MailAuto.ts +111 -0
  125. package/ts/types/Enum/SalariesType.ts +10 -2
  126. package/ts/types/Enum/SheetMonthScheduleDetailType.ts +6 -1
  127. package/ts/types/Enum/TypeBankConnection.ts +1 -0
  128. package/ts/types/Interface/api/budgetInsight/Query.ts +8 -0
  129. package/ts/types/Interface/api/calendarEvent/createCalendarEvent.ts +48 -0
  130. package/ts/types/Interface/api/employee/QueryUpdateEmployee.ts +7 -0
  131. package/ts/types/Interface/api/mail/CreateMailParams.ts +7 -0
  132. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +7 -1
  133. package/ts/types/Interface/api/workingSchedule/UpdateOrCreateWorkingSchedule.ts +10 -0
  134. package/ts/types/Interface/models/IAttestation.ts +3 -3
  135. package/ts/types/Interface/models/IBusinessLineUser.ts +8 -0
  136. package/ts/types/Interface/models/ICustomerTva.ts +2 -2
  137. package/ts/types/Interface/models/ILetter.ts +3 -0
  138. package/ts/types/Interface/models/INafCode.ts +12 -0
  139. package/ts/types/Interface/models/IReport.ts +1 -0
  140. package/ts/types/Interface/models/ISheetMonthScheduleDetails.ts +2 -1
  141. package/ts/types/index.ts +5 -0
@@ -17,6 +17,10 @@ export class Mail extends Resource {
17
17
  return this.axios.$get(`/mails/${id}`, { params });
18
18
  }
19
19
 
20
+ public getAll(params: Partial<IMail>): Promise<Mail> {
21
+ return this.axios.$get('/mails/all', { params });
22
+ }
23
+
20
24
  public getPaginatedInboxForUser(idUser: number, params: Partial<QueryPaginatedMail>, cancelToken?: CancelToken): Promise<Mail[]> {
21
25
  return this.axios.$get('/mails/paginated', {
22
26
  ...(cancelToken ? { cancelToken } : {}),
@@ -0,0 +1,10 @@
1
+ import { Resource } from '../Resource';
2
+
3
+ export class NafCode extends Resource {
4
+ getAll(): Promise<NafCode[]> {
5
+ return this.axios.$get('/naf-codes');
6
+ }
7
+ get(id: number): Promise<NafCode> {
8
+ return this.axios.$get(`/naf-codes/${id}`);
9
+ }
10
+ }
@@ -28,14 +28,10 @@ export class SheetMonthSchedule extends Resource {
28
28
  return this.axios.$get('/sheet-month-schedules', { params });
29
29
  }
30
30
 
31
- public createSheetMonthScheduleDetail(idSheetMonthSchedule: number, payload: ISheetMonthScheduleDetail): Promise<ISheetMonthScheduleDetail> {
31
+ public updateOrCreateSheetMonthScheduleDetail(idSheetMonthSchedule: number, payload: Partial<Omit<ISheetMonthScheduleDetail, 'idSheetMonthSchedule'>>): Promise<ISheetMonthScheduleDetail> {
32
32
  return this.axios.$post(`/sheet-month-schedules/${idSheetMonthSchedule}/details`, payload);
33
33
  }
34
34
 
35
- public updateSheetMonthScheduleDetail(idSheetMonthSchedule: number, idSheetMonthScheduleDetails: number, payload: Partial<ISheetMonthScheduleDetail>): Promise<ISheetMonthScheduleDetail> {
36
- return this.axios.$put(`/sheet-month-schedules/${idSheetMonthSchedule}/details/${idSheetMonthScheduleDetails}`, payload);
37
- }
38
-
39
35
  public deleteSheetMonthScheduleDetail(idSheetMonthSchedule: number, idSheetMonthScheduleDetails: number): Promise<true> {
40
36
  return this.axios.$delete(`/sheet-month-schedules/${idSheetMonthSchedule}/details/${idSheetMonthScheduleDetails}`);
41
37
  }
@@ -71,6 +71,7 @@ import { Exercice } from './resources/Exercice';
71
71
  import { Mail } from './resources/Mail';
72
72
  import { Employee } from './resources/Employee';
73
73
  import { SheetMonthSchedule } from './resources/SheetMonthSchedule';
74
+ import { NafCode } from './resources/NafCode';
74
75
 
75
76
  export const resources = {
76
77
  simulation: Simulation,
@@ -146,4 +147,5 @@ export const resources = {
146
147
  mail: Mail,
147
148
  employee: Employee,
148
149
  sheetMonthSchedule: SheetMonthSchedule,
150
+ nafCode: NafCode,
149
151
  };
@@ -0,0 +1,111 @@
1
+ export enum MailAuto {
2
+ MEMENTO = 1,
3
+ ANNOTATIONS = 2,
4
+ BILAN = 3,
5
+ MISSING_DOCS = 4,
6
+ SYNC_BANK = 5,
7
+ A_NOUVEAUX = 6,
8
+ MISSING_INVOICES = 7,
9
+ PHONE_RDV = 8,
10
+ GRACEFUL_DELIVERY = 9,
11
+ ON_BOARDING = 10,
12
+ UNPAID = 11,
13
+ MYCLE_ACCESS = 12,
14
+ FIRST_TALK = 13,
15
+ ATTRIBUTION = 14,
16
+ NEW_ATTRIBUTION = 15,
17
+ PAYMENT_REJECTED = 16,
18
+ ATTESTATION_SIGNED = 17,
19
+ ATTESTATION_PAYMENT_LINK = 18,
20
+ PHONE_RDV_MISSED = 19,
21
+ PHONE_SYNTHESIS = 20,
22
+ LEGAL_FOLDER_CREATION = 21,
23
+ JURIDICAL_PAYMENT = 22,
24
+ RELANCE_ANNOTATION = 23,
25
+ SUPERVISION = 24,
26
+ PAYMENT_LATE_FOR_ACTION = 25,
27
+ SYNCHRONIZE_FOR_ACTION = 26,
28
+ DOCUMENTS_FOR_ACTION = 27,
29
+ PAYMENTS_LATE_AND_NOT_SYNC_FOR_ACTION = 28,
30
+ ANNOTATION_FOR_ACTION = 29,
31
+ PAYMENT_LATE_AND_NOT_ANNOTED_FOR_ACTION = 30,
32
+ MAJ_FOR_ACTION = 31,
33
+ CONSTITUTION_EI = 32,
34
+ CONSTITUTION_SOCIETIES = 33,
35
+ CONSTITUTION_KBIS = 34,
36
+ RELANCE_GRACEFUL_DELIVERY = 35,
37
+ REPLY_GRACEFUL_DELIVERY = 36,
38
+ ACCOUNTING_IMPLEMENTATION = 37,
39
+ INFORM_CUSTOMER_DRG_DONE = 38,
40
+ ASK_CERTIFICATE_NON_REMUNERATION = 39,
41
+ UNSYNC = 40,
42
+ NEW_CUSTOMER_SOCIAL = 41,
43
+ JURIDICAL_KBIS = 42,
44
+ HOME = 43,
45
+ HOME_SYNTHESIS = 44,
46
+ DOCUMENTS_WAITING = 45,
47
+ DOCUMENTS_TO_SIGN = 46,
48
+ OPINION_RECEIVED = 47,
49
+ RESPONSE_RECAP = 48,
50
+ RESPONSE_CALL_DIRECTLY_NOTATION_ECHEC = 49,
51
+ RESPONSE_CALL_DIRECTLY_ECHEC = 50,
52
+ AVIS_3_WEEKS = 51,
53
+ SATISFACTION = 52,
54
+ UPDATE_YOUR_ACCOUNTING = 53,
55
+ RELANCE_CHECKUP = 54,
56
+ RESPONDER = 55,
57
+ NO_RESPONSE = 56,
58
+ MEMO_RELANCE_ANNOTATION = 57,
59
+ APPROBATION_DIVIDEND = 58,
60
+ APPROBATION_JURIDICAL_DOCUMENTS = 59,
61
+ APPROBATION_ACCOUNTS_DEPOSIT = 60,
62
+ APPROBATION_ACCOUNTS_DEPOSIT_BACK = 61,
63
+ VAT_DECLARATION = 62,
64
+ TAKE_BACK_LETTER = 63,
65
+ ASK_RIB = 67,
66
+ DOCS_RECAP_CA = 68,
67
+ THANKS_FOR_ESTIMATE = 69,
68
+ REMIND_ESTIMATE = 70,
69
+ LAST_REMIND_ESTIMATE = 71,
70
+ EXPIRED_ESTIMATE = 72,
71
+ DOCS_FOR_EXPRESS = 73,
72
+ DOCS_FOR_EXPRESS_RELANCE = 74,
73
+ TICKET_SUPPORT_CONSTATATION = 76,
74
+ TICKET_SUPPORT_RESOLUTION = 77,
75
+ SCHEDULE = 78,
76
+ STOP_WORKING_ACCOUNTANT = 79,
77
+ TERMINATION_FOR_MISSING_DOCUMENTS = 80,
78
+ TERMINATION = 81,
79
+ LAST_RELANCE_CHECK_UP = 82,
80
+ TERMINATION_FOR_NO_CHECK_UP = 83,
81
+ TERMINATION_FOR_LAB_REJECTION = 84,
82
+ TERMINATION_FOR_SATISFIED_OR_REFUNDED = 85,
83
+ DRAWDOWN_ERROR = 86,
84
+ RECOVERY_REFUSED_BY_OLD_EXPERT = 87,
85
+ DRAWDOWN_ERROR_AFTER_TERMINATION = 88,
86
+ REFUND_PRESTA = 89,
87
+ REFUND_AMOUNT = 90,
88
+ PDF_CSV_BA = 91,
89
+ REVIVE_ELEMENTS_FOR_CONSTITUTION = 92,
90
+ REVIVE_TICKET = 93,
91
+ RESOLVE_WAITING_TICKET = 94,
92
+ RELANCE_UNPAIDS = 95,
93
+ LAST_RELANCE_UNPAIDS = 96,
94
+ FIRST_PREVI = 100,
95
+ FIRST_RAPPEL_PREVI = 101,
96
+ SECOND_RAPPEL_PREVI = 102,
97
+ LAST_RAPPEL_PREVI = 103,
98
+ BILAN_PREVI_FOR_CLIENT = 117,
99
+ REPORTING_FIRST_PHONE_RDV = 105,
100
+ REPORTING_EDITING_FIRST_PHONE_RDV = 106,
101
+ REPORTING_PHONE_RDV_SUMMARY_J0 = 107,
102
+ REPORTING_PHONE_RDV_BUG_FIXED_J3 = 108,
103
+ REPORTING_PHONE_RDV_SATISFACTION_J15 = 109,
104
+ REPORTING_PHONE_RDV_SATISFACTION_J30 = 110,
105
+ REPORTING_PHONE_RDV_UNAVAILABLE_1_TIME = 111,
106
+ REPORTING_PHONE_RDV_UNAVAILABLE_2_TIMES = 112,
107
+ REPORTING_PHONE_RDV_UNAVAILABLE_3_TIMES = 113,
108
+ REPORTING_PHONE_RDV_UNAVAILABLE_4_TIMES = 114,
109
+ REPORTING_PHONE_RDV_UNAVAILABLE_5_TIMES = 115,
110
+ REPORTING_PHONE_RDV_UNAVAILABLE_6_TIMES = 116,
111
+ }
@@ -34,5 +34,13 @@ export const contractTypeList: ContractTypeList = [
34
34
  { label: 'Stage', value: ContractTypeEnum.INTERNSHIP },
35
35
  ];
36
36
 
37
- export const hiringReasonList: HiringReasonList = Object.keys(HiringReasonEnum).map((value) => value as HiringReasonEnum);
38
- export const studyLevelList: StudyLevelList = Object.keys(StudyLevelEnum).map((value) => value as StudyLevelEnum);
37
+ export const hiringReasonList: HiringReasonList = [HiringReasonEnum.INCREASE, HiringReasonEnum.REPLACEMENT, HiringReasonEnum.SEASONAL];
38
+
39
+ export const studyLevelList: StudyLevelList = [
40
+ StudyLevelEnum.BELOW_BAC, StudyLevelEnum.BAC, StudyLevelEnum.BAC_PLUS_ONE,
41
+ StudyLevelEnum.BAC_PLUS_TWO, StudyLevelEnum.BAC_PLUS_THREE, StudyLevelEnum.BAC_PLUS_FOUR,
42
+ StudyLevelEnum.BAC_PLUS_FIVE, StudyLevelEnum.BAC_PLUS_SIX, StudyLevelEnum.BAC_PLUS_SEVEN,
43
+ StudyLevelEnum.ABOVE_BAC_PLUS_SEVEN,
44
+ ];
45
+
46
+ Object.keys(StudyLevelEnum).map((value) => value as StudyLevelEnum);
@@ -3,6 +3,9 @@ export enum SheetMonthScheduleDetailEnum {
3
3
  RTT = 2,
4
4
  SICK_LEAVE = 3,
5
5
  OTHER_ABSENCES_WITHOUT_PAY = 4,
6
+ GROSS_PREMIUM = 5,
7
+ DEPOSIT = 6,
8
+ PRO_FEES = 7,
6
9
  }
7
10
 
8
11
  export type MonthScheduleDetailList = { label: string, value: SheetMonthScheduleDetailEnum }[];
@@ -11,5 +14,7 @@ export const monthScheduleDetailList: MonthScheduleDetailList = [
11
14
  { label: 'RTT', value: SheetMonthScheduleDetailEnum.RTT },
12
15
  { label: 'Arrêt maladie', value: SheetMonthScheduleDetailEnum.SICK_LEAVE },
13
16
  { label: 'Autres absences sans solde', value: SheetMonthScheduleDetailEnum.OTHER_ABSENCES_WITHOUT_PAY },
14
-
17
+ { label: 'Prime brute', value: SheetMonthScheduleDetailEnum.GROSS_PREMIUM },
18
+ { label: 'Accompte', value: SheetMonthScheduleDetailEnum.DEPOSIT },
19
+ { label: 'Frais professionnel', value: SheetMonthScheduleDetailEnum.PRO_FEES },
15
20
  ];
@@ -2,4 +2,5 @@ export enum TypeBankConnection {
2
2
  BUDGET_CONNECTION = 'Budget',
3
3
  QONTO_CONNECTION = 'Qonto',
4
4
  SHINE_CONNECTION = 'Shine',
5
+ JEDECLARE = 'JeDeclare',
5
6
  }
@@ -177,4 +177,12 @@ type BudgetInsightConnection = {
177
177
  export type BudgetInsightConnectionSyncedQuery = {
178
178
  user: BudgetInsightUser;
179
179
  connection: BudgetInsightConnection & { connector: any; sources: any; accounts: any; };
180
+ };
181
+
182
+ export type BudgetEditBankAccount = {
183
+ display?: boolean;// Whether the bank account should be deisplayed and included in aggregated metrics.
184
+ name?: string; // Display name of the account.
185
+ disabled?: boolean; // Whether the bank account should be synchronized.
186
+ bookmarked?: boolean; // Whether the bank account is bookmarked.
187
+ usage?:BudgetInsightBankAccountUsage // Account usage.
180
188
  };
@@ -0,0 +1,48 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class createCalendarEvent {
4
+ @ApiProperty()
5
+ title: string;
6
+
7
+ @ApiProperty()
8
+ dateStart: Date;
9
+
10
+ @ApiProperty()
11
+ dateEnd: Date;
12
+
13
+ @ApiProperty()
14
+ comment: string;
15
+
16
+ @ApiPropertyOptional()
17
+ idRoom?: number;
18
+
19
+ @ApiProperty()
20
+ createdBy: number;
21
+
22
+ @ApiPropertyOptional()
23
+ idColor?: number;
24
+
25
+ @ApiProperty()
26
+ idSociety: number;
27
+
28
+ @ApiPropertyOptional()
29
+ idExercice?: number;
30
+
31
+ @ApiPropertyOptional()
32
+ idType?: number;
33
+
34
+ @ApiPropertyOptional()
35
+ typeComptable?: number;
36
+
37
+ @ApiProperty()
38
+ isDone: boolean;
39
+
40
+ @ApiPropertyOptional()
41
+ callState?: number;
42
+
43
+ @ApiPropertyOptional()
44
+ idRecurrence?: number;
45
+
46
+ @ApiPropertyOptional()
47
+ idPlace?: number;
48
+ }
@@ -0,0 +1,7 @@
1
+ import { IEmployee } from '../../models/IEmployee';
2
+ import { TFile } from '../file/TFile';
3
+
4
+ export interface UpdateEmployee extends Omit<IEmployee, 'dpaeFile' | 'contractFile'>{
5
+ dpaeFile?: TFile;
6
+ contractFile?: TFile;
7
+ }
@@ -7,4 +7,11 @@ export interface CreateMailParams extends IMail{
7
7
  textHtml?: string;
8
8
  isAnswerProcessed?: boolean;
9
9
  idMailParent?: number;
10
+ dateEvent?: Date;
11
+ dateEventEnd?: Date;
12
+ dayEvent?: string;
13
+ hourEvent?: string;
14
+ idAccountantEvent?: number;
15
+ idReport?: number;
16
+ idLetter?: number;
10
17
  }
@@ -1,5 +1,5 @@
1
1
  import {
2
- IsBoolean, IsIn, IsNumber, IsOptional, IsString, IsArray, IsInt,
2
+ IsBoolean, IsIn, IsNumber, IsOptional, IsString, IsArray, IsInt, IsEmail,
3
3
  } from 'class-validator';
4
4
  import { ApiPropertyOptional } from '../../../../utils';
5
5
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
@@ -38,6 +38,12 @@ export class QueryPaginatedMail {
38
38
  @IsString()
39
39
  orderBy?: string = 'date';
40
40
 
41
+ @ApiPropertyOptional()
42
+ @IsOptional()
43
+ @IsString()
44
+ @IsEmail()
45
+ to?: string;
46
+
41
47
  @ApiPropertyOptional()
42
48
  @IsOptional()
43
49
  @IsBoolean()
@@ -0,0 +1,10 @@
1
+ import { IWorkingSchedule } from '../../models/IWorkingSchedule';
2
+
3
+ type wotkingScheduleModified = Omit<IWorkingSchedule, 'idEmployee' | 'morningStart' | 'morningEnd' | 'afternoonStart' | 'afternoonEnd' >;
4
+
5
+ export interface UpdateOrCreateWorkingSchedule extends wotkingScheduleModified {
6
+ morningStart: string | null;
7
+ morningEnd: string | null;
8
+ afternoonStart: string | null;
9
+ afternoonEnd: string | null;
10
+ }
@@ -4,7 +4,7 @@ import { IPaymentExpectation } from './IPaymentExpectation';
4
4
  import { IFile } from './IFile';
5
5
  import { ISociety } from './ISociety';
6
6
  import { IExercice } from './IExercice';
7
- import { IWebMail } from './IWebMail';
7
+ import { IMail } from './IMail';
8
8
 
9
9
  // attestations
10
10
  export interface IAttestation {
@@ -35,6 +35,6 @@ export interface IAttestation {
35
35
  attestationFiles: IFile;
36
36
  society: ISociety;
37
37
  exercices: IExercice;
38
- paymentMail: IWebMail;
39
- validationMail: IWebMail;
38
+ paymentMail: IMail;
39
+ validationMail: IMail;
40
40
  }
@@ -0,0 +1,8 @@
1
+ // businessLineUser
2
+ export interface IBusinessLineUser {
3
+ id?: number;
4
+ idBusinessLine: number;
5
+ idUser: number;
6
+ createdAt?: Date | null;
7
+ updatedAt?: Date | null;
8
+ }
@@ -1,5 +1,5 @@
1
1
  import { IExercice } from './IExercice';
2
- import { IWebMail } from './IWebMail';
2
+ import { IMail } from './IMail';
3
3
  import { IChecklist } from './IChecklist';
4
4
  import { IVatDeclaration } from './IVatDeclaration';
5
5
 
@@ -26,7 +26,7 @@ export interface ICustomerTva {
26
26
 
27
27
  // Associations
28
28
  exercice: IExercice;
29
- webmailMail: IWebMail;
29
+ mail: IMail;
30
30
  checklist: IChecklist;
31
31
  vatDeclaration: IVatDeclaration;
32
32
  }
@@ -3,6 +3,7 @@ import { ISociety } from './ISociety';
3
3
  import { ILetterType } from './ILetterType';
4
4
  import { IFile } from './IFile';
5
5
  import { IReport } from './IReport';
6
+ import { IMail } from './IMail';
6
7
 
7
8
  // letters
8
9
  export interface ILetter {
@@ -19,6 +20,7 @@ export interface ILetter {
19
20
  idResponseFile?: number | null;
20
21
  idSociety: number;
21
22
  idReport?: number;
23
+ idMail?: number;
22
24
  idAccountant?: number;
23
25
  createdAt?: Date | null;
24
26
  updatedAt?: Date | null;
@@ -27,6 +29,7 @@ export interface ILetter {
27
29
  user?: IUser;
28
30
  society?: ISociety;
29
31
  report?: IReport;
32
+ mail?: IMail;
30
33
  typeLetter?: ILetterType;
31
34
  receivedFile?: IFile;
32
35
  responseFile?: IFile;
@@ -0,0 +1,12 @@
1
+ import { IBusinessLine } from './IBusinessLine';
2
+
3
+ export interface INafCode {
4
+ id?: number;
5
+ idBusinessLine: number;
6
+ nafCode: string;
7
+ activity?: string;
8
+ createdAt?: Date | null;
9
+ updatedAt?: Date | null;
10
+
11
+ businessLine: IBusinessLine;
12
+ }
@@ -6,6 +6,7 @@ export interface IReport {
6
6
  id?: number;
7
7
  idSociety?: number | null;
8
8
  idReportType?: number | null;
9
+ idCalendarEvent?: number;
9
10
  idLetterType?: number | null;
10
11
  declareSoupcons?: boolean | null;
11
12
  state?: number | null;
@@ -1,10 +1,11 @@
1
- // sheetMonthScheduleDetails
2
1
  export interface ISheetMonthScheduleDetail {
3
2
  id?: number;
4
3
  idDetailType: number;
5
4
  startDate: Date;
6
5
  endDate: Date;
7
6
  idSheetMonthSchedule: number;
7
+ name?: string | null;
8
+ amount?: string | null;
8
9
  createdAt?: Date | null;
9
10
  updatedAt?: Date | null;
10
11
  }
package/ts/types/index.ts CHANGED
@@ -302,6 +302,7 @@ export * from './Interface/models/IBalanceSheetModule2';
302
302
  export * from './Interface/models/IBalanceSheetStatus';
303
303
  export * from './Interface/models/IBalanceSheetCompletion';
304
304
  export * from './Interface/models/IDefaultPromotion';
305
+ export * from './Interface/models/INafCode';
305
306
 
306
307
  // Forms
307
308
  export * from './Form/FormAuthenticate';
@@ -317,6 +318,7 @@ export * from './Enum/Log';
317
318
  export * from './Enum/Quality';
318
319
  export * from './Enum/Role';
319
320
  export * from './Enum/RoleDetail';
321
+ export * from './Enum/MailAuto';
320
322
  export * from './Enum/Simulation';
321
323
  export * from './Enum/Country';
322
324
  export * from './Enum/ComptaType';
@@ -535,6 +537,8 @@ export * from './Interface/api/bankAccount/QueryBankAccount';
535
537
  export * from './Interface/api/log/QueryLogPagination';
536
538
  export * from './Interface/api/employee/QueryEmployeeSearch';
537
539
  export * from './Interface/api/employee/QueryCreateEmployee';
540
+ export * from './Interface/api/employee/QueryUpdateEmployee';
541
+ export * from './Interface/api/workingSchedule/UpdateOrCreateWorkingSchedule';
538
542
 
539
543
  // export * from './Interface/api/survey/QuerySurvey';
540
544
  export * from './Interface/api/survey/ReadSurvey';
@@ -682,6 +686,7 @@ export * from './Interface/api/balanceSheetModule/PrepareModulesAndCompletions';
682
686
  export * from './Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletions';
683
687
  export * from './Interface/api/bankAccount/ReadExpiredBankAccount';
684
688
  export * from './Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule';
689
+ export * from './Interface/api/calendarEvent/createCalendarEvent';
685
690
 
686
691
  // Enums types
687
692
  export * from './Interface/enum/Util';