@silexpert/core 2.0.4 → 2.0.6-exp-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/api/resources/Acd.d.ts +8 -0
- package/dist/api/resources/Acd.d.ts.map +1 -0
- package/dist/api/resources/Acd.js +7 -0
- package/dist/api/resources/Acd.js.map +1 -0
- package/dist/api/resources.d.ts +2 -0
- package/dist/api/resources.d.ts.map +1 -1
- package/dist/api/resources.js +2 -0
- package/dist/api/resources.js.map +1 -1
- package/dist/types/Enum/AIPrompt.js +2 -2
- package/dist/types/Enum/AIPrompt.js.map +1 -1
- package/dist/types/Enum/BrandPourcentage.js +11 -11
- package/dist/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/types/Enum/Brevo.d.ts +5 -4
- package/dist/types/Enum/Brevo.d.ts.map +1 -1
- package/dist/types/Enum/Brevo.js +5 -4
- package/dist/types/Enum/Brevo.js.map +1 -1
- package/dist/types/Enum/Feature.d.ts +1 -0
- package/dist/types/Enum/Feature.d.ts.map +1 -1
- package/dist/types/Enum/Feature.js +1 -0
- package/dist/types/Enum/Feature.js.map +1 -1
- package/dist/types/Enum/IntermediateManagementRebate.d.ts.map +1 -1
- package/dist/types/Enum/IntermediateManagementRebate.js +10 -1
- package/dist/types/Enum/IntermediateManagementRebate.js.map +1 -1
- package/dist/types/Interface/api/acd/Create.d.ts +6 -0
- package/dist/types/Interface/api/acd/Create.d.ts.map +1 -0
- package/dist/types/Interface/api/acd/Create.js +32 -0
- package/dist/types/Interface/api/acd/Create.js.map +1 -0
- package/dist/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +1 -0
- package/dist/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
- package/dist/types/Interface/api/taxDeadline/QueryTaxDeadline.js +8 -0
- package/dist/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/vat/3517/century26.d.ts.map +1 -1
- package/dist/utils/vat/3517/century26.js +9 -7
- package/dist/utils/vat/3517/century26.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Acd.ts +8 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/AIPrompt.ts +2 -2
- package/ts/types/Enum/BrandPourcentage.ts +11 -11
- package/ts/types/Enum/Brevo.ts +5 -4
- package/ts/types/Enum/Feature.ts +1 -0
- package/ts/types/Enum/IntermediateManagementRebate.ts +10 -1
- package/ts/types/Interface/api/acd/Create.ts +16 -0
- package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +6 -0
- package/ts/types/index.ts +1 -0
- package/ts/utils/vat/3517/century26.ts +10 -7
- package/tsconfig-base.json +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6-exp-2",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"type": "module",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CreateAcdAuthentication } from '../../index.js';
|
|
2
|
+
import { Resource } from '../Resource.js';
|
|
3
|
+
|
|
4
|
+
export class Acd extends Resource {
|
|
5
|
+
authenticate(body: CreateAcdAuthentication): Promise<{ token: string }> {
|
|
6
|
+
return this.axios.$post('/connectors/acd/authenticate', body);
|
|
7
|
+
}
|
|
8
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -191,6 +191,7 @@ import { AutomaticRegistration } from './resources/AutomaticRegistration.js';
|
|
|
191
191
|
import { LoginApproval } from './resources/LoginApproval.js';
|
|
192
192
|
import { SocietyApproval } from './resources/SocietyApproval.js';
|
|
193
193
|
import { Docoon } from './resources/Docoon.js';
|
|
194
|
+
import { Acd } from './resources/Acd.js';
|
|
194
195
|
|
|
195
196
|
export const resources = {
|
|
196
197
|
budgetInsight: BudgetInsight,
|
|
@@ -386,4 +387,5 @@ export const resources = {
|
|
|
386
387
|
loginApproval: LoginApproval,
|
|
387
388
|
societyApproval: SocietyApproval,
|
|
388
389
|
docoon: Docoon,
|
|
390
|
+
acd: Acd,
|
|
389
391
|
};
|
|
@@ -19,8 +19,8 @@ export const AIPrompt: Record<AIPromptKey, AIPromptInfo> = {
|
|
|
19
19
|
Analysez ce relevé de compte bancaire et extrayez toutes les transactions sous forme d'un objet JSON structuré.
|
|
20
20
|
Le relevé peut contenir des informations telles que la date de la transaction, le libellé, le montant débité et le montant crédité (ou alors un montant en positif pour le crédit et un montant en négatif pour le débit).
|
|
21
21
|
Garder exactement le même ordre de transaction que dans le relevé.
|
|
22
|
-
Le format attendu est le suivant
|
|
23
|
-
[
|
|
22
|
+
Le format attendu est le suivant:
|
|
23
|
+
transactions: [
|
|
24
24
|
{
|
|
25
25
|
"dateValue": string (format : YYYY-MM-DD correspondant à la date de la transaction),
|
|
26
26
|
"label": string | null (correspond à la description de la transaction, à conserver intacte sans modification, traduction ou altération),
|
|
@@ -91,19 +91,19 @@ export const BrandPourcentage: Brand[] = [
|
|
|
91
91
|
// cleRib: '80',
|
|
92
92
|
},
|
|
93
93
|
internalInvoicing: {
|
|
94
|
-
statut: '
|
|
95
|
-
name: '
|
|
96
|
-
address: '9
|
|
97
|
-
zipCode: '
|
|
98
|
-
city: 'LAXOU',
|
|
94
|
+
statut: 'SAS',
|
|
95
|
+
name: 'EXPERTISE CHOIX B',
|
|
96
|
+
address: '9 AVENUE DU RHIN',
|
|
97
|
+
zipCode: '54521',
|
|
98
|
+
city: 'LAXOU CEDEX',
|
|
99
99
|
country: 'FRANCE',
|
|
100
|
-
montantCapital: '
|
|
101
|
-
siret: '
|
|
100
|
+
montantCapital: '500 000',
|
|
101
|
+
siret: '75256668700063',
|
|
102
102
|
ape: '6920Z',
|
|
103
|
-
rcs: '
|
|
104
|
-
phone: '
|
|
105
|
-
vatIntracom: '
|
|
106
|
-
email: 'facturation@
|
|
103
|
+
rcs: '752 566 687',
|
|
104
|
+
phone: '03 83 93 14 14',
|
|
105
|
+
vatIntracom: 'FR47752566687',
|
|
106
|
+
email: 'facturation@clementine.fr',
|
|
107
107
|
},
|
|
108
108
|
webmail: {
|
|
109
109
|
domains: ['@pourcentage.fr', '@rlexpertise.fr', '@cabinetamex.com'],
|
package/ts/types/Enum/Brevo.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
export enum BrevoList {
|
|
2
|
+
ALL_CUSTOMERS_COMPTALIB = 18,
|
|
3
|
+
COMPTALIB_NEWSLETTER = 38,
|
|
4
|
+
CLEMENTINE_PROSPECT = 44,
|
|
2
5
|
ALL_CUSTOMERS = 211,
|
|
3
6
|
TERMINATIONS = 213,
|
|
4
7
|
JURIDICAL = 214,
|
|
5
8
|
ACCOUNTING = 215,
|
|
6
9
|
SOCIAL = 216,
|
|
7
10
|
NEWSLETTER = 218,
|
|
8
|
-
|
|
9
|
-
ALL_CUSTOMERS_COMPTALIB = 18,
|
|
10
|
-
CLEMENTINE_PROSPECT = 44,
|
|
11
|
+
PROSPECT_CLEMENTINE = 237,
|
|
11
12
|
QUOTE_RECEIVED = 300,
|
|
12
13
|
INITIAL_EXCHANGE = 301,
|
|
13
14
|
DOWNLOAD_WHITEPAPER = 302,
|
|
14
15
|
CALENDLY_PROSPECT = 303,
|
|
15
|
-
|
|
16
|
+
OB_VALIDATED = 390,
|
|
16
17
|
}
|
package/ts/types/Enum/Feature.ts
CHANGED
|
@@ -34,7 +34,16 @@ export const IntermediateManagementRebateSegments: IMRSegment[] = [
|
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
name: 'Achats consommés',
|
|
37
|
-
accounts: ['
|
|
37
|
+
accounts: ['601', '602', '604', '607'],
|
|
38
|
+
isNegative: true,
|
|
39
|
+
type: IntermediateManagementRebateType.BUY,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Marge de production',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'Autres consomables',
|
|
46
|
+
accounts: ['603', '605', '606', '608', '609'],
|
|
38
47
|
isNegative: true,
|
|
39
48
|
type: IntermediateManagementRebateType.BUY,
|
|
40
49
|
},
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
2
|
+
import { IsString } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class CreateAcdAuthentication {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsString()
|
|
7
|
+
uuid: string;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsString()
|
|
11
|
+
referer: string;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
@IsString()
|
|
15
|
+
cnx: string;
|
|
16
|
+
}
|
|
@@ -77,6 +77,12 @@ export class QueryTaxDeadline {
|
|
|
77
77
|
@IsOptional()
|
|
78
78
|
@IsBoolean()
|
|
79
79
|
isBack?: boolean;
|
|
80
|
+
|
|
81
|
+
@ApiPropertyOptional({ description: 'Filtrer uniquement les bilans de liquidation' })
|
|
82
|
+
@IsOptional()
|
|
83
|
+
@IsBoolean()
|
|
84
|
+
@ToBoolean()
|
|
85
|
+
isLiquidation?: boolean;
|
|
80
86
|
}
|
|
81
87
|
|
|
82
88
|
export class QueryTaxDeadlineStatistics {
|
package/ts/types/index.ts
CHANGED
|
@@ -580,6 +580,7 @@ export * from './Enum/Revenue.js';
|
|
|
580
580
|
export * from './Enum/EbookIntention.js';
|
|
581
581
|
|
|
582
582
|
// Interfaces API
|
|
583
|
+
export * from './Interface/api/acd/Create.js';
|
|
583
584
|
export * from './Interface/api/authentification/AuthenticationResponse.js';
|
|
584
585
|
export * from './Interface/api/exercice/ReadExercice.js';
|
|
585
586
|
export * from './Interface/api/authentification/AuthenticationResponse.js';
|
|
@@ -633,13 +633,6 @@ export function getCerfa3517Century26RegistrationField(data: Cerfa3517_2026): As
|
|
|
633
633
|
description: "Total de la taxe annuelle à l'essieu due (1a + 1b + 2a + 2b + 3) 910778 70A",
|
|
634
634
|
value: data.tax.onYearly,
|
|
635
635
|
},
|
|
636
|
-
{
|
|
637
|
-
key: 'BD',
|
|
638
|
-
isMultiple: false,
|
|
639
|
-
tag: 'Valeur',
|
|
640
|
-
description: 'Taxe annuelle sur les émissions de polluants atmosphériques des véhicules de tourisme',
|
|
641
|
-
value: data.tax.oldVehicle,
|
|
642
|
-
},
|
|
643
636
|
{
|
|
644
637
|
key: 'BG',
|
|
645
638
|
isMultiple: false,
|
|
@@ -1711,6 +1704,16 @@ export function getCerfa3517Century26RegistrationField(data: Cerfa3517_2026): As
|
|
|
1711
1704
|
});
|
|
1712
1705
|
}
|
|
1713
1706
|
|
|
1707
|
+
if (data.tax.oldVehicle && data.tax.oldVehicle > 0) {
|
|
1708
|
+
fields.push({
|
|
1709
|
+
key: 'BD',
|
|
1710
|
+
isMultiple: false,
|
|
1711
|
+
tag: 'Valeur',
|
|
1712
|
+
description: 'Taxe annuelle sur les émissions de polluants atmosphériques des véhicules de tourisme',
|
|
1713
|
+
value: data.tax.oldVehicle,
|
|
1714
|
+
});
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1714
1717
|
return [
|
|
1715
1718
|
{
|
|
1716
1719
|
name: '3517SCA12',
|
package/tsconfig-base.json
CHANGED
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
"declarationMap": true,
|
|
16
16
|
"skipLibCheck": true,
|
|
17
17
|
"moduleResolution": "NodeNext",
|
|
18
|
-
"outDir": "dist"
|
|
18
|
+
"outDir": "dist",
|
|
19
|
+
"rootDir": "ts"
|
|
19
20
|
},
|
|
20
21
|
"include": ["ts/**/*.ts"],
|
|
21
22
|
"exclude": ["dist"],
|
|
22
|
-
"compileOnSave": false
|
|
23
|
+
"compileOnSave": false,
|
|
23
24
|
}
|