@silexpert/core 2.0.104 → 2.0.106

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 (33) hide show
  1. package/README.md +3 -3
  2. package/dist/types/Enum/BalanceSheet.d.ts +4 -4
  3. package/dist/types/Enum/BalanceSheet.d.ts.map +1 -1
  4. package/dist/types/Enum/BalanceSheet.js +23 -4
  5. package/dist/types/Enum/BalanceSheet.js.map +1 -1
  6. package/dist/types/Enum/Phone.d.ts +234 -0
  7. package/dist/types/Enum/Phone.d.ts.map +1 -1
  8. package/dist/types/Enum/Phone.js +234 -0
  9. package/dist/types/Enum/Phone.js.map +1 -1
  10. package/dist/types/Interface/api/docoon/Create.d.ts +6 -9
  11. package/dist/types/Interface/api/docoon/Create.d.ts.map +1 -1
  12. package/dist/types/Interface/api/docoon/Create.js +27 -0
  13. package/dist/types/Interface/api/docoon/Create.js.map +1 -1
  14. package/dist/types/Interface/api/society/CreateTestSociety.d.ts +2 -2
  15. package/dist/types/Interface/api/society/CreateTestSociety.d.ts.map +1 -1
  16. package/dist/types/Interface/api/society/CreateTestSociety.js +9 -4
  17. package/dist/types/Interface/api/society/CreateTestSociety.js.map +1 -1
  18. package/dist/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.d.ts +4 -1
  19. package/dist/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.d.ts.map +1 -1
  20. package/dist/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.js +27 -0
  21. package/dist/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.js.map +1 -1
  22. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts +4 -1
  23. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts.map +1 -1
  24. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js +3 -0
  25. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js.map +1 -1
  26. package/package.json +19 -24
  27. package/ts/types/Enum/BalanceSheet.ts +23 -4
  28. package/ts/types/Enum/Phone.ts +234 -0
  29. package/ts/types/Interface/api/docoon/Create.ts +19 -9
  30. package/ts/types/Interface/api/society/CreateTestSociety.ts +10 -5
  31. package/ts/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.ts +22 -1
  32. package/ts/types/Interface/models/IEInvoicingKycAndMandate.ts +4 -1
  33. package/package-lock.json +0 -89
@@ -48,15 +48,6 @@ export type CreateStructure = CreateLegalEntityStructure & {
48
48
  parentStructureId: string;
49
49
  };
50
50
 
