@silexpert/core 1.3.30-3 → 1.3.30-5

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 (92) 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 +2 -6
  5. package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/Subscription.js +0 -6
  7. package/dist/cjs/api/resources/Subscription.js.map +1 -1
  8. package/dist/cjs/types/Enum/Account.d.ts +4 -0
  9. package/dist/cjs/types/Enum/Account.d.ts.map +1 -1
  10. package/dist/cjs/types/Enum/Account.js +4 -0
  11. package/dist/cjs/types/Enum/Account.js.map +1 -1
  12. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +2 -0
  13. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  14. package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
  15. package/dist/cjs/types/Interface/api/cerfa/2573.d.ts +3 -1
  16. package/dist/cjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
  17. package/dist/cjs/types/Interface/api/cerfa/2573.js.map +1 -1
  18. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +2 -2
  19. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  20. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  21. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
  22. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +15 -1
  24. package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
  25. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +1 -1
  26. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/api/stripe/Create.js +0 -1
  28. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +0 -4
  30. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +1 -14
  32. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  33. package/dist/cjs/types/index.d.ts +0 -1
  34. package/dist/cjs/types/index.d.ts.map +1 -1
  35. package/dist/cjs/types/index.js +0 -1
  36. package/dist/cjs/types/index.js.map +1 -1
  37. package/dist/mjs/api/resources/PaymentExpectation.d.ts +1 -1
  38. package/dist/mjs/api/resources/PaymentExpectation.d.ts.map +1 -1
  39. package/dist/mjs/api/resources/PaymentExpectation.js.map +1 -1
  40. package/dist/mjs/api/resources/Subscription.d.ts +2 -6
  41. package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
  42. package/dist/mjs/api/resources/Subscription.js +0 -6
  43. package/dist/mjs/api/resources/Subscription.js.map +1 -1
  44. package/dist/mjs/types/Enum/Account.d.ts +4 -0
  45. package/dist/mjs/types/Enum/Account.d.ts.map +1 -1
  46. package/dist/mjs/types/Enum/Account.js +4 -0
  47. package/dist/mjs/types/Enum/Account.js.map +1 -1
  48. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +2 -0
  49. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  50. package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
  51. package/dist/mjs/types/Interface/api/cerfa/2573.d.ts +3 -1
  52. package/dist/mjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
  53. package/dist/mjs/types/Interface/api/cerfa/2573.js.map +1 -1
  54. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +2 -2
  55. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  56. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  57. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
  58. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
  59. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +18 -2
  60. package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
  61. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +1 -1
  62. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  63. package/dist/mjs/types/Interface/api/stripe/Create.js +0 -1
  64. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  65. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +0 -4
  66. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  67. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +0 -14
  68. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  69. package/dist/mjs/types/index.d.ts +0 -1
  70. package/dist/mjs/types/index.d.ts.map +1 -1
  71. package/dist/mjs/types/index.js +0 -1
  72. package/dist/mjs/types/index.js.map +1 -1
  73. package/package.json +2 -2
  74. package/ts/api/resources/PaymentExpectation.ts +1 -1
  75. package/ts/api/resources/Subscription.ts +2 -15
  76. package/ts/types/Enum/Account.ts +4 -0
  77. package/ts/types/Interface/api/cerfa/2571.ts +4 -0
  78. package/ts/types/Interface/api/cerfa/2573.ts +4 -1
  79. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +2 -3
  80. package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +15 -3
  81. package/ts/types/Interface/api/stripe/Create.ts +5 -6
  82. package/ts/types/Interface/api/stripe/QueryStripe.ts +0 -9
  83. package/ts/types/index.ts +0 -1
  84. package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
  85. package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
  86. package/dist/cjs/types/Interface/api/stripe/ReadStripe.js +0 -3
  87. package/dist/cjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
  88. package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
  89. package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
  90. package/dist/mjs/types/Interface/api/stripe/ReadStripe.js +0 -2
  91. package/dist/mjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
  92. package/ts/types/Interface/api/stripe/ReadStripe.ts +0 -4
@@ -1,12 +1,6 @@
1
1
  import { Resource } from '../Resource';
2
- import {
3
- RetrieveUpcomingInvoiceParams,
4
- ReadUpcomingInvoice,
5
- QueryStripeSession,
6
- CreateSubscriptionSession,
7
- CreateStripePortals,
8
- } from '../../types';
9
- import Stripe from 'stripe';
2
+ import { QueryStripeSession, CreateSubscriptionSession, CreateStripePortals } from '../../types';
3
+ import type Stripe from 'stripe';
10
4
 
11
5
  export class Subscription extends Resource {
12
6
  /**
@@ -41,13 +35,6 @@ export class Subscription extends Resource {
41
35
  return this.axios.$get('/stripe/subscriptions');
42
36
  }
43
37
 
44
- /**
45
- * Retourne les informations de la prochaine facture Stripe
46
- */
47
- retrieveUpcomingInvoice(params: RetrieveUpcomingInvoiceParams): Promise<ReadUpcomingInvoice> {
48
- return this.axios.$get('/stripe/subscriptions/next-invoice', { params });
49
- }
50
-
51
38
  /* -------------- */
52
39
 
53
40
  createComptalibSession(
@@ -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,
@@ -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'], { 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;
@@ -60,7 +59,7 @@ export class CreatePaymentIntent {
60
59
  @ApiProperty()
61
60
  @IsString()
62
61
  stripeCustomerId: string;
63
-
62
+
64
63
  @ApiProperty()
65
64
  @IsString()
66
65
  paymentMethodId: string;
@@ -2,15 +2,6 @@ import { IsBoolean, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
5
- export class RetrieveUpcomingInvoiceParams {
6
- @ApiProperty()
7
- @IsString()
8
- customerId: string;
9
-
10
- @ApiProperty()
11
- @IsString()
12
- subscriptionId: string;
13
- }
14
5
  export class RetrievePaymentMethodsParams {
15
6
  @ApiProperty()
16
7
  @IsString()
package/ts/types/index.ts CHANGED
@@ -825,7 +825,6 @@ export * from './Interface/api/pappers/CreatePappers';
825
825
  export * from './Interface/api/bankAccount/Query';
826
826
  export * from './Interface/api/bankAccount/Update';
827
827
  export * from './Interface/api/stripe/QueryStripe';
828
- export * from './Interface/api/stripe/ReadStripe';
829
828
  export * from './Interface/api/supervision/Query';
830
829
  export * from './Interface/api/supervision/Read';
831
830
  export * from './Interface/api/salariesFile/ReadSalariesFile';
@@ -1,5 +0,0 @@
1
- export type ReadUpcomingInvoice = {
2
- total: number;
3
- date: Date;
4
- };
5
- //# sourceMappingURL=ReadStripe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadStripe.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ReadStripe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadStripe.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"","sourcesContent":["export type ReadUpcomingInvoice = {\n total: number;\n date: Date;\n};\n"]}
@@ -1,5 +0,0 @@
1
- export type ReadUpcomingInvoice = {
2
- total: number;
3
- date: Date;
4
- };
5
- //# sourceMappingURL=ReadStripe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadStripe.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ReadStripe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReadStripe.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/ReadStripe.ts"],"names":[],"mappings":"","sourcesContent":["export type ReadUpcomingInvoice = {\n total: number;\n date: Date;\n};\n"]}
@@ -1,4 +0,0 @@
1
- export type ReadUpcomingInvoice = {
2
- total: number;
3
- date: Date;
4
- };