@silexpert/core 2.0.28 → 2.0.29

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 (41) hide show
  1. package/dist/types/Enum/TaskResponseType.d.ts +2 -1
  2. package/dist/types/Enum/TaskResponseType.d.ts.map +1 -1
  3. package/dist/types/Enum/TaskResponseType.js +1 -0
  4. package/dist/types/Enum/TaskResponseType.js.map +1 -1
  5. package/dist/types/Interface/api/cerfa/2031.d.ts +7 -185
  6. package/dist/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  7. package/dist/types/Interface/api/cerfa/2031.js.map +1 -1
  8. package/dist/types/Interface/api/cerfa/2033.d.ts +129 -98
  9. package/dist/types/Interface/api/cerfa/2033.d.ts.map +1 -1
  10. package/dist/types/Interface/api/cerfa/2033.js +0 -218
  11. package/dist/types/Interface/api/cerfa/2033.js.map +1 -1
  12. package/dist/types/Interface/api/cerfa/2035.d.ts +86 -263
  13. package/dist/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  14. package/dist/types/Interface/api/cerfa/2035.js.map +1 -1
  15. package/dist/types/Interface/api/cerfa/2050.d.ts +460 -1
  16. package/dist/types/Interface/api/cerfa/2050.d.ts.map +1 -1
  17. package/dist/types/Interface/api/cerfa/2050.js.map +1 -1
  18. package/dist/types/Interface/api/cerfa/2065.d.ts +4 -126
  19. package/dist/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  20. package/dist/types/Interface/api/cerfa/2065.js +0 -9
  21. package/dist/types/Interface/api/cerfa/2065.js.map +1 -1
  22. package/dist/types/Interface/api/registration/CreateRegistration.d.ts +0 -2
  23. package/dist/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  24. package/dist/types/Interface/api/registration/CreateRegistration.js +0 -16
  25. package/dist/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  26. package/dist/utils/task.d.ts.map +1 -1
  27. package/dist/utils/task.js +1 -0
  28. package/dist/utils/task.js.map +1 -1
  29. package/dist/utils/webmail.d.ts.map +1 -1
  30. package/dist/utils/webmail.js +8 -1
  31. package/dist/utils/webmail.js.map +1 -1
  32. package/package.json +1 -1
  33. package/ts/types/Enum/TaskResponseType.ts +1 -0
  34. package/ts/types/Interface/api/cerfa/2031.ts +14 -177
  35. package/ts/types/Interface/api/cerfa/2033.ts +129 -101
  36. package/ts/types/Interface/api/cerfa/2035.ts +78 -251
  37. package/ts/types/Interface/api/cerfa/2050.ts +455 -1
  38. package/ts/types/Interface/api/cerfa/2065.ts +8 -103
  39. package/ts/types/Interface/api/registration/CreateRegistration.ts +0 -12
  40. package/ts/utils/task.ts +1 -0
  41. package/ts/utils/webmail.ts +7 -1
@@ -921,6 +921,234 @@ type IncomeStatement = {
921
921
  };
922
922
  };
923
923
 
