@silexpert/core 1.1.171 → 1.1.173

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 (92) hide show
  1. package/dist/cjs/api/resources/Notion.d.ts +10 -0
  2. package/dist/cjs/api/resources/Notion.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/Notion.js +20 -0
  4. package/dist/cjs/api/resources/Notion.js.map +1 -0
  5. package/dist/cjs/api/resources/TimeTracking.d.ts +7 -0
  6. package/dist/cjs/api/resources/TimeTracking.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/TimeTracking.js +27 -0
  8. package/dist/cjs/api/resources/TimeTracking.js.map +1 -0
  9. package/dist/cjs/api/resources.d.ts +4 -0
  10. package/dist/cjs/api/resources.d.ts.map +1 -1
  11. package/dist/cjs/api/resources.js +4 -0
  12. package/dist/cjs/api/resources.js.map +1 -1
  13. package/dist/cjs/types/Enum/BrandClementine.js +9 -9
  14. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  15. package/dist/cjs/types/Enum/BrandStatutsExpress.d.ts +4 -0
  16. package/dist/cjs/types/Enum/BrandStatutsExpress.d.ts.map +1 -1
  17. package/dist/cjs/types/Enum/BrandStatutsExpress.js +4 -0
  18. package/dist/cjs/types/Enum/BrandStatutsExpress.js.map +1 -1
  19. package/dist/cjs/types/Enum/TimeTrackingSource.d.ts +5 -0
  20. package/dist/cjs/types/Enum/TimeTrackingSource.d.ts.map +1 -0
  21. package/dist/cjs/types/Enum/TimeTrackingSource.js +9 -0
  22. package/dist/cjs/types/Enum/TimeTrackingSource.js.map +1 -0
  23. package/dist/cjs/types/Interface/api/prestashop/PSObject.d.ts +1 -1
  24. package/dist/cjs/types/Interface/api/prestashop/PSObject.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/prestashop/PSObject.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/timeTracking/Create.d.ts +8 -0
  27. package/dist/cjs/types/Interface/api/timeTracking/Create.d.ts.map +1 -0
  28. package/dist/cjs/types/Interface/api/timeTracking/Create.js +41 -0
  29. package/dist/cjs/types/Interface/api/timeTracking/Create.js.map +1 -0
  30. package/dist/cjs/types/Interface/api/timeTracking/Query.d.ts +5 -0
  31. package/dist/cjs/types/Interface/api/timeTracking/Query.d.ts.map +1 -0
  32. package/dist/cjs/types/Interface/api/timeTracking/Query.js +28 -0
  33. package/dist/cjs/types/Interface/api/timeTracking/Query.js.map +1 -0
  34. package/dist/cjs/types/Interface/models/ITimeTracking.d.ts +2 -2
  35. package/dist/cjs/types/Interface/models/ITimeTracking.d.ts.map +1 -1
  36. package/dist/cjs/types/Interface/models/ITimeTracking.js.map +1 -1
  37. package/dist/cjs/types/index.d.ts +3 -0
  38. package/dist/cjs/types/index.d.ts.map +1 -1
  39. package/dist/cjs/types/index.js +3 -0
  40. package/dist/cjs/types/index.js.map +1 -1
  41. package/dist/mjs/api/resources/Notion.d.ts +10 -0
  42. package/dist/mjs/api/resources/Notion.d.ts.map +1 -0
  43. package/dist/mjs/api/resources/Notion.js +16 -0
  44. package/dist/mjs/api/resources/Notion.js.map +1 -0
  45. package/dist/mjs/api/resources/TimeTracking.d.ts +7 -0
  46. package/dist/mjs/api/resources/TimeTracking.d.ts.map +1 -0
  47. package/dist/mjs/api/resources/TimeTracking.js +10 -0
  48. package/dist/mjs/api/resources/TimeTracking.js.map +1 -0
  49. package/dist/mjs/api/resources.d.ts +4 -0
  50. package/dist/mjs/api/resources.d.ts.map +1 -1
  51. package/dist/mjs/api/resources.js +4 -0
  52. package/dist/mjs/api/resources.js.map +1 -1
  53. package/dist/mjs/types/Enum/BrandClementine.js +9 -9
  54. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  55. package/dist/mjs/types/Enum/BrandStatutsExpress.d.ts +4 -0
  56. package/dist/mjs/types/Enum/BrandStatutsExpress.d.ts.map +1 -1
  57. package/dist/mjs/types/Enum/BrandStatutsExpress.js +4 -0
  58. package/dist/mjs/types/Enum/BrandStatutsExpress.js.map +1 -1
  59. package/dist/mjs/types/Enum/TimeTrackingSource.d.ts +5 -0
  60. package/dist/mjs/types/Enum/TimeTrackingSource.d.ts.map +1 -0
  61. package/dist/mjs/types/Enum/TimeTrackingSource.js +6 -0
  62. package/dist/mjs/types/Enum/TimeTrackingSource.js.map +1 -0
  63. package/dist/mjs/types/Interface/api/prestashop/PSObject.d.ts +1 -1
  64. package/dist/mjs/types/Interface/api/prestashop/PSObject.d.ts.map +1 -1
  65. package/dist/mjs/types/Interface/api/prestashop/PSObject.js.map +1 -1
  66. package/dist/mjs/types/Interface/api/timeTracking/Create.d.ts +8 -0
  67. package/dist/mjs/types/Interface/api/timeTracking/Create.d.ts.map +1 -0
  68. package/dist/mjs/types/Interface/api/timeTracking/Create.js +41 -0
  69. package/dist/mjs/types/Interface/api/timeTracking/Create.js.map +1 -0
  70. package/dist/mjs/types/Interface/api/timeTracking/Query.d.ts +5 -0
  71. package/dist/mjs/types/Interface/api/timeTracking/Query.d.ts.map +1 -0
  72. package/dist/mjs/types/Interface/api/timeTracking/Query.js +26 -0
  73. package/dist/mjs/types/Interface/api/timeTracking/Query.js.map +1 -0
  74. package/dist/mjs/types/Interface/models/ITimeTracking.d.ts +2 -2
  75. package/dist/mjs/types/Interface/models/ITimeTracking.d.ts.map +1 -1
  76. package/dist/mjs/types/Interface/models/ITimeTracking.js.map +1 -1
  77. package/dist/mjs/types/index.d.ts +3 -0
  78. package/dist/mjs/types/index.d.ts.map +1 -1
  79. package/dist/mjs/types/index.js +3 -0
  80. package/dist/mjs/types/index.js.map +1 -1
  81. package/package.json +1 -1
  82. package/ts/api/resources/Notion.ts +19 -0
  83. package/ts/api/resources/TimeTracking.ts +11 -0
  84. package/ts/api/resources.ts +4 -0
  85. package/ts/types/Enum/BrandClementine.ts +9 -9
  86. package/ts/types/Enum/BrandStatutsExpress.ts +4 -0
  87. package/ts/types/Enum/TimeTrackingSource.ts +4 -0
  88. package/ts/types/Interface/api/prestashop/PSObject.ts +1 -1
  89. package/ts/types/Interface/api/timeTracking/Create.ts +23 -0
  90. package/ts/types/Interface/api/timeTracking/Query.ts +12 -0
  91. package/ts/types/Interface/models/ITimeTracking.ts +2 -2
  92. package/ts/types/index.ts +4 -1
