@silexpert/core 1.1.204 → 1.1.205

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 (137) hide show
  1. package/dist/cjs/api/resources/Facturation.d.ts +2 -1
  2. package/dist/cjs/api/resources/Facturation.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Facturation.js +3 -0
  4. package/dist/cjs/api/resources/Facturation.js.map +1 -1
  5. package/dist/cjs/api/resources/OnBoarding.d.ts +8 -0
  6. package/dist/cjs/api/resources/OnBoarding.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/OnBoarding.js +14 -0
  8. package/dist/cjs/api/resources/OnBoarding.js.map +1 -0
  9. package/dist/cjs/api/resources/WorkingSchedule.d.ts +1 -0
  10. package/dist/cjs/api/resources/WorkingSchedule.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/WorkingSchedule.js +5 -0
  12. package/dist/cjs/api/resources/WorkingSchedule.js.map +1 -1
  13. package/dist/cjs/api/resources.d.ts +2 -0
  14. package/dist/cjs/api/resources.d.ts.map +1 -1
  15. package/dist/cjs/api/resources.js +2 -0
  16. package/dist/cjs/api/resources.js.map +1 -1
  17. package/dist/cjs/types/Enum/Lab.d.ts +17 -0
  18. package/dist/cjs/types/Enum/Lab.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/Lab.js +17 -1
  20. package/dist/cjs/types/Enum/Lab.js.map +1 -1
  21. package/dist/cjs/types/Enum/Role.d.ts +2 -1
  22. package/dist/cjs/types/Enum/Role.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/Role.js +1 -0
  24. package/dist/cjs/types/Enum/Role.js.map +1 -1
  25. package/dist/cjs/types/Enum/RoleDetail.d.ts +7 -0
  26. package/dist/cjs/types/Enum/RoleDetail.d.ts.map +1 -1
  27. package/dist/cjs/types/Enum/RoleDetail.js +7 -0
  28. package/dist/cjs/types/Enum/RoleDetail.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/OnBoarding.d.ts +10 -0
  30. package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -0
  31. package/dist/cjs/types/Interface/api/OnBoarding.js +58 -0
  32. package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -0
  33. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts +1 -0
  34. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.js +4 -0
  36. package/dist/cjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.js.map +1 -1
  37. package/dist/cjs/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturationNew.d.ts +7 -0
  38. package/dist/cjs/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturationNew.d.ts.map +1 -0
  39. package/dist/cjs/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturationNew.js +37 -0
  40. package/dist/cjs/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturationNew.js.map +1 -0
  41. package/dist/cjs/types/Interface/api/prestation/Query.d.ts +1 -0
  42. package/dist/cjs/types/Interface/api/prestation/Query.d.ts.map +1 -1
  43. package/dist/cjs/types/Interface/api/prestation/Query.js +6 -0
  44. package/dist/cjs/types/Interface/api/prestation/Query.js.map +1 -1
  45. package/dist/cjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts +4 -0
  46. package/dist/cjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts.map +1 -1
  47. package/dist/cjs/types/Interface/api/workingSchedule/QueryDailyHour.js.map +1 -1
  48. package/dist/cjs/types/Interface/models/IPrestation.d.ts +4 -0
  49. package/dist/cjs/types/Interface/models/IPrestation.d.ts.map +1 -1
  50. package/dist/cjs/types/Interface/models/IPrestation.js.map +1 -1
  51. package/dist/cjs/types/Interface/models/ISociety.d.ts +2 -1
  52. package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
  53. package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
  54. package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts +4 -0
  55. package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  56. package/dist/cjs/types/Interface/models/ISocietyDetail.js.map +1 -1
  57. package/dist/cjs/types/index.d.ts +2 -0
  58. package/dist/cjs/types/index.d.ts.map +1 -1
  59. package/dist/cjs/types/index.js +2 -0
  60. package/dist/cjs/types/index.js.map +1 -1
  61. package/dist/mjs/api/resources/Facturation.d.ts +2 -1
  62. package/dist/mjs/api/resources/Facturation.d.ts.map +1 -1
  63. package/dist/mjs/api/resources/Facturation.js +7 -0
  64. package/dist/mjs/api/resources/Facturation.js.map +1 -1
  65. package/dist/mjs/api/resources/OnBoarding.d.ts +8 -0
  66. package/dist/mjs/api/resources/OnBoarding.d.ts.map +1 -0
  67. package/dist/mjs/api/resources/OnBoarding.js +17 -0
  68. package/dist/mjs/api/resources/OnBoarding.js.map +1 -0
  69. package/dist/mjs/api/resources/WorkingSchedule.d.ts +1 -0
  70. package/dist/mjs/api/resources/WorkingSchedule.d.ts.map +1 -1
  71. package/dist/mjs/api/resources/WorkingSchedule.js +5 -0
  72. package/dist/mjs/api/resources/WorkingSchedule.js.map +1 -1
  73. package/dist/mjs/api/resources.d.ts +2 -0
  74. package/dist/mjs/api/resources.d.ts.map +1 -1
  75. package/dist/mjs/api/resources.js +2 -0
  76. package/dist/mjs/api/resources.js.map +1 -1
  77. package/dist/mjs/types/Enum/Lab.d.ts +17 -0
  78. package/dist/mjs/types/Enum/Lab.d.ts.map +1 -1
  79. package/dist/mjs/types/Enum/Lab.js +16 -0
  80. package/dist/mjs/types/Enum/Lab.js.map +1 -1
  81. package/dist/mjs/types/Enum/Role.d.ts +2 -1
  82. package/dist/mjs/types/Enum/Role.d.ts.map +1 -1
  83. package/dist/mjs/types/Enum/Role.js +1 -0
  84. package/dist/mjs/types/Enum/Role.js.map +1 -1
  85. package/dist/mjs/types/Enum/RoleDetail.d.ts +7 -0
  86. package/dist/mjs/types/Enum/RoleDetail.d.ts.map +1 -1
  87. package/dist/mjs/types/Enum/RoleDetail.js +7 -0
  88. package/dist/mjs/types/Enum/RoleDetail.js.map +1 -1
  89. package/dist/mjs/types/Interface/api/OnBoarding.d.ts +10 -0
  90. package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -0
  91. package/dist/mjs/types/Interface/api/OnBoarding.js +60 -0
  92. package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -0
  93. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts +1 -0
  94. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.d.ts.map +1 -1
  95. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.js +5 -0
  96. package/dist/mjs/types/Interface/api/calendarEvent/createCalendarEventForUsers.js.map +1 -1
  97. package/dist/mjs/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturationNew.d.ts +7 -0
  98. package/dist/mjs/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturationNew.d.ts.map +1 -0
  99. package/dist/mjs/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturationNew.js +36 -0
  100. package/dist/mjs/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturationNew.js.map +1 -0
  101. package/dist/mjs/types/Interface/api/prestation/Query.d.ts +1 -0
  102. package/dist/mjs/types/Interface/api/prestation/Query.d.ts.map +1 -1
  103. package/dist/mjs/types/Interface/api/prestation/Query.js +8 -1
  104. package/dist/mjs/types/Interface/api/prestation/Query.js.map +1 -1
  105. package/dist/mjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts +4 -0
  106. package/dist/mjs/types/Interface/api/workingSchedule/QueryDailyHour.d.ts.map +1 -1
  107. package/dist/mjs/types/Interface/api/workingSchedule/QueryDailyHour.js.map +1 -1
  108. package/dist/mjs/types/Interface/models/IPrestation.d.ts +4 -0
  109. package/dist/mjs/types/Interface/models/IPrestation.d.ts.map +1 -1
  110. package/dist/mjs/types/Interface/models/IPrestation.js.map +1 -1
  111. package/dist/mjs/types/Interface/models/ISociety.d.ts +2 -1
  112. package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
  113. package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
  114. package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts +4 -0
  115. package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  116. package/dist/mjs/types/Interface/models/ISocietyDetail.js.map +1 -1
  117. package/dist/mjs/types/index.d.ts +2 -0
  118. package/dist/mjs/types/index.d.ts.map +1 -1
  119. package/dist/mjs/types/index.js +2 -0
  120. package/dist/mjs/types/index.js.map +1 -1
  121. package/package.json +1 -1
  122. package/ts/api/resources/Facturation.ts +8 -1
  123. package/ts/api/resources/OnBoarding.ts +21 -0
  124. package/ts/api/resources/WorkingSchedule.ts +6 -0
  125. package/ts/api/resources.ts +2 -0
  126. package/ts/types/Enum/Lab.ts +17 -0
  127. package/ts/types/Enum/Role.ts +1 -0
  128. package/ts/types/Enum/RoleDetail.ts +7 -0
  129. package/ts/types/Interface/api/OnBoarding.ts +40 -0
  130. package/ts/types/Interface/api/calendarEvent/createCalendarEventForUsers.ts +3 -0
  131. package/ts/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturationNew.ts +22 -0
  132. package/ts/types/Interface/api/prestation/Query.ts +6 -1
  133. package/ts/types/Interface/api/workingSchedule/QueryDailyHour.ts +6 -0
  134. package/ts/types/Interface/models/IPrestation.ts +5 -1
  135. package/ts/types/Interface/models/ISociety.ts +2 -0
  136. package/ts/types/Interface/models/ISocietyDetail.ts +4 -0
  137. package/ts/types/index.ts +2 -0
