@silexpert/core 1.1.195 → 1.1.197

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 (127) hide show
  1. package/dist/cjs/api/resources/Authenticate.d.ts +3 -1
  2. package/dist/cjs/api/resources/Authenticate.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Authenticate.js +10 -0
  4. package/dist/cjs/api/resources/Authenticate.js.map +1 -1
  5. package/dist/cjs/api/resources/Exercice.d.ts +2 -1
  6. package/dist/cjs/api/resources/Exercice.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Exercice.js +3 -0
  8. package/dist/cjs/api/resources/Exercice.js.map +1 -1
  9. package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts +2 -2
  10. package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
  12. package/dist/cjs/types/Enum/BrandClementine.d.ts +5 -0
  13. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/BrandClementine.js +1 -0
  15. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  16. package/dist/cjs/types/Enum/BrandComptalib.d.ts +3 -0
  17. package/dist/cjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/BrandComptalib.js +1 -0
  19. package/dist/cjs/types/Enum/BrandComptalib.js.map +1 -1
  20. package/dist/cjs/types/Enum/BrandLegalstart.d.ts +1 -0
  21. package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  22. package/dist/cjs/types/Enum/BrandLegalstart.js +1 -0
  23. package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
  24. package/dist/cjs/types/Enum/PriceGridPourcentage.d.ts.map +1 -1
  25. package/dist/cjs/types/Enum/PriceGridPourcentage.js +132 -12
  26. package/dist/cjs/types/Enum/PriceGridPourcentage.js.map +1 -1
  27. package/dist/cjs/types/Enum/PriceGridStatutsExpress.d.ts +13 -0
  28. package/dist/cjs/types/Enum/PriceGridStatutsExpress.d.ts.map +1 -0
  29. package/dist/cjs/types/Enum/PriceGridStatutsExpress.js +36 -0
  30. package/dist/cjs/types/Enum/PriceGridStatutsExpress.js.map +1 -0
  31. package/dist/cjs/types/Interface/api/authentification/ForgotPassword.d.ts +4 -0
  32. package/dist/cjs/types/Interface/api/authentification/ForgotPassword.d.ts.map +1 -0
  33. package/dist/cjs/types/Interface/api/authentification/ForgotPassword.js +23 -0
  34. package/dist/cjs/types/Interface/api/authentification/ForgotPassword.js.map +1 -0
  35. package/dist/cjs/types/Interface/api/authentification/ResetPassword.d.ts +5 -0
  36. package/dist/cjs/types/Interface/api/authentification/ResetPassword.d.ts.map +1 -0
  37. package/dist/cjs/types/Interface/api/authentification/ResetPassword.js +28 -0
  38. package/dist/cjs/types/Interface/api/authentification/ResetPassword.js.map +1 -0
  39. package/dist/cjs/types/Interface/api/exercice/{CreateExercice.d.ts → Create.d.ts} +12 -1
  40. package/dist/cjs/types/Interface/api/exercice/Create.d.ts.map +1 -0
  41. package/dist/cjs/types/Interface/api/exercice/{CreateExercice.js → Create.js} +57 -2
  42. package/dist/cjs/types/Interface/api/exercice/Create.js.map +1 -0
  43. package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.d.ts +1 -0
  44. package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.d.ts.map +1 -1
  45. package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.js +6 -0
  46. package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.js.map +1 -1
  47. package/dist/cjs/types/index.d.ts +3 -1
  48. package/dist/cjs/types/index.d.ts.map +1 -1
  49. package/dist/cjs/types/index.js +3 -1
  50. package/dist/cjs/types/index.js.map +1 -1
  51. package/dist/cjs/utils/prestation.d.ts +2 -2
  52. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  53. package/dist/cjs/utils/prestation.js +16 -8
  54. package/dist/cjs/utils/prestation.js.map +1 -1
  55. package/dist/mjs/api/resources/Authenticate.d.ts +3 -1
  56. package/dist/mjs/api/resources/Authenticate.d.ts.map +1 -1
  57. package/dist/mjs/api/resources/Authenticate.js +6 -0
  58. package/dist/mjs/api/resources/Authenticate.js.map +1 -1
  59. package/dist/mjs/api/resources/Exercice.d.ts +2 -1
  60. package/dist/mjs/api/resources/Exercice.d.ts.map +1 -1
  61. package/dist/mjs/api/resources/Exercice.js +3 -0
  62. package/dist/mjs/api/resources/Exercice.js.map +1 -1
  63. package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts +2 -2
  64. package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
  65. package/dist/mjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
  66. package/dist/mjs/types/Enum/BrandClementine.d.ts +5 -0
  67. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  68. package/dist/mjs/types/Enum/BrandClementine.js +1 -0
  69. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  70. package/dist/mjs/types/Enum/BrandComptalib.d.ts +3 -0
  71. package/dist/mjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  72. package/dist/mjs/types/Enum/BrandComptalib.js +1 -0
  73. package/dist/mjs/types/Enum/BrandComptalib.js.map +1 -1
  74. package/dist/mjs/types/Enum/BrandLegalstart.d.ts +1 -0
  75. package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  76. package/dist/mjs/types/Enum/BrandLegalstart.js +1 -0
  77. package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
  78. package/dist/mjs/types/Enum/PriceGridPourcentage.d.ts.map +1 -1
  79. package/dist/mjs/types/Enum/PriceGridPourcentage.js +132 -12
  80. package/dist/mjs/types/Enum/PriceGridPourcentage.js.map +1 -1
  81. package/dist/mjs/types/Enum/PriceGridStatutsExpress.d.ts +13 -0
  82. package/dist/mjs/types/Enum/PriceGridStatutsExpress.d.ts.map +1 -0
  83. package/dist/mjs/types/Enum/PriceGridStatutsExpress.js +33 -0
  84. package/dist/mjs/types/Enum/PriceGridStatutsExpress.js.map +1 -0
  85. package/dist/mjs/types/Interface/api/authentification/ForgotPassword.d.ts +4 -0
  86. package/dist/mjs/types/Interface/api/authentification/ForgotPassword.d.ts.map +1 -0
  87. package/dist/mjs/types/Interface/api/authentification/ForgotPassword.js +20 -0
  88. package/dist/mjs/types/Interface/api/authentification/ForgotPassword.js.map +1 -0
  89. package/dist/mjs/types/Interface/api/authentification/ResetPassword.d.ts +5 -0
  90. package/dist/mjs/types/Interface/api/authentification/ResetPassword.d.ts.map +1 -0
  91. package/dist/mjs/types/Interface/api/authentification/ResetPassword.js +26 -0
  92. package/dist/mjs/types/Interface/api/authentification/ResetPassword.js.map +1 -0
  93. package/dist/mjs/types/Interface/api/exercice/{CreateExercice.d.ts → Create.d.ts} +12 -1
  94. package/dist/mjs/types/Interface/api/exercice/Create.d.ts.map +1 -0
  95. package/dist/mjs/types/Interface/api/exercice/{CreateExercice.js → Create.js} +65 -2
  96. package/dist/mjs/types/Interface/api/exercice/Create.js.map +1 -0
  97. package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.d.ts +1 -0
  98. package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.d.ts.map +1 -1
  99. package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.js +8 -1
  100. package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.js.map +1 -1
  101. package/dist/mjs/types/index.d.ts +3 -1
  102. package/dist/mjs/types/index.d.ts.map +1 -1
  103. package/dist/mjs/types/index.js +3 -1
  104. package/dist/mjs/types/index.js.map +1 -1
  105. package/dist/mjs/utils/prestation.d.ts +2 -2
  106. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  107. package/dist/mjs/utils/prestation.js +13 -5
  108. package/dist/mjs/utils/prestation.js.map +1 -1
  109. package/package.json +1 -1
  110. package/ts/api/resources/Authenticate.ts +9 -1
  111. package/ts/api/resources/Exercice.ts +5 -1
  112. package/ts/api/resources/PaymentExpectationCustomer.ts +2 -1
  113. package/ts/types/Enum/BrandClementine.ts +1 -0
  114. package/ts/types/Enum/BrandComptalib.ts +1 -0
  115. package/ts/types/Enum/BrandLegalstart.ts +1 -0
  116. package/ts/types/Enum/PriceGridPourcentage.ts +132 -12
  117. package/ts/types/Enum/PriceGridStatutsExpress.ts +34 -0
  118. package/ts/types/Interface/api/authentification/ForgotPassword.ts +8 -0
  119. package/ts/types/Interface/api/authentification/ResetPassword.ts +12 -0
  120. package/ts/types/Interface/api/exercice/{CreateExercice.ts → Create.ts} +46 -1
  121. package/ts/types/Interface/api/society/QueryPaginatedSociety.ts +6 -1
  122. package/ts/types/index.ts +3 -1
  123. package/ts/utils/prestation.ts +18 -6
  124. package/dist/cjs/types/Interface/api/exercice/CreateExercice.d.ts.map +0 -1
  125. package/dist/cjs/types/Interface/api/exercice/CreateExercice.js.map +0 -1
  126. package/dist/mjs/types/Interface/api/exercice/CreateExercice.d.ts.map +0 -1
  127. package/dist/mjs/types/Interface/api/exercice/CreateExercice.js.map +0 -1
