@silexpert/core 1.0.127 → 1.0.129

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 (77) 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/Library.d.ts +1 -1
  6. package/es/api/resources/Library.d.ts.map +1 -1
  7. package/es/api/resources/Library.js +2 -2
  8. package/es/api/resources/Library.js.map +1 -1
  9. package/es/types/Enum/BalanceSheet.d.ts +1 -1
  10. package/es/types/Enum/BalanceSheet.js +1 -1
  11. package/es/types/Enum/BalanceSheet.js.map +1 -1
  12. package/es/types/Enum/CommercialGrade.d.ts +26 -0
  13. package/es/types/Enum/CommercialGrade.d.ts.map +1 -0
  14. package/es/types/Enum/CommercialGrade.js +27 -0
  15. package/es/types/Enum/CommercialGrade.js.map +1 -0
  16. package/es/types/Enum/Office.d.ts.map +1 -1
  17. package/es/types/Enum/Office.js +1 -0
  18. package/es/types/Enum/Office.js.map +1 -1
  19. package/es/types/Enum/Role.d.ts +0 -2
  20. package/es/types/Enum/Role.d.ts.map +1 -1
  21. package/es/types/Enum/Role.js +2 -2
  22. package/es/types/Enum/Role.js.map +1 -1
  23. package/es/types/Enum/TimeRecorderLocation.d.ts +23 -0
  24. package/es/types/Enum/TimeRecorderLocation.d.ts.map +1 -0
  25. package/es/types/Enum/TimeRecorderLocation.js +6 -0
  26. package/es/types/Enum/TimeRecorderLocation.js.map +1 -0
  27. package/es/types/Interface/api/commercial/QueryPaginatedNewProspect.d.ts +9 -0
  28. package/es/types/Interface/api/commercial/QueryPaginatedNewProspect.d.ts.map +1 -0
  29. package/es/types/Interface/api/commercial/QueryPaginatedNewProspect.js +47 -0
  30. package/es/types/Interface/api/commercial/QueryPaginatedNewProspect.js.map +1 -0
  31. package/es/types/Interface/api/timeRecorder/UpdateRecorder.d.ts +2 -0
  32. package/es/types/Interface/api/timeRecorder/UpdateRecorder.d.ts.map +1 -1
  33. package/es/types/Interface/api/timeRecorder/UpdateRecorder.js +14 -2
  34. package/es/types/Interface/api/timeRecorder/UpdateRecorder.js.map +1 -1
  35. package/es/types/Interface/models/ITimeRecorder.d.ts +1 -0
  36. package/es/types/Interface/models/ITimeRecorder.d.ts.map +1 -1
  37. package/es/types/Interface/models/ITimeRecorder.js.map +1 -1
  38. package/es/types/Interface/models/IUser.d.ts +1 -0
  39. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  40. package/es/types/Interface/models/IUser.js.map +1 -1
  41. package/es/types/index.d.ts +3 -0
  42. package/es/types/index.d.ts.map +1 -1
  43. package/es/types/index.js +3 -0
  44. package/es/types/index.js.map +1 -1
  45. package/js/api/resources/Commercial.js +6 -0
  46. package/js/api/resources/Commercial.js.map +1 -1
  47. package/js/api/resources/Library.js +2 -2
  48. package/js/api/resources/Library.js.map +1 -1
  49. package/js/types/Enum/BalanceSheet.js +1 -1
  50. package/js/types/Enum/BalanceSheet.js.map +1 -1
  51. package/js/types/Enum/CommercialGrade.js +34 -0
  52. package/js/types/Enum/CommercialGrade.js.map +1 -0
  53. package/js/types/Enum/Office.js +2 -1
  54. package/js/types/Enum/Office.js.map +1 -1
  55. package/js/types/Enum/Role.js +4 -4
  56. package/js/types/Enum/Role.js.map +1 -1
  57. package/js/types/Enum/TimeRecorderLocation.js +16 -0
  58. package/js/types/Enum/TimeRecorderLocation.js.map +1 -0
  59. package/js/types/Interface/api/commercial/QueryPaginatedNewProspect.js +41 -0
  60. package/js/types/Interface/api/commercial/QueryPaginatedNewProspect.js.map +1 -0
  61. package/js/types/Interface/api/timeRecorder/UpdateRecorder.js +4 -0
  62. package/js/types/Interface/api/timeRecorder/UpdateRecorder.js.map +1 -1
  63. package/js/types/index.js +36 -0
  64. package/js/types/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/ts/api/resources/Commercial.ts +6 -1
  67. package/ts/api/resources/Library.ts +2 -2
  68. package/ts/types/Enum/BalanceSheet.ts +1 -1
  69. package/ts/types/Enum/CommercialGrade.ts +26 -0
  70. package/ts/types/Enum/Office.ts +1 -0
  71. package/ts/types/Enum/Role.ts +2 -2
  72. package/ts/types/Enum/TimeRecorderLocation.ts +9 -0
  73. package/ts/types/Interface/api/commercial/QueryPaginatedNewProspect.ts +35 -0
  74. package/ts/types/Interface/api/timeRecorder/UpdateRecorder.ts +14 -2
  75. package/ts/types/Interface/models/ITimeRecorder.ts +1 -0
  76. package/ts/types/Interface/models/IUser.ts +1 -0
  77. package/ts/types/index.ts +3 -0
