@silexpert/core 0.4.20 → 0.4.22

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 (128) hide show
  1. package/es/api/resources/Account.d.ts +7 -1
  2. package/es/api/resources/Account.d.ts.map +1 -1
  3. package/es/api/resources/Account.js +15 -0
  4. package/es/api/resources/Account.js.map +1 -1
  5. package/es/api/resources/Cerfa.d.ts +5 -1
  6. package/es/api/resources/Cerfa.d.ts.map +1 -1
  7. package/es/api/resources/Cerfa.js +8 -0
  8. package/es/api/resources/Cerfa.js.map +1 -1
  9. package/es/api/resources/Partner.d.ts +2 -2
  10. package/es/api/resources/Partner.d.ts.map +1 -1
  11. package/es/api/resources/Partner.js +2 -2
  12. package/es/api/resources/Partner.js.map +1 -1
  13. package/es/api/resources/Subscription.d.ts +6 -0
  14. package/es/api/resources/Subscription.d.ts.map +1 -0
  15. package/es/api/resources/Subscription.js +7 -0
  16. package/es/api/resources/Subscription.js.map +1 -0
  17. package/es/api/resources.d.ts +2 -0
  18. package/es/api/resources.d.ts.map +1 -1
  19. package/es/api/resources.js +2 -0
  20. package/es/api/resources.js.map +1 -1
  21. package/es/types/Enum/SponsorshipEmailState.d.ts +6 -0
  22. package/es/types/Enum/SponsorshipEmailState.d.ts.map +1 -0
  23. package/es/types/Enum/SponsorshipEmailState.js +7 -0
  24. package/es/types/Enum/SponsorshipEmailState.js.map +1 -0
  25. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts +512 -0
  26. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -1
  27. package/es/types/Interface/api/cerfa/CreateCerfa.js +421 -0
  28. package/es/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  29. package/es/types/Interface/api/partner/GetPartners.d.ts +4 -0
  30. package/es/types/Interface/api/partner/GetPartners.d.ts.map +1 -0
  31. package/es/types/Interface/api/partner/GetPartners.js +17 -0
  32. package/es/types/Interface/api/partner/GetPartners.js.map +1 -0
  33. package/es/types/Interface/api/sponsorship/CreateSponsorship.d.ts +5 -0
  34. package/es/types/Interface/api/sponsorship/CreateSponsorship.d.ts.map +1 -0
  35. package/es/types/Interface/api/sponsorship/CreateSponsorship.js +21 -0
  36. package/es/types/Interface/api/sponsorship/CreateSponsorship.js.map +1 -0
  37. package/es/types/Interface/api/sponsorship/QuerySponsorship.d.ts +7 -0
  38. package/es/types/Interface/api/sponsorship/QuerySponsorship.d.ts.map +1 -0
  39. package/es/types/Interface/api/sponsorship/QuerySponsorship.js +29 -0
  40. package/es/types/Interface/api/sponsorship/QuerySponsorship.js.map +1 -0
  41. package/es/types/Interface/api/sponsorship/SendSponsorshipLink.d.ts +5 -0
  42. package/es/types/Interface/api/sponsorship/SendSponsorshipLink.d.ts.map +1 -0
  43. package/es/types/Interface/api/sponsorship/SendSponsorshipLink.js +21 -0
  44. package/es/types/Interface/api/sponsorship/SendSponsorshipLink.js.map +1 -0
  45. package/es/types/Interface/api/stripe/QueryStripe.d.ts +5 -0
  46. package/es/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -0
  47. package/es/types/Interface/api/stripe/QueryStripe.js +2 -0
  48. package/es/types/Interface/api/stripe/QueryStripe.js.map +1 -0
  49. package/es/types/Interface/api/stripe/ReadStripe.d.ts +5 -0
  50. package/es/types/Interface/api/stripe/ReadStripe.d.ts.map +1 -0
  51. package/es/types/Interface/api/stripe/ReadStripe.js +2 -0
  52. package/es/types/Interface/api/stripe/ReadStripe.js.map +1 -0
  53. package/es/types/Interface/models/IAccount.d.ts +1 -0
  54. package/es/types/Interface/models/IAccount.d.ts.map +1 -1
  55. package/es/types/Interface/models/IAccount.js.map +1 -1
  56. package/es/types/Interface/models/IAccountExtend.d.ts +6 -0
  57. package/es/types/Interface/models/IAccountExtend.d.ts.map +1 -0
  58. package/es/types/Interface/models/IAccountExtend.js +2 -0
  59. package/es/types/Interface/models/IAccountExtend.js.map +1 -0
  60. package/es/types/Interface/models/IApiError.d.ts +6 -1
  61. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  62. package/es/types/Interface/models/IApiError.js +6 -0
  63. package/es/types/Interface/models/IApiError.js.map +1 -1
  64. package/es/types/Interface/models/ISponsorship.d.ts +9 -0
  65. package/es/types/Interface/models/ISponsorship.d.ts.map +1 -0
  66. package/es/types/Interface/models/ISponsorship.js +2 -0
  67. package/es/types/Interface/models/ISponsorship.js.map +1 -0
  68. package/es/types/Interface/models/ISponsorshipLink.d.ts +1 -2
  69. package/es/types/Interface/models/ISponsorshipLink.d.ts.map +1 -1
  70. package/es/types/Interface/models/ISponsorshipLink.js.map +1 -1
  71. package/es/types/index.d.ts +9 -0
  72. package/es/types/index.d.ts.map +1 -1
  73. package/es/types/index.js +9 -0
  74. package/es/types/index.js.map +1 -1
  75. package/js/api/resources/Account.js +22 -0
  76. package/js/api/resources/Account.js.map +1 -1
  77. package/js/api/resources/Cerfa.js +9 -0
  78. package/js/api/resources/Cerfa.js.map +1 -1
  79. package/js/api/resources/Partner.js +4 -2
  80. package/js/api/resources/Partner.js.map +1 -1
  81. package/js/api/resources/Subscription.js +20 -0
  82. package/js/api/resources/Subscription.js.map +1 -0
  83. package/js/api/resources.js +4 -1
  84. package/js/api/resources.js.map +1 -1
  85. package/js/types/Enum/SponsorshipEmailState.js +13 -0
  86. package/js/types/Enum/SponsorshipEmailState.js.map +1 -0
  87. package/js/types/Interface/api/cerfa/CreateCerfa.js +277 -1
  88. package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  89. package/js/types/Interface/api/partner/GetPartners.js +27 -0
  90. package/js/types/Interface/api/partner/GetPartners.js.map +1 -0
  91. package/js/types/Interface/api/sponsorship/CreateSponsorship.js +29 -0
  92. package/js/types/Interface/api/sponsorship/CreateSponsorship.js.map +1 -0
  93. package/js/types/Interface/api/sponsorship/QuerySponsorship.js +33 -0
  94. package/js/types/Interface/api/sponsorship/QuerySponsorship.js.map +1 -0
  95. package/js/types/Interface/api/sponsorship/SendSponsorshipLink.js +29 -0
  96. package/js/types/Interface/api/sponsorship/SendSponsorshipLink.js.map +1 -0
  97. package/js/types/Interface/api/stripe/QueryStripe.js +6 -0
  98. package/js/types/Interface/api/stripe/QueryStripe.js.map +1 -0
  99. package/js/types/Interface/api/stripe/ReadStripe.js +6 -0
  100. package/js/types/Interface/api/stripe/ReadStripe.js.map +1 -0
  101. package/js/types/Interface/models/IAccountExtend.js +6 -0
  102. package/js/types/Interface/models/IAccountExtend.js.map +1 -0
  103. package/js/types/Interface/models/IApiError.js +6 -0
  104. package/js/types/Interface/models/IApiError.js.map +1 -1
  105. package/js/types/Interface/models/ISponsorship.js +6 -0
  106. package/js/types/Interface/models/ISponsorship.js.map +1 -0
  107. package/js/types/index.js +108 -0
  108. package/js/types/index.js.map +1 -1
  109. package/package.json +1 -1
  110. package/ts/api/resources/Account.ts +24 -1
  111. package/ts/api/resources/Cerfa.ts +9 -1
  112. package/ts/api/resources/Partner.ts +3 -2
  113. package/ts/api/resources/Subscription.ts +8 -0
  114. package/ts/api/resources.ts +2 -0
  115. package/ts/types/Enum/SponsorshipEmailState.ts +5 -0
  116. package/ts/types/Interface/api/cerfa/CreateCerfa.ts +723 -0
  117. package/ts/types/Interface/api/partner/GetPartners.ts +6 -0
  118. package/ts/types/Interface/api/sponsorship/CreateSponsorship.ts +9 -0
  119. package/ts/types/Interface/api/sponsorship/QuerySponsorship.ts +15 -0
  120. package/ts/types/Interface/api/sponsorship/SendSponsorshipLink.ts +9 -0
  121. package/ts/types/Interface/api/stripe/QueryStripe.ts +4 -0
  122. package/ts/types/Interface/api/stripe/ReadStripe.ts +4 -0
  123. package/ts/types/Interface/models/IAccount.ts +1 -0
  124. package/ts/types/Interface/models/IAccountExtend.ts +6 -0
  125. package/ts/types/Interface/models/IApiError.ts +7 -0
  126. package/ts/types/Interface/models/ISponsorship.ts +9 -0
  127. package/ts/types/Interface/models/ISponsorshipLink.ts +1 -2
  128. package/ts/types/index.ts +9 -0
