@silexpert/core 1.3.37-5 → 1.3.38
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.
- package/dist/cjs/api/resources/Authenticate.d.ts +6 -0
- package/dist/cjs/api/resources/Authenticate.d.ts.map +1 -1
- package/dist/cjs/api/resources/Authenticate.js +8 -0
- package/dist/cjs/api/resources/Authenticate.js.map +1 -1
- package/dist/cjs/api/resources/Card.d.ts +2 -18
- package/dist/cjs/api/resources/Card.d.ts.map +1 -1
- package/dist/cjs/api/resources/Card.js +0 -19
- package/dist/cjs/api/resources/Card.js.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectation.d.ts +16 -1
- package/dist/cjs/api/resources/PaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectation.js +20 -0
- package/dist/cjs/api/resources/PaymentExpectation.js.map +1 -1
- package/dist/cjs/api/resources/Society.d.ts +2 -1
- package/dist/cjs/api/resources/Society.d.ts.map +1 -1
- package/dist/cjs/api/resources/Society.js +3 -0
- package/dist/cjs/api/resources/Society.js.map +1 -1
- package/dist/cjs/api/resources/SocietyDetail.js +1 -1
- package/dist/cjs/api/resources/SocietyDetail.js.map +1 -1
- package/dist/cjs/api/resources/Subscription.d.ts +23 -6
- package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/cjs/api/resources/Subscription.js +28 -8
- package/dist/cjs/api/resources/Subscription.js.map +1 -1
- package/dist/cjs/api/resources/prestation.d.ts +3 -1
- package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/cjs/api/resources/prestation.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +22 -110
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +26 -162
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/Feature.d.ts +41 -0
- package/dist/cjs/types/Enum/Feature.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Feature.js +65 -0
- package/dist/cjs/types/Enum/Feature.js.map +1 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceType.d.ts +11 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceType.js +43 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceType.js.map +1 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.d.ts +9 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.d.ts.map +1 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.js +13 -0
- package/dist/cjs/types/Enum/PartneredAccountantServiceTypeId.js.map +1 -0
- package/dist/cjs/types/Enum/PrestationType.d.ts +13 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +183 -1
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts +27 -0
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +88 -28
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridLegalstart.d.ts +4 -4
- package/dist/cjs/types/Enum/PriceGridLegalstart.js +1 -1
- package/dist/cjs/types/Enum/PriceGridLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/SalesContractBrandClementine.js +118 -0
- package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/TimeCounterType.d.ts +362 -9
- package/dist/cjs/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TimeCounterType.js +0 -8
- package/dist/cjs/types/Enum/TimeCounterType.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +1 -11
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.js +2 -38
- package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2572.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2572.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2573.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2573.js.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +0 -13
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +9 -3
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +15 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/State.d.ts +7 -0
- package/dist/cjs/types/Interface/api/society/State.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/State.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +22 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +74 -3
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -2
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +5 -8
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts +0 -2
- package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/team/QueryUpdate.js +0 -7
- package/dist/cjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts +0 -20
- package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/models/ITeam.d.ts +0 -2
- package/dist/cjs/types/Interface/models/ITeam.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ITeam.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/cjs/types/index.d.ts +3 -2
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -2
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/brands.js +1 -1
- package/dist/cjs/utils/brands.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +2 -1
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +11 -1
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/cjs/utils/subscription.js +1 -1
- package/dist/cjs/utils/subscription.js.map +1 -1
- package/dist/mjs/api/resources/Authenticate.d.ts +6 -0
- package/dist/mjs/api/resources/Authenticate.d.ts.map +1 -1
- package/dist/mjs/api/resources/Authenticate.js +6 -0
- package/dist/mjs/api/resources/Authenticate.js.map +1 -1
- package/dist/mjs/api/resources/Card.d.ts +2 -18
- package/dist/mjs/api/resources/Card.d.ts.map +1 -1
- package/dist/mjs/api/resources/Card.js +0 -19
- package/dist/mjs/api/resources/Card.js.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectation.d.ts +16 -1
- package/dist/mjs/api/resources/PaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectation.js +20 -0
- package/dist/mjs/api/resources/PaymentExpectation.js.map +1 -1
- package/dist/mjs/api/resources/Society.d.ts +2 -1
- package/dist/mjs/api/resources/Society.d.ts.map +1 -1
- package/dist/mjs/api/resources/Society.js +3 -0
- package/dist/mjs/api/resources/Society.js.map +1 -1
- package/dist/mjs/api/resources/SocietyDetail.js +1 -1
- package/dist/mjs/api/resources/SocietyDetail.js.map +1 -1
- package/dist/mjs/api/resources/Subscription.d.ts +23 -6
- package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/mjs/api/resources/Subscription.js +28 -8
- package/dist/mjs/api/resources/Subscription.js.map +1 -1
- package/dist/mjs/api/resources/prestation.d.ts +3 -1
- package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/mjs/api/resources/prestation.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +22 -110
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +26 -162
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/Feature.d.ts +41 -0
- package/dist/mjs/types/Enum/Feature.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Feature.js +62 -0
- package/dist/mjs/types/Enum/Feature.js.map +1 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceType.d.ts +11 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceType.js +40 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceType.js.map +1 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.d.ts +9 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.d.ts.map +1 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.js +10 -0
- package/dist/mjs/types/Enum/PartneredAccountantServiceTypeId.js.map +1 -0
- package/dist/mjs/types/Enum/PrestationType.d.ts +13 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +182 -0
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts +27 -0
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +88 -28
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridLegalstart.d.ts +4 -4
- package/dist/mjs/types/Enum/PriceGridLegalstart.js +1 -1
- package/dist/mjs/types/Enum/PriceGridLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/SalesContractBrandClementine.js +119 -1
- package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/TimeCounterType.d.ts +362 -9
- package/dist/mjs/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TimeCounterType.js +0 -8
- package/dist/mjs/types/Enum/TimeCounterType.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +1 -11
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.js +2 -42
- package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2572.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2572.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2573.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2573.js.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +0 -13
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +11 -4
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +3 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +18 -2
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/State.d.ts +7 -0
- package/dist/mjs/types/Interface/api/society/State.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/State.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +22 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +82 -3
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -2
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +4 -8
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts +0 -2
- package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdate.js +1 -9
- package/dist/mjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts +0 -20
- package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/models/ITeam.d.ts +0 -2
- package/dist/mjs/types/Interface/models/ITeam.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ITeam.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/mjs/types/index.d.ts +3 -2
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +3 -2
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/brands.js +1 -1
- package/dist/mjs/utils/brands.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +2 -1
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +11 -2
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/dist/mjs/utils/subscription.js +1 -1
- package/dist/mjs/utils/subscription.js.map +1 -1
- package/package.json +2 -2
- package/ts/api/resources/Authenticate.ts +7 -0
- package/ts/api/resources/Card.ts +1 -25
- package/ts/api/resources/PaymentExpectation.ts +27 -0
- package/ts/api/resources/Society.ts +5 -0
- package/ts/api/resources/SocietyDetail.ts +1 -1
- package/ts/api/resources/Subscription.ts +35 -18
- package/ts/api/resources/prestation.ts +1 -1
- package/ts/types/Enum/Card.ts +29 -174
- package/ts/types/Enum/Feature.ts +68 -0
- package/ts/types/Enum/PartneredAccountantServiceType.ts +51 -0
- package/ts/types/Enum/PartneredAccountantServiceTypeId.ts +8 -0
- package/ts/types/Enum/PrestationType.ts +186 -0
- package/ts/types/Enum/PriceGridClementine.ts +88 -28
- package/ts/types/Enum/PriceGridLegalstart.ts +1 -1
- package/ts/types/Enum/SalesContractBrandClementine.ts +119 -1
- package/ts/types/Enum/TimeCounterType.ts +1 -18
- package/ts/types/Interface/api/card/UpdateCard.ts +2 -32
- package/ts/types/Interface/api/cerfa/2031.ts +1 -0
- package/ts/types/Interface/api/cerfa/2035.ts +6 -1
- package/ts/types/Interface/api/cerfa/2065.ts +1 -0
- package/ts/types/Interface/api/cerfa/2069RCI.ts +1 -0
- package/ts/types/Interface/api/cerfa/2571.ts +1 -0
- package/ts/types/Interface/api/cerfa/2572.ts +1 -0
- package/ts/types/Interface/api/cerfa/2573.ts +1 -0
- package/ts/types/Interface/api/config/ConfigType.ts +0 -16
- package/ts/types/Interface/api/paymentExpectation/CreatePaymentExpecation.ts +9 -4
- package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +15 -3
- package/ts/types/Interface/api/society/State.ts +8 -0
- package/ts/types/Interface/api/stripe/Create.ts +59 -4
- package/ts/types/Interface/api/stripe/QueryStripe.ts +3 -5
- package/ts/types/Interface/api/team/QueryUpdate.ts +1 -7
- package/ts/types/Interface/models/ICard.ts +0 -20
- package/ts/types/Interface/models/IPayment.ts +2 -0
- package/ts/types/Interface/models/IPaymentExpectation.ts +1 -0
- package/ts/types/Interface/models/ITeam.ts +0 -2
- package/ts/types/Interface/models/IUser.ts +1 -0
- package/ts/types/index.ts +3 -2
- package/ts/utils/brands.ts +1 -1
- package/ts/utils/prestation.ts +15 -1
- package/ts/utils/subscription.ts +1 -1
- package/dist/cjs/types/Enum/TeamType.d.ts +0 -16
- package/dist/cjs/types/Enum/TeamType.d.ts.map +0 -1
- package/dist/cjs/types/Enum/TeamType.js +0 -57
- package/dist/cjs/types/Enum/TeamType.js.map +0 -1
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.js +0 -3
- package/dist/cjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
- package/dist/mjs/types/Enum/TeamType.d.ts +0 -16
- package/dist/mjs/types/Enum/TeamType.d.ts.map +0 -1
- package/dist/mjs/types/Enum/TeamType.js +0 -54
- package/dist/mjs/types/Enum/TeamType.js.map +0 -1
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts +0 -5
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.js +0 -2
- package/dist/mjs/types/Interface/api/stripe/ReadStripe.js.map +0 -1
- package/ts/types/Enum/TeamType.ts +0 -53
- package/ts/types/Interface/api/stripe/ReadStripe.ts +0 -4
|
@@ -5,6 +5,12 @@ export declare class Authenticate extends Resource {
|
|
|
5
5
|
authentificate(payload: FormAuthenticate): Promise<{
|
|
6
6
|
token: string;
|
|
7
7
|
}>;
|
|
8
|
+
/**
|
|
9
|
+
* Rafraichi le token, il est nécessaire d'être connecté et d'avoir un "current society"
|
|
10
|
+
*/
|
|
11
|
+
refresh(): Promise<{
|
|
12
|
+
token: string;
|
|
13
|
+
}>;
|
|
8
14
|
connectAsCollaborater(idCollaborater: number): Promise<{
|
|
9
15
|
token: string;
|
|
10
16
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authenticate.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Authenticate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,4BAA4B,EAC5B,gBAAgB,EAChB,aAAa,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,YAAa,SAAQ,QAAQ;IAClC,0BAA0B,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAI5F,cAAc,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Authenticate.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Authenticate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,4BAA4B,EAC5B,gBAAgB,EAChB,aAAa,EACd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,YAAa,SAAQ,QAAQ;IAClC,0BAA0B,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAI5F,cAAc,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAI3E;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAIrC,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAIzE,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAIpD,cAAc,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D,aAAa,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvD,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGpF"}
|
|
@@ -22,6 +22,14 @@ class Authenticate extends Resource_1.Resource {
|
|
|
22
22
|
return this.axios.$post('/authenticate', payload);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Rafraichi le token, il est nécessaire d'être connecté et d'avoir un "current society"
|
|
27
|
+
*/
|
|
28
|
+
refresh() {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
return this.axios.$post('/authenticate/refresh');
|
|
31
|
+
});
|
|
32
|
+
}
|
|
25
33
|
connectAsCollaborater(idCollaborater) {
|
|
26
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27
35
|
return this.axios.$post(`/authenticate/collaborater/${idCollaborater}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authenticate.js","sourceRoot":"","sources":["../../../../ts/api/resources/Authenticate.ts"],"names":[],"mappings":";;;;;;;;;;;;AASA,0CAAuC;AAEvC,MAAa,YAAa,SAAQ,mBAAQ;IAClC,0BAA0B,CAAC,OAAyB;;YACxD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;QACjE,CAAC;KAAA;IAEK,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YACX,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;QACnD,CAAC;KAAA;IAEK,qBAAqB,CAAC,cAAsB;;YAChD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,8BAA8B,cAAc,EAAE,CAAC,CAAC;QAC1E,CAAC;KAAA;IAEK,SAAS,CAAC,SAAiB;;YAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,SAAS,EAAE,CAAC,CAAC;QAClE,CAAC;KAAA;IAEK,cAAc,CAAC,OAA2B;;YAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;QACpE,CAAC;KAAA;IAEK,aAAa,CAAC,OAAyB;;YAC3C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;QAClE,CAAC;KAAA;IAEK,YAAY,CAAC,IAAY,EAAE,KAAsB;;YACrD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QAC9E,CAAC;KAAA;CACF;AAnCD,oCAmCC","sourcesContent":["import {\n ConnectFromUUID,\n FormAuthenticate,\n PostForgotPassword,\n PutResetPassword,\n ReadAuthenticateCollaborater,\n ReadByExternalId,\n ReadConnectAs,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Authenticate extends Resource {\n async authentificateCollaborater(payload: FormAuthenticate): Promise<ReadAuthenticateCollaborater> {\n return this.axios.$post('/authenticate/collaborater', payload);\n }\n\n async authentificate(payload: FormAuthenticate): Promise<{ token: string }> {\n return this.axios.$post('/authenticate', payload);\n }\n\n /**\n * Rafraichi le token, il est nécessaire d'être connecté et d'avoir un \"current society\"\n */\n async refresh(): Promise<{ token: string }> {\n return this.axios.$post('/authenticate/refresh');\n }\n\n async connectAsCollaborater(idCollaborater: number): Promise<{ token: string }> {\n return this.axios.$post(`/authenticate/collaborater/${idCollaborater}`);\n }\n\n async connectAs(idSociety: number): Promise<ReadConnectAs> {\n return this.axios.$post(`/authenticate/societies/${idSociety}`);\n }\n\n async forgotPassword(payload: PostForgotPassword): Promise<void> {\n return this.axios.$post('/authenticate/forgot-password', payload);\n }\n\n async resetPassword(payload: PutResetPassword): Promise<void> {\n return this.axios.$put('/authenticate/reset-password', payload);\n }\n\n async byExternalId(uuid: string, query: ConnectFromUUID): Promise<ReadByExternalId> {\n return this.axios.$get(`/authenticate/external/${uuid}`, { params: query });\n }\n}\n"]}
|
|
@@ -1,35 +1,19 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { ICard, QueryUserCards, QueryUserCardsPaginated, QueryUserCardsStats, CardsStatsGroup, UpdateCard, CardDetail, ModifyTeamPlanning, ModifyExercisePlanning, OrganizeBalanceSheets, OrganizeBalanceSheetsResponse, QueryInternalCardsStats, InternalCardStats
|
|
2
|
+
import { ICard, QueryUserCards, QueryUserCardsPaginated, QueryUserCardsStats, CardsStatsGroup, UpdateCard, CardDetail, ModifyTeamPlanning, ModifyExercisePlanning, OrganizeBalanceSheets, OrganizeBalanceSheetsResponse, QueryInternalCardsStats, InternalCardStats } from '../../types';
|
|
3
3
|
export declare class Card extends Resource {
|
|
4
4
|
getById(id: number, signal?: AbortSignal): Promise<CardDetail>;
|
|
5
5
|
getAll(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]>;
|
|
6
|
-
getAllPaginated(params: QueryUserCardsPaginated, signal?: AbortSignal): Promise<
|
|
6
|
+
getAllPaginated(params: QueryUserCardsPaginated, signal?: AbortSignal): Promise<ICard[]>;
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated Use getAll instead
|
|
9
9
|
*/
|
|
10
10
|
getAllAdmin(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]>;
|
|
11
11
|
getStats(params: QueryUserCardsStats, signal?: AbortSignal): Promise<CardsStatsGroup[]>;
|
|
12
12
|
getInternalStats(params: QueryInternalCardsStats, signal?: AbortSignal): Promise<InternalCardStats[]>;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use updateV2 instead
|
|
15
|
-
*/
|
|
16
13
|
update(id: number, data: UpdateCard): Promise<ICard>;
|
|
17
14
|
delete(id: number): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated comptallo v1 endpoint
|
|
20
|
-
*/
|
|
21
15
|
modifyTeamPlanning(data: ModifyTeamPlanning): Promise<true>;
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated comptallo v1 endpoint
|
|
24
|
-
*/
|
|
25
16
|
modifyExercisePlanning(data: ModifyExercisePlanning): Promise<true>;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated comptallo v1 endpoint
|
|
28
|
-
*/
|
|
29
17
|
organizeFutureBalanceSheets(data: OrganizeBalanceSheets): Promise<OrganizeBalanceSheetsResponse>;
|
|
30
|
-
updateV2(idCard: number, data: UpdateCardV2): Promise<ICard>;
|
|
31
|
-
assignCard(payload: {
|
|
32
|
-
type: CardType;
|
|
33
|
-
}): Promise<ICard>;
|
|
34
18
|
}
|
|
35
19
|
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,EACL,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,6BAA6B,EAC7B,uBAAuB,EACvB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAA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AqB,GAAG,OAAO,CAAC,6BAA6B,CAAC;CAGjG"}
|
|
@@ -24,40 +24,21 @@ class Card extends Resource_1.Resource {
|
|
|
24
24
|
getInternalStats(params, signal) {
|
|
25
25
|
return this.axios.$get('/cards/internal/stats', Object.assign(Object.assign({}, (signal ? { signal } : {})), { params }));
|
|
26
26
|
}
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use updateV2 instead
|
|
29
|
-
*/
|
|
30
27
|
update(id, data) {
|
|
31
28
|
return this.axios.$put(`/cards/${id}`, data);
|
|
32
29
|
}
|
|
33
30
|
delete(id) {
|
|
34
31
|
return this.axios.$delete(`/cards/${id}`);
|
|
35
32
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated comptallo v1 endpoint
|
|
38
|
-
*/
|
|
39
33
|
modifyTeamPlanning(data) {
|
|
40
34
|
return this.axios.$put('/cards/assign/modify-team-planning', data);
|
|
41
35
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated comptallo v1 endpoint
|
|
44
|
-
*/
|
|
45
36
|
modifyExercisePlanning(data) {
|
|
46
37
|
return this.axios.$put('/cards/assign/modify-exercise-planning', data);
|
|
47
38
|
}
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated comptallo v1 endpoint
|
|
50
|
-
*/
|
|
51
39
|
organizeFutureBalanceSheets(data) {
|
|
52
40
|
return this.axios.$post('/cards/accountant/organize/future-balance-sheets', data);
|
|
53
41
|
}
|
|
54
|
-
updateV2(idCard, data) {
|
|
55
|
-
return this.axios.$put(`/cards/${idCard}/v2`, data);
|
|
56
|
-
}
|
|
57
|
-
// TODO: improve types
|
|
58
|
-
assignCard(payload) {
|
|
59
|
-
return this.axios.$post('/cards/assignment', payload);
|
|
60
|
-
}
|
|
61
42
|
}
|
|
62
43
|
exports.Card = Card;
|
|
63
44
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../ts/api/resources/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,IACN,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,MAA+B,EAAE,MAAoB;QACpE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,kCACzC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC7B,MAAM,IACN,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,IAAgB;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED,kBAAkB,CAAC,IAAwB;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oCAAoC,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;IAED,sBAAsB,CAAC,IAA4B;QACjD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wCAAwC,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;IAED,2BAA2B,CAAC,IAA2B;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,kDAAkD,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;CACF;AAhED,oBAgEC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n ICard,\n QueryUserCards,\n QueryUserCardsPaginated,\n QueryUserCardsStats,\n CardsStatsGroup,\n UpdateCard,\n CardDetail,\n ModifyTeamPlanning,\n ModifyExercisePlanning,\n OrganizeBalanceSheets,\n OrganizeBalanceSheetsResponse,\n QueryInternalCardsStats,\n InternalCardStats,\n} from '../../types';\n\nexport class Card extends Resource {\n getById(id: number, signal?: AbortSignal): Promise<CardDetail> {\n return this.axios.$get(`/cards/${id}`, {\n ...(signal ? { signal } : {}),\n });\n }\n\n getAll(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]> {\n return this.axios.$get('/cards', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n getAllPaginated(params: QueryUserCardsPaginated, signal?: AbortSignal): Promise<ICard[]> {\n return this.axios.$get('/cards/paginated', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n /**\n * @deprecated Use getAll instead\n */\n getAllAdmin(params: QueryUserCards, signal?: AbortSignal): Promise<ICard[]> {\n return this.axios.$get('/cards', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n getStats(params: QueryUserCardsStats, signal?: AbortSignal): Promise<CardsStatsGroup[]> {\n return this.axios.$get('/cards/stats', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n getInternalStats(params: QueryInternalCardsStats, signal?: AbortSignal): Promise<InternalCardStats[]> {\n return this.axios.$get('/cards/internal/stats', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n update(id: number, data: UpdateCard): Promise<ICard> {\n return this.axios.$put(`/cards/${id}`, data);\n }\n\n delete(id: number): Promise<void> {\n return this.axios.$delete(`/cards/${id}`);\n }\n\n modifyTeamPlanning(data: ModifyTeamPlanning): Promise<true> {\n return this.axios.$put('/cards/assign/modify-team-planning', data);\n }\n\n modifyExercisePlanning(data: ModifyExercisePlanning): Promise<true> {\n return this.axios.$put('/cards/assign/modify-exercise-planning', data);\n }\n\n organizeFutureBalanceSheets(data: OrganizeBalanceSheets): Promise<OrganizeBalanceSheetsResponse> {\n return this.axios.$post('/cards/accountant/organize/future-balance-sheets', data);\n }\n}\n"]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BasePaginate, CreatePaymentExpecation, IPaymentExpectation, QueryGetPaymentExpectation, QueryGetPaymentExpectationPaginated } from '../../types';
|
|
1
|
+
import { BasePaginate, CreatePaymentExpecation, CreatePaymentIntent, CreateSubscriptionSessionOff, IPaymentExpectation, QueryGetPaymentExpectation, QueryGetPaymentExpectationPaginated, RetrievePaymentMethodsParams } from '../../types';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
|
+
import type Stripe from 'stripe';
|
|
3
4
|
export declare class PaymentExpectation extends Resource {
|
|
4
5
|
get(params: QueryGetPaymentExpectation): Promise<PaymentExpectation>;
|
|
5
6
|
getPaginate(params: QueryGetPaymentExpectationPaginated, signal?: AbortSignal): Promise<BasePaginate<IPaymentExpectation>>;
|
|
@@ -13,5 +14,19 @@ export declare class PaymentExpectation extends Resource {
|
|
|
13
14
|
* @returns
|
|
14
15
|
*/
|
|
15
16
|
updateByPrestation(idPrestation: number, payload: Partial<IPaymentExpectation>): Promise<IPaymentExpectation>;
|
|
17
|
+
/**
|
|
18
|
+
* Retourne les type de paiements Stripe
|
|
19
|
+
*/
|
|
20
|
+
getAllPaymentMethods(params: RetrievePaymentMethodsParams): Promise<Stripe.PaymentMethod[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Créé une session Stripe avec les informations client
|
|
23
|
+
* Attention : les montants sont retournés x100
|
|
24
|
+
*/
|
|
25
|
+
createSessionOff(payload: CreateSubscriptionSessionOff): Promise<Stripe.Response<Stripe.Checkout.Session>>;
|
|
26
|
+
/**
|
|
27
|
+
* Crée une intention de paiement Stripe avec les informations de notre client
|
|
28
|
+
* Attention : les montants sont retournés x100
|
|
29
|
+
*/
|
|
30
|
+
createStripePaymentIntent(body: CreatePaymentIntent): Promise<Stripe.Response<Stripe.PaymentIntent>>;
|
|
16
31
|
}
|
|
17
32
|
//# sourceMappingURL=PaymentExpectation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectation.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,mBAAmB,EACnB,0BAA0B,EAC1B,mCAAmC,
|
|
1
|
+
{"version":3,"file":"PaymentExpectation.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectation.ts"],"names":[],"mappings":"AA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AAC,aAAa,CAAC,CAAC;CAGrG"}
|
|
@@ -27,6 +27,26 @@ class PaymentExpectation extends Resource_1.Resource {
|
|
|
27
27
|
updateByPrestation(idPrestation, payload) {
|
|
28
28
|
return this.axios.$patch(`/prestations/${idPrestation}/payment-expectations`, payload);
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* Retourne les type de paiements Stripe
|
|
32
|
+
*/
|
|
33
|
+
getAllPaymentMethods(params) {
|
|
34
|
+
return this.axios.$get('/stripe/payments/methods', { params });
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Créé une session Stripe avec les informations client
|
|
38
|
+
* Attention : les montants sont retournés x100
|
|
39
|
+
*/
|
|
40
|
+
createSessionOff(payload) {
|
|
41
|
+
return this.axios.$post('/stripe/payments/sessions-off', payload);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Crée une intention de paiement Stripe avec les informations de notre client
|
|
45
|
+
* Attention : les montants sont retournés x100
|
|
46
|
+
*/
|
|
47
|
+
createStripePaymentIntent(body) {
|
|
48
|
+
return this.axios.$post('/stripe/payments/intents', body);
|
|
49
|
+
}
|
|
30
50
|
}
|
|
31
51
|
exports.PaymentExpectation = PaymentExpectation;
|
|
32
52
|
//# sourceMappingURL=PaymentExpectation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentExpectation.js","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectation.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PaymentExpectation.js","sourceRoot":"","sources":["../../../../ts/api/resources/PaymentExpectation.ts"],"names":[],"mappings":";;;AAUA,0CAAuC;AAGvC,MAAa,kBAAmB,SAAQ,mBAAQ;IAC9C,GAAG,CAAC,MAAkC;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,WAAW,CACT,MAA2C,EAC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Intent,\n CreateSubscriptionSessionOff,\n IPaymentExpectation,\n QueryGetPaymentExpectation,\n QueryGetPaymentExpectationPaginated,\n RetrievePaymentMethodsParams,\n} from '../../types';\nimport { Resource } from '../Resource';\nimport type Stripe from 'stripe';\n\nexport class PaymentExpectation extends Resource {\n get(params: QueryGetPaymentExpectation): Promise<PaymentExpectation> {\n return this.axios.$get('/payment-expectations', { params });\n }\n\n getPaginate(\n params: QueryGetPaymentExpectationPaginated,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IPaymentExpectation>> {\n return this.axios.$get('/payment-expectations/paginate', { params, ...(signal ? { signal } : {}) });\n }\n\n create(idSociety: number, payload: CreatePaymentExpecation): Promise<IPaymentExpectation> {\n return this.axios.$post(`/societies/${idSociety}/payment-expectations`, payload);\n }\n\n update(id: number, payload: Partial<IPaymentExpectation>): Promise<IPaymentExpectation> {\n return this.axios.$patch(`/payment-expectations/${id}`, payload);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/payment-expectations/${id}`);\n }\n\n /**\n * Update only one paymentExpectation, linked to prestation\n * @param idPrestation\n * @param payload\n * @returns\n */\n updateByPrestation(idPrestation: number, payload: Partial<IPaymentExpectation>): Promise<IPaymentExpectation> {\n return this.axios.$patch(`/prestations/${idPrestation}/payment-expectations`, payload);\n }\n\n /**\n * Retourne les type de paiements Stripe\n */\n getAllPaymentMethods(params: RetrievePaymentMethodsParams): Promise<Stripe.PaymentMethod[]> {\n return this.axios.$get('/stripe/payments/methods', { params });\n }\n\n /**\n * Créé une session Stripe avec les informations client\n * Attention : les montants sont retournés x100\n */\n createSessionOff(payload: CreateSubscriptionSessionOff): Promise<Stripe.Response<Stripe.Checkout.Session>> {\n return this.axios.$post('/stripe/payments/sessions-off', payload);\n }\n\n /**\n * Crée une intention de paiement Stripe avec les informations de notre client\n * Attention : les montants sont retournés x100\n */\n createStripePaymentIntent(body: CreatePaymentIntent): Promise<Stripe.Response<Stripe.PaymentIntent>> {\n return this.axios.$post('/stripe/payments/intents', body);\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { CreateInvoiceMail, UpdateInvoiceMail, IMailSociety, ISociety, LegalFormSiren, GetDataSociety, CreateSociety, CreateSynchronization, UpdateSociety, CreateBudgetBalanceBankAccount, IUser, ListUserSociety, CreateUserToSocietyWithPermission, UpdateUserToSocietyWithPermission, ReadSocietyUsers, QuerySociety, UpdateSocietyPayload, QueryPaginatedSociety, ReadInvalidFieldState, BasePaginate, UpdateUserSociety, QueryArchivedSociety, QueryExportSociety, QueryAccountingExport, GetSocietyState, QueryUnpaidSociety, ReadSocietyUnpaidStats, DataCustomersCsv } from '../../types';
|
|
2
|
+
import { CreateInvoiceMail, UpdateInvoiceMail, IMailSociety, ISociety, LegalFormSiren, GetDataSociety, CreateSociety, CreateSynchronization, UpdateSociety, CreateBudgetBalanceBankAccount, IUser, ListUserSociety, CreateUserToSocietyWithPermission, UpdateUserToSocietyWithPermission, ReadSocietyUsers, QuerySociety, UpdateSocietyPayload, QueryPaginatedSociety, ReadInvalidFieldState, BasePaginate, UpdateUserSociety, QueryArchivedSociety, QueryExportSociety, QueryAccountingExport, GetSocietyState, QueryUnpaidSociety, ReadSocietyUnpaidStats, DataCustomersCsv, ReadCurrentPrestations } from '../../types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
export declare class Society extends Resource {
|
|
5
5
|
get(params: QuerySociety): Promise<ISociety>;
|
|
@@ -34,6 +34,7 @@ export declare class Society extends Resource {
|
|
|
34
34
|
export(idSociety: number, payload: QueryExportSociety): Promise<void>;
|
|
35
35
|
exportAccountancy(idSociety: number, payload: QueryAccountingExport): Promise<Buffer>;
|
|
36
36
|
getState(idSociety: number): Promise<GetSocietyState>;
|
|
37
|
+
getCurrentPrestations(idSociety: number): Promise<ReadCurrentPrestations>;
|
|
37
38
|
exportCustomersCSV(params: DataCustomersCsv): Promise<Buffer>;
|
|
38
39
|
}
|
|
39
40
|
//# sourceMappingURL=Society.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Society.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Society.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,8BAA8B,EAC9B,KAAK,EACL,eAAe,EACf,iCAAiC,EACjC,iCAAiC,EACjC,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Society.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Society.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,8BAA8B,EAC9B,KAAK,EACL,eAAe,EACf,iCAAiC,EACjC,iCAAiC,EACjC,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,qBAAa,OAAQ,SAAQ,QAAQ;IAC5B,GAAG,CAAC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xB,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAOlC,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAMrE,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC;IASrF,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAIrD,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAIzE,kBAAkB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC;CAQ9D"}
|
|
@@ -102,6 +102,9 @@ class Society extends Resource_1.Resource {
|
|
|
102
102
|
getState(idSociety) {
|
|
103
103
|
return this.axios.$get(`/societies/${idSociety}/states`);
|
|
104
104
|
}
|
|
105
|
+
getCurrentPrestations(idSociety) {
|
|
106
|
+
return this.axios.$get(`/societies/${idSociety}/current-prestations`);
|
|
107
|
+
}
|
|
105
108
|
exportCustomersCSV(params) {
|
|
106
109
|
return this.axios.$post('/societies/exports', params, {
|
|
107
110
|
responseType: 'arraybuffer',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Society.js","sourceRoot":"","sources":["../../../../ts/api/resources/Society.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAiCvC,MAAa,OAAQ,SAAQ,mBAAQ;IAC5B,GAAG,CAAC,MAAoB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjD,CAAC;IAEM,YAAY,CACjB,MAA6B,EAC7B,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,gDACtC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC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CAAC,EAAE,CAAC,KACvC,MAAM,IACN,CAAC;IACL,CAAC;IAEM,qBAAqB,CAC1B,MAA6B,EAC7B,WAAyB;QAEzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,2BAA2B,kCAC7C,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,IACN,CAAC;IACL,CAAC;IAED,MAAM,CAAC,SAAiB,EAAE,OAA2B;QACnD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,UAAU,EAAE,OAAO,EAAE;YAClE,YAAY,EAAE,MAAM;SACrB,CAAC,CAAC;IACL,CAAC;IAED,iBAAiB,CAAC,SAAiB,EAAE,OAA8B;QACjE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,qBAAqB,EAAE,OAAO,EAAE;YAC7E,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,0BAA0B;aACnC;SACF,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,SAAiB;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,SAAS,CAAC,CAAC;IAC3D,CAAC;IAED,kBAAkB,CAAC,MAAwB;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,MAAM,EAAE;YACpD,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAnKD,0BAmKC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n CreateInvoiceMail,\n UpdateInvoiceMail,\n IMailSociety,\n ISociety,\n LegalFormSiren,\n GetDataSociety,\n CreateSociety,\n CreateSynchronization,\n UpdateSociety,\n CreateBudgetBalanceBankAccount,\n IUser,\n ListUserSociety,\n CreateUserToSocietyWithPermission,\n UpdateUserToSocietyWithPermission,\n ReadSocietyUsers,\n QuerySociety,\n UpdateSocietyPayload,\n QueryPaginatedSociety,\n ReadInvalidFieldState,\n BasePaginate,\n UpdateUserSociety,\n QueryArchivedSociety,\n QueryExportSociety,\n QueryAccountingExport,\n GetSocietyState,\n QueryUnpaidSociety,\n ReadSocietyUnpaidStats,\n DataCustomersCsv,\n} from '../../types';\nimport { CancelToken } from 'axios';\n\nexport class Society extends Resource {\n public get(params: QuerySociety): Promise<ISociety> {\n return this.axios.$get('/society', { params });\n }\n\n public getPaginated(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated', {\n ...(signal ? { signal } : {}),\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n getInvoiceEmail(): Promise<IMailSociety | Error> {\n return this.axios.$get('/society/invoiceEmail');\n }\n\n getInvoiceEmailFromSociety(idSociety: number): Promise<IMailSociety | Error> {\n return this.axios.$get(`/society/invoiceEmail/${idSociety}`);\n }\n\n createInvoiceEmail(data: CreateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$post('/society/invoiceEmail', data);\n }\n\n updateInvoiceEmail(data: UpdateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$put('/society/invoiceEmail', data);\n }\n createSociety(data: CreateSociety, fromSubscription: boolean | string, isCreatedInApp: boolean): Promise<ISociety> {\n return this.axios.$post(\n `/society/create?fromSubscription=${fromSubscription}&isCreatedInApp=${isCreatedInApp}`,\n data,\n );\n }\n updateSociety(id: number, data: UpdateSociety): Promise<ISociety> {\n return this.axios.$put(`/society/${id}/updateSociety`, data);\n }\n\n update(id: number, payload: UpdateSocietyPayload): Promise<ISociety> {\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n archive(id: number): Promise<ISociety> {\n const payload: UpdateSocietyPayload = { society: { archive: true, archiveDate: new Date() } };\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n // this endpoint is used to fetch from extern api for legalForm\n getDataSociety(params: GetDataSociety): Promise<LegalFormSiren[]> {\n return this.axios.$get('/society/dataSociety', { params });\n }\n synchronize(id: number, params: CreateSynchronization): Promise<string> {\n return this.axios.$post(`/society/${id}/synchronize`, params);\n }\n importBalanceBankAccount(\n idSociety: number,\n idBankAccount: number,\n params: CreateBudgetBalanceBankAccount,\n ): Promise<number> {\n return this.axios.$post(`/society/${idSociety}/bankAccount/${idBankAccount}/importBalance`, params);\n }\n listUserSociety(idSociety: number, params: ListUserSociety): Promise<ReadSocietyUsers> {\n return this.axios.$get(`/society/${idSociety}/users`, { params });\n }\n getAccountant(): Promise<IUser | null> {\n return this.axios.$get('/society/accountant');\n }\n deleteUser(idSociety: number, idUser: number): Promise<true> {\n return this.axios.$delete(`/society/${idSociety}/user/${idUser}`);\n }\n createUserToSocietyWithPermission(idSociety: number, data: CreateUserToSocietyWithPermission): Promise<IUser> {\n return this.axios.$post(`/society/${idSociety}/userToSocietyWithPermission`, data);\n }\n updateUserToSocietyWithPermission(\n idSociety: number,\n id: number,\n data: UpdateUserToSocietyWithPermission,\n ): Promise<IUser> {\n return this.axios.$put(`/society/${idSociety}/userToSocietyWithPermission/${id}`, data);\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`/society/${id}`);\n }\n getAllMissingInformations(id: number): Promise<ReadInvalidFieldState[]> {\n return this.axios.$get(`/society/${id}/informations-statements`);\n }\n\n getOwner(id: number): Promise<IUser> {\n return this.axios.$get(`/societies/${id}/owner`);\n }\n\n updateUserAndAccess(idSociety: number, idUser: number, payload: UpdateUserSociety): Promise<{ data: IUser }> {\n return this.axios.patch(`/societies/${idSociety}/users/${idUser}`, payload);\n }\n\n getArchived(query: QueryArchivedSociety): Promise<ISociety[]> {\n return this.axios.$get('/society/archived', { params: query });\n }\n\n getUnpaids(query: QueryUnpaidSociety, signal?: AbortSignal): Promise<ISociety[]> {\n return this.axios.$get('/society/unpaids', {\n ...(signal ? { signal } : {}),\n params: query,\n });\n }\n\n getUnpaidsStats(signal?: AbortSignal): Promise<ReadSocietyUnpaidStats> {\n return this.axios.$get('/society/unpaids/stats', {\n ...(signal ? { signal } : {}),\n });\n }\n\n public getPaginatedNewJuridical(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated-juridical', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n public getPaginatedNewSocial(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated-social', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n export(idSociety: number, payload: QueryExportSociety): Promise<void> {\n return this.axios.$post(`/societies/${idSociety}/exports`, payload, {\n responseType: 'blob',\n });\n }\n\n exportAccountancy(idSociety: number, payload: QueryAccountingExport): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/accounting/exports`, payload, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n\n getState(idSociety: number): Promise<GetSocietyState> {\n return this.axios.$get(`/societies/${idSociety}/states`);\n }\n\n exportCustomersCSV(params: DataCustomersCsv): Promise<Buffer> {\n return this.axios.$post('/societies/exports', params, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Society.js","sourceRoot":"","sources":["../../../../ts/api/resources/Society.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAkCvC,MAAa,OAAQ,SAAQ,mBAAQ;IAC5B,GAAG,CAAC,MAAoB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjD,CAAC;IAEM,YAAY,CACjB,MAA6B,EAC7B,WAAyB,EACzB,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,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ource';\nimport {\n CreateInvoiceMail,\n UpdateInvoiceMail,\n IMailSociety,\n ISociety,\n LegalFormSiren,\n GetDataSociety,\n CreateSociety,\n CreateSynchronization,\n UpdateSociety,\n CreateBudgetBalanceBankAccount,\n IUser,\n ListUserSociety,\n CreateUserToSocietyWithPermission,\n UpdateUserToSocietyWithPermission,\n ReadSocietyUsers,\n QuerySociety,\n UpdateSocietyPayload,\n QueryPaginatedSociety,\n ReadInvalidFieldState,\n BasePaginate,\n UpdateUserSociety,\n QueryArchivedSociety,\n QueryExportSociety,\n QueryAccountingExport,\n GetSocietyState,\n QueryUnpaidSociety,\n ReadSocietyUnpaidStats,\n DataCustomersCsv,\n ReadCurrentPrestations,\n} from '../../types';\nimport { CancelToken } from 'axios';\n\nexport class Society extends Resource {\n public get(params: QuerySociety): Promise<ISociety> {\n return this.axios.$get('/society', { params });\n }\n\n public getPaginated(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated', {\n ...(signal ? { signal } : {}),\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n getInvoiceEmail(): Promise<IMailSociety | Error> {\n return this.axios.$get('/society/invoiceEmail');\n }\n\n getInvoiceEmailFromSociety(idSociety: number): Promise<IMailSociety | Error> {\n return this.axios.$get(`/society/invoiceEmail/${idSociety}`);\n }\n\n createInvoiceEmail(data: CreateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$post('/society/invoiceEmail', data);\n }\n\n updateInvoiceEmail(data: UpdateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$put('/society/invoiceEmail', data);\n }\n createSociety(data: CreateSociety, fromSubscription: boolean | string, isCreatedInApp: boolean): Promise<ISociety> {\n return this.axios.$post(\n `/society/create?fromSubscription=${fromSubscription}&isCreatedInApp=${isCreatedInApp}`,\n data,\n );\n }\n updateSociety(id: number, data: UpdateSociety): Promise<ISociety> {\n return this.axios.$put(`/society/${id}/updateSociety`, data);\n }\n\n update(id: number, payload: UpdateSocietyPayload): Promise<ISociety> {\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n archive(id: number): Promise<ISociety> {\n const payload: UpdateSocietyPayload = { society: { archive: true, archiveDate: new Date() } };\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n // this endpoint is used to fetch from extern api for legalForm\n getDataSociety(params: GetDataSociety): Promise<LegalFormSiren[]> {\n return this.axios.$get('/society/dataSociety', { params });\n }\n synchronize(id: number, params: CreateSynchronization): Promise<string> {\n return this.axios.$post(`/society/${id}/synchronize`, params);\n }\n importBalanceBankAccount(\n idSociety: number,\n idBankAccount: number,\n params: CreateBudgetBalanceBankAccount,\n ): Promise<number> {\n return this.axios.$post(`/society/${idSociety}/bankAccount/${idBankAccount}/importBalance`, params);\n }\n listUserSociety(idSociety: number, params: ListUserSociety): Promise<ReadSocietyUsers> {\n return this.axios.$get(`/society/${idSociety}/users`, { params });\n }\n getAccountant(): Promise<IUser | null> {\n return this.axios.$get('/society/accountant');\n }\n deleteUser(idSociety: number, idUser: number): Promise<true> {\n return this.axios.$delete(`/society/${idSociety}/user/${idUser}`);\n }\n createUserToSocietyWithPermission(idSociety: number, data: CreateUserToSocietyWithPermission): Promise<IUser> {\n return this.axios.$post(`/society/${idSociety}/userToSocietyWithPermission`, data);\n }\n updateUserToSocietyWithPermission(\n idSociety: number,\n id: number,\n data: UpdateUserToSocietyWithPermission,\n ): Promise<IUser> {\n return this.axios.$put(`/society/${idSociety}/userToSocietyWithPermission/${id}`, data);\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`/society/${id}`);\n }\n getAllMissingInformations(id: number): Promise<ReadInvalidFieldState[]> {\n return this.axios.$get(`/society/${id}/informations-statements`);\n }\n\n getOwner(id: number): Promise<IUser> {\n return this.axios.$get(`/societies/${id}/owner`);\n }\n\n updateUserAndAccess(idSociety: number, idUser: number, payload: UpdateUserSociety): Promise<{ data: IUser }> {\n return this.axios.patch(`/societies/${idSociety}/users/${idUser}`, payload);\n }\n\n getArchived(query: QueryArchivedSociety): Promise<ISociety[]> {\n return this.axios.$get('/society/archived', { params: query });\n }\n\n getUnpaids(query: QueryUnpaidSociety, signal?: AbortSignal): Promise<ISociety[]> {\n return this.axios.$get('/society/unpaids', {\n ...(signal ? { signal } : {}),\n params: query,\n });\n }\n\n getUnpaidsStats(signal?: AbortSignal): Promise<ReadSocietyUnpaidStats> {\n return this.axios.$get('/society/unpaids/stats', {\n ...(signal ? { signal } : {}),\n });\n }\n\n public getPaginatedNewJuridical(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated-juridical', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n public getPaginatedNewSocial(\n params: QueryPaginatedSociety,\n cancelToken?: CancelToken,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/paginated-social', {\n ...(cancelToken ? { cancelToken } : {}),\n params,\n });\n }\n\n export(idSociety: number, payload: QueryExportSociety): Promise<void> {\n return this.axios.$post(`/societies/${idSociety}/exports`, payload, {\n responseType: 'blob',\n });\n }\n\n exportAccountancy(idSociety: number, payload: QueryAccountingExport): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/accounting/exports`, payload, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/octet-stream',\n },\n });\n }\n\n getState(idSociety: number): Promise<GetSocietyState> {\n return this.axios.$get(`/societies/${idSociety}/states`);\n }\n\n getCurrentPrestations(idSociety: number): Promise<ReadCurrentPrestations> {\n return this.axios.$get(`/societies/${idSociety}/current-prestations`);\n }\n\n exportCustomersCSV(params: DataCustomersCsv): Promise<Buffer> {\n return this.axios.$post('/societies/exports', params, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n}\n"]}
|
|
@@ -7,7 +7,7 @@ class SocietyDetail extends Resource_1.Resource {
|
|
|
7
7
|
return this.axios.$get(`/societies/${id}/details`, { params });
|
|
8
8
|
}
|
|
9
9
|
updateOrCreate(idSociety, params) {
|
|
10
|
-
return this.axios.$post(`/societies/${idSociety}/details`, params);
|
|
10
|
+
return this.axios.$post(`/societies/${idSociety}/details`, { params });
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.SocietyDetail = SocietyDetail;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocietyDetail.js","sourceRoot":"","sources":["../../../../ts/api/resources/SocietyDetail.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAEvC,MAAa,aAAc,SAAQ,mBAAQ;IACzC,GAAG,CAAC,EAAU,EAAE,MAAwB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,cAAc,CAAC,SAAiB,EAAE,MAAsB;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,UAAU,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"SocietyDetail.js","sourceRoot":"","sources":["../../../../ts/api/resources/SocietyDetail.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAEvC,MAAa,aAAc,SAAQ,mBAAQ;IACzC,GAAG,CAAC,EAAU,EAAE,MAAwB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,cAAc,CAAC,SAAiB,EAAE,MAAsB;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AARD,sCAQC","sourcesContent":["import { GetSocietyDetail, ISocietyDetail } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class SocietyDetail extends Resource {\n get(id: number, params: GetSocietyDetail): Promise<ISocietyDetail> {\n return this.axios.$get(`/societies/${id}/details`, { params });\n }\n\n updateOrCreate(idSociety: number, params: ISocietyDetail): Promise<ISocietyDetail> {\n return this.axios.$post(`/societies/${idSociety}/details`, { params });\n }\n}\n"]}
|
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import {
|
|
3
|
-
import Stripe from 'stripe';
|
|
2
|
+
import { QueryStripeSession, CreateSubscriptionSession, CreateStripePortals } from '../../types';
|
|
3
|
+
import type Stripe from 'stripe';
|
|
4
4
|
export declare class Subscription extends Resource {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Retourne les offres Stripe actives
|
|
7
|
+
* Attention : les montants sont retournés x100
|
|
8
|
+
*/
|
|
9
|
+
getAllOffers(): Promise<Stripe.Price[]>;
|
|
10
|
+
/**
|
|
11
|
+
* Créé une session Stripe avec les informations client
|
|
12
|
+
* Attention : les montants sont retournés x100
|
|
13
|
+
*/
|
|
14
|
+
createSession(payload: CreateSubscriptionSession): Promise<Stripe.Response<Stripe.Checkout.Session>>;
|
|
15
|
+
/**
|
|
16
|
+
* Créé un portail Stripe permettant de gérer l'abonnement
|
|
17
|
+
* Attention : les montants sont retournés x100
|
|
18
|
+
*/
|
|
19
|
+
createPortal(payload: CreateStripePortals): Promise<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Retourne l'abonnement Stripe de la société courante
|
|
22
|
+
* Attention : les montants sont retournés x100
|
|
23
|
+
*/
|
|
24
|
+
get(): Promise<Stripe.Response<Stripe.Subscription> | null>;
|
|
25
|
+
createComptalibSession(idSociety: number, body: QueryStripeSession): Promise<Stripe.Response<Stripe.Checkout.Session>>;
|
|
9
26
|
}
|
|
10
27
|
//# sourceMappingURL=Subscription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACjG,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,qBAAa,YAAa,SAAQ,QAAQ;IACxC;;;OAGG;IACH,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IAIvC;;;OAGG;IACH,aAAa,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAIpG;;;OAGG;IACH,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC;IAI3D;;;OAGG;IACH,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAM3D,sBAAsB,CACpB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;CAGrD"}
|
|
@@ -3,17 +3,37 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Subscription = void 0;
|
|
4
4
|
const Resource_1 = require("../Resource");
|
|
5
5
|
class Subscription extends Resource_1.Resource {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Retourne les offres Stripe actives
|
|
8
|
+
* Attention : les montants sont retournés x100
|
|
9
|
+
*/
|
|
10
|
+
getAllOffers() {
|
|
11
|
+
return this.axios.$get('/stripe/subscriptions/offers');
|
|
8
12
|
}
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Créé une session Stripe avec les informations client
|
|
15
|
+
* Attention : les montants sont retournés x100
|
|
16
|
+
*/
|
|
17
|
+
createSession(payload) {
|
|
18
|
+
return this.axios.$post('/stripe/subscriptions/sessions', payload);
|
|
11
19
|
}
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Créé un portail Stripe permettant de gérer l'abonnement
|
|
22
|
+
* Attention : les montants sont retournés x100
|
|
23
|
+
*/
|
|
24
|
+
createPortal(payload) {
|
|
25
|
+
return this.axios.$post('/stripe/subscriptions/portals', payload);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Retourne l'abonnement Stripe de la société courante
|
|
29
|
+
* Attention : les montants sont retournés x100
|
|
30
|
+
*/
|
|
31
|
+
get() {
|
|
32
|
+
return this.axios.$get('/stripe/subscriptions');
|
|
14
33
|
}
|
|
15
|
-
|
|
16
|
-
|
|
34
|
+
/* -------------- */
|
|
35
|
+
createComptalibSession(idSociety, body) {
|
|
36
|
+
return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);
|
|
17
37
|
}
|
|
18
38
|
}
|
|
19
39
|
exports.Subscription = Subscription;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;
|
|
1
|
+
{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../../ts/api/resources/Subscription.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAIvC,MAAa,YAAa,SAAQ,mBAAQ;IACxC;;;OAGG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;IACzD,CAAC;IAED;;;OAGG;IACH,aAAa,CAAC,OAAkC;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,OAA4B;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;OAGG;IACH,GAAG;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IAClD,CAAC;IAED,oBAAoB;IAEpB,sBAAsB,CACpB,SAAiB,EACjB,IAAwB;QAExB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,yBAAyB,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;CACF;AAzCD,oCAyCC","sourcesContent":["import { Resource } from '../Resource';\nimport { QueryStripeSession, CreateSubscriptionSession, CreateStripePortals } from '../../types';\nimport type Stripe from 'stripe';\n\nexport class Subscription extends Resource {\n /**\n * Retourne les offres Stripe actives\n * Attention : les montants sont retournés x100\n */\n getAllOffers(): Promise<Stripe.Price[]> {\n return this.axios.$get('/stripe/subscriptions/offers');\n }\n\n /**\n * Créé une session Stripe avec les informations client\n * Attention : les montants sont retournés x100\n */\n createSession(payload: CreateSubscriptionSession): Promise<Stripe.Response<Stripe.Checkout.Session>> {\n return this.axios.$post('/stripe/subscriptions/sessions', payload);\n }\n\n /**\n * Créé un portail Stripe permettant de gérer l'abonnement\n * Attention : les montants sont retournés x100\n */\n createPortal(payload: CreateStripePortals): Promise<string> {\n return this.axios.$post('/stripe/subscriptions/portals', payload);\n }\n\n /**\n * Retourne l'abonnement Stripe de la société courante\n * Attention : les montants sont retournés x100\n */\n get(): Promise<Stripe.Response<Stripe.Subscription> | null> {\n return this.axios.$get('/stripe/subscriptions');\n }\n\n /* -------------- */\n\n createComptalibSession(\n idSociety: number,\n body: QueryStripeSession,\n ): Promise<Stripe.Response<Stripe.Checkout.Session>> {\n return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);\n }\n}\n"]}
|
|
@@ -22,7 +22,9 @@ export declare class Prestation extends Resource {
|
|
|
22
22
|
*/
|
|
23
23
|
getAllJuridicFromSociety(id: number): Promise<IPrestation[]>;
|
|
24
24
|
getPaginatedSocietiesFromPrestation(params: QueryGetPaginatedSocietiesFromPrestation): Promise<BasePaginate<ISociety>>;
|
|
25
|
-
getAllFromSociety(id: number, params?: QueryPrestation, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation
|
|
25
|
+
getAllFromSociety(id: number, params?: QueryPrestation, cancelToken?: CancelToken, signal?: AbortSignal): Promise<Array<IPrestation & {
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
}>>;
|
|
26
28
|
getAllSocialFromSociety(id: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]>;
|
|
27
29
|
createCustomerPrestation(idSociety: number, payload: CreateSocietyPrestationComplementary): Promise<IPrestation>;
|
|
28
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,oCAAoC,EACpC,WAAW,EACX,QAAQ,EAER,qBAAqB,EACrB,wCAAwC,EACxC,eAAe,EACf,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIlE;;;;;OAKG;IACI,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC;IAIxF;;;;OAIG;IACI,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AC,GACpC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC7B,MAAM,IACN,CAAC;IACL,CAAC;IAEM,uBAAuB,CAAC,EAAU,EAAE,WAAyB,EAAE,MAAoB;QACxF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,cAAc,gDAChD,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GACpC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC7B,MAAM,EAAE;gBACN,iBAAiB,EAAE;oBACjB,sBAAc,CAAC,UAAU;oBACzB,sBAAc,CAAC,MAAM;oBACrB,sBAAc,CAAC,qBAAqB;oBACpC,sBAAc,CAAC,6BAA6B;oBAC5C,sBAAc,CAAC,sCAAsC;oBACrD,sBAAc,CAAC,8BAA8B;oBAC7C,sBAAc,CAAC,2BAA2B;oBAC1C,sBAAc,CAAC,mBAAmB;oBAClC,sBAAc,CAAC,eAAe;oBAC9B,sBAAc,CAAC,uBAAuB;oBACtC,sBAAc,CAAC,sBAAsB;oBACrC,sBAAc,CAAC,8BAA8B;iBAC9C;aACF,IACD,CAAC;IACL,CAAC;IAEM,wBAAwB,CAC7B,SAAiB,EACjB,OAA6C;QAE7C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AA7ED,gCA6EC","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateSocietyPrestationComplementary,\n IPrestation,\n ISociety,\n PrestationType,\n QueryCreatePrestation,\n QueryGetPaginatedSocietiesFromPrestation,\n QueryPrestation,\n QueryUpdatePrestation,\n} from '../../types';\n\nexport class Prestation extends Resource {\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { QueryCreatePrestation } params\n * @returns { IPrestation }\n */\n public create(params: QueryCreatePrestation): Promise<IPrestation> {\n return this.axios.$post('/prestation', params);\n }\n\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { number } id\n * @param { QueryUpdatePrestation } params\n * @returns { IPrestation }\n */\n public update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation> {\n return this.axios.$put(`/prestation/${idPrestation}`, params);\n }\n\n /**\n * retourne toutes les prestations juridique d'une société\n * @param { number } id\n * @returns { IPrestation }\n */\n public getAllJuridicFromSociety(id: number): Promise<IPrestation[]> {\n return this.axios.$get(`/prestation/society/${id}/juridicals`);\n }\n\n public getPaginatedSocietiesFromPrestation(\n params: QueryGetPaginatedSocietiesFromPrestation,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/prestation/societies', { params });\n }\n\n public getAllFromSociety(\n id: number,\n params?: QueryPrestation,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<IPrestation
|
|
1
|
+
{"version":3,"file":"prestation.js","sourceRoot":"","sources":["../../../../ts/api/resources/prestation.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AACvC,uCAUqB;AAErB,MAAa,UAAW,SAAQ,mBAAQ;IACtC;;;;OAIG;IACI,MAAM,CAAC,MAA6B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,YAAoB,EAAE,MAA6B;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,YAAY,EAAE,EAAE,MAAM,CAAC,CAAC;IAChE,CAAC;IAED;;;;OAIG;IACI,wBAAwB,CAAC,EAAU;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,EAAE,aAAa,CAAC,CAAC;IACjE,CAAC;IAEM,mCAAmC,CACxC,MAA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C,KAAK,CAAC,cAAc,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AA7ED,gCA6EC","sourcesContent":["import { CancelToken } from 'axios';\nimport { Resource } from '../Resource';\nimport {\n BasePaginate,\n CreateSocietyPrestationComplementary,\n IPrestation,\n ISociety,\n PrestationType,\n QueryCreatePrestation,\n QueryGetPaginatedSocietiesFromPrestation,\n QueryPrestation,\n QueryUpdatePrestation,\n} from '../../types';\n\nexport class Prestation extends Resource {\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { QueryCreatePrestation } params\n * @returns { IPrestation }\n */\n public create(params: QueryCreatePrestation): Promise<IPrestation> {\n return this.axios.$post('/prestation', params);\n }\n\n /**\n * Crée une prestationavec tous les éléments lié à celle-ci.\n * @param { number } id\n * @param { QueryUpdatePrestation } params\n * @returns { IPrestation }\n */\n public update(idPrestation: number, params: QueryUpdatePrestation): Promise<IPrestation> {\n return this.axios.$put(`/prestation/${idPrestation}`, params);\n }\n\n /**\n * retourne toutes les prestations juridique d'une société\n * @param { number } id\n * @returns { IPrestation }\n */\n public getAllJuridicFromSociety(id: number): Promise<IPrestation[]> {\n return this.axios.$get(`/prestation/society/${id}/juridicals`);\n }\n\n public getPaginatedSocietiesFromPrestation(\n params: QueryGetPaginatedSocietiesFromPrestation,\n ): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/prestation/societies', { params });\n }\n\n public getAllFromSociety(\n id: number,\n params?: QueryPrestation,\n cancelToken?: CancelToken,\n signal?: AbortSignal,\n ): Promise<Array<IPrestation & { isActive: boolean }>> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n public getAllSocialFromSociety(id: number, cancelToken?: CancelToken, signal?: AbortSignal): Promise<IPrestation[]> {\n return this.axios.$get(`/societies/${id}/prestations`, {\n ...(cancelToken ? { cancelToken } : {}),\n ...(signal ? { signal } : {}),\n params: {\n prestationListIds: [\n PrestationType.FRUCTUPAIE,\n PrestationType.SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_SOCIAL,\n PrestationType.MYFRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_ASSISTANCE_SOCIAL,\n PrestationType.FRUCTUCOMPTA_EXPRESS_SOCIAL,\n PrestationType.FRUCTUCOMPTA_SOCIAL,\n PrestationType.COMPTA_PRO_PAIE,\n PrestationType.COMPTA_PRO_EXPRESS_PAIE,\n PrestationType.COMPTA_ENTREPRISE_PAIE,\n PrestationType.COMPTA_ENTREPRISE_EXPRESS_PAIE,\n ],\n },\n });\n }\n\n public createCustomerPrestation(\n idSociety: number,\n payload: CreateSocietyPrestationComplementary,\n ): Promise<IPrestation> {\n return this.axios.$post(`/societies/${idSociety}/prestations`, payload);\n }\n}\n"]}
|