@@ -15,4 +15,5 @@ export const Office = {
15
15
  id: 4,
16
16
  name: 'Epinal',
17
17
  },
18
+ // WARNING: used in TimeRecorderLocation (HOME_OFFICE.id = 5)
18
19
  };
@@ -31,9 +31,9 @@ export enum Role {
31
31
  PARTNERED_ACCOUNTANT = 36,
32
32
  SDR = 37,
33
33
  FORECAST_MANAGER = 38,
34
- TERMINATION_MANAGER = 39,
34
+ // TERMINATION_MANAGER = 39,
35
35
  EXPRESS_MANAGER = 40,
36
- CONFLICT_MANAGER = 41,
36
+ // CONFLICT_MANAGER = 41,
37
37
  ATTESTATION_MANAGER = 42,
38
38
  JURIDICAL_SUPPORT = 43,
39
39
  INTERN = 44,
@@ -0,0 +1,9 @@
1
+ import { Office } from './Office';
2
+
3
+ export const TimeRecorderLocation = {
4
+ ...Office,
5
+ HOME_OFFICE: {
6
+ id: 5,
7
+ name: 'Télétravail',
8
+ },
9
+ };
@@ -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
+ }
@@ -1,5 +1,7 @@
1
- import { IsString, IsDateString, IsNumber } from 'class-validator';
2
- import { ApiProperty } from '../../../../utils';
1
+ import {
2
+ IsString, IsDateString, IsNumber, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
5
 
4
6
  export class UpdateRecorder {
5
7
  @ApiProperty()
@@ -10,4 +12,14 @@ export class UpdateRecorder {
10
12
  @ApiProperty()
11
13
  @IsNumber()
12
14
  idUser: number;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsOptional()
18
+ @IsString()
19
+ endTime?: string;
20
+
21
+ @ApiPropertyOptional()
22
+ @IsOptional()
23
+ @IsNumber()
24
+ location?: number;
13
25
  }
@@ -4,6 +4,7 @@ export interface ITimeRecorder {
4
4
  date: Date;
5
5
  startTime?: string | null;
6
6
  endTime?: string | null;
7
+ location?: number | null;
7
8
  idUser: number;
8
9
  createdAt?: Date | null;
9
10
  updatedAt?: Date | null;
@@ -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';
@@ -347,6 +348,7 @@ export * from './Enum/RoleDetail';
347
348
  export * from './Enum/Office';
348
349
  export * from './Enum/PrestationOption';
349
350
  export * from './Enum/TimeCounterType';
351
+ export * from './Enum/TimeRecorderLocation';
350
352
  export * from './Enum/MailAuto';
351
353
  export * from './Enum/MailAddressType';
352
354
  export * from './Enum/Simulation';
@@ -536,6 +538,7 @@ export * from './Interface/api/society/LegalFormSiren';
536
538
  export * from './Interface/api/society/SocietyWithStatsCaParams';
537
539
  export * from './Interface/api/society/QuerySociety';
538
540
  export * from './Interface/api/society/QueryPaginatedSociety';
541
+ export * from './Interface/api/commercial/QueryPaginatedNewProspect';
539
542
  export * from './Interface/api/commercial/QueryPaginatedSocietyWithStatsCa';
540
543
  export * from './Interface/api/facturation/QueryPaginatedSocietyWithFacturation';
541
544
  export * from './Interface/api/billingHistory/QueryPaginatedBillingHistory';