@silexpert/core 1.3.95-2 → 1.3.95-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/resources/Exercice.d.ts +1 -1
- package/dist/cjs/api/resources/Exercice.d.ts.map +1 -1
- package/dist/cjs/api/resources/Exercice.js.map +1 -1
- package/dist/cjs/api/resources/Inpi.d.ts +3 -3
- package/dist/cjs/api/resources/Inpi.d.ts.map +1 -1
- package/dist/cjs/api/resources/Inpi.js +1 -1
- package/dist/cjs/api/resources/Inpi.js.map +1 -1
- package/dist/cjs/api/resources/Qonto.d.ts +1 -11
- package/dist/cjs/api/resources/Qonto.d.ts.map +1 -1
- package/dist/cjs/api/resources/Qonto.js +0 -29
- package/dist/cjs/api/resources/Qonto.js.map +1 -1
- package/dist/cjs/api/resources/Sellsy.d.ts +19 -0
- package/dist/cjs/api/resources/Sellsy.d.ts.map +1 -0
- package/dist/cjs/api/resources/Sellsy.js +20 -0
- package/dist/cjs/api/resources/Sellsy.js.map +1 -0
- 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/StripePurchase.d.ts +13 -0
- package/dist/cjs/api/resources/StripePurchase.d.ts.map +1 -0
- package/dist/cjs/api/resources/StripePurchase.js +17 -0
- package/dist/cjs/api/resources/StripePurchase.js.map +1 -0
- package/dist/cjs/api/resources/Team.d.ts +1 -15
- package/dist/cjs/api/resources/Team.d.ts.map +1 -1
- package/dist/cjs/api/resources/Team.js +0 -18
- package/dist/cjs/api/resources/Team.js.map +1 -1
- package/dist/cjs/api/resources/User.js +1 -1
- package/dist/cjs/api/resources/User.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +4 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +4 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts +2 -2
- package/dist/cjs/types/Enum/BalanceSheet.js +2 -2
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +5 -5
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/BrandComptalib.js +1 -1
- package/dist/cjs/types/Enum/BrandComptalib.js.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.js +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js +4 -4
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +20 -12
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +29 -10
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/InpiType.d.ts +10 -2
- package/dist/cjs/types/Enum/InpiType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/InpiType.js +12 -4
- package/dist/cjs/types/Enum/InpiType.js.map +1 -1
- package/dist/cjs/types/Enum/Phone.d.ts +206 -0
- package/dist/cjs/types/Enum/Phone.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Phone.js +208 -2
- package/dist/cjs/types/Enum/Phone.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +2 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +36 -16
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/Stripe.d.ts +4 -0
- package/dist/cjs/types/Enum/Stripe.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Stripe.js +8 -0
- package/dist/cjs/types/Enum/Stripe.js.map +1 -0
- package/dist/cjs/types/Form/FormConnector.d.ts +1 -0
- package/dist/cjs/types/Form/FormConnector.d.ts.map +1 -1
- package/dist/cjs/types/Form/FormConnector.js +83 -0
- package/dist/cjs/types/Form/FormConnector.js.map +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +7 -0
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts +1 -0
- package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.js +4 -0
- package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/Cron.d.ts +8 -0
- package/dist/cjs/types/Interface/api/card/Cron.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/card/Cron.js +39 -0
- package/dist/cjs/types/Interface/api/card/Cron.js.map +1 -0
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +4 -20
- 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/connector/OAuthTokenRequest.d.ts +12 -0
- package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{companeo/CompaneoReturn.js → connector/OAuthTokenRequest.js} +1 -1
- package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.js.map +1 -0
- package/dist/cjs/types/Interface/api/exercice/Create.d.ts +1 -0
- package/dist/cjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/exercice/Create.js +7 -0
- package/dist/cjs/types/Interface/api/exercice/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/inpiPayment/Query.d.ts +14 -0
- package/dist/cjs/types/Interface/api/inpiPayment/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/inpiPayment/Query.js +128 -0
- package/dist/cjs/types/Interface/api/inpiPayment/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts +1 -0
- package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js +6 -0
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/cjs/types/Interface/api/qonto/Create.d.ts +0 -34
- package/dist/cjs/types/Interface/api/qonto/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/qonto/Create.js +1 -155
- package/dist/cjs/types/Interface/api/qonto/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/qonto/Query.d.ts +0 -44
- package/dist/cjs/types/Interface/api/qonto/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/qonto/Query.js +1 -4
- package/dist/cjs/types/Interface/api/qonto/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts +1 -0
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.js +6 -0
- package/dist/cjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
- package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts +11 -0
- package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.js +3 -0
- package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.js.map +1 -0
- package/dist/cjs/types/Interface/api/sellsy/SellsyOauthCallback.d.ts +10 -0
- package/dist/cjs/types/Interface/api/sellsy/SellsyOauthCallback.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{team/QueryUpdateUserTeam.js → sellsy/SellsyOauthCallback.js} +17 -9
- package/dist/cjs/types/Interface/api/sellsy/SellsyOauthCallback.js.map +1 -0
- package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.d.ts +5 -4
- package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.js +13 -0
- package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.js.map +1 -1
- package/dist/cjs/types/Interface/api/society/QueryToArchived.d.ts +5 -0
- package/dist/cjs/types/Interface/api/society/QueryToArchived.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/{team/QueryUpdateTeamsForUser.js → society/QueryToArchived.js} +10 -9
- package/dist/cjs/types/Interface/api/society/QueryToArchived.js.map +1 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +10 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +30 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +6 -0
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +19 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/cjs/types/Interface/models/IConnector.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IConnector.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IConnector.js.map +1 -1
- package/dist/cjs/types/index.d.ts +5 -2
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +5 -2
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.js +55 -55
- package/dist/cjs/utils/vat/3517/century23.js.map +1 -1
- package/dist/mjs/api/resources/Exercice.d.ts +1 -1
- package/dist/mjs/api/resources/Exercice.d.ts.map +1 -1
- package/dist/mjs/api/resources/Exercice.js.map +1 -1
- package/dist/mjs/api/resources/Inpi.d.ts +3 -3
- package/dist/mjs/api/resources/Inpi.d.ts.map +1 -1
- package/dist/mjs/api/resources/Inpi.js +1 -1
- package/dist/mjs/api/resources/Inpi.js.map +1 -1
- package/dist/mjs/api/resources/Qonto.d.ts +1 -11
- package/dist/mjs/api/resources/Qonto.d.ts.map +1 -1
- package/dist/mjs/api/resources/Qonto.js +0 -29
- package/dist/mjs/api/resources/Qonto.js.map +1 -1
- package/dist/mjs/api/resources/Sellsy.d.ts +19 -0
- package/dist/mjs/api/resources/Sellsy.d.ts.map +1 -0
- package/dist/mjs/api/resources/Sellsy.js +16 -0
- package/dist/mjs/api/resources/Sellsy.js.map +1 -0
- 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/StripePurchase.d.ts +13 -0
- package/dist/mjs/api/resources/StripePurchase.d.ts.map +1 -0
- package/dist/mjs/api/resources/StripePurchase.js +16 -0
- package/dist/mjs/api/resources/StripePurchase.js.map +1 -0
- package/dist/mjs/api/resources/Team.d.ts +1 -15
- package/dist/mjs/api/resources/Team.d.ts.map +1 -1
- package/dist/mjs/api/resources/Team.js +0 -18
- package/dist/mjs/api/resources/Team.js.map +1 -1
- package/dist/mjs/api/resources/User.js +1 -1
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +4 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +4 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts +2 -2
- package/dist/mjs/types/Enum/BalanceSheet.js +2 -2
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +5 -5
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/BrandComptalib.js +1 -1
- package/dist/mjs/types/Enum/BrandComptalib.js.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.js +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +4 -4
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +20 -12
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +29 -10
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/InpiType.d.ts +10 -2
- package/dist/mjs/types/Enum/InpiType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/InpiType.js +12 -4
- package/dist/mjs/types/Enum/InpiType.js.map +1 -1
- package/dist/mjs/types/Enum/Phone.d.ts +206 -0
- package/dist/mjs/types/Enum/Phone.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Phone.js +208 -2
- package/dist/mjs/types/Enum/Phone.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +2 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +36 -16
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/Stripe.d.ts +4 -0
- package/dist/mjs/types/Enum/Stripe.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Stripe.js +5 -0
- package/dist/mjs/types/Enum/Stripe.js.map +1 -0
- package/dist/mjs/types/Form/FormConnector.d.ts +1 -0
- package/dist/mjs/types/Form/FormConnector.d.ts.map +1 -1
- package/dist/mjs/types/Form/FormConnector.js +84 -11
- package/dist/mjs/types/Form/FormConnector.js.map +1 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +8 -0
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts +1 -0
- package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.js +5 -0
- package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/Cron.d.ts +8 -0
- package/dist/mjs/types/Interface/api/card/Cron.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/card/Cron.js +37 -0
- package/dist/mjs/types/Interface/api/card/Cron.js.map +1 -0
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +4 -20
- 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/connector/OAuthTokenRequest.d.ts +12 -0
- package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.js +2 -0
- package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.js.map +1 -0
- package/dist/mjs/types/Interface/api/exercice/Create.d.ts +1 -0
- package/dist/mjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/exercice/Create.js +8 -0
- package/dist/mjs/types/Interface/api/exercice/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/inpiPayment/Query.d.ts +14 -0
- package/dist/mjs/types/Interface/api/inpiPayment/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/inpiPayment/Query.js +135 -0
- package/dist/mjs/types/Interface/api/inpiPayment/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts +1 -0
- package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js +8 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/mjs/types/Interface/api/qonto/Create.d.ts +0 -34
- package/dist/mjs/types/Interface/api/qonto/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/qonto/Create.js +1 -178
- package/dist/mjs/types/Interface/api/qonto/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/qonto/Query.d.ts +0 -44
- package/dist/mjs/types/Interface/api/qonto/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/qonto/Query.js +0 -9
- package/dist/mjs/types/Interface/api/qonto/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts +1 -0
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.js +7 -0
- package/dist/mjs/types/Interface/api/registration/CreateRegistration.js.map +1 -1
- package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts +11 -0
- package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.js +2 -0
- package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.js.map +1 -0
- package/dist/mjs/types/Interface/api/sellsy/SellsyOauthCallback.d.ts +10 -0
- package/dist/mjs/types/Interface/api/sellsy/SellsyOauthCallback.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/{team/QueryUpdateUserTeam.js → sellsy/SellsyOauthCallback.js} +19 -10
- package/dist/mjs/types/Interface/api/sellsy/SellsyOauthCallback.js.map +1 -0
- package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.d.ts +5 -4
- package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.js +14 -0
- package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.js.map +1 -1
- package/dist/mjs/types/Interface/api/society/QueryToArchived.d.ts +5 -0
- package/dist/mjs/types/Interface/api/society/QueryToArchived.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/{team/QueryUpdateTeamsForUser.js → society/QueryToArchived.js} +11 -10
- package/dist/mjs/types/Interface/api/society/QueryToArchived.js.map +1 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +10 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +34 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +6 -0
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +18 -0
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/mjs/types/Interface/models/IConnector.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IConnector.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IConnector.js.map +1 -1
- package/dist/mjs/types/index.d.ts +5 -2
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +5 -2
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.js +54 -54
- package/dist/mjs/utils/vat/3517/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Exercice.ts +1 -1
- package/ts/api/resources/Inpi.ts +3 -2
- package/ts/api/resources/Qonto.ts +0 -43
- package/ts/api/resources/Sellsy.ts +24 -0
- package/ts/api/resources/Society.ts +5 -2
- package/ts/api/resources/StripePurchase.ts +22 -0
- package/ts/api/resources/Team.ts +1 -22
- package/ts/api/resources/User.ts +1 -1
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/BalanceSheet.ts +2 -2
- package/ts/types/Enum/BrandClementine.ts +5 -5
- package/ts/types/Enum/BrandComptalib.ts +1 -1
- package/ts/types/Enum/BrandLegalstart.ts +1 -1
- package/ts/types/Enum/BrandPourcentage.ts +4 -4
- package/ts/types/Enum/Card.ts +30 -11
- package/ts/types/Enum/InpiType.ts +13 -4
- package/ts/types/Enum/Phone.ts +208 -2
- package/ts/types/Enum/PrestationType.ts +36 -16
- package/ts/types/Enum/Stripe.ts +3 -0
- package/ts/types/Form/FormConnector.ts +39 -11
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +6 -0
- package/ts/types/Interface/api/calendarEvent/updateCalendarEvent.ts +3 -0
- package/ts/types/Interface/api/card/Cron.ts +21 -0
- package/ts/types/Interface/api/config/ConfigType.ts +2 -22
- package/ts/types/Interface/api/connector/OAuthTokenRequest.ts +12 -0
- package/ts/types/Interface/api/exercice/Create.ts +6 -0
- package/ts/types/Interface/api/inpiPayment/Query.ts +103 -0
- package/ts/types/Interface/api/library/QueryLibrary.ts +6 -1
- package/ts/types/Interface/api/qonto/Create.ts +1 -128
- package/ts/types/Interface/api/qonto/Query.ts +0 -64
- package/ts/types/Interface/api/registration/CreateRegistration.ts +5 -0
- package/ts/types/Interface/api/sellsy/SellsyConnectionStatus.ts +10 -0
- package/ts/types/Interface/api/sellsy/SellsyOauthCallback.ts +24 -0
- package/ts/types/Interface/api/shopify/InvoicesShopify.ts +19 -4
- package/ts/types/Interface/api/society/QueryToArchived.ts +10 -0
- package/ts/types/Interface/api/stripe/Create.ts +24 -1
- package/ts/types/Interface/api/stripe/QueryStripe.ts +14 -0
- package/ts/types/Interface/models/IConnector.ts +1 -0
- package/ts/types/index.ts +5 -2
- package/ts/utils/vat/3517/century23.ts +55 -54
- package/dist/cjs/types/Interface/api/companeo/CompaneoReturn.d.ts +0 -46
- package/dist/cjs/types/Interface/api/companeo/CompaneoReturn.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/companeo/CompaneoReturn.js.map +0 -1
- package/dist/cjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts +0 -4
- package/dist/cjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/team/QueryUpdateTeamsForUser.js.map +0 -1
- package/dist/cjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts +0 -5
- package/dist/cjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/team/QueryUpdateUserTeam.js.map +0 -1
- package/dist/cjs/types/Interface/api/team/index.d.ts +0 -6
- package/dist/cjs/types/Interface/api/team/index.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/team/index.js +0 -22
- package/dist/cjs/types/Interface/api/team/index.js.map +0 -1
- package/dist/mjs/types/Interface/api/companeo/CompaneoReturn.d.ts +0 -46
- package/dist/mjs/types/Interface/api/companeo/CompaneoReturn.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/companeo/CompaneoReturn.js +0 -2
- package/dist/mjs/types/Interface/api/companeo/CompaneoReturn.js.map +0 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts +0 -4
- package/dist/mjs/types/Interface/api/team/QueryUpdateTeamsForUser.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdateTeamsForUser.js.map +0 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts +0 -5
- package/dist/mjs/types/Interface/api/team/QueryUpdateUserTeam.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdateUserTeam.js.map +0 -1
- package/dist/mjs/types/Interface/api/team/index.d.ts +0 -6
- package/dist/mjs/types/Interface/api/team/index.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/team/index.js +0 -6
- package/dist/mjs/types/Interface/api/team/index.js.map +0 -1
- package/ts/types/Interface/api/companeo/CompaneoReturn.ts +0 -47
- package/ts/types/Interface/api/team/QueryUpdateTeamsForUser.ts +0 -9
- package/ts/types/Interface/api/team/QueryUpdateUserTeam.ts +0 -12
- package/ts/types/Interface/api/team/index.ts +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreateExercice, IAdjustment, IBalanceSheet, IExercice, UpdateExercice, UpdateOrCreateAdjustment, CreateProjectExercice, QuerySocietyExercice } from '../../types';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
3
|
export declare class Exercice extends Resource {
|
|
4
|
-
create(params: CreateExercice): Promise<IExercice>;
|
|
4
|
+
create(params: CreateExercice): Promise<IExercice | null>;
|
|
5
5
|
restore(id: number): Promise<IExercice>;
|
|
6
6
|
getAllBySocietyId(id: number, params: QuerySocietyExercice): Promise<IExercice[]>;
|
|
7
7
|
update(id: number, params: UpdateExercice): Promise<IExercice>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exercice.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,aAAa,EACb,SAAS,EACT,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Exercice.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,aAAa,EACb,SAAS,EACT,cAAc,EACd,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,QAAS,SAAQ,QAAQ;IACpC,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,SA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AK,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;gBAC5C,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;oBACpB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAU,EAAE,EAAE;wBAC3B,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBACjC,CAAC,CAAC,CAAC;gBACL,CAAC;;oBAAM,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,UAAU,UAAU,EAAE,QAAQ,EAAE;YAC3F,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE;SACnD,CAAC,CAAC;IACL,CAAC;IAED,WAAW,CAAC,UAAkB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,WAAW,CAAC,CAAC;IAC7D,CAAC;CACF;AAzDD,4BAyDC","sourcesContent":["import {\n CreateExercice,\n IAdjustment,\n IBalanceSheet,\n IExercice,\n UpdateExercice,\n UpdateOrCreateAdjustment,\n CreateProjectExercice,\n QuerySocietyExercice,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice> {\n return this.axios.$post('/exercices', params);\n }\n\n restore(id: number): Promise<IExercice> {\n return this.axios.$post(`/exercices/${id}/restore`);\n }\n\n getAllBySocietyId(id: number, params: QuerySocietyExercice): Promise<IExercice[]> {\n return this.axios.$get(`/societies/${id}/exercices`, { params });\n }\n\n update(id: number, params: UpdateExercice): Promise<IExercice> {\n return this.axios.$put(`/exercices/${id}`, params);\n }\n\n getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {\n return this.axios.$get(`/exercices/${id}/balance-sheets`);\n }\n\n updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {\n return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);\n }\n\n getAllAdjustments(id: number): Promise<IAdjustment[]> {\n return this.axios.$get(`/exercices/${id}/adjustments`);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/exercices/${id}`);\n }\n\n generateBalanceSheetProject(idSociety: number, idExercice: number): Promise<boolean> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/generate`);\n }\n\n sendBalanceSheetProject(idSociety: number, idExercice: number, params: CreateProjectExercice): Promise<boolean> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n getProgress(idExercice: number): Promise<number> {\n return this.axios.$get(`exercices/${idExercice}/progress`);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Exercice.js","sourceRoot":"","sources":["../../../../ts/api/resources/Exercice.ts"],"names":[],"mappings":";;;AAUA,0CAAuC;AAEvC,MAAa,QAAS,SAAQ,mBAAQ;IACpC,MAAM,CAAC,MAAsB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,CAAC,EAAU;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IACtD,CAAC;IAED,iBAAiB,CAAC,EAAU,EAAE,MAA4B;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAAsB;QACvC,OAAO,IAAI,CAAC,KAAK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M,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;YAC1C,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,SAAS,cAAc,UAAU,UAAU,EAAE,QAAQ,EAAE;YAC3F,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE;SACnD,CAAC,CAAC;IACL,CAAC;IAED,WAAW,CAAC,UAAkB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,UAAU,WAAW,CAAC,CAAC;IAC7D,CAAC;CACF;AAzDD,4BAyDC","sourcesContent":["import {\n CreateExercice,\n IAdjustment,\n IBalanceSheet,\n IExercice,\n UpdateExercice,\n UpdateOrCreateAdjustment,\n CreateProjectExercice,\n QuerySocietyExercice,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Exercice extends Resource {\n create(params: CreateExercice): Promise<IExercice | null> {\n return this.axios.$post('/exercices', params);\n }\n\n restore(id: number): Promise<IExercice> {\n return this.axios.$post(`/exercices/${id}/restore`);\n }\n\n getAllBySocietyId(id: number, params: QuerySocietyExercice): Promise<IExercice[]> {\n return this.axios.$get(`/societies/${id}/exercices`, { params });\n }\n\n update(id: number, params: UpdateExercice): Promise<IExercice> {\n return this.axios.$put(`/exercices/${id}`, params);\n }\n\n getAllBalanceSheets(id: number): Promise<IBalanceSheet[]> {\n return this.axios.$get(`/exercices/${id}/balance-sheets`);\n }\n\n updateOrCreateAdjustment(idExercice: number, params: UpdateOrCreateAdjustment): Promise<IAdjustment> {\n return this.axios.$post(`/exercices/${idExercice}/adjustments`, params);\n }\n\n getAllAdjustments(id: number): Promise<IAdjustment[]> {\n return this.axios.$get(`/exercices/${id}/adjustments`);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/exercices/${id}`);\n }\n\n generateBalanceSheetProject(idSociety: number, idExercice: number): Promise<boolean> {\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project/generate`);\n }\n\n sendBalanceSheetProject(idSociety: number, idExercice: number, params: CreateProjectExercice): Promise<boolean> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (key === 'files') {\n value.forEach((file: File) => {\n formData.append('files', file);\n });\n } else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$post(`/societies/${idSociety}/exercices/${idExercice}/project`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n getProgress(idExercice: number): Promise<number> {\n return this.axios.$get(`exercices/${idExercice}/progress`);\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { BasePaginate, IInpiBalance, ReadInpiBalanceStatistic, QueryInpiBalancePaginated, QueryInpiBalanceStatistic, IInpiPayment, QueryInpiPaymentPaginated, QueryInpiPaymentStatistic } from '../../types';
|
|
2
|
+
import { BasePaginate, IInpiBalance, ReadInpiBalanceStatistic, QueryInpiBalancePaginated, QueryInpiBalanceStatistic, IInpiPayment, QueryInpiPaymentPaginated, QueryInpiPaymentStatistic, QueryInpiPaymentCreate } from '../../types';
|
|
3
3
|
export declare class Inpi extends Resource {
|
|
4
4
|
/**
|
|
5
5
|
* Créer un enregistrement dans la table InpiBalance
|
|
@@ -28,10 +28,10 @@ export declare class Inpi extends Resource {
|
|
|
28
28
|
getBalanceStatistic(params: QueryInpiBalanceStatistic): Promise<ReadInpiBalanceStatistic>;
|
|
29
29
|
/**
|
|
30
30
|
* Créer un enregistrement dans la table InpiPayment
|
|
31
|
-
* @param {
|
|
31
|
+
* @param { QueryInpiPaymentCreate } payload
|
|
32
32
|
* @returns { IInpiPayment }
|
|
33
33
|
*/
|
|
34
|
-
createPayment(payload:
|
|
34
|
+
createPayment(payload: QueryInpiPaymentCreate): Promise<IInpiPayment>;
|
|
35
35
|
/**
|
|
36
36
|
* Update un enregistrement dans la table InpiPayment
|
|
37
37
|
* @param { number } id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Inpi.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Inpi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"Inpi.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Inpi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,qBAAa,IAAK,SAAQ,QAAQ;IAChC;;;;OAIG;IACI,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlE;;;;;OAKG;IACI,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlF;;;;OAIG;IACI,kBAAkB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAIjG;;;;OAIG;IACI,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAIhG;;;;OAIG;IACI,aAAa,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,YAAY,CAAC;IAI5E;;;;;OAKG;IACI,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlF;;;;OAIG;IACI,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlD;;;;OAIG;IACI,kBAAkB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAIjG;;;;OAIG;IACI,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAGjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Inpi.js","sourceRoot":"","sources":["../../../../ts/api/resources/Inpi.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;
|
|
1
|
+
{"version":3,"file":"Inpi.js","sourceRoot":"","sources":["../../../../ts/api/resources/Inpi.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAavC,MAAa,IAAK,SAAQ,mBAAQ;IAChC;;;;OAIG;IACI,aAAa,CAAC,OAAqB;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAAC,EAAU,EAAE,OAA8B;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;OAIG;IACI,kBAAkB,CAAC,MAAiC;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CAAC,MAAiC;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACI,aAAa,CAAC,OAA+B;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAAC,EAAU,EAAE,OAA8B;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;OAIG;IACI,aAAa,CAAC,EAAU;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACI,kBAAkB,CAAC,MAAiC;QACzD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CAAC,MAAiC;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAnFD,oBAmFC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n IInpiBalance,\n ReadInpiBalanceStatistic,\n QueryInpiBalancePaginated,\n QueryInpiBalanceStatistic,\n IInpiPayment,\n QueryInpiPaymentPaginated,\n QueryInpiPaymentStatistic,\n QueryInpiPaymentCreate,\n} from '../../types';\n\nexport class Inpi extends Resource {\n /**\n * Créer un enregistrement dans la table InpiBalance\n * @param { IInpiBalance } payload\n * @returns { IInpiBalance }\n */\n public createBalance(payload: IInpiBalance): Promise<IInpiBalance> {\n return this.axios.$post('/inpi/balances', payload);\n }\n\n /**\n * Update un enregistrement dans la table InpiBalance\n * @param { number } id\n * @param { Partial<IInpiBalance> } payload\n * @returns { boolean }\n */\n public updateBalance(id: number, payload: Partial<IInpiBalance>): Promise<boolean> {\n return this.axios.$put(`/inpi/balances/${id}`, payload);\n }\n\n /**\n * Retourne les enregistrement de la table InpiBalance sous format paginé\n * @param { QueryInpiBalancePaginated } params\n * @returns { BasePaginate<IInpiBalance> }\n */\n public getBalancePaginate(params: QueryInpiBalancePaginated): Promise<BasePaginate<IInpiBalance>> {\n return this.axios.$get('/inpi/balances/paginate', { params });\n }\n\n /**\n * Retourne les statistic pour le solde des Inpi\n * @param { QueryInpiBalanceStatistic } params\n * @returns { ReadInpiBalanceStatistic }\n */\n public getBalanceStatistic(params: QueryInpiBalanceStatistic): Promise<ReadInpiBalanceStatistic> {\n return this.axios.$get('/inpi/balances/statistic', { params });\n }\n\n /**\n * Créer un enregistrement dans la table InpiPayment\n * @param { QueryInpiPaymentCreate } payload\n * @returns { IInpiPayment }\n */\n public createPayment(payload: QueryInpiPaymentCreate): Promise<IInpiPayment> {\n return this.axios.$post('/inpi/payments', payload);\n }\n\n /**\n * Update un enregistrement dans la table InpiPayment\n * @param { number } id\n * @param { Partial<IInpiPayment> } payload\n * @returns { boolean }\n */\n public updatePayment(id: number, payload: Partial<IInpiPayment>): Promise<boolean> {\n return this.axios.$put(`/inpi/payments/${id}`, payload);\n }\n\n /**\n * Delete un enregistrement de la table InpiPayment\n * @param { number } id\n * @returns { boolean }\n */\n public deletePayment(id: number): Promise<boolean> {\n return this.axios.$delete(`/inpi/payments/${id}`);\n }\n\n /**\n * Retourne les enregistrement de la table InpiPayment sous format paginé\n * @param { QueryInpiPaymentPaginated } params\n * @returns { BasePaginate<IInpiPayment> }\n */\n public getPaymentPaginate(params: QueryInpiPaymentPaginated): Promise<BasePaginate<IInpiPayment>> {\n return this.axios.$get('/inpi/payments/paginate', { params });\n }\n\n /**\n * Retourne les statistic mensuel pour les commissions hors taxes\n * @param { QueryInpiPaymentStatistic } params\n * @returns { string[] }\n */\n public getPaymentStatistic(params: QueryInpiPaymentStatistic): Promise<string[]> {\n return this.axios.$get('/inpi/payments/commission/statistic', { params });\n }\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProcessBankAccount, CreateQontoConnection, CreateImportation, GetConnectionInformation, GetQontoOrganization, IBankAccount,
|
|
1
|
+
import { ProcessBankAccount, CreateQontoConnection, CreateImportation, GetConnectionInformation, GetQontoOrganization, IBankAccount, ReadCreateConnection, CreateImportationResult } from '../../types';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
3
|
export declare class Qonto extends Resource {
|
|
4
4
|
delete(idBankConnection: number): Promise<IBankAccount>;
|
|
@@ -6,15 +6,5 @@ export declare class Qonto extends Resource {
|
|
|
6
6
|
importBankAccount(idBankAccount: number, payload: CreateImportation): Promise<CreateImportationResult>;
|
|
7
7
|
processBankAccount(idBankConnection: number, payload: ProcessBankAccount): Promise<IBankAccount[]>;
|
|
8
8
|
create(payload: CreateQontoConnection): Promise<ReadCreateConnection>;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated use create
|
|
11
|
-
*/
|
|
12
|
-
updateConnection(idBankConnection: number, payload: UpdateConnection): Promise<IBankConnection>;
|
|
13
|
-
createRegistration(params: CreateQontoRegistration): Promise<ReadQontoRegistration>;
|
|
14
|
-
getRegistration(idRegistration: string): Promise<ReadQontoRegistration>;
|
|
15
|
-
createRegistrationFile(idRegistration: string, params: CreateRegistrationFile): Promise<ReadQontoRegistration>;
|
|
16
|
-
getRegistrationFileBuffer(idRegistration: string, idFile: string): Promise<Buffer>;
|
|
17
|
-
createWebhookConfig(params: CreateWebhookConfig): Promise<ReadQontoWebhookConfig>;
|
|
18
|
-
triggerNewMailForRegistrationLink(idRegistration: string): Promise<void>;
|
|
19
9
|
}
|
|
20
10
|
//# sourceMappingURL=Qonto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Qonto.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Qonto.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"Qonto.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Qonto.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,KAAM,SAAQ,QAAQ;IACjC,MAAM,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIvD,cAAc,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIhF,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAItG,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAIlG,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAGtE"}
|
|
@@ -18,35 +18,6 @@ class Qonto extends Resource_1.Resource {
|
|
|
18
18
|
create(payload) {
|
|
19
19
|
return this.axios.$post('connectors/qonto/connections', payload);
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated use create
|
|
23
|
-
*/
|
|
24
|
-
updateConnection(idBankConnection, payload) {
|
|
25
|
-
return this.axios.$put(`connectors/qonto/connections/${idBankConnection}`, payload);
|
|
26
|
-
}
|
|
27
|
-
createRegistration(params) {
|
|
28
|
-
return this.axios.$post('connectors/qonto/registrations', params);
|
|
29
|
-
}
|
|
30
|
-
getRegistration(idRegistration) {
|
|
31
|
-
return this.axios.$post(`connectors/qonto/registrations/${idRegistration}`);
|
|
32
|
-
}
|
|
33
|
-
createRegistrationFile(idRegistration, params) {
|
|
34
|
-
return this.axios.$post(`connectors/qonto/registrations/${idRegistration}/files`, params, {
|
|
35
|
-
responseType: 'arraybuffer',
|
|
36
|
-
headers: {
|
|
37
|
-
Accept: 'application/pdf',
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
getRegistrationFileBuffer(idRegistration, idFile) {
|
|
42
|
-
return this.axios.$get(`connectors/qonto/registrations/${idRegistration}/files/${idFile}/download`);
|
|
43
|
-
}
|
|
44
|
-
createWebhookConfig(params) {
|
|
45
|
-
return this.axios.$post('connectors/qonto/registrations/webhooks-configs', params);
|
|
46
|
-
}
|
|
47
|
-
triggerNewMailForRegistrationLink(idRegistration) {
|
|
48
|
-
return this.axios.$post(`connectors/qonto/registrations/${idRegistration}/email`);
|
|
49
|
-
}
|
|
50
21
|
}
|
|
51
22
|
exports.Qonto = Qonto;
|
|
52
23
|
//# sourceMappingURL=Qonto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Qonto.js","sourceRoot":"","sources":["../../../../ts/api/resources/Qonto.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Qonto.js","sourceRoot":"","sources":["../../../../ts/api/resources/Qonto.ts"],"names":[],"mappings":";;;AAUA,0CAAuC;AAEvC,MAAa,KAAM,SAAQ,mBAAQ;IACjC,MAAM,CAAC,gBAAwB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,gCAAgC,gBAAgB,EAAE,CAAC,CAAC;IAChF,CAAC;IAED,cAAc,CAAC,OAAiC;QAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,iBAAiB,CAAC,aAAqB,EAAE,OAA0B;QACjE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,aAAa,cAAc,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED,kBAAkB,CAAC,gBAAwB,EAAE,OAA2B;QACtE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gCAAgC,gBAAgB,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;IAED,MAAM,CAAC,OAA8B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,8BAA8B,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;CACF;AApBD,sBAoBC","sourcesContent":["import {\n ProcessBankAccount,\n CreateQontoConnection,\n CreateImportation,\n GetConnectionInformation,\n GetQontoOrganization,\n IBankAccount,\n ReadCreateConnection,\n CreateImportationResult,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Qonto extends Resource {\n delete(idBankConnection: number): Promise<IBankAccount> {\n return this.axios.$delete(`connectors/qonto/connections/${idBankConnection}`);\n }\n\n getInformation(queries: GetConnectionInformation): Promise<GetQontoOrganization> {\n return this.axios.$get('connectors/qonto/connections', { params: queries });\n }\n\n importBankAccount(idBankAccount: number, payload: CreateImportation): Promise<CreateImportationResult> {\n return this.axios.$post(`connectors/qonto/${idBankAccount}/importation`, payload);\n }\n\n processBankAccount(idBankConnection: number, payload: ProcessBankAccount): Promise<IBankAccount[]> {\n return this.axios.$post(`connectors/qonto/connections/${idBankConnection}/bank-accounts`, payload);\n }\n\n create(payload: CreateQontoConnection): Promise<ReadCreateConnection> {\n return this.axios.$post('connectors/qonto/connections', payload);\n }\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import { SellsyConnectionStatus } from '../../types/Interface/api/sellsy/SellsyConnectionStatus';
|
|
3
|
+
export declare class Sellsy extends Resource {
|
|
4
|
+
oauthCallback(payload: {
|
|
5
|
+
code: string;
|
|
6
|
+
codeVerifier: string;
|
|
7
|
+
idSociety: number;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
success: boolean;
|
|
10
|
+
message: string;
|
|
11
|
+
}>;
|
|
12
|
+
disconnect(idSociety: number): Promise<{
|
|
13
|
+
success: boolean;
|
|
14
|
+
message: string;
|
|
15
|
+
}>;
|
|
16
|
+
getConnectionStatus(societyId: number): Promise<SellsyConnectionStatus>;
|
|
17
|
+
createInvoices(payload: any): Promise<any>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=Sellsy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sellsy.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Sellsy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAEjG,qBAAa,MAAO,SAAQ,QAAQ;IAClC,aAAa,CAAC,OAAO,EAAE;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAIlD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAI7E,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAIvE,cAAc,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;CAG3C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Sellsy = void 0;
|
|
4
|
+
const Resource_1 = require("../Resource");
|
|
5
|
+
class Sellsy extends Resource_1.Resource {
|
|
6
|
+
oauthCallback(payload) {
|
|
7
|
+
return this.axios.$post('/connectors/sellsy/callback', payload);
|
|
8
|
+
}
|
|
9
|
+
disconnect(idSociety) {
|
|
10
|
+
return this.axios.$delete(`/connectors/sellsy/disconnect/${idSociety}`);
|
|
11
|
+
}
|
|
12
|
+
getConnectionStatus(societyId) {
|
|
13
|
+
return this.axios.$get('/connectors/sellsy/status', { params: { societyId } });
|
|
14
|
+
}
|
|
15
|
+
createInvoices(payload) {
|
|
16
|
+
return this.axios.$post('/connectors/sellsy/invoices', payload);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Sellsy = Sellsy;
|
|
20
|
+
//# sourceMappingURL=Sellsy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sellsy.js","sourceRoot":"","sources":["../../../../ts/api/resources/Sellsy.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,MAAO,SAAQ,mBAAQ;IAClC,aAAa,CAAC,OAIb;QACC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,UAAU,CAAC,SAAiB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,iCAAiC,SAAS,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,mBAAmB,CAAC,SAAiB;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,cAAc,CAAC,OAAY;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF;AApBD,wBAoBC","sourcesContent":["import { Resource } from '../Resource';\nimport { SellsyConnectionStatus } from '../../types/Interface/api/sellsy/SellsyConnectionStatus';\n\nexport class Sellsy extends Resource {\n oauthCallback(payload: {\n code: string;\n codeVerifier: string;\n idSociety: number;\n }): Promise<{ success: boolean; message: string }> {\n return this.axios.$post('/connectors/sellsy/callback', payload);\n }\n\n disconnect(idSociety: number): Promise<{ success: boolean; message: string }> {\n return this.axios.$delete(`/connectors/sellsy/disconnect/${idSociety}`);\n }\n\n getConnectionStatus(societyId: number): Promise<SellsyConnectionStatus> {\n return this.axios.$get('/connectors/sellsy/status', { params: { societyId } });\n }\n\n createInvoices(payload: any): Promise<any> {\n return this.axios.$post('/connectors/sellsy/invoices', payload);\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, ReadCurrentPrestations } 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, QueryToArchivedSociety } from '../../types';
|
|
3
3
|
import { CancelToken } from 'axios';
|
|
4
4
|
export declare class Society extends Resource {
|
|
5
5
|
get(params: QuerySociety): Promise<ISociety>;
|
|
@@ -27,6 +27,7 @@ export declare class Society extends Resource {
|
|
|
27
27
|
data: IUser;
|
|
28
28
|
}>;
|
|
29
29
|
getArchived(query: QueryArchivedSociety): Promise<ISociety[]>;
|
|
30
|
+
getToArchived(query: QueryToArchivedSociety, signal?: AbortSignal): Promise<BasePaginate<ISociety>>;
|
|
30
31
|
getUnpaids(query: QueryUnpaidSociety, signal?: AbortSignal): Promise<ISociety[]>;
|
|
31
32
|
getUnpaidsStats(signal?: AbortSignal): Promise<ReadSocietyUnpaidStats>;
|
|
32
33
|
getPaginatedNewJuridical(params: QueryPaginatedSociety, cancelToken?: CancelToken): Promise<BasePaginate<ISociety>>;
|
|
@@ -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,EAChB,sBAAsB,
|
|
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,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AAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAInG,UAAU,CAAC,KAAK,EAAE,kBAAkB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAOhF,eAAe,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAM/D,wBAAwB,CAC7B,MAAM,EAAE,qBAAqB,EAC7B,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IAO3B,qBAAqB,CAC1B,MAAM,EAAE,qBAAqB,EAC7B,WAAW,CAAC,EAAE,WAAW,GACxB,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"}
|
|
@@ -74,6 +74,9 @@ class Society extends Resource_1.Resource {
|
|
|
74
74
|
getArchived(query) {
|
|
75
75
|
return this.axios.$get('/society/archived', { params: query });
|
|
76
76
|
}
|
|
77
|
+
getToArchived(query, signal) {
|
|
78
|
+
return this.axios.$get('/society/to-archived', Object.assign({ params: query }, (signal ? { signal } : {})));
|
|
79
|
+
}
|
|
77
80
|
getUnpaids(query, signal) {
|
|
78
81
|
return this.axios.$get('/society/unpaids', Object.assign(Object.assign({}, (signal ? { signal } : {})), { params: query }));
|
|
79
82
|
}
|
|
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AC;IAC3D,CAAC;IAED,qBAAqB,CAAC,SAAiB;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,sBAAsB,CAAC,CAAC;IACxE,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;AAxKD,0BAwKC","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 ReadCurrentPrestations,\n IComment,\n} from '../../types';\nimport { CancelToken } from 'axios';\nimport { User } from './User';\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\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"]}
|
|
1
|
+
{"version":3,"file":"Society.js","sourceRoot":"","sources":["../../../../ts/api/resources/Society.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAmCvC,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,CAAC,CAAC,EAAE,CAAC,GAC1B,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACvC,MAAM,IACN,CAAC;IACL,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;IAClD,CAAC;IAED,0BAA0B,CAAC,SAAiB;QAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,SAAS,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,kBAAkB,CAAC,IAAuB;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;IAC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C,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,qBAAqB,CAAC,SAAiB;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,SAAS,sBAAsB,CAAC,CAAC;IACxE,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;AA5KD,0BA4KC","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 ReadCurrentPrestations,\n QueryToArchivedSociety,\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\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 getToArchived(query: QueryToArchivedSociety, signal?: AbortSignal): Promise<BasePaginate<ISociety>> {\n return this.axios.$get('/society/to-archived', { params: query, ...(signal ? { signal } : {}) });\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"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Stripe from 'stripe';
|
|
2
|
+
import { Resource } from '../Resource';
|
|
3
|
+
import { CreatePurchaseSession, QueryStripePrice } from '../../types';
|
|
4
|
+
export declare class StripePurchase extends Resource {
|
|
5
|
+
getAllPrices(params: QueryStripePrice): Promise<Stripe.Price[]>;
|
|
6
|
+
createNewExerciceSession(metadata: {
|
|
7
|
+
idSociety: number;
|
|
8
|
+
startDate: string;
|
|
9
|
+
endDate: string;
|
|
10
|
+
}, payload: CreatePurchaseSession): Promise<Stripe.Response<Stripe.Checkout.Session>>;
|
|
11
|
+
createSession(payload: CreatePurchaseSession): Promise<Stripe.Response<Stripe.Checkout.Session>>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=StripePurchase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StripePurchase.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/StripePurchase.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEtE,qBAAa,cAAe,SAAQ,QAAQ;IAE1C,YAAY,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IAI/D,wBAAwB,CAAC,QAAQ,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;KAAE,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAOjL,aAAa,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;CAIjG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StripePurchase = void 0;
|
|
4
|
+
const Resource_1 = require("../Resource");
|
|
5
|
+
class StripePurchase extends Resource_1.Resource {
|
|
6
|
+
getAllPrices(params) {
|
|
7
|
+
return this.axios.$get('/stripe/purchases/prices', { params });
|
|
8
|
+
}
|
|
9
|
+
createNewExerciceSession(metadata, payload) {
|
|
10
|
+
return this.createSession(Object.assign(Object.assign({}, payload), { metadata }));
|
|
11
|
+
}
|
|
12
|
+
createSession(payload) {
|
|
13
|
+
return this.axios.$post('/stripe/purchases/sessions', payload);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.StripePurchase = StripePurchase;
|
|
17
|
+
//# sourceMappingURL=StripePurchase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StripePurchase.js","sourceRoot":"","sources":["../../../../ts/api/resources/StripePurchase.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAGvC,MAAa,cAAe,SAAQ,mBAAQ;IAE1C,YAAY,CAAC,MAAwB;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,wBAAwB,CAAC,QAAoE,EAAE,OAA8B;QAC3H,OAAO,IAAI,CAAC,aAAa,iCACpB,OAAO,KACV,QAAQ,IACR,CAAC;IACL,CAAC;IAED,aAAa,CAAC,OAA8B;QAC1C,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CAEF;AAjBD,wCAiBC","sourcesContent":["import Stripe from 'stripe';\nimport { Resource } from '../Resource';\nimport { CreatePurchaseSession, QueryStripePrice } from '../../types';\n\nexport class StripePurchase extends Resource {\n\n getAllPrices(params: QueryStripePrice): Promise<Stripe.Price[]> {\n return this.axios.$get('/stripe/purchases/prices', { params });\n }\n\n createNewExerciceSession(metadata: { idSociety: number; startDate: string; endDate: string; }, payload: CreatePurchaseSession): Promise<Stripe.Response<Stripe.Checkout.Session>> {\n return this.createSession({\n ...payload,\n metadata\n });\n }\n\n createSession(payload: CreatePurchaseSession): Promise<Stripe.Response<Stripe.Checkout.Session>> {\n return this.axios.$post('/stripe/purchases/sessions', payload);\n }\n\n}"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { ITeam, QueryCreateTeam, QueryGetAllTeamsWithIncludes, QueryUpdateTeam
|
|
2
|
+
import { ITeam, QueryCreateTeam, QueryGetAllTeamsWithIncludes, QueryUpdateTeam } from '../../types';
|
|
3
3
|
export declare class Team extends Resource {
|
|
4
4
|
/**
|
|
5
5
|
* Should Create a new record in Team table
|
|
@@ -26,19 +26,5 @@ export declare class Team extends Resource {
|
|
|
26
26
|
* @returns { ITeam[] }
|
|
27
27
|
*/
|
|
28
28
|
getAll(params: QueryGetAllTeamsWithIncludes): Promise<ITeam[]>;
|
|
29
|
-
/**
|
|
30
|
-
* Should update teams for a specific user
|
|
31
|
-
* @param { number } userId
|
|
32
|
-
* @param { QueryUpdateTeamsForUser } payload
|
|
33
|
-
* @returns { IUserTeam[] }
|
|
34
|
-
*/
|
|
35
|
-
updateTeamsForUser(userId: number, payload: QueryUpdateTeamsForUser): Promise<IUserTeam[]>;
|
|
36
|
-
/**
|
|
37
|
-
* Should delete an user attach to a team
|
|
38
|
-
* @param { number } teamId
|
|
39
|
-
* @param { number } userId
|
|
40
|
-
* @returns { number }
|
|
41
|
-
*/
|
|
42
|
-
deleteUserFromTeam(teamId: number, userId: number): Promise<number>;
|
|
43
29
|
}
|
|
44
30
|
//# sourceMappingURL=Team.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Team.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Team.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,4BAA4B,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Team.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Team.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,4BAA4B,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEpG,qBAAa,IAAK,SAAQ,QAAQ;IAChC;;;;OAIG;IACH,MAAM,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,KAAK,CAAC;IAGhD;;;;;OAKG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,KAAK,CAAC;IAG5D;;;;OAIG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAGnC;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;CAG/D"}
|
|
@@ -36,24 +36,6 @@ class Team extends Resource_1.Resource {
|
|
|
36
36
|
getAll(params) {
|
|
37
37
|
return this.axios.$get('/teams/all', { params });
|
|
38
38
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Should update teams for a specific user
|
|
41
|
-
* @param { number } userId
|
|
42
|
-
* @param { QueryUpdateTeamsForUser } payload
|
|
43
|
-
* @returns { IUserTeam[] }
|
|
44
|
-
*/
|
|
45
|
-
updateTeamsForUser(userId, payload) {
|
|
46
|
-
return this.axios.$put(`/teams/user/${userId}/teams`, payload);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Should delete an user attach to a team
|
|
50
|
-
* @param { number } teamId
|
|
51
|
-
* @param { number } userId
|
|
52
|
-
* @returns { number }
|
|
53
|
-
*/
|
|
54
|
-
deleteUserFromTeam(teamId, userId) {
|
|
55
|
-
return this.axios.$delete(`/teams/${teamId}/user/${userId}`);
|
|
56
|
-
}
|
|
57
39
|
}
|
|
58
40
|
exports.Team = Team;
|
|
59
41
|
//# sourceMappingURL=Team.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Team.js","sourceRoot":"","sources":["../../../../ts/api/resources/Team.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,IAAK,SAAQ,mBAAQ;IAChC;;;;OAIG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;IACD;;;;;OAKG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IACD;;;;OAIG;IACH,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC;
|
|
1
|
+
{"version":3,"file":"Team.js","sourceRoot":"","sources":["../../../../ts/api/resources/Team.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,IAAK,SAAQ,mBAAQ;IAChC;;;;OAIG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;IACD;;;;;OAKG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IACD;;;;OAIG;IACH,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAC5C,CAAC;IACD;;;;OAIG;IACH,MAAM,CAAC,MAAoC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnD,CAAC;CACF;AAlCD,oBAkCC","sourcesContent":["import { Resource } from '../Resource';\nimport { ITeam, QueryCreateTeam, QueryGetAllTeamsWithIncludes, QueryUpdateTeam } from '../../types';\n\nexport class Team extends Resource {\n /**\n * Should Create a new record in Team table\n * @param { QueryCreateTeam } payload\n * @returns { ITeam }\n */\n create(payload: QueryCreateTeam): Promise<ITeam> {\n return this.axios.$post('/teams', payload);\n }\n /**\n * Should update a record in Team table and in UserTeam table\n * @param { number } id\n * @param { QueryUpdateTeam } payload\n * @returns { ITeam }\n */\n update(id: number, payload: QueryUpdateTeam): Promise<ITeam> {\n return this.axios.$put(`/teams/${id}`, payload);\n }\n /**\n * Should delete a record in Team table\n * @param { number } id\n * @returns { number }\n */\n delete(id: number): Promise<number> {\n return this.axios.$delete(`/teams/${id}`);\n }\n /**\n * Should return all records in Team table with includes\n * @param { QueryGetAllTeamsWithIncludes } params\n * @returns { ITeam[] }\n */\n getAll(params: QueryGetAllTeamsWithIncludes): Promise<ITeam[]> {\n return this.axios.$get('/teams/all', { params });\n }\n}\n"]}
|
|
@@ -8,7 +8,7 @@ class User extends Resource_1.Resource {
|
|
|
8
8
|
return this.axios.$put('user/confirm', params);
|
|
9
9
|
}
|
|
10
10
|
resendConfirmationEmailLink(params) {
|
|
11
|
-
return this.axios.$put(`user/${params.id}/
|
|
11
|
+
return this.axios.$put(`user/${params.id}/send-confirmation-mail`);
|
|
12
12
|
}
|
|
13
13
|
create(data) {
|
|
14
14
|
return this.axios.$post('user/create', data);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AACvC,uCAwBqB;AAErB,MAAa,IAAK,SAAQ,mBAAQ;IAChC,OAAO,CAAC,MAAoB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IACD,2BAA2B,CAAC,MAA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0B;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAAwD;QACzE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,CAAC,MAAiB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,cAAc,CAAC,EAAU,EAAE,IAAyB;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,UAAU,CAAC,MAAyB;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpD,CAAC;IACD,MAAM,CAAC,MAAuB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE;YACrC,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,IAA0B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;CACF;AAvHD,oBAuHC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n IUser,\n QueryConfirm,\n QueryResendConfirmationLink,\n CreateUser,\n CreateCoworker,\n QueryUserSmsConfirmation,\n QueryGetAllFromSociety,\n ISociety,\n Role,\n TimeCounterType,\n QueryGetAllCollaborators,\n QueryGetAllCollaboratorsByRoles,\n QueryGetAllWithoutBp,\n CollaboratorsByRoles,\n QueryUserExport,\n UpdateCorworker,\n GetSocietyFromUser,\n RegisterProspectBody,\n RegisterProspectResponse,\n QueryGet,\n BasePaginate,\n QueryGetAllUsersPaginated,\n QueryUpdatePassword,\n} from '../../types';\n\nexport class User extends Resource {\n confirm(params: QueryConfirm): Promise<IUser> {\n return this.axios.$put('user/confirm', params);\n }\n resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean> {\n return this.axios.$put(`user/${params.id}/send-confirmation-mail`);\n }\n create(data: CreateUser): Promise<IUser> {\n return this.axios.$post('user/create', data);\n }\n coworker(data: CreateCoworker): Promise<IUser> {\n return this.axios.$post('user/coworker', data);\n }\n updateCoworker(idUser: number, params: UpdateCorworker): Promise<IUser> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (Array.isArray(value)) {\n value.forEach((v: number | string) => {\n formData.append(`${key}[]`, `${v}`);\n });\n } else if (key === 'file') formData.append('file', value);\n else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$put(`/user/coworker/${idUser}`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n sendNewCode(id: number): Promise<IUser> {\n return this.axios.$put(`user/${id}/sendNewSmsCode`);\n }\n verifySmsCodeConfirmation(id: number, params: QueryUserSmsConfirmation): Promise<IUser> {\n return this.axios.$get(`user/${id}/verifySmsCodeConfirmation`, { params });\n }\n allFromSociety(params: QueryGetAllFromSociety): Promise<IUser[]> {\n return this.axios.$get('user/all-from-society', { params });\n }\n allWithoutBp(params: QueryGetAllWithoutBp): Promise<IUser[]> {\n return this.axios.$get('user/all-without-bp', { params });\n }\n allCollaborators(params: QueryGetAllCollaborators): Promise<IUser[]> {\n return this.axios.$get('user/all-collaborators', { params });\n }\n allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<CollaboratorsByRoles[]> {\n const { idTimeCounterType, idRoles } = data;\n let params = { idRoles };\n if (idTimeCounterType) {\n const timeCounterType = Object.values(TimeCounterType).find((tct) => tct.id === idTimeCounterType);\n const rolesByDefault = [\n Role.FRONT_OFFICE,\n Role.FRONT_OFFICE_EXPRESS,\n Role.SOCIAL,\n Role.JURIDIC,\n Role.HUMAN_RESSOURCES,\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.COMMERCIAL,\n Role.MANAGER,\n Role.EXPERT_ACCOUNTANT,\n Role.DEVELOPER,\n Role.TECHNICAL_ADVISOR,\n ];\n params = { idRoles: timeCounterType?.limitedRoles ?? rolesByDefault };\n }\n return this.axios.$get('user/all-collaborators-by-roles', { params });\n }\n getAllPaginated(params: QueryGetAllUsersPaginated, signal?: AbortSignal): Promise<BasePaginate<IUser>> {\n return this.axios.$get('/user/paginated', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n selectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/selectable-teammates');\n }\n selectableTeammatesV2(): Promise<IUser[]> {\n return this.axios.$get('user/selectable-teammates/v2');\n }\n calendarSelectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/calendar-selectable-teammates');\n }\n\n getAllSocieties(id: number, params: GetSocietyFromUser): Promise<ISociety[]> {\n return this.axios.$get(`/users/${id}/societies`, { params });\n }\n\n update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {\n return this.axios.$put(`user/${id}`, params);\n }\n getInfo(params?: QueryGet): Promise<IUser> {\n return this.axios.$get('user', { params });\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`users/${id}`);\n }\n\n updatePassword(id: number, body: QueryUpdatePassword): Promise<Partial<IUser>> {\n return this.axios.$patch(`/users/${id}/password`, body);\n }\n\n getByRoles(params: { roles: Role[] }): Promise<IUser[]> {\n return this.axios.$get('users/roles', { params });\n }\n export(params: QueryUserExport): Promise<Buffer> {\n return this.axios.$get('users/export', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n registerProspect(body: RegisterProspectBody): Promise<RegisterProspectResponse> {\n return this.axios.$post('users/prospect', body);\n }\n}\n"]}
|
|
@@ -179,6 +179,8 @@ import { StatisticLegal } from './resources/statistic/Legal';
|
|
|
179
179
|
import { AnalyticsUtm } from './resources/AnalyticsUtm';
|
|
180
180
|
import { Caarl } from './resources/Caarl';
|
|
181
181
|
import { Gdpr } from './resources/Gdpr';
|
|
182
|
+
import { Sellsy } from './resources/Sellsy';
|
|
183
|
+
import { StripePurchase } from './resources/StripePurchase';
|
|
182
184
|
export declare const resources: {
|
|
183
185
|
budgetInsight: typeof BudgetInsight;
|
|
184
186
|
paymentExpectationCustomer: typeof PaymentExpectationCustomer;
|
|
@@ -218,6 +220,7 @@ export declare const resources: {
|
|
|
218
220
|
taxDeadline: typeof TaxDeadline;
|
|
219
221
|
exerciceNote: typeof ExerciceNote;
|
|
220
222
|
connector: typeof Connector;
|
|
223
|
+
sellsy: typeof Sellsy;
|
|
221
224
|
tax: typeof Tax;
|
|
222
225
|
quotesAccount: typeof QuotesAccount;
|
|
223
226
|
registration: typeof Registration;
|
|
@@ -361,5 +364,6 @@ export declare const resources: {
|
|
|
361
364
|
analyticsUtm: typeof AnalyticsUtm;
|
|
362
365
|
caarl: typeof Caarl;
|
|
363
366
|
gdpr: typeof Gdpr;
|
|
367
|
+
StripePurchase: typeof StripePurchase;
|
|
364
368
|
};
|
|
365
369
|
//# sourceMappingURL=resources.d.ts.map
|