924
+ type IncomeStatement_2026 = {
925
+ cessionImmobilization: { total: number };
926
+ accountancyValueOfCessions: { total: number };
927
+ productImmobilizationFinancial: { total: number };
928
+ accountancyValueCessionFinancial: { total: number };
929
+ amortizationAllocation: {
930
+ dotation: number;
931
+ total: number;
932
+ };
933
+ amortizationPartExange: {
934
+ total: number;
935
+ };
936
+ attributedProfit: {
937
+ total: number;
938
+ };
939
+ chargesInterests: {
940
+ total: number;
941
+ };
942
+ chargesTransfert: {
943
+ total: number;
944
+ };
945
+ employeesResultsParticipation: {
946
+ exercise: number;
947
+ };
948
+ exceptionnalAmortizationNewConstructions: {
949
+ exercise: number;
950
+ };
951
+ exceptionnalChargesTotal: {
952
+ exercise: number;
953
+ };
954
+ personalContribution: {
955
+ exercise: number;
956
+ };
957
+
958
+ exceptionnalProductsTotal: {
959
+ exercise: number;
960
+ };
961
+ exceptionnalResult: {
962
+ exercise: number;
963
+ };
964
+ exchangeDifference: {
965
+ total: number;
966
+ };
967
+ exploitationChargesTotal: {
968
+ total: number;
969
+ };
970
+ exploitationGrant: {
971
+ total: number;
972
+ };
973
+ exploitationResult: {
974
+ total: number;
975
+ };
976
+ exploitationproductsTotal: {
977
+ total: number;
978
+ };
979
+ facultativeSubscriptionsMadelin: {
980
+ exercise: number;
981
+ };
982
+ facultativeSubscriptionsNewRetirementPlan: {
983
+ exercise: number;
984
+ };
985
+ financialAmortizationsProvisions: {
986
+ total: number;
987
+ };
988
+ financialChargesTotal: {
989
+ total: number;
990
+ };
991
+ financialParticipationProducts: {
992
+ total: number;
993
+ };
994
+ financialPoducts: {
995
+ total: number;
996
+ };
997
+ financialResult: {
998
+ total: number;
999
+ };
1000
+ generalInterstOrganismDonation: {
1001
+ exercise: number;
1002
+ };
1003
+ goodsPurchase: {
1004
+ total: number;
1005
+ };
1006
+ goodsSales: {
1007
+ exports: number;
1008
+ france: number;
1009
+ total: number;
1010
+ };
1011
+ immobilizedProduction: {
1012
+ total: number;
1013
+ };
1014
+ innovatingPmeSubscriptionsAmortization: {
1015
+ exercise: number;
1016
+ };
1017
+ leasePurchaseFurniture: {
1018
+ exercise: number;
1019
+ };
1020
+ leasePurchaseProperty: {
1021
+ exercise: number;
1022
+ };
1023
+ licenseFeeCharges: {
1024
+ exercise: number;
1025
+ };
1026
+ licenseFeeProducts: {
1027
+ exercise: number;
1028
+ };
1029
+ linkedCompaniesInterests: {
1030
+ exercise: number;
1031
+ };
1032
+ linkedCompaniesProducts: {
1033
+ exercise: number;
1034
+ };
1035
+ list: Array<{
1036
+ charges: number;
1037
+ details: string;
1038
+ products: number;
1039
+ }>;
1040
+ lossSupportCosts: {
1041
+ total: number;
1042
+ };
1043
+ negativChangeDifference: {
1044
+ total: number;
1045
+ };
1046
+ netProductsLongTermOperations: {
1047
+ exercise: number;
1048
+ };
1049
+ netTurnOver: {
1050
+ exports: number;
1051
+ france: number;
1052
+ total: number;
1053
+ };
1054
+ operatingCostpastExercises: {
1055
+ exercise: number;
1056
+ };
1057
+ otherCharges: {
1058
+ total: number;
1059
+ };
1060
+ otherExploitationProducts: {
1061
+ total: number;
1062
+ };
1063
+ otherImmobilizationValuesProducts: {
1064
+ total: number;
1065
+ };
1066
+ otherProducts: {
1067
+ total: number;
1068
+ };
1069
+ otherPurchases: {
1070
+ total: number;
1071
+ };
1072
+ pastExercisesExploitationProducts: {
1073
+ exercise: number;
1074
+ };
1075
+ personnalDues: {
1076
+ exercise: number;
1077
+ };
1078
+ positivChangeDifference: {
1079
+ total: number;
1080
+ };
1081
+ previousExerciseList: Array<{
1082
+ charges: number;
1083
+ details: string;
1084
+ products: number;
1085
+ }>;
1086
+ profitTaxes: {
1087
+ exercise: number;
1088
+ };
1089
+ rawMaterialPurchase: {
1090
+ total: number;
1091
+ };
1092
+ rentalPropertyProduct: {
1093
+ exercise: number;
1094
+ };
1095
+ resutlBeforeTaxation: {
1096
+ total: number;
1097
+ };
1098
+ salaries: {
1099
+ total: number;
1100
+ };
1101
+ socialCharges: {
1102
+ total: number;
1103
+ };
1104
+ socialSubscriptionsAmount: {
1105
+ exercise: number;
1106
+ };
1107
+ soldGoods: {
1108
+ exports: number;
1109
+ france: number;
1110
+ total: number;
1111
+ };
1112
+ soldServices: {
1113
+ exports: number;
1114
+ france: number;
1115
+ total: number;
1116
+ };
1117
+ stockProvision: {
1118
+ total: number;
1119
+ };
1120
+ stockProvisionCharges: {
1121
+ total: number;
1122
+ };
1123
+ stockProvisionCurrentAsset: {
1124
+ total: number;
1125
+ };
1126
+ stocksVariationsGoods: {
1127
+ total: number;
1128
+ };
1129
+ stocksVariationsRawMaterial: {
1130
+ total: number;
1131
+ };
1132
+ storedProduction: {
1133
+ total: number;
1134
+ };
1135
+ taxes: {
1136
+ total: number;
1137
+ };
1138
+ totalCharges: {
1139
+ exercise: number;
1140
+ };
1141
+ totalLossProfit: {
1142
+ exercise: number;
1143
+ };
1144
+ totalProducts: {
1145
+ exercise: number;
1146
+ };
1147
+ transferableSecurityHandoverNetCharges: {
1148
+ total: number;
1149
+ };
1150
+ };
1151
+
924
1152
  type LeaveCompensation = {
925
1153
  charges: Array<{
926
1154
  grant: number;
@@ -1068,6 +1296,70 @@ type ResultAllocation = {
1068
1296
  };
1069
1297
  };
1070
1298
 
1299
+ type ResultAllocation_2026 = {
1300
+ toReintegrate: number;
1301
+ toDeduce: number;
1302
+ negativeResult: number;
1303
+ positiveResult: number;
1304
+ allocation: {
1305
+ dividends: number;
1306
+ legalReserves: number;
1307
+ otherDistribution: number;
1308
+ otherReserves: number;
1309
+ report: number;
1310
+ total: number;
1311
+ };
1312
+ diverseInformations: {
1313
+ addedValueAmount: number;
1314
+ assitances: number;
1315
+ costPrice: number;
1316
+ deductibleVat: number;
1317
+ discountEffects: number;
1318
+ exceptionalAmortizationInvestmeentAmount: number;
1319
+ externalPersonnel: number;
1320
+ feeRetrocession: number;
1321
+ groups: {
1322
+ addedValue0Percent: number;
1323
+ addedValue15Percent: number;
1324
+ addedValue19Percent: number;
1325
+ imputations: number;
1326
+ result: number;
1327
+ };
1328
+ highInterestRate: number;
1329
+ movableLeaseCommitment: number;
1330
+ otherAccounts: number;
1331
+ otherAccountsDues: number;
1332
+ otherTaxes: number;
1333
+ othersTaxesOilProducts: number;
1334
+ participation: AsponeT01;
1335
+ payments: number;
1336
+ post2052Total: number;
1337
+ postDetailsSubcontrating: number;
1338
+ postTotal: number;
1339
+ professionalTax: number;
1340
+ propertyLeaseCommitment: number;
1341
+ regimeSociety: AsponeTSO;
1342
+ rentAmount: number;
1343
+ renting: number;
1344
+ salaryGrossAmount: number;
1345
+ siret: string;
1346
+ society: {
1347
+ addedValue0Percent: number;
1348
+ addedValue15Percent: number;
1349
+ addedValue19Percent: number;
1350
+ imputation: number;
1351
+ result: number;
1352
+ };
1353
+ vatAmount: number;
1354
+ };
1355
+ origins: {
1356
+ report: number;
1357
+ reserveDebit: number;
1358
+ result: number;
1359
+ total: number;
1360
+ };
1361
+ };
1362
+
1071
1363
  type SpecialAddedValueReserveDetail = {
1072
1364
  '10PercentTaxed': number;
1073
1365
  '15PercentTaxed': number;
@@ -1214,6 +1506,127 @@ type WorkForceDetermination = {
1214
1506
  };
1215
1507
  };
1216
1508
 
1509
+ type WorkForceDetermination_2026 = {
1510
+ addedValueCharges: {
1511
+ deductibleFraction: number;
1512
+ deductibleTaxes: number;
1513
+ depreciatinoImmobilizationsHandover: number;
1514
+ externalServices: number;
1515
+ immobilizedProduction: number;
1516
+ negativeStockVariation: number;
1517
+ otherCharges: number;
1518
+ purchases: number;
1519
+ rents: number;
1520
+ total: number;
1521
+ };
1522
+ addedValueDues: number;
1523
+ addedValueProduced: number;
1524
+ depositNumber: string;
1525
+ financialPeriod: {
1526
+ totalMonths: number;
1527
+ ending: {
1528
+ day: number;
1529
+ month: number;
1530
+ year: number;
1531
+ };
1532
+ starting: {
1533
+ day: number;
1534
+ month: number;
1535
+ year: number;
1536
+ };
1537
+ };
1538
+ legalPersonsCapital: Array<{
1539
+ addressNumber: string;
1540
+ city: string;
1541
+ country: string;
1542
+ legalStatus: string;
1543
+ name: string;
1544
+ possesionPercent: number;
1545
+ postcode: string;
1546
+ sharesNumber: number;
1547
+ siren: string;
1548
+ street: string;
1549
+ address: CerfaAddress;
1550
+ }>;
1551
+ monoEstablishment: {
1552
+ address: CerfaAddress;
1553
+ city: string;
1554
+ economicalGroupTurnoever: number;
1555
+ financialYearClosing: string;
1556
+ moralLegalPersonsShares: number;
1557
+ moralLegalPersonsTotal: number;
1558
+ physicLegalPersonsShares: number;
1559
+ physicLegalPersonsTotal: number;
1560
+ postcode: string;
1561
+ referencePeriodEndDay: number;
1562
+ referencePeriodEndMonth: number;
1563
+ referencePeriodEnd: {
1564
+ day: string;
1565
+ month: string;
1566
+ year: string;
1567
+ full: string;
1568
+ };
1569
+ referencePeriodStart: {
1570
+ day: string;
1571
+ month: string;
1572
+ year: string;
1573
+ full: string;
1574
+ };
1575
+ referencePeriodTermination: {
1576
+ day: string;
1577
+ month: string;
1578
+ year: string;
1579
+ full: Date;
1580
+ };
1581
+ referenceTurnover: number;
1582
+ siret: string;
1583
+ workforce: number;
1584
+ yes: boolean;
1585
+ };
1586
+ naturalPersonsCapital: Array<{
1587
+ address: CerfaAddress;
1588
+ birthAddress: CerfaAddress;
1589
+ addressNumber: string;
1590
+ birthCity: string; //
1591
+ birthCountry: string; //
1592
+ birthDate: string; //
1593
+ birthDepartment: string; //
1594
+ city: string;
1595
+ conjugalNames: string; //
1596
+ country: string;
1597
+ equity: string; //
1598
+ names: string; //
1599
+ patrmonialName: string; //
1600
+ possesionPercent: number; //
1601
+ postcode: string;
1602
+ sharesNumber: number; //
1603
+ street: string;
1604
+ marriedName: string;
1605
+ }>;
1606
+ otherProducts: {
1607
+ debtsIncomes: number;
1608
+ immobilizedProduction: number;
1609
+ otherProducts: number;
1610
+ positiveStockVariation: number;
1611
+ productionGrants: number;
1612
+ total: number;
1613
+ };
1614
+ personnel: {
1615
+ apprenticesNumber: number;
1616
+ handMadeActivityEmployees: number;
1617
+ handicappedsNumber: number;
1618
+ workForceTotalNumber: number;
1619
+ };
1620
+ turnoverReference: {
1621
+ cessionAddedValue: number;
1622
+ licenceFee: number;
1623
+ productsSales: number;
1624
+ total: number;
1625
+ };
1626
+ total1: number;
1627
+ total2: number;
1628
+ };
1629
+
1217
1630
  type WorkForceDetermination_2025 = WorkForceDetermination & { total1: number; total2: number };
1218
1631
 
1219
1632
  type Amortization = {
@@ -1539,7 +1952,7 @@ type ClosingFinancialPeriodDebtsState = {
1539
1952
  totals: LoanStateValues;
1540
1953
  };
1541
1954
 
1542
- export type AnyCerfa2050Century = Cerfa2050_2024 | Cerfa2050_2025;
1955
+ export type AnyCerfa2050Century = Cerfa2050_2024 | Cerfa2050_2025 | Cerfa2050_2026;
1543
1956
 
1544
1957
  export type Cerfa2050_2024 = {
1545
1958
  is2050Nil: boolean;
@@ -1622,3 +2035,44 @@ export type Cerfa2050_2025 = {
1622
2035
  branchesAndParticipation: BranchesAndParticipation;
1623
2036
  closingFinancialPeriodDebtsState: ClosingFinancialPeriodDebtsState;
1624
2037
  };
2038
+
2039
+ export type Cerfa2050_2026 = {
2040
+ is2050Nil: boolean;
2041
+ is2051Nil: boolean;
2042
+ is2052Nil: boolean;
2043
+ is2053Nil: boolean;
2044
+ is2054Nil: boolean;
2045
+ is2054BisNil: boolean;
2046
+ is2055Nil: boolean;
2047
+ is2056Nil: boolean;
2048
+ is2057Nil: boolean;
2049
+ is2058ANil: boolean;
2050
+ is2058BNil: boolean;
2051
+ is2058CNil: boolean;
2052
+ is2059ANil: boolean;
2053
+ is2059BNil: boolean;
2054
+ is2059CNil: boolean;
2055
+ is2059DNil: boolean;
2056
+ is2059ENil: boolean;
2057
+ is2059FNil: boolean;
2058
+ is2059GNil: boolean;
2059
+ exercice: IExercice;
2060
+ addedValueEstablishing: AddedValueEstablishing;
2061
+ addedValuesAllocation: AddedValuesAllocation;
2062
+ amortizations: Amortizations;
2063
+ fiscalResultEstablishing: FiscalResultEstablishing_2025;
2064
+ incomeStatement: IncomeStatement_2026;
2065
+ immobilization: Immobilization;
2066
+ leaveCompensation: LeaveCompensation;
2067
+ longTermDepreciationMonitoring: LongTermDepreciationMonitoring;
2068
+ redeemableImmobilizationRevaluation: RedeemableImmobilizationRevaluation;
2069
+ resultAllocation: ResultAllocation_2026;
2070
+ societyName: string;
2071
+ specialAddedValueReserve: SpecialAddedValueReserve;
2072
+ workForceDetermination: WorkForceDetermination_2026;
2073
+ balanceSheetAssets: Omit<BalanceSheetAssets, 'advance'>;
2074
+ balanceSheetLiabilities: BalanceSheetLiabilities & { financialInstruments: number };
2075
+ balanceSheetProvision: Omit<BalanceSheetProvision, 'marketLoss'>;
2076
+ branchesAndParticipation: BranchesAndParticipation;
2077
+ closingFinancialPeriodDebtsState: ClosingFinancialPeriodDebtsState;
2078
+ };
@@ -24,7 +24,7 @@ type LessValuesByRate = {
24
24
  normal: number;
25
25
  };
26
26
 
27
- export class Cerfa2065Society {
27
+ type Cerfa2065Society = {
28
28
  name: string;
29
29
  addressFormatted: string;
30
30
  addressObject: CerfaAddress;
@@ -32,9 +32,7 @@ export class Cerfa2065Society {
32
32
  email: string;
33
33
  oldAddress: string | null;
34
34
  oldAddressDetails: CerfaAddress;
35
- }
36
-
37
- export type AnyCerfa2065Century = Cerfa2065 | Cerfa2065_2024 | Cerfa2065_2025;
35
+ };
38
36
 
39
37
  export class Cerfa2065Remunerations {
40
38
  name: string;
@@ -48,105 +46,6 @@ export class Cerfa2065Remunerations {
48
46
  refunds2: number;
49
47
  reason: string;
50
48
  }
51
- export interface Cerfa2065 {
52
- termination: Termination;
53
- isNil?: boolean;
54
- society: Cerfa2065Society;
55
- period: {
56
- startDate: string;
57
- endDate: string;
58
- months: string;
59
- };
60
- isSimplifiedRegime: boolean;
61
- isDeclarationForGroup: boolean;
62
- isRealRegime: boolean;
63
- isPME: boolean;
64
- fillialeText: string | null;
65
- affiliateHead: (PartnersLegalEntity & { countryCode: string; siret: string }) | null;
66
- isTonnageOption: boolean;
67
- headOffice: {
68
- number: string;
69
- addressFormatted: string;
70
- country: string;
71
- countryCode: string | null;
72
- street: string;
73
- zipCode: string;
74
- city: string;
75
- };
76
- incomeDate: Date | null;
77
- siret: string | null;
78
- activity: string;
79
- hasActivityChanged: boolean;
80
- benefitNormalRate: number;
81
- deficit: number;
82
- benefit15: number;
83
- resultNet: number;
84
- addedValues15: number;
85
- addedValues19: number;
86
- exoneration: number;
87
- otherAddedValues19: number;
88
- otherAddedValues0: number;
89
- isNewBusinessSexies: boolean;
90
- isYoungBusiness: boolean;
91
- isNewBusinessSepties: boolean;
92
- isActivityZone: boolean;
93
- isRestructuration: boolean;
94
- isUrbanToDynamise: boolean;
95
- isUrban: boolean;
96
- isOther: boolean;
97
- isPriorityZone: boolean;
98
- isInvestmentBusiness: boolean;
99
- benefitOrDeficit: number;
100
- exoneration15: number;
101
- isImpositionDOMTOM: boolean;
102
- furnitureIncome: number;
103
- icomeOther: number;
104
- income2Dot5: number;
105
- isSocietyHead: boolean;
106
- otherSocietyHead: { name: string | null; has: boolean; address: CerfaAddress | null; number: string | null };
107
- isSocietyDesigned: boolean;
108
- societyHead: { name: string; number: string; fiscalNumber: string } & CerfaAddress;
109
- hasAccountancyComputerized: boolean;
110
- hasNotAccountancyComputerized: boolean;
111
- accountancyComputerizedName: string;
112
- accountant: Accountant;
113
- hasOGA: boolean;
114
- hasViewer: boolean;
115
- viewer: ViewerDetails;
116
- council: CouncilDetails;
117
- ecf: EcfDetails;
118
- declarer: {
119
- date: string;
120
- place: string;
121
- name: string;
122
- };
123
- distributionAmount: { bySociety: number; byEstablishment: number };
124
- remuneration: number;
125
- advances: number;
126
- others: Array<{ label: string; amount: number }>;
127
- elligible: number;
128
- noElligible: number;
129
- amountRemunerations: number;
130
- remunerations: Cerfa2065Remunerations[];
131
- diverse: {
132
- funds: {
133
- name: string;
134
- address: string;
135
- addressDetails: CerfaAddress;
136
- };
137
- address: string;
138
- otherAddresses: Array<{ name: string; address: CerfaAddress }>;
139
- };
140
- simplified: {
141
- amount: number;
142
- retrocessions: number;
143
- remainingExerciceStart: LessValuesByRate;
144
- imputed: LessValuesByRate;
145
- realized: LessValuesByRate;
146
- remaining: LessValuesByRate;
147
- };
148
- donation: { amount: number; number: number };
149
- }
150
49
 
151
50
  export interface Cerfa2065_2024 {
152
51
  termination: Termination;
@@ -359,3 +258,9 @@ export interface Cerfa2065_2025 {
359
258
  };
360
259
  donation: { amount: number; number: number };
361
260
  }
261
+
262
+ export type Cerfa2065_2026 = Omit<Cerfa2065_2025, 'viewer' | 'hasOGA' | 'hasViewer'> & {
263
+ // TODO:
264
+ };
265
+
266
+ export type AnyCerfa2065Century = Cerfa2065_2024 | Cerfa2065_2025 | Cerfa2065_2026;
@@ -100,12 +100,6 @@ export class CreateRegistration {
100
100
  @IsOptional()
101
101
  date?: string;
102
102
 
103
- @ApiPropertyOptional()
104
- @IsBoolean()
105
- @ToBoolean()
106
- @IsOptional()
107
- isTest?: boolean;
108
-
109
103
  @ApiPropertyOptional({ description: 'Set values manually (not available for all cerfa)' })
110
104
  @IsOptional()
111
105
  forcedValues?: ForcedValues;
@@ -130,12 +124,6 @@ export class UpdateOrCreateVatRegistration {
130
124
  @ApiPropertyOptional()
131
125
  annexPayload?: Cerfa3519_2017;
132
126
 
133
- @ApiPropertyOptional()
134
- @IsBoolean()
135
- @ToBoolean()
136
- @IsOptional()
137
- isTest?: boolean;
138
-
139
127
  @ApiPropertyOptional()
140
128
  @IsBoolean()
141
129
  @ToBoolean()
package/ts/utils/task.ts CHANGED
@@ -68,6 +68,7 @@ const getListIdRolesUsedForTask = (listRoles: Role[]): Role[] => {
68
68
  Role.SATISFACTION,
69
69
  Role.FRONT_OFFICE,
70
70
  Role.DATA_OFFICER,
71
+ Role.SDR,
71
72
  ].includes(r),
72
73
  );
73
74
  return listIdRoles;
@@ -3,7 +3,9 @@ import { isItThisEnv } from './brands.js';
3
3
 
4
4
  const getIdRoleUsedForEmail = (listRoles: number[]): Role => {
5
5
  let idRole = Role.CUSTOMER_SUCCESS;
6
- if (listRoles.includes(Role.FACTURATION)) {
6
+ if (listRoles.includes(Role.SDR)) {
7
+ idRole = Role.SDR;
8
+ } else if (listRoles.includes(Role.FACTURATION)) {
7
9
  idRole = Role.FACTURATION;
8
10
  } else if (listRoles.includes(Role.TECHNICAL_ADVISOR)) {
9
11
  idRole = Role.TECHNICAL_ADVISOR;
@@ -37,8 +39,12 @@ const getIdRoleUsedForEmail = (listRoles: number[]): Role => {
37
39
  };
38
40
 
39
41
  const getListIdRolesUsedForEmail = (listRoles: number[]): Role[] => {
42
+ if (listRoles.includes(Role.SDR)) {
43
+ return [Role.SDR];
44
+ }
40
45
  const listIdRoles: Role[] = listRoles.filter((r) =>
41
46
  [
47
+ Role.SDR,
42
48
  Role.FACTURATION,
43
49
  Role.CUSTOMER_SUCCESS,
44
50
  Role.TECHNICAL_ADVISOR,