@silexpert/core 1.3.30-0 → 1.3.30-2
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/prestation.d.ts +3 -1
- package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/cjs/api/resources/prestation.js.map +1 -1
- package/dist/cjs/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/Feature.d.ts +38 -0
- package/dist/cjs/types/Enum/Feature.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Feature.js +61 -0
- package/dist/cjs/types/Enum/Feature.js.map +1 -0
- 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/StatusRating.d.ts.map +1 -1
- package/dist/cjs/types/Enum/StatusRating.js +1 -0
- package/dist/cjs/types/Enum/StatusRating.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/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/mobile/UpdateMobile.d.ts +5 -0
- package/dist/cjs/types/Interface/api/mobile/UpdateMobile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/mobile/UpdateMobile.js +33 -0
- package/dist/cjs/types/Interface/api/mobile/UpdateMobile.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 +8 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +27 -1
- 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 +9 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +1 -0
- package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +3 -2
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.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/IMobile.d.ts +5 -0
- package/dist/cjs/types/Interface/models/IMobile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IMobile.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 +3 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -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/body.js +1 -1
- package/dist/cjs/utils/commercialManagement/templates/body.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/prestation.d.ts +3 -1
- package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/mjs/api/resources/prestation.js.map +1 -1
- package/dist/mjs/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/Feature.d.ts +38 -0
- package/dist/mjs/types/Enum/Feature.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Feature.js +58 -0
- package/dist/mjs/types/Enum/Feature.js.map +1 -0
- 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/StatusRating.d.ts.map +1 -1
- package/dist/mjs/types/Enum/StatusRating.js +1 -0
- package/dist/mjs/types/Enum/StatusRating.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/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/mobile/UpdateMobile.d.ts +5 -0
- package/dist/mjs/types/Interface/api/mobile/UpdateMobile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/mobile/UpdateMobile.js +38 -0
- package/dist/mjs/types/Interface/api/mobile/UpdateMobile.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 +8 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +29 -1
- 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 +8 -0
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +1 -0
- package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js +1 -0
- package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +4 -3
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.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/IMobile.d.ts +5 -0
- package/dist/mjs/types/Interface/models/IMobile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IMobile.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 +3 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +3 -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/body.js +1 -1
- package/dist/mjs/utils/commercialManagement/templates/body.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/prestation.ts +1 -1
- package/ts/api/resources/statistic/Legal.ts +16 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/Feature.ts +62 -0
- package/ts/types/Enum/StatisticType.ts +1 -0
- package/ts/types/Enum/StatusRating.ts +1 -0
- 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/commercialManagement/Create.ts +8 -2
- package/ts/types/Interface/api/mobile/UpdateMobile.ts +28 -0
- 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 +21 -1
- package/ts/types/Interface/api/stripe/QueryStripe.ts +5 -0
- package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +1 -0
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -2
- package/ts/types/Interface/models/IAIConversation.ts +13 -0
- package/ts/types/Interface/models/IAIQuestion.ts +5 -5
- package/ts/types/Interface/models/IMobile.ts +5 -0
- package/ts/types/Interface/models/IPrestationComplementary.ts +2 -0
- package/ts/types/Interface/models/ISociety.ts +2 -0
- package/ts/types/index.ts +3 -0
- package/ts/utils/commercialManagement/document.ts +3 -2
- package/ts/utils/commercialManagement/templates/body.ts +1 -1
- package/ts/utils/commercialManagement/templates/common.ts +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export enum Feature {
|
|
2
|
+
// Tableau de bord
|
|
3
|
+
DASHBOARD = 'dashboard',
|
|
4
|
+
// Relevés bancaires / Espèces
|
|
5
|
+
BANK = 'bank',
|
|
6
|
+
// Liens de paiement
|
|
7
|
+
PAYMENT_LINK = 'payment_link',
|
|
8
|
+
// Recouvrement
|
|
9
|
+
PAYMENT_RECOVERY = 'payment_recovery',
|
|
10
|
+
// Juridique
|
|
11
|
+
JURIDIC = 'juridic',
|
|
12
|
+
|
|
13
|
+
/** ACHATS */
|
|
14
|
+
// Factures d'achat / Notes de frais / Fournisseurs
|
|
15
|
+
PURCHASE = 'purchase_invoice',
|
|
16
|
+
// Grand-Livre d'achat
|
|
17
|
+
PURCHASE_GENERAL_LEDGER = 'purchase_general_ledger',
|
|
18
|
+
|
|
19
|
+
/** Facturation */
|
|
20
|
+
// Factures, devis, brouillons, articles, clients, ticketsZ
|
|
21
|
+
SALE = 'sale',
|
|
22
|
+
// Grand-Livre de vente
|
|
23
|
+
SALE_GENERAL_LEDGER = 'sale_general_ledger',
|
|
24
|
+
|
|
25
|
+
/** Comptabilité */
|
|
26
|
+
// TVA
|
|
27
|
+
VAT = 'vat',
|
|
28
|
+
// DAS2
|
|
29
|
+
DAS2 = 'das2',
|
|
30
|
+
// Documents annexes
|
|
31
|
+
OTHER_REGISTRATION_DOCUMENTS = 'other_registration_documents',
|
|
32
|
+
// Bilan comptable - comptalib - ORI
|
|
33
|
+
BALANCESHEET_ACCOUNTANT = 'balancesheet_accountant',
|
|
34
|
+
// Bilan (version client - certifié par un Expert-Comptable)
|
|
35
|
+
BALANCESHEET_CUSTOMER = 'balancesheet_customer',
|
|
36
|
+
// Bilan (freemium)
|
|
37
|
+
BALANCESHEET_FREEMIUM = 'balancesheet_freemium',
|
|
38
|
+
|
|
39
|
+
/** Salariés */
|
|
40
|
+
// Salariés Freemium
|
|
41
|
+
SOCIAL_FREEMIUM = 'social_freemium',
|
|
42
|
+
// Salariés / Elements de paie
|
|
43
|
+
SOCIAL = 'social',
|
|
44
|
+
|
|
45
|
+
// Bibliothèque
|
|
46
|
+
LIBRARY = 'library',
|
|
47
|
+
// Expert-Comptable
|
|
48
|
+
EXPERT_ACCOUNTANT = 'expert_accountant',
|
|
49
|
+
|
|
50
|
+
/** Configuration */
|
|
51
|
+
SETTING = 'setting',
|
|
52
|
+
SETTING_INFORMATION = 'information',
|
|
53
|
+
SETTING_BANK = 'setting_bank',
|
|
54
|
+
SETTING_ANNOTATION = 'setting_annotation',
|
|
55
|
+
SETTING_PURCHASE = 'setting_purchase',
|
|
56
|
+
SETTING_SALE = 'setting_sale',
|
|
57
|
+
SETTING_CONNECTOR = 'setting_connector',
|
|
58
|
+
SETTING_ACCOUNTANCY_ACCOUNT = 'setting_accountancy_account',
|
|
59
|
+
SETTING_SUBSCRIPTION = 'setting_subscription',
|
|
60
|
+
SETTING_ACCESS = 'setting_access',
|
|
61
|
+
CUSTOMISATION = 'customisation',
|
|
62
|
+
}
|
|
@@ -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
|
}
|
|
@@ -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;
|
|
@@ -1,6 +1,34 @@
|
|
|
1
|
+
import { IsOptional, IsString } from 'class-validator';
|
|
1
2
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
2
3
|
|
|
3
4
|
export class UpdateMobileForm {
|
|
4
5
|
@ApiPropertyOptional()
|
|
6
|
+
@IsString()
|
|
7
|
+
@IsOptional()
|
|
5
8
|
token?: string;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsString()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
appVersion?: string;
|
|
14
|
+
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsString()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
appBuildNumber?: string;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional()
|
|
21
|
+
@IsString()
|
|
22
|
+
@IsOptional()
|
|
23
|
+
deviceBrand?: string;
|
|
24
|
+
|
|
25
|
+
@ApiPropertyOptional()
|
|
26
|
+
@IsString()
|
|
27
|
+
@IsOptional()
|
|
28
|
+
deviceSystemVersion?: string;
|
|
29
|
+
|
|
30
|
+
@ApiPropertyOptional()
|
|
31
|
+
@IsString()
|
|
32
|
+
@IsOptional()
|
|
33
|
+
deviceId?: string;
|
|
6
34
|
}
|
|
@@ -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 {
|
|
@@ -30,3 +30,23 @@ export class CreateSubscriptionSession {
|
|
|
30
30
|
@IsString()
|
|
31
31
|
priceId: string;
|
|
32
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
|
+
}
|
|
@@ -11,6 +11,11 @@ export class RetrieveUpcomingInvoiceParams {
|
|
|
11
11
|
@IsString()
|
|
12
12
|
subscriptionId: string;
|
|
13
13
|
}
|
|
14
|
+
export class RetrievePaymentMethodsParams {
|
|
15
|
+
@ApiProperty()
|
|
16
|
+
@IsString()
|
|
17
|
+
customerId: string;
|
|
18
|
+
}
|
|
14
19
|
|
|
15
20
|
export class QueryStripeSession {
|
|
16
21
|
@ApiPropertyOptional()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsDate, IsDateString, IsEnum,
|
|
1
|
+
import { IsDate, IsDateString, IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { CerfaType } from '../../../Enum/CerfaType';
|
|
3
3
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
|
|
4
4
|
|
|
@@ -55,7 +55,7 @@ export class QueryVatEntry {
|
|
|
55
55
|
|
|
56
56
|
// TODO: Passer le paramètre en requis une fois le front mis à jour
|
|
57
57
|
@ApiPropertyOptional()
|
|
58
|
-
@IsIn(Object.values(CerfaType))
|
|
58
|
+
// @IsIn(Object.values(CerfaType))
|
|
59
59
|
@IsOptional()
|
|
60
60
|
idCerfaType?: CerfaType;
|
|
61
61
|
}
|
|
@@ -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
|
}
|
|
@@ -5,6 +5,11 @@ export interface IMobile {
|
|
|
5
5
|
lastConnection: Date | null;
|
|
6
6
|
firstConnection: Date | null;
|
|
7
7
|
token: string | null;
|
|
8
|
+
appVersion: string | null;
|
|
9
|
+
appBuildNumber: string | null;
|
|
10
|
+
deviceBrand: string | null;
|
|
11
|
+
deviceSystemVersion: string | null;
|
|
12
|
+
deviceId: string | null;
|
|
8
13
|
idUser: number;
|
|
9
14
|
createdAt?: Date | null;
|
|
10
15
|
updatedAt?: Date | null;
|
|
@@ -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
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -325,6 +325,7 @@ export * from './Interface/models/IScheduledReminder';
|
|
|
325
325
|
export * from './Interface/models/IReminderAttachment';
|
|
326
326
|
export * from './Interface/models/IStateBankAccount';
|
|
327
327
|
export * from './Interface/models/IAIQuestion';
|
|
328
|
+
export * from './Interface/models/IAIConversation';
|
|
328
329
|
|
|
329
330
|
// Schemas
|
|
330
331
|
export * from './Interface/schemas/IRegistrationDetail';
|
|
@@ -335,6 +336,7 @@ export * from './Form/FormAuthenticate';
|
|
|
335
336
|
export * from './Form/FormConnector';
|
|
336
337
|
|
|
337
338
|
// Enums
|
|
339
|
+
export * from './Enum/Feature';
|
|
338
340
|
export * from './Enum/AutomaticRegistration';
|
|
339
341
|
export * from './Enum/IntermediateManagementRebate';
|
|
340
342
|
export * from './Enum/Das';
|
|
@@ -813,6 +815,7 @@ export * from './Interface/api/statistic/QueryGetExpertAccountant';
|
|
|
813
815
|
export * from './Interface/api/statistic/QueryAccountant';
|
|
814
816
|
export * from './Interface/api/statistic/QueryGetAccountant';
|
|
815
817
|
export * from './Interface/api/statistic/QueryDirection';
|
|
818
|
+
export * from './Interface/api/statistic/QueryLegal';
|
|
816
819
|
export * from './Interface/api/statistic/QueryInternal';
|
|
817
820
|
export * from './Interface/api/statistic/QueryGetDirection';
|
|
818
821
|
export * from './Interface/api/statistic/QueryCustomerSuccess';
|
|
@@ -73,6 +73,7 @@ export function generateCommercialDocument(
|
|
|
73
73
|
|
|
74
74
|
const accountingCategory = AccountingCategoryList.find((a) => a.id === payload.accountingCategory)?.label ?? null;
|
|
75
75
|
|
|
76
|
+
const recoveryCost = payload.recoveryCost ?? payload.compensation;
|
|
76
77
|
const data: ReadDocumentEditing & { brandColors: brandColorType; brandName: string; shouldHideBrandName: boolean } = {
|
|
77
78
|
...payload,
|
|
78
79
|
thirdParty,
|
|
@@ -85,8 +86,8 @@ export function generateCommercialDocument(
|
|
|
85
86
|
termsOfPayment: payload.termsOfPayment
|
|
86
87
|
? (internationalizationConsistency(locale, payload.termsOfPayment, 'termsOfPayment') ?? payload.termsOfPayment)
|
|
87
88
|
: null,
|
|
88
|
-
|
|
89
|
-
? (internationalizationConsistency(locale,
|
|
89
|
+
recoveryCost: recoveryCost
|
|
90
|
+
? (internationalizationConsistency(locale, recoveryCost, 'recoveryCost') ?? recoveryCost)
|
|
90
91
|
: null,
|
|
91
92
|
discount: payload.discount
|
|
92
93
|
? (internationalizationConsistency(locale, payload.discount, 'discount') ?? payload.discount)
|
|
@@ -82,7 +82,7 @@ export const bodyTemplate = `<html class="pdf-content">
|
|
|
82
82
|
<% if (disableVat !== true && vats.length) { %>
|
|
83
83
|
${commonTemplate.vatRecapitulation}
|
|
84
84
|
<% } %>
|
|
85
|
-
<% if (vatMention) { %><div class="vat-mention <%= disableVat !== true ? 'mt-20' : ''%>"><%= vatMention %></div><% } %>
|
|
85
|
+
<% if (vatMention && vatMention !== 'TVA: Non concerné') { %><div class="vat-mention <%= disableVat !== true ? 'mt-20' : ''%>"><%= vatMention %></div><% } %>
|
|
86
86
|
<% if (comment) { %>
|
|
87
87
|
<p class="mt-20"><%= languageTemplate.template.common.options.comment %> :<br/>
|
|
88
88
|
<%- comment %>
|
|
@@ -9,7 +9,7 @@ export class CommercialDocumentCommonHTML {
|
|
|
9
9
|
<% } %>`;
|
|
10
10
|
|
|
11
11
|
footer = `<div class="footer" style="font-size: 8px !important; color: #838384; text-align: center; padding: 0 40px; display: block; width: 100%;">
|
|
12
|
-
<% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %><%= languageTemplate.template.common.footer.marginVat %> - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %><%= languageTemplate.template.common.footer.legalVatMention %> | <% } %><% if(penalties ||
|
|
12
|
+
<% if (freeText) { %><%- freeText %><br/><br/><% } %><% if (accountingCategoryFormatted) {%><%= accountingCategoryFormatted %> | <%}%><% if(marginVats.length > 0) { %><%= languageTemplate.template.common.footer.marginVat %> - <% marginVats.forEach(function(v, index) { %><%= v %> - <% }) %><%= languageTemplate.template.common.footer.legalVatMention %> | <% } %><% if(penalties || recoveryCost || discount) { %><%= penalties ? languageTemplate.template.common.footer.penalties + ' : ' + penalties : ''%><%= penalties && recoveryCost ? ' | ' : ''%><%= recoveryCost ? languageTemplate.template.common.footer.recoveryCosts + ' : ' + recoveryCost + ' ' : '' %><%= (recoveryCost || penalties) && discount ? ' | ' : '' %><%= discount ? languageTemplate.template.common.footer.discount + ' : ' + discount : '' %><%= shouldPayTaxAfterDebit ? "| " + languageTemplate.template.common.footer.shouldPayTaxAfterDebit : '' %><% if(name || legalForm || capital || siren || rcs) {%><br/><br/><% } %><% } %><%= name %><%= name && (legalForm || capital || siren || rcs) ? ', ' : ''%><%= legalForm %><%= capital ? ' ' + languageTemplate.template.common.footer.capital + ' ' + capitalFormatted + ' €' : '' %><%= siren ? ' ' + languageTemplate.template.common.footer.siren + ' ' + siren : ''%><%= rcs ? '| RCS ' + rcs : ''%><% if (vatCode || nafCode) {%><br/><% } %><%= vatCode ? languageTemplate.template.common.footer.vatCode + ' ' +vatCode : ''%><% if(vatCode && nafCode){%>|<%}%><%= nafCode ? 'APE '+nafCode : '' %>
|
|
13
13
|
<% if (["Clementine", "Pourcentage", "Comptalib"].includes(brandName) && !shouldHideBrandName) { %>
|
|
14
14
|
<div style="display: grid; place-items: center;"><div style="background-color: <%= brandColors.primary50 %>; color: <%= brandColors.primary500 %>; display: flex; gap: 3px; max-width: fit-content; border-radius: 4px; padding: 4px 8px; margin-top: 8px; align-items: center; font-size: 9px; line-height: 140%; font-family: 'circular std', sans serif; font-weight: 450;">
|
|
15
15
|
<%= languageTemplate.template.common.footer.generate %>
|