@silexpert/core 1.1.149 → 1.1.151

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 (86) hide show
  1. package/dist/cjs/api/resources/AccountingFiles.js +2 -2
  2. package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
  3. package/dist/cjs/api/resources/Revision.d.ts +2 -1
  4. package/dist/cjs/api/resources/Revision.d.ts.map +1 -1
  5. package/dist/cjs/api/resources/Revision.js +10 -2
  6. package/dist/cjs/api/resources/Revision.js.map +1 -1
  7. package/dist/cjs/api/resources/SocietyConfigBalanceSheet.d.ts +2 -2
  8. package/dist/cjs/api/resources/SocietyConfigBalanceSheet.d.ts.map +1 -1
  9. package/dist/cjs/api/resources/SocietyConfigBalanceSheet.js.map +1 -1
  10. package/dist/cjs/types/Enum/BrandPourcentage.d.ts +9 -1
  11. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  12. package/dist/cjs/types/Enum/BrandPourcentage.js +5 -3
  13. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  14. package/dist/cjs/types/Enum/Ged.js +1 -1
  15. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  16. package/dist/cjs/types/Enum/Proceding.d.ts +8 -0
  17. package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/Proceding.js +8 -0
  19. package/dist/cjs/types/Enum/Proceding.js.map +1 -1
  20. package/dist/cjs/types/Enum/ReportType.d.ts +8 -0
  21. package/dist/cjs/types/Enum/ReportType.d.ts.map +1 -1
  22. package/dist/cjs/types/Enum/ReportType.js +8 -0
  23. package/dist/cjs/types/Enum/ReportType.js.map +1 -1
  24. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -1
  25. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  26. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  27. package/dist/cjs/types/Interface/api/revision/Create.d.ts +6 -4
  28. package/dist/cjs/types/Interface/api/revision/Create.d.ts.map +1 -1
  29. package/dist/cjs/types/Interface/api/revision/Create.js +24 -18
  30. package/dist/cjs/types/Interface/api/revision/Create.js.map +1 -1
  31. package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.d.ts +2 -0
  32. package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.d.ts.map +1 -1
  33. package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.js +13 -0
  34. package/dist/cjs/types/Interface/api/shine/CreateShineTransactions.js.map +1 -1
  35. package/dist/cjs/types/Interface/models/ISupervisionPersonalAccountantNote.d.ts +2 -2
  36. package/dist/cjs/types/Interface/models/ISupervisionPersonalAccountantNote.d.ts.map +1 -1
  37. package/dist/cjs/types/Interface/models/ISupervisionPersonalAccountantNote.js.map +1 -1
  38. package/dist/mjs/api/resources/AccountingFiles.js +2 -2
  39. package/dist/mjs/api/resources/AccountingFiles.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/api/resources/SocietyConfigBalanceSheet.d.ts +2 -2
  45. package/dist/mjs/api/resources/SocietyConfigBalanceSheet.d.ts.map +1 -1
  46. package/dist/mjs/api/resources/SocietyConfigBalanceSheet.js.map +1 -1
  47. package/dist/mjs/types/Enum/BrandPourcentage.d.ts +9 -1
  48. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  49. package/dist/mjs/types/Enum/BrandPourcentage.js +5 -3
  50. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  51. package/dist/mjs/types/Enum/Ged.js +1 -1
  52. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  53. package/dist/mjs/types/Enum/Proceding.d.ts +8 -0
  54. package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
  55. package/dist/mjs/types/Enum/Proceding.js +8 -0
  56. package/dist/mjs/types/Enum/Proceding.js.map +1 -1
  57. package/dist/mjs/types/Enum/ReportType.d.ts +8 -0
  58. package/dist/mjs/types/Enum/ReportType.d.ts.map +1 -1
  59. package/dist/mjs/types/Enum/ReportType.js +8 -0
  60. package/dist/mjs/types/Enum/ReportType.js.map +1 -1
  61. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -1
  62. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  63. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.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/api/shine/CreateShineTransactions.d.ts +2 -0
  69. package/dist/mjs/types/Interface/api/shine/CreateShineTransactions.d.ts.map +1 -1
  70. package/dist/mjs/types/Interface/api/shine/CreateShineTransactions.js +16 -1
  71. package/dist/mjs/types/Interface/api/shine/CreateShineTransactions.js.map +1 -1
  72. package/dist/mjs/types/Interface/models/ISupervisionPersonalAccountantNote.d.ts +2 -2
  73. package/dist/mjs/types/Interface/models/ISupervisionPersonalAccountantNote.d.ts.map +1 -1
  74. package/dist/mjs/types/Interface/models/ISupervisionPersonalAccountantNote.js.map +1 -1
  75. package/package.json +1 -1
  76. package/ts/api/resources/AccountingFiles.ts +2 -2
  77. package/ts/api/resources/Revision.ts +12 -3
  78. package/ts/api/resources/SocietyConfigBalanceSheet.ts +2 -2
  79. package/ts/types/Enum/BrandPourcentage.ts +5 -3
  80. package/ts/types/Enum/Ged.ts +1 -1
  81. package/ts/types/Enum/Proceding.ts +8 -0
  82. package/ts/types/Enum/ReportType.ts +8 -0
  83. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +1 -1
  84. package/ts/types/Interface/api/revision/Create.ts +19 -14
  85. package/ts/types/Interface/api/shine/CreateShineTransactions.ts +12 -1
  86. package/ts/types/Interface/models/ISupervisionPersonalAccountantNote.ts +2 -2
