@silexpert/core 2.0.5 → 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.
Files changed (47) hide show
  1. package/dist/api/resources/Acd.d.ts +8 -0
  2. package/dist/api/resources/Acd.d.ts.map +1 -0
  3. package/dist/api/resources/Acd.js +7 -0
  4. package/dist/api/resources/Acd.js.map +1 -0
  5. package/dist/api/resources.d.ts +2 -0
  6. package/dist/api/resources.d.ts.map +1 -1
  7. package/dist/api/resources.js +2 -0
  8. package/dist/api/resources.js.map +1 -1
  9. package/dist/types/Enum/AIPrompt.js +2 -2
  10. package/dist/types/Enum/AIPrompt.js.map +1 -1
  11. package/dist/types/Enum/BrandPourcentage.js +11 -11
  12. package/dist/types/Enum/BrandPourcentage.js.map +1 -1
  13. package/dist/types/Enum/Brevo.d.ts +5 -4
  14. package/dist/types/Enum/Brevo.d.ts.map +1 -1
  15. package/dist/types/Enum/Brevo.js +5 -4
  16. package/dist/types/Enum/Brevo.js.map +1 -1
  17. package/dist/types/Enum/Feature.d.ts +1 -0
  18. package/dist/types/Enum/Feature.d.ts.map +1 -1
  19. package/dist/types/Enum/Feature.js +1 -0
  20. package/dist/types/Enum/Feature.js.map +1 -1
  21. package/dist/types/Enum/IntermediateManagementRebate.d.ts.map +1 -1
  22. package/dist/types/Enum/IntermediateManagementRebate.js +10 -1
  23. package/dist/types/Enum/IntermediateManagementRebate.js.map +1 -1
  24. package/dist/types/Interface/api/acd/Create.d.ts +6 -0
  25. package/dist/types/Interface/api/acd/Create.d.ts.map +1 -0
  26. package/dist/types/Interface/api/acd/Create.js +32 -0
  27. package/dist/types/Interface/api/acd/Create.js.map +1 -0
  28. package/dist/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +1 -0
  29. package/dist/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
  30. package/dist/types/Interface/api/taxDeadline/QueryTaxDeadline.js +8 -0
  31. package/dist/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
  32. package/dist/types/index.d.ts +1 -0
  33. package/dist/types/index.d.ts.map +1 -1
  34. package/dist/types/index.js +1 -0
  35. package/dist/types/index.js.map +1 -1
  36. package/package.json +1 -1
  37. package/ts/api/resources/Acd.ts +8 -0
  38. package/ts/api/resources.ts +2 -0
  39. package/ts/types/Enum/AIPrompt.ts +2 -2
  40. package/ts/types/Enum/BrandPourcentage.ts +11 -11
  41. package/ts/types/Enum/Brevo.ts +5 -4
  42. package/ts/types/Enum/Feature.ts +1 -0
  43. package/ts/types/Enum/IntermediateManagementRebate.ts +10 -1
  44. package/ts/types/Interface/api/acd/Create.ts +16 -0
  45. package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +6 -0
  46. package/ts/types/index.ts +1 -0
  47. 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.5",
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
+ }
@@ -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 (sans mettre de clé "transactions" devant) :
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: 'SASU',
95
- name: 'POURCENTAGE',
96
- address: '9, avenue du Rhin',
97
- zipCode: '54520',
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: '150 000',
101
- siret: '89150118100020',
100
+ montantCapital: '500 000',
101
+ siret: '75256668700063',
102
102
  ape: '6920Z',
103
- rcs: '891 501 181',
104
- phone: '01 86 90 82 15',
105
- vatIntracom: 'FR58891501181',
106
- email: 'facturation@pourcentage.fr',
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'],
@@ -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
- COMPTALIB_NEWSLETTER = 38,
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
- PROSPECT_CLEMENTINE = 237,
16
+ OB_VALIDATED = 390,
16
17
  }
@@ -1,6 +1,7 @@
1
1
  export enum Feature {
2
2
  // Tableau de bord
3
3
  DASHBOARD = 'dashboard',
4
+ TREASORY_STAT = 'treasury_stat',
4
5
  // Relevés bancaires / Espèces
5
6
  BANK = 'bank',
6
7
  SYNCHRONIZE_BANK_ACCOUNT = 'synchronize_bank_account',
@@ -34,7 +34,16 @@ export const IntermediateManagementRebateSegments: IMRSegment[] = [
34
34
  },
35
35
  {
36
36
  name: 'Achats consommés',
37
- accounts: ['60'],
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';
@@ -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
  }