@silexpert/core 1.3.29 → 1.3.30-1
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/Ai.d.ts +2 -2
- package/dist/cjs/api/resources/Ai.d.ts.map +1 -1
- package/dist/cjs/api/resources/Ai.js +2 -2
- package/dist/cjs/api/resources/Ai.js.map +1 -1
- package/dist/cjs/api/resources/AnalyticsUtm.d.ts +10 -0
- package/dist/cjs/api/resources/AnalyticsUtm.d.ts.map +1 -0
- package/dist/cjs/api/resources/AnalyticsUtm.js +16 -0
- package/dist/cjs/api/resources/AnalyticsUtm.js.map +1 -0
- package/dist/cjs/api/resources/PaymentExpectation.d.ts +16 -1
- package/dist/cjs/api/resources/PaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectation.js +20 -0
- package/dist/cjs/api/resources/PaymentExpectation.js.map +1 -1
- package/dist/cjs/api/resources/Subscription.d.ts +25 -4
- package/dist/cjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/cjs/api/resources/Subscription.js +34 -8
- package/dist/cjs/api/resources/Subscription.js.map +1 -1
- package/dist/cjs/api/resources/statistic/Legal.d.ts +11 -0
- package/dist/cjs/api/resources/statistic/Legal.d.ts.map +1 -0
- package/dist/cjs/api/resources/statistic/Legal.js +16 -0
- package/dist/cjs/api/resources/statistic/Legal.js.map +1 -0
- 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.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +16 -0
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/StatisticType.d.ts +2 -1
- package/dist/cjs/types/Enum/StatisticType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/StatisticType.js +1 -0
- package/dist/cjs/types/Enum/StatisticType.js.map +1 -1
- package/dist/cjs/types/Enum/TimeSlot.js +1 -1
- package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +1 -1
- package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js +1 -1
- package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
- package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts +6 -0
- package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.js +29 -1
- package/dist/cjs/types/Interface/api/ai/AskQuestionCollaborator.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2572.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2572.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2573.d.ts +1 -0
- package/dist/cjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2573.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +6 -2
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +5 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +0 -13
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js +3 -0
- package/dist/cjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js.map +1 -1
- package/dist/cjs/types/Interface/api/statistic/QueryInternal.d.ts +3 -0
- package/dist/cjs/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/statistic/QueryInternal.js +10 -1
- package/dist/cjs/types/Interface/api/statistic/QueryInternal.js.map +1 -1
- package/dist/cjs/types/Interface/api/statistic/QueryLegal.d.ts +6 -0
- package/dist/cjs/types/Interface/api/statistic/QueryLegal.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/statistic/QueryLegal.js +33 -0
- package/dist/cjs/types/Interface/api/statistic/QueryLegal.js.map +1 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +12 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +36 -3
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +3 -0
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +11 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/CreateCoworker.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/CreateCoworker.js +11 -7
- package/dist/cjs/types/Interface/api/user/CreateCoworker.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/Query.js +1 -0
- package/dist/cjs/types/Interface/api/user/Query.js.map +1 -1
- package/dist/cjs/types/Interface/models/IAIConversation.d.ts +11 -0
- package/dist/cjs/types/Interface/models/IAIConversation.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IAIConversation.js +3 -0
- package/dist/cjs/types/Interface/models/IAIConversation.js.map +1 -0
- package/dist/cjs/types/Interface/models/IAIQuestion.d.ts +5 -5
- package/dist/cjs/types/Interface/models/IAIQuestion.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IAIQuestion.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPrestationComplementary.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPrestationComplementary.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts +2 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/document.d.ts.map +1 -1
- package/dist/cjs/utils/commercialManagement/document.js +19 -18
- package/dist/cjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/templates/common.js +1 -1
- package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/dist/mjs/api/resources/Ai.d.ts +2 -2
- package/dist/mjs/api/resources/Ai.d.ts.map +1 -1
- package/dist/mjs/api/resources/Ai.js +2 -2
- package/dist/mjs/api/resources/Ai.js.map +1 -1
- package/dist/mjs/api/resources/AnalyticsUtm.d.ts +10 -0
- package/dist/mjs/api/resources/AnalyticsUtm.d.ts.map +1 -0
- package/dist/mjs/api/resources/AnalyticsUtm.js +12 -0
- package/dist/mjs/api/resources/AnalyticsUtm.js.map +1 -0
- package/dist/mjs/api/resources/PaymentExpectation.d.ts +16 -1
- package/dist/mjs/api/resources/PaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectation.js +20 -0
- package/dist/mjs/api/resources/PaymentExpectation.js.map +1 -1
- package/dist/mjs/api/resources/Subscription.d.ts +25 -4
- package/dist/mjs/api/resources/Subscription.d.ts.map +1 -1
- package/dist/mjs/api/resources/Subscription.js +34 -8
- package/dist/mjs/api/resources/Subscription.js.map +1 -1
- package/dist/mjs/api/resources/statistic/Legal.d.ts +11 -0
- package/dist/mjs/api/resources/statistic/Legal.d.ts.map +1 -0
- package/dist/mjs/api/resources/statistic/Legal.js +15 -0
- package/dist/mjs/api/resources/statistic/Legal.js.map +1 -0
- 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.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +16 -0
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/StatisticType.d.ts +2 -1
- package/dist/mjs/types/Enum/StatisticType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/StatisticType.js +1 -0
- package/dist/mjs/types/Enum/StatisticType.js.map +1 -1
- package/dist/mjs/types/Enum/TimeSlot.js +1 -1
- package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +2 -2
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +1 -1
- package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js +2 -2
- package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
- package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts +6 -0
- package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.js +33 -2
- package/dist/mjs/types/Interface/api/ai/AskQuestionCollaborator.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2572.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2572.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2573.d.ts +1 -0
- package/dist/mjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2573.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +6 -2
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +9 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +0 -13
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js +4 -1
- package/dist/mjs/types/Interface/api/promoCode/CreateDefaultPromoCode.js.map +1 -1
- package/dist/mjs/types/Interface/api/statistic/QueryInternal.d.ts +3 -0
- package/dist/mjs/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/statistic/QueryInternal.js +9 -0
- package/dist/mjs/types/Interface/api/statistic/QueryInternal.js.map +1 -1
- package/dist/mjs/types/Interface/api/statistic/QueryLegal.d.ts +6 -0
- package/dist/mjs/types/Interface/api/statistic/QueryLegal.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/statistic/QueryLegal.js +32 -0
- package/dist/mjs/types/Interface/api/statistic/QueryLegal.js.map +1 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +12 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +38 -3
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +3 -0
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +11 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/CreateCoworker.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/CreateCoworker.js +11 -7
- package/dist/mjs/types/Interface/api/user/CreateCoworker.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/Query.js +1 -0
- package/dist/mjs/types/Interface/api/user/Query.js.map +1 -1
- package/dist/mjs/types/Interface/models/IAIConversation.d.ts +11 -0
- package/dist/mjs/types/Interface/models/IAIConversation.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IAIConversation.js +2 -0
- package/dist/mjs/types/Interface/models/IAIConversation.js.map +1 -0
- package/dist/mjs/types/Interface/models/IAIQuestion.d.ts +5 -5
- package/dist/mjs/types/Interface/models/IAIQuestion.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IAIQuestion.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPrestationComplementary.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPrestationComplementary.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts +2 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/mjs/types/index.d.ts +2 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +2 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/document.d.ts.map +1 -1
- package/dist/mjs/utils/commercialManagement/document.js +3 -2
- package/dist/mjs/utils/commercialManagement/document.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/templates/common.js +1 -1
- package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Ai.ts +3 -3
- package/ts/api/resources/AnalyticsUtm.ts +12 -0
- package/ts/api/resources/PaymentExpectation.ts +27 -0
- package/ts/api/resources/Subscription.ts +41 -11
- package/ts/api/resources/statistic/Legal.ts +16 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/BrandClementine.ts +16 -0
- package/ts/types/Enum/StatisticType.ts +1 -0
- package/ts/types/Enum/TimeSlot.ts +1 -1
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +1 -1
- package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +1 -1
- package/ts/types/Interface/api/ai/AskQuestionCollaborator.ts +25 -2
- package/ts/types/Interface/api/cerfa/2031.ts +1 -0
- package/ts/types/Interface/api/cerfa/2035.ts +6 -1
- package/ts/types/Interface/api/cerfa/2065.ts +1 -0
- package/ts/types/Interface/api/cerfa/2069RCI.ts +1 -0
- package/ts/types/Interface/api/cerfa/2571.ts +1 -0
- package/ts/types/Interface/api/cerfa/2572.ts +1 -0
- package/ts/types/Interface/api/cerfa/2573.ts +1 -0
- package/ts/types/Interface/api/commercialManagement/Create.ts +8 -2
- package/ts/types/Interface/api/config/ConfigType.ts +0 -16
- package/ts/types/Interface/api/promoCode/CreateDefaultPromoCode.ts +4 -1
- package/ts/types/Interface/api/statistic/QueryInternal.ts +7 -0
- package/ts/types/Interface/api/statistic/QueryLegal.ts +16 -0
- package/ts/types/Interface/api/stripe/Create.ts +29 -4
- package/ts/types/Interface/api/stripe/QueryStripe.ts +8 -1
- package/ts/types/Interface/api/user/CreateCoworker.ts +11 -7
- package/ts/types/Interface/api/user/Query.ts +7 -6
- package/ts/types/Interface/models/IAIConversation.ts +13 -0
- package/ts/types/Interface/models/IAIQuestion.ts +5 -5
- package/ts/types/Interface/models/IPrestationComplementary.ts +2 -0
- package/ts/types/Interface/models/ISociety.ts +2 -0
- package/ts/types/index.ts +2 -0
- package/ts/utils/commercialManagement/document.ts +3 -2
- package/ts/utils/commercialManagement/templates/common.ts +1 -1
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BasePaginate,
|
|
3
3
|
CreatePaymentExpecation,
|
|
4
|
+
CreatePaymentIntent,
|
|
5
|
+
CreateSubscriptionSessionOff,
|
|
4
6
|
IPaymentExpectation,
|
|
5
7
|
QueryGetPaymentExpectation,
|
|
6
8
|
QueryGetPaymentExpectationPaginated,
|
|
9
|
+
RetrievePaymentMethodsParams,
|
|
7
10
|
} from '../../types';
|
|
8
11
|
import { Resource } from '../Resource';
|
|
12
|
+
import Stripe from 'stripe';
|
|
9
13
|
|
|
10
14
|
export class PaymentExpectation extends Resource {
|
|
11
15
|
get(params: QueryGetPaymentExpectation): Promise<PaymentExpectation> {
|
|
@@ -40,4 +44,27 @@ export class PaymentExpectation extends Resource {
|
|
|
40
44
|
updateByPrestation(idPrestation: number, payload: Partial<IPaymentExpectation>): Promise<IPaymentExpectation> {
|
|
41
45
|
return this.axios.$patch(`/prestations/${idPrestation}/payment-expectations`, payload);
|
|
42
46
|
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Retourne les type de paiements Stripe
|
|
50
|
+
*/
|
|
51
|
+
getAllPaymentMethods(params: RetrievePaymentMethodsParams): Promise<Stripe.PaymentMethod[]> {
|
|
52
|
+
return this.axios.$get('/stripe/payments/methods', { params });
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Créé une session Stripe avec les informations client
|
|
57
|
+
* Attention : les montants sont retournés x100
|
|
58
|
+
*/
|
|
59
|
+
createSessionOff(payload: CreateSubscriptionSessionOff): Promise<Stripe.Response<Stripe.Checkout.Session>> {
|
|
60
|
+
return this.axios.$post('/stripe/payments/sessions-off', payload);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Crée une intention de paiement Stripe avec les informations de notre client
|
|
65
|
+
* Attention : les montants sont retournés x100
|
|
66
|
+
*/
|
|
67
|
+
createStripePaymentIntent(body: CreatePaymentIntent): Promise<Stripe.Response<Stripe.PaymentIntent>> {
|
|
68
|
+
return this.axios.$post('/stripe/payments/intents', body);
|
|
69
|
+
}
|
|
43
70
|
}
|
|
@@ -3,27 +3,57 @@ import {
|
|
|
3
3
|
RetrieveUpcomingInvoiceParams,
|
|
4
4
|
ReadUpcomingInvoice,
|
|
5
5
|
QueryStripeSession,
|
|
6
|
+
CreateSubscriptionSession,
|
|
6
7
|
CreateStripePortals,
|
|
7
8
|
} from '../../types';
|
|
8
9
|
import Stripe from 'stripe';
|
|
9
10
|
|
|
10
11
|
export class Subscription extends Resource {
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Retourne les offres Stripe actives
|
|
14
|
+
* Attention : les montants sont retournés x100
|
|
15
|
+
*/
|
|
16
|
+
getAllOffers(): Promise<Stripe.Price[]> {
|
|
17
|
+
return this.axios.$get('/stripe/subscriptions/offers');
|
|
13
18
|
}
|
|
14
19
|
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Créé une session Stripe avec les informations client
|
|
22
|
+
* Attention : les montants sont retournés x100
|
|
23
|
+
*/
|
|
24
|
+
createSession(payload: CreateSubscriptionSession): Promise<Stripe.Response<Stripe.Checkout.Session>> {
|
|
25
|
+
return this.axios.$post('/stripe/subscriptions/sessions', payload);
|
|
17
26
|
}
|
|
18
27
|
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Créé un portail Stripe permettant de gérer l'abonnement
|
|
30
|
+
* Attention : les montants sont retournés x100
|
|
31
|
+
*/
|
|
32
|
+
createPortal(payload: CreateStripePortals): Promise<string> {
|
|
33
|
+
return this.axios.$post('/stripe/subscriptions/portals', payload);
|
|
21
34
|
}
|
|
22
35
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Retourne l'abonnement Stripe de la société courante
|
|
38
|
+
* Attention : les montants sont retournés x100
|
|
39
|
+
*/
|
|
40
|
+
get(): Promise<Stripe.Response<Stripe.Subscription> | null> {
|
|
41
|
+
return this.axios.$get('/stripe/subscriptions');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Retourne les informations de la prochaine facture Stripe
|
|
46
|
+
*/
|
|
47
|
+
retrieveUpcomingInvoice(params: RetrieveUpcomingInvoiceParams): Promise<ReadUpcomingInvoice> {
|
|
48
|
+
return this.axios.$get('/stripe/subscriptions/next-invoice', { params });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* -------------- */
|
|
52
|
+
|
|
53
|
+
createComptalibSession(
|
|
54
|
+
idSociety: number,
|
|
55
|
+
body: QueryStripeSession,
|
|
56
|
+
): Promise<Stripe.Response<Stripe.Checkout.Session>> {
|
|
57
|
+
return this.axios.$post(`/societies/${idSociety}/subscriptions/sessions`, body);
|
|
28
58
|
}
|
|
29
59
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Resource } from '../../Resource';
|
|
2
|
+
import { QueryLegal } from '../../../types';
|
|
3
|
+
|
|
4
|
+
export class StatisticLegal extends Resource {
|
|
5
|
+
/**
|
|
6
|
+
* Retourne les statistiques de juriste pour un utilisateur
|
|
7
|
+
* @param { QueryLegal } params
|
|
8
|
+
* @returns { JSON }
|
|
9
|
+
*/
|
|
10
|
+
public get(params: QueryLegal, signal?: AbortSignal): Promise<JSON> {
|
|
11
|
+
return this.axios.$get('/statistic-legal', {
|
|
12
|
+
...(signal ? { signal } : {}),
|
|
13
|
+
params,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -177,6 +177,8 @@ import { Follow } from './resources/Follow';
|
|
|
177
177
|
import { AbsenceRequest } from './resources/AbsenceRequest';
|
|
178
178
|
import { CompanyMarketingInformation } from './resources/CompanyMarketingInformation';
|
|
179
179
|
import { Ai } from './resources/Ai';
|
|
180
|
+
import { StatisticLegal } from './resources/statistic/Legal';
|
|
181
|
+
import { AnalyticsUtm } from './resources/AnalyticsUtm';
|
|
180
182
|
|
|
181
183
|
export const resources = {
|
|
182
184
|
budgetInsight: BudgetInsight,
|
|
@@ -358,4 +360,6 @@ export const resources = {
|
|
|
358
360
|
absenceRequest: AbsenceRequest,
|
|
359
361
|
companyMarketingInformation: CompanyMarketingInformation,
|
|
360
362
|
ai: Ai,
|
|
363
|
+
statisticLegal: StatisticLegal,
|
|
364
|
+
analyticsUtm: AnalyticsUtm,
|
|
361
365
|
};
|
|
@@ -266,6 +266,22 @@ export const BrandClementine: Brand[] = [
|
|
|
266
266
|
vatIntracom: 'FR47752566687',
|
|
267
267
|
email: 'facturation@clementine.fr',
|
|
268
268
|
},
|
|
269
|
+
companyInformation: {
|
|
270
|
+
ape: '6920Z',
|
|
271
|
+
bp: 'CS 31029',
|
|
272
|
+
city: 'LAXOU CEDEX',
|
|
273
|
+
montantCapital: '500 000',
|
|
274
|
+
nomRaisonSociale: 'EXPERTISE CHOIX B',
|
|
275
|
+
ECName: 'M. Jean-Louis BOICHÉ',
|
|
276
|
+
ECOrderCity: 'Nancy',
|
|
277
|
+
ECDepartment: 'Lorraine',
|
|
278
|
+
ECPosition: 'Président',
|
|
279
|
+
phone: '03 83 93 14 14',
|
|
280
|
+
postalAddress: '9 AVENUE DU RHIN',
|
|
281
|
+
rcs: '752 566 687',
|
|
282
|
+
statut: 'SAS',
|
|
283
|
+
zipCode: '54 521',
|
|
284
|
+
},
|
|
269
285
|
},
|
|
270
286
|
{
|
|
271
287
|
idTypeBrand: 6,
|
|
@@ -315,7 +315,7 @@ export const TimeSlotDetail: TimeSlotDetailType[] = [
|
|
|
315
315
|
internalName: 'Rdv droit des sociétés et multi-modifications',
|
|
316
316
|
category: TimeSlotCategoryDetail.find((c) => c.id === TimeSlotCategory.JURIDIC)?.name,
|
|
317
317
|
duration: 60,
|
|
318
|
-
idRole: [Role.JURIDIC
|
|
318
|
+
idRole: [Role.JURIDIC],
|
|
319
319
|
idRoleExcluded: [Role.DIRECTOR],
|
|
320
320
|
forWholeService: true,
|
|
321
321
|
idTimeCounterType: TimeCounterType.CALENDLY.id,
|
|
@@ -1,9 +1,32 @@
|
|
|
1
|
-
import { IsNotEmpty, IsString } from 'class-validator';
|
|
2
|
-
import { ApiProperty } from '../../../../utils';
|
|
1
|
+
import { IsArray, IsIn, IsInt, IsNotEmpty, IsOptional, IsString, ValidateNested } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class AskHistoryCollaborator {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsIn(['assistant', 'user'])
|
|
8
|
+
role: 'assistant' | 'user';
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsString()
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
content: string;
|
|
14
|
+
}
|
|
3
15
|
|
|
4
16
|
export class AskQuestionCollaborator {
|
|
5
17
|
@ApiProperty()
|
|
6
18
|
@IsString()
|
|
7
19
|
@IsNotEmpty()
|
|
8
20
|
question: string;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsArray()
|
|
25
|
+
@ValidateNested({ each: true })
|
|
26
|
+
history?: AskHistoryCollaborator[];
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsInt()
|
|
31
|
+
idConversation?: number;
|
|
9
32
|
}
|
|
@@ -52,7 +52,12 @@ export type FullCerfa2035_2025 = Cerfa2035_2025 & Cerfa2035WithSuites_2025;
|
|
|
52
52
|
|
|
53
53
|
export type AnyCerfa2035Century = FullCerfa2035 | FullCerfa2035_2024 | FullCerfa2035_2025;
|
|
54
54
|
|
|
55
|
-
export type Prepare2035Params = {
|
|
55
|
+
export type Prepare2035Params = {
|
|
56
|
+
idSociety: number;
|
|
57
|
+
idUser: number;
|
|
58
|
+
idExercice: number;
|
|
59
|
+
values: FullCerfa2035 | FullCerfa2035_2024;
|
|
60
|
+
};
|
|
56
61
|
|
|
57
62
|
export interface Cerfa2035ProfessionalRecipes {
|
|
58
63
|
collected: number;
|
|
@@ -331,7 +331,7 @@ export class CreateCommercialSetting {
|
|
|
331
331
|
@ApiPropertyOptional()
|
|
332
332
|
@IsOptional()
|
|
333
333
|
@IsString()
|
|
334
|
-
logoUrl?: string;
|
|
334
|
+
logoUrl?: string | null;
|
|
335
335
|
|
|
336
336
|
@ApiPropertyOptional()
|
|
337
337
|
@IsOptional()
|
|
@@ -457,7 +457,13 @@ export class CommercialDocumentInputs {
|
|
|
457
457
|
generalDiscount2: number | null;
|
|
458
458
|
|
|
459
459
|
@ApiProperty({ description: 'Indemnité forfaitaire' })
|
|
460
|
-
|
|
460
|
+
recoveryCost: string | null;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* @deprecated use recoveryCost instead (exists just for old mobile version)
|
|
464
|
+
*/
|
|
465
|
+
@ApiPropertyOptional({ description: 'Indemnité forfaitaire ' })
|
|
466
|
+
compensation?: string | null;
|
|
461
467
|
|
|
462
468
|
@ApiProperty()
|
|
463
469
|
vatMention: string | null;
|
|
@@ -13,9 +13,6 @@ export interface ConfigType {
|
|
|
13
13
|
comptaclementineTest: ComptaclementineTest;
|
|
14
14
|
bred: Bred;
|
|
15
15
|
awsClementine: AwsClementine;
|
|
16
|
-
stripe: Stripe;
|
|
17
|
-
stripeECB: StripeEcb;
|
|
18
|
-
stripeStatuts: StripeStatuts;
|
|
19
16
|
mail: Mail;
|
|
20
17
|
client: Client;
|
|
21
18
|
twilio: Twilio;
|
|
@@ -155,19 +152,6 @@ export interface AwsClementine {
|
|
|
155
152
|
apiVersion: string;
|
|
156
153
|
}
|
|
157
154
|
|
|
158
|
-
export interface Stripe {
|
|
159
|
-
secretKey: string;
|
|
160
|
-
secretKeyTestToDelete: string;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export interface StripeEcb {
|
|
164
|
-
secretKey: string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface StripeStatuts {
|
|
168
|
-
secretKey: string;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
155
|
export interface Mail {
|
|
172
156
|
user: string;
|
|
173
157
|
password: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsDate, IsJSON, IsString } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsDate, IsJSON, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiPropertyOptional, ApiProperty } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
@@ -8,10 +8,12 @@ export class CreateDefaultPromoCode {
|
|
|
8
8
|
label: string;
|
|
9
9
|
|
|
10
10
|
@ApiPropertyOptional()
|
|
11
|
+
@IsOptional()
|
|
11
12
|
@IsDate()
|
|
12
13
|
startDate?: Date | null;
|
|
13
14
|
|
|
14
15
|
@ApiPropertyOptional()
|
|
16
|
+
@IsOptional()
|
|
15
17
|
@IsDate()
|
|
16
18
|
endDate?: Date | null;
|
|
17
19
|
|
|
@@ -46,6 +48,7 @@ export class CreateDefaultPromoCode {
|
|
|
46
48
|
isTest: boolean;
|
|
47
49
|
|
|
48
50
|
@ApiPropertyOptional()
|
|
51
|
+
@IsOptional()
|
|
49
52
|
@IsJSON()
|
|
50
53
|
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
|
|
51
54
|
metadata?: any | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IsNumber, IsDate } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryLegal {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsNumber()
|
|
7
|
+
idUser: number;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsDate()
|
|
11
|
+
startDate: Date;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
@IsDate()
|
|
15
|
+
endDate: Date;
|
|
16
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsDate, IsOptional, IsString } from 'class-validator';
|
|
1
|
+
import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
|
|
4
4
|
export class CreateStripeConnection {
|
|
@@ -8,10 +8,9 @@ export class CreateStripeConnection {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export class CreateStripePortals {
|
|
11
|
-
@
|
|
11
|
+
@ApiProperty()
|
|
12
12
|
@IsString()
|
|
13
|
-
|
|
14
|
-
stripeCustomerId?: string;
|
|
13
|
+
stripeCustomerId: string;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
export class CreateImportTransactionForSociety {
|
|
@@ -25,3 +24,29 @@ export class CreateImportTransactionForSociety {
|
|
|
25
24
|
@IsOptional()
|
|
26
25
|
endDate?: Date;
|
|
27
26
|
}
|
|
27
|
+
|
|
28
|
+
export class CreateSubscriptionSession {
|
|
29
|
+
@ApiProperty()
|
|
30
|
+
@IsString()
|
|
31
|
+
priceId: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class CreateSubscriptionSessionOff {
|
|
35
|
+
@ApiProperty()
|
|
36
|
+
@IsString()
|
|
37
|
+
stripeCustomerId: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class CreatePaymentIntent {
|
|
41
|
+
@ApiProperty()
|
|
42
|
+
@IsString()
|
|
43
|
+
stripeCustomerId: string;
|
|
44
|
+
|
|
45
|
+
@ApiProperty()
|
|
46
|
+
@IsString()
|
|
47
|
+
paymentMethodId: string;
|
|
48
|
+
|
|
49
|
+
@ApiProperty()
|
|
50
|
+
@IsInt()
|
|
51
|
+
amountInCents: number;
|
|
52
|
+
}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import { IsBoolean, IsOptional } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
5
5
|
export class RetrieveUpcomingInvoiceParams {
|
|
6
6
|
@ApiProperty()
|
|
7
|
+
@IsString()
|
|
7
8
|
customerId: string;
|
|
8
9
|
|
|
9
10
|
@ApiProperty()
|
|
11
|
+
@IsString()
|
|
10
12
|
subscriptionId: string;
|
|
11
13
|
}
|
|
14
|
+
export class RetrievePaymentMethodsParams {
|
|
15
|
+
@ApiProperty()
|
|
16
|
+
@IsString()
|
|
17
|
+
customerId: string;
|
|
18
|
+
}
|
|
12
19
|
|
|
13
20
|
export class QueryStripeSession {
|
|
14
21
|
@ApiPropertyOptional()
|
|
@@ -52,16 +52,17 @@ export class CreateCoworker {
|
|
|
52
52
|
idCivility?: number;
|
|
53
53
|
|
|
54
54
|
@ApiProperty({ default: true })
|
|
55
|
-
@
|
|
55
|
+
@IsBoolean()
|
|
56
56
|
@ToBoolean()
|
|
57
57
|
active: boolean;
|
|
58
58
|
|
|
59
59
|
@ApiProperty({ default: false })
|
|
60
|
-
@
|
|
60
|
+
@IsBoolean()
|
|
61
61
|
@ToBoolean()
|
|
62
62
|
flexitime: boolean;
|
|
63
63
|
|
|
64
64
|
@ApiPropertyOptional({ default: true })
|
|
65
|
+
@IsOptional()
|
|
65
66
|
@IsBoolean()
|
|
66
67
|
@ToBoolean()
|
|
67
68
|
isThemeLight?: boolean;
|
|
@@ -79,6 +80,7 @@ export class CreateCoworker {
|
|
|
79
80
|
@ApiPropertyOptional()
|
|
80
81
|
@IsOptional()
|
|
81
82
|
@IsBoolean()
|
|
83
|
+
@ToBoolean()
|
|
82
84
|
apprentice?: boolean;
|
|
83
85
|
|
|
84
86
|
@ApiPropertyOptional()
|
|
@@ -106,20 +108,22 @@ export class CreateCoworker {
|
|
|
106
108
|
@IsEnum(EntityType)
|
|
107
109
|
entity: EntityType;
|
|
108
110
|
|
|
109
|
-
@
|
|
110
|
-
@
|
|
111
|
+
@ApiPropertyOptional()
|
|
112
|
+
@IsOptional()
|
|
111
113
|
@IsArray()
|
|
112
114
|
@IsInt({ each: true })
|
|
113
115
|
idRoles?: number[];
|
|
114
116
|
|
|
115
|
-
@
|
|
117
|
+
@ApiPropertyOptional()
|
|
118
|
+
@IsOptional()
|
|
116
119
|
@IsDefined()
|
|
117
120
|
@IsArray()
|
|
118
121
|
idTeams?: number[];
|
|
119
122
|
|
|
120
|
-
@
|
|
121
|
-
@
|
|
123
|
+
@ApiPropertyOptional()
|
|
124
|
+
@IsOptional()
|
|
122
125
|
@IsArray()
|
|
126
|
+
@IsInt({ each: true })
|
|
123
127
|
idUsersBrands?: number[];
|
|
124
128
|
|
|
125
129
|
@ApiPropertyOptional()
|
|
@@ -61,6 +61,7 @@ export class QueryGetAllFromSociety {
|
|
|
61
61
|
type: [Number],
|
|
62
62
|
example: [1, 13],
|
|
63
63
|
})
|
|
64
|
+
@IsArray()
|
|
64
65
|
roles: number[];
|
|
65
66
|
|
|
66
67
|
@ApiPropertyOptional()
|
|
@@ -90,13 +91,13 @@ export class GetSocietyFromUser {
|
|
|
90
91
|
@IsOptional()
|
|
91
92
|
@IsNumber()
|
|
92
93
|
idSubscriptionType?: SubscriptionType;
|
|
93
|
-
|
|
94
|
+
|
|
94
95
|
@ApiPropertyOptional()
|
|
95
96
|
@IsOptional()
|
|
96
97
|
@IsBoolean()
|
|
97
98
|
@ToBoolean()
|
|
98
99
|
displayArchived?: boolean;
|
|
99
|
-
|
|
100
|
+
|
|
100
101
|
@ApiPropertyOptional()
|
|
101
102
|
@IsOptional()
|
|
102
103
|
@IsBoolean()
|
|
@@ -105,17 +106,17 @@ export class GetSocietyFromUser {
|
|
|
105
106
|
|
|
106
107
|
@ApiPropertyOptional()
|
|
107
108
|
@IsOptional()
|
|
108
|
-
@IsString({each: true})
|
|
109
|
+
@IsString({ each: true })
|
|
109
110
|
attributes?: Extract<keyof ISociety, string>[];
|
|
110
111
|
|
|
111
|
-
@ApiPropertyOptional({
|
|
112
|
-
default: ['societyConfig','brandType','societyGescom','oldExpertInfo','activity','follows','compta','subscriptionType','connector','permissions']
|
|
112
|
+
@ApiPropertyOptional({
|
|
113
|
+
default: ['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions']
|
|
113
114
|
})
|
|
114
115
|
@IsOptional()
|
|
115
116
|
@IsString({
|
|
116
117
|
each: true,
|
|
117
118
|
})
|
|
118
|
-
@IsIn(['societyConfig','brandType','societyGescom','oldExpertInfo','activity','follows','compta','subscriptionType','connector','permissions','societyDetails'], { each: true })
|
|
119
|
+
@IsIn(['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions', 'societyDetails'], { each: true })
|
|
119
120
|
include?: string[];
|
|
120
121
|
|
|
121
122
|
@ApiPropertyOptional()
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IAIQuestion } from './IAIQuestion';
|
|
2
|
+
import { IUser } from './IUser';
|
|
3
|
+
|
|
4
|
+
export interface IAIConversation {
|
|
5
|
+
id: number;
|
|
6
|
+
idUser: number;
|
|
7
|
+
createdAt?: Date;
|
|
8
|
+
updatedAt?: Date;
|
|
9
|
+
|
|
10
|
+
// Associations
|
|
11
|
+
user?: IUser;
|
|
12
|
+
questions?: IAIQuestion[];
|
|
13
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAIConversation } from './IAIConversation';
|
|
2
2
|
|
|
3
3
|
export interface IAIQuestion {
|
|
4
4
|
id: number;
|
|
@@ -8,10 +8,10 @@ export interface IAIQuestion {
|
|
|
8
8
|
category: string;
|
|
9
9
|
subCategory: string;
|
|
10
10
|
totalTokens: number;
|
|
11
|
-
|
|
12
|
-
createdAt?: Date
|
|
13
|
-
updatedAt?: Date
|
|
11
|
+
idConversation: number | null; // Nullable for the first questions generated by the AI without conversation
|
|
12
|
+
createdAt?: Date;
|
|
13
|
+
updatedAt?: Date;
|
|
14
14
|
|
|
15
15
|
// Associations
|
|
16
|
-
|
|
16
|
+
conversation?: IAIConversation;
|
|
17
17
|
}
|
|
@@ -3,6 +3,7 @@ import { IPaymentExpectation } from './IPaymentExpectation';
|
|
|
3
3
|
import { IGedFile } from './IGedFile';
|
|
4
4
|
import { IPrestation } from './IPrestation';
|
|
5
5
|
import { AcceptationAdmin } from '../../Enum/AdditionnalSells';
|
|
6
|
+
import { IPrestationComplementaryHistory } from './IPrestationComplementaryHistory';
|
|
6
7
|
|
|
7
8
|
// prestationsCompl
|
|
8
9
|
export interface IPrestationComplementary {
|
|
@@ -33,4 +34,5 @@ export interface IPrestationComplementary {
|
|
|
33
34
|
prestationPaymentExpectation?: IPaymentExpectation;
|
|
34
35
|
prestationGedFile?: IGedFile;
|
|
35
36
|
prestation?: IPrestation;
|
|
37
|
+
prestationComplementaryHistory?: IPrestationComplementaryHistory[];
|
|
36
38
|
}
|
|
@@ -66,6 +66,7 @@ import {
|
|
|
66
66
|
ICalendarEvent,
|
|
67
67
|
IRegulation,
|
|
68
68
|
IGeneralConditionOfSale,
|
|
69
|
+
IConstitutionHistory,
|
|
69
70
|
} from '../..';
|
|
70
71
|
import { IBrandType } from './IBrandType';
|
|
71
72
|
import { IFile } from './IFile';
|
|
@@ -250,4 +251,5 @@ export interface ISociety {
|
|
|
250
251
|
accountingFiles?: IAccountingFile[];
|
|
251
252
|
businessSectors?: IBusinessSector[];
|
|
252
253
|
calendarEvents?: ICalendarEvent[];
|
|
254
|
+
constitutionHistories?: IConstitutionHistory[];
|
|
253
255
|
}
|