@silexpert/core 1.0.199 → 1.0.201

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 (62) hide show
  1. package/es/api/resources/AccountingFiles.d.ts +2 -1
  2. package/es/api/resources/AccountingFiles.d.ts.map +1 -1
  3. package/es/api/resources/AccountingFiles.js +3 -0
  4. package/es/api/resources/AccountingFiles.js.map +1 -1
  5. package/es/types/Enum/BrandLegalstart.js +20 -20
  6. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  7. package/es/types/Enum/Unit.d.ts +2 -1
  8. package/es/types/Enum/Unit.d.ts.map +1 -1
  9. package/es/types/Enum/Unit.js +11 -0
  10. package/es/types/Enum/Unit.js.map +1 -1
  11. package/es/types/Interface/api/accountingFiles/Read.d.ts +6 -0
  12. package/es/types/Interface/api/accountingFiles/Read.d.ts.map +1 -0
  13. package/es/types/Interface/api/accountingFiles/Read.js +2 -0
  14. package/es/types/Interface/api/accountingFiles/Read.js.map +1 -0
  15. package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts +1 -1
  16. package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts.map +1 -1
  17. package/es/types/Interface/api/archive/ImportSocietyArchive.js +1 -1
  18. package/es/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -1
  19. package/es/types/Interface/api/exercice/CreateExercice.d.ts +1 -0
  20. package/es/types/Interface/api/exercice/CreateExercice.d.ts.map +1 -1
  21. package/es/types/Interface/api/exercice/CreateExercice.js +7 -0
  22. package/es/types/Interface/api/exercice/CreateExercice.js.map +1 -1
  23. package/es/types/Interface/api/exercice/UpdateExercice.d.ts +1 -0
  24. package/es/types/Interface/api/exercice/UpdateExercice.d.ts.map +1 -1
  25. package/es/types/Interface/api/exercice/UpdateExercice.js +7 -0
  26. package/es/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
  27. package/es/types/Interface/models/IApiError.d.ts +1 -0
  28. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  29. package/es/types/Interface/models/IApiError.js +1 -0
  30. package/es/types/Interface/models/IApiError.js.map +1 -1
  31. package/es/types/index.d.ts +1 -0
  32. package/es/types/index.d.ts.map +1 -1
  33. package/es/types/index.js +1 -0
  34. package/es/types/index.js.map +1 -1
  35. package/js/api/resources/AccountingFiles.js +3 -0
  36. package/js/api/resources/AccountingFiles.js.map +1 -1
  37. package/js/types/Enum/BrandLegalstart.js +20 -20
  38. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  39. package/js/types/Enum/Unit.js +10 -0
  40. package/js/types/Enum/Unit.js.map +1 -1
  41. package/js/types/Interface/api/accountingFiles/Read.js +6 -0
  42. package/js/types/Interface/api/accountingFiles/Read.js.map +1 -0
  43. package/js/types/Interface/api/archive/ImportSocietyArchive.js +1 -1
  44. package/js/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -1
  45. package/js/types/Interface/api/exercice/CreateExercice.js +1 -0
  46. package/js/types/Interface/api/exercice/CreateExercice.js.map +1 -1
  47. package/js/types/Interface/api/exercice/UpdateExercice.js +1 -0
  48. package/js/types/Interface/api/exercice/UpdateExercice.js.map +1 -1
  49. package/js/types/Interface/models/IApiError.js +1 -0
  50. package/js/types/Interface/models/IApiError.js.map +1 -1
  51. package/js/types/index.js +34 -24
  52. package/js/types/index.js.map +1 -1
  53. package/package.json +1 -1
  54. package/ts/api/resources/AccountingFiles.ts +5 -1
  55. package/ts/types/Enum/BrandLegalstart.ts +20 -20
  56. package/ts/types/Enum/Unit.ts +11 -0
  57. package/ts/types/Interface/api/accountingFiles/Read.ts +6 -0
  58. package/ts/types/Interface/api/archive/ImportSocietyArchive.ts +1 -1
  59. package/ts/types/Interface/api/exercice/CreateExercice.ts +6 -0
  60. package/ts/types/Interface/api/exercice/UpdateExercice.ts +6 -0
  61. package/ts/types/Interface/models/IApiError.ts +1 -0
  62. 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.199",
