@silexpert/core 1.3.30-4 → 1.3.30-6

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 (70) hide show
  1. package/dist/cjs/api/resources/PaymentExpectation.d.ts +1 -1
  2. package/dist/cjs/api/resources/PaymentExpectation.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/PaymentExpectation.js.map +1 -1
  4. package/dist/cjs/api/resources/Subscription.d.ts +1 -1
  5. package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/Subscription.js.map +1 -1
  7. package/dist/cjs/types/Enum/Account.d.ts +4 -0
  8. package/dist/cjs/types/Enum/Account.d.ts.map +1 -1
  9. package/dist/cjs/types/Enum/Account.js +4 -0
  10. package/dist/cjs/types/Enum/Account.js.map +1 -1
  11. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +2 -0
  12. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  13. package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
  14. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +2 -0
  15. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  16. package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
  17. package/dist/cjs/types/Interface/api/cerfa/2573.d.ts +3 -1
  18. package/dist/cjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
  19. package/dist/cjs/types/Interface/api/cerfa/2573.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +2 -2
  21. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  22. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  23. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
  24. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +15 -1
  26. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
  27. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +3 -1
  28. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  29. package/dist/cjs/types/Interface/api/stripe/Create.js +11 -1
  30. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  31. package/dist/mjs/api/resources/PaymentExpectation.d.ts +1 -1
  32. package/dist/mjs/api/resources/PaymentExpectation.d.ts.map +1 -1
  33. package/dist/mjs/api/resources/PaymentExpectation.js.map +1 -1
  34. package/dist/mjs/api/resources/Subscription.d.ts +1 -1
  35. package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
  36. package/dist/mjs/api/resources/Subscription.js.map +1 -1
  37. package/dist/mjs/types/Enum/Account.d.ts +4 -0
  38. package/dist/mjs/types/Enum/Account.d.ts.map +1 -1
  39. package/dist/mjs/types/Enum/Account.js +4 -0
  40. package/dist/mjs/types/Enum/Account.js.map +1 -1
  41. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +2 -0
  42. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  43. package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
  44. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +2 -0
  45. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  46. package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
  47. package/dist/mjs/types/Interface/api/cerfa/2573.d.ts +3 -1
  48. package/dist/mjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
  49. package/dist/mjs/types/Interface/api/cerfa/2573.js.map +1 -1
  50. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +2 -2
  51. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  52. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  53. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
  54. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
  55. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +18 -2
  56. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
  57. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +3 -1
  58. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  59. package/dist/mjs/types/Interface/api/stripe/Create.js +13 -1
  60. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  61. package/package.json +2 -2
  62. package/ts/api/resources/PaymentExpectation.ts +1 -1
  63. package/ts/api/resources/Subscription.ts +1 -1
  64. package/ts/types/Enum/Account.ts +4 -0
  65. package/ts/types/Interface/api/cerfa/2031.ts +2 -0
  66. package/ts/types/Interface/api/cerfa/2571.ts +4 -0
  67. package/ts/types/Interface/api/cerfa/2573.ts +4 -1
  68. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +2 -3
  69. package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +15 -3
  70. package/ts/types/Interface/api/stripe/Create.ts +14 -6
@@ -1,6 +1,6 @@
1
1
  import { Resource } from '../Resource';
2
2
  import { QueryStripeSession, CreateSubscriptionSession, CreateStripePortals } from '../../types';
3
- import Stripe from 'stripe';
3
+ import type Stripe from 'stripe';
4
4
 
