@silexpert/core 1.0.43 → 1.0.47

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 (172) hide show
  1. package/es/api/resources/BudgetInsight.d.ts +0 -7
  2. package/es/api/resources/BudgetInsight.d.ts.map +1 -1
  3. package/es/api/resources/BudgetInsight.js +0 -8
  4. package/es/api/resources/BudgetInsight.js.map +1 -1
  5. package/es/api/resources/CommercialDocument.d.ts +2 -2
  6. package/es/api/resources/CommercialDocument.d.ts.map +1 -1
  7. package/es/api/resources/CommercialDocument.js.map +1 -1
  8. package/es/api/resources/FIle.d.ts +1 -0
  9. package/es/api/resources/FIle.d.ts.map +1 -1
  10. package/es/api/resources/FIle.js +3 -0
  11. package/es/api/resources/FIle.js.map +1 -1
  12. package/es/api/resources/Wallet.d.ts +8 -0
  13. package/es/api/resources/Wallet.d.ts.map +1 -0
  14. package/es/api/resources/Wallet.js +7 -0
  15. package/es/api/resources/Wallet.js.map +1 -0
  16. package/es/api/resources/statistic/Accountant.d.ts +53 -0
  17. package/es/api/resources/statistic/Accountant.d.ts.map +1 -0
  18. package/es/api/resources/statistic/Accountant.js +77 -0
  19. package/es/api/resources/statistic/Accountant.js.map +1 -0
  20. package/es/api/resources/statistic/Direction.d.ts +11 -0
  21. package/es/api/resources/statistic/Direction.d.ts.map +1 -0
  22. package/es/api/resources/statistic/Direction.js +14 -0
  23. package/es/api/resources/statistic/Direction.js.map +1 -0
  24. package/es/api/resources/statistic/ExpertAccountant.d.ts +29 -0
  25. package/es/api/resources/statistic/ExpertAccountant.d.ts.map +1 -0
  26. package/es/api/resources/statistic/ExpertAccountant.js +41 -0
  27. package/es/api/resources/statistic/ExpertAccountant.js.map +1 -0
  28. package/es/api/resources.d.ts +8 -0
  29. package/es/api/resources.d.ts.map +1 -1
  30. package/es/api/resources.js +8 -0
  31. package/es/api/resources.js.map +1 -1
  32. package/es/types/Enum/AdditionnalSells.d.ts +7 -0
  33. package/es/types/Enum/AdditionnalSells.d.ts.map +1 -0
  34. package/es/types/Enum/AdditionnalSells.js +8 -0
  35. package/es/types/Enum/AdditionnalSells.js.map +1 -0
  36. package/es/types/Enum/StatisticType.d.ts +15 -0
  37. package/es/types/Enum/StatisticType.d.ts.map +1 -0
  38. package/es/types/Enum/StatisticType.js +16 -0
  39. package/es/types/Enum/StatisticType.js.map +1 -0
  40. package/es/types/Enum/Unit.d.ts +31 -0
  41. package/es/types/Enum/Unit.d.ts.map +1 -1
  42. package/es/types/Enum/Unit.js +139 -20
  43. package/es/types/Enum/Unit.js.map +1 -1
  44. package/es/types/Enum/Vat.d.ts +17 -0
  45. package/es/types/Enum/Vat.d.ts.map +1 -1
  46. package/es/types/Enum/Vat.js +18 -0
  47. package/es/types/Enum/Vat.js.map +1 -1
  48. package/es/types/Interface/api/commercialManagement/Read.d.ts +3 -0
  49. package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  50. package/es/types/Interface/api/commercialManagement/Read.js.map +1 -1
  51. package/es/types/Interface/api/product/CreateProduct.d.ts +1 -0
  52. package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
  53. package/es/types/Interface/api/product/CreateProduct.js +6 -0
  54. package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
  55. package/es/types/Interface/api/statistic/ExitRequest.d.ts +98 -0
  56. package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -0
  57. package/es/types/Interface/api/statistic/ExitRequest.js +2 -0
  58. package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -0
  59. package/es/types/Interface/api/statistic/QueryAccountant.d.ts +6 -0
  60. package/es/types/Interface/api/statistic/QueryAccountant.d.ts.map +1 -0
  61. package/es/types/Interface/api/statistic/QueryAccountant.js +31 -0
  62. package/es/types/Interface/api/statistic/QueryAccountant.js.map +1 -0
  63. package/es/types/Interface/api/statistic/QueryDirection.d.ts +6 -0
  64. package/es/types/Interface/api/statistic/QueryDirection.d.ts.map +1 -0
  65. package/es/types/Interface/api/statistic/QueryDirection.js +31 -0
  66. package/es/types/Interface/api/statistic/QueryDirection.js.map +1 -0
  67. package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts +6 -0
  68. package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts.map +1 -0
  69. package/es/types/Interface/api/statistic/QueryExpertAccountant.js +31 -0
  70. package/es/types/Interface/api/statistic/QueryExpertAccountant.js.map +1 -0
  71. package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts +5 -0
  72. package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts.map +1 -0
  73. package/es/types/Interface/api/statistic/QueryGetAccountant.js +24 -0
  74. package/es/types/Interface/api/statistic/QueryGetAccountant.js.map +1 -0
  75. package/es/types/Interface/api/statistic/QueryGetDirection.d.ts +5 -0
  76. package/es/types/Interface/api/statistic/QueryGetDirection.d.ts.map +1 -0
  77. package/es/types/Interface/api/statistic/QueryGetDirection.js +24 -0
  78. package/es/types/Interface/api/statistic/QueryGetDirection.js.map +1 -0
  79. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts +5 -0
  80. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts.map +1 -0
  81. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js +24 -0
  82. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +1 -0
  83. package/es/types/Interface/api/wallet/UpdateAttribution.d.ts +6 -0
  84. package/es/types/Interface/api/wallet/UpdateAttribution.d.ts.map +1 -0
  85. package/es/types/Interface/api/wallet/UpdateAttribution.js +34 -0
  86. package/es/types/Interface/api/wallet/UpdateAttribution.js.map +1 -0
  87. package/es/types/Interface/models/IAttributionHistory.d.ts +4 -4
  88. package/es/types/Interface/models/IAttributionHistory.d.ts.map +1 -1
  89. package/es/types/Interface/models/IAttributionHistory.js.map +1 -1
  90. package/es/types/Interface/models/IPrestationComplementary.d.ts +1 -1
  91. package/es/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
  92. package/es/types/Interface/models/IPrestationComplementary.js.map +1 -1
  93. package/es/types/Interface/models/IStatistic.d.ts +11 -0
  94. package/es/types/Interface/models/IStatistic.d.ts.map +1 -0
  95. package/es/types/Interface/models/IStatistic.js +2 -0
  96. package/es/types/Interface/models/IStatistic.js.map +1 -0
  97. package/es/types/index.d.ts +11 -0
  98. package/es/types/index.d.ts.map +1 -1
  99. package/es/types/index.js +11 -0
  100. package/es/types/index.js.map +1 -1
  101. package/js/api/resources/BudgetInsight.js +0 -10
  102. package/js/api/resources/BudgetInsight.js.map +1 -1
  103. package/js/api/resources/CommercialDocument.js.map +1 -1
  104. package/js/api/resources/FIle.js +4 -0
  105. package/js/api/resources/FIle.js.map +1 -1
  106. package/js/api/resources/Wallet.js +18 -0
  107. package/js/api/resources/Wallet.js.map +1 -0
  108. package/js/api/resources/statistic/Accountant.js +135 -0
  109. package/js/api/resources/statistic/Accountant.js.map +1 -0
  110. package/js/api/resources/statistic/Direction.js +30 -0
  111. package/js/api/resources/statistic/Direction.js.map +1 -0
  112. package/js/api/resources/statistic/ExpertAccountant.js +75 -0
  113. package/js/api/resources/statistic/ExpertAccountant.js.map +1 -0
  114. package/js/api/resources.js +13 -1
  115. package/js/api/resources.js.map +1 -1
  116. package/js/types/Enum/AdditionnalSells.js +14 -0
  117. package/js/types/Enum/AdditionnalSells.js.map +1 -0
  118. package/js/types/Enum/StatisticType.js +22 -0
  119. package/js/types/Enum/StatisticType.js.map +1 -0
  120. package/js/types/Enum/Unit.js +121 -20
  121. package/js/types/Enum/Unit.js.map +1 -1
  122. package/js/types/Enum/Vat.js +19 -0
  123. package/js/types/Enum/Vat.js.map +1 -1
  124. package/js/types/Interface/api/product/CreateProduct.js +2 -0
  125. package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
  126. package/js/types/Interface/api/statistic/ExitRequest.js +6 -0
  127. package/js/types/Interface/api/statistic/ExitRequest.js.map +1 -0
  128. package/js/types/Interface/api/statistic/QueryAccountant.js +35 -0
  129. package/js/types/Interface/api/statistic/QueryAccountant.js.map +1 -0
  130. package/js/types/Interface/api/statistic/QueryDirection.js +35 -0
  131. package/js/types/Interface/api/statistic/QueryDirection.js.map +1 -0
  132. package/js/types/Interface/api/statistic/QueryExpertAccountant.js +35 -0
  133. package/js/types/Interface/api/statistic/QueryExpertAccountant.js.map +1 -0
  134. package/js/types/Interface/api/statistic/QueryGetAccountant.js +31 -0
  135. package/js/types/Interface/api/statistic/QueryGetAccountant.js.map +1 -0
  136. package/js/types/Interface/api/statistic/QueryGetDirection.js +31 -0
  137. package/js/types/Interface/api/statistic/QueryGetDirection.js.map +1 -0
  138. package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js +31 -0
  139. package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +1 -0
  140. package/js/types/Interface/api/wallet/UpdateAttribution.js +35 -0
  141. package/js/types/Interface/api/wallet/UpdateAttribution.js.map +1 -0
  142. package/js/types/Interface/models/IStatistic.js +6 -0
  143. package/js/types/Interface/models/IStatistic.js.map +1 -0
  144. package/js/types/index.js +132 -0
  145. package/js/types/index.js.map +1 -1
  146. package/package.json +1 -1
  147. package/ts/api/resources/BudgetInsight.ts +0 -13
  148. package/ts/api/resources/CommercialDocument.ts +2 -2
  149. package/ts/api/resources/FIle.ts +4 -0
  150. package/ts/api/resources/Wallet.ts +8 -0
  151. package/ts/api/resources/statistic/Accountant.ts +108 -0
  152. package/ts/api/resources/statistic/Direction.ts +17 -0
  153. package/ts/api/resources/statistic/ExpertAccountant.ts +56 -0
  154. package/ts/api/resources.ts +8 -0
  155. package/ts/types/Enum/AdditionnalSells.ts +6 -0
  156. package/ts/types/Enum/StatisticType.ts +14 -0
  157. package/ts/types/Enum/Unit.ts +143 -21
  158. package/ts/types/Enum/Vat.ts +19 -1
  159. package/ts/types/Interface/api/commercialManagement/Read.ts +2 -0
  160. package/ts/types/Interface/api/product/CreateProduct.ts +5 -0
  161. package/ts/types/Interface/api/statistic/ExitRequest.ts +108 -0
  162. package/ts/types/Interface/api/statistic/QueryAccountant.ts +20 -0
  163. package/ts/types/Interface/api/statistic/QueryDirection.ts +20 -0
  164. package/ts/types/Interface/api/statistic/QueryExpertAccountant.ts +20 -0
  165. package/ts/types/Interface/api/statistic/QueryGetAccountant.ts +14 -0
  166. package/ts/types/Interface/api/statistic/QueryGetDirection.ts +14 -0
  167. package/ts/types/Interface/api/statistic/QueryGetExpertAccountant.ts +14 -0
  168. package/ts/types/Interface/api/wallet/UpdateAttribution.ts +23 -0
  169. package/ts/types/Interface/models/IAttributionHistory.ts +4 -4
  170. package/ts/types/Interface/models/IPrestationComplementary.ts +1 -1
  171. package/ts/types/Interface/models/IStatistic.ts +13 -0
  172. package/ts/types/index.ts +11 -0