@@ -7,12 +7,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { ApiProperty } from '../../../../utils';
10
+ import { IsDate, IsOptional } from 'class-validator';
11
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
11
12
  export class CreateShineTransactions {
12
13
  idBankAccount;
14
+ startDate;
15
+ endDate;
13
16
  }
14
17
  __decorate([
15
18
  ApiProperty(),
16
19
  __metadata("design:type", Number)
17
20
  ], CreateShineTransactions.prototype, "idBankAccount", void 0);
21
+ __decorate([
22
+ ApiPropertyOptional(),
23
+ IsDate(),
24
+ IsOptional(),
25
+ __metadata("design:type", Date)
26
+ ], CreateShineTransactions.prototype, "startDate", void 0);
27
+ __decorate([
28
+ ApiPropertyOptional(),
29
+ IsDate(),
30
+ IsOptional(),
31
+ __metadata("design:type", Date)
32
+ ], CreateShineTransactions.prototype, "endDate", void 0);
18
33
  //# sourceMappingURL=CreateShineTransactions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateShineTransactions.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/CreateShineTransactions.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,uBAAuB;IAEhC,aAAa,CAAS;CACzB;AAFC;IAAC,WAAW,EAAE;;8DACU","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class CreateShineTransactions {\n @ApiProperty()\n idBankAccount: number;\n}"]}