3
+ "version": "1.0.201",
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",
@@ -1,6 +1,6 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
- BasePaginate, IAccountingFile, QueryAccountingFiles, QueryTransaction, ReadFormattedAccountingTransaction,
3
+ BasePaginate, IAccountingFile, QueryAccountingFiles, QueryTransaction, ReadFormattedAccountingTransaction, ReadUpdateAccouningFile,
4
4
  } from '../../types';
5
5
 
6
6
  export class AccountingFiles extends Resource {
@@ -29,4 +29,8 @@ export class AccountingFiles extends Resource {
29
29
  getPaginated(idSociety: number, params: QueryTransaction): Promise<BasePaginate<IAccountingFile>> {
30
30
  return this.axios.$get(`/society/${idSociety}/accountingFiles`, { params });
31
31
  }
32
+
33
+ update(id:number, payload: Partial<IAccountingFile>): Promise<ReadUpdateAccouningFile> {
34
+ return this.axios.$put(`/accounting-files/${id}`, payload);
35
+ }
32
36
  }
@@ -13,23 +13,23 @@ export const BrandLegalstart = [
13
13
  juridique: '01 76 39 00 60',
14
14
  },
15
15
  listMails: {
16
- administratif: 'comptastart@legalstart.fr',
17
- app: 'comptastart@legalstart.fr',
18
- bonjour: 'comptastart@legalstart.fr',
19
- contact: 'comptastart@legalstart.fr',
20
- facturation: 'comptastart@legalstart.fr',
21
- feedback: 'comptastart@legalstart.fr',
22
- juridique: 'comptastart@legalstart.fr',
23
- informatique: 'comptastart@legalstart.fr',
24
- msd: 'comptastart@legalstart.fr',
25
- noreply: 'comptastart@legalstart.fr',
26
- qualite: 'comptastart@legalstart.fr',
27
- paiement: 'comptastart@legalstart.fr',
28
- rh: 'comptastart@legalstart.fr',
29
- social: 'comptastart@legalstart.fr',
30
- support: 'comptastart@legalstart.fr',
31
- tva: 'comptastart@legalstart.fr',
32
- wb: 'comptastart@legalstart.fr',
16
+ administratif: 'comptastart@comptastartbyclementine.fr',
17
+ app: 'comptastart@comptastartbyclementine.fr',
18
+ bonjour: 'bonjour@comptastartbyclementine.fr',
19
+ contact: 'contact@comptastartbyclementine.fr',
20
+ facturation: 'facturation@comptastartbyclementine.fr',
21
+ feedback: 'comptastart@comptastartbyclementine.fr',
22
+ juridique: 'juridique@comptastartbyclementine.fr',
23
+ informatique: 'informatique@comptastartbyclementine.fr',
24
+ msd: 'comptastart@comptastartbyclementine.fr',
25
+ noreply: 'noreply@comptastartbyclementine.fr',
26
+ qualite: 'comptastart@comptastartbyclementine.fr',
27
+ paiement: 'comptastart@comptastartbyclementine.fr',
28
+ rh: 'comptastart@comptastartbyclementine.fr',
29
+ social: 'social@comptastartbyclementine.fr',
30
+ support: 'comptastart@comptastartbyclementine.fr',
31
+ tva: 'comptastart@comptastartbyclementine.fr',
32
+ wb: 'comptastart@comptastartbyclementine.fr',
33
33
  },
34
34
  companyInformation: {
35
35
  ape: '6920Z',
@@ -54,7 +54,7 @@ export const BrandLegalstart = [
54
54
  urlApi1: 'https://api-legalstart.compta-clementine.fr',
55
55
  urlApi2: 'https://api-next-legalstart.compta-clementine.fr',
56
56
  urlExpert: 'https://pro.comptalib.com',
57
- urlClient: 'https://www.pourcentage.fr',
57
+ urlClient: 'https://gestion.legalstart.fr',
58
58
  bank: {
59
59
  IBAN: 'FR7616106840138646838239863',
60
60
  BIC: 'AGRIFRPP861',
@@ -74,10 +74,10 @@ export const BrandLegalstart = [
74
74
  rcs: '752 566 687',
75
75
  phone: '03 83 93 14 14',
76
76
  vatIntracom: 'FR47752566687',
77
- email: 'facturation@compta-clementine.fr',
77
+ email: 'facturation@comptastartbyclementine.fr',
78
78
  },
79
79
  webmail: {
80
- domain: '@legalstart.fr',
80
+ domain: '@comptastartbyclementine.fr',
81
81
  },
82
82
  offices: {
83
83
  LAXOU: {
@@ -26,6 +26,7 @@ export enum UnitId {
26
26
  SUBSCRIPTION = 17,
27
27
  NIGHT = 18,
28
28
  TON = 19,
29
+ HECTARE = 20,
29
30
  }
30
31
 
31
32
  export type IUnitList = Array<{ name: string; id: number; shortName: string; }>;
@@ -126,6 +127,11 @@ export const Unit: IUnit = {
126
127
  name: 'Tonne',
127
128
  shortName: 't',
128
129
  },
130
+ HECTARE: {
131
+ id: UnitId.HECTARE,
132
+ name: 'Hectare',
133
+ shortName: 'ha',
134
+ },
129
135
  };
130
136
 
131
137
  export const UnitList = [
@@ -224,4 +230,9 @@ export const UnitList = [
224
230
  name: 'Tonne',
225
231
  shortName: 't',
226
232
  },
233
+ {
234
+ id: UnitId.HECTARE,
235
+ name: 'Hectare',
236
+ shortName: 'ha',
237
+ },
227
238
  ];
@@ -0,0 +1,6 @@
1
+ import { IAccountingFile } from '../../models/IAccountingFile';
2
+
3
+ export interface ReadUpdateAccouningFile {
4
+ newAf: IAccountingFile,
5
+ hasEstimateBeenUpdated: boolean
6
+ }
@@ -4,5 +4,5 @@ import { ApiPropertyOptional } from '../../../../utils';
4
4
  export class ImportSocietyArchive {
5
5
  @ApiPropertyOptional()
6
6
  @IsOptional()
7
- sourceBucket: string | null;
7
+ idSocietyAlreadyExist: number | null;
8
8
  }
@@ -77,4 +77,10 @@ export class CreateExercice {
77
77
  @IsNumber()
78
78
  @IsOptional()
79
79
  idSociety: number;
80
+
81
+ @ApiPropertyOptional()
82
+ @IsBoolean()
83
+ @ToBoolean()
84
+ @IsOptional()
85
+ isDefault?: boolean;
80
86
  }
@@ -83,4 +83,10 @@ export class UpdateExercice {
83
83
  @IsNumber()
84
84
  @IsOptional()
85
85
  benefit?: number;
86
+
87
+ @ApiPropertyOptional()
88
+ @IsBoolean()
89
+ @ToBoolean()
90
+ @IsOptional()
91
+ isDefault?: boolean;
86
92
  }
@@ -179,6 +179,7 @@ export enum Code {
179
179
  INVALID_BRAND = 'invalid_brand',
180
180
  INVALID_DAY = 'invalid_day',
181
181
  ENTITY_ALREADY_EXIST = 'entity_already_exist',
182
+ ENTITY_USED = 'entity_used',
182
183
 
183
184
  // Gescom
184
185
  CAN_NOT_DELETE_DOCUMENT = 'can_not_delete_document',
package/ts/types/index.ts CHANGED
@@ -571,6 +571,7 @@ export * from './Interface/api/accountingFiles/queryAccountingFiles';
571
571
  export * from './Interface/api/accountingFiles/Ocr';
572
572
  export * from './Interface/api/accountingFiles/OcrPayload';
573
573
  export * from './Interface/api/accountingFiles/OcrValue';
574
+ export * from './Interface/api/accountingFiles/Read';
574
575
  export * from './Interface/api/stock/StockEntries';
575
576
  export * from './Interface/api/dashboard/QueryTurnoverProfitAndLoss';
576
577
  export * from './Interface/api/dashboard/ReadTurnOverProfitAndLossAndVats';