@silexpert/core 1.1.150 → 1.1.152

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 (80) hide show
  1. package/dist/cjs/api/resources/Facturation.d.ts +3 -1
  2. package/dist/cjs/api/resources/Facturation.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Facturation.js +8 -0
  4. package/dist/cjs/api/resources/Facturation.js.map +1 -1
  5. package/dist/cjs/api/resources/Revision.d.ts +2 -1
  6. package/dist/cjs/api/resources/Revision.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Revision.js +10 -2
  8. package/dist/cjs/api/resources/Revision.js.map +1 -1
  9. package/dist/cjs/types/Enum/BrandClementine.d.ts +2 -0
  10. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  11. package/dist/cjs/types/Enum/BrandClementine.js +1 -0
  12. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  13. package/dist/cjs/types/Enum/BrandComptalib.d.ts +3 -0
  14. package/dist/cjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/BrandComptalib.js +1 -0
  16. package/dist/cjs/types/Enum/BrandComptalib.js.map +1 -1
  17. package/dist/cjs/types/Enum/BrandLegalstart.d.ts +1 -0
  18. package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/BrandLegalstart.js +1 -0
  20. package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
  21. package/dist/cjs/types/Enum/BrandPourcentage.d.ts +92 -0
  22. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/BrandPourcentage.js +1 -0
  24. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  25. package/dist/cjs/types/Interface/api/facturation/Query.d.ts +6 -0
  26. package/dist/cjs/types/Interface/api/facturation/Query.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/api/facturation/Query.js +22 -1
  28. package/dist/cjs/types/Interface/api/facturation/Query.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/revision/Create.d.ts +6 -4
  30. package/dist/cjs/types/Interface/api/revision/Create.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/revision/Create.js +24 -18
  32. package/dist/cjs/types/Interface/api/revision/Create.js.map +1 -1
  33. package/dist/cjs/types/Interface/models/ISupervisionPersonalAccountantNote.d.ts +2 -2
  34. package/dist/cjs/types/Interface/models/ISupervisionPersonalAccountantNote.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/models/ISupervisionPersonalAccountantNote.js.map +1 -1
  36. package/dist/mjs/api/resources/Facturation.d.ts +3 -1
  37. package/dist/mjs/api/resources/Facturation.d.ts.map +1 -1
  38. package/dist/mjs/api/resources/Facturation.js +8 -0
  39. package/dist/mjs/api/resources/Facturation.js.map +1 -1
  40. package/dist/mjs/api/resources/Revision.d.ts +2 -1
  41. package/dist/mjs/api/resources/Revision.d.ts.map +1 -1
  42. package/dist/mjs/api/resources/Revision.js +10 -2
  43. package/dist/mjs/api/resources/Revision.js.map +1 -1
  44. package/dist/mjs/types/Enum/BrandClementine.d.ts +2 -0
  45. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  46. package/dist/mjs/types/Enum/BrandClementine.js +1 -0
  47. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  48. package/dist/mjs/types/Enum/BrandComptalib.d.ts +3 -0
  49. package/dist/mjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  50. package/dist/mjs/types/Enum/BrandComptalib.js +1 -0
  51. package/dist/mjs/types/Enum/BrandComptalib.js.map +1 -1
  52. package/dist/mjs/types/Enum/BrandLegalstart.d.ts +1 -0
  53. package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  54. package/dist/mjs/types/Enum/BrandLegalstart.js +1 -0
  55. package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
  56. package/dist/mjs/types/Enum/BrandPourcentage.d.ts +92 -0
  57. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  58. package/dist/mjs/types/Enum/BrandPourcentage.js +1 -0
  59. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  60. package/dist/mjs/types/Interface/api/facturation/Query.d.ts +6 -0
  61. package/dist/mjs/types/Interface/api/facturation/Query.d.ts.map +1 -1
  62. package/dist/mjs/types/Interface/api/facturation/Query.js +26 -2
  63. package/dist/mjs/types/Interface/api/facturation/Query.js.map +1 -1
  64. package/dist/mjs/types/Interface/api/revision/Create.d.ts +6 -4
  65. package/dist/mjs/types/Interface/api/revision/Create.d.ts.map +1 -1
  66. package/dist/mjs/types/Interface/api/revision/Create.js +25 -20
  67. package/dist/mjs/types/Interface/api/revision/Create.js.map +1 -1
  68. package/dist/mjs/types/Interface/models/ISupervisionPersonalAccountantNote.d.ts +2 -2
  69. package/dist/mjs/types/Interface/models/ISupervisionPersonalAccountantNote.d.ts.map +1 -1
  70. package/dist/mjs/types/Interface/models/ISupervisionPersonalAccountantNote.js.map +1 -1
  71. package/package.json +1 -1
  72. package/ts/api/resources/Facturation.ts +10 -1
  73. package/ts/api/resources/Revision.ts +12 -3
  74. package/ts/types/Enum/BrandClementine.ts +1 -0
  75. package/ts/types/Enum/BrandComptalib.ts +1 -0
  76. package/ts/types/Enum/BrandLegalstart.ts +1 -0
  77. package/ts/types/Enum/BrandPourcentage.ts +1 -0
  78. package/ts/types/Interface/api/facturation/Query.ts +19 -2
  79. package/ts/types/Interface/api/revision/Create.ts +19 -14
  80. package/ts/types/Interface/models/ISupervisionPersonalAccountantNote.ts +2 -2