@@ -513,28 +513,28 @@ export const BrandClementine = [
513
513
  name: 'page_intro',
514
514
  needBgImage: true,
515
515
  versionable: false,
516
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
516
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL_KLEMS],
517
517
  },
518
518
  {
519
519
  label: 'Page chiffres',
520
520
  name: 'page_numbers',
521
521
  needBgImage: true,
522
522
  versionable: false,
523
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
523
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL_KLEMS],
524
524
  },
525
525
  {
526
526
  label: 'Page simplifié',
527
527
  name: 'page_simplified',
528
528
  needBgImage: true,
529
529
  versionable: false,
530
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
530
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL_KLEMS],
531
531
  },
532
532
  {
533
533
  label: 'Détail de la lettre de mission',
534
534
  name: 'page_detail_ldm',
535
535
  needBgImage: false,
536
536
  versionable: false,
537
- idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS].includes(p.id!)).map(({ id }) => id), // Prestations non express
537
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.BILAN_PREVISIONNEL_KLEMS].includes(p.id!)).map(({ id }) => id), // Prestations non express
538
538
  },
539
539
  {
540
540
  label: 'Détail de la lettre de mission (express)',
@@ -624,35 +624,35 @@ export const BrandClementine = [
624
624
  label: 'Signature',
625
625
  name: 'bloc_sign',
626
626
  needBgImage: false,
627
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
627
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL_KLEMS],
628
628
  versionable: false,
629
629
  },
