@silexpert/core 1.1.190 → 1.1.192
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/CustomerSignature.d.ts +6 -0
- package/dist/cjs/api/resources/CustomerSignature.d.ts.map +1 -0
- package/dist/cjs/api/resources/CustomerSignature.js +11 -0
- package/dist/cjs/api/resources/CustomerSignature.js.map +1 -0
- package/dist/cjs/api/resources/Equipment.d.ts +23 -0
- package/dist/cjs/api/resources/Equipment.d.ts.map +1 -0
- package/dist/cjs/api/resources/Equipment.js +49 -0
- package/dist/cjs/api/resources/Equipment.js.map +1 -0
- package/dist/cjs/api/resources/Subscription.d.ts +2 -0
- package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/cjs/api/resources/Subscription.js +7 -1
- package/dist/cjs/api/resources/Subscription.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/BrandClementine.d.ts +1 -2
- package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +1 -2
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/BrandComptalib.d.ts +3 -3
- package/dist/cjs/types/Enum/BrandComptalib.js +3 -3
- package/dist/cjs/types/Enum/BrandComptalib.js.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.d.ts +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.d.ts +4 -4
- package/dist/cjs/types/Enum/BrandPourcentage.js +7 -7
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/BrandStatutsExpress.d.ts +1 -1
- package/dist/cjs/types/Enum/BrandStatutsExpress.js +2 -2
- package/dist/cjs/types/Enum/BrandStatutsExpress.js.map +1 -1
- package/dist/cjs/types/Enum/CustomerSignature.d.ts +2 -0
- package/dist/cjs/types/Enum/CustomerSignature.d.ts.map +1 -1
- package/dist/cjs/types/Enum/CustomerSignature.js +2 -0
- package/dist/cjs/types/Enum/CustomerSignature.js.map +1 -1
- package/dist/cjs/types/Enum/EntityType.d.ts +73 -19
- package/dist/cjs/types/Enum/EntityType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/EntityType.js +9 -1
- package/dist/cjs/types/Enum/EntityType.js.map +1 -1
- package/dist/cjs/types/Enum/EquipmentAvailability.d.ts +16 -0
- package/dist/cjs/types/Enum/EquipmentAvailability.d.ts.map +1 -0
- package/dist/cjs/types/Enum/EquipmentAvailability.js +24 -0
- package/dist/cjs/types/Enum/EquipmentAvailability.js.map +1 -0
- package/dist/cjs/types/Enum/EquipmentState.d.ts +19 -0
- package/dist/cjs/types/Enum/EquipmentState.d.ts.map +1 -0
- package/dist/cjs/types/Enum/EquipmentState.js +27 -0
- package/dist/cjs/types/Enum/EquipmentState.js.map +1 -0
- package/dist/cjs/types/Enum/EquipmentType.d.ts +48 -0
- package/dist/cjs/types/Enum/EquipmentType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/EquipmentType.js +64 -0
- package/dist/cjs/types/Enum/EquipmentType.js.map +1 -0
- package/dist/cjs/types/Enum/LegalForm.js +3 -3
- package/dist/cjs/types/Enum/LegalForm.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +3 -3
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridLegalstart.js +1 -1
- package/dist/cjs/types/Enum/PriceGridLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridPourcentage.js +12 -12
- package/dist/cjs/types/Enum/PriceGridPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/Room.d.ts +3 -0
- package/dist/cjs/types/Enum/Room.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Room.js +8 -0
- package/dist/cjs/types/Enum/Room.js.map +1 -0
- package/dist/cjs/types/Interface/api/contest/Create.d.ts +1 -1
- package/dist/cjs/types/Interface/api/contest/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/contest/Create.js +1 -1
- package/dist/cjs/types/Interface/api/contest/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/contest/Query.d.ts +3 -1
- package/dist/cjs/types/Interface/api/contest/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/contest/Query.js +9 -1
- package/dist/cjs/types/Interface/api/contest/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/customerSignature/Query.d.ts +20 -0
- package/dist/cjs/types/Interface/api/customerSignature/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/customerSignature/Query.js +120 -0
- package/dist/cjs/types/Interface/api/customerSignature/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/equipment/Query.d.ts +18 -0
- package/dist/cjs/types/Interface/api/equipment/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/equipment/Query.js +103 -0
- package/dist/cjs/types/Interface/api/equipment/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/equipment/StockAmount.d.ts +10 -0
- package/dist/cjs/types/Interface/api/equipment/StockAmount.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/equipment/StockAmount.js +3 -0
- package/dist/cjs/types/Interface/api/equipment/StockAmount.js.map +1 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/BulkUpdate.d.ts +5 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/BulkUpdate.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/BulkUpdate.js +23 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/BulkUpdate.js.map +1 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts +5 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.js +28 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.js.map +1 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/Query.d.ts +10 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/Query.js +61 -0
- package/dist/cjs/types/Interface/api/userRoomEquipment/Query.js.map +1 -0
- package/dist/cjs/types/Interface/models/ICustomerSignature.d.ts +7 -3
- package/dist/cjs/types/Interface/models/ICustomerSignature.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerSignature.js.map +1 -1
- package/dist/cjs/types/Interface/models/IEquipment.d.ts +19 -0
- package/dist/cjs/types/Interface/models/IEquipment.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IEquipment.js +3 -0
- package/dist/cjs/types/Interface/models/IEquipment.js.map +1 -0
- package/dist/cjs/types/Interface/models/IFile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IFile.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUserRoomEquipment.d.ts +20 -0
- package/dist/cjs/types/Interface/models/IUserRoomEquipment.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IUserRoomEquipment.js +3 -0
- package/dist/cjs/types/Interface/models/IUserRoomEquipment.js.map +1 -0
- package/dist/cjs/types/Interface/models/IVoteContest.d.ts +1 -1
- package/dist/cjs/types/Interface/models/IVoteContest.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IVoteContest.js.map +1 -1
- package/dist/cjs/types/index.d.ts +12 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +12 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/cjs/utils/index.d.ts.map +1 -1
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/stringUtils/clean.d.ts +1 -1
- package/dist/cjs/utils/stringUtils/clean.js +2 -2
- package/dist/cjs/utils/stringUtils/clean.js.map +1 -1
- package/dist/cjs/utils/subscription.d.ts +20 -0
- package/dist/cjs/utils/subscription.d.ts.map +1 -0
- package/dist/cjs/utils/subscription.js +104 -0
- package/dist/cjs/utils/subscription.js.map +1 -0
- package/dist/mjs/api/resources/CustomerSignature.d.ts +6 -0
- package/dist/mjs/api/resources/CustomerSignature.d.ts.map +1 -0
- package/dist/mjs/api/resources/CustomerSignature.js +7 -0
- package/dist/mjs/api/resources/CustomerSignature.js.map +1 -0
- package/dist/mjs/api/resources/Equipment.d.ts +23 -0
- package/dist/mjs/api/resources/Equipment.d.ts.map +1 -0
- package/dist/mjs/api/resources/Equipment.js +50 -0
- package/dist/mjs/api/resources/Equipment.js.map +1 -0
- package/dist/mjs/api/resources/Subscription.d.ts +2 -0
- package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/mjs/api/resources/Subscription.js +7 -1
- package/dist/mjs/api/resources/Subscription.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/BrandClementine.d.ts +1 -2
- package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +1 -2
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/BrandComptalib.d.ts +3 -3
- package/dist/mjs/types/Enum/BrandComptalib.js +3 -3
- package/dist/mjs/types/Enum/BrandComptalib.js.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.d.ts +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.d.ts +4 -4
- package/dist/mjs/types/Enum/BrandPourcentage.js +7 -7
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/BrandStatutsExpress.d.ts +1 -1
- package/dist/mjs/types/Enum/BrandStatutsExpress.js +2 -2
- package/dist/mjs/types/Enum/BrandStatutsExpress.js.map +1 -1
- package/dist/mjs/types/Enum/CustomerSignature.d.ts +2 -0
- package/dist/mjs/types/Enum/CustomerSignature.d.ts.map +1 -1
- package/dist/mjs/types/Enum/CustomerSignature.js +2 -0
- package/dist/mjs/types/Enum/CustomerSignature.js.map +1 -1
- package/dist/mjs/types/Enum/EntityType.d.ts +73 -19
- package/dist/mjs/types/Enum/EntityType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/EntityType.js +9 -1
- package/dist/mjs/types/Enum/EntityType.js.map +1 -1
- package/dist/mjs/types/Enum/EquipmentAvailability.d.ts +16 -0
- package/dist/mjs/types/Enum/EquipmentAvailability.d.ts.map +1 -0
- package/dist/mjs/types/Enum/EquipmentAvailability.js +21 -0
- package/dist/mjs/types/Enum/EquipmentAvailability.js.map +1 -0
- package/dist/mjs/types/Enum/EquipmentState.d.ts +19 -0
- package/dist/mjs/types/Enum/EquipmentState.d.ts.map +1 -0
- package/dist/mjs/types/Enum/EquipmentState.js +24 -0
- package/dist/mjs/types/Enum/EquipmentState.js.map +1 -0
- package/dist/mjs/types/Enum/EquipmentType.d.ts +48 -0
- package/dist/mjs/types/Enum/EquipmentType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/EquipmentType.js +61 -0
- package/dist/mjs/types/Enum/EquipmentType.js.map +1 -0
- package/dist/mjs/types/Enum/LegalForm.js +3 -3
- package/dist/mjs/types/Enum/LegalForm.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +3 -3
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridLegalstart.js +1 -1
- package/dist/mjs/types/Enum/PriceGridLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridPourcentage.js +12 -12
- package/dist/mjs/types/Enum/PriceGridPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/Room.d.ts +3 -0
- package/dist/mjs/types/Enum/Room.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Room.js +5 -0
- package/dist/mjs/types/Enum/Room.js.map +1 -0
- package/dist/mjs/types/Interface/api/contest/Create.d.ts +1 -1
- package/dist/mjs/types/Interface/api/contest/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/contest/Create.js +2 -2
- package/dist/mjs/types/Interface/api/contest/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/contest/Query.d.ts +3 -1
- package/dist/mjs/types/Interface/api/contest/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/contest/Query.js +12 -2
- package/dist/mjs/types/Interface/api/contest/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/customerSignature/Query.d.ts +20 -0
- package/dist/mjs/types/Interface/api/customerSignature/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/customerSignature/Query.js +133 -0
- package/dist/mjs/types/Interface/api/customerSignature/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/equipment/Query.d.ts +18 -0
- package/dist/mjs/types/Interface/api/equipment/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/equipment/Query.js +113 -0
- package/dist/mjs/types/Interface/api/equipment/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/equipment/StockAmount.d.ts +10 -0
- package/dist/mjs/types/Interface/api/equipment/StockAmount.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/equipment/StockAmount.js +2 -0
- package/dist/mjs/types/Interface/api/equipment/StockAmount.js.map +1 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/BulkUpdate.d.ts +5 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/BulkUpdate.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/BulkUpdate.js +20 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/BulkUpdate.js.map +1 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts +5 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.js +26 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.js.map +1 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/Query.d.ts +10 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/Query.js +64 -0
- package/dist/mjs/types/Interface/api/userRoomEquipment/Query.js.map +1 -0
- package/dist/mjs/types/Interface/models/ICustomerSignature.d.ts +7 -3
- package/dist/mjs/types/Interface/models/ICustomerSignature.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerSignature.js.map +1 -1
- package/dist/mjs/types/Interface/models/IEquipment.d.ts +19 -0
- package/dist/mjs/types/Interface/models/IEquipment.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IEquipment.js +2 -0
- package/dist/mjs/types/Interface/models/IEquipment.js.map +1 -0
- package/dist/mjs/types/Interface/models/IFile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IFile.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUserRoomEquipment.d.ts +20 -0
- package/dist/mjs/types/Interface/models/IUserRoomEquipment.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IUserRoomEquipment.js +2 -0
- package/dist/mjs/types/Interface/models/IUserRoomEquipment.js.map +1 -0
- package/dist/mjs/types/Interface/models/IVoteContest.d.ts +1 -1
- package/dist/mjs/types/Interface/models/IVoteContest.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IVoteContest.js.map +1 -1
- package/dist/mjs/types/index.d.ts +12 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +12 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/index.d.ts +1 -0
- package/dist/mjs/utils/index.d.ts.map +1 -1
- package/dist/mjs/utils/index.js +1 -0
- package/dist/mjs/utils/index.js.map +1 -1
- package/dist/mjs/utils/stringUtils/clean.d.ts +1 -1
- package/dist/mjs/utils/stringUtils/clean.js +2 -2
- package/dist/mjs/utils/stringUtils/clean.js.map +1 -1
- package/dist/mjs/utils/subscription.d.ts +20 -0
- package/dist/mjs/utils/subscription.d.ts.map +1 -0
- package/dist/mjs/utils/subscription.js +99 -0
- package/dist/mjs/utils/subscription.js.map +1 -0
- package/package.json +2 -2
- package/ts/api/resources/CustomerSignature.ts +8 -0
- package/ts/api/resources/Equipment.ts +63 -0
- package/ts/api/resources/Subscription.ts +9 -1
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/BrandClementine.ts +1 -2
- package/ts/types/Enum/BrandComptalib.ts +3 -3
- package/ts/types/Enum/BrandLegalstart.ts +1 -1
- package/ts/types/Enum/BrandPourcentage.ts +7 -7
- package/ts/types/Enum/BrandStatutsExpress.ts +2 -2
- package/ts/types/Enum/CustomerSignature.ts +3 -0
- package/ts/types/Enum/EntityType.ts +10 -2
- package/ts/types/Enum/EquipmentAvailability.ts +20 -0
- package/ts/types/Enum/EquipmentState.ts +23 -0
- package/ts/types/Enum/EquipmentType.ts +60 -0
- package/ts/types/Enum/LegalForm.ts +3 -3
- package/ts/types/Enum/PriceGridClementine.ts +3 -3
- package/ts/types/Enum/PriceGridLegalstart.ts +1 -1
- package/ts/types/Enum/PriceGridPourcentage.ts +12 -12
- package/ts/types/Enum/Room.ts +3 -0
- package/ts/types/Interface/api/contest/Create.ts +1 -1
- package/ts/types/Interface/api/contest/Query.ts +7 -1
- package/ts/types/Interface/api/customerSignature/Query.ts +89 -0
- package/ts/types/Interface/api/equipment/Query.ts +75 -0
- package/ts/types/Interface/api/equipment/StockAmount.ts +9 -0
- package/ts/types/Interface/api/userRoomEquipment/BulkUpdate.ts +9 -0
- package/ts/types/Interface/api/userRoomEquipment/CreateSignature.ts +12 -0
- package/ts/types/Interface/api/userRoomEquipment/Query.ts +40 -0
- package/ts/types/Interface/models/ICustomerSignature.ts +7 -3
- package/ts/types/Interface/models/IEquipment.ts +21 -0
- package/ts/types/Interface/models/IFile.ts +1 -1
- package/ts/types/Interface/models/IUserRoomEquipment.ts +22 -0
- package/ts/types/Interface/models/IVoteContest.ts +1 -1
- package/ts/types/index.ts +13 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/stringUtils/clean.ts +2 -2
- package/ts/utils/subscription.ts +130 -0
|
@@ -17,7 +17,7 @@ export const PriceGridPourcentage = [
|
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
id: ClosingType.OUTDATED,
|
|
20
|
-
month:
|
|
20
|
+
month: 12,
|
|
21
21
|
},
|
|
22
22
|
],
|
|
23
23
|
maximumMonthlyPayment: [
|
|
@@ -85,7 +85,7 @@ export const PriceGridPourcentage = [
|
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
id: ClosingType.OUTDATED,
|
|
88
|
-
month:
|
|
88
|
+
month: 12,
|
|
89
89
|
},
|
|
90
90
|
],
|
|
91
91
|
maximumMonthlyPayment: [
|
|
@@ -203,7 +203,7 @@ export const PriceGridPourcentage = [
|
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
id: ClosingType.OUTDATED,
|
|
206
|
-
month:
|
|
206
|
+
month: 12,
|
|
207
207
|
},
|
|
208
208
|
],
|
|
209
209
|
maximumMonthlyPayment: [
|
|
@@ -271,7 +271,7 @@ export const PriceGridPourcentage = [
|
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
id: ClosingType.OUTDATED,
|
|
274
|
-
month:
|
|
274
|
+
month: 12,
|
|
275
275
|
},
|
|
276
276
|
],
|
|
277
277
|
maximumMonthlyPayment: [
|
|
@@ -389,7 +389,7 @@ export const PriceGridPourcentage = [
|
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
391
|
id: ClosingType.OUTDATED,
|
|
392
|
-
month:
|
|
392
|
+
month: 12,
|
|
393
393
|
},
|
|
394
394
|
],
|
|
395
395
|
maximumMonthlyPayment: [
|
|
@@ -457,7 +457,7 @@ export const PriceGridPourcentage = [
|
|
|
457
457
|
},
|
|
458
458
|
{
|
|
459
459
|
id: ClosingType.OUTDATED,
|
|
460
|
-
month:
|
|
460
|
+
month: 12,
|
|
461
461
|
},
|
|
462
462
|
],
|
|
463
463
|
maximumMonthlyPayment: [
|
|
@@ -575,7 +575,7 @@ export const PriceGridPourcentage = [
|
|
|
575
575
|
},
|
|
576
576
|
{
|
|
577
577
|
id: ClosingType.OUTDATED,
|
|
578
|
-
month:
|
|
578
|
+
month: 12,
|
|
579
579
|
},
|
|
580
580
|
],
|
|
581
581
|
maximumMonthlyPayment: [
|
|
@@ -643,7 +643,7 @@ export const PriceGridPourcentage = [
|
|
|
643
643
|
},
|
|
644
644
|
{
|
|
645
645
|
id: ClosingType.OUTDATED,
|
|
646
|
-
month:
|
|
646
|
+
month: 12,
|
|
647
647
|
},
|
|
648
648
|
],
|
|
649
649
|
maximumMonthlyPayment: [
|
|
@@ -761,7 +761,7 @@ export const PriceGridPourcentage = [
|
|
|
761
761
|
},
|
|
762
762
|
{
|
|
763
763
|
id: ClosingType.OUTDATED,
|
|
764
|
-
month:
|
|
764
|
+
month: 12,
|
|
765
765
|
},
|
|
766
766
|
],
|
|
767
767
|
maximumMonthlyPayment: [
|
|
@@ -829,7 +829,7 @@ export const PriceGridPourcentage = [
|
|
|
829
829
|
},
|
|
830
830
|
{
|
|
831
831
|
id: ClosingType.OUTDATED,
|
|
832
|
-
month:
|
|
832
|
+
month: 12,
|
|
833
833
|
},
|
|
834
834
|
],
|
|
835
835
|
maximumMonthlyPayment: [
|
|
@@ -947,7 +947,7 @@ export const PriceGridPourcentage = [
|
|
|
947
947
|
},
|
|
948
948
|
{
|
|
949
949
|
id: ClosingType.OUTDATED,
|
|
950
|
-
month:
|
|
950
|
+
month: 12,
|
|
951
951
|
},
|
|
952
952
|
],
|
|
953
953
|
maximumMonthlyPayment: [
|
|
@@ -1015,7 +1015,7 @@ export const PriceGridPourcentage = [
|
|
|
1015
1015
|
},
|
|
1016
1016
|
{
|
|
1017
1017
|
id: ClosingType.OUTDATED,
|
|
1018
|
-
month:
|
|
1018
|
+
month: 12,
|
|
1019
1019
|
},
|
|
1020
1020
|
],
|
|
1021
1021
|
maximumMonthlyPayment: [
|
|
@@ -6,6 +6,12 @@ export class QueryFetchUserContest {
|
|
|
6
6
|
@ApiPropertyOptional()
|
|
7
7
|
search?: string;
|
|
8
8
|
|
|
9
|
+
@ApiPropertyOptional()
|
|
10
|
+
page?: number;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
limit?: number;
|
|
14
|
+
|
|
9
15
|
@ApiPropertyOptional()
|
|
10
16
|
orderBy?: string;
|
|
11
17
|
|
|
@@ -16,5 +22,5 @@ export class QueryFetchUserContest {
|
|
|
16
22
|
top?: boolean | null;
|
|
17
23
|
|
|
18
24
|
@ApiPropertyOptional()
|
|
19
|
-
|
|
25
|
+
idToPutFirst?: number;
|
|
20
26
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryCustomerSignature {
|
|
5
|
+
@ApiPropertyOptional()
|
|
6
|
+
@IsOptional()
|
|
7
|
+
@IsInt()
|
|
8
|
+
id?: number;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsInt()
|
|
13
|
+
idDemand?: number;
|
|
14
|
+
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsInt()
|
|
18
|
+
idFileFilesInfos?: number;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional()
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsString()
|
|
23
|
+
fileNameFilesInfos?: string;
|
|
24
|
+
|
|
25
|
+
@ApiPropertyOptional()
|
|
26
|
+
@IsOptional()
|
|
27
|
+
@IsString()
|
|
28
|
+
sha1FilesInfos?: string;
|
|
29
|
+
|
|
30
|
+
@ApiPropertyOptional()
|
|
31
|
+
@IsOptional()
|
|
32
|
+
@IsInt()
|
|
33
|
+
memberId?: number;
|
|
34
|
+
|
|
35
|
+
@ApiPropertyOptional()
|
|
36
|
+
@IsOptional()
|
|
37
|
+
@IsString()
|
|
38
|
+
tokenSigner?: string;
|
|
39
|
+
|
|
40
|
+
@ApiPropertyOptional()
|
|
41
|
+
@IsOptional()
|
|
42
|
+
@IsString()
|
|
43
|
+
mailSigner?: string;
|
|
44
|
+
|
|
45
|
+
@ApiPropertyOptional()
|
|
46
|
+
@IsOptional()
|
|
47
|
+
@IsString()
|
|
48
|
+
phoneSigner?: string;
|
|
49
|
+
|
|
50
|
+
@ApiPropertyOptional()
|
|
51
|
+
@IsOptional()
|
|
52
|
+
@IsInt()
|
|
53
|
+
idSendMethod?: number;
|
|
54
|
+
|
|
55
|
+
@ApiPropertyOptional()
|
|
56
|
+
@IsOptional()
|
|
57
|
+
@IsInt()
|
|
58
|
+
idStatusSignature?: number;
|
|
59
|
+
|
|
60
|
+
@ApiPropertyOptional()
|
|
61
|
+
@IsOptional()
|
|
62
|
+
@IsInt()
|
|
63
|
+
idPrestation?: number;
|
|
64
|
+
|
|
65
|
+
@ApiPropertyOptional()
|
|
66
|
+
@IsOptional()
|
|
67
|
+
@IsInt()
|
|
68
|
+
idUser?: number;
|
|
69
|
+
|
|
70
|
+
@ApiPropertyOptional()
|
|
71
|
+
@IsOptional()
|
|
72
|
+
@IsInt()
|
|
73
|
+
idCollaborater?: number;
|
|
74
|
+
|
|
75
|
+
@ApiPropertyOptional()
|
|
76
|
+
@IsOptional()
|
|
77
|
+
@IsInt()
|
|
78
|
+
idGedFile?: number;
|
|
79
|
+
|
|
80
|
+
@ApiPropertyOptional()
|
|
81
|
+
@IsOptional()
|
|
82
|
+
@IsDate()
|
|
83
|
+
dateSendPlaqToClient?: string;
|
|
84
|
+
|
|
85
|
+
@ApiPropertyOptional()
|
|
86
|
+
@IsOptional()
|
|
87
|
+
@IsString({ each: true })
|
|
88
|
+
includes?: string[];
|
|
89
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
4
|
+
|
|
5
|
+
export class QueryEquipment extends RequiredQueryPaginate {
|
|
6
|
+
@ApiPropertyOptional()
|
|
7
|
+
@IsOptional()
|
|
8
|
+
@IsInt()
|
|
9
|
+
id?: number;
|
|
10
|
+
|
|
11
|
+
@ApiPropertyOptional()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
@IsString()
|
|
14
|
+
search?: string;
|
|
15
|
+
|
|
16
|
+
@ApiPropertyOptional()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
@IsInt()
|
|
19
|
+
idUser?: number;
|
|
20
|
+
|
|
21
|
+
@ApiPropertyOptional()
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsInt()
|
|
24
|
+
equipmentState?: number;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional()
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@IsInt()
|
|
29
|
+
availability?: number;
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional()
|
|
32
|
+
@IsOptional()
|
|
33
|
+
@IsInt()
|
|
34
|
+
signatureStatus?: number;
|
|
35
|
+
|
|
36
|
+
@ApiPropertyOptional()
|
|
37
|
+
@IsOptional()
|
|
38
|
+
@IsString()
|
|
39
|
+
reference?: string | null;
|
|
40
|
+
|
|
41
|
+
@ApiPropertyOptional()
|
|
42
|
+
@IsOptional()
|
|
43
|
+
@IsString()
|
|
44
|
+
brand?: string;
|
|
45
|
+
|
|
46
|
+
@ApiPropertyOptional()
|
|
47
|
+
@IsOptional()
|
|
48
|
+
@IsInt()
|
|
49
|
+
type?: number;
|
|
50
|
+
|
|
51
|
+
@ApiPropertyOptional()
|
|
52
|
+
@IsOptional()
|
|
53
|
+
@IsString()
|
|
54
|
+
supplier?: string | null;
|
|
55
|
+
|
|
56
|
+
@ApiPropertyOptional()
|
|
57
|
+
@IsOptional()
|
|
58
|
+
@IsInt()
|
|
59
|
+
price?: number | null;
|
|
60
|
+
|
|
61
|
+
@ApiPropertyOptional()
|
|
62
|
+
@IsOptional()
|
|
63
|
+
@IsString()
|
|
64
|
+
comment?: string | null;
|
|
65
|
+
|
|
66
|
+
@ApiPropertyOptional()
|
|
67
|
+
@IsOptional()
|
|
68
|
+
@IsDate()
|
|
69
|
+
destroyedAt?: Date;
|
|
70
|
+
|
|
71
|
+
@ApiPropertyOptional()
|
|
72
|
+
@IsOptional()
|
|
73
|
+
@IsDate()
|
|
74
|
+
lostAt?: Date;
|
|
75
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IsArray } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
import { IUserRoomEquipment } from '../../models/IUserRoomEquipment';
|
|
4
|
+
|
|
5
|
+
export class BulkUpdateMovement {
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
@IsArray()
|
|
8
|
+
userRoomEquipments: IUserRoomEquipment[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IsInt } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class CreateYousignSignature {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsInt({ each: true })
|
|
7
|
+
idUserRoomEquipments: number[];
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsInt()
|
|
11
|
+
idUserToSign: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IsBoolean, IsDate, IsInt, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
|
+
|
|
5
|
+
export class QueryUserRoomEquipment {
|
|
6
|
+
@ApiPropertyOptional()
|
|
7
|
+
@IsOptional()
|
|
8
|
+
@IsInt()
|
|
9
|
+
id?: number;
|
|
10
|
+
|
|
11
|
+
@ApiPropertyOptional()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
@IsInt()
|
|
14
|
+
idEquipment?: number;
|
|
15
|
+
|
|
16
|
+
@ApiPropertyOptional()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
@IsInt()
|
|
19
|
+
idUser?: number;
|
|
20
|
+
|
|
21
|
+
@ApiPropertyOptional()
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsInt()
|
|
24
|
+
idRoom?: number;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional()
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@IsBoolean()
|
|
29
|
+
@ToBoolean()
|
|
30
|
+
isRemote?: boolean;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsDate()
|
|
35
|
+
inAt?: Date;
|
|
36
|
+
|
|
37
|
+
@ApiPropertyOptional()
|
|
38
|
+
@IsOptional()
|
|
39
|
+
outAt?: string | null;
|
|
40
|
+
}
|
|
@@ -2,22 +2,24 @@ import { IUser } from './IUser';
|
|
|
2
2
|
import { IStatusSignature } from './IStatusSignature';
|
|
3
3
|
import { IPrestation } from './IPrestation';
|
|
4
4
|
import { IGedFile } from './IGedFile';
|
|
5
|
+
import { IUserRoomEquipment } from './IUserRoomEquipment';
|
|
5
6
|
|
|
6
7
|
// customersSignatures
|
|
7
8
|
export interface ICustomerSignature {
|
|
8
9
|
id?: number;
|
|
9
|
-
idDemand
|
|
10
|
+
idDemand?: string;
|
|
10
11
|
idFileFilesInfos: string;
|
|
11
12
|
fileNameFilesInfos: string;
|
|
12
13
|
sha1FilesInfos?: string | null;
|
|
13
|
-
memberId
|
|
14
|
+
memberId?: string;
|
|
14
15
|
tokenSigner: string;
|
|
15
16
|
mailSigner: string;
|
|
16
17
|
phoneSigner: string;
|
|
17
18
|
idSendMethod: number;
|
|
18
19
|
idStatusSignature: number;
|
|
19
20
|
idPrestation?: number;
|
|
20
|
-
idUser
|
|
21
|
+
idUser?: number | null;
|
|
22
|
+
idCollaborater?: number | null;
|
|
21
23
|
idGedFile?: number;
|
|
22
24
|
dateSendPlaqToClient: Date | null;
|
|
23
25
|
createdAt?: Date | null;
|
|
@@ -25,7 +27,9 @@ export interface ICustomerSignature {
|
|
|
25
27
|
|
|
26
28
|
// Associations
|
|
27
29
|
user?: IUser;
|
|
30
|
+
collaborater?: IUser;
|
|
28
31
|
statusSignature?: IStatusSignature;
|
|
29
32
|
prestation?: IPrestation;
|
|
30
33
|
gedFile?: IGedFile;
|
|
34
|
+
userRoomEquipments?: IUserRoomEquipment[];
|
|
31
35
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EquipmentType } from '../../Enum/EquipmentType';
|
|
2
|
+
import { IUserRoomEquipment } from '././IUserRoomEquipment';
|
|
3
|
+
|
|
4
|
+
export interface IEquipment {
|
|
5
|
+
id?: number;
|
|
6
|
+
reference?: string | null;
|
|
7
|
+
brand: string;
|
|
8
|
+
type: EquipmentType;
|
|
9
|
+
supplier?: string | null;
|
|
10
|
+
price?: number | null;
|
|
11
|
+
comment?: string | null;
|
|
12
|
+
destroyedAt?: Date | null;
|
|
13
|
+
lostAt?: Date | null;
|
|
14
|
+
soldAt?: Date | null;
|
|
15
|
+
createdAt?: Date | null;
|
|
16
|
+
updatedAt?: Date | null;
|
|
17
|
+
deletedAt?: Date | null;
|
|
18
|
+
|
|
19
|
+
// Associations
|
|
20
|
+
userRoomEquipments?: IUserRoomEquipment[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ICustomerSignature, IUser } from '../..';
|
|
2
|
+
import { IEquipment } from './IEquipment';
|
|
3
|
+
|
|
4
|
+
export interface IUserRoomEquipment {
|
|
5
|
+
id?: number;
|
|
6
|
+
idEquipment: number;
|
|
7
|
+
idUser?: number | null;
|
|
8
|
+
idRoom?: number | null;
|
|
9
|
+
idCustomerSignature?: number | null;
|
|
10
|
+
idFile?: number | null;
|
|
11
|
+
isRemote?: boolean | null;
|
|
12
|
+
inAt?: Date | null;
|
|
13
|
+
outAt?: Date | null;
|
|
14
|
+
createdAt?: Date | null;
|
|
15
|
+
updatedAt?: Date | null;
|
|
16
|
+
deletedAt?: Date | null;
|
|
17
|
+
|
|
18
|
+
// Associations
|
|
19
|
+
equipment?: IEquipment;
|
|
20
|
+
user?: IUser
|
|
21
|
+
customerSignature?: ICustomerSignature;
|
|
22
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -322,6 +322,8 @@ export * from './Interface/models/ICardHistory';
|
|
|
322
322
|
export * from './Interface/models/IDubiousCustomer';
|
|
323
323
|
export * from './Interface/models/IUserContest';
|
|
324
324
|
export * from './Interface/models/IVoteContest';
|
|
325
|
+
export * from './Interface/models/IEquipment';
|
|
326
|
+
export * from './Interface/models/IUserRoomEquipment';
|
|
325
327
|
|
|
326
328
|
|
|
327
329
|
// Schemas
|
|
@@ -513,6 +515,10 @@ export * from './Enum/VatControl';
|
|
|
513
515
|
export * from './Enum/Cycle';
|
|
514
516
|
export * from './Enum/Card';
|
|
515
517
|
export * from './Enum/TimeTrackingSource';
|
|
518
|
+
export * from './Enum/EquipmentType';
|
|
519
|
+
export * from './Enum/Room';
|
|
520
|
+
export * from './Enum/EquipmentState';
|
|
521
|
+
export * from './Enum/EquipmentAvailability';
|
|
516
522
|
|
|
517
523
|
// Interfaces API
|
|
518
524
|
export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
|
|
@@ -1004,6 +1010,13 @@ export * from './Interface/api/IntermediateManagementRebate';
|
|
|
1004
1010
|
export * from './Interface/api/contest/Create';
|
|
1005
1011
|
export * from './Interface/api/contest/Query';
|
|
1006
1012
|
export * from './Interface/api/contest/Read';
|
|
1013
|
+
export * from './Interface/api/equipment/Query';
|
|
1014
|
+
export * from './Interface/api/userRoomEquipment/Query';
|
|
1015
|
+
export * from './Interface/api/equipment/StockAmount';
|
|
1016
|
+
export * from './Interface/api/userRoomEquipment/BulkUpdate';
|
|
1017
|
+
export * from './Interface/api/customerSignature/Query';
|
|
1018
|
+
export * from './Interface/api/userRoomEquipment/CreateSignature';
|
|
1019
|
+
|
|
1007
1020
|
// Enums types
|
|
1008
1021
|
export * from './Interface/enum/Util';
|
|
1009
1022
|
export * from './Interface/enum/Date';
|
package/ts/utils/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const wordsToExclude = ['cheque', 'prelevement', 'cheques', 'prelevements', 'prlvt', 'prlv', 'valeur', 'euro', 'solde', 'dont'];
|
|
2
|
-
export const minWordsForDesignation =
|
|
2
|
+
export const minWordsForDesignation = 2;
|
|
3
3
|
|
|
4
4
|
export function cleanForRules(string: string) : string {
|
|
5
5
|
return string
|
|
6
6
|
.toLowerCase()
|
|
7
7
|
.replace(/[^a-z0-9 ]/gi, '') // Conservation des espaces & caractères alphanumérique
|
|
8
8
|
.split(' ')
|
|
9
|
-
.filter((str) => str.length >= minWordsForDesignation && !wordsToExclude.includes(str)) // Suppression des mots à exclure et désignation inférieur à
|
|
9
|
+
.filter((str) => str.length >= minWordsForDesignation && !wordsToExclude.includes(str)) // Suppression des mots à exclure et désignation inférieur à minWordsForDesignation char
|
|
10
10
|
.join(' ')
|
|
11
11
|
.replace(/[^a-z]/gi, ''); // Conservation des caractères alphanumérique
|
|
12
12
|
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { ComptaType } from '../types/Enum/ComptaType';
|
|
2
|
+
import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
|
|
3
|
+
import { TaxSystem } from '../types/Enum/TaxSystem';
|
|
4
|
+
|
|
5
|
+
interface OfferParams {
|
|
6
|
+
idLegalForm: LegalFormTypeEnum | null;
|
|
7
|
+
idComptaType: ComptaType | null;
|
|
8
|
+
idTaxSystem: TaxSystem | null;
|
|
9
|
+
isYearly?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface StripeOffer {
|
|
13
|
+
name: string;
|
|
14
|
+
isYearly: boolean;
|
|
15
|
+
isMicro: boolean;
|
|
16
|
+
key: string;
|
|
17
|
+
isCashBased: boolean;
|
|
18
|
+
isSocietyTax?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const isTestKey: boolean = ['dev', 'staging', 'development', 'test'].includes(process.env.NODE_ENV ?? '');
|
|
22
|
+
|
|
23
|
+
// AE | Annuel | Forfait Bilan complet
|
|
24
|
+
const ID_SUBSCRIPTION_MICRO_ANNUAL = !isTestKey
|
|
25
|
+
? 'price_1MTiBJIHo1jEedppqXmN5hWm'
|
|
26
|
+
: 'price_1MRyi1IHo1jEedppRKdY06Re';
|
|
27
|
+
|
|
28
|
+
// AE | Mensuel | Forfait Bilan complet
|
|
29
|
+
const ID_SUBSCRIPTION_MICRO_MENSUAL = !isTestKey
|
|
30
|
+
? 'price_1LBJ4xIHo1jEedppylxr3fFa'
|
|
31
|
+
: 'price_1LBI57IHo1jEedpppnxskfgv';
|
|
32
|
+
|
|
33
|
+
// Entreprise | Annuel | Forfait entreprise à l'IR
|
|
34
|
+
const ID_SUBSCRIPTION_INCOME_TAX_ANNUAL = !isTestKey
|
|
35
|
+
? 'price_1MRvtdIHo1jEedppjwsDQVI3'
|
|
36
|
+
: 'price_1MRyiJIHo1jEedppUe7MnPtW';
|
|
37
|
+
|
|
38
|
+
// Entreprise | Mensuel | Forfaitentreprise à l'IR
|
|
39
|
+
const ID_SUBSCRIPTION_INCOME_TAX_MENSUAL = !isTestKey
|
|
40
|
+
? 'price_1LBJ5YIHo1jEedppzwTErh9M'
|
|
41
|
+
: 'price_1LBIA3IHo1jEedpp2taeQ7yW';
|
|
42
|
+
|
|
43
|
+
// Entreprise | Annuel | Forfait entreprise à l'IS
|
|
44
|
+
const ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL = !isTestKey
|
|
45
|
+
? 'price_1MRvuMIHo1jEedppeyccVLLl'
|
|
46
|
+
: 'price_1MRyiWIHo1jEedppp5tnksZe';
|
|
47
|
+
|
|
48
|
+
// Entreprise | Mensuel | Forfait entreprise à l'IS
|
|
49
|
+
const ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL = !isTestKey
|
|
50
|
+
? 'price_1LBJ69IHo1jEedppAWLeOk3I'
|
|
51
|
+
: 'price_1LBIB7IHo1jEedppocxyc1ft';
|
|
52
|
+
|
|
53
|
+
const list: StripeOffer[] = [
|
|
54
|
+
{
|
|
55
|
+
name: 'Offre auto-entrepreneur',
|
|
56
|
+
isYearly: true,
|
|
57
|
+
isMicro: true,
|
|
58
|
+
key: ID_SUBSCRIPTION_MICRO_ANNUAL,
|
|
59
|
+
isCashBased: true,
|
|
60
|
+
isSocietyTax: false,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'Offre auto-entrepreneur',
|
|
64
|
+
isYearly: false,
|
|
65
|
+
isMicro: true,
|
|
66
|
+
key: ID_SUBSCRIPTION_MICRO_MENSUAL,
|
|
67
|
+
isCashBased: true,
|
|
68
|
+
isSocietyTax: false,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Offre entreprise IS',
|
|
72
|
+
isYearly: true,
|
|
73
|
+
isMicro: false,
|
|
74
|
+
key: ID_SUBSCRIPTION_SOCIETY_TAX_ANNUAL,
|
|
75
|
+
isCashBased: false,
|
|
76
|
+
isSocietyTax: true,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'Offre entreprise IS',
|
|
80
|
+
isMicro: false,
|
|
81
|
+
isYearly: false,
|
|
82
|
+
key: ID_SUBSCRIPTION_SOCIETY_TAX_MENSUAL,
|
|
83
|
+
isCashBased: false,
|
|
84
|
+
isSocietyTax: true,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'Offre entreprise IR',
|
|
88
|
+
isMicro: false,
|
|
89
|
+
isYearly: true,
|
|
90
|
+
isCashBased: true,
|
|
91
|
+
isSocietyTax: false,
|
|
92
|
+
key: ID_SUBSCRIPTION_INCOME_TAX_ANNUAL,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Offre entreprise IR',
|
|
96
|
+
isMicro: false,
|
|
97
|
+
isYearly: false,
|
|
98
|
+
key: ID_SUBSCRIPTION_INCOME_TAX_MENSUAL,
|
|
99
|
+
isCashBased: true,
|
|
100
|
+
isSocietyTax: false,
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
|
|
104
|
+
export function getDefaultOffer(params: OfferParams): StripeOffer {
|
|
105
|
+
const { idLegalForm, idComptaType, isYearly, idTaxSystem } = params;
|
|
106
|
+
|
|
107
|
+
const isMicro = LegalFormTypeEnum.AUTO_ENTREPRENEUR === idLegalForm;
|
|
108
|
+
const isCashBased = idComptaType
|
|
109
|
+
? [
|
|
110
|
+
ComptaType.CASH_BASED,
|
|
111
|
+
ComptaType.CASH_BASED_ASSISTANCE,
|
|
112
|
+
ComptaType.CASH_BASED_SEIZURE,
|
|
113
|
+
].includes(idComptaType)
|
|
114
|
+
: false;
|
|
115
|
+
const isSocietyTax = idTaxSystem === TaxSystem.IS;
|
|
116
|
+
|
|
117
|
+
const newPlan = list.find(
|
|
118
|
+
(l) =>
|
|
119
|
+
l.isMicro === isMicro &&
|
|
120
|
+
l.isYearly === isYearly &&
|
|
121
|
+
l.isCashBased === isCashBased &&
|
|
122
|
+
l.isSocietyTax === isSocietyTax,
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
if (newPlan) {
|
|
126
|
+
return newPlan;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return isYearly ? list[2] : list[3];
|
|
130
|
+
}
|