@@ -8,7 +8,7 @@ import {
8
8
  QueryRevisionPaginate,
9
9
  IAccountingTransaction,
10
10
  QueryRevisionApprobation,
11
- QueryRevisionAccountComment, IAccountDetail, ICycle, QueryRevisionPendingPoint, ISupervisionPendingPoint, QueryRevisionGenericPendingPoint, CreateOrUpdateState, ISupervisionPendingPointReply, CreateReply, CreatePersonalNote, ISupervisionPersonalAccountantNote, UpdatePersonalNote, GetPersonalNoteForPeriod, ISupervision, QuerySupervision, CreateSupervisionNoteFile, GetNote, IGedFile,
11
+ QueryRevisionAccountComment, IAccountDetail, ICycle, QueryRevisionPendingPoint, ISupervisionPendingPoint, QueryRevisionGenericPendingPoint, CreateOrUpdateState, ISupervisionPendingPointReply, CreateReply, CreatePersonalNote, ISupervisionPersonalAccountantNote, UpdatePersonalNote, GetPersonalNoteForPeriod, ISupervision, QuerySupervision, CreateSupervisionNoteFile, GetNote, IGedFile, CreateSummaryDocument,
12
12
  } from '../..';
13
13
 
14
14
  export class Revision extends Resource {
@@ -85,11 +85,11 @@ export class Revision extends Resource {
85
85
  }
86
86
 
87
87
  updatePersonalNote(idNote: number, params: UpdatePersonalNote): Promise<ISupervisionPersonalAccountantNote> {
88
- return this.axios.$put(`supervisions/notes/${idNote}`, params);
88
+ return this.axios.$put(`supervisions/personal-notes/${idNote}`, params);
89
89
  }
90
90
 
91
91
  deletePersonalNote(idNote: number):Promise<boolean> {
92
- return this.axios.$delete(`supervisions/notes/${idNote}`);
92
+ return this.axios.$delete(`supervisions/personal-notes/${idNote}`);
93
93
  }
94
94
 
95
95
  createNote(id: number, payload: CreateSupervisionNoteFile): Promise<Buffer> {
@@ -101,6 +101,15 @@ export class Revision extends Resource {
101
101
  });
102
102
  }
103
103
 
104
+ createSummaryDocument(id: number, payload: CreateSummaryDocument): Promise<Buffer> {
105
+ return this.axios.$post(`supervisions/${id}/summary-document/pdf`, payload, {
106
+ responseType: 'arraybuffer',
107
+ headers: {
108
+ Accept: 'application/pdf',
109
+ },
110
+ });
111
+ }
112
+
104
113
  getNote(params: GetNote): Promise<IGedFile> {
105
114
  return this.axios.$get('supervisions/notes', { params });
106
115
  }
