@silexpert/core 1.3.115 → 1.3.118-1
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/AccountingFiles.d.ts.map +1 -1
- package/dist/cjs/api/resources/AccountingFiles.js +1 -0
- package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
- package/dist/cjs/api/resources/Inpi.d.ts +10 -4
- package/dist/cjs/api/resources/Inpi.d.ts.map +1 -1
- package/dist/cjs/api/resources/Inpi.js +14 -6
- package/dist/cjs/api/resources/Inpi.js.map +1 -1
- package/dist/cjs/api/resources/Revision.d.ts +4 -1
- package/dist/cjs/api/resources/Revision.d.ts.map +1 -1
- package/dist/cjs/api/resources/Revision.js +9 -0
- package/dist/cjs/api/resources/Revision.js.map +1 -1
- package/dist/cjs/types/Interface/api/inpi/inpi.d.ts +55 -0
- package/dist/cjs/types/Interface/api/inpi/inpi.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/inpi/inpi.js.map +1 -1
- package/dist/cjs/types/Interface/api/revision/Revision.d.ts +1 -1
- package/dist/cjs/types/Interface/api/revision/Revision.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revision/Revision.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century25.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3310/century25.js +10 -10
- package/dist/cjs/utils/vat/3310/century25.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century25.js +54 -54
- package/dist/cjs/utils/vat/3517/century25.js.map +1 -1
- package/dist/mjs/api/resources/AccountingFiles.d.ts.map +1 -1
- package/dist/mjs/api/resources/AccountingFiles.js +1 -0
- package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
- package/dist/mjs/api/resources/Inpi.d.ts +10 -4
- package/dist/mjs/api/resources/Inpi.d.ts.map +1 -1
- package/dist/mjs/api/resources/Inpi.js +14 -6
- package/dist/mjs/api/resources/Inpi.js.map +1 -1
- package/dist/mjs/api/resources/Revision.d.ts +4 -1
- package/dist/mjs/api/resources/Revision.d.ts.map +1 -1
- package/dist/mjs/api/resources/Revision.js +9 -0
- package/dist/mjs/api/resources/Revision.js.map +1 -1
- package/dist/mjs/types/Interface/api/inpi/inpi.d.ts +55 -0
- package/dist/mjs/types/Interface/api/inpi/inpi.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/inpi/inpi.js.map +1 -1
- package/dist/mjs/types/Interface/api/revision/Revision.d.ts +1 -1
- package/dist/mjs/types/Interface/api/revision/Revision.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revision/Revision.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century25.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3310/century25.js +10 -10
- package/dist/mjs/utils/vat/3310/century25.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century25.js +54 -54
- package/dist/mjs/utils/vat/3517/century25.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +1 -0
- package/ts/api/resources/Inpi.ts +15 -6
- package/ts/api/resources/Revision.ts +22 -0
- package/ts/types/Interface/api/inpi/inpi.ts +62 -0
- package/ts/types/Interface/api/revision/Revision.ts +1 -1
- package/ts/utils/vat/3310/century25.ts +10 -11
- package/ts/utils/vat/3517/century25.ts +54 -54
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.118-1",
|
|
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
|
"main": "dist/cjs/index.js",
|
package/ts/api/resources/Inpi.ts
CHANGED
|
@@ -100,17 +100,17 @@ export class Inpi extends Resource {
|
|
|
100
100
|
* @param { string } siren
|
|
101
101
|
* @returns { any }
|
|
102
102
|
*/
|
|
103
|
-
public
|
|
104
|
-
return this.axios.$get(`/inpi/companies/${
|
|
103
|
+
public getCompanyInfoBySiret(siret: string): Promise<any> {
|
|
104
|
+
return this.axios.$get(`/inpi/companies/${siret}`);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* Retourne la liste des documents (actes, bilans, bilans saisis) d'une société via son
|
|
109
|
-
* @param { string }
|
|
108
|
+
* Retourne la liste des documents (actes, bilans, bilans saisis) d'une société via son SIRET
|
|
109
|
+
* @param { string } siret
|
|
110
110
|
* @returns { any }
|
|
111
111
|
*/
|
|
112
|
-
public
|
|
113
|
-
return this.axios.$get(`/inpi/companies/${
|
|
112
|
+
public getDocumentsBySiret(siret: string): Promise<any> {
|
|
113
|
+
return this.axios.$get(`/inpi/companies/${siret}/documents`);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/**
|
|
@@ -139,4 +139,13 @@ export class Inpi extends Resource {
|
|
|
139
139
|
public downloadActePdf(id: string): Promise<Buffer> {
|
|
140
140
|
return this.axios.$get(`/inpi/companies/actes/${id}/download`, { responseType: 'arraybuffer' });
|
|
141
141
|
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Télécharge le PDF de la synthèse d'une société via son SIRET
|
|
145
|
+
* @param { string } siret
|
|
146
|
+
* @returns { Buffer }
|
|
147
|
+
*/
|
|
148
|
+
public downloadCompanySynthesis(siret: string): Promise<Buffer> {
|
|
149
|
+
return this.axios.$get(`/inpi/companies/${siret}/synthesis/download`, { responseType: 'arraybuffer' });
|
|
150
|
+
}
|
|
142
151
|
}
|
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
QueryRevisionMergeIntoThirdParty,
|
|
41
41
|
ReadRevisionMergeIntoThirdParty,
|
|
42
42
|
ProcessMissingAnnotation,
|
|
43
|
+
ThirdPartyType,
|
|
43
44
|
} from '../..';
|
|
44
45
|
|
|
45
46
|
export class Revision extends Resource {
|
|
@@ -130,6 +131,13 @@ export class Revision extends Resource {
|
|
|
130
131
|
return this.axios.$post(`/revisions/third-parties/${id}/approve`, params);
|
|
131
132
|
}
|
|
132
133
|
|
|
134
|
+
approveThirdPartyType(
|
|
135
|
+
idThirdPartyType: ThirdPartyType,
|
|
136
|
+
params: QueryRevisionApprobation,
|
|
137
|
+
): Promise<IAccountingTransaction[]> {
|
|
138
|
+
return this.axios.$post(`/revisions/third-parties-type/${idThirdPartyType}/approve`, params);
|
|
139
|
+
}
|
|
140
|
+
|
|
133
141
|
revise(idAccountingTransaction: number, idUser: number): Promise<{ data: IAccountingTransaction }> {
|
|
134
142
|
return this.axios.patch(`/transactions/${idAccountingTransaction}`, { dateVerified: new Date(), idUser });
|
|
135
143
|
}
|
|
@@ -142,6 +150,13 @@ export class Revision extends Resource {
|
|
|
142
150
|
return this.axios.$post(`/revisions/third-parties/${id}/comment`, params);
|
|
143
151
|
}
|
|
144
152
|
|
|
153
|
+
commentThirdPartyType(
|
|
154
|
+
idThirdPartyType: ThirdPartyType,
|
|
155
|
+
params: QueryRevisionAccountComment,
|
|
156
|
+
): Promise<IAccountDetail[]> {
|
|
157
|
+
return this.axios.$post(`/revisions/third-parties-type/${idThirdPartyType}/comment`, params);
|
|
158
|
+
}
|
|
159
|
+
|
|
145
160
|
updateControlFile(id: number, params: QueryRevisionAccountControlFile): Promise<IAccountDetail[]> {
|
|
146
161
|
return this.axios.$post(`/revisions/accounts/${id}/file`, params);
|
|
147
162
|
}
|
|
@@ -150,6 +165,13 @@ export class Revision extends Resource {
|
|
|
150
165
|
return this.axios.$post(`/revisions/third-parties/${id}/file`, params);
|
|
151
166
|
}
|
|
152
167
|
|
|
168
|
+
updateThirdPartyTypeControlFile(
|
|
169
|
+
idThirdPartyType: ThirdPartyType,
|
|
170
|
+
params: QueryRevisionAccountControlFile,
|
|
171
|
+
): Promise<IAccountDetail[]> {
|
|
172
|
+
return this.axios.$post(`/revisions/third-parties-type/${idThirdPartyType}/file`, params);
|
|
173
|
+
}
|
|
174
|
+
|
|
153
175
|
getAllGenericPendingPoints(params: QueryRevisionGenericPendingPoint): Promise<ICycle[]> {
|
|
154
176
|
return this.axios.$get('/supervisions/generic-pending-points', { params });
|
|
155
177
|
}
|
|
@@ -624,3 +624,65 @@ export interface RneUiDocument {
|
|
|
624
624
|
downloadUrl?: string;
|
|
625
625
|
nomDocument?: string;
|
|
626
626
|
}
|
|
627
|
+
|
|
628
|
+
export interface IBilanSaisi {
|
|
629
|
+
updatedAt: string;
|
|
630
|
+
siren: string;
|
|
631
|
+
denomination: string;
|
|
632
|
+
dateDepot: string;
|
|
633
|
+
numDepot: string;
|
|
634
|
+
confidentiality: string;
|
|
635
|
+
deleted: boolean;
|
|
636
|
+
id: string;
|
|
637
|
+
bilanSaisi: IBilanSaisiData;
|
|
638
|
+
dateCloture: string;
|
|
639
|
+
typeBilan: string;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
export interface IBilanSaisiData {
|
|
643
|
+
bilan: IBilan;
|
|
644
|
+
version: string;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
export interface IBilan {
|
|
648
|
+
identite: IIdentiteBilan;
|
|
649
|
+
detail: IDetailBilan;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export interface IIdentiteBilan {
|
|
653
|
+
siren: string;
|
|
654
|
+
dateClotureExercice: string;
|
|
655
|
+
codeGreffe: string;
|
|
656
|
+
numDepot: string;
|
|
657
|
+
numGestion: string;
|
|
658
|
+
codeActivite: string;
|
|
659
|
+
dateClotureExerciceNMoins1: string;
|
|
660
|
+
dureeExerciceN: string;
|
|
661
|
+
dureeExerciceNMoins1: string;
|
|
662
|
+
dateDepot: string;
|
|
663
|
+
codeSaisie: string;
|
|
664
|
+
codeTypeBilan: string;
|
|
665
|
+
codeDevise: string;
|
|
666
|
+
codeOrigineDevise: string;
|
|
667
|
+
codeConfidentialite: string;
|
|
668
|
+
infoTraitement: string;
|
|
669
|
+
denomination: string;
|
|
670
|
+
adresse: string;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export interface IDetailBilan {
|
|
674
|
+
pages: IPageBilan[];
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export interface IPageBilan {
|
|
678
|
+
numero: number;
|
|
679
|
+
liasses: ILiasseBilan[];
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
export interface ILiasseBilan {
|
|
683
|
+
code: string;
|
|
684
|
+
m1?: string;
|
|
685
|
+
m2?: string;
|
|
686
|
+
m3?: string;
|
|
687
|
+
m4?: string;
|
|
688
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAccountingEntry } from '../../models/IAccountingEntry';
|
|
2
2
|
|
|
3
|
-
export interface Revision extends IAccountingEntry {
|
|
3
|
+
export interface Revision extends Partial<IAccountingEntry> {
|
|
4
4
|
balance?: number | null;
|
|
5
5
|
balanceCredit?: number | null;
|
|
6
6
|
balanceDebit?: number | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
import * as dayjs from 'dayjs';
|
|
3
2
|
import { isDefined } from 'class-validator';
|
|
4
3
|
import { round as _round, flatten, uniqBy, maxBy } from 'lodash';
|
|
@@ -962,16 +961,6 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
962
961
|
{
|
|
963
962
|
name: '3310CA3',
|
|
964
963
|
fields: [
|
|
965
|
-
{
|
|
966
|
-
key: 'BA',
|
|
967
|
-
value: null,
|
|
968
|
-
isMultiple: false,
|
|
969
|
-
tags: [1, 2, 3, 4, 5].map((i) => ({
|
|
970
|
-
tag: `TexteLibre${i}` as 'TexteLibre1',
|
|
971
|
-
description: `FTX Commentaires type ${i}`,
|
|
972
|
-
value: textFormatting(comment, 512, 512 * (i - 1)) || null,
|
|
973
|
-
})),
|
|
974
|
-
},
|
|
975
964
|
{
|
|
976
965
|
key: 'BB',
|
|
977
966
|
tag: 'Valeur',
|
|
@@ -986,6 +975,16 @@ export function getCerfa3310Century25RegistrationFields(data: Cerfa3310_2025): A
|
|
|
986
975
|
description: 'CCITBX Mention expresse Table TBX avec X pour sélectionné, CCI/7037 = CAV/1131 =',
|
|
987
976
|
value: comment && comment?.length > 0 ? 'X' : null,
|
|
988
977
|
},
|
|
978
|
+
{
|
|
979
|
+
key: 'BA',
|
|
980
|
+
value: null,
|
|
981
|
+
isMultiple: false,
|
|
982
|
+
tags: [1, 2, 3, 4, 5].map((i) => ({
|
|
983
|
+
tag: `TexteLibre${i}` as 'TexteLibre1',
|
|
984
|
+
description: `FTX Commentaires type ${i}`,
|
|
985
|
+
value: textFormatting(comment, 512, 512 * (i - 1)) || null,
|
|
986
|
+
})),
|
|
987
|
+
},
|
|
989
988
|
{
|
|
990
989
|
key: 'BE',
|
|
991
990
|
tag: 'Valeur',
|