@@ -22,4 +22,21 @@ export const LabDetail = {
22
22
  id: Lab.AWAITING_CONFORMITY,
23
23
  color: 'primary',
24
24
  },
25
+ };
26
+
27
+ export enum LabRejectReason {
28
+ RISK_OFFICE_ID = 1,
29
+ RISK_CONFORMITY_ID = 2,
30
+ REFUND_MOTIF_LAB_REFUSED_ID = 9,
31
+ TERMINATION_FOR_CONFORMITY_REASON_ID = 12,
32
+ TERMINATION_FOR_NO_RESPONSE_REASON_ID = 13,
33
+ }
34
+
35
+ export const LabRejectReasonDetail = {
36
+ RISK_OFFICE_ID: {
37
+ id: LabRejectReason.RISK_OFFICE_ID, value: 'Risque cabinet',
38
+ },
39
+ RISK_CONFORMITY_ID: {
40
+ id: LabRejectReason.RISK_CONFORMITY_ID, value: 'Risque de conformité',
41
+ },
25
42
  };
@@ -42,6 +42,7 @@ export enum Role {
42
42
  REFERENT_LITIGE = 47,
43
43
  REFERENT_CLIENT = 48,
44
44
  CONTROL_INTERN = 49,
45
+ ON_BOARDER = 50,
45
46
  }