51
- export type RelaunchDirectoryLine = {
52
- directoryLineId: string;
53
- directoryLineInfo: {
54
- name: string;
55
- dateFrom: string;
56
- dateTo?: string | null;
57
- addressingIdentifier: string;
58
- };
59
- };
60
51
  export class ImportDocoonInvoice {
61
52
  @ApiPropertyOptional()
62
53
  @IsDateString()
@@ -107,3 +98,22 @@ export class AcceptEInvoice {
107
98
  @IsOptional()
108
99
  idThirdParty?: number;
109
100
  }
101
+
102
+ export class RelaunchDirectoryLine {
103
+ @ApiProperty()
104
+ @IsString()
105
+ directoryLineId: string;
106
+
107
+ @ApiProperty()
108
+ @IsString()
109
+ dateFrom: string;
110
+
111
+ @ApiPropertyOptional()
112
+ @IsString()
113
+ @IsOptional()
114
+ dateTo?: string;
115
+
116
+ @ApiProperty()
117
+ @IsString()
118
+ addressingIdentifier: string;
119
+ }
@@ -1,3 +1,4 @@
1
+ import { IsDateString, IsOptional } from 'class-validator';
1
2
  import { ApiPropertyOptional } from '@nestjs/swagger';
2
3
  import { ComptaType } from '../../../Enum/ComptaType.js';
3
4
  import { VatRegime } from '../../../Enum/VatRegime.js';
@@ -22,11 +23,15 @@ export class CreateTestSocietyPrestation {
22
23
  }
23
24
 
24
25
  export class CreateTestSocietyExercice {
25
- @ApiPropertyOptional()
26
- startDate?: Date;
27
-
28
- @ApiPropertyOptional()
29
- endDate?: Date;
26
+ @ApiPropertyOptional({ type: String, format: 'date' })
27
+ @IsOptional()
28
+ @IsDateString()
29
+ startDate?: string;
30
+
31
+ @ApiPropertyOptional({ type: String, format: 'date' })
32
+ @IsOptional()
33
+ @IsDateString()
34
+ endDate?: string;
30
35
 
31
36
  @ApiPropertyOptional({ type: [CreateTestSocietyPrestation] })
32
37
  prestations?: CreateTestSocietyPrestation[];
@@ -13,6 +13,27 @@ export class CreateSocietyCreationCheckoutCompany {
13
13
  @IsString()
14
14
  @Matches(/^\d{14}$/)
15
15
  siret?: string;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsString()
20
+ @IsNotEmpty()
21
+ @MaxLength(255)
22
+ name?: string;
23
+
24
+ @ApiPropertyOptional()
25
+ @IsOptional()
26
+ @IsString()
27
+ @IsNotEmpty()
28
+ @MaxLength(255)
29
+ legalForm?: string;
30
+
31
+ @ApiPropertyOptional()
32
+ @IsOptional()
33
+ @IsString()
34
+ @IsNotEmpty()
35
+ @MaxLength(255)
36
+ address?: string;
16
37
  }
17
38
 
18
39
  export class CreateSocietyCreationCheckout {
@@ -56,7 +77,7 @@ export interface SocietyCreationData {
56
77
  idUser: number;
57
78
  idTypeCompta: number;
58
79
  name: string;
59
- siret: string;
80
+ siret?: string;
60
81
  nafCode?: string;
61
82
  address?: string;
62
83
  addressComplement?: string;
@@ -1,5 +1,5 @@
1
1
  import { ISociety } from './ISociety.js';
2
- import { FinishProcess, IFile } from '../../index.js';
2
+ import { FinishProcess, IFile, ReadDocoonDirectoryLineFlowError } from '../../index.js';
3
3
 
4
4
  export class IEInvoicingKycAndMandate {
5
5
  id?: number;
@@ -14,6 +14,9 @@ export class IEInvoicingKycAndMandate {
14
14
  onboardingStatus?: string | null; // DRAFT | IN_PROGRESS | COMPLETED | REJECTED | ACTION_NEEDED | EXPIRED | CANCELLED
15
15
  sentToDocoon: boolean;
16
16
  docoonDirectoryLineId?: string | null; // id at docoon
17
+ docoonDirectoryLineStatus?: string | null; // ACTIVE | INACTIVE | PENDING | ERROR
18
+ docoonDirectoryLineStatusMessage?: string | null;
19
+ doccoonDirectoryLineStatusDetails?: ReadDocoonDirectoryLineFlowError | null;
17
20
  isCDAR: boolean;
18
21
  payloadRequest?: FinishProcess;
19
22
  payloadSignature?: FinishProcess;
package/package-lock.json DELETED
@@ -1,89 +0,0 @@
1
- {
2
- "name": "@silexpert/core",
3
- "version": "1.1.217",
4
- "lockfileVersion": 1,
5
- "requires": true,
6
- "dependencies": {
7
- "arg": {
8
- "version": "4.1.3",
9
- "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",
10
- "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
11
- "dev": true
12
- },
13
- "axios": {
14
- "version": "0.22.0",
15
- "requires": {
16
- "follow-redirects": "^1.14.4"
17
- }
18
- },
19
- "babel-plugin-replace-import-extension": {
20
- "version": "1.1.3",
21
- "resolved": "https://registry.npmjs.org/babel-plugin-replace-import-extension/-/babel-plugin-replace-import-extension-1.1.3.tgz",
22
- "integrity": "sha512-NmHOpGOLqSnZgefu/rmCviGIlp51WLGk8OY9CiQmp9qrpBy6jFVNvxIP4jR9WXZlNOPfBdGpuhPJe8upV4DTGw==",
23
- "dev": true
24
- },
25
- "buffer-from": {
26
- "version": "1.1.2",
27
- "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
28
- "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
29
- "dev": true
30
- },
31
- "create-require": {
32
- "version": "1.1.1",
33
- "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
34
- "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
35
- "dev": true
36
- },
37
- "diff": {
38
- "version": "4.0.2",
39
- "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",
40
- "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",
41
- "dev": true
42
- },
43
- "follow-redirects": {
44
- "version": "1.15.3",
45
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz",
46
- "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q=="
47
- },
48
- "make-error": {
49
- "version": "1.3.6",
50
- "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
51
- "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",
52
- "dev": true
53
- },
54
- "source-map": {
55
- "version": "0.6.1",
56
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
57
- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
58
- "dev": true
59
- },
60
- "source-map-support": {
61
- "version": "0.5.21",
62
- "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz",
63
- "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
64
- "dev": true,
65
- "requires": {
66
- "buffer-from": "^1.0.0",
67
- "source-map": "^0.6.0"
68
- }
69
- },
70
- "ts-node": {
71
- "version": "9.1.1",
72
- "dev": true,
73
- "requires": {
74
- "arg": "^4.1.0",
75
- "create-require": "^1.1.0",
76
- "diff": "^4.0.1",
77
- "make-error": "^1.1.1",
78
- "source-map-support": "^0.5.17",
79
- "yn": "3.1.1"
80
- }
81
- },
82
- "yn": {
83
- "version": "3.1.1",
84
- "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",
85
- "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",
86
- "dev": true
87
- }
88
- }
89
- }