@@ -48,6 +48,7 @@ export const BrandClementine = [
48
48
  nomRaisonSociale: 'EXPERTISE CHOIX B',
49
49
  ECName: 'M. Jean-Louis BOICHÉ',
50
50
  ECOrderCity: 'Nancy',
51
+ ECPosition: 'Président',
51
52
  phone: '03 83 93 14 14',
52
53
  postalAddress: '9, avenue du Rhin',
53
54
  rcs: '752 566 687',
@@ -117,6 +117,7 @@ export const BrandComptalib = [
117
117
  nomRaisonSociale: 'POURCENTAGE',
118
118
  ECName: 'M. Jean-Louis BOICHÉ',
119
119
  ECOrderCity: 'Nancy',
120
+ ECPosition: 'Président',
120
121
  phone: '01 86 90 82 15',
121
122
  postalAddress: '30, rue des Mathurins',
122
123
  rcs: '891 501 181',
@@ -42,6 +42,7 @@ export const BrandLegalstart = [
42
42
  nomRaisonSociale: 'EXPERTISE CHOIX B',
43
43
  ECName: 'M. Jean-Louis BOICHÉ',
44
44
  ECOrderCity: 'Nancy',
45
+ ECPosition: 'Président',
45
46
  phone: '03 83 93 14 14',
46
47
  postalAddress: '9, avenue du Rhin',
47
48
  rcs: '752 566 687',
@@ -323,6 +323,7 @@ export const BrandPourcentage = [
323
323
  nomRaisonSociale: 'SOFRAGECO',
324
324
  ECName: 'M. Jean-Louis BOICHÉ',
325
325
  ECOrderCity: 'Nancy',
326
+ ECPosition: 'Président',
326
327
  phone: '01 48 58 29 45',
327
328
  postalAddress: '72 AVENUE PASTEUR',
328
329
  rcs: '345 081 996 R.C.S. Bobigny',
@@ -1,7 +1,7 @@
1
1
  import {
2
- IsInt, IsOptional, IsString,
2
+ IsInt, IsNumber, IsOptional, IsString,
3
3
  } from 'class-validator';
4
- import { ApiPropertyOptional } from '../../../../utils';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
5
  import { OptionalQueryPaginate } from '../BasePaginate';
6
6
 
7
7
  export class QueryPaginatedRebilling extends OptionalQueryPaginate {
@@ -15,3 +15,20 @@ export class QueryPaginatedRebilling extends OptionalQueryPaginate {
15
15
  @IsInt()
16
16
  idUser?: number;
17
17
  }
18
+
19
+ export class CreateRecommanded {
20
+ @ApiProperty()
21
+ @IsNumber()
22
+ idSociety: number;
23
+
24
+ @ApiProperty()
25
+ @IsNumber()
26
+ amount: number;
27
+
28
+ @ApiProperty()
29
+ numberRecommand: string;
30
+
31
+ @ApiProperty()
32
+ dateRecommand: string;
33
+
34
+ }
@@ -150,15 +150,6 @@ export class CreateSupervisionNoteFile {
150
150
  @IsNumber()
151
151
  idExercice: number;
152
152
 
153
- @ApiPropertyOptional()
154
- @IsString()
155
- @IsOptional()
156
- societyName?: string;
157
-
158
- @ApiProperty()
159
- @IsNumber()
160
- idLegalForm: number;
161
-
162
153
  @ApiPropertyOptional()
163
154
  @IsString()
164
155
  @IsOptional()
@@ -168,12 +159,26 @@ export class CreateSupervisionNoteFile {
168
159
  @IsNumber()
169
160
  @IsOptional()
170
161
  freeTextUserId?: number;
162
+
163
+ @ApiPropertyOptional()
164
+ @IsBoolean()
165
+ @ToBoolean()
166
+ @IsOptional()
167
+ isTest?: boolean;
168
+ }
171
169
 
170
+ export class CreateSummaryDocument {
172
171
  @ApiProperty()
173
- @IsDate()
174
- endDate: Date;
175
-
172
+ @IsNumber()
173
+ idSociety: number;
174
+
176
175
  @ApiProperty()
177
- @IsDate()
178
- startDate: Date;
176
+ @IsNumber()
177
+ idExercice: number;
178
+
179
+ @ApiPropertyOptional()
180
+ @IsBoolean()
181
+ @ToBoolean()
182
+ @IsOptional()
183
+ isTest?: boolean;
179
184
  }
@@ -1,11 +1,11 @@
1
- import { ICycle, ISupervision, IUser } from '../..';
1
+ import { Cycle, ICycle, ISupervision, IUser } from '../..';
2
2
 
3
3
  export interface ISupervisionPersonalAccountantNote {
4
4
  id?: number;
5
5
  note: string;
6
6
  idUser: number;
7
7
  idSupervision: number;
8
- idCycle: number;
8
+ idCycle: Cycle;
9
9
  createdAt?: Date | null;
10
10
  updatedAt?: Date | null;
11
11