@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,8 @@
1
+ import { Resource } from '../Resource';
2
+ import { RetrieveUpcomingInvoiceParams, ReadUpcomingInvoice } from '../../types';
3
+
4
+ export class Subscription extends Resource {
5
+ retrieveUpcomingInvoice(params: RetrieveUpcomingInvoiceParams): Promise<ReadUpcomingInvoice> {
6
+ return this.axios.$get('/subscription/next-invoice', { params });
7
+ }
8
+ }
@@ -18,6 +18,7 @@ import { IncomeStatement } from './resources/IncomeStatement';
18
18
  import { BalanceSheet } from './resources/BalanceSheet';
19
19
  import { Cerfa } from './resources/Cerfa';
20
20
  import { LegalForm } from './resources/LegalForm';
21
+ import { Subscription } from './resources/Subscription';
21
22
  import { Authenticate } from './resources/Authenticate';
22
23
  import { Search } from './resources/Search';
23
24
 
@@ -44,4 +45,5 @@ export const resources = {
44
45
  legalForm: LegalForm,
45
46
  authenticate: Authenticate,
46
47
  search: Search,
48
+ subscription: Subscription,
47
49
  };
@@ -0,0 +1,5 @@
1
+ export enum SponsorshipEmailState {
2
+ WAITING = 1,
3
+ CONFIRMED = 2,
4
+ PAID = 3,
5
+ }