@silexpert/core 1.1.331 → 1.1.333

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 (142) hide show
  1. package/dist/cjs/api/resources/AccountingFiles.d.ts.map +1 -1
  2. package/dist/cjs/api/resources/AccountingFiles.js +3 -0
  3. package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
  4. package/dist/cjs/api/resources/CompanyCreationForm.d.ts +10 -0
  5. package/dist/cjs/api/resources/CompanyCreationForm.d.ts.map +1 -0
  6. package/dist/cjs/api/resources/CompanyCreationForm.js +23 -0
  7. package/dist/cjs/api/resources/CompanyCreationForm.js.map +1 -0
  8. package/dist/cjs/api/resources/SalariesFile.d.ts +1 -1
  9. package/dist/cjs/api/resources/SalariesFile.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/SalariesFile.js.map +1 -1
  11. package/dist/cjs/api/resources.d.ts +2 -0
  12. package/dist/cjs/api/resources.d.ts.map +1 -1
  13. package/dist/cjs/api/resources.js +2 -0
  14. package/dist/cjs/api/resources.js.map +1 -1
  15. package/dist/cjs/types/Enum/FiscalRegime.d.ts +5 -0
  16. package/dist/cjs/types/Enum/FiscalRegime.d.ts.map +1 -1
  17. package/dist/cjs/types/Enum/FiscalRegime.js +28 -1
  18. package/dist/cjs/types/Enum/FiscalRegime.js.map +1 -1
  19. package/dist/cjs/types/Enum/LegalForm.d.ts +2 -1
  20. package/dist/cjs/types/Enum/LegalForm.d.ts.map +1 -1
  21. package/dist/cjs/types/Enum/LegalForm.js +10 -0
  22. package/dist/cjs/types/Enum/LegalForm.js.map +1 -1
  23. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
  24. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +7 -0
  26. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  27. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts +107 -0
  28. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts.map +1 -0
  29. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js +3 -0
  30. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js.map +1 -0
  31. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +196 -0
  32. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -0
  33. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +737 -0
  34. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -0
  35. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts +6 -0
  36. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts.map +1 -0
  37. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js +24 -0
  38. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js.map +1 -0
  39. package/dist/cjs/types/Interface/api/societyConfig/update.d.ts +1 -0
  40. package/dist/cjs/types/Interface/api/societyConfig/update.d.ts.map +1 -1
  41. package/dist/cjs/types/Interface/api/societyConfig/update.js +7 -0
  42. package/dist/cjs/types/Interface/api/societyConfig/update.js.map +1 -1
  43. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
  44. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  45. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -0
  46. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  47. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts +18 -0
  48. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts.map +1 -1
  49. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +4 -1
  50. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -1
  51. package/dist/cjs/types/Interface/models/ICompanyCreationForm.d.ts +12 -0
  52. package/dist/cjs/types/Interface/models/ICompanyCreationForm.d.ts.map +1 -0
  53. package/dist/cjs/types/Interface/models/ICompanyCreationForm.js +3 -0
  54. package/dist/cjs/types/Interface/models/ICompanyCreationForm.js.map +1 -0
  55. package/dist/cjs/types/Interface/models/ISocietyConfig.d.ts +1 -0
  56. package/dist/cjs/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
  57. package/dist/cjs/types/Interface/models/ISocietyConfig.js.map +1 -1
  58. package/dist/cjs/types/index.d.ts +4 -0
  59. package/dist/cjs/types/index.d.ts.map +1 -1
  60. package/dist/cjs/types/index.js +4 -0
  61. package/dist/cjs/types/index.js.map +1 -1
  62. package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
  63. package/dist/mjs/api/resources/AccountingFiles.d.ts.map +1 -1
  64. package/dist/mjs/api/resources/AccountingFiles.js +3 -0
  65. package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
  66. package/dist/mjs/api/resources/CompanyCreationForm.d.ts +10 -0
  67. package/dist/mjs/api/resources/CompanyCreationForm.d.ts.map +1 -0
  68. package/dist/mjs/api/resources/CompanyCreationForm.js +23 -0
  69. package/dist/mjs/api/resources/CompanyCreationForm.js.map +1 -0
  70. package/dist/mjs/api/resources/SalariesFile.d.ts +1 -1
  71. package/dist/mjs/api/resources/SalariesFile.d.ts.map +1 -1
  72. package/dist/mjs/api/resources/SalariesFile.js.map +1 -1
  73. package/dist/mjs/api/resources.d.ts +2 -0
  74. package/dist/mjs/api/resources.d.ts.map +1 -1
  75. package/dist/mjs/api/resources.js +2 -0
  76. package/dist/mjs/api/resources.js.map +1 -1
  77. package/dist/mjs/types/Enum/FiscalRegime.d.ts +5 -0
  78. package/dist/mjs/types/Enum/FiscalRegime.d.ts.map +1 -1
  79. package/dist/mjs/types/Enum/FiscalRegime.js +27 -0
  80. package/dist/mjs/types/Enum/FiscalRegime.js.map +1 -1
  81. package/dist/mjs/types/Enum/LegalForm.d.ts +2 -1
  82. package/dist/mjs/types/Enum/LegalForm.d.ts.map +1 -1
  83. package/dist/mjs/types/Enum/LegalForm.js +10 -0
  84. package/dist/mjs/types/Enum/LegalForm.js.map +1 -1
  85. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
  86. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  87. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +9 -1
  88. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  89. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts +107 -0
  90. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts.map +1 -0
  91. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js +2 -0
  92. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js.map +1 -0
  93. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +196 -0
  94. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -0
  95. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +897 -0
  96. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -0
  97. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts +6 -0
  98. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts.map +1 -0
  99. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js +21 -0
  100. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js.map +1 -0
  101. package/dist/mjs/types/Interface/api/societyConfig/update.d.ts +1 -0
  102. package/dist/mjs/types/Interface/api/societyConfig/update.d.ts.map +1 -1
  103. package/dist/mjs/types/Interface/api/societyConfig/update.js +8 -0
  104. package/dist/mjs/types/Interface/api/societyConfig/update.js.map +1 -1
  105. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
  106. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  107. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -0
  108. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  109. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts +18 -0
  110. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts.map +1 -1
  111. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +4 -0
  112. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -1
  113. package/dist/mjs/types/Interface/models/ICompanyCreationForm.d.ts +12 -0
  114. package/dist/mjs/types/Interface/models/ICompanyCreationForm.d.ts.map +1 -0
  115. package/dist/mjs/types/Interface/models/ICompanyCreationForm.js +2 -0
  116. package/dist/mjs/types/Interface/models/ICompanyCreationForm.js.map +1 -0
  117. package/dist/mjs/types/Interface/models/ISocietyConfig.d.ts +1 -0
  118. package/dist/mjs/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
  119. package/dist/mjs/types/Interface/models/ISocietyConfig.js.map +1 -1
  120. package/dist/mjs/types/index.d.ts +4 -0
  121. package/dist/mjs/types/index.d.ts.map +1 -1
  122. package/dist/mjs/types/index.js +4 -0
  123. package/dist/mjs/types/index.js.map +1 -1
  124. package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
  125. package/package.json +1 -1
  126. package/ts/api/resources/AccountingFiles.ts +5 -0
  127. package/ts/api/resources/CompanyCreationForm.ts +29 -0
  128. package/ts/api/resources/SalariesFile.ts +1 -1
  129. package/ts/api/resources.ts +2 -0
  130. package/ts/types/Enum/FiscalRegime.ts +28 -0
  131. package/ts/types/Enum/LegalForm.ts +10 -0
  132. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +9 -1
  133. package/ts/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.ts +110 -0
  134. package/ts/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.ts +646 -0
  135. package/ts/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.ts +10 -0
  136. package/ts/types/Interface/api/societyConfig/update.ts +5 -0
  137. package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -1
  138. package/ts/types/Interface/api/vatDeclaration/ReadVatDeclaration.ts +11 -0
  139. package/ts/types/Interface/models/ICompanyCreationForm.ts +13 -0
  140. package/ts/types/Interface/models/ISocietyConfig.ts +1 -0
  141. package/ts/types/index.ts +4 -0
  142. package/ts/utils/vat/3310/century23.ts +1 -1