@@ -0,0 +1,6 @@
1
+ import { ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class GetPartners {
4
+ @ApiPropertyOptional()
5
+ includeDeletedPartner?: boolean;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class CreateSponsorship {
4
+ @ApiProperty()
5
+ idBeneficiary: number;
6
+
7
+ @ApiProperty()
8
+ code: string;
9
+ }
@@ -0,0 +1,15 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class QuerySponsorship {
4
+ @ApiProperty()
5
+ page: number;
6
+
7
+ @ApiProperty()
8
+ limit: number;
9
+
10
+ @ApiPropertyOptional()
11
+ state?: number;
12
+
13
+ @ApiProperty()
14
+ idSociety?: number;
15
+ }
@@ -0,0 +1,9 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class SendSponsorshipLink {
4
+ @ApiProperty()
5
+ email: string | string[];
6
+
7
+ @ApiProperty()
8
+ idSociety: number;
9
+ }
@@ -0,0 +1,4 @@
1
+ export type RetrieveUpcomingInvoiceParams = {
2
+ customerId: string;
3
+ subscriptionId: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ export type ReadUpcomingInvoice = {
2
+ total: number;
3
+ date: Date;
4
+ };
@@ -29,6 +29,7 @@ export interface IAccount {
29
29
  forFournisseur?: boolean;
30
30
  juridicalSociety?: number | null;
31
31
  idNature: number;
32
+ customization?: number;
32
33
  idAccountType: number;
33
34
  idVat?: number | null;
34
35
  idRegisterCategorie?: number | null;
@@ -0,0 +1,6 @@
1
+ import { IAccount } from './IAccount';
2
+ import { IAccountsSocieties } from './IAccountsSocieties';
3
+
4
+ export interface IAccountExtend extends IAccount {
5
+ accountsSocieties: IAccountsSocieties | IAccountsSocieties[];
6
+ }
@@ -101,6 +101,13 @@ export enum Code {
101
101
 
102
102
  // Cerfa
103
103
  civilityNotFound = 'civility_not_found',
104
+ invalidData = 'invalidData',
105
+
106
+ // Sponsorship
107
+ emailAlreadyUsedForsponsorship = 'email_already_used_for_sponsorship',
108
+ idSocietyAlreadyUsedForsponsorship = 'idSociety_already_used_for_sponsorship',
109
+ sponsorshipCodeDoesntExist = 'sponsorship_code_doesnt_exist',
110
+ sponsorshipLinkDoesntExist = 'sponsorship_link_doesnt_exist',
104
111
  }
105
112
 
106
113
  export interface IApiError {
@@ -0,0 +1,9 @@
1
+ // sponsorshipsLinks
2
+ export interface ISponsorship {
3
+ id?: number;
4
+ idBeneficiary: number;
5
+ state: number;
6
+ idSociety: number;
7
+ createdAt?: Date | null;
8
+ updatedAt?: Date | null;
9
+ }
@@ -1,8 +1,7 @@
1
1
  // sponsorshipsLinks
2
2
  export interface ISponsorshipLink {
3
3
  id?: number;
4
- email: string;
5
- state: boolean;
4
+ code?: string;
6
5
  idSociety: number;
7
6
  createdAt?: Date | null;
8
7
  updatedAt?: Date | null;
package/ts/types/index.ts CHANGED
@@ -11,6 +11,7 @@ export * from './Interface/models/IAccountingStateType';
11
11
  export * from './Interface/models/IAccountingState';
12
12
  export * from './Interface/models/IAccountingTransaction';
13
13
  export * from './Interface/models/IAccount';
14
+ export * from './Interface/models/IAccountExtend';
14
15
  export * from './Interface/models/IAccountsSocieties';
15
16
  export * from './Interface/models/IActivity';
16
17
  export * from './Interface/models/IAdditionalBalance';
@@ -194,6 +195,7 @@ export * from './Interface/models/ISoftwareCompta';
194
195
  export * from './Interface/models/ISource';
195
196
  export * from './Interface/models/ISpecialOperation';
196
197
  export * from './Interface/models/ISponsorshipLink';
198
+ export * from './Interface/models/ISponsorship';
197
199
  export * from './Interface/models/IStatusSignature';
198
200
  export * from './Interface/models/IStripeEvent';
199
201
  export * from './Interface/models/ISupervision';
@@ -310,6 +312,7 @@ export * from './Enum/VehicleType';
310
312
  export * from './Enum/BalanceSheet';
311
313
  export * from './Enum/LetterState';
312
314
  export * from './Enum/DefaultPermissions';
315
+ export * from './Enum/SponsorshipEmailState';
313
316
  export * from './Enum/Ged';
314
317
 
315
318
  // Interfaces API
@@ -354,6 +357,7 @@ export * from './Interface/api/letter/CreateLetter';
354
357
  export * from './Interface/api/mailInvoice/CreateInvoiceMail';
355
358
  export * from './Interface/api/mailInvoice/UpdateInvoiceMail';
356
359
  export * from './Interface/api/partner/CreatePartner';
360
+ export * from './Interface/api/partner/GetPartners';
357
361
  // export * from './Interface/api/generalLedger/GeneralLedgerQuery';
358
362
  export * from './Interface/api/fecFile/CreateFecFile';
359
363
  export * from './Interface/api/fecFile/ReadFecFile';
@@ -363,5 +367,10 @@ export * from './Interface/api/incomeStatement/ReadIncomeStatement';
363
367
  export * from './Interface/api/balanceSheet/ReadBalanceSheet';
364
368
  export * from './Interface/api/pappers/QueryPappers';
365
369
  export * from './Interface/api/pappers/ReadPappers';
370
+ export * from './Interface/api/sponsorship/SendSponsorshipLink';
371
+ export * from './Interface/api/sponsorship/CreateSponsorship';
372
+ export * from './Interface/api/sponsorship/QuerySponsorship';
366
373
  export * from './Interface/api/pappers/CreatePappers';
367
374
  export * from './Interface/api/bankAccount/DeleteTransaction';
375
+ export * from './Interface/api/stripe/QueryStripe';
376
+ export * from './Interface/api/stripe/ReadStripe';