@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
@@ -15,15 +15,6 @@ __decorate([
15
15
  ApiPropertyOptional({ description: 'Modifie le chemin du PDF' }),
16
16
  __metadata("design:type", Boolean)
17
17
  ], ParamsGenerate2065.prototype, "isTest", void 0);
18
- export class Cerfa2065Society {
19
- name;
20
- addressFormatted;
21
- addressObject;
22
- siret;
23
- email;
24
- oldAddress;
25
- oldAddressDetails;
26
- }
27
18
  export class Cerfa2065Remunerations {
28
19
  name;
29
20
  address;
@@ -1 +1 @@
1
- {"version":3,"file":"2065.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/cerfa/2065.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAetD,MAAM,OAAO,kBAAkB;IAE7B,MAAM,CAAW;CAClB;AADC;IADC,mBAAmB,CAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;;kDAChD;AASnB,MAAM,OAAO,gBAAgB;IAC3B,IAAI,CAAS;IACb,gBAAgB,CAAS;IACzB,aAAa,CAAe;IAC5B,KAAK,CAAS;IACd,KAAK,CAAS;IACd,UAAU,CAAgB;IAC1B,iBAAiB,CAAe;CACjC;AAID,MAAM,OAAO,sBAAsB;IACjC,IAAI,CAAS;IACb,OAAO,CAAe;IACtB,UAAU,CAAS;IACnB,IAAI,CAAS;IACb,MAAM,CAAS;IACf,WAAW,CAAS;IACpB,MAAM,CAAS;IACf,YAAY,CAAS;IACrB,QAAQ,CAAS;IACjB,MAAM,CAAS;CAChB","sourcesContent":["import { ApiPropertyOptional } from '@nestjs/swagger';\nimport { AnyCerfa2033Century } from './2033.js';\nimport { AnyCerfa2050Century } from './2050.js';\nimport { CerfaAddress, ViewerDetails, Accountant, CouncilDetails, EcfDetails, Termination } from './ReadCerfa.js';\nimport { PartnersLegalEntity } from './Utils.js';\n\nexport type BusinessPartnersValue = {\n idBusinessPartner: number;\n amount: number;\n indemnities: number;\n refund: number;\n indemnities2: number;\n refunds2: number;\n};\n\nexport class ParamsGenerate2065 {\n @ApiPropertyOptional({ description: 'Modifie le chemin du PDF' })\n isTest?: boolean;\n}\n\ntype LessValuesByRate = {\n exonerated: number;\n reduced: number;\n normal: number;\n};\n\nexport class Cerfa2065Society {\n name: string;\n addressFormatted: string;\n addressObject: CerfaAddress;\n siret: string;\n email: string;\n oldAddress: string | null;\n oldAddressDetails: CerfaAddress;\n}\n\nexport type AnyCerfa2065Century = Cerfa2065 | Cerfa2065_2024 | Cerfa2065_2025;\n\nexport class Cerfa2065Remunerations {\n name: string;\n address: CerfaAddress;\n sharesHeld: number;\n year: number;\n amount: number;\n indemnities: number;\n refund: number;\n indemnities2: number;\n refunds2: number;\n reason: string;\n}\nexport interface Cerfa2065 {\n termination: Termination;\n isNil?: boolean;\n society: Cerfa2065Society;\n period: {\n startDate: string;\n endDate: string;\n months: string;\n };\n isSimplifiedRegime: boolean;\n isDeclarationForGroup: boolean;\n isRealRegime: boolean;\n isPME: boolean;\n fillialeText: string | null;\n affiliateHead: (PartnersLegalEntity & { countryCode: string; siret: string }) | null;\n isTonnageOption: boolean;\n headOffice: {\n number: string;\n addressFormatted: string;\n country: string;\n countryCode: string | null;\n street: string;\n zipCode: string;\n city: string;\n };\n incomeDate: Date | null;\n siret: string | null;\n activity: string;\n hasActivityChanged: boolean;\n benefitNormalRate: number;\n deficit: number;\n benefit15: number;\n resultNet: number;\n addedValues15: number;\n addedValues19: number;\n exoneration: number;\n otherAddedValues19: number;\n otherAddedValues0: number;\n isNewBusinessSexies: boolean;\n isYoungBusiness: boolean;\n isNewBusinessSepties: boolean;\n isActivityZone: boolean;\n isRestructuration: boolean;\n isUrbanToDynamise: boolean;\n isUrban: boolean;\n isOther: boolean;\n isPriorityZone: boolean;\n isInvestmentBusiness: boolean;\n benefitOrDeficit: number;\n exoneration15: number;\n isImpositionDOMTOM: boolean;\n furnitureIncome: number;\n icomeOther: number;\n income2Dot5: number;\n isSocietyHead: boolean;\n otherSocietyHead: { name: string | null; has: boolean; address: CerfaAddress | null; number: string | null };\n isSocietyDesigned: boolean;\n societyHead: { name: string; number: string; fiscalNumber: string } & CerfaAddress;\n hasAccountancyComputerized: boolean;\n hasNotAccountancyComputerized: boolean;\n accountancyComputerizedName: string;\n accountant: Accountant;\n hasOGA: boolean;\n hasViewer: boolean;\n viewer: ViewerDetails;\n council: CouncilDetails;\n ecf: EcfDetails;\n declarer: {\n date: string;\n place: string;\n name: string;\n };\n distributionAmount: { bySociety: number; byEstablishment: number };\n remuneration: number;\n advances: number;\n others: Array<{ label: string; amount: number }>;\n elligible: number;\n noElligible: number;\n amountRemunerations: number;\n remunerations: Cerfa2065Remunerations[];\n diverse: {\n funds: {\n name: string;\n address: string;\n addressDetails: CerfaAddress;\n };\n address: string;\n otherAddresses: Array<{ name: string; address: CerfaAddress }>;\n };\n simplified: {\n amount: number;\n retrocessions: number;\n remainingExerciceStart: LessValuesByRate;\n imputed: LessValuesByRate;\n realized: LessValuesByRate;\n remaining: LessValuesByRate;\n };\n donation: { amount: number; number: number };\n}\n\nexport interface Cerfa2065_2024 {\n termination: Termination;\n isNil?: boolean;\n society: Cerfa2065Society;\n period: {\n startDate: string;\n endDate: string;\n months: string;\n };\n isSimplifiedRegime: boolean;\n isDeclarationForGroup: boolean;\n isRealRegime: boolean;\n isPME: boolean;\n fillialeText: string | null;\n affiliateHead: (PartnersLegalEntity & { countryCode: string; siret: string }) | null;\n isTonnageOption: boolean;\n headOffice: {\n number: string;\n addressFormatted: string;\n country: string;\n countryCode: string | null;\n street: string;\n zipCode: string;\n city: string;\n };\n countryToCountry: {\n fiscalNumber: string | null;\n name: string | null;\n address: CerfaAddress | null;\n };\n incomeDate: Date | null;\n siret: string | null;\n activity: string;\n hasActivityChanged: boolean;\n benefitNormalRate: number;\n deficit: number;\n benefit15: number;\n resultNet: number;\n addedValues15: number;\n addedValues19: number;\n exoneration: number;\n otherAddedValues19: number;\n otherAddedValues0: number;\n isNewBusinessSexies: boolean;\n isYoungBusiness: boolean;\n inDifficultyBusiness: boolean;\n isRuralRevitalizationZone: boolean;\n isJobToRevitalize: boolean;\n isActivityZone: boolean;\n isRestructuration: boolean;\n isUrbanToDynamise: boolean;\n isUrban: boolean;\n isOther: boolean;\n isPriorityZone: boolean;\n isInvestmentBusiness: boolean;\n benefitOrDeficit: number;\n exoneration15: number;\n isImpositionDOMTOM: boolean;\n furnitureIncome: number;\n icomeOther: number;\n income2Dot5: number;\n isSocietyHead: boolean;\n otherSocietyHead: { name: string | null; has: boolean; address: CerfaAddress | null; number: string | null };\n isSocietyDesigned: boolean;\n societyHead: { name: string; fiscalNumber: string; address: CerfaAddress | null };\n hasAccountancyComputerized: boolean;\n hasNotAccountancyComputerized: boolean;\n accountancyComputerizedName: string;\n accountant: Accountant;\n hasOGA: boolean;\n hasViewer: boolean;\n viewer: ViewerDetails;\n council: CouncilDetails;\n ecf: EcfDetails;\n declarer: {\n date: string;\n place: string;\n name: string;\n };\n distributionAmount: { bySociety: number; byEstablishment: number };\n remuneration: number;\n advances: number;\n others: Array<{ label: string; amount: number }>;\n elligible: number;\n noElligible: number;\n amountRemunerations: number;\n remunerations: Cerfa2065Remunerations[];\n diverse: {\n funds: {\n name: string;\n address: string;\n addressDetails: CerfaAddress;\n };\n address: string;\n otherAddresses: Array<{ name: string; address: CerfaAddress }>;\n };\n simplified: {\n amount: number;\n retrocessions: number;\n remainingExerciceStart: LessValuesByRate;\n imputed: LessValuesByRate;\n realized: LessValuesByRate;\n remaining: LessValuesByRate;\n };\n donation: { amount: number; number: number };\n}\n\nexport type PrepareCerfa2065 = {\n idExercice: number;\n idSociety: number;\n idUser: number;\n values: { cerfa2065: AnyCerfa2065Century; cerfa2033?: AnyCerfa2033Century; cerfa2050?: AnyCerfa2050Century };\n};\n\nexport interface Cerfa2065_2025 {\n termination: Termination;\n isNil?: boolean;\n society: Cerfa2065Society;\n period: {\n startDate: string;\n endDate: string;\n months: string;\n };\n isSimplifiedRegime: boolean;\n isDeclarationForGroup: boolean;\n isRealRegime: boolean;\n isPME: boolean;\n fillialeText: string | null;\n affiliateHead: (PartnersLegalEntity & { countryCode: string; siret: string }) | null;\n isTonnageOption: boolean;\n headOffice: {\n number: string;\n addressFormatted: string;\n country: string;\n countryCode: string | null;\n street: string;\n zipCode: string;\n city: string;\n };\n incomeDate: Date | null;\n siret: string | null;\n activity: string;\n hasActivityChanged: boolean;\n benefitNormalRate: number;\n deficit: number;\n benefit15: number;\n resultNet: number;\n addedValues15: number;\n addedValues19: number;\n exoneration: number;\n otherAddedValues19: number;\n otherAddedValues0: number;\n isNewBusinessSexies: boolean;\n isYoungBusiness: boolean;\n franceRurality: boolean;\n isRuralRevitalizationZone: boolean;\n isJobToRevitalize: boolean;\n isActivityZone: boolean;\n isRestructuration: boolean;\n isUrbanToDynamise: boolean;\n isUrban: boolean;\n isOther: boolean;\n isPriorityZone: boolean;\n isInvestmentBusiness: boolean;\n benefitOrDeficit: number;\n exoneration15: number;\n isImpositionDOMTOM: boolean;\n furnitureIncome: number;\n icomeOther: number;\n income2Dot5: number;\n hasAccountancyComputerized: boolean;\n hasNotAccountancyComputerized: boolean;\n accountancyComputerizedName: string;\n accountant: Accountant;\n hasOGA: boolean;\n hasViewer: boolean;\n viewer: ViewerDetails;\n council: CouncilDetails;\n ecf: EcfDetails;\n declarer: {\n date: string;\n place: string;\n name: string;\n };\n distributionAmount: { bySociety: number; byEstablishment: number };\n remuneration: number;\n advances: number;\n others: Array<{ label: string; amount: number }>;\n elligible: number;\n noElligible: number;\n amountRemunerations: number;\n remunerations: Cerfa2065Remunerations[];\n diverse: {\n funds: {\n name: string;\n address: string;\n addressDetails: CerfaAddress;\n };\n address: string;\n otherAddresses: Array<{ name: string; address: CerfaAddress }>;\n };\n simplified: {\n amount: number;\n retrocessions: number;\n remainingExerciceStart: LessValuesByRate;\n imputed: LessValuesByRate;\n realized: LessValuesByRate;\n remaining: LessValuesByRate;\n };\n donation: { amount: number; number: number };\n}\n"]}
1
+ {"version":3,"file":"2065.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/cerfa/2065.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAetD,MAAM,OAAO,kBAAkB;IAE7B,MAAM,CAAW;CAClB;AADC;IADC,mBAAmB,CAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;;kDAChD;AAmBnB,MAAM,OAAO,sBAAsB;IACjC,IAAI,CAAS;IACb,OAAO,CAAe;IACtB,UAAU,CAAS;IACnB,IAAI,CAAS;IACb,MAAM,CAAS;IACf,WAAW,CAAS;IACpB,MAAM,CAAS;IACf,YAAY,CAAS;IACrB,QAAQ,CAAS;IACjB,MAAM,CAAS;CAChB","sourcesContent":["import { ApiPropertyOptional } from '@nestjs/swagger';\nimport { AnyCerfa2033Century } from './2033.js';\nimport { AnyCerfa2050Century } from './2050.js';\nimport { CerfaAddress, ViewerDetails, Accountant, CouncilDetails, EcfDetails, Termination } from './ReadCerfa.js';\nimport { PartnersLegalEntity } from './Utils.js';\n\nexport type BusinessPartnersValue = {\n idBusinessPartner: number;\n amount: number;\n indemnities: number;\n refund: number;\n indemnities2: number;\n refunds2: number;\n};\n\nexport class ParamsGenerate2065 {\n @ApiPropertyOptional({ description: 'Modifie le chemin du PDF' })\n isTest?: boolean;\n}\n\ntype LessValuesByRate = {\n exonerated: number;\n reduced: number;\n normal: number;\n};\n\ntype Cerfa2065Society = {\n name: string;\n addressFormatted: string;\n addressObject: CerfaAddress;\n siret: string;\n email: string;\n oldAddress: string | null;\n oldAddressDetails: CerfaAddress;\n};\n\nexport class Cerfa2065Remunerations {\n name: string;\n address: CerfaAddress;\n sharesHeld: number;\n year: number;\n amount: number;\n indemnities: number;\n refund: number;\n indemnities2: number;\n refunds2: number;\n reason: string;\n}\n\nexport interface Cerfa2065_2024 {\n termination: Termination;\n isNil?: boolean;\n society: Cerfa2065Society;\n period: {\n startDate: string;\n endDate: string;\n months: string;\n };\n isSimplifiedRegime: boolean;\n isDeclarationForGroup: boolean;\n isRealRegime: boolean;\n isPME: boolean;\n fillialeText: string | null;\n affiliateHead: (PartnersLegalEntity & { countryCode: string; siret: string }) | null;\n isTonnageOption: boolean;\n headOffice: {\n number: string;\n addressFormatted: string;\n country: string;\n countryCode: string | null;\n street: string;\n zipCode: string;\n city: string;\n };\n countryToCountry: {\n fiscalNumber: string | null;\n name: string | null;\n address: CerfaAddress | null;\n };\n incomeDate: Date | null;\n siret: string | null;\n activity: string;\n hasActivityChanged: boolean;\n benefitNormalRate: number;\n deficit: number;\n benefit15: number;\n resultNet: number;\n addedValues15: number;\n addedValues19: number;\n exoneration: number;\n otherAddedValues19: number;\n otherAddedValues0: number;\n isNewBusinessSexies: boolean;\n isYoungBusiness: boolean;\n inDifficultyBusiness: boolean;\n isRuralRevitalizationZone: boolean;\n isJobToRevitalize: boolean;\n isActivityZone: boolean;\n isRestructuration: boolean;\n isUrbanToDynamise: boolean;\n isUrban: boolean;\n isOther: boolean;\n isPriorityZone: boolean;\n isInvestmentBusiness: boolean;\n benefitOrDeficit: number;\n exoneration15: number;\n isImpositionDOMTOM: boolean;\n furnitureIncome: number;\n icomeOther: number;\n income2Dot5: number;\n isSocietyHead: boolean;\n otherSocietyHead: { name: string | null; has: boolean; address: CerfaAddress | null; number: string | null };\n isSocietyDesigned: boolean;\n societyHead: { name: string; fiscalNumber: string; address: CerfaAddress | null };\n hasAccountancyComputerized: boolean;\n hasNotAccountancyComputerized: boolean;\n accountancyComputerizedName: string;\n accountant: Accountant;\n hasOGA: boolean;\n hasViewer: boolean;\n viewer: ViewerDetails;\n council: CouncilDetails;\n ecf: EcfDetails;\n declarer: {\n date: string;\n place: string;\n name: string;\n };\n distributionAmount: { bySociety: number; byEstablishment: number };\n remuneration: number;\n advances: number;\n others: Array<{ label: string; amount: number }>;\n elligible: number;\n noElligible: number;\n amountRemunerations: number;\n remunerations: Cerfa2065Remunerations[];\n diverse: {\n funds: {\n name: string;\n address: string;\n addressDetails: CerfaAddress;\n };\n address: string;\n otherAddresses: Array<{ name: string; address: CerfaAddress }>;\n };\n simplified: {\n amount: number;\n retrocessions: number;\n remainingExerciceStart: LessValuesByRate;\n imputed: LessValuesByRate;\n realized: LessValuesByRate;\n remaining: LessValuesByRate;\n };\n donation: { amount: number; number: number };\n}\n\nexport type PrepareCerfa2065 = {\n idExercice: number;\n idSociety: number;\n idUser: number;\n values: { cerfa2065: AnyCerfa2065Century; cerfa2033?: AnyCerfa2033Century; cerfa2050?: AnyCerfa2050Century };\n};\n\nexport interface Cerfa2065_2025 {\n termination: Termination;\n isNil?: boolean;\n society: Cerfa2065Society;\n period: {\n startDate: string;\n endDate: string;\n months: string;\n };\n isSimplifiedRegime: boolean;\n isDeclarationForGroup: boolean;\n isRealRegime: boolean;\n isPME: boolean;\n fillialeText: string | null;\n affiliateHead: (PartnersLegalEntity & { countryCode: string; siret: string }) | null;\n isTonnageOption: boolean;\n headOffice: {\n number: string;\n addressFormatted: string;\n country: string;\n countryCode: string | null;\n street: string;\n zipCode: string;\n city: string;\n };\n incomeDate: Date | null;\n siret: string | null;\n activity: string;\n hasActivityChanged: boolean;\n benefitNormalRate: number;\n deficit: number;\n benefit15: number;\n resultNet: number;\n addedValues15: number;\n addedValues19: number;\n exoneration: number;\n otherAddedValues19: number;\n otherAddedValues0: number;\n isNewBusinessSexies: boolean;\n isYoungBusiness: boolean;\n franceRurality: boolean;\n isRuralRevitalizationZone: boolean;\n isJobToRevitalize: boolean;\n isActivityZone: boolean;\n isRestructuration: boolean;\n isUrbanToDynamise: boolean;\n isUrban: boolean;\n isOther: boolean;\n isPriorityZone: boolean;\n isInvestmentBusiness: boolean;\n benefitOrDeficit: number;\n exoneration15: number;\n isImpositionDOMTOM: boolean;\n furnitureIncome: number;\n icomeOther: number;\n income2Dot5: number;\n hasAccountancyComputerized: boolean;\n hasNotAccountancyComputerized: boolean;\n accountancyComputerizedName: string;\n accountant: Accountant;\n hasOGA: boolean;\n hasViewer: boolean;\n viewer: ViewerDetails;\n council: CouncilDetails;\n ecf: EcfDetails;\n declarer: {\n date: string;\n place: string;\n name: string;\n };\n distributionAmount: { bySociety: number; byEstablishment: number };\n remuneration: number;\n advances: number;\n others: Array<{ label: string; amount: number }>;\n elligible: number;\n noElligible: number;\n amountRemunerations: number;\n remunerations: Cerfa2065Remunerations[];\n diverse: {\n funds: {\n name: string;\n address: string;\n addressDetails: CerfaAddress;\n };\n address: string;\n otherAddresses: Array<{ name: string; address: CerfaAddress }>;\n };\n simplified: {\n amount: number;\n retrocessions: number;\n remainingExerciceStart: LessValuesByRate;\n imputed: LessValuesByRate;\n realized: LessValuesByRate;\n remaining: LessValuesByRate;\n };\n donation: { amount: number; number: number };\n}\n\nexport type Cerfa2065_2026 = Omit<Cerfa2065_2025, 'viewer' | 'hasOGA' | 'hasViewer'> & {\n // TODO:\n};\n\nexport type AnyCerfa2065Century = Cerfa2065_2024 | Cerfa2065_2025 | Cerfa2065_2026;\n"]}
@@ -38,7 +38,6 @@ export declare class CreateRegistration {
38
38
  idCerfaType: number;
39
39
  amountToPay?: number;
40
40
  date?: string;
41
- isTest?: boolean;
42
41
  forcedValues?: ForcedValues;
43
42
  }
44
43
  export declare class UpdateOrCreateVatRegistration {
@@ -47,7 +46,6 @@ export declare class UpdateOrCreateVatRegistration {
47
46
  endDate: string;
48
47
  payload: AnyCerfa3310_Century;
49
48
  annexPayload?: Cerfa3519_2017;
50
- isTest?: boolean;
51
49
  isManuallyRegistered?: boolean;
52
50
  }
53
51
  export declare class CreateRegistrationDetail {
@@ -1 +1 @@
1
- {"version":3,"file":"CreateRegistration.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,qBAAa,yBAAyB;IAEpC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGrB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,qBAAa,oCAAoC;IAE/C,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;IAGhB,aAAa,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAG3B,eAAe,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IAG7B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGtB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG/B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG/B,iBAAiB,CAAC,EAAE,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C;IAKpB,MAAM,EAAE,MAAM,CAAC;IAKf,IAAI,EAAE,eAAe,CAAC;IAKtB,KAAK,EAAE,gBAAgB,CAAC;IAKxB,MAAM,EAAE,MAAM,CAAC;IAKf,aAAa,EAAE,MAAM,CAAC;IAKtB,OAAO,EAAE,MAAM,CAAC;IAKhB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,qBAAa,kBAAkB;IAG7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,oBAAoB;IAG/B,EAAE,EAAE,MAAM,CAAC;IAKX,OAAO,EAAE,MAAM,CAAC;IAKhB,OAAO,EAAE,MAAM,CAAC;IAIhB,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,EAAE,CAAC;IAKlB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,oBAAoB;IAG/B,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"CreateRegistration.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,qBAAa,yBAAyB;IAEpC,IAAI,CAAC,EAAE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,6 @@ __decorate([
116
115
  IsOptional(),
117
116
  __metadata("design:type", String)
118
117
  ], CreateRegistration.prototype, "date", void 0);
119
- __decorate([
120
- ApiPropertyOptional(),
121
- IsBoolean(),
122
- ToBoolean(),
123
- IsOptional(),
124
- __metadata("design:type", Boolean)
125
- ], CreateRegistration.prototype, "isTest", void 0);
126
118
  __decorate([
127
119
  ApiPropertyOptional({ description: 'Set values manually (not available for all cerfa)' }),
128
120
  IsOptional(),
@@ -134,7 +126,6 @@ export class UpdateOrCreateVatRegistration {
134
126
  endDate;
135
127
  payload;
136
128
  annexPayload;
137
- isTest;
138
129
  isManuallyRegistered;
139
130
  }
140
131
  __decorate([
@@ -160,13 +151,6 @@ __decorate([
160
151
  ApiPropertyOptional(),
161
152
  __metadata("design:type", Object)
162
153
  ], UpdateOrCreateVatRegistration.prototype, "annexPayload", void 0);
163
- __decorate([
164
- ApiPropertyOptional(),
165
- IsBoolean(),
166
- ToBoolean(),
167
- IsOptional(),
168
- __metadata("design:type", Boolean)
169
- ], UpdateOrCreateVatRegistration.prototype, "isTest", void 0);
170
154
  __decorate([
171
155
  ApiPropertyOptional(),
172
156
  IsBoolean(),
@@ -1 +1 @@
1
- {"version":3,"file":"CreateRegistration.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,UAAU,EACV,SAAS,EACT,QAAQ,EACR,GAAG,EACH,YAAY,EACZ,OAAO,EACP,cAAc,EACd,QAAQ,EACR,OAAO,EACP,SAAS,EACT,KAAK,GACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mDAAmD,CAAC;AAK9E,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,8BAA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,SAAS,CAAC,CAAC,CAAC;;qDACG;AAKhB;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,SAAS,CAAC,CAAC,CAAC;;qDACG;AAIhB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;uDACU;AAIlB;IAFC,WAAW,EAAE;IACb,OAAO,EAAE;;qDACQ;AAKlB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;0DACS;AAGxB,MAAM,OAAO,oBAAoB;IAG/B,MAAM,CAAS;CAChB;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACI","sourcesContent":["import {\n IsEnum,\n IsOptional,\n IsBoolean,\n IsNumber,\n Min,\n IsDateString,\n IsArray,\n ValidateNested,\n IsString,\n IsEmail,\n MinLength,\n IsInt,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { CerfaType } from '../../../Enum/CerfaType.js';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';\nimport { Rof } from '../../../Enum/Aspone.js';\nimport { Cerfa3519_2017 } from '../cerfa/3519.js';\nimport { CerfaFormValue } from '../cerfa/ReadCerfa.js';\nimport { UpdatedAnnotation } from './ReadRegistration.js';\nimport { CustomerVatState, CustomerVatType } from '../../../Enum/CustomerVat.js';\nimport { Cerfa2069RCI_2024_Payload } from '../cerfa/2069RCI.js';\nimport { Cerfa2573_2024 } from '../cerfa/2573.js';\nimport { AnyCerfa3310_Century } from '../cerfa/3310.js';\n\nexport class CreateRegistrationSetting {\n @ApiPropertyOptional()\n iban?: string | null;\n\n @ApiPropertyOptional()\n bic?: string | null;\n}\n\nexport class CreateRegistrationSettingFromSociety {\n @ApiPropertyOptional()\n rof: Rof | null;\n\n @ApiPropertyOptional()\n companyTaxRof?: Rof | null;\n\n @ApiPropertyOptional()\n balanceSheetRof?: Rof | null;\n\n @ApiPropertyOptional()\n ogaName?: string | null;\n\n @ApiPropertyOptional()\n ogaId?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressNumero?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressType?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressVoie?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressZipCode?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressCity?: string | null;\n\n @ApiPropertyOptional()\n ogaReference?: string | null;\n\n @ApiPropertyOptional()\n iban?: string | null;\n\n @ApiPropertyOptional()\n bic?: string | null;\n}\n\nexport type ForcedValues_2571 = {\n base?: number;\n regularisation?: number;\n};\n\nexport type ForcedValues = {\n cerfa2571?: ForcedValues_2571;\n cerfa2069RCI?: Cerfa2069RCI_2024_Payload;\n cerfa2573?: Cerfa2573_2024;\n};\n\nexport class CreateRegistration {\n @ApiProperty()\n @IsEnum(CerfaType)\n idCerfaType: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @Min(0)\n @IsOptional()\n amountToPay?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n date?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isTest?: boolean;\n\n @ApiPropertyOptional({ description: 'Set values manually (not available for all cerfa)' })\n @IsOptional()\n forcedValues?: ForcedValues;\n}\n\nexport class UpdateOrCreateVatRegistration {\n @ApiProperty()\n @IsEnum(CerfaType)\n idCerfaType: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n payload: AnyCerfa3310_Century;\n\n @ApiPropertyOptional()\n annexPayload?: Cerfa3519_2017;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isTest?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isManuallyRegistered?: boolean;\n}\n\nexport class CreateRegistrationDetail {\n @ApiProperty()\n @IsArray()\n accountingTransactionIds: number[];\n\n @ApiProperty()\n @IsArray()\n updatedEntries: UpdatedAnnotation;\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n inputs: CerfaFormValue[];\n}\n\nexport class UpdateOrCreateVatAdvance {\n @ApiProperty()\n @IsDateString()\n vatDate: string;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isCA12?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n stateAmount: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amount: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n type: CustomerVatType;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n state: CustomerVatState;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n status: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amountBaseTva: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n comment: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n token: string;\n\n @ApiPropertyOptional()\n idMail: number | null;\n}\n\nexport class CreateVatMigration {\n @ApiPropertyOptional()\n @IsOptional()\n idVatDeclaration?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n limit?: number;\n}\n\nexport class CreateAndSendVatMail {\n @ApiProperty()\n @IsEmail()\n to: string;\n\n @ApiProperty()\n @IsString()\n @MinLength(2)\n subject: string;\n\n @ApiProperty()\n @IsString()\n @MinLength(2)\n content: string;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsArray()\n idFiles: number[];\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n sendByUserId?: number;\n}\n\nexport class DownloadExternalFile {\n @ApiProperty()\n @IsString()\n fileId: string;\n}\n"]}
1
+ {"version":3,"file":"CreateRegistration.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,UAAU,EACV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;IAIlB,OAAO,CAAW;IAKlB,YAAY,CAAU;CACvB;AAxBC;IAFC,WAAW,EAAE;IACb,OAAO,EAAE;;gDACC;AAKX;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,SAAS,CAAC,CAAC,CAAC;;qDACG;AAKhB;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,SAAS,CAAC,CAAC,CAAC;;qDACG;AAIhB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;uDACU;AAIlB;IAFC,WAAW,EAAE;IACb,OAAO,EAAE;;qDACQ;AAKlB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;0DACS;AAGxB,MAAM,OAAO,oBAAoB;IAG/B,MAAM,CAAS;CAChB;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACI","sourcesContent":["import {\n IsEnum,\n IsOptional,\n IsBoolean,\n IsNumber,\n Min,\n IsDateString,\n IsArray,\n ValidateNested,\n IsString,\n IsEmail,\n MinLength,\n IsInt,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { CerfaType } from '../../../Enum/CerfaType.js';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';\nimport { Rof } from '../../../Enum/Aspone.js';\nimport { Cerfa3519_2017 } from '../cerfa/3519.js';\nimport { CerfaFormValue } from '../cerfa/ReadCerfa.js';\nimport { UpdatedAnnotation } from './ReadRegistration.js';\nimport { CustomerVatState, CustomerVatType } from '../../../Enum/CustomerVat.js';\nimport { Cerfa2069RCI_2024_Payload } from '../cerfa/2069RCI.js';\nimport { Cerfa2573_2024 } from '../cerfa/2573.js';\nimport { AnyCerfa3310_Century } from '../cerfa/3310.js';\n\nexport class CreateRegistrationSetting {\n @ApiPropertyOptional()\n iban?: string | null;\n\n @ApiPropertyOptional()\n bic?: string | null;\n}\n\nexport class CreateRegistrationSettingFromSociety {\n @ApiPropertyOptional()\n rof: Rof | null;\n\n @ApiPropertyOptional()\n companyTaxRof?: Rof | null;\n\n @ApiPropertyOptional()\n balanceSheetRof?: Rof | null;\n\n @ApiPropertyOptional()\n ogaName?: string | null;\n\n @ApiPropertyOptional()\n ogaId?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressNumero?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressType?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressVoie?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressZipCode?: string | null;\n\n @ApiPropertyOptional()\n ogaAddressCity?: string | null;\n\n @ApiPropertyOptional()\n ogaReference?: string | null;\n\n @ApiPropertyOptional()\n iban?: string | null;\n\n @ApiPropertyOptional()\n bic?: string | null;\n}\n\nexport type ForcedValues_2571 = {\n base?: number;\n regularisation?: number;\n};\n\nexport type ForcedValues = {\n cerfa2571?: ForcedValues_2571;\n cerfa2069RCI?: Cerfa2069RCI_2024_Payload;\n cerfa2573?: Cerfa2573_2024;\n};\n\nexport class CreateRegistration {\n @ApiProperty()\n @IsEnum(CerfaType)\n idCerfaType: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @Min(0)\n @IsOptional()\n amountToPay?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n date?: string;\n\n @ApiPropertyOptional({ description: 'Set values manually (not available for all cerfa)' })\n @IsOptional()\n forcedValues?: ForcedValues;\n}\n\nexport class UpdateOrCreateVatRegistration {\n @ApiProperty()\n @IsEnum(CerfaType)\n idCerfaType: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n payload: AnyCerfa3310_Century;\n\n @ApiPropertyOptional()\n annexPayload?: Cerfa3519_2017;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isManuallyRegistered?: boolean;\n}\n\nexport class CreateRegistrationDetail {\n @ApiProperty()\n @IsArray()\n accountingTransactionIds: number[];\n\n @ApiProperty()\n @IsArray()\n updatedEntries: UpdatedAnnotation;\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n inputs: CerfaFormValue[];\n}\n\nexport class UpdateOrCreateVatAdvance {\n @ApiProperty()\n @IsDateString()\n vatDate: string;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isCA12?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n stateAmount: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amount: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n type: CustomerVatType;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n state: CustomerVatState;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n status: number;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n amountBaseTva: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n comment: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n token: string;\n\n @ApiPropertyOptional()\n idMail: number | null;\n}\n\nexport class CreateVatMigration {\n @ApiPropertyOptional()\n @IsOptional()\n idVatDeclaration?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n limit?: number;\n}\n\nexport class CreateAndSendVatMail {\n @ApiProperty()\n @IsEmail()\n to: string;\n\n @ApiProperty()\n @IsString()\n @MinLength(2)\n subject: string;\n\n @ApiProperty()\n @IsString()\n @MinLength(2)\n content: string;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsArray()\n idFiles: number[];\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n sendByUserId?: number;\n}\n\nexport class DownloadExternalFile {\n @ApiProperty()\n @IsString()\n fileId: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../ts/utils/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C;;;;;GAKG;AACH,QAAA,MAAM,oBAAoB,GAAI,WAAW,IAAI,EAAE,KAAG,IAwBjD,CAAC;AAgBF,QAAA,MAAM,2BAA2B,GAAI,UAAU,OAAO,EAAE,YAAY,MAAM,KAAG,IAAI,EAGhF,CAAC;AAEF,QAAA,MAAM,6BAA6B,GAAI,QAAQ,MAAM,KAAG,OACe,CAAC;AAExE,QAAA,MAAM,yBAAyB,GAAI,WAAW,IAAI,EAAE,KAAG,IAAI,EAgB1D,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../ts/utils/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C;;;;;GAKG;AACH,QAAA,MAAM,oBAAoB,GAAI,WAAW,IAAI,EAAE,KAAG,IAwBjD,CAAC;AAgBF,QAAA,MAAM,2BAA2B,GAAI,UAAU,OAAO,EAAE,YAAY,MAAM,KAAG,IAAI,EAGhF,CAAC;AAEF,QAAA,MAAM,6BAA6B,GAAI,QAAQ,MAAM,KAAG,OACe,CAAC;AAExE,QAAA,MAAM,yBAAyB,GAAI,WAAW,IAAI,EAAE,KAAG,IAAI,EAiB1D,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,CAAC"}
@@ -70,6 +70,7 @@ const getListIdRolesUsedForTask = (listRoles) => {
70
70
  Role.SATISFACTION,
71
71
  Role.FRONT_OFFICE,
72
72
  Role.DATA_OFFICER,
73
+ Role.SDR,
73
74
  ].includes(r));
74
75
  return listIdRoles;
75
76
  };
@@ -1 +1 @@
1
- {"version":3,"file":"task.js","sourceRoot":"","sources":["../../ts/utils/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,O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,OAAO;QACZ,IAAI,CAAC,MAAM;QACX,IAAI,CAAC,WAAW;QAChB,IAAI,CAAC,gBAAgB;QACrB,IAAI,CAAC,iBAAiB;QACtB,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,YAAY;QACjB,IAAI,CAAC,YAAY;QACjB,IAAI,CAAC,YAAY;KAClB,CAAC,QAAQ,CAAC,CAAC,CAAC,CACd,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,CAAC","sourcesContent":["import { Role } from '../types/Enum/Role.js';\nimport { TaskResponseType, RoleAvailableForTask } from '../types/Enum/TaskResponseType.js';\n\n/**\n * Use getListIdRolesUsedForTask instead\n * @param listRoles\n * @returns\n * @deprecated\n */\nconst getIdRoleUsedForTask = (listRoles: Role[]): Role => {\n let idRole = 0;\n if (listRoles.includes(Role.COMMERCIAL)) {\n idRole = Role.COMMERCIAL;\n } else if (listRoles.includes(Role.JURIDIC)) {\n idRole = Role.JURIDIC;\n } else if (listRoles.includes(Role.SOCIAL)) {\n idRole = Role.SOCIAL;\n } else if (listRoles.includes(Role.FACTURATION)) {\n idRole = Role.FACTURATION;\n } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {\n idRole = Role.CUSTOMER_SUCCESS;\n } else if (listRoles.includes(Role.TECHNICAL_ADVISOR)) {\n idRole = Role.TECHNICAL_ADVISOR;\n } else if (listRoles.includes(Role.ON_BOARDER)) {\n idRole = Role.ON_BOARDER;\n } else if (listRoles.includes(Role.SATISFACTION)) {\n idRole = Role.SATISFACTION;\n } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n idRole = Role.FRONT_OFFICE;\n } else if (listRoles.includes(Role.DATA_OFFICER)) {\n idRole = Role.DATA_OFFICER;\n }\n return idRole;\n};\n\n// const getIdRoleUsedForManagerTask = (listRoles: number[]): number => {\n// let idRole = 0;\n// if (listRoles.includes(Role.COMMERCIAL)) {\n// idRole = Role.MANAGER;\n// } else if (listRoles.includes(Role.JURIDIC) || listRoles.includes(Role.SOCIAL) || listRoles.includes(Role.FACTURATION)) {\n// idRole = Role.MANAGER;\n// } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {\n// idRole = Role.MANAGER;\n// } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n// idRole = Role.MANAGER;\n// }\n// return idRole;\n// };\n\nconst getIdRoleUsedForAttribution = (isIntern: boolean, idTaskType: number): Role[] => {\n const taskTypeList = isIntern === true ? TaskResponseType.INTERN.types : TaskResponseType.EXTERN.types;\n return taskTypeList.filter((taskType) => taskType.id === idTaskType).map((r) => r.role);\n};\n\nconst getIdRoleUsedForGetTaskOfUser = (idRole: number): boolean =>\n !!Object.values(RoleAvailableForTask).find((role) => role === idRole);\n\nconst getListIdRolesUsedForTask = (listRoles: Role[]): Role[] => {\n const listIdRoles: Role[] = listRoles.filter((r) =>\n [\n Role.COMMERCIAL,\n Role.JURIDIC,\n Role.SOCIAL,\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.TECHNICAL_ADVISOR,\n Role.ON_BOARDER,\n Role.SATISFACTION,\n Role.FRONT_OFFICE,\n Role.DATA_OFFICER,\n ].includes(r),\n );\n return listIdRoles;\n};\n\nexport { getIdRoleUsedForTask, getIdRoleUsedForAttribution, getIdRoleUsedForGetTaskOfUser, getListIdRolesUsedForTask };\n"]}
1
+ {"version":3,"file":"task.js","sourceRoot":"","sources":["../../ts/utils/task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE3F;;;;;GAKG;AACH,MAAM,oBAAoB,GAAG,CAAC,SAAiB,EAAQ,EAAE;IACvD,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,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CAAC,GAAG;KACT,CAAC,QAAQ,CAAC,CAAC,CAAC,CACd,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,yBAAyB,EAAE,CAAC","sourcesContent":["import { Role } from '../types/Enum/Role.js';\nimport { TaskResponseType, RoleAvailableForTask } from '../types/Enum/TaskResponseType.js';\n\n/**\n * Use getListIdRolesUsedForTask instead\n * @param listRoles\n * @returns\n * @deprecated\n */\nconst getIdRoleUsedForTask = (listRoles: Role[]): Role => {\n let idRole = 0;\n if (listRoles.includes(Role.COMMERCIAL)) {\n idRole = Role.COMMERCIAL;\n } else if (listRoles.includes(Role.JURIDIC)) {\n idRole = Role.JURIDIC;\n } else if (listRoles.includes(Role.SOCIAL)) {\n idRole = Role.SOCIAL;\n } else if (listRoles.includes(Role.FACTURATION)) {\n idRole = Role.FACTURATION;\n } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {\n idRole = Role.CUSTOMER_SUCCESS;\n } else if (listRoles.includes(Role.TECHNICAL_ADVISOR)) {\n idRole = Role.TECHNICAL_ADVISOR;\n } else if (listRoles.includes(Role.ON_BOARDER)) {\n idRole = Role.ON_BOARDER;\n } else if (listRoles.includes(Role.SATISFACTION)) {\n idRole = Role.SATISFACTION;\n } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n idRole = Role.FRONT_OFFICE;\n } else if (listRoles.includes(Role.DATA_OFFICER)) {\n idRole = Role.DATA_OFFICER;\n }\n return idRole;\n};\n\n// const getIdRoleUsedForManagerTask = (listRoles: number[]): number => {\n// let idRole = 0;\n// if (listRoles.includes(Role.COMMERCIAL)) {\n// idRole = Role.MANAGER;\n// } else if (listRoles.includes(Role.JURIDIC) || listRoles.includes(Role.SOCIAL) || listRoles.includes(Role.FACTURATION)) {\n// idRole = Role.MANAGER;\n// } else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {\n// idRole = Role.MANAGER;\n// } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n// idRole = Role.MANAGER;\n// }\n// return idRole;\n// };\n\nconst getIdRoleUsedForAttribution = (isIntern: boolean, idTaskType: number): Role[] => {\n const taskTypeList = isIntern === true ? TaskResponseType.INTERN.types : TaskResponseType.EXTERN.types;\n return taskTypeList.filter((taskType) => taskType.id === idTaskType).map((r) => r.role);\n};\n\nconst getIdRoleUsedForGetTaskOfUser = (idRole: number): boolean =>\n !!Object.values(RoleAvailableForTask).find((role) => role === idRole);\n\nconst getListIdRolesUsedForTask = (listRoles: Role[]): Role[] => {\n const listIdRoles: Role[] = listRoles.filter((r) =>\n [\n Role.COMMERCIAL,\n Role.JURIDIC,\n Role.SOCIAL,\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.TECHNICAL_ADVISOR,\n Role.ON_BOARDER,\n Role.SATISFACTION,\n Role.FRONT_OFFICE,\n Role.DATA_OFFICER,\n Role.SDR,\n ].includes(r),\n );\n return listIdRoles;\n};\n\nexport { getIdRoleUsedForTask, getIdRoleUsedForAttribution, getIdRoleUsedForGetTaskOfUser, getListIdRolesUsedForTask };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"webmail.d.ts","sourceRoot":"","sources":["../../ts/utils/webmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,QAAA,MAAM,qBAAqB,GAAI,WAAW,MAAM,EAAE,KAAG,IAiCpD,CAAC;AAEF,QAAA,MAAM,0BAA0B,GAAI,WAAW,MAAM,EAAE,KAAG,IAAI,EAmB7D,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,CAAC"}
1
+ {"version":3,"file":"webmail.d.ts","sourceRoot":"","sources":["../../ts/utils/webmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,QAAA,MAAM,qBAAqB,GAAI,WAAW,MAAM,EAAE,KAAG,IAmCpD,CAAC;AAEF,QAAA,MAAM,0BAA0B,GAAI,WAAW,MAAM,EAAE,KAAG,IAAI,EAuB7D,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,CAAC"}
@@ -2,7 +2,10 @@ import { Role } from '../types/Enum/Role.js';
2
2
  import { isItThisEnv } from './brands.js';
3
3
  const getIdRoleUsedForEmail = (listRoles) => {
4
4
  let idRole = Role.CUSTOMER_SUCCESS;
5
- if (listRoles.includes(Role.FACTURATION)) {
5
+ if (listRoles.includes(Role.SDR)) {
6
+ idRole = Role.SDR;
7
+ }
8
+ else if (listRoles.includes(Role.FACTURATION)) {
6
9
  idRole = Role.FACTURATION;
7
10
  }
8
11
  else if (listRoles.includes(Role.TECHNICAL_ADVISOR)) {
@@ -47,7 +50,11 @@ const getIdRoleUsedForEmail = (listRoles) => {
47
50
  return idRole;
48
51
  };
49
52
  const getListIdRolesUsedForEmail = (listRoles) => {
53
+ if (listRoles.includes(Role.SDR)) {
54
+ return [Role.SDR];
55
+ }
50
56
  const listIdRoles = listRoles.filter((r) => [
57
+ Role.SDR,
51
58
  Role.FACTURATION,
52
59
  Role.CUSTOMER_SUCCESS,
53
60
  Role.TECHNICAL_ADVISOR,
@@ -1 +1 @@
1
- {"version":3,"file":"webmail.js","sourceRoot":"","sources":["../../ts/utils/webmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,qBAAqB,GAAG,CAAC,SAAmB,EAAQ,EAAE;IAC1D,IAAI,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC;IACnC,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;QACzC,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;SAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,I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AAM,GAAG,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;SAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/C,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;SAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QACjD,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,SAAmB,EAAU,EAAE;IACjE,MAAM,WAAW,GAAW,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CACjD;QACE,IAAI,CAAC,WAAW;QAChB,IAAI,CAAC,gBAAgB;QACrB,IAAI,CAAC,iBAAiB;QACtB,IAAI,CAAC,YAAY;QACjB,IAAI,CAAC,oBAAoB;QACzB,IAAI,CAAC,YAAY;QACjB,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,iBAAiB;QACtB,IAAI,CAAC,iBAAiB;QACtB,IAAI,CAAC,OAAO;QACZ,IAAI,CAAC,MAAM;QACX,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,YAAY;KAClB,CAAC,QAAQ,CAAC,CAAC,CAAC,CACd,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,CAAC","sourcesContent":["import { Role } from '../types/Enum/Role.js';\nimport { isItThisEnv } from './brands.js';\n\nconst getIdRoleUsedForEmail = (listRoles: number[]): Role => {\n let idRole = Role.CUSTOMER_SUCCESS;\n if (listRoles.includes(Role.FACTURATION)) {\n idRole = Role.FACTURATION;\n } else if (listRoles.includes(Role.TECHNICAL_ADVISOR)) {\n idRole = Role.TECHNICAL_ADVISOR;\n } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n if (isItThisEnv('Pourcentage')) {\n idRole = Role.FRONT_OFFICE;\n } else {\n // idRole = Role.FRONT_OFFICE;\n idRole = Role.CUSTOMER_SUCCESS;\n }\n } else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {\n idRole = Role.FRONT_OFFICE_EXPRESS;\n } else if (listRoles.includes(Role.DATA_OFFICER)) {\n idRole = Role.DATA_OFFICER;\n } else if (listRoles.includes(Role.COMMERCIAL)) {\n idRole = Role.COMMERCIAL;\n } else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {\n idRole = Role.EXPERT_ACCOUNTANT;\n } else if (listRoles.includes(Role.JURIDICAL_SUPPORT)) {\n idRole = Role.JURIDICAL_SUPPORT;\n } else if (listRoles.includes(Role.JURIDIC)) {\n idRole = Role.JURIDIC;\n } else if (listRoles.includes(Role.SOCIAL)) {\n idRole = Role.SOCIAL;\n } else if (listRoles.includes(Role.ON_BOARDER)) {\n idRole = Role.ON_BOARDER;\n } else if (listRoles.includes(Role.SATISFACTION)) {\n idRole = Role.SATISFACTION;\n }\n return idRole;\n};\n\nconst getListIdRolesUsedForEmail = (listRoles: number[]): Role[] => {\n const listIdRoles: Role[] = listRoles.filter((r) =>\n [\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.TECHNICAL_ADVISOR,\n Role.FRONT_OFFICE,\n Role.FRONT_OFFICE_EXPRESS,\n Role.DATA_OFFICER,\n Role.COMMERCIAL,\n Role.EXPERT_ACCOUNTANT,\n Role.JURIDICAL_SUPPORT,\n Role.JURIDIC,\n Role.SOCIAL,\n Role.ON_BOARDER,\n Role.SATISFACTION,\n ].includes(r),\n );\n return listIdRoles;\n};\n\nexport { getIdRoleUsedForEmail, getListIdRolesUsedForEmail };\n"]}
1
+ {"version":3,"file":"webmail.js","sourceRoot":"","sources":["../../ts/utils/webmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAA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CAAC,iBAAiB;QACtB,IAAI,CAAC,iBAAiB;QACtB,IAAI,CAAC,OAAO;QACZ,IAAI,CAAC,MAAM;QACX,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,YAAY;KAClB,CAAC,QAAQ,CAAC,CAAC,CAAC,CACd,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC;AAEF,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,CAAC","sourcesContent":["import { Role } from '../types/Enum/Role.js';\nimport { isItThisEnv } from './brands.js';\n\nconst getIdRoleUsedForEmail = (listRoles: number[]): Role => {\n let idRole = Role.CUSTOMER_SUCCESS;\n if (listRoles.includes(Role.SDR)) {\n idRole = Role.SDR;\n } else if (listRoles.includes(Role.FACTURATION)) {\n idRole = Role.FACTURATION;\n } else if (listRoles.includes(Role.TECHNICAL_ADVISOR)) {\n idRole = Role.TECHNICAL_ADVISOR;\n } else if (listRoles.includes(Role.FRONT_OFFICE)) {\n if (isItThisEnv('Pourcentage')) {\n idRole = Role.FRONT_OFFICE;\n } else {\n // idRole = Role.FRONT_OFFICE;\n idRole = Role.CUSTOMER_SUCCESS;\n }\n } else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {\n idRole = Role.FRONT_OFFICE_EXPRESS;\n } else if (listRoles.includes(Role.DATA_OFFICER)) {\n idRole = Role.DATA_OFFICER;\n } else if (listRoles.includes(Role.COMMERCIAL)) {\n idRole = Role.COMMERCIAL;\n } else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {\n idRole = Role.EXPERT_ACCOUNTANT;\n } else if (listRoles.includes(Role.JURIDICAL_SUPPORT)) {\n idRole = Role.JURIDICAL_SUPPORT;\n } else if (listRoles.includes(Role.JURIDIC)) {\n idRole = Role.JURIDIC;\n } else if (listRoles.includes(Role.SOCIAL)) {\n idRole = Role.SOCIAL;\n } else if (listRoles.includes(Role.ON_BOARDER)) {\n idRole = Role.ON_BOARDER;\n } else if (listRoles.includes(Role.SATISFACTION)) {\n idRole = Role.SATISFACTION;\n }\n return idRole;\n};\n\nconst getListIdRolesUsedForEmail = (listRoles: number[]): Role[] => {\n if (listRoles.includes(Role.SDR)) {\n return [Role.SDR];\n }\n const listIdRoles: Role[] = listRoles.filter((r) =>\n [\n Role.SDR,\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.TECHNICAL_ADVISOR,\n Role.FRONT_OFFICE,\n Role.FRONT_OFFICE_EXPRESS,\n Role.DATA_OFFICER,\n Role.COMMERCIAL,\n Role.EXPERT_ACCOUNTANT,\n Role.JURIDICAL_SUPPORT,\n Role.JURIDIC,\n Role.SOCIAL,\n Role.ON_BOARDER,\n Role.SATISFACTION,\n ].includes(r),\n );\n return listIdRoles;\n};\n\nexport { getIdRoleUsedForEmail, getListIdRolesUsedForEmail };\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "2.0.28",
3
+ "version": "2.0.29",
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
  "type": "module",
@@ -38,6 +38,7 @@ export enum RoleAvailableForTask {
38
38
  REFERENT_CLIENT = Role.EXPERT_ACCOUNTANT,
39
39
  REFERENT_LITIGE = Role.EXPERT_ACCOUNTANT,
40
40
  DATA_OFFICER = Role.DATA_OFFICER,
41
+ SDR = Role.SDR,
41
42
  }
42
43
 
43
44
  export const TaskResponseType = {
@@ -8,181 +8,6 @@ export class ParamsGenerate2031 {
8
8
  isNil: boolean;
9
9
  }
10
10
 
11
- export interface Cerfa2031 {
12
- termination: Termination;
13
- isNil: boolean;
14
- period: { months: number };
15
- header: {
16
- opening: string;
17
- closure: string;
18
- realSystem: boolean;
19
- simplifiedAccounting: boolean;
20
- vat: boolean;
21
- tonnageTaxation: boolean;
22
- simplifiedSystem: boolean;
23
- };
24
- identification: {
25
- companyDenomination: string;
26
- companyAddress: string;
27
- address: CerfaAddress;
28
- phoneNumber: string;
29
- email: string;
30
- siren: string;
31
- declarantEmail: string;
32
- declarantAddress: string;
33
- declarantZipCode: string;
34
- declarantCity: string;
35
- declarantCountryCode: string;
36
- lastAddress: string;
37
- lastAddressDetails: CerfaAddress | null;
38
- otherAddresses: Array<{ name: string; address: CerfaAddress }>;
39
- };
40
- miscellaneous: {
41
- activities: string;
42
- onJobList: boolean;
43
- ownerInfos: string;
44
- ownerInfosName: string;
45
- ownerInfosAddress: CerfaAddress;
46
- otherEstablishmentsAddresses: string;
47
- };
48
- recapitulation: {
49
- column2: number;
50
- cdSum: number;
51
- col1: { total: number };
52
- col2: { total: number };
53
- taxableBenefit: number;
54
- deductibleDeficit: number;
55
- netHandoverResult: number;
56
- incomeTaxSubjectEarnings: number;
57
- netExemptIncome: number;
58
- shareToDeduce: number;
59
- incomeTaxExemptEarnings: number;
60
- shortTermDepreciation: number;
61
- column1: number;
62
- creditTaxOption: boolean;
63
- shareEquipmentGrant: number;
64
- partnershipFiscalResult: number;
65
- addedValue: {
66
- privateTaxed: number;
67
- longTermDiffered: number;
68
- exonerated: number;
69
- longTermExonerated: number;
70
- shortTermExonerated: number;
71
- longTerm: number;
72
- };
73
- exemption: {
74
- newCompanyArt: boolean;
75
- zfuArt: boolean;
76
- zrrArt: boolean;
77
- reorganisationArt: boolean;
78
- freeZoneActivityArt: boolean;
79
- others: boolean;
80
- youngCompaniesArt: boolean;
81
- budArt: boolean;
82
- developmentZoneArt: boolean;
83
- taxableAddedValue: number;
84
- professionnalProfit: number;
85
- };
86
- industrialBenefits: {
87
- benefits: number;
88
- deficit: number;
89
- taxableBenefitIncome: {
90
- shortTermGrant: number;
91
- shortTermDepreciation: number;
92
- };
93
- addedValue: {
94
- longTermNet: number;
95
- nonProfessionalBenefitExemption: number;
96
- };
97
- };
98
- computerizedAccounting?: {
99
- yes: boolean;
100
- no: boolean;
101
- softwareName: string;
102
- hasOGA: boolean;
103
- hasViewer: boolean;
104
- professionalAccountantInfos: string;
105
- place: string;
106
- date: string;
107
- declarantOccupation: string;
108
- signature: string;
109
- ecf: EcfDetails;
110
- accountant: Accountant;
111
- viewer: ViewerDetails;
112
- council: CouncilDetails;
113
- serviceProvider: string;
114
- };
115
- termination: Termination;
116
- };
117
- benefitsDeficitsRepartition: {
118
- list: Array<{
119
- managerPartner: 'Oui' | 'Non';
120
- industrialBenefits: string;
121
- share0: number; // Professionnel
122
- share1: number; // Non Professionnel
123
- taxableAddedValueShare: number;
124
- label: string;
125
- siren: string;
126
- quality: string;
127
- zipCode: string;
128
- address: string;
129
- city: string;
130
- countryCode: string;
131
- isPhysic: boolean;
132
- birthdate?: string;
133
- cityOfBirth?: string;
134
- zipCodeBirth?: string;
135
- fiscalNumber?: string;
136
- marriedName?: string;
137
- firstname?: string;
138
- lastname?: string;
139
- countryCodeOfBirth?: string;
140
- }>;
141
- distributedBenefitsAmount: {
142
- taxableAddedValueShare: number;
143
- share: string;
144
- };
145
- };
146
- generalExpensesList: {
147
- receptionExpenses: number;
148
- gift: number;
149
- };
150
- simplifiedTaxationSystemCompanies: {
151
- grossSalary: string;
152
- retrocessingFee: string;
153
- directDebitAmount: string;
154
- capitalSupplyAmount: string;
155
- list: Array<{
156
- nonDepreciableImmobilization: number;
157
- reassessValue: number;
158
- purchaseValue: number;
159
- addedValue: number;
160
- }>;
161
- };
162
- nonProfessionalIndustrialBenefits: {
163
- rentalPropretySocialContribution: {
164
- benefit: number;
165
- deficit: number;
166
- };
167
- rentalProprety: {
168
- benefit: number;
169
- deficit: number;
170
- };
171
- leaseManagement: {
172
- benefit: number;
173
- deficit: number;
174
- };
175
- collectiveRaceHorseOwnership: {
176
- benefit: number;
177
- deficit: number;
178
- };
179
- others: {
180
- benefit: number;
181
- deficit: number;
182
- };
183
- };
184
- }
185
-
186
11
  export interface Cerfa2031_2024 {
187
12
  termination: Termination;
188
13
  isNil: boolean;
@@ -539,15 +364,27 @@ export interface Cerfa2031_2025 {
539
364
  };
540
365
  }
541
366
 
367
+ export type Cerfa2031_2026 = {
368
+ [K in keyof Cerfa2031_2025]: K extends 'recapitulation'
369
+ ? {
370
+ [P in keyof Cerfa2031_2025['recapitulation']]: P extends 'computerizedAccounting'
371
+ ? Cerfa2031_2025['recapitulation']['computerizedAccounting'] extends object
372
+ ? Omit<Cerfa2031_2025['recapitulation']['computerizedAccounting'], 'viewer' | 'hasOGA' | 'hasViewer'>
373
+ : Cerfa2031_2025['recapitulation']['computerizedAccounting']
374
+ : Cerfa2031_2025['recapitulation'][P];
375
+ }
376
+ : Cerfa2031_2025[K];
377
+ };
378
+
542
379
  export type Prepare2031Params = {
543
380
  idSociety: number;
544
381
  idExercice: number;
545
382
  idUser: number;
546
383
  values: {
547
- cerfa2031: Cerfa2031 | Cerfa2031_2024;
384
+ cerfa2031: AnyCerfa2031Century;
548
385
  cerfa2033?: AnyCerfa2033Century;
549
386
  cerfa2050?: AnyCerfa2050Century;
550
387
  };
551
388
  };
552
389
 
553
- export type AnyCerfa2031Century = Cerfa2031 | Cerfa2031_2024 | Cerfa2031_2025;
390
+ export type AnyCerfa2031Century = Cerfa2031_2024 | Cerfa2031_2025 | Cerfa2031_2026;