@@ -15,6 +15,11 @@ export class AccountingFiles extends Resource {
15
15
  sendAccountingFiles.append('emissionDate', params.emissionDate.toString());
16
16
  }
17
17
 
18
+ if (params.withSocketReturn) {
19
+ sendAccountingFiles.append('withSocketReturn', params.withSocketReturn.toString());
20
+ }
21
+
22
+
18
23
  params.files.forEach((file) => {
19
24
  sendAccountingFiles.append('files', file);
20
25
  });
@@ -0,0 +1,29 @@
1
+ import { CreateCompanyCreationForm, ICompanyCreationForm } from '../../types';
2
+ import { Resource } from '../Resource';
3
+
4
+
5
+ export class CompanyCreationForm extends Resource {
6
+ create(body: CreateCompanyCreationForm): Promise<ICompanyCreationForm> {
7
+ return this.axios.$post('/company-creation-form', body);
8
+ }
9
+
10
+ get(id: number, signal?: AbortSignal): Promise<ICompanyCreationForm> {
11
+ return this.axios.$get(`/company-creation-form/${id}`, {
12
+ ...(signal ? { signal } : {}),
13
+ });
14
+ }
15
+
16
+ getBySociety(idSociety: number, signal?: AbortSignal): Promise<ICompanyCreationForm> {
17
+ return this.axios.$get(`/societies/${idSociety}/company-creation-form`, {
18
+ ...(signal ? { signal } : {}),
19
+ });
20
+ }
21
+
22
+ update(id: number, body: CreateCompanyCreationForm): Promise<ICompanyCreationForm> {
23
+ return this.axios.$put(`/company-creation-form/${id}`, body);
24
+ }
25
+
26
+ delete(id: number): Promise<true> {
27
+ return this.axios.$delete(`/company-creation-form/${id}`);
28
+ }
29
+ }
@@ -8,7 +8,7 @@ export class SalariesFile extends Resource {
8
8
  return this.axios.$post('salariesFile', params);
9
9
  }