@@ -5,6 +5,7 @@ import { PrestationOptionType, PrestationOption } from '../types/Enum/Prestation
5
5
  import { PriceGridClementine } from '../types/Enum/PriceGridClementine';
6
6
  import { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';
7
7
  import { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart';
8
+ import { PriceGridStatutsExpress } from '../types/Enum/PriceGridStatutsExpress';
8
9
  import { ClosingType } from '../types/Enum/ClosingType';
9
10
  import { getBrandNameByNodeEnv } from './brands';
10
11
  import * as dayjs from 'dayjs';
@@ -28,6 +29,7 @@ type priceGrid = {
28
29
  vatRegimeMonthly?: vatRegime[],
29
30
  vatRegimeYearly?: vatRegime[],
30
31
  taxSystem?: taxSystem[],
32
+ legalForm?: legalForm[],
31
33
  };
32
34
 
33
35
  type monthlyPayment = {
@@ -40,6 +42,11 @@ type turnover = {
40
42
  price: number,
41
43
  };
42
44
 
45
+ type legalForm = {
46
+ idLegalForm: number,
47
+ price: number,
48
+ };
49
+
43
50
  type employee = {
44
51
  amountMinimum: number,
45
52
  amountMaximum: number,
@@ -119,7 +126,7 @@ const getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid
119
126
 
120
127
  const currentEnvName = getBrandNameByNodeEnv(process.env.NODE_ENV);
121
128
  const listEnvEnum = {
122
- PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart,
129
+ PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart, PriceGridStatutsExpress,
123
130
  };
124
131
  // @ts-ignore
125
132
  const currentPriceGridFile: priceGridBrand[] = listEnvEnum[`PriceGrid${currentEnvName}`];
@@ -128,7 +135,7 @@ const getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid
128
135
  return currentPriceGrid;
129
136
  };
130
137
 
131
- const calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, isYearly: boolean, totalMonth: number, idTaxSystem: number): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } => {
138
+ const calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, isYearly: boolean, totalMonth: number, idTaxSystem: number, idLegalForm: number): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } => {
132
139
  let totalPrestation: number = 0;
133
140
  let reduceMonth: number = 0;
134
141
  let monthNbr: number = NbrMonth;
@@ -155,11 +162,14 @@ const calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate
155
162
  /* Gestion des montants */
156
163
  if (currentPriceGrid.turnoverMonthly && !isYearly) monthlyPrice = currentPriceGrid.turnoverMonthly?.find(turn => turnover < turn.turnoverValue)?.price;
157
164
  else if (currentPriceGrid.properties) monthlyPrice = currentPriceGrid.properties?.find(property => property.amount === rentsNumber)?.price;
158
- else if (currentPriceGrid.employee) monthlyPrice = currentPriceGrid.employee?.find(emp => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber)?.price;
159
- else if (currentPriceGrid.turnoverYearly && isYearly) yearlyPrice = currentPriceGrid.turnoverYearly?.find(turn => turnover < turn.turnoverValue)?.price;
165
+ else if (currentPriceGrid.employee) {
166
+ monthlyPrice = currentPriceGrid.employee?.find(emp => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber)?.price;
167
+ monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;
168
+ } else if (currentPriceGrid.turnoverYearly && isYearly) yearlyPrice = currentPriceGrid.turnoverYearly?.find(turn => turnover < turn.turnoverValue)?.price;
160
169
  else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear) yearlyPrice = currentPriceGrid.turnoverCreatedYear?.find(turn => turnover < turn.turnoverValue)?.price;
