@silexpert/core 1.3.105 → 1.3.106-1

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 (101) hide show
  1. package/dist/cjs/api/resources/BankDedup.d.ts.map +1 -1
  2. package/dist/cjs/api/resources/BankDedup.js +5 -1
  3. package/dist/cjs/api/resources/BankDedup.js.map +1 -1
  4. package/dist/cjs/api/resources/IncomeAllocation.d.ts +0 -2
  5. package/dist/cjs/api/resources/IncomeAllocation.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/IncomeAllocation.js +0 -4
  7. package/dist/cjs/api/resources/IncomeAllocation.js.map +1 -1
  8. package/dist/cjs/api/resources/Payment.d.ts +3 -1
  9. package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/Payment.js +3 -0
  11. package/dist/cjs/api/resources/Payment.js.map +1 -1
  12. package/dist/cjs/api/resources/Registration.d.ts +2 -1
  13. package/dist/cjs/api/resources/Registration.d.ts.map +1 -1
  14. package/dist/cjs/api/resources/Registration.js +3 -0
  15. package/dist/cjs/api/resources/Registration.js.map +1 -1
  16. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +0 -6
  17. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -1
  18. package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -1
  19. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts +3 -21
  20. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -1
  21. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js +2 -54
  22. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -1
  23. package/dist/cjs/types/Interface/api/cerfa/Utils.d.ts +2 -0
  24. package/dist/cjs/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/cerfa/Utils.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts +10 -9
  27. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js +17 -9
  29. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js.map +1 -1
  30. package/dist/cjs/types/Interface/api/registration/QueryRegistration.d.ts +3 -0
  31. package/dist/cjs/types/Interface/api/registration/QueryRegistration.d.ts.map +1 -1
  32. package/dist/cjs/types/Interface/api/registration/QueryRegistration.js +9 -1
  33. package/dist/cjs/types/Interface/api/registration/QueryRegistration.js.map +1 -1
  34. package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
  35. package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  36. package/dist/cjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  37. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +4 -0
  38. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  39. package/dist/cjs/types/Interface/api/stripe/Create.js +13 -1
  40. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  41. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -0
  42. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  43. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +6 -0
  44. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  45. package/dist/mjs/api/resources/BankDedup.d.ts.map +1 -1
  46. package/dist/mjs/api/resources/BankDedup.js +5 -1
  47. package/dist/mjs/api/resources/BankDedup.js.map +1 -1
  48. package/dist/mjs/api/resources/IncomeAllocation.d.ts +0 -2
  49. package/dist/mjs/api/resources/IncomeAllocation.d.ts.map +1 -1
  50. package/dist/mjs/api/resources/IncomeAllocation.js +0 -4
  51. package/dist/mjs/api/resources/IncomeAllocation.js.map +1 -1
  52. package/dist/mjs/api/resources/Payment.d.ts +3 -1
  53. package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
  54. package/dist/mjs/api/resources/Payment.js +3 -0
  55. package/dist/mjs/api/resources/Payment.js.map +1 -1
  56. package/dist/mjs/api/resources/Registration.d.ts +2 -1
  57. package/dist/mjs/api/resources/Registration.d.ts.map +1 -1
  58. package/dist/mjs/api/resources/Registration.js +3 -0
  59. package/dist/mjs/api/resources/Registration.js.map +1 -1
  60. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +0 -6
  61. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -1
  62. package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -1
  63. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts +3 -21
  64. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -1
  65. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js +1 -61
  66. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -1
  67. package/dist/mjs/types/Interface/api/cerfa/Utils.d.ts +2 -0
  68. package/dist/mjs/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
  69. package/dist/mjs/types/Interface/api/cerfa/Utils.js.map +1 -1
  70. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts +10 -9
  71. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts.map +1 -1
  72. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js +18 -9
  73. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js.map +1 -1
  74. package/dist/mjs/types/Interface/api/registration/QueryRegistration.d.ts +3 -0
  75. package/dist/mjs/types/Interface/api/registration/QueryRegistration.d.ts.map +1 -1
  76. package/dist/mjs/types/Interface/api/registration/QueryRegistration.js +8 -0
  77. package/dist/mjs/types/Interface/api/registration/QueryRegistration.js.map +1 -1
  78. package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
  79. package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  80. package/dist/mjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  81. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +4 -0
  82. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  83. package/dist/mjs/types/Interface/api/stripe/Create.js +13 -0
  84. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  85. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -0
  86. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  87. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +8 -1
  88. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  89. package/package.json +1 -1
  90. package/ts/api/resources/BankDedup.ts +6 -1
  91. package/ts/api/resources/IncomeAllocation.ts +0 -5
  92. package/ts/api/resources/Payment.ts +6 -0
  93. package/ts/api/resources/Registration.ts +6 -0
  94. package/ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts +0 -3
  95. package/ts/types/Interface/api/bankDedup/BankDedup.ts +3 -52
  96. package/ts/types/Interface/api/cerfa/Utils.ts +2 -0
  97. package/ts/types/Interface/api/incomeAllocation/CreateIncomeAllocation.ts +25 -18
  98. package/ts/types/Interface/api/registration/QueryRegistration.ts +6 -0
  99. package/ts/types/Interface/api/registration/ReadRegistration.ts +4 -0
  100. package/ts/types/Interface/api/stripe/Create.ts +9 -0
  101. package/ts/types/Interface/api/stripe/QueryStripe.ts +6 -1