@@ -0,0 +1,14 @@
1
+ import {
2
+ IsDate, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+
6
+ export class QueryGetDirection {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ idUser: number[];
10
+
11
+ @ApiProperty()
12
+ @IsDate()
13
+ endDate: Date;
14
+ }
@@ -0,0 +1,14 @@
1
+ import {
2
+ IsDate, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+
6
+ export class QueryGetExpertAccountant {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ idUser: number[];
10
+
11
+ @ApiProperty()
12
+ @IsDate()
13
+ endDate: Date;
14
+ }
@@ -0,0 +1,23 @@
1
+ import {
2
+ IsBoolean, IsNumber, IsOptional, IsPositive,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
+
7
+ export class UpdateAttribution {
8
+ @ApiProperty()
9
+ @IsNumber()
10
+ @IsPositive()
11
+ idRoles: number;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsOptional()
15
+ @IsNumber()
16
+ swapUserId?: number;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ @IsBoolean()
21
+ @ToBoolean()
22
+ randomSwap?: boolean;
23
+ }
@@ -13,8 +13,8 @@ export interface IAttributionHistory {
13
13
  updatedAt?: Date | null;
14
14
 
15
15
  // Associations
16
- userAttribute: IUser;
17
- userMakeAttribution: IUser;
18
- society: ISociety;
19
- role: IRole;
16
+ userAttribute?: IUser;
17
+ userMakeAttribution?: IUser;
18
+ society?: ISociety;
19
+ role?: IRole;
20
20
  }
@@ -21,7 +21,7 @@ export interface IPrestationComplementary {
21
21
  note: string | null;
22
22
  forOtherMission: string | null;
23
23
  statePrestationJuridique: number | null;
24
- acceptationAdmin: boolean;
24
+ acceptationAdmin: number;
25
25
  createdAt?: Date | null;
26
26
  updatedAt?: Date | null;
27
27
  deletedAt?: Date | null;
@@ -0,0 +1,13 @@
1
+ import { IUser } from './IUser';
2
+
3
+ export interface IStatistic {
4
+ id?: number,
5
+ idUser: number,
6
+ startDate?: Date,
7
+ endDate?: Date,
8
+ type: number,
9
+ payload: string,
10
+
11
+ // Associations
12
+ user?: IUser;
13
+ }
package/ts/types/index.ts CHANGED
@@ -293,6 +293,7 @@ export * from './Interface/models/IAccountingTransaction_new';
293
293
  export * from './Interface/models/IExerciceNote';
294
294
  export * from './Interface/models/IRevisionGuide';
295
295
  export * from './Interface/models/ISponsorshipWithSponsorInfo';
296
+ export * from './Interface/models/IStatistic';
296
297
  export * from './Interface/models/ILastUpdateConnection';
297
298
  export * from './Interface/models/IAccountsSectors';
298
299
  export * from './Interface/models/IAnswerType';
@@ -376,7 +377,9 @@ export * from './Enum/GlobalRegime';
376
377
  export * from './Enum/TaxSystem';
377
378
  export * from './Enum/FiscalRegime';
378
379
  export * from './Enum/Activity';
380
+ export * from './Enum/AdditionnalSells';
379
381
  export * from './Enum/CerfaType';
382
+ export * from './Enum/StatisticType';
380
383
  export * from './Enum/StockType';
381
384
  export * from './Enum/SaleType';
382
385
  export * from './Enum/TypePayment';
@@ -620,6 +623,13 @@ export * from './Interface/api/pappers/ReadPappers';
620
623
  export * from './Interface/api/sponsorship/SendSponsorshipLink';
621
624
  export * from './Interface/api/sponsorship/CreateSponsorship';
622
625
  export * from './Interface/api/sponsorship/QuerySponsorship';
626
+ export * from './Interface/api/statistic/ExitRequest';
627
+ export * from './Interface/api/statistic/QueryExpertAccountant';
628
+ export * from './Interface/api/statistic/QueryGetExpertAccountant';
629
+ export * from './Interface/api/statistic/QueryAccountant';
630
+ export * from './Interface/api/statistic/QueryGetAccountant';
631
+ export * from './Interface/api/statistic/QueryDirection';
632
+ export * from './Interface/api/statistic/QueryGetDirection';
623
633
  export * from './Interface/api/pappers/CreatePappers';
624
634
  export * from './Interface/api/bankAccount/DeleteTransaction';
625
635
  export * from './Interface/api/stripe/QueryStripe';
@@ -788,6 +798,7 @@ export * from './Interface/api/qonto/ReadCreateConnection';
788
798
  export * from './Interface/api/file/Create';
789
799
  export * from './Interface/api/file/Read';
790
800
  export * from './Interface/api/societyConfig/update';
801
+ export * from './Interface/api/wallet/UpdateAttribution';
791
802
 
792
803
  // Enums types
793
804
  export * from './Interface/enum/Util';