@silexpert/core 1.0.128 → 1.0.130

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 (61) hide show
  1. package/es/api/resources/Commercial.d.ts +2 -1
  2. package/es/api/resources/Commercial.d.ts.map +1 -1
  3. package/es/api/resources/Commercial.js +5 -0
  4. package/es/api/resources/Commercial.js.map +1 -1
  5. package/es/api/resources/Mail.d.ts +1 -3
  6. package/es/api/resources/Mail.d.ts.map +1 -1
  7. package/es/api/resources/Mail.js +1 -11
  8. package/es/api/resources/Mail.js.map +1 -1
  9. package/es/types/Enum/CommercialGrade.d.ts +26 -0
  10. package/es/types/Enum/CommercialGrade.d.ts.map +1 -0
  11. package/es/types/Enum/CommercialGrade.js +27 -0
  12. package/es/types/Enum/CommercialGrade.js.map +1 -0
  13. package/es/types/Interface/api/commercial/QueryPaginatedNewProspect.d.ts +9 -0
  14. package/es/types/Interface/api/commercial/QueryPaginatedNewProspect.d.ts.map +1 -0
  15. package/es/types/Interface/api/commercial/QueryPaginatedNewProspect.js +47 -0
  16. package/es/types/Interface/api/commercial/QueryPaginatedNewProspect.js.map +1 -0
  17. package/es/types/Interface/api/mail/QueryCountUnprocessedMail.d.ts +0 -2
  18. package/es/types/Interface/api/mail/QueryCountUnprocessedMail.d.ts.map +1 -1
  19. package/es/types/Interface/api/mail/QueryCountUnprocessedMail.js +1 -14
  20. package/es/types/Interface/api/mail/QueryCountUnprocessedMail.js.map +1 -1
  21. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +0 -2
  22. package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
  23. package/es/types/Interface/api/mail/QueryPaginatedMail.js +0 -13
  24. package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  25. package/es/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts +0 -2
  26. package/es/types/Interface/api/webmail/GetPaginatedWhereObjectParams.d.ts.map +1 -1
  27. package/es/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js +1 -14
  28. package/es/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js.map +1 -1
  29. package/es/types/Interface/models/IUser.d.ts +1 -0
  30. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  31. package/es/types/Interface/models/IUser.js.map +1 -1
  32. package/es/types/index.d.ts +2 -0
  33. package/es/types/index.d.ts.map +1 -1
  34. package/es/types/index.js +2 -0
  35. package/es/types/index.js.map +1 -1
  36. package/js/api/resources/Commercial.js +6 -0
  37. package/js/api/resources/Commercial.js.map +1 -1
  38. package/js/api/resources/Mail.js +1 -26
  39. package/js/api/resources/Mail.js.map +1 -1
  40. package/js/types/Enum/CommercialGrade.js +34 -0
  41. package/js/types/Enum/CommercialGrade.js.map +1 -0
  42. package/js/types/Interface/api/commercial/QueryPaginatedNewProspect.js +41 -0
  43. package/js/types/Interface/api/commercial/QueryPaginatedNewProspect.js.map +1 -0
  44. package/js/types/Interface/api/mail/QueryCountUnprocessedMail.js +0 -6
  45. package/js/types/Interface/api/mail/QueryCountUnprocessedMail.js.map +1 -1
  46. package/js/types/Interface/api/mail/QueryPaginatedMail.js +0 -6
  47. package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
  48. package/js/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js +1 -5
  49. package/js/types/Interface/api/webmail/GetPaginatedWhereObjectParams.js.map +1 -1
  50. package/js/types/index.js +24 -0
  51. package/js/types/index.js.map +1 -1
  52. package/package.json +1 -1
  53. package/ts/api/resources/Commercial.ts +6 -1
  54. package/ts/api/resources/Mail.ts +1 -23
  55. package/ts/types/Enum/CommercialGrade.ts +26 -0
  56. package/ts/types/Interface/api/commercial/QueryPaginatedNewProspect.ts +35 -0
  57. package/ts/types/Interface/api/mail/QueryCountUnprocessedMail.ts +0 -12
  58. package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +0 -11
  59. package/ts/types/Interface/api/webmail/GetPaginatedWhereObjectParams.ts +1 -12
  60. package/ts/types/Interface/models/IUser.ts +1 -0
  61. package/ts/types/index.ts +2 -0