@@ -1,5 +1,6 @@
1
1
  import { IsString, IsNumber, IsArray, ValidateNested, IsBoolean, IsIn, IsOptional, Min, Max } from 'class-validator';
2
2
  import { ApiProperty } from '../../../../utils';
3
+ import { TFile2 } from '../file/TFile';
3
4
 
4
5
  export class BankDedupRequest {
5
6
  @ApiProperty()
@@ -17,7 +18,7 @@ export class BankDedupRequest {
17
18
 
18
19
  export class BankDedupAnalysisParams {
19
20
  @ApiProperty()
20
- csv: File;
21
+ csv: TFile2;
21
22
 
22
23
  @ApiProperty()
23
24
  @IsNumber()
@@ -252,54 +253,4 @@ export class BankDedupGroup {
252
253
  }[];
253
254
  }
254
255
 
255
- export class BankDedupImpossible {
256
- @ApiProperty()
257
- @IsBoolean()
258
- success: false;
259
-
260
- @ApiProperty()
261
- @IsIn(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES'])
262
- reason: 'NO_EXACT_COMBINATION' | 'CSV_PARSE_ERROR' | 'INVALID_INPUT' | 'INSUFFICIENT_DUPLICATES';
263
-
264
- @ApiProperty()
265
- @IsString()
266
- message: string;
267
-
268
- @ApiProperty()
269
- @IsOptional()
270
- @IsNumber()
271
- initial?: number;
272
-
273
- @ApiProperty()
274
- @IsOptional()
275
- @IsNumber()
276
- target?: number;
277
-
278
- @ApiProperty()
279
- @IsOptional()
280
- @IsNumber()
281
- finalRaw?: number;
282
-
283
- @ApiProperty()
284
- @IsOptional()
285
- @IsNumber()
286
- diffBefore?: number;
287
-
288
- @ApiProperty()
289
- @IsOptional()
290
- bestAttempt?: {
291
- finalAfterDedup: number;
292
- diffAfter: number;
293
- removedCount: number;
294
- };
295
-
296
- @ApiProperty()
297
- @IsOptional()
298
- stats?: {
299
- totalTx?: number;
300
- totalGroups?: number;
301
- strategiesTried?: string[];
302
- };
303
- }
304
-
305
- export type BankDedupResponse = BankDedupResult | BankDedupImpossible;
256
+ export type BankDedupResponse = BankDedupResult;
@@ -12,7 +12,9 @@ export interface PartnersNaturalPersonPayment {
12
12
  paymentYear: number;
13
13
  emolumentsAndCompensations?: number;
14
14
  fixedCompensations?: number;
15
+ fixedCompensations2?: number;
15
16
  reimbursements?: number;
17
+ reimbursements2?: number;
16
18
  }
17
19
 
18
20
  export interface PartnersNaturalPerson {
@@ -1,4 +1,6 @@
1
+ import { IsBoolean } from 'class-validator';
1
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
2
4
 
3
5
  export class CreateIncomeAllocation {
4
6
  @ApiProperty()
@@ -7,36 +9,41 @@ export class CreateIncomeAllocation {
7
9
  @ApiProperty()
8
10
  idExercice: number;
9
11
 
12
+ @ApiPropertyOptional({ description: 'If true, it will affect the amount into an account 117000.' })
13
+ @IsBoolean()
14
+ @ToBoolean()
15
+ isWaiting?: boolean;
16
+
10
17
  @ApiPropertyOptional()
11
18
  idFile?: number;
12
19
 
13
20
  @ApiPropertyOptional()
14
21
  dateValue?: string | undefined;
15
22
 
16
- @ApiProperty()
17
- debitReport: number;
23
+ @ApiPropertyOptional()
24
+ debitReport?: number;
18
25
 
19
- @ApiProperty()
20
- creditReport: number;
26
+ @ApiPropertyOptional()
27
+ creditReport?: number;
21
28
 
22
- @ApiProperty()
23
- statutoryReserve: number;
29
+ @ApiPropertyOptional()
30
+ statutoryReserve?: number;
24
31
 
25
- @ApiProperty()
26
- legalReserve: number;
32
+ @ApiPropertyOptional()
33
+ legalReserve?: number;
27
34
 
28
- @ApiProperty()
29
- regulatedReserve: number;
35
+ @ApiPropertyOptional()
36
+ regulatedReserve?: number;
30
37
 
31
- @ApiProperty()
32
- unavailableReserve: number;
38
+ @ApiPropertyOptional()
39
+ unavailableReserve?: number;
33
40
 
34
- @ApiProperty()
35
- optionalReserve: number;
41
+ @ApiPropertyOptional()
42
+ optionalReserve?: number;
36
43
 
37
- @ApiProperty()
38
- levyOnReserve: number;
44
+ @ApiPropertyOptional()
45
+ levyOnReserve?: number;
39
46
 
40
- @ApiProperty()
41
- dividend: number;
47
+ @ApiPropertyOptional()
48
+ dividend?: number;
42
49
  }
@@ -12,6 +12,12 @@ export class QueryRegistration {
12
12
  idExercice?: number;
13
13
  }
14
14
 
15
+ export class QueryRegistrationFormValues {
16
+ @ApiProperty()
17
+ @IsEnum(CerfaType)
18
+ idCerfaType: CerfaType;
19
+ }
20
+
15
21
  export class QueryPaginatedRegistration extends RequiredQueryPaginate {
16
22
  @ApiPropertyOptional()
17
23
  @IsOptional()
@@ -13,6 +13,10 @@ export interface ReadSynchronization {
13
13
  hasFailed: boolean;
14
14
  }
15
15
 
16
+ export type ReadRegistrationFormValues = {
17
+ carriedForwardDeficit: number;
18
+ };
19
+
16
20
  export type ReadRegistrationHistory = InterchangeState;
17
21
 
18
22
  export interface ReadRegistrationTick {
@@ -112,6 +112,15 @@ export class CreatePaymentIntent {
112
112
  metadata?: Stripe.MetadataParam;
113
113
  }
114
114
 
115
+ export class UpdatePaymentMethod {
116
+ @ApiProperty()
117
+ @IsString()
118
+ stripePaymentMethodId: string;
119
+
120
+ @ApiProperty()
121
+ metadata: any;
122
+ }
123
+
115
124
  export class PostProcessPaymentAutomatically {
116
125
  @ApiPropertyOptional()
117
126
  @IsInt()
@@ -1,4 +1,4 @@
1
- import { IsBoolean, IsOptional, IsString } from 'class-validator';
1
+ import { IsBoolean, IsNumber, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
@@ -6,6 +6,11 @@ export class RetrievePaymentMethodsParams {
6
6
  @ApiProperty()
7
7
  @IsString()
8
8
  customerId: string;
9
+
10
+ @ApiPropertyOptional({ describe: 'Search into payment method metadata' })
11
+ @IsNumber()
12
+ @IsOptional()
13
+ idSociety: number;
9
14
  }
10
15
 
11
16
  export class QueryStripeSession {