@silexpert/core 1.1.162 → 1.1.163
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.
- package/dist/cjs/api/resources/BusinessPartner.d.ts +15 -0
- package/dist/cjs/api/resources/BusinessPartner.d.ts.map +1 -0
- package/dist/cjs/api/resources/BusinessPartner.js +26 -0
- package/dist/cjs/api/resources/BusinessPartner.js.map +1 -0
- package/dist/cjs/api/resources/User.d.ts +3 -1
- package/dist/cjs/api/resources/User.d.ts.map +1 -1
- package/dist/cjs/api/resources/User.js +6 -0
- package/dist/cjs/api/resources/User.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/MaritalStatus.d.ts +9 -0
- package/dist/cjs/types/Enum/MaritalStatus.d.ts.map +1 -0
- package/dist/cjs/types/Enum/MaritalStatus.js +13 -0
- package/dist/cjs/types/Enum/MaritalStatus.js.map +1 -0
- package/dist/cjs/types/Enum/StatutsSection.js +1 -1
- package/dist/cjs/types/Enum/StatutsSection.js.map +1 -1
- package/dist/cjs/types/Interface/api/businessPartner/CreateBusinessPartnerParams.d.ts +29 -0
- package/dist/cjs/types/Interface/api/businessPartner/CreateBusinessPartnerParams.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/businessPartner/CreateBusinessPartnerParams.js +170 -0
- package/dist/cjs/types/Interface/api/businessPartner/CreateBusinessPartnerParams.js.map +1 -0
- package/dist/cjs/types/Interface/api/businessPartner/QueryBusinessPartnerAll.d.ts +5 -0
- package/dist/cjs/types/Interface/api/businessPartner/QueryBusinessPartnerAll.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/businessPartner/QueryBusinessPartnerAll.js +35 -0
- package/dist/cjs/types/Interface/api/businessPartner/QueryBusinessPartnerAll.js.map +1 -0
- package/dist/cjs/types/Interface/api/businessPartner/UpdateBusinessPartnerParams.d.ts +30 -0
- package/dist/cjs/types/Interface/api/businessPartner/UpdateBusinessPartnerParams.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/businessPartner/UpdateBusinessPartnerParams.js +176 -0
- package/dist/cjs/types/Interface/api/businessPartner/UpdateBusinessPartnerParams.js.map +1 -0
- package/dist/cjs/types/Interface/api/cerfa/3310.d.ts +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3310.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3310.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3514.d.ts +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3514.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3514.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3517.d.ts +2 -2
- package/dist/cjs/types/Interface/api/cerfa/3517.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3517.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3519.d.ts +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3519.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/3519.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercial/RequiredDocsTypeParams.d.ts +1 -1
- package/dist/cjs/types/Interface/api/commercial/RequiredDocsTypeParams.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercial/RequiredDocsTypeParams.js.map +1 -1
- package/dist/cjs/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.d.ts +2 -2
- package/dist/cjs/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.js +6 -6
- package/dist/cjs/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.js.map +1 -1
- package/dist/cjs/types/Interface/api/statutsGeneration/TemplateParams.d.ts +31 -0
- package/dist/cjs/types/Interface/api/statutsGeneration/TemplateParams.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/statutsGeneration/TemplateParams.js +3 -0
- package/dist/cjs/types/Interface/api/statutsGeneration/TemplateParams.js.map +1 -0
- package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +9 -9
- package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/ParamsGetAllUserWithRoles.d.ts +1 -0
- package/dist/cjs/types/Interface/api/user/ParamsGetAllUserWithRoles.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/ParamsGetAllUserWithRoles.js +7 -0
- package/dist/cjs/types/Interface/api/user/ParamsGetAllUserWithRoles.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts +1 -0
- package/dist/cjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/QueryGetAllFromSociety.js +9 -0
- package/dist/cjs/types/Interface/api/user/QueryGetAllFromSociety.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts +4 -0
- package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.js +26 -0
- package/dist/cjs/types/Interface/api/user/QueryGetAllWithoutBp.js.map +1 -0
- package/dist/cjs/types/Interface/models/IBusinessPartner.d.ts +19 -25
- package/dist/cjs/types/Interface/models/IBusinessPartner.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBusinessPartner.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts +101 -101
- package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts +20 -5
- package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/cjs/types/index.d.ts +6 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +6 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/documents.d.ts.map +1 -1
- package/dist/cjs/utils/documents.js +2 -0
- package/dist/cjs/utils/documents.js.map +1 -1
- package/dist/cjs/utils/vat/3514/century23.js +7 -7
- package/dist/cjs/utils/vat/3514/century23.js.map +1 -1
- package/dist/cjs/utils/vat/3519/century17.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3519/century17.js +7 -6
- package/dist/cjs/utils/vat/3519/century17.js.map +1 -1
- package/dist/mjs/api/resources/BusinessPartner.d.ts +15 -0
- package/dist/mjs/api/resources/BusinessPartner.d.ts.map +1 -0
- package/dist/mjs/api/resources/BusinessPartner.js +22 -0
- package/dist/mjs/api/resources/BusinessPartner.js.map +1 -0
- package/dist/mjs/api/resources/User.d.ts +3 -1
- package/dist/mjs/api/resources/User.d.ts.map +1 -1
- package/dist/mjs/api/resources/User.js +6 -0
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/MaritalStatus.d.ts +9 -0
- package/dist/mjs/types/Enum/MaritalStatus.d.ts.map +1 -0
- package/dist/mjs/types/Enum/MaritalStatus.js +10 -0
- package/dist/mjs/types/Enum/MaritalStatus.js.map +1 -0
- package/dist/mjs/types/Enum/StatutsSection.js +1 -1
- package/dist/mjs/types/Enum/StatutsSection.js.map +1 -1
- package/dist/mjs/types/Interface/api/businessPartner/CreateBusinessPartnerParams.d.ts +29 -0
- package/dist/mjs/types/Interface/api/businessPartner/CreateBusinessPartnerParams.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/businessPartner/CreateBusinessPartnerParams.js +191 -0
- package/dist/mjs/types/Interface/api/businessPartner/CreateBusinessPartnerParams.js.map +1 -0
- package/dist/mjs/types/Interface/api/businessPartner/QueryBusinessPartnerAll.d.ts +5 -0
- package/dist/mjs/types/Interface/api/businessPartner/QueryBusinessPartnerAll.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/businessPartner/QueryBusinessPartnerAll.js +33 -0
- package/dist/mjs/types/Interface/api/businessPartner/QueryBusinessPartnerAll.js.map +1 -0
- package/dist/mjs/types/Interface/api/businessPartner/UpdateBusinessPartnerParams.d.ts +30 -0
- package/dist/mjs/types/Interface/api/businessPartner/UpdateBusinessPartnerParams.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/businessPartner/UpdateBusinessPartnerParams.js +198 -0
- package/dist/mjs/types/Interface/api/businessPartner/UpdateBusinessPartnerParams.js.map +1 -0
- package/dist/mjs/types/Interface/api/cerfa/3310.d.ts +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3310.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3310.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3514.d.ts +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3514.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3514.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3517.d.ts +2 -2
- package/dist/mjs/types/Interface/api/cerfa/3517.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3517.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3519.d.ts +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3519.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/3519.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercial/RequiredDocsTypeParams.d.ts +1 -1
- package/dist/mjs/types/Interface/api/commercial/RequiredDocsTypeParams.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercial/RequiredDocsTypeParams.js.map +1 -1
- package/dist/mjs/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.d.ts +2 -2
- package/dist/mjs/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.js +12 -11
- package/dist/mjs/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.js.map +1 -1
- package/dist/mjs/types/Interface/api/statutsGeneration/TemplateParams.d.ts +31 -0
- package/dist/mjs/types/Interface/api/statutsGeneration/TemplateParams.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/statutsGeneration/TemplateParams.js +2 -0
- package/dist/mjs/types/Interface/api/statutsGeneration/TemplateParams.js.map +1 -0
- package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +9 -9
- package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/ParamsGetAllUserWithRoles.d.ts +1 -0
- package/dist/mjs/types/Interface/api/user/ParamsGetAllUserWithRoles.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/ParamsGetAllUserWithRoles.js +8 -0
- package/dist/mjs/types/Interface/api/user/ParamsGetAllUserWithRoles.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts +1 -0
- package/dist/mjs/types/Interface/api/user/QueryGetAllFromSociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/QueryGetAllFromSociety.js +11 -1
- package/dist/mjs/types/Interface/api/user/QueryGetAllFromSociety.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts +4 -0
- package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.js +23 -0
- package/dist/mjs/types/Interface/api/user/QueryGetAllWithoutBp.js.map +1 -0
- package/dist/mjs/types/Interface/models/IBusinessPartner.d.ts +19 -25
- package/dist/mjs/types/Interface/models/IBusinessPartner.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBusinessPartner.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts +101 -101
- package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts +20 -5
- package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/mjs/types/index.d.ts +6 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +6 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/documents.d.ts.map +1 -1
- package/dist/mjs/utils/documents.js +2 -0
- package/dist/mjs/utils/documents.js.map +1 -1
- package/dist/mjs/utils/vat/3514/century23.js +7 -7
- package/dist/mjs/utils/vat/3514/century23.js.map +1 -1
- package/dist/mjs/utils/vat/3519/century17.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3519/century17.js +2 -1
- package/dist/mjs/utils/vat/3519/century17.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BusinessPartner.ts +31 -0
- package/ts/api/resources/User.ts +7 -1
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/MaritalStatus.ts +9 -0
- package/ts/types/Enum/StatutsSection.ts +1 -1
- package/ts/types/Interface/api/businessPartner/CreateBusinessPartnerParams.ts +132 -0
- package/ts/types/Interface/api/businessPartner/QueryBusinessPartnerAll.ts +19 -0
- package/ts/types/Interface/api/businessPartner/UpdateBusinessPartnerParams.ts +137 -0
- package/ts/types/Interface/api/cerfa/3310.ts +1 -1
- package/ts/types/Interface/api/cerfa/3514.ts +1 -1
- package/ts/types/Interface/api/cerfa/3517.ts +2 -2
- package/ts/types/Interface/api/cerfa/3519.ts +1 -1
- package/ts/types/Interface/api/commercial/RequiredDocsTypeParams.ts +1 -1
- package/ts/types/Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams.ts +3 -2
- package/ts/types/Interface/api/statutsGeneration/TemplateParams.ts +31 -0
- package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +9 -9
- package/ts/types/Interface/api/user/ParamsGetAllUserWithRoles.ts +6 -0
- package/ts/types/Interface/api/user/QueryGetAllFromSociety.ts +11 -1
- package/ts/types/Interface/api/user/QueryGetAllWithoutBp.ts +11 -0
- package/ts/types/Interface/models/IBusinessPartner.ts +23 -27
- package/ts/types/Interface/models/ISociety.ts +101 -101
- package/ts/types/Interface/models/IUser.ts +22 -7
- package/ts/types/index.ts +6 -0
- package/ts/utils/documents.ts +2 -0
- package/ts/utils/vat/3514/century23.ts +7 -7
- package/ts/utils/vat/3519/century17.ts +2 -1
|
@@ -1,47 +1,43 @@
|
|
|
1
|
-
import { ICountry } from './ICountry';
|
|
2
1
|
import { IGedFile } from './IGedFile';
|
|
3
|
-
import { INationality } from './INationality';
|
|
4
2
|
import { ISociety } from './ISociety';
|
|
5
3
|
import { IUser } from './IUser';
|
|
6
4
|
|
|
7
5
|
// businessPartners
|
|
8
6
|
export interface IBusinessPartner {
|
|
9
7
|
id?: number;
|
|
10
|
-
isPhysical: boolean;
|
|
11
|
-
address: string | null;
|
|
12
|
-
zipCodeBirth: string | null;
|
|
13
8
|
// @deprecated
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
9
|
+
isPhysical: boolean; //TODO: devrait devenir useless -> idSociety et idUser suffisent
|
|
10
|
+
// @deprecated
|
|
11
|
+
sharesHeld?: number;
|
|
12
|
+
// @deprecated
|
|
13
|
+
reason?: string;
|
|
14
|
+
reasonQuality?: string;
|
|
15
|
+
identityDocument?: string;
|
|
16
|
+
otherActivities?: string;
|
|
17
|
+
activityBefore?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated
|
|
20
|
+
*/
|
|
21
|
+
idGedFileKbis?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated
|
|
24
|
+
*/
|
|
25
|
+
idGedFileIC?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
29
|
+
idGedFileStatus?: number;
|
|
31
30
|
idSociety: number | null;
|
|
32
31
|
idUser: number | null;
|
|
33
32
|
idSocietyParent: number;
|
|
34
|
-
|
|
33
|
+
idQuality: number | null;
|
|
35
34
|
createdAt?: Date | null;
|
|
36
35
|
updatedAt?: Date | null;
|
|
37
|
-
|
|
36
|
+
|
|
38
37
|
// Associations
|
|
39
|
-
country?: ICountry;
|
|
40
|
-
countryLiving?: ICountry;
|
|
41
38
|
fileKbis?: IGedFile;
|
|
42
39
|
fileIC?: IGedFile;
|
|
43
40
|
fileStatus?: IGedFile;
|
|
44
|
-
nationality?: INationality;
|
|
45
41
|
society?: ISociety;
|
|
46
42
|
user?: IUser;
|
|
47
43
|
societyParent?: ISociety;
|
|
@@ -59,99 +59,99 @@ import { IBusinessSector } from './IBusinessSector';
|
|
|
59
59
|
// societies
|
|
60
60
|
export interface ISociety {
|
|
61
61
|
id?: number;
|
|
62
|
-
name
|
|
63
|
-
commercialName
|
|
64
|
-
descriptionActivity
|
|
65
|
-
dateOfRegistration
|
|
66
|
-
dateInscription
|
|
67
|
-
dateIsClient
|
|
68
|
-
partnerSubscriptionECDate
|
|
69
|
-
dateStatus
|
|
70
|
-
socialStatut
|
|
71
|
-
juridicalStatut
|
|
72
|
-
mailSocial
|
|
73
|
-
mailJuridical
|
|
74
|
-
city
|
|
75
|
-
zipCode
|
|
76
|
-
address
|
|
77
|
-
siret
|
|
78
|
-
diaCode
|
|
79
|
-
socialCapital
|
|
80
|
-
archive
|
|
81
|
-
archiveDate
|
|
82
|
-
isBlocked
|
|
83
|
-
autoAnnotate
|
|
84
|
-
managementSoftware
|
|
85
|
-
cashbook
|
|
86
|
-
balanceZero
|
|
87
|
-
mailRecovery
|
|
88
|
-
folderIsFinished
|
|
89
|
-
hideInformationsBanner
|
|
90
|
-
dateUploadTva
|
|
91
|
-
vatUploadDay
|
|
92
|
-
lockImposition
|
|
93
|
-
lockTva
|
|
94
|
-
isWaitingEnd
|
|
95
|
-
waitFirstContact
|
|
96
|
-
sendFirstContact
|
|
97
|
-
toConstitution
|
|
98
|
-
numberFrp
|
|
99
|
-
socialParts
|
|
100
|
-
numberSie
|
|
101
|
-
aga
|
|
102
|
-
statutoryAuditor
|
|
103
|
-
typeSales
|
|
104
|
-
dateRelanceCommercial
|
|
105
|
-
firstPayslipDate
|
|
106
|
-
totalSharesHeld
|
|
107
|
-
leadQuotation
|
|
108
|
-
idVatRegime
|
|
109
|
-
idTaxSystem
|
|
110
|
-
idActivity
|
|
111
|
-
profitsType
|
|
112
|
-
idSource
|
|
113
|
-
idFiscalRegime
|
|
114
|
-
idRegion
|
|
115
|
-
idLegalForm
|
|
116
|
-
idComptaType
|
|
117
|
-
idTypeBrand
|
|
118
|
-
idSubscriptionType
|
|
119
|
-
idCountry
|
|
120
|
-
idSector
|
|
121
|
-
idSocietyNotes
|
|
122
|
-
folderNote
|
|
123
|
-
oldNafCode
|
|
124
|
-
dateSendAdvise
|
|
125
|
-
idUserAdvise
|
|
126
|
-
idVatForInternalInvoicing
|
|
127
|
-
dateFirstSendUnpaid
|
|
128
|
-
reasonUnpaid
|
|
129
|
-
stripeSubscriptionId
|
|
130
|
-
stateSynchroBankAccount
|
|
131
|
-
noShowPopUpSynchroDate
|
|
132
|
-
stateFollowCall
|
|
133
|
-
folderCreation
|
|
134
|
-
hideSimulationBetaMessage
|
|
135
|
-
unpaid
|
|
136
|
-
isLate
|
|
137
|
-
unpaidDetails
|
|
138
|
-
owner
|
|
139
|
-
social
|
|
140
|
-
exercices
|
|
141
|
-
recoveryDate
|
|
62
|
+
name?: string | null;
|
|
63
|
+
commercialName?: string | null;
|
|
64
|
+
descriptionActivity?: string | null;
|
|
65
|
+
dateOfRegistration?: Date | null;
|
|
66
|
+
dateInscription?: Date | null;
|
|
67
|
+
dateIsClient?: Date | null;
|
|
68
|
+
partnerSubscriptionECDate?: Date | null;
|
|
69
|
+
dateStatus?: Date | null;
|
|
70
|
+
socialStatut?: number | null;
|
|
71
|
+
juridicalStatut?: number | null;
|
|
72
|
+
mailSocial?: Date | null;
|
|
73
|
+
mailJuridical?: Date | null;
|
|
74
|
+
city?: string | null;
|
|
75
|
+
zipCode?: string | null;
|
|
76
|
+
address?: string | null;
|
|
77
|
+
siret?: string | null;
|
|
78
|
+
diaCode?: string | null;
|
|
79
|
+
socialCapital?: string | null;
|
|
80
|
+
archive?: boolean;
|
|
81
|
+
archiveDate?: Date | null;
|
|
82
|
+
isBlocked?: boolean | null;
|
|
83
|
+
autoAnnotate?: boolean;
|
|
84
|
+
managementSoftware?: boolean | null;
|
|
85
|
+
cashbook?: boolean | null;
|
|
86
|
+
balanceZero?: boolean | null;
|
|
87
|
+
mailRecovery?: boolean | null;
|
|
88
|
+
folderIsFinished?: boolean | null;
|
|
89
|
+
hideInformationsBanner?: boolean | null;
|
|
90
|
+
dateUploadTva?: Date | null;
|
|
91
|
+
vatUploadDay?: number | null;
|
|
92
|
+
lockImposition?: boolean | null;
|
|
93
|
+
lockTva?: boolean | null;
|
|
94
|
+
isWaitingEnd?: boolean | null;
|
|
95
|
+
waitFirstContact?: boolean | null;
|
|
96
|
+
sendFirstContact?: boolean | null;
|
|
97
|
+
toConstitution?: number | null;
|
|
98
|
+
numberFrp?: string | null;
|
|
99
|
+
socialParts?: string | null;
|
|
100
|
+
numberSie?: string | null;
|
|
101
|
+
aga?: string | null;
|
|
102
|
+
statutoryAuditor?: string | null;
|
|
103
|
+
typeSales?: string | null;
|
|
104
|
+
dateRelanceCommercial?: Date | null;
|
|
105
|
+
firstPayslipDate?: Date | null;
|
|
106
|
+
totalSharesHeld?: number | null;
|
|
107
|
+
leadQuotation?: number | null;
|
|
108
|
+
idVatRegime?: number | null;
|
|
109
|
+
idTaxSystem?: number | null;
|
|
110
|
+
idActivity?: number | null;
|
|
111
|
+
profitsType?: number | null;
|
|
112
|
+
idSource?: number | null;
|
|
113
|
+
idFiscalRegime?: number | null;
|
|
114
|
+
idRegion?: number | null;
|
|
115
|
+
idLegalForm?: number | null;
|
|
116
|
+
idComptaType?: ComptaType | null;
|
|
117
|
+
idTypeBrand?: number | null;
|
|
118
|
+
idSubscriptionType?: number | null;
|
|
119
|
+
idCountry?: CountryId | null;
|
|
120
|
+
idSector?: Sector | null;
|
|
121
|
+
idSocietyNotes?: number | null;
|
|
122
|
+
folderNote?: string | null;
|
|
123
|
+
oldNafCode?: string | null;
|
|
124
|
+
dateSendAdvise?: Date | null;
|
|
125
|
+
idUserAdvise?: number | null;
|
|
126
|
+
idVatForInternalInvoicing?: number;
|
|
127
|
+
dateFirstSendUnpaid?: Date | null;
|
|
128
|
+
reasonUnpaid?: number | null;
|
|
129
|
+
stripeSubscriptionId?: string | null;
|
|
130
|
+
stateSynchroBankAccount?: number | null;
|
|
131
|
+
noShowPopUpSynchroDate?: Date | null;
|
|
132
|
+
stateFollowCall?: number | null;
|
|
133
|
+
folderCreation?: boolean;
|
|
134
|
+
hideSimulationBetaMessage?: boolean;
|
|
135
|
+
unpaid?: number | null;
|
|
136
|
+
isLate?: boolean | null;
|
|
137
|
+
unpaidDetails?: UnpaidDetail[] | null;
|
|
138
|
+
owner?: IUser | null;
|
|
139
|
+
social?: string | null;
|
|
140
|
+
exercices?: string | null;
|
|
141
|
+
recoveryDate?: string | null;
|
|
142
142
|
createdAt?: Date | null;
|
|
143
143
|
updatedAt?: Date | null;
|
|
144
144
|
startAt?: Date | null;
|
|
145
|
-
idSoftware
|
|
146
|
-
canceledFirstStepAt
|
|
147
|
-
completedFirstStepAt
|
|
148
|
-
lastMobileConnection
|
|
149
|
-
idNafCode
|
|
150
|
-
canceledFirstStepTourAt
|
|
151
|
-
step
|
|
152
|
-
hidePartneredAccountantsBubbleLink
|
|
153
|
-
cancelCompleteCreationModal
|
|
154
|
-
isCreatedInApp
|
|
145
|
+
idSoftware?: number | null;
|
|
146
|
+
canceledFirstStepAt?: Date | null;
|
|
147
|
+
completedFirstStepAt?: Date | null;
|
|
148
|
+
lastMobileConnection?: Date | null;
|
|
149
|
+
idNafCode?: number | null;
|
|
150
|
+
canceledFirstStepTourAt?: Date | null;
|
|
151
|
+
step?: string | null;
|
|
152
|
+
hidePartneredAccountantsBubbleLink?: boolean | null;
|
|
153
|
+
cancelCompleteCreationModal?: Date | null;
|
|
154
|
+
isCreatedInApp?: boolean;
|
|
155
155
|
|
|
156
156
|
// Associations
|
|
157
157
|
accounts?: IAccount[];
|
|
@@ -209,16 +209,16 @@ export interface ISociety {
|
|
|
209
209
|
usersPermissions?: IUserSocietyPermission[];
|
|
210
210
|
regulates?: IRegulate[];
|
|
211
211
|
brandType?: IBrandType;
|
|
212
|
-
partneredAccountantCompaniesServices
|
|
213
|
-
partneredAccountantRelated
|
|
214
|
-
events
|
|
215
|
-
mails
|
|
216
|
-
transactions
|
|
217
|
-
businessPartners
|
|
218
|
-
fecFile
|
|
219
|
-
gedFiles
|
|
220
|
-
files
|
|
221
|
-
unpaidCallHistory
|
|
212
|
+
partneredAccountantCompaniesServices?: IPartneredAccountantCompanyService[];
|
|
213
|
+
partneredAccountantRelated?: IPartneredAccountantToSociety;
|
|
214
|
+
events?: ISocietyEvent[];
|
|
215
|
+
mails?: IMail[];
|
|
216
|
+
transactions?: IAccountingTransaction[];
|
|
217
|
+
businessPartners?: IBusinessPartner[];
|
|
218
|
+
fecFile?: IFecFile | null;
|
|
219
|
+
gedFiles?: IGedFile[];
|
|
220
|
+
files?: IFile[];
|
|
221
|
+
unpaidCallHistory?: IUnpaidCallHistory[];
|
|
222
222
|
accountingFiles?: IAccountingFile[];
|
|
223
|
-
businessSectors
|
|
223
|
+
businessSectors?: IBusinessSector[];
|
|
224
224
|
}
|
|
@@ -5,7 +5,6 @@ import { IFile } from './IFile';
|
|
|
5
5
|
import { IUserSocietyPermission } from './IUserSocietyPermission';
|
|
6
6
|
import { IWorkingSchedule } from './IWorkingSchedule';
|
|
7
7
|
import { IRecontactHistory } from './IRecontactHistory';
|
|
8
|
-
import { IQuality } from './IQuality';
|
|
9
8
|
import { IAllowedIp } from './IAllowedIp';
|
|
10
9
|
import { IBusinessPartner } from './IBusinessPartner';
|
|
11
10
|
import { ILog } from './ILog';
|
|
@@ -19,6 +18,8 @@ import { ITimeRecorder } from './ITimeRecorder';
|
|
|
19
18
|
import { EntityType } from '../../Enum/EntityType';
|
|
20
19
|
import { IMailAddress } from './IMailAddress';
|
|
21
20
|
import { IAccountingStatementHistory } from './IAccountingStatementHistory';
|
|
21
|
+
import { ICountry } from './ICountry';
|
|
22
|
+
import { INationality } from './INationality';
|
|
22
23
|
|
|
23
24
|
type isAny<T> = T | any;
|
|
24
25
|
|
|
@@ -38,8 +39,7 @@ export interface IUser {
|
|
|
38
39
|
hash?: string | null;
|
|
39
40
|
password?: string | null;
|
|
40
41
|
idFile?: number | null;
|
|
41
|
-
quality?: string | null;
|
|
42
|
-
idQuality?: number | null;
|
|
42
|
+
quality?: string | null; //FIXME: à supprimer ?
|
|
43
43
|
phone?: string | null;
|
|
44
44
|
phone2?: string | null;
|
|
45
45
|
textMessageNumber?: string | null;
|
|
@@ -63,7 +63,6 @@ export interface IUser {
|
|
|
63
63
|
validityDateOfResidencePermit?: Date | null;
|
|
64
64
|
isNewProspect?: boolean;
|
|
65
65
|
hasAccountNumberDisplay?: boolean;
|
|
66
|
-
isAssociate?: boolean | null;
|
|
67
66
|
isResponderActive?: boolean;
|
|
68
67
|
suppDoublon?: boolean | null;
|
|
69
68
|
calendlyUrl?: string | null;
|
|
@@ -86,7 +85,21 @@ export interface IUser {
|
|
|
86
85
|
tokenConfirmedAt?: string | null;
|
|
87
86
|
idPoleLeader?: number | null;
|
|
88
87
|
affiliateTrackingId?: number | null;
|
|
89
|
-
|
|
88
|
+
streetNumber?: string | null;
|
|
89
|
+
address?: string;
|
|
90
|
+
zipCodeBirth?: string;
|
|
91
|
+
birthPlace?: string;
|
|
92
|
+
departmentBirth?: string;
|
|
93
|
+
idCountryBirth?: number;
|
|
94
|
+
birthname?: string;
|
|
95
|
+
cityOfBirth?: string;
|
|
96
|
+
idCountry?: number;
|
|
97
|
+
zipCode?: string | null;
|
|
98
|
+
city?: string | null;
|
|
99
|
+
idNationality?: number;
|
|
100
|
+
maritalStatus?: string;
|
|
101
|
+
idMaritalStatus?: number;
|
|
102
|
+
|
|
90
103
|
// Associations
|
|
91
104
|
userHasEvent?: isAny<ICalendarEvent>[];
|
|
92
105
|
roles?: IRole[];
|
|
@@ -99,9 +112,8 @@ export interface IUser {
|
|
|
99
112
|
workingSchedules?: IWorkingSchedule[];
|
|
100
113
|
recontactHistories?: IRecontactHistory[];
|
|
101
114
|
poleLeader?: IUser;
|
|
102
|
-
userQuality?: IQuality;
|
|
103
115
|
allowedIps?: IAllowedIp[];
|
|
104
|
-
|
|
116
|
+
businessPartners?: IBusinessPartner[];
|
|
105
117
|
poleAccountants?: IUser[];
|
|
106
118
|
logs?: ILog[];
|
|
107
119
|
notifications?: INotification[];
|
|
@@ -112,4 +124,7 @@ export interface IUser {
|
|
|
112
124
|
timeRecorders?: ITimeRecorder[];
|
|
113
125
|
mailAddresses?: IMailAddress[];
|
|
114
126
|
accountingStatementHistory?: IAccountingStatementHistory[];
|
|
127
|
+
country?: ICountry;
|
|
128
|
+
countryLiving?: ICountry;
|
|
129
|
+
nationality?: INationality;
|
|
115
130
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -346,6 +346,7 @@ export * from './Enum/Quality';
|
|
|
346
346
|
export * from './Enum/AbsenceType';
|
|
347
347
|
export * from './Enum/Role';
|
|
348
348
|
export * from './Enum/RoleDetail';
|
|
349
|
+
export * from './Enum/MaritalStatus';
|
|
349
350
|
export * from './Enum/StatutsSection';
|
|
350
351
|
export * from './Enum/PrestationOption';
|
|
351
352
|
export * from './Enum/TimeCounterType';
|
|
@@ -514,6 +515,9 @@ export * from './Interface/api/jeDeclare/ReadJeDeclare';
|
|
|
514
515
|
export * from './Interface/api/aspone/ReadInterchange';
|
|
515
516
|
export * from './Interface/api/aspone/Util';
|
|
516
517
|
export * from './Interface/api/businessPartner/ReadBusinessPartner';
|
|
518
|
+
export * from './Interface/api/businessPartner/QueryBusinessPartnerAll';
|
|
519
|
+
export * from './Interface/api/businessPartner/CreateBusinessPartnerParams';
|
|
520
|
+
export * from './Interface/api/businessPartner/UpdateBusinessPartnerParams';
|
|
517
521
|
export * from './Interface/api/simulation/CreateSimulation';
|
|
518
522
|
export * from './Interface/api/ocr/CreateOcr';
|
|
519
523
|
export * from './Interface/api/accountingEntry/AnnotateAccountingTransaction';
|
|
@@ -543,6 +547,7 @@ export * from './Interface/api/accountingTransaction/QueryBankAccountSum';
|
|
|
543
547
|
export * from './Interface/api/user/QueryConfirm';
|
|
544
548
|
export * from './Interface/api/user/QuerySocieties';
|
|
545
549
|
export * from './Interface/api/user/QueryGetAllFromSociety';
|
|
550
|
+
export * from './Interface/api/user/QueryGetAllWithoutBp';
|
|
546
551
|
export * from './Interface/api/user/QueryGetAllCollaborators';
|
|
547
552
|
export * from './Interface/api/user/QueryGetAllCollaboratorsByRoles';
|
|
548
553
|
export * from './Interface/api/user/QueryResendConfirmationLink';
|
|
@@ -635,6 +640,7 @@ export * from './Interface/api/exercice/QueryExercice';
|
|
|
635
640
|
export * from './Interface/api/exercice/CreateExercice';
|
|
636
641
|
export * from './Interface/api/exercice/UpdateExercice';
|
|
637
642
|
export * from './Interface/api/statutsGeneration/UpdateExerciceParams';
|
|
643
|
+
export * from './Interface/api/statutsGeneration/TemplateParams';
|
|
638
644
|
export * from './Interface/api/statutsGeneration/IntentToPayPrestationParams';
|
|
639
645
|
export * from './Interface/api/statutsGeneration/SendInviteMailParams';
|
|
640
646
|
export * from './Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams';
|
package/ts/utils/documents.ts
CHANGED
|
@@ -10,6 +10,8 @@ const requiredListDocs = (params: RequiredDocsType): GedFileType[] => {
|
|
|
10
10
|
const { dontHaveOldExpert, recoveryDate } = oldExpertInfo || {};
|
|
11
11
|
const { idLegalForm, dateOfRegistration } = society || {};
|
|
12
12
|
|
|
13
|
+
if (!idLegalForm) throw new Error('Missing idLegalForm');
|
|
14
|
+
|
|
13
15
|
if (isOnlyPrevi) {
|
|
14
16
|
return [GedFileType.IDENTITY_CARD, GedFileType.PLAQUETTE];
|
|
15
17
|
}
|
|
@@ -66,49 +66,49 @@ export function getCerfa3514Century23RegistrationFields(data: Cerfa3514_2022): A
|
|
|
66
66
|
tag: 'Valeur',
|
|
67
67
|
isMultiple: false,
|
|
68
68
|
description: 'Montant de l\'acompte attendu ou modulé (MOA)',
|
|
69
|
-
value: data.amountWanted,
|
|
69
|
+
value: data.amountWanted || null,
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
key: 'HB',
|
|
73
73
|
tag: 'Valeur',
|
|
74
74
|
isMultiple: false,
|
|
75
75
|
description: 'Montant du crédit ou de l\'excédent de TVA, figurant sur la précédente déclaration CA12/CA12E, et à déduire éventuellement du montant de l\'acompte attendu ou modulé (MOA)',
|
|
76
|
-
value: data.amountOfCredit,
|
|
76
|
+
value: data.amountOfCredit || null,
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
key: 'HC',
|
|
80
80
|
tag: 'Valeur',
|
|
81
81
|
isMultiple: false,
|
|
82
82
|
description: 'Montant total de la TVA à payer à la place de l\'acompte de TVA (MOA)',
|
|
83
|
-
value: data.vatAmountToPay,
|
|
83
|
+
value: data.vatAmountToPay || null,
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
key: 'IA',
|
|
87
87
|
tag: 'Valeur',
|
|
88
88
|
isMultiple: false,
|
|
89
89
|
description: 'Montant de la TVA collectée au titre du semestre (MOA)',
|
|
90
|
-
value: data.vatAmountCollected,
|
|
90
|
+
value: data.vatAmountCollected || null,
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
key: 'IB',
|
|
94
94
|
tag: 'Valeur',
|
|
95
95
|
isMultiple: false,
|
|
96
96
|
description: 'Montant de la TVA déductible au titre du semestre (MOA)',
|
|
97
|
-
value: data.vatAmountDeductible,
|
|
97
|
+
value: data.vatAmountDeductible || null,
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
key: 'IC',
|
|
101
101
|
tag: 'Valeur',
|
|
102
102
|
isMultiple: false,
|
|
103
103
|
description: 'Crédit de TVA dégagé au titre du semestre (MOA)',
|
|
104
|
-
value: data.vatAmountQuarter,
|
|
104
|
+
value: data.vatAmountQuarter || null,
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
key: 'ID',
|
|
108
108
|
tag: 'Valeur',
|
|
109
109
|
isMultiple: false,
|
|
110
110
|
description: 'Remboursement de la TVA sur investissements (MOA)',
|
|
111
|
-
value: data.vatRefundedOnInvests,
|
|
111
|
+
value: data.vatRefundedOnInvests || null,
|
|
112
112
|
},
|
|
113
113
|
],
|
|
114
114
|
}];
|
|
@@ -3,6 +3,7 @@ import { isDefined } from 'class-validator';
|
|
|
3
3
|
import { Cerfa3519_2017, PayloadCerfa3519_2017 } from '../../../types/Interface/api/cerfa/3519';
|
|
4
4
|
import { formatPhoneNumberToE164 } from '../../phone';
|
|
5
5
|
import { CerfaPayloadForm } from '../../../types/Interface/api/cerfa/ReadCerfa';
|
|
6
|
+
import { QualityList } from '../../../types/Enum/Quality';
|
|
6
7
|
|
|
7
8
|
export function getCerfa3519Century17Payload(amount: number, payload: PayloadCerfa3519_2017): Cerfa3519_2017 {
|
|
8
9
|
return {
|
|
@@ -28,7 +29,7 @@ export function getCerfa3519Century17Payload(amount: number, payload: PayloadCer
|
|
|
28
29
|
refund: {
|
|
29
30
|
amount,
|
|
30
31
|
name: `${payload.owner?.firstname ?? ''} ${payload.owner?.lastname ?? ''}`,
|
|
31
|
-
quality: payload.owner?.
|
|
32
|
+
quality: QualityList.find(q => q.id == payload.owner?.businessPartners?.find(bp => bp.idSocietyParent)?.idQuality)?.label ?? null,
|
|
32
33
|
place: payload.society.city ?? null,
|
|
33
34
|
date: dayjs().format('YYYY-MM-DD'),
|
|
34
35
|
firstTime: payload.firstTime,
|