46
47
 
47
48
  export const RoleAllowedToLogInAsClient = [
@@ -321,4 +321,11 @@ export const RoleDetail = {
321
321
  colorSecondary: '#FFF',
322
322
  subRole: false,
323
323
  },
324
+ ON_BOARDER: {
325
+ id: 50,
326
+ name: 'On boarder',
327
+ colorPrimary: '#FFF',
328
+ colorSecondary: '#FFF',
329
+ subRole: false,
330
+ },
324
331
  };
@@ -0,0 +1,40 @@
1
+ import {
2
+ IsBoolean, IsInt, IsOptional, IsString,
3
+ } from 'class-validator';
4
+ import { ApiPropertyOptional } from '../../../utils';
5
+ import { ToBoolean } from '../../../utils/transforms/boolean.transform';
6
+ import { OptionalQueryPaginate } from './BasePaginate';
7
+
8
+ export class QueryOnBoardingPaginated extends OptionalQueryPaginate {
9
+ @ApiPropertyOptional()
10
+ @IsOptional()
11
+ @IsString()
12
+ search?: string;
13
+
14
+ @ApiPropertyOptional()
15
+ @IsOptional()
16
+ @IsString()
17
+ orderBy?: string;
18
+
19
+ @ApiPropertyOptional()
20
+ @IsOptional()
21
+ @IsBoolean()
22
+ @ToBoolean()
23
+ descending?: boolean;
24
+
25
+ @ApiPropertyOptional()
26
+ @IsOptional()
27
+ @IsBoolean()
28
+ @ToBoolean()
29
+ hasAccountant?: boolean;
30
+
31
+ @ApiPropertyOptional()
32
+ @IsOptional()
33
+ @IsInt()
34
+ firstContact?: number;
35
+
36
+ @ApiPropertyOptional()
37
+ @IsOptional()
38
+ @IsInt()
39
+ idLAB?: number;
40
+ }
@@ -62,4 +62,7 @@ export class CreateCalendarEventForUsers {
62
62
 
63
63
  @ApiProperty()
64
64
  idUsers: Array<number>;
65
+
66
+ @ApiPropertyOptional()
67
+ hasToBeUnique: boolean;
65
68
  }
