@silexpert/core 2.0.15 → 2.0.17

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 (55) hide show
  1. package/dist/api/resources/Inpi.d.ts +2 -1
  2. package/dist/api/resources/Inpi.d.ts.map +1 -1
  3. package/dist/api/resources/Inpi.js +3 -0
  4. package/dist/api/resources/Inpi.js.map +1 -1
  5. package/dist/types/Enum/BrandTeamsytemFacture.d.ts.map +1 -1
  6. package/dist/types/Enum/BrandTeamsytemFacture.js +16 -10
  7. package/dist/types/Enum/BrandTeamsytemFacture.js.map +1 -1
  8. package/dist/types/Enum/EntityType.d.ts +1 -1
  9. package/dist/types/Enum/EntityType.js +1 -1
  10. package/dist/types/Enum/EntityType.js.map +1 -1
  11. package/dist/types/Enum/PartneredAccountantServiceType.d.ts +3 -0
  12. package/dist/types/Enum/PartneredAccountantServiceType.d.ts.map +1 -1
  13. package/dist/types/Enum/PartneredAccountantServiceType.js +4 -0
  14. package/dist/types/Enum/PartneredAccountantServiceType.js.map +1 -1
  15. package/dist/types/Enum/Proceding.js +1 -1
  16. package/dist/types/Enum/Proceding.js.map +1 -1
  17. package/dist/types/Enum/RoleDetail.js +1 -1
  18. package/dist/types/Enum/RoleDetail.js.map +1 -1
  19. package/dist/types/Enum/UrgencyLevel.d.ts +6 -0
  20. package/dist/types/Enum/UrgencyLevel.d.ts.map +1 -0
  21. package/dist/types/Enum/UrgencyLevel.js +7 -0
  22. package/dist/types/Enum/UrgencyLevel.js.map +1 -0
  23. package/dist/types/Interface/api/user/RegisterProspect.d.ts +3 -0
  24. package/dist/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
  25. package/dist/types/Interface/api/user/RegisterProspect.js +8 -0
  26. package/dist/types/Interface/api/user/RegisterProspect.js.map +1 -1
  27. package/dist/types/Interface/models/IAccountingJournal.d.ts +1 -0
  28. package/dist/types/Interface/models/IAccountingJournal.d.ts.map +1 -1
  29. package/dist/types/Interface/models/IAccountingJournal.js +1 -0
  30. package/dist/types/Interface/models/IAccountingJournal.js.map +1 -1
  31. package/dist/types/Interface/models/IFollow.d.ts +1 -0
  32. package/dist/types/Interface/models/IFollow.d.ts.map +1 -1
  33. package/dist/types/Interface/models/IFollow.js +1 -0
  34. package/dist/types/Interface/models/IFollow.js.map +1 -1
  35. package/dist/types/Interface/models/IPartneredAccountantCredential.d.ts +12 -0
  36. package/dist/types/Interface/models/IPartneredAccountantCredential.d.ts.map +1 -0
  37. package/dist/types/Interface/models/IPartneredAccountantCredential.js +2 -0
  38. package/dist/types/Interface/models/IPartneredAccountantCredential.js.map +1 -0
  39. package/dist/types/index.d.ts +2 -0
  40. package/dist/types/index.d.ts.map +1 -1
  41. package/dist/types/index.js +2 -0
  42. package/dist/types/index.js.map +1 -1
  43. package/package.json +1 -1
  44. package/ts/api/resources/Inpi.ts +5 -0
  45. package/ts/types/Enum/BrandTeamsytemFacture.ts +16 -10
  46. package/ts/types/Enum/EntityType.ts +1 -1
  47. package/ts/types/Enum/PartneredAccountantServiceType.ts +4 -0
  48. package/ts/types/Enum/Proceding.ts +1 -1
  49. package/ts/types/Enum/RoleDetail.ts +1 -1
  50. package/ts/types/Enum/UrgencyLevel.ts +5 -0
  51. package/ts/types/Interface/api/user/RegisterProspect.ts +7 -0
  52. package/ts/types/Interface/models/IAccountingJournal.ts +2 -0
  53. package/ts/types/Interface/models/IFollow.ts +1 -0
  54. package/ts/types/Interface/models/IPartneredAccountantCredential.ts +12 -0
  55. package/ts/types/index.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "2.0.15",
