@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.
Files changed (143) hide show
  1. package/es/api/resources/Payment.d.ts +6 -0
  2. package/es/api/resources/Payment.d.ts.map +1 -0
  3. package/es/api/resources/Payment.js +13 -0
  4. package/es/api/resources/Payment.js.map +1 -0
  5. package/es/api/resources/User.d.ts +2 -1
  6. package/es/api/resources/User.d.ts.map +1 -1
  7. package/es/api/resources/User.js +3 -0
  8. package/es/api/resources/User.js.map +1 -1
  9. package/es/api/resources/VatDeclaration.d.ts +3 -0
  10. package/es/api/resources/VatDeclaration.d.ts.map +1 -1
  11. package/es/api/resources/VatDeclaration.js +6 -0
  12. package/es/api/resources/VatDeclaration.js.map +1 -1
  13. package/es/api/resources.d.ts +2 -0
  14. package/es/api/resources.d.ts.map +1 -1
  15. package/es/api/resources.js +2 -0
  16. package/es/api/resources.js.map +1 -1
  17. package/es/types/Enum/AnswerTypeValue.d.ts +1 -1
  18. package/es/types/Enum/AnswerTypeValue.d.ts.map +1 -1
  19. package/es/types/Enum/AnswerTypeValue.js +1 -1
  20. package/es/types/Enum/AnswerTypeValue.js.map +1 -1
  21. package/es/types/Enum/BalanceSheetQuestion.d.ts +74 -2
  22. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  23. package/es/types/Enum/BalanceSheetQuestion.js +72 -0
  24. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  25. package/es/types/Enum/BalanceSheetQuestionWording.d.ts +45 -3
  26. package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  27. package/es/types/Enum/BalanceSheetQuestionWording.js +45 -1
  28. package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  29. package/es/types/Enum/JeDeclare.d.ts +2 -2
  30. package/es/types/Enum/JeDeclare.d.ts.map +1 -1
  31. package/es/types/Enum/JeDeclare.js +2 -2
  32. package/es/types/Enum/JeDeclare.js.map +1 -1
  33. package/es/types/Enum/VatDeclarationType.d.ts +15 -0
  34. package/es/types/Enum/VatDeclarationType.d.ts.map +1 -0
  35. package/es/types/Enum/VatDeclarationType.js +238 -0
  36. package/es/types/Enum/VatDeclarationType.js.map +1 -0
  37. package/es/types/Interface/api/cerfa/2033.d.ts +2 -94
  38. package/es/types/Interface/api/cerfa/2033.d.ts.map +1 -1
  39. package/es/types/Interface/api/cerfa/2033.js +1 -373
  40. package/es/types/Interface/api/cerfa/2033.js.map +1 -1
  41. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts +1 -1
  42. package/es/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  43. package/es/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  44. package/es/types/Interface/api/cerfa/Utils.d.ts +8 -0
  45. package/es/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
  46. package/es/types/Interface/api/cerfa/Utils.js.map +1 -1
  47. package/es/types/Interface/api/jeDeclare/Util.d.ts +1 -1
  48. package/es/types/Interface/api/jeDeclare/Util.d.ts.map +1 -1
  49. package/es/types/Interface/api/jeDeclare/Util.js.map +1 -1
  50. package/es/types/Interface/api/jeDeclare/UtilCFONB.d.ts +0 -2
  51. package/es/types/Interface/api/jeDeclare/UtilCFONB.d.ts.map +1 -1
  52. package/es/types/Interface/api/jeDeclare/UtilCFONB.js +0 -123
  53. package/es/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -1
  54. package/es/types/Interface/api/payment/QueryMonthlyPayment.d.ts +4 -0
  55. package/es/types/Interface/api/payment/QueryMonthlyPayment.d.ts.map +1 -0
  56. package/es/types/Interface/api/payment/QueryMonthlyPayment.js +24 -0
  57. package/es/types/Interface/api/payment/QueryMonthlyPayment.js.map +1 -0
  58. package/es/types/Interface/api/user/CreateCoworker.d.ts +17 -0
  59. package/es/types/Interface/api/user/CreateCoworker.d.ts.map +1 -0
  60. package/es/types/Interface/api/user/CreateCoworker.js +98 -0
  61. package/es/types/Interface/api/user/CreateCoworker.js.map +1 -0
  62. package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts +10 -0
  63. package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.d.ts.map +1 -0
  64. package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js +2 -0
  65. package/es/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js.map +1 -0
  66. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts +6 -0
  67. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.d.ts.map +1 -0
  68. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.js +2 -0
  69. package/es/types/Interface/api/vatDeclaration/ResultFormatToEntries.js.map +1 -0
  70. package/es/types/Interface/models/IApiError.d.ts +1 -0
  71. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  72. package/es/types/Interface/models/IApiError.js +1 -0
  73. package/es/types/Interface/models/IApiError.js.map +1 -1
  74. package/es/types/Interface/models/IUser.d.ts +50 -50
  75. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  76. package/es/types/Interface/models/IUser.js.map +1 -1
  77. package/es/types/index.d.ts +5 -0
  78. package/es/types/index.d.ts.map +1 -1
  79. package/es/types/index.js +5 -0
  80. package/es/types/index.js.map +1 -1
  81. package/es/utils/brands.d.ts +2 -1
  82. package/es/utils/brands.d.ts.map +1 -1
  83. package/es/utils/brands.js +12 -1
  84. package/es/utils/brands.js.map +1 -1
  85. package/js/api/resources/Payment.js +24 -0
  86. package/js/api/resources/Payment.js.map +1 -0
  87. package/js/api/resources/User.js +4 -0
  88. package/js/api/resources/User.js.map +1 -1
  89. package/js/api/resources/VatDeclaration.js +8 -0
  90. package/js/api/resources/VatDeclaration.js.map +1 -1
  91. package/js/api/resources.js +3 -0
  92. package/js/api/resources.js.map +1 -1
  93. package/js/types/Enum/AnswerTypeValue.js +1 -1
  94. package/js/types/Enum/AnswerTypeValue.js.map +1 -1
  95. package/js/types/Enum/BalanceSheetQuestion.js +73 -0
  96. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  97. package/js/types/Enum/BalanceSheetQuestionWording.js +52 -2
  98. package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  99. package/js/types/Enum/JeDeclare.js +2 -2
  100. package/js/types/Enum/JeDeclare.js.map +1 -1
  101. package/js/types/Enum/VatDeclarationType.js +234 -0
  102. package/js/types/Enum/VatDeclarationType.js.map +1 -0
  103. package/js/types/Interface/api/cerfa/2033.js +0 -186
  104. package/js/types/Interface/api/cerfa/2033.js.map +1 -1
  105. package/js/types/Interface/api/jeDeclare/UtilCFONB.js +0 -128
  106. package/js/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -1
  107. package/js/types/Interface/api/payment/QueryMonthlyPayment.js +34 -0
  108. package/js/types/Interface/api/payment/QueryMonthlyPayment.js.map +1 -0
  109. package/js/types/Interface/api/user/CreateCoworker.js +57 -0
  110. package/js/types/Interface/api/user/CreateCoworker.js.map +1 -0
  111. package/js/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js +6 -0
  112. package/js/types/Interface/api/vatDeclaration/ReadVatVariousOperations.js.map +1 -0
  113. package/js/types/Interface/api/vatDeclaration/ResultFormatToEntries.js +6 -0
  114. package/js/types/Interface/api/vatDeclaration/ResultFormatToEntries.js.map +1 -0
  115. package/js/types/Interface/models/IApiError.js +2 -1
  116. package/js/types/Interface/models/IApiError.js.map +1 -1
  117. package/js/types/index.js +60 -0
  118. package/js/types/index.js.map +1 -1
  119. package/js/utils/brands.js +10 -1
  120. package/js/utils/brands.js.map +1 -1
  121. package/package.json +1 -1
  122. package/ts/api/resources/Payment.ts +14 -0
  123. package/ts/api/resources/User.ts +4 -1
  124. package/ts/api/resources/VatDeclaration.ts +9 -1
  125. package/ts/api/resources.ts +2 -0
  126. package/ts/types/Enum/AnswerTypeValue.ts +1 -1
  127. package/ts/types/Enum/BalanceSheetQuestion.ts +77 -0
  128. package/ts/types/Enum/BalanceSheetQuestionWording.ts +56 -1
  129. package/ts/types/Enum/JeDeclare.ts +2 -2
  130. package/ts/types/Enum/VatDeclarationType.ts +253 -0
  131. package/ts/types/Interface/api/cerfa/2033.ts +3 -281
  132. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +2 -1
  133. package/ts/types/Interface/api/cerfa/Utils.ts +10 -0
  134. package/ts/types/Interface/api/jeDeclare/Util.ts +1 -1
  135. package/ts/types/Interface/api/jeDeclare/UtilCFONB.ts +0 -126
  136. package/ts/types/Interface/api/payment/QueryMonthlyPayment.ts +13 -0
  137. package/ts/types/Interface/api/user/CreateCoworker.ts +76 -0
  138. package/ts/types/Interface/api/vatDeclaration/ReadVatVariousOperations.ts +9 -0
  139. package/ts/types/Interface/api/vatDeclaration/ResultFormatToEntries.ts +5 -0
  140. package/ts/types/Interface/models/IApiError.ts +1 -0
  141. package/ts/types/Interface/models/IUser.ts +50 -50
  142. package/ts/types/index.ts +5 -0
  143. 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: 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;
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: number | null;
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';
@@ -77,4 +77,12 @@ const getBrandConfig = (params: getBrandConfigParams): brand => {
77
77
  return brand;
78
78
  };
79
79
 
80
- export { getBrandConfig, getBrandNameByNodeEnv };
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 };