@@ -0,0 +1,22 @@
1
+ import {
2
+ IsInt, IsOptional, IsString,
3
+ } from 'class-validator';
4
+ import { ApiPropertyOptional } from '../../../../utils';
5
+ import { OptionalQueryPaginate } from '../BasePaginate';
6
+
7
+ export class QueryPaginatedSocietyWithFacturationNew extends OptionalQueryPaginate {
8
+ @ApiPropertyOptional()
9
+ @IsOptional()
10
+ @IsString()
11
+ search?: string;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsOptional()
15
+ @IsInt()
16
+ idUser?: number;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ @IsInt()
21
+ idBillingState?: number;
22
+ }
@@ -1,4 +1,4 @@
1
- import { IsArray, IsBoolean, IsNumber, IsObject, IsOptional, IsString } from 'class-validator';
1
+ import { IsArray, IsBoolean, IsInt, IsNumber, IsObject, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { IPrestation } from '../../models/IPrestation';
4
4
  import { IExercicePrestation } from '../../models/IExercicePrestation';
@@ -74,6 +74,11 @@ export class QueryUpdatePrestation {
74
74
  @IsNumber()
75
75
  idExercicePrestation: number;
76
76
 
77
+ @ApiPropertyOptional()
78
+ @IsOptional()
79
+ @IsInt()
80
+ idOnBoarder: number;
81
+
77
82
  @ApiPropertyOptional()
78
83
  @IsOptional()
79
84
  @IsArray()
@@ -15,6 +15,12 @@ export interface SpecialHours {
15
15
  5?: DailyHour | DailyHour[];
16
16
  }
17
17
 
18
+ export interface TimeSlots {
19
+ startDate: Date,
20
+ endDate: Date
21
+ }
22
+
23
+
18
24
  export type ReadFilesUser = Array< {
19
25
  name: string;
20
26
  createdAt: string;
@@ -6,6 +6,7 @@ import { ISociety } from './ISociety';
6
6
  import { IExercicePrestation } from './IExercicePrestation';
7
7
  import { ICustomerSignature } from './ICustomerSignature';
8
8
  import { ITerminationList } from './ITerminationList';
9
+ import { IUser } from '../..';
9
10
 
10
11
  // prestations
11
12
  export interface IPrestation {
@@ -26,6 +27,7 @@ export interface IPrestation {
26
27
  toConstitution: number;
27
28
  dateValidPrestation: Date | null;
28
29
  goToOnboarding: Date | null;
30
+ dateLeavingOnboarding: Date | null;
29
31
  goToClient: Date | null;
30
32
  goToFacturation: Date | null;
31
33
  scoring: number | null;
@@ -43,6 +45,7 @@ export interface IPrestation {
43
45
  idPrestationCreation: number | null;
44
46
  idPrestationDeclarationIR: number | null;
45
47
  idPrestationControleFiscal: number | null;
48
+ idOnBoarder: number | null;
46
49
  totalAmount?: number;
47
50
  discountAmount?: number;
48
51
  debitType?: string;
@@ -62,4 +65,5 @@ export interface IPrestation {
62
65
  prestationsDetailsBeforeExercice?: IExercicePrestation[];
63
66
  customersSignatures?: ICustomerSignature[];
64
67
  terminationList?: ITerminationList;
65
- }
68
+ onBoarder?: IUser;
69
+ }
@@ -52,6 +52,7 @@ import {
52
52
  IUnpaidCallHistory,
53
53
  IAccountingFile,
54
54
  IThirdPartySociety,
55
+ ICalendarEvent,
55
56
  } from '../..';
56
57
  import { IBrandType } from './IBrandType';
57
58
  import { IFile } from './IFile';
@@ -232,4 +233,5 @@ export interface ISociety {
232
233
  unpaidCallHistory?: IUnpaidCallHistory[];
233
234
  accountingFiles?: IAccountingFile[];
234
235
  businessSectors?: IBusinessSector[];
236
+ calendarEvents?: ICalendarEvent[];
235
237
  }
@@ -94,6 +94,10 @@ export interface ISocietyDetail {
94
94
  notificationForConstitution?: boolean;
95
95
  notificationForOtherMissions?: boolean | null;
96
96
  takeKnowledge?: boolean;
97
+ riskClientIdentity?: boolean | null;
98
+ riskCompanyIdentity?: boolean | null;
99
+ riskClientIdentityComment?: string | null;
100
+ riskCompanyIdentityComment?: string | null;
97
101
  bankSynchronisationState?: number | null;
98
102
  platformExplanation?:number | null;
99
103
  mobileAppInstallationProposal?:number | null;
package/ts/types/index.ts CHANGED
@@ -612,9 +612,11 @@ export * from './Interface/api/commercial/QueryPaginatedNewProspect';
612
612
  export * from './Interface/api/commercial/QueryPaginatedSocietyWithStatsCa';
613
613
  export * from './Interface/api/facturation/Query';
614
614
  export * from './Interface/api/facturation/QueryPaginatedSocietyWithFacturation';
615
+ export * from './Interface/api/facturation/QueryPaginatedSocietyWithFacturationNew';
615
616
  export * from './Interface/api/billingHistory/QueryPaginatedBillingHistory';
616
617
  export * from './Interface/api/facturation/CreateRebilling';
617
618
  export * from './Interface/api/facturation/GoToFacturation';
619
+ export * from './Interface/api/OnBoarding';
618
620
  export * from './Interface/api/commercial/QueryGetStats';
619
621
  export * from './Interface/api/commercial/RequiredDocsTypeParams';
620
622
  export * from './Interface/api/commercial/QueryFetchDialogDatasInfosOk';