@silexpert/core 0.4.142 → 0.4.146
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/es/api/resources/Payment.d.ts +6 -0
- package/es/api/resources/Payment.d.ts.map +1 -0
- package/es/api/resources/Payment.js +13 -0
- package/es/api/resources/Payment.js.map +1 -0
- package/es/api/resources/User.d.ts +2 -1
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +3 -0
- package/es/api/resources/User.js.map +1 -1
- package/es/api/resources/VatDeclaration.d.ts +3 -0
- package/es/api/resources/VatDeclaration.d.ts.map +1 -1
- package/es/api/resources/VatDeclaration.js +6 -0
- package/es/api/resources/VatDeclaration.js.map +1 -1
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/AnswerTypeValue.d.ts +1 -1
- package/es/types/Enum/AnswerTypeValue.d.ts.map +1 -1
- package/es/types/Enum/AnswerTypeValue.js +1 -1
- package/es/types/Enum/AnswerTypeValue.js.map +1 -1
- package/es/types/Enum/BalanceSheetQuestion.d.ts +74 -2
- package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheetQuestion.js +72 -0
- package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/es/types/Enum/BalanceSheetQuestionWording.d.ts +45 -3
- package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheetQuestionWording.js +45 -1
- package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/es/types/Enum/JeDeclare.d.ts +2 -2
- package/es/types/Enum/JeDeclare.d.ts.map +1 -1
- package/es/types/Enum/JeDeclare.js +2 -2
- package/es/types/Enum/JeDeclare.js.map +1 -1
- package/es/types/Enum/VatDeclarationType.d.ts +15 -0
- package/es/types/Enum/VatDeclarationType.d.ts.map +1 -0
- package/es/types/Enum/VatDeclarationType.js +238 -0
- package/es/types/Enum/VatDeclarationType.js.map +1 -0
- package/es/types/Interface/api/cerfa/2033.d.ts +2 -94
- package/es/types/Interface/api/cerfa/2033.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/2033.js +1 -373
- package/es/types/Interface/api/cerfa/2033.js.map +1 -1
- package/es/types/Interface/api/cerfa/ReadCerfa.d.ts +1 -1
- package/es/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/es/types/Interface/api/cerfa/Utils.d.ts +8 -0
- package/es/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/Utils.js.map +1 -1
- package/es/types/Interface/api/jeDeclare/Util.d.ts +1 -1
- package/es/types/Interface/api/jeDeclare/Util.d.ts.map +1 -1
- package/es/types/Interface/api/jeDeclare/Util.js.map +1 -1
- package/es/types/Interface/api/jeDeclare/UtilCFONB.d.ts +0 -2
- package/es/types/Interface/api/jeDeclare/UtilCFONB.d.ts.map +1 -1
- package/es/types/Interface/api/jeDeclare/UtilCFONB.js +0 -123
- package/es/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -1
- package/es/types/Interface/api/payment/QueryMonthlyPayment.d.ts +4 -0
- package/es/types/Interface/api/payment/QueryMonthlyPayment.d.ts.map +1 -0
- package/es/types/Interface/api/payment/QueryMonthlyPayment.js +24 -0
- package/es/types/Interface/api/payment/QueryMonthlyPayment.js.map +1 -0
- package/es/types/Interface/api/user/CreateCoworker.d.ts +17 -0
- package/es/types/Interface/api/user/CreateCoworker.d.ts.map +1 -0
- package/es/types/Interface/api/user/CreateCoworker.js +98 -0
- package/es/types/Interface/api/user/CreateCoworker.js.map +1 -0
- package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts +10 -0
- package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts.map +1 -0
- package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js +2 -0
- package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js.map +1 -0
- package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts +6 -0
- package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts.map +1 -0
- package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.js +2 -0
- package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.js.map +1 -0
- package/es/types/Interface/models/IApiError.d.ts +1 -0
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +1 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IUser.d.ts +50 -50
- package/es/types/Interface/models/IUser.d.ts.map +1 -1
- package/es/types/Interface/models/IUser.js.map +1 -1
- package/es/types/index.d.ts +5 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +5 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/brands.d.ts +2 -1
- package/es/utils/brands.d.ts.map +1 -1
- package/es/utils/brands.js +12 -1
- package/es/utils/brands.js.map +1 -1
- package/js/api/resources/Payment.js +24 -0
- package/js/api/resources/Payment.js.map +1 -0
- package/js/api/resources/User.js +4 -0
- package/js/api/resources/User.js.map +1 -1
- package/js/api/resources/VatDeclaration.js +8 -0
- package/js/api/resources/VatDeclaration.js.map +1 -1
- package/js/api/resources.js +3 -0
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/AnswerTypeValue.js +1 -1
- package/js/types/Enum/AnswerTypeValue.js.map +1 -1
- package/js/types/Enum/BalanceSheetQuestion.js +73 -0
- package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
- package/js/types/Enum/BalanceSheetQuestionWording.js +52 -2
- package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
- package/js/types/Enum/JeDeclare.js +2 -2
- package/js/types/Enum/JeDeclare.js.map +1 -1
- package/js/types/Enum/VatDeclarationType.js +234 -0
- package/js/types/Enum/VatDeclarationType.js.map +1 -0
- package/js/types/Interface/api/cerfa/2033.js +0 -186
- package/js/types/Interface/api/cerfa/2033.js.map +1 -1
- package/js/types/Interface/api/jeDeclare/UtilCFONB.js +0 -128
- package/js/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -1
- package/js/types/Interface/api/payment/QueryMonthlyPayment.js +34 -0
- package/js/types/Interface/api/payment/QueryMonthlyPayment.js.map +1 -0
- package/js/types/Interface/api/user/CreateCoworker.js +57 -0
- package/js/types/Interface/api/user/CreateCoworker.js.map +1 -0
- package/js/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js +6 -0
- package/js/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js.map +1 -0
- package/js/types/Interface/api/vatDeclaration/ResultFormatToEntries.js +6 -0
- package/js/types/Interface/api/vatDeclaration/ResultFormatToEntries.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +2 -1
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/index.js +60 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/brands.js +10 -1
- package/js/utils/brands.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Payment.ts +14 -0
- package/ts/api/resources/User.ts +4 -1
- package/ts/api/resources/VatDeclaration.ts +9 -1
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/AnswerTypeValue.ts +1 -1
- package/ts/types/Enum/BalanceSheetQuestion.ts +77 -0
- package/ts/types/Enum/BalanceSheetQuestionWording.ts +56 -1
- package/ts/types/Enum/JeDeclare.ts +2 -2
- package/ts/types/Enum/VatDeclarationType.ts +253 -0
- package/ts/types/Interface/api/cerfa/2033.ts +3 -281
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +2 -1
- package/ts/types/Interface/api/cerfa/Utils.ts +10 -0
- package/ts/types/Interface/api/jeDeclare/Util.ts +1 -1
- package/ts/types/Interface/api/jeDeclare/UtilCFONB.ts +0 -126
- package/ts/types/Interface/api/payment/QueryMonthlyPayment.ts +13 -0
- package/ts/types/Interface/api/user/CreateCoworker.ts +76 -0
- package/ts/types/Interface/api/vatDeclaration/ReadVatVariousOperations.ts +9 -0
- package/ts/types/Interface/api/vatDeclaration/ResultFormatToEntries.ts +5 -0
- package/ts/types/Interface/models/IApiError.ts +1 -0
- package/ts/types/Interface/models/IUser.ts +50 -50
- package/ts/types/index.ts +5 -0
- package/ts/utils/brands.ts +9 -1
|
@@ -19,60 +19,60 @@ type isAny<T> = T | any;
|
|
|
19
19
|
// users
|
|
20
20
|
export interface IUser {
|
|
21
21
|
id?: number;
|
|
22
|
-
firstname
|
|
23
|
-
lastname
|
|
24
|
-
fullname
|
|
25
|
-
email
|
|
26
|
-
email2
|
|
27
|
-
username
|
|
28
|
-
stripeCustomerId
|
|
29
|
-
positionLabel
|
|
30
|
-
sha
|
|
31
|
-
hash
|
|
32
|
-
password
|
|
33
|
-
idFile
|
|
34
|
-
quality
|
|
35
|
-
idQuality
|
|
36
|
-
phone
|
|
37
|
-
phone2
|
|
38
|
-
prefix
|
|
39
|
-
tokenLostPassword
|
|
40
|
-
tokenApi
|
|
41
|
-
tokenNotification
|
|
42
|
-
tokenSocket
|
|
43
|
-
authyId
|
|
44
|
-
authCode
|
|
45
|
-
authCodeDate
|
|
46
|
-
tutoTransaction
|
|
47
|
-
lastConnection
|
|
48
|
-
beforeLastConnection
|
|
49
|
-
active
|
|
50
|
-
toContact
|
|
51
|
-
stateProspect
|
|
52
|
-
birthdate
|
|
53
|
-
arrivalDate
|
|
54
|
-
isNewProspect
|
|
55
|
-
hasAccountNumberDisplay
|
|
56
|
-
isAssociate
|
|
57
|
-
isResponderActive
|
|
58
|
-
suppDoublon
|
|
59
|
-
calendlyUrl
|
|
60
|
-
idCivility
|
|
61
|
-
idCommercialDoublon
|
|
62
|
-
idProspectIsWith
|
|
63
|
-
apprentice
|
|
64
|
-
smsNotAllowed
|
|
65
|
-
restDaysAbsence
|
|
66
|
-
startOnboarding
|
|
67
|
-
societyByDefault
|
|
68
|
-
longAbsence
|
|
69
|
-
internationalPhone
|
|
70
|
-
isThemeLight
|
|
22
|
+
firstname?: string | null;
|
|
23
|
+
lastname?: string | null;
|
|
24
|
+
fullname?: string | null;
|
|
25
|
+
email?: string | null;
|
|
26
|
+
email2?: string | null;
|
|
27
|
+
username?: string | null;
|
|
28
|
+
stripeCustomerId?: string | null;
|
|
29
|
+
positionLabel?: string | null;
|
|
30
|
+
sha?: string | null;
|
|
31
|
+
hash?: string | null;
|
|
32
|
+
password?: string | null;
|
|
33
|
+
idFile?: number | null;
|
|
34
|
+
quality?: string | null;
|
|
35
|
+
idQuality?: number | null;
|
|
36
|
+
phone?: string | null;
|
|
37
|
+
phone2?: string | null;
|
|
38
|
+
prefix?: string | null;
|
|
39
|
+
tokenLostPassword?: string | null;
|
|
40
|
+
tokenApi?: string | null;
|
|
41
|
+
tokenNotification?: string | null;
|
|
42
|
+
tokenSocket?: string | null;
|
|
43
|
+
authyId?: string | null;
|
|
44
|
+
authCode?: string | null;
|
|
45
|
+
authCodeDate?: Date | null;
|
|
46
|
+
tutoTransaction?: boolean | null;
|
|
47
|
+
lastConnection?: Date | null;
|
|
48
|
+
beforeLastConnection?: Date | null;
|
|
49
|
+
active?: boolean | null;
|
|
50
|
+
toContact?: boolean;
|
|
51
|
+
stateProspect?: boolean | null;
|
|
52
|
+
birthdate?: Date | null;
|
|
53
|
+
arrivalDate?: Date | null;
|
|
54
|
+
isNewProspect?: boolean;
|
|
55
|
+
hasAccountNumberDisplay?: boolean;
|
|
56
|
+
isAssociate?: boolean | null;
|
|
57
|
+
isResponderActive?: boolean;
|
|
58
|
+
suppDoublon?: boolean | null;
|
|
59
|
+
calendlyUrl?: string | null;
|
|
60
|
+
idCivility?: number | null;
|
|
61
|
+
idCommercialDoublon?: number | null;
|
|
62
|
+
idProspectIsWith?: number | null;
|
|
63
|
+
apprentice?: boolean;
|
|
64
|
+
smsNotAllowed?: boolean;
|
|
65
|
+
restDaysAbsence?: number | null;
|
|
66
|
+
startOnboarding?: Date | null;
|
|
67
|
+
societyByDefault?: number | null;
|
|
68
|
+
longAbsence?: boolean | null;
|
|
69
|
+
internationalPhone?: string | null;
|
|
70
|
+
isThemeLight?: boolean;
|
|
71
71
|
createdAt?: Date | null;
|
|
72
72
|
updatedAt?: Date | null;
|
|
73
73
|
confirmedAt?: Date | null;
|
|
74
74
|
tokenConfirmedAt?: string | null;
|
|
75
|
-
idPoleLeader
|
|
75
|
+
idPoleLeader?: number | null;
|
|
76
76
|
affiliateTrackingId?: number | null;
|
|
77
77
|
|
|
78
78
|
// Associations
|
package/ts/types/index.ts
CHANGED
|
@@ -392,6 +392,7 @@ export * from './Enum/BalanceSheetModule';
|
|
|
392
392
|
export * from './Enum/BalanceSheetStatus';
|
|
393
393
|
export * from './Enum/FuelType';
|
|
394
394
|
export * from './Enum/KilometricAllowanceScale';
|
|
395
|
+
export * from './Enum/VatDeclarationType';
|
|
395
396
|
|
|
396
397
|
// Interfaces API
|
|
397
398
|
export * from './Interface/api/jeDeclare/ReadJeDeclare';
|
|
@@ -404,6 +405,7 @@ export * from './Interface/api/accountingEntry/AnnotateAccountingTransaction';
|
|
|
404
405
|
export * from './Interface/api/accountingEntry/CreateManualEntry';
|
|
405
406
|
export * from './Interface/api/immobilization/ReadFormattedImmobilization';
|
|
406
407
|
export * from './Interface/api/immobilization/CreateImmobilization';
|
|
408
|
+
export * from './Interface/api/payment/QueryMonthlyPayment';
|
|
407
409
|
export * from './Interface/api/paymentExpectationCustomer/ReadPaymentExpectationCustomer';
|
|
408
410
|
export * from './Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer';
|
|
409
411
|
export * from './Interface/api/paymentExpectationCustomer/UpdatePaymentExpectationCustomer';
|
|
@@ -420,6 +422,7 @@ export * from './Interface/api/user/QueryConfirm';
|
|
|
420
422
|
export * from './Interface/api/user/QuerySocieties';
|
|
421
423
|
export * from './Interface/api/user/QueryResendConfirmationLink';
|
|
422
424
|
export * from './Interface/api/user/CreateUser';
|
|
425
|
+
export * from './Interface/api/user/CreateCoworker';
|
|
423
426
|
export * from './Interface/api/user/QueryUserSmsConfirmation';
|
|
424
427
|
export * from './Interface/api/user/Permissions';
|
|
425
428
|
export * from './Interface/api/account/ReadAccounts';
|
|
@@ -491,6 +494,8 @@ export * from './Interface/api/revision/QueryRevisionMergeIntoAccount';
|
|
|
491
494
|
export * from './Interface/api/revision/ReadRevisionMergeIntoAccount';
|
|
492
495
|
export * from './Interface/api/revision/QueryRevisionSearchEntries';
|
|
493
496
|
export * from './Interface/api/vatDeclaration/QueryVatDeclaration';
|
|
497
|
+
export * from './Interface/api/vatDeclaration/ReadVatVariousOperations';
|
|
498
|
+
export * from './Interface/api/vatDeclaration/ResultFormatToEntries';
|
|
494
499
|
|
|
495
500
|
// export * from './Interface/api/survey/QuerySurvey';
|
|
496
501
|
export * from './Interface/api/survey/ReadSurvey';
|
package/ts/utils/brands.ts
CHANGED
|
@@ -77,4 +77,12 @@ const getBrandConfig = (params: getBrandConfigParams): brand => {
|
|
|
77
77
|
return brand;
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
const getBrandByEmail = (email: string): 'Legalstart'| 'Comptalib' | 'Clementine' | 'Pourcentage' | null => {
|
|
81
|
+
if (email.indexOf('legalstart.fr') > -1) return 'Legalstart';
|
|
82
|
+
if (email.indexOf('comptalib.com') > -1) return 'Comptalib';
|
|
83
|
+
if (email.indexOf('pourcentage.fr') > -1) return 'Pourcentage';
|
|
84
|
+
if (email.indexOf('compta-clementine.fr') > -1) return 'Clementine';
|
|
85
|
+
return null;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export { getBrandConfig, getBrandNameByNodeEnv, getBrandByEmail };
|