161
170
  else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear) yearlyPrice = currentPriceGrid.turnoverPastYear?.find(turn => turnover < turn.turnoverValue)?.price;
162
171
  else if (currentPriceGrid.partner) yearlyPrice = currentPriceGrid.partner?.find(part => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber)?.price;
172
+ else if (currentPriceGrid.legalForm) yearlyPrice = currentPriceGrid.legalForm?.find(form => form.idLegalForm === idLegalForm)?.price;
163
173
  finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);
164
174
 
165
175
  /* Gestion des mois */
@@ -195,7 +205,7 @@ const calculatePrestationPriceWithPrestationList = (prestationList: IPrestationL
195
205
  return totalPrestation;
196
206
  };
197
207
 
198
- const calculatePrestationPrice = (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, isYearly: boolean = false): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, calculDetail: string, monthlyPrice: string, price: number } => {
208
+ const calculatePrestationPrice = (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, idLegalForm: number, isYearly: boolean = false): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, calculDetail: string, monthlyPrice: string, price: number } => {
199
209
  let totalPrestation: number = 0;
200
210
  let reduceMonth: number = 0;
201
211
  let canBeCreated: boolean = true;
@@ -228,9 +238,10 @@ const calculatePrestationPrice = (idPrestationList: number, prestationList: IPre
228
238
  PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,
229
239
  PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,
230
240
  PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,
241
+ PrestationType.STATUTS_OPTION_2,
231
242
  ].includes(idPrestationList)
232
243
  ) {
233
- totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem);
244
+ totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem, idLegalForm);
234
245
  totalPrestation = totalWithReduce.totalPrestation;