5
5
  export class Subscription extends Resource {
6
6
  /**
@@ -91,6 +91,10 @@ export const Account = {
91
91
  id: 117,
92
92
  number: 625100,
93
93
  },
94
+ TRAVELING_EXPENSES: {
95
+ id: 118,
96
+ number: 625110,
97
+ },
94
98
  DEDUCTIBLE_VAT: {
95
99
  id: 221,
96
100
  number: 445660,
@@ -203,6 +203,7 @@ export interface Cerfa2031_2024 {
203
203
  siren: string;
204
204
  declarantEmail: string;
205
205
  declarantAddress: string;
206
+ declarantAddressObject: CerfaAddress;
206
207
  declarantZipCode: string;
207
208
  declarantCity: string;
208
209
  declarantCountryCode: string;
@@ -380,6 +381,7 @@ export interface Cerfa2031_2025 {
380
381
  siren: string;
381
382
  declarantEmail: string;
382
383
  declarantAddress: string;
384
+ declarantAddressObject: CerfaAddress;
383
385
  declarantZipCode: string;
384
386
  declarantCity: string;
385
387
  declarantCountryCode: string;
@@ -145,9 +145,13 @@ export class Cerfa2571_2024 {
145
145
  };
146
146
  }
147
147
 
148
+ export type Cerfa2571_2025 = Cerfa2571_2024;
149
+
148
150
  export type Prepare2571Params = {
149
151
  idSociety: number;
150
152
  idUser: number;
151
153
  idExercice: number;
152
154
  idRegistration: number;
153
155
  };
156
+
157
+ export type AnyCerfa2571Century = Cerfa2571_2025 | Cerfa2571_2023;
@@ -61,11 +61,14 @@ export type Cerfa2573_2024 = {
61
61
  transferts: Transfert[];
62
62
  };
63
63
 
64
+ export type Cerfa2573_2025 = Cerfa2573_2024;
65
+ export type AnyCerfa2573Century = Cerfa2573_2024;
66
+
64
67
  export type Prepare2573Params = {
65
68
  idSociety: number;
66
69
  idExercice: number;
67
70
  idUser: number;
68
- values: Cerfa2573_2024;
71
+ values: AnyCerfa2573Century;
69
72
  };
70
73
 
71
74
  export type Cerfa2573_Refund_Input = {
@@ -4,10 +4,9 @@ import {
4
4
  AnyCerfa2033Century,
5
5
  AnyCerfa2035Century,
6
6
  AnyCerfa2065Century,
7
+ AnyCerfa2571Century,
7
8
  AnyCerfa2572Century,
8
9
  Cerfa2069RCI_2024,
9
- Cerfa2571_2023,
10
- Cerfa2571_2024,
11
10
  Cerfa2573_2024,
12
11
  Cerfa3519_2017,
13
12
  FieldForGeneration,
@@ -119,7 +118,7 @@ export type AsponeFormField = { name: string; fields: FieldForGeneration[] };
119
118
  export interface RegistrationPayload {
120
119
  cerfa2573?: Cerfa2573_2024;
121
120
  cerfa2572?: AnyCerfa2572Century;
122
- cerfa2571?: Cerfa2571_2023 | Cerfa2571_2024;
121
+ cerfa2571?: AnyCerfa2571Century;
123
122
  cerfa2031?: AnyCerfa2031Century;
124
123
  cerfa2033?: AnyCerfa2033Century;
125
124
  cerfa2065?: AnyCerfa2065Century;
@@ -1,11 +1,23 @@
1
- import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
1
+ import { IsDate, IsIn, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { RequiredQueryPaginate } from '../BasePaginate';
4
4
 
5
5
  export class QueryGetPaymentExpectation {
6
- @ApiProperty()
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
7
8
  @IsInt()
8
- idPrestation: number;
9
+ idPrestation?: number;
10
+
11
+ @ApiPropertyOptional()
12
+ @IsOptional()
13
+ @IsString()
14
+ ref?: string;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsOptional()
18
+ @IsString({each: true})
19
+ @IsIn(['society', 'owner'], { each: true })
20
+ includes?: string[];
9
21
  }
10
22
 
11
23
  export class QueryGetPaymentExpectationPaginated extends RequiredQueryPaginate {
@@ -1,7 +1,6 @@
1
1
  import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
- import Stripe from 'stripe';
4
-
3
+ import type Stripe from 'stripe';
5
4
  export class CreateStripeConnection {
6
5
  @ApiProperty()
7
6
  @IsString()
@@ -18,15 +17,15 @@ export class CreateCustomer {
18
17
  @ApiProperty()
19
18
  @IsInt()
20
19
  id: number;
21
-
20
+
22
21
  @ApiProperty()
23
22
  @IsString()
24
23
  email: string;
25
-
24
+
26
25
  @ApiPropertyOptional()
27
26
  @IsString()
28
27
  lastname?: string;
29
-
28
+
30
29
  @ApiPropertyOptional()
31
30
  @IsString()
32
31
  firstname?: string;
@@ -54,13 +53,22 @@ export class CreateSubscriptionSessionOff {
54
53
  @ApiProperty()
55
54
  @IsString()
56
55
  stripeCustomerId: string;
56
+
57
+ @ApiProperty()
58
+ @IsString()
59
+ ref: string;
60
+
61
+ @ApiPropertyOptional()
62
+ @IsOptional()
63
+ @IsString()
64
+ returnUrl?: string;
57
65
  }
58
66
 
59
67
  export class CreatePaymentIntent {
60
68
  @ApiProperty()
61
69
  @IsString()
62
70
  stripeCustomerId: string;
63
-
71
+
64
72
  @ApiProperty()
65
73
  @IsString()
66
74
  paymentMethodId: string;