3
+ "version": "2.0.17",
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",
@@ -9,6 +9,7 @@ import {
9
9
  QueryInpiPaymentPaginated,
10
10
  QueryInpiPaymentStatistic,
11
11
  QueryInpiPaymentCreate,
12
+ InpiResults,
12
13
  } from '../../types/index.js';
13
14
 
14
15
  export class Inpi extends Resource {
@@ -104,6 +105,10 @@ export class Inpi extends Resource {
104
105
  return this.axios.$get(`/inpi/companies/${siret}`);
105
106
  }
106
107
 
108
+ public getCompanyInfoByName(companyName: string): Promise<InpiResults> {
109
+ return this.axios.$get('/inpi/companies/name', { params: { companyName } });
110
+ }
111
+
107
112
  /**
108
113
  * Retourne la liste des documents (actes, bilans, bilans saisis) d'une société via son SIRET
109
114
  * @param { string } siret
@@ -18,12 +18,13 @@ export const BrandTeamsystemFacture: Brand[] = [
18
18
  },
19
19
  // TODO: à mettre à jour avec les bonnes informations de Teamsystem Facture
20
20
  listPhones: {
21
- contact: '01 86 90 92 80',
22
- qualite: '01 86 90 92 80',
23
- juridique: '01 86 90 92 80',
21
+ contact: '',
22
+ qualite: '',
23
+ juridique: '',
24
24
  },
25
25
  // TODO: à mettre à jour avec les bonnes informations de Teamsystem Facture
26
26
  listMails: {
27
+ recovery: 'recouvrement@teamsystemfacture.fr',
27
28
  administratif: 'help@teamsystemfacture.fr',
28
29
  app: 'help@teamsystemfacture.fr',
29
30
  bonjour: 'help@teamsystemfacture.fr',
@@ -42,19 +43,24 @@ export const BrandTeamsystemFacture: Brand[] = [
42
43
  tva: 'help@teamsystemfacture.fr',
43
44
  wb: 'help@teamsystemfacture.fr',
44
45
  },
45
- // TODO: à mettre à jour avec les bonnes informations de Teamsystem Facture
46
+ bank: {
47
+ IBAN: 'FR7616106010019601826952765',
48
+ BIC: 'AGRIFRPP861',
49
+ Name: 'TeamSystem Software',
50
+ Id: 'FR57ZZZ878E61',
51
+ },
46
52
  companyInformation: {
47
53
  ape: '6201Z',
48
54
  bp: '',
49
- city: 'Paris',
50
- montantCapital: '10 000',
51
- nomRaisonSociale: 'COMPTALIB',
55
+ city: 'Laxou',
56
+ montantCapital: '10 829.27',
57
+ nomRaisonSociale: 'TeamSystem Software',
52
58
  ECOrderCity: 'Nancy',
53
59
  phone: '01 86 90 92 80',
54
- postalAddress: '30, rue des Mathurins',
60
+ postalAddress: '9 Avenue du rhin',
55
61
  rcs: '808 070 726',
56
- statut: 'SAS',
57
- zipCode: '75 008',
62
+ statut: 'SASU',
63
+ zipCode: '54 520',
58
64
  },
59
65
  idPrestationsListAuthorized: [],
60
66
  logoUrl: 'logo-teamsystemfacture.svg',
@@ -23,7 +23,7 @@ export const EntityTypeDetail = [
23
23
  },
24
24
  {
25
25
  id: EntityType.COMPTALIB,
26
- name: 'SAS COMPTALIB',
26
+ name: 'SAS TEAMSYSTEM SOFTWARE',
27
27
  adress: '9 Avenue du Rhin',
28
28
  city: '54520 LAXOU',
29
29
  capital: '10 272 €',
@@ -49,3 +49,7 @@ export const PartneredAccountantServiceType: PartneredAccountantServiceTypeType
49
49
  imagePNG: 'Icon_9.png',
50
50
  },
51
51
  };
52
+
53
+ export enum PartneredAccountantPartneredIds {
54
+ ACD = 1,
55
+ }
@@ -13,7 +13,7 @@ export const Proceding = {
13
13
  },
14
14
  CONCILIATION_PROCEDURE: {
15
15
  id: 4,
16
- name: 'Procédure de conciliation',
16
+ name: 'Contentieux',
17
17
  },
18
18
  CONTINUATION_OF_THE_ACTIVITY: {
19
19
  id: 5,
@@ -201,7 +201,7 @@ export const RoleDetail = {
201
201
  name: 'Développeur',
202
202
  colorPrimary: '#8765D0',
203
203
  colorSecondary: '#DED7F6',
204
- isService: false,
204
+ isService: true,
205
205
  subRole: false,
206
206
  phoneNumber: '',
207
207
  phoneNumberPourcentage: '',
@@ -0,0 +1,5 @@
1
+ export enum UrgencyLevel {
2
+ URGENT = 1,
3
+ SOON = 2,
4
+ CONSIDERING = 3,
5
+ }
@@ -12,6 +12,7 @@ import {
12
12
  import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
13
13
  import { Activity } from '../../../Enum/Activity.js';
14
14
  import { Civility } from '../../../Enum/Civility.js';
15
+ import { UrgencyLevel } from '../../../Enum/UrgencyLevel.js';
15
16
  import { IAnalyticsUtm } from '../../models/IAnalyticsUtm.js';
16
17
  import { LegalFormTypeEnum } from '../../../Enum/LegalForm.js';
17
18
  import { UpdateOrCreateVisualizedInformation } from '../visualizedInformation/Update.js';
@@ -73,6 +74,7 @@ export interface RegisterProspect {
73
74
  permissions?: IPermission;
74
75
  analyticsUtm?: Omit<Partial<IAnalyticsUtm>, 'idSociety'>;
75
76
  comment?: string;
77
+ urgencyLevel?: UrgencyLevel | null;
76
78
  }
77
79
 
78
80
  class ProspectInfoBody implements ProspectInfo {
@@ -274,4 +276,9 @@ export class RegisterProspectBody implements RegisterProspect {
274
276
  @IsOptional()
275
277
  @IsString()
276
278
  ebookTag?: string;
279
+
280
+ @ApiPropertyOptional()
281
+ @IsOptional()
282
+ @IsEnum(UrgencyLevel)
283
+ urgencyLevel?: UrgencyLevel | null;
277
284
  }
@@ -6,4 +6,6 @@ export class IAccountingJournal {
6
6
  idAccountingJournalParent?: number;
7
7
  createdAt?: Date | null;
8
8
  updatedAt?: Date | null;
9
+
10
+ parentJournal?: IAccountingJournal;
9
11
  }
@@ -10,6 +10,7 @@ export class IFollow {
10
10
  idFollowList: number;
11
11
  idSociety: number;
12
12
  idQualificationLead?: number | null;
13
+ urgencyLevel?: number | null;
13
14
  createdAt?: Date | null;
14
15
  updatedAt?: Date | null;
15
16
  }
@@ -0,0 +1,12 @@
1
+ import { PartneredAccountantPartneredIds } from '#types/Enum/PartneredAccountantServiceType.js';
2
+
3
+ export interface IPartneredAccountantCredential {
4
+ id?: number;
5
+ login: string | null;
6
+ password: string | null;
7
+ link: string | null;
8
+ idPartnerSource: PartneredAccountantPartneredIds;
9
+ idPartneredAccountant: number;
10
+ createdAt?: Date | null;
11
+ updatedAt?: Date | null;
12
+ }
package/ts/types/index.ts CHANGED
@@ -19,6 +19,7 @@ export * from './Interface/models/IAccountsSocieties.js';
19
19
  export * from './Interface/models/IActivity.js';
20
20
  export * from './Interface/models/IAdditionalBalance.js';
21
21
  export * from './Interface/models/IAlert.js';
22
+ export * from './Interface/models/IPartneredAccountantCredential.js';
22
23
  export * from './Interface/models/IAccountCentury.js';
23
24
  export * from './Interface/models/IAllowedIp.js';
24
25
  export * from './Interface/models/IAnalyticsUtm.js';
@@ -582,6 +583,7 @@ export * from './Enum/InformationRequestState.js';
582
583
  export * from './Enum/Revenue.js';
583
584
  export * from './Enum/EbookIntention.js';
584
585
  export * from './Enum/UsersHistory.js';
586
+ export * from './Enum/UrgencyLevel.js';
585
587
 
586
588
  // Interfaces API
587
589
  export * from './Interface/api/acd/Create.js';