@silexpert/core 1.0.186 → 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.
Files changed (48) hide show
  1. package/es/api/resources/Invoice.d.ts +2 -0
  2. package/es/api/resources/Invoice.d.ts.map +1 -1
  3. package/es/api/resources/Invoice.js +6 -0
  4. package/es/api/resources/Invoice.js.map +1 -1
  5. package/es/api/resources/Report.d.ts +2 -1
  6. package/es/api/resources/Report.d.ts.map +1 -1
  7. package/es/api/resources/Report.js +3 -0
  8. package/es/api/resources/Report.js.map +1 -1
  9. package/es/types/Enum/BrandPourcentage.js +6 -6
  10. package/es/types/Enum/BrandPourcentage.js.map +1 -1
  11. package/es/types/Enum/PrestationType.d.ts +2 -1
  12. package/es/types/Enum/PrestationType.d.ts.map +1 -1
  13. package/es/types/Enum/PrestationType.js +18 -0
  14. package/es/types/Enum/PrestationType.js.map +1 -1
  15. package/es/types/Interface/api/report/QueryReportsForLetter.d.ts +5 -0
  16. package/es/types/Interface/api/report/QueryReportsForLetter.d.ts.map +1 -0
  17. package/es/types/Interface/api/report/QueryReportsForLetter.js +24 -0
  18. package/es/types/Interface/api/report/QueryReportsForLetter.js.map +1 -0
  19. package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
  20. package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  21. package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -0
  22. package/es/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  23. package/es/types/index.d.ts +1 -0
  24. package/es/types/index.d.ts.map +1 -1
  25. package/es/types/index.js +1 -0
  26. package/es/types/index.js.map +1 -1
  27. package/js/api/resources/Invoice.js +6 -0
  28. package/js/api/resources/Invoice.js.map +1 -1
  29. package/js/api/resources/Report.js +7 -0
  30. package/js/api/resources/Report.js.map +1 -1
  31. package/js/types/Enum/BrandPourcentage.js +6 -6
  32. package/js/types/Enum/BrandPourcentage.js.map +1 -1
  33. package/js/types/Enum/PrestationType.js +18 -0
  34. package/js/types/Enum/PrestationType.js.map +1 -1
  35. package/js/types/Interface/api/report/QueryReportsForLetter.js +23 -0
  36. package/js/types/Interface/api/report/QueryReportsForLetter.js.map +1 -0
  37. package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -1
  38. package/js/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  39. package/js/types/index.js +10 -0
  40. package/js/types/index.js.map +1 -1
  41. package/package.json +1 -1
  42. package/ts/api/resources/Invoice.ts +8 -0
  43. package/ts/api/resources/Report.ts +4 -1
  44. package/ts/types/Enum/BrandPourcentage.ts +6 -6
  45. package/ts/types/Enum/PrestationType.ts +18 -0
  46. package/ts/types/Interface/api/report/QueryReportsForLetter.ts +12 -0
  47. package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -1
  48. 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.186",
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: 'FR17345081996',
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: 'FR84315519587',
242
+ Id: '***',
243
243
  },
244
244
  internalInvoicing: {
245
245
  statut: 'SARL',
@@ -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
  };
@@ -0,0 +1,12 @@
1
+ import { IsInt } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class QueryReportsForLetter {
5
+ @ApiProperty()
6
+ @IsInt()
7
+ idReportType: number;
8
+
9
+ @ApiProperty()
10
+ @IsInt()
11
+ idSociety: number;
12
+ }
@@ -12,7 +12,8 @@ export class QueryVatMigrationEntry {
12
12
 
13
13
  @ApiPropertyOptional()
14
14
  @IsNumber()
15
- id: number;
15
+ @IsOptional()
16
+ id?: number;
16
17
  }
17
18
 
18
19
  export class QueryVatDeclaration {
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';