@@ -0,0 +1,26 @@
1
+ export enum CommercialGrade {
2
+ JUNIOR = 1,
3
+ CONFIRMED = 2,
4
+ SENIOR = 3,
5
+ }
6
+
7
+ export const CommercialGradeDetail = {
8
+ JUNIOR: {
9
+ value: 1,
10
+ label: 'Junior',
11
+ quotationMin: 0,
12
+ quotationMax: 59,
13
+ },
14
+ CONFIRMED: {
15
+ value: 2,
16
+ label: 'Confirmé',
17
+ quotationMin: 60,
18
+ quotationMax: 100,
19
+ },
20
+ SENIOR: {
21
+ value: 3,
22
+ label: 'Senior',
23
+ quotationMin: 100,
24
+ quotationMax: 100,
25
+ },
26
+ };
@@ -0,0 +1,35 @@
1
+ import {
2
+ IsBoolean,
3
+ IsInt, IsOptional, IsString,
4
+ } from 'class-validator';
5
+ import { ApiPropertyOptional } from '../../../../utils';
6
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
+ import { OptionalQueryPaginate } from '../BasePaginate';
8
+
9
+ export class QueryPaginatedNewProspect extends OptionalQueryPaginate {
10
+ @ApiPropertyOptional()
11
+ @IsOptional()
12
+ @IsString()
13
+ search?: string;
14
+
15
+ @ApiPropertyOptional()
16
+ @IsOptional()
17
+ @IsInt()
18
+ idCommercial?: number;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsOptional()
22
+ @IsInt()
23
+ idUser?: number;
24
+
25
+ @ApiPropertyOptional()
26
+ @IsOptional()
27
+ @IsString()
28
+ orderBy?: string;
29
+
30
+ @ApiPropertyOptional()
31
+ @IsOptional()
32
+ @IsBoolean()
33
+ @ToBoolean()
34
+ descending?: boolean;
35
+ }
@@ -2,7 +2,6 @@ import {
2
2
  IsBoolean,
3
3
  IsInt,
4
4
  IsOptional,
5
- IsString,
6
5
  } from 'class-validator';
7
6
  import { ApiPropertyOptional } from '../../../../utils';
8
7
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
@@ -19,17 +18,6 @@ export class QueryCountUnprocessedMail {
19
18
  @ToBoolean()
20
19
  isWithoutSociety?: boolean;
21
20
 
22
- @ApiPropertyOptional()
23
- @IsOptional()
24
- @IsBoolean()
25
- @ToBoolean()
26
- handlingManagerRoleMails?: boolean;
27
-
28
- @ApiPropertyOptional()
29
- @IsOptional()
30
- @IsString({ each: true })
31
- to?: string;
32
-
33
21
  @ApiPropertyOptional()
34
22
  @IsOptional()
35
23
  @IsInt()
@@ -38,11 +38,6 @@ export class QueryPaginatedMail {
38
38
  @IsString()
39
39
  orderBy?: string = 'date';
40
40
 
41
- @ApiPropertyOptional()
42
- @IsOptional()
43
- @IsString({ each: true })
44
- to?: string;
45
-
46
41
  @ApiPropertyOptional()
47
42
  @IsOptional()
48
43
  @IsBoolean()
@@ -84,12 +79,6 @@ export class QueryPaginatedMail {
84
79
  @IsInt()
85
80
  idUser?: number;
86
81
 
87
- @ApiPropertyOptional()
88
- @IsOptional()
89
- @IsBoolean()
90
- @ToBoolean()
91
- handlingManagerRoleMails?: boolean;
92
-
93
82
  @ApiPropertyOptional()
94
83
  @IsOptional()
95
84
  @IsInt()
@@ -15,14 +15,9 @@ export class GetPaginatedWhereObjectParams {
15
15
  @IsString({
16
16
  each: true,
17
17
  })
18
- @IsIn(['society'], { each: true })
18
+ @IsIn(['society', 'mailAttachment'], { each: true })
19
19
  include?: string[];
20
20
 
21
- @ApiPropertyOptional()
22
- @IsOptional()
23
- @IsString()
24
- to?: string;
25
-
26
21
  @ApiPropertyOptional()
27
22
  @IsOptional()
28
23
  @IsBoolean()
@@ -59,12 +54,6 @@ export class GetPaginatedWhereObjectParams {
59
54
  @ToBoolean()
60
55
  isDeleted?: boolean;
61
56
 
62
- @ApiPropertyOptional()
63
- @IsOptional()
64
- @IsBoolean()
65
- @ToBoolean()
66
- handlingManagerRoleMails?: boolean;
67
-
68
57
  @ApiPropertyOptional()
69
58
  @IsOptional()
70
59
  @IsBoolean()
@@ -65,6 +65,7 @@ export interface IUser {
65
65
  idCommercialDoublon?: number | null;
66
66
  idProspectIsWith?: number | null;
67
67
  apprentice?: boolean;
68
+ idCommercialGrade?: number | null;
68
69
  smsNotAllowed?: boolean;
69
70
  restDaysAbsence?: number | null;
70
71
  startOnboarding?: Date | null;
package/ts/types/index.ts CHANGED
@@ -331,6 +331,7 @@ export * from './Form/FormConnector';
331
331
 
332
332
  // Enums
333
333
  export * from './Enum/FolderFile';
334
+ export * from './Enum/CommercialGrade';
334
335
  export * from './Enum/CommercialManagement';
335
336
  export * from './Enum/Civility';
336
337
  export * from './Enum/Registration';
@@ -537,6 +538,7 @@ export * from './Interface/api/society/LegalFormSiren';
537
538
  export * from './Interface/api/society/SocietyWithStatsCaParams';
538
539
  export * from './Interface/api/society/QuerySociety';
539
540
  export * from './Interface/api/society/QueryPaginatedSociety';
541
+ export * from './Interface/api/commercial/QueryPaginatedNewProspect';
540
542
  export * from './Interface/api/commercial/QueryPaginatedSocietyWithStatsCa';
541
543
  export * from './Interface/api/facturation/QueryPaginatedSocietyWithFacturation';
542
544
  export * from './Interface/api/billingHistory/QueryPaginatedBillingHistory';