1
+ {"version":3,"file":"CreateShineTransactions.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/shine/CreateShineTransactions.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,uBAAuB;IAEhC,aAAa,CAAS;IAKtB,SAAS,CAAQ;IAKjB,OAAO,CAAQ;CAClB;AAZC;IAAC,WAAW,EAAE;;8DACU;AAExB;IAAC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACC,IAAI;0DAAC;AAEnB;IAAC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACD,IAAI;wDAAC","sourcesContent":["import { IsDate, IsOptional } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class CreateShineTransactions {\n @ApiProperty()\n idBankAccount: number;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}"]}
@@ -1,10 +1,10 @@
1
- import { ICycle, ISupervision, IUser } from '../..';
1
+ import { Cycle, ICycle, ISupervision, IUser } from '../..';
2
2
  export interface ISupervisionPersonalAccountantNote {
3
3
  id?: number;
4
4
  note: string;
5
5
  idUser: number;
6
6
  idSupervision: number;
7
- idCycle: number;
7
+ idCycle: Cycle;
8
8
  createdAt?: Date | null;
9
9
  updatedAt?: Date | null;
10
10
  user: IUser;
@@ -1 +1 @@
1
- {"version":3,"file":"ISupervisionPersonalAccountantNote.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISupervisionPersonalAccountantNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAEpD,MAAM,WAAW,kCAAkC;IACjD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,IAAI,EAAE,KAAK,CAAC;IACZ,WAAW,EAAE,YAAY,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"ISupervisionPersonalAccountantNote.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISupervisionPersonalAccountantNote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,kCAAkC;IACjD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,KAAK,CAAC;IACf,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,IAAI,EAAE,KAAK,CAAC;IACZ,WAAW,EAAE,YAAY,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"ISupervisionPersonalAccountantNote.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISupervisionPersonalAccountantNote.ts"],"names":[],"mappings":"","sourcesContent":["import { ICycle, ISupervision, IUser } from '../..';\n\nexport interface ISupervisionPersonalAccountantNote {\n id?: number;\n note: string;\n idUser: number;\n idSupervision: number;\n idCycle: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n user: IUser;\n supervision: ISupervision;\n cycle: ICycle;\n}"]}
1
+ {"version":3,"file":"ISupervisionPersonalAccountantNote.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/ISupervisionPersonalAccountantNote.ts"],"names":[],"mappings":"","sourcesContent":["import { Cycle, ICycle, ISupervision, IUser } from '../..';\n\nexport interface ISupervisionPersonalAccountantNote {\n id?: number;\n note: string;\n idUser: number;\n idSupervision: number;\n idCycle: Cycle;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n user: IUser;\n supervision: ISupervision;\n cycle: ICycle;\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.149",
3
+ "version": "1.1.151",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@ export class AccountingFiles extends Resource {
25
25
  createCashBasedAccountingFiles(params: QueryAccountingFilesV2) : Promise<IAccountingFile[]> {
26
26
  const formData = new FormData();
27
27
  Object.entries(params).forEach(([key, value]) => {
28
- if (value || value === 0) {
28
+ if (value || value === false || value === 0) {
29
29
  if (key === 'files') {
30
30
  value.forEach((file: File) => {
31
31
  formData.append('files', file);
@@ -41,7 +41,7 @@ export class AccountingFiles extends Resource {
41
41
  createAccrualAccountingFile(params: QueryAccountingFilesV2) : Promise<ReadFormattedAccountingTransaction[]> {
42
42
  const formData = new FormData();
43
43
  Object.entries(params).forEach(([key, value]) => {
44
- if (value || value === 0) {
44
+ if (value || value === false || value === 0) {
45
45
  if (key === 'files') {
46
46
  value.forEach((file: File) => {
47
47
  formData.append('files', file);
@@ -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
  }
@@ -17,11 +17,11 @@ export class SocietyConfigBalanceSheet extends Resource {
17
17
  return this.axios.$post(`/societies/${id}/asked-documents/settings`, payload);
18
18
  }
19
19
 
20
- public getAll(id: number, params: QueryGetAllSocietyConfigBalanceSheet): Promise<SocietyConfigBalanceSheet[]> {
20
+ public getAll(id: number, params: QueryGetAllSocietyConfigBalanceSheet): Promise<ISocietyConfigBalanceSheet[]> {
21
21
  return this.axios.$get(`/societies/${id}/balance-sheets/settings/list`, { params });
22
22
  }
23
23
 
24
- public update(idSociety: number, id: number, payload: Partial<ISocietyConfigBalanceSheet>): Promise<SocietyConfigBalanceSheet> {
24
+ public update(idSociety: number, id: number, payload: Partial<ISocietyConfigBalanceSheet>): Promise<ISocietyConfigBalanceSheet> {
25
25
  return this.axios.$put(`/societies/${idSociety}/balance-sheets/settings/${id}`, payload);
26
26
  }
27
27
 
@@ -156,21 +156,22 @@ export const BrandPourcentage = [
156
156
  name: 'bloc_compta_pourcentage',
157
157
  needBgImage: false,
158
158
  versionable: false,
159
- idPrestationType: [],
159
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS],
160
160
  },
161
161
  {
162
162
  label: 'Compta Pourcentage sur mesure',
163
163
  name: 'bloc_compta_pourcentage_sur_mesure',
164
164
  needBgImage: false,
165
165
  versionable: false,
166
- idPrestationType: [PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS],
166
+ idPrestationType: [],
167
167
  },
168
168
  {
169
169
  label: 'Compta Pourcentage Premium',
170
170
  name: 'bloc_compta_pourcentage_premium',
171
171
  needBgImage: false,
172
172
  versionable: false,
173
- idPrestationType: [],
173
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
174
+ condition: (turnover: number): boolean => turnover < 1500000,
174
175
  },
175
176
  {
176
177
  label: 'Compta Pourcentage Premium sur mesure',
@@ -178,6 +179,7 @@ export const BrandPourcentage = [
178
179
  needBgImage: false,
179
180
  versionable: false,
180
181
  idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
182
+ condition: (turnover: number): boolean => turnover >= 1500000,
181
183
  },
182
184
  {
183
185
  label: 'Forfait social',
@@ -254,7 +254,7 @@ export const GedFileTypeDetail = {
254
254
  },
255
255
  FISCAL_BUNDLE: {
256
256
  id: GedFileType.FISCAL_BUNDLE,
257
- name: 'Liasse fiscale N-1',
257
+ name: 'Document Comptable N-1',
258
258
  },
259
259
  };
260
260
 
@@ -31,4 +31,12 @@ export const Proceding = {
31
31
  id: 8,
32
32
  name: 'Liquidation EI',
33
33
  },
34
+ FISCAL_CONTROL: {
35
+ id: 9,
36
+ name: 'Contrôle fiscal',
37
+ },
38
+ REDRESSEMENT: {
39
+ id: 10,
40
+ name: 'Redressement',
41
+ },
34
42
  };
@@ -31,4 +31,12 @@ export const ReportType = {
31
31
  id: 8,
32
32
  name: 'Client mécontent',
33
33
  },
34
+ FISCAL_CONTROL: {
35
+ id: 9,
36
+ name: 'Contrôle fiscal en cours',
37
+ },
38
+ REDRESSEMENT: {
39
+ id: 10,
40
+ name: 'Redressement',
41
+ },
34
42
  };
@@ -29,5 +29,5 @@ export class QueryAccountingFilesV2 extends QueryAccountingFiles {
29
29
  idSociety: number;
30
30
 
31
31
  @ApiPropertyOptional()
32
- idAccountingTransaction: number;
32
+ idAccountingTransaction?: number;
33
33
  }
@@ -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,6 +1,17 @@
1
- import { ApiProperty } from '../../../../utils';
1
+ import { IsDate, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
3
 
3
4
  export class CreateShineTransactions {
4
5
  @ApiProperty()
5
6
  idBankAccount: number;
7
+
8
+ @ApiPropertyOptional()
9
+ @IsDate()
10
+ @IsOptional()
11
+ startDate?: Date;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsDate()
15
+ @IsOptional()
16
+ endDate?: Date;
6
17
  }
@@ -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