235
246
  reduceMonth = totalWithReduce.reduceMonth;
236
247
  canBeCreated = totalWithReduce.canBeCreated;
@@ -238,6 +249,7 @@ const calculatePrestationPrice = (idPrestationList: number, prestationList: IPre
238
249
  price = totalWithReduce.price;
239
250
  } else {
240
251
  totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);
252
+ if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList)) totalPrestation += 50;
241
253
  }
242
254
  if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;
243
255
  if (totalPercentage > 0) totalPrestation = totalPrestation - (totalPrestation * (totalPercentage / 100));
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateExercice.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":"AAMA,qBAAa,cAAc;IAGvB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAMlB,YAAY,CAAC,EAAE,OAAO,CAAC;IAMvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAM9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAKlC,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateExercice.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAEyB;AACzB,6DAAgF;AAChF,sFAA2E;AAE3E,MAAa,cAAc;CA+E1B;AA9EC;IAAC,IAAA,wBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;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ACuB;AAEpC;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACO;AAEpB;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;iDACS;AA9ExB,wCA+EC","sourcesContent":["import {\n IsBoolean, IsDate, IsNumber, IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDefault?: boolean;\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateExercice.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":"AAMA,qBAAa,cAAc;IAGvB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAMlB,YAAY,CAAC,EAAE,OAAO,CAAC;IAMvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAM9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAKlC,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateExercice.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GACxC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,cAAc;IAGvB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAMd,MAAM,CAAW;IAMjB,KAAK,CAAW;IAMhB,SAAS,CAAW;IAMpB,OAAO,CAAW;IAMlB,YAAY,CAAW;IAMvB,WAAW,CAAW;IAMtB,WAAW,CAAW;IAMtB,gBAAgB,C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iDACS","sourcesContent":["import {\n IsBoolean, IsDate, IsNumber, IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDefault?: boolean;\n}"]}