630
630
  {
631
631
  label: 'Conditions Générals de Vente (CGV) 1/2',
632
632
  name: 'bloc_cgv_first',
633
633
  needBgImage: false,
634
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
634
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL_KLEMS],
635
635
  versionable: false,
636
636
  },
637
637
  {
638
638
  label: 'Conditions Générals de Vente (CGV) 2/2',
639
639
  name: 'bloc_cgv_second',
640
640
  needBgImage: false,
641
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
641
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL_KLEMS],
642
642
  versionable: false,
643
643
  },
644
644
  {
645
645
  label: 'Mandat de prélèvement SEPA',
646
646
  name: 'bloc_sepa',
647
647
  needBgImage: false,
648
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
648
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL_KLEMS],
649
649
  versionable: false,
650
650
  },
651
651
  {
652
652
  label: 'Pièces à nous envoyer',
653
653
  name: 'bloc_send_files',
654
654
  needBgImage: false,
655
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
655
+ idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL_KLEMS],
656
656
  versionable: false,
657
657
  },
658
658
  ],
@@ -90,6 +90,10 @@ export const BrandStatutsExpress = [
90
90
  id: 1,
91
91
  name: 'Laxou',
92
92
  },
93
+ MARSEILLE: {
94
+ id: 3,
95
+ name: 'Marseille',
96
+ },
93
97
  HOME_OFFICE: {
94
98
  id: 5,
95
99
  name: 'Télétravail',
@@ -0,0 +1,4 @@
1
+ export enum TimeTrackingSource {
2
+ CLEMENTINIER = 1,
3
+ MYCLE_REVISION = 2,
4
+ }
@@ -1,3 +1,3 @@
1
1
  export interface PSObject {
2
- id: number | null
2
+ id: number | string | null
3
3
  }
@@ -0,0 +1,23 @@
1
+ import { IsBoolean, IsNumber } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+ import { TimeTrackingSource } from '../../../Enum/TimeTrackingSource';
5
+
6
+ export class CreateOrUpdateTimeTracking {
7
+ @ApiProperty()
8
+ @IsBoolean()
9
+ @ToBoolean()
10
+ stopTrigger: boolean;
11
+
12
+ @ApiProperty()
13
+ @IsNumber()
14
+ idExercice: number;
15
+
16
+ @ApiProperty()
17
+ @IsNumber()
18
+ idUser: number;
19
+
20
+ @ApiProperty()
21
+ @IsNumber()
22
+ idTimeTrackingSource: TimeTrackingSource;
23
+ }
@@ -0,0 +1,12 @@
1
+ import { IsNumber } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class QueryTimeTracking {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ idExercice: number;
8
+
9
+ @ApiProperty()
10
+ @IsNumber()
11
+ idUser: number;
12
+ }
@@ -9,7 +9,7 @@ export interface ITimeTracking {
9
9
  dateStart: Date;
10
10
  dateEnd: Date;
11
11
  duration: number;
12
- idTimeTrakingSource: number;
12
+ idTimeTrackingSource: number;
13
13
  idUser: number;
14
14
  idSociety: number;
15
15
  idExercice: number;
@@ -20,5 +20,5 @@ export interface ITimeTracking {
20
20
  society: ISociety;
21
21
  user: IUser;
22
22
  exercice: IExercice;
23
- timeTrakingSource: ITimeTrackingSource;
23
+ timeTrackingSource: ITimeTrackingSource;
24
24
  }
package/ts/types/index.ts CHANGED
@@ -502,6 +502,7 @@ export * from './Enum/MissionAcceptation';
502
502
  export * from './Enum/Bank';
503
503
  export * from './Enum/VatControl';
504
504
  export * from './Enum/Cycle';
505
+ export * from './Enum/TimeTrackingSource';
505
506
 
506
507
  // Interfaces API
507
508
  export * from './Interface/api/cashAndExpense/Query';
@@ -1006,4 +1007,6 @@ export * from './Interface/api/partners/QueryPartnerStatistic';
1006
1007
  export * from './Interface/api/partners/QueryPartnerCsv';
1007
1008
  export * from './Interface/api/partners/PartnerStatisticType';
1008
1009
  export * from './Interface/api/dubiousCustomer/Create';
1009
- export * from './Interface/api/dubiousCustomer/Update';
1010
+ export * from './Interface/api/dubiousCustomer/Update';
1011
+ export * from './Interface/api/timeTracking/Create';
1012
+ export * from './Interface/api/timeTracking/Query';