@silexpert/core 1.0.185 → 1.0.187
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/es/api/resources/Invoice.d.ts +2 -0
- package/es/api/resources/Invoice.d.ts.map +1 -1
- package/es/api/resources/Invoice.js +6 -0
- package/es/api/resources/Invoice.js.map +1 -1
- package/es/api/resources/Report.d.ts +2 -1
- package/es/api/resources/Report.d.ts.map +1 -1
- package/es/api/resources/Report.js +3 -0
- package/es/api/resources/Report.js.map +1 -1
- package/es/types/Enum/BrandPourcentage.js +6 -6
- package/es/types/Enum/BrandPourcentage.js.map +1 -1
- package/es/types/Enum/NotificationType.d.ts +2 -1
- package/es/types/Enum/NotificationType.d.ts.map +1 -1
- package/es/types/Enum/NotificationType.js +6 -0
- package/es/types/Enum/NotificationType.js.map +1 -1
- package/es/types/Enum/PrestationType.d.ts +2 -1
- package/es/types/Enum/PrestationType.d.ts.map +1 -1
- package/es/types/Enum/PrestationType.js +18 -0
- package/es/types/Enum/PrestationType.js.map +1 -1
- package/es/types/Interface/api/report/QueryReportsForLetter.d.ts +5 -0
- package/es/types/Interface/api/report/QueryReportsForLetter.d.ts.map +1 -0
- package/es/types/Interface/api/report/QueryReportsForLetter.js +24 -0
- package/es/types/Interface/api/report/QueryReportsForLetter.js.map +1 -0
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -0
- package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/es/types/index.d.ts +1 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Invoice.js +6 -0
- package/js/api/resources/Invoice.js.map +1 -1
- package/js/api/resources/Report.js +7 -0
- package/js/api/resources/Report.js.map +1 -1
- package/js/types/Enum/BrandPourcentage.js +6 -6
- package/js/types/Enum/BrandPourcentage.js.map +1 -1
- package/js/types/Enum/NotificationType.js +6 -0
- package/js/types/Enum/NotificationType.js.map +1 -1
- package/js/types/Enum/PrestationType.js +18 -0
- package/js/types/Enum/PrestationType.js.map +1 -1
- package/js/types/Interface/api/report/QueryReportsForLetter.js +23 -0
- package/js/types/Interface/api/report/QueryReportsForLetter.js.map +1 -0
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -1
- package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/js/types/index.js +10 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Invoice.ts +8 -0
- package/ts/api/resources/Report.ts +4 -1
- package/ts/types/Enum/BrandPourcentage.ts +6 -6
- package/ts/types/Enum/NotificationType.ts +6 -0
- package/ts/types/Enum/PrestationType.ts +18 -0
- package/ts/types/Interface/api/report/QueryReportsForLetter.ts +12 -0
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -1
- package/ts/types/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.187",
|
|
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": "js/index.js",
|
|
@@ -29,6 +29,14 @@ export class Invoice extends Resource {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
getAccrualById(id: number): Promise<ReadAccrualInvoice> {
|
|
33
|
+
return this.axios.$get(`/commercial-management/invoices/${id}`);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
getCashBasedById(id: number): Promise<ReadCashBasedInvoice> {
|
|
37
|
+
return this.axios.$get(`/commercial-management/invoices/${id}`);
|
|
38
|
+
}
|
|
39
|
+
|
|
32
40
|
create(payload: CreateInvoiceDocument): Promise<IEstimateInvoice[]> {
|
|
33
41
|
return this.axios.$post('/commercial-management/invoices', payload);
|
|
34
42
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CancelToken } from 'axios';
|
|
2
2
|
import {
|
|
3
|
-
BasePaginate, CreateReport, DeleteReport, QueryPaginate, QueryReports, QueryReportsStats, ReadReport, ReadReportStats, UpdateReport,
|
|
3
|
+
BasePaginate, CreateReport, DeleteReport, IReport, QueryPaginate, QueryReports, QueryReportsForLetter, QueryReportsStats, ReadReport, ReadReportStats, UpdateReport,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
import { Resource } from '../Resource';
|
|
6
6
|
|
|
@@ -11,6 +11,9 @@ export class Report extends Resource {
|
|
|
11
11
|
getStats(params: QueryReportsStats, cancelToken?: CancelToken): Promise<ReadReportStats[]> {
|
|
12
12
|
return this.axios.$get('/reports/stats', { params, ...(cancelToken ? { cancelToken } : {}) });
|
|
13
13
|
}
|
|
14
|
+
getReportsForLetter(params: QueryReportsForLetter, cancelToken?: CancelToken): Promise<IReport[]> {
|
|
15
|
+
return this.axios.$get('/reports/letter', { params, ...(cancelToken ? { cancelToken } : {}) });
|
|
16
|
+
}
|
|
14
17
|
update(params: UpdateReport): Promise<[number, Report[]]> {
|
|
15
18
|
return this.axios.$put('/reports', params);
|
|
16
19
|
}
|
|
@@ -149,10 +149,10 @@ export const BrandPourcentage = [
|
|
|
149
149
|
urlExpert: 'https://pro.pourcentage.fr',
|
|
150
150
|
urlClient: 'https://www.pourcentage.fr',
|
|
151
151
|
bank: {
|
|
152
|
-
IBAN: '
|
|
153
|
-
BIC: '
|
|
152
|
+
IBAN: 'FR7616106010019601703611154',
|
|
153
|
+
BIC: 'AGRIFRPP861',
|
|
154
154
|
Name: 'SOFRAGECO',
|
|
155
|
-
Id: '
|
|
155
|
+
Id: '****',
|
|
156
156
|
},
|
|
157
157
|
internalInvoicing: {
|
|
158
158
|
statut: 'SAS',
|
|
@@ -236,10 +236,10 @@ export const BrandPourcentage = [
|
|
|
236
236
|
urlExpert: 'https://pro.pourcentage.fr',
|
|
237
237
|
urlClient: 'https://www.pourcentage.fr',
|
|
238
238
|
bank: {
|
|
239
|
-
IBAN: '
|
|
240
|
-
BIC: '
|
|
239
|
+
IBAN: 'FR7630087336510002008560147',
|
|
240
|
+
BIC: 'CMCIFRPP',
|
|
241
241
|
Name: 'AEC 54',
|
|
242
|
-
Id: '
|
|
242
|
+
Id: '***',
|
|
243
243
|
},
|
|
244
244
|
internalInvoicing: {
|
|
245
245
|
statut: 'SARL',
|
|
@@ -4,6 +4,7 @@ export enum NotificationTypeEnum {
|
|
|
4
4
|
INVOICE_HAS_BEEN_PAID = 3,
|
|
5
5
|
ESTIMATE_ALMOST_EXPIRED = 4,
|
|
6
6
|
INVOICE_ALMOST_EXPIRED = 5,
|
|
7
|
+
ORDER_ALMOST_EXPIRED = 6,
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export type NotificationTypeType = {
|
|
@@ -37,6 +38,11 @@ export const NotificationType: NotificationTypeTypeEnum = {
|
|
|
37
38
|
title: 'Un devis est bientôt expiré',
|
|
38
39
|
linkTitle: 'Consulter le devis',
|
|
39
40
|
},
|
|
41
|
+
ORDER_ALMOST_EXPIRED: {
|
|
42
|
+
id: NotificationTypeEnum.ORDER_ALMOST_EXPIRED,
|
|
43
|
+
title: 'Un bon de commande est bientôt expiré',
|
|
44
|
+
linkTitle: 'Consulter le bon de commande',
|
|
45
|
+
},
|
|
40
46
|
INVOICE_ALMOST_EXPIRED: {
|
|
41
47
|
id: NotificationTypeEnum.INVOICE_ALMOST_EXPIRED,
|
|
42
48
|
title: 'Une facture arrive à échéance',
|
|
@@ -165,6 +165,7 @@ export enum PrestationType {
|
|
|
165
165
|
COMPTA_POURCENTAGE_PREMIUM_EXPRESS = 208,
|
|
166
166
|
ANNONCE_LEGALE = 209,
|
|
167
167
|
FRAIS_DE_GREFFE = 210,
|
|
168
|
+
ASSURANCE_CONTROLE_FISCAL = 211,
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
export interface PrestationDetailEnum {
|
|
@@ -2960,4 +2961,21 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
2960
2961
|
signaturePage: 0,
|
|
2961
2962
|
point: 0,
|
|
2962
2963
|
},
|
|
2964
|
+
ASSURANCE_CONTROLE_FISCAL: {
|
|
2965
|
+
id: 211,
|
|
2966
|
+
name: 'Assurance contrôle fiscal',
|
|
2967
|
+
isComptable: true,
|
|
2968
|
+
isJuridique: false,
|
|
2969
|
+
isSocial: false,
|
|
2970
|
+
isAttestation: false,
|
|
2971
|
+
inAverageCart: true,
|
|
2972
|
+
isBack: false,
|
|
2973
|
+
price: 299,
|
|
2974
|
+
isCatalog: false,
|
|
2975
|
+
hidden: false,
|
|
2976
|
+
isComplementary: false,
|
|
2977
|
+
signaturePosition: '',
|
|
2978
|
+
signaturePage: 5,
|
|
2979
|
+
point: 0,
|
|
2980
|
+
},
|
|
2963
2981
|
};
|
package/ts/types/index.ts
CHANGED
|
@@ -668,6 +668,7 @@ export * from './Interface/api/report/CreateReport';
|
|
|
668
668
|
export * from './Interface/api/report/DeleteReport';
|
|
669
669
|
export * from './Interface/api/report/QueryReports';
|
|
670
670
|
export * from './Interface/api/report/QueryReportsStats';
|
|
671
|
+
export * from './Interface/api/report/QueryReportsForLetter';
|
|
671
672
|
export * from './Interface/api/letter/CreateLetter';
|
|
672
673
|
export * from './Interface/api/mailInvoice/CreateInvoiceMail';
|
|
673
674
|
export * from './Interface/api/mailInvoice/UpdateInvoiceMail';
|