10
10
 
11
- createForSociety(idSociety: number, params: CreateSalariesFile): Promise<ReadSalariesFile> {
11
+ createForSociety(idSociety: number, params: CreateSalariesFile): Promise<ReadSalariesFile[]> {
12
12
  const formData = new FormData();
13
13
  Object.entries(params).forEach(([key, value]) => {
14
14
  if (value || value === false || value === 0) {
@@ -163,6 +163,7 @@ import { Regulation } from './resources/Regulation';
163
163
  import { StatisticDataOfficer } from './resources/statistic/DataOfficer';
164
164
  import { UserSocietyPermission } from './resources/UserSocietyPermission';
165
165
  import { BalanceSheetSupervision } from './resources/BalanceSheetSupervision';
166
+ import { CompanyCreationForm } from './resources/CompanyCreationForm';
166
167
  import { BankConnection } from './resources/BankConnection';
167
168
 
168
169
  export const resources = {
@@ -330,6 +331,7 @@ export const resources = {
330
331
  regulation: Regulation,
331
332
  userSocietyPermission: UserSocietyPermission,
332
333
  balanceSheetSupervision: BalanceSheetSupervision,
334
+ companyCreationForm: CompanyCreationForm,
333
335
  project: Project,
334
336
  bankConnection: BankConnection,
335
337
  };
@@ -21,3 +21,31 @@ export const FiscalRegimeList: { label: string; id: number; designation: string
21
21
  designation: 'N/A - Aucun',
22
22
  },
23
23
  ];
24
+
25
+ export const CompanyCreationFiscalRegimeOptions: { label: string; description: string;idFiscalRegime: FiscalRegime | null }[] = [
26
+ {
27
+ label: 'BIC Réel simplifié',
28
+ description: 'Taxe sur les bénéfices',
29
+ idFiscalRegime: FiscalRegime.RS,
30
+ },
31
+ {
32
+ label: 'BIC Réel normal',
33
+ description: 'Taxe sur les revenus personnels',
34
+ idFiscalRegime: FiscalRegime.RN,
35
+ },
36
+ {
37
+ label: 'Micro-entreprise',
38
+ description: 'Uniquement pour les micro-entreprises',
39
+ idFiscalRegime: null,
40
+ },
41
+ {
42
+ label: 'Option pour l\'impôt sur les sociétés',
43
+ description: 'Réduction d\'impôt dans certain cas',
44
+ idFiscalRegime: null,
45
+ },
46
+ {
47
+ label: 'Je ne sais pas',
48
+ description: 'On vous aide à choisir',
49
+ idFiscalRegime: null,
50
+ },
51
+ ];
@@ -21,6 +21,7 @@ export enum LegalFormTypeEnum {
21
21
  SOCIETE_CIVILE = 20,
22
22
  SELASU = 21,
23
23
  SELARLU = 22,
24
+ LMNP = 23,
24
25
  }
25
26
 
26
27
  export type LegalFormTypeContent = {
@@ -233,4 +234,13 @@ export const LegalForm: LegalFormType = {
233
234
  individual: true,
234
235
  pappersLabel: 'Selarl unipersonnelle',
235
236
  },
237
+ LMNP: {
238
+ id: LegalFormTypeEnum.LMNP,
239
+ name: 'LMNP',
240
+ alias: 'Lmnp',
241
+ diaCode: null,
242
+ hideVat: false,
243
+ individual: true,
244
+ pappersLabel: 'Loueur en meublé non professionnel',
245
+ },
236
246
  };
@@ -1,6 +1,7 @@
1
1
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
2
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
3
3
  import {
4
+ IsBoolean,
4
5
  IsInt, IsOptional,
5
6
  } from 'class-validator';
6
7
 
@@ -25,6 +26,12 @@ export class QueryAccountingFiles {
25
26
 
26
27
  @ApiPropertyOptional()
27
28
  emissionDate?: string;
29
+
30
+ @ApiPropertyOptional()
31
+ @IsBoolean()
32
+ @ToBoolean()
33
+ @IsOptional()
34
+ withSocketReturn?: boolean;
28
35
  }
29
36
 
30
37
  export class QueryAccountingFilesV2 extends QueryAccountingFiles {
@@ -33,6 +40,7 @@ export class QueryAccountingFilesV2 extends QueryAccountingFiles {
33
40
 
34
41
  @ApiPropertyOptional()
35
42
  idAccountingTransaction?: number;
43
+
36
44
  }
37
45
 
38
46
  export class CreateAccountingFileFromFile {
@@ -43,4 +51,4 @@ export class CreateAccountingFileFromFile {
43
51
  @ApiPropertyOptional()
44
52
  @IsOptional()
45
53
  emissionDate: Date | null;
46
- }
54
+ }
@@ -0,0 +1,110 @@
1
+ import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
2
+ import { TaxSystem } from '../../../Enum/TaxSystem';
3
+ import { VatRegime } from '../../../Enum/VatRegime';
4
+ import { BeneficiaryInfos, CreateCompanyBusinessPartners } from './CreateCompanyCreationForm';
5
+
6
+ export interface CompanyCreationFormPayload {
7
+ /**
8
+ * Choix du statut
9
+ */
10
+ idLegalForm?: LegalFormTypeEnum;
11
+ /**
12
+ * Régime d'imposition
13
+ */
14
+ idTaxSystem?: TaxSystem;
15
+ /**
16
+ * Régime de TVA
17
+ */
18
+ idVatRegime?: VatRegime;
19
+ /**
20
+ * Régime fiscal
21
+ */
22
+ fiscalRegime?: string;
23
+ /**
24
+ * Dénomination sociale
25
+ */
26
+ name?: string;
27
+ sigle?: string;
28
+ commercialName?: string;
29
+ signboard?: string;
30
+ wantToBeContactedForDeposition?: boolean;
31
+ /**
32
+ * Activité
33
+ */
34
+ idActivity?: number;
35
+ modeOfSale?: string;
36
+ surfaceArea?: number;
37
+ modeOfSaleDescription?: string;
38
+ isActivitySubjectToObligation?: boolean;
39
+ /**
40
+ * Siège social
41
+ */
42
+ address?: string;
43
+ additionalAddress?: string;
44
+ zipCode?: string;
45
+ city?: string;
46
+ type: string;
47
+ sourceOfFunds?: string;
48
+ headOfficeOccupationType?: 'owner' | 'tenant';
49
+ isActivityAtDifferentAddress?: boolean;
50
+ activityAddress?: string;
51
+ additionalActivityAddress?: string;
52
+ zipCodeActivity?: string;
53
+ cityActivity?: string;
54
+ wantToBeContactedForHeadOffice: boolean;
55
+ /**
56
+ * Calendrier
57
+ */
58
+ startDate: Date;
59
+ endDate?: Date;
60
+ wantToStartActivityNow: boolean;
61
+ /**
62
+ * Salariés
63
+ */
64
+ nbEmployees: number;
65
+ nbApprentices: number;
66
+ /**
67
+ * Dirigeants et associés
68
+ */
69
+ partners: CreateCompanyBusinessPartners[];
70
+ /**
71
+ * Informations sociales
72
+ */
73
+ socialSecurityNumber?: string;
74
+ socialRegime?: string;
75
+ hasAlreadyHaveSelfEmployedActivity?: boolean;
76
+ selfEmployedActivityType?: string;
77
+ selfEmployedActivitySiren?: string;
78
+ selfEmployedActivityZipCode?: string;
79
+ selfEmployedActivityCity?: string;
80
+ selfEmployedActivityEndDate?: Date;
81
+ parallelActivityType?: string;
82
+ hasSelectedHealthInsurance?: boolean;
83
+ spouseHasHealthInsurance?: boolean;
84
+ spouseAssociatedWithTheCompany?: string;
85
+ nbChildren?: number;
86
+ hasBeneficiaries?: boolean;
87
+ beneficiaries?: BeneficiaryInfos[];
88
+
89
+ /**
90
+ * Capital social
91
+ */
92
+ capitalAmount?: number;
93
+ isAContributionInKind?: boolean;
94
+ contributionInKindDescription?: string;
95
+ bankName?: string;
96
+ bankAddress?: string;
97
+ bankZipCode?: string;
98
+ bankCity?: string;
99
+ hasNotYetSendSocialCapital?: boolean;
100
+
101
+ /**
102
+ * Acre
103
+ */
104
+ wantToBenefitFromACRE?: boolean;
105
+
106
+ /**
107
+ * Sirene
108
+ */
109
+ informationsSharedToSirene?: boolean;
110
+ }