@silexpert/core 1.1.194 → 1.1.196

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 (134) hide show
  1. package/dist/cjs/api/resources/Authenticate.d.ts +3 -1
  2. package/dist/cjs/api/resources/Authenticate.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Authenticate.js +10 -0
  4. package/dist/cjs/api/resources/Authenticate.js.map +1 -1
  5. package/dist/cjs/api/resources/IncomeAllocation.d.ts +2 -0
  6. package/dist/cjs/api/resources/IncomeAllocation.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/IncomeAllocation.js +4 -0
  8. package/dist/cjs/api/resources/IncomeAllocation.js.map +1 -1
  9. package/dist/cjs/api/resources/Loan.d.ts +4 -0
  10. package/dist/cjs/api/resources/Loan.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/Loan.js +8 -0
  12. package/dist/cjs/api/resources/Loan.js.map +1 -1
  13. package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts +2 -2
  14. package/dist/cjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
  15. package/dist/cjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
  16. package/dist/cjs/api/resources/Provision.d.ts +2 -0
  17. package/dist/cjs/api/resources/Provision.d.ts.map +1 -1
  18. package/dist/cjs/api/resources/Provision.js +4 -0
  19. package/dist/cjs/api/resources/Provision.js.map +1 -1
  20. package/dist/cjs/api/resources/SalariesFile.d.ts +2 -0
  21. package/dist/cjs/api/resources/SalariesFile.d.ts.map +1 -1
  22. package/dist/cjs/api/resources/SalariesFile.js +4 -0
  23. package/dist/cjs/api/resources/SalariesFile.js.map +1 -1
  24. package/dist/cjs/api/resources/Stocks.d.ts +6 -0
  25. package/dist/cjs/api/resources/Stocks.d.ts.map +1 -1
  26. package/dist/cjs/api/resources/Stocks.js +14 -0
  27. package/dist/cjs/api/resources/Stocks.js.map +1 -1
  28. package/dist/cjs/types/Enum/BrandClementine.d.ts +5 -0
  29. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  30. package/dist/cjs/types/Enum/BrandClementine.js +1 -0
  31. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  32. package/dist/cjs/types/Enum/BrandComptalib.d.ts +3 -0
  33. package/dist/cjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  34. package/dist/cjs/types/Enum/BrandComptalib.js +1 -0
  35. package/dist/cjs/types/Enum/BrandComptalib.js.map +1 -1
  36. package/dist/cjs/types/Enum/BrandLegalstart.d.ts +1 -0
  37. package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  38. package/dist/cjs/types/Enum/BrandLegalstart.js +1 -0
  39. package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
  40. package/dist/cjs/types/Enum/PriceGridClementine.d.ts +18 -0
  41. package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  42. package/dist/cjs/types/Enum/PriceGridClementine.js +48 -0
  43. package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
  44. package/dist/cjs/types/Interface/api/authentification/ForgotPassword.d.ts +4 -0
  45. package/dist/cjs/types/Interface/api/authentification/ForgotPassword.d.ts.map +1 -0
  46. package/dist/cjs/types/Interface/api/authentification/ForgotPassword.js +23 -0
  47. package/dist/cjs/types/Interface/api/authentification/ForgotPassword.js.map +1 -0
  48. package/dist/cjs/types/Interface/api/authentification/ResetPassword.d.ts +5 -0
  49. package/dist/cjs/types/Interface/api/authentification/ResetPassword.d.ts.map +1 -0
  50. package/dist/cjs/types/Interface/api/authentification/ResetPassword.js +28 -0
  51. package/dist/cjs/types/Interface/api/authentification/ResetPassword.js.map +1 -0
  52. package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts +1 -0
  53. package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts.map +1 -1
  54. package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.js +5 -0
  55. package/dist/cjs/types/Interface/api/userRoomEquipment/CreateSignature.js.map +1 -1
  56. package/dist/cjs/types/index.d.ts +2 -0
  57. package/dist/cjs/types/index.d.ts.map +1 -1
  58. package/dist/cjs/types/index.js +2 -0
  59. package/dist/cjs/types/index.js.map +1 -1
  60. package/dist/mjs/api/resources/Authenticate.d.ts +3 -1
  61. package/dist/mjs/api/resources/Authenticate.d.ts.map +1 -1
  62. package/dist/mjs/api/resources/Authenticate.js +6 -0
  63. package/dist/mjs/api/resources/Authenticate.js.map +1 -1
  64. package/dist/mjs/api/resources/IncomeAllocation.d.ts +2 -0
  65. package/dist/mjs/api/resources/IncomeAllocation.d.ts.map +1 -1
  66. package/dist/mjs/api/resources/IncomeAllocation.js +4 -0
  67. package/dist/mjs/api/resources/IncomeAllocation.js.map +1 -1
  68. package/dist/mjs/api/resources/Loan.d.ts +4 -0
  69. package/dist/mjs/api/resources/Loan.d.ts.map +1 -1
  70. package/dist/mjs/api/resources/Loan.js +8 -0
  71. package/dist/mjs/api/resources/Loan.js.map +1 -1
  72. package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts +2 -2
  73. package/dist/mjs/api/resources/PaymentExpectationCustomer.d.ts.map +1 -1
  74. package/dist/mjs/api/resources/PaymentExpectationCustomer.js.map +1 -1
  75. package/dist/mjs/api/resources/Provision.d.ts +2 -0
  76. package/dist/mjs/api/resources/Provision.d.ts.map +1 -1
  77. package/dist/mjs/api/resources/Provision.js +4 -0
  78. package/dist/mjs/api/resources/Provision.js.map +1 -1
  79. package/dist/mjs/api/resources/SalariesFile.d.ts +2 -0
  80. package/dist/mjs/api/resources/SalariesFile.d.ts.map +1 -1
  81. package/dist/mjs/api/resources/SalariesFile.js +4 -0
  82. package/dist/mjs/api/resources/SalariesFile.js.map +1 -1
  83. package/dist/mjs/api/resources/Stocks.d.ts +6 -0
  84. package/dist/mjs/api/resources/Stocks.d.ts.map +1 -1
  85. package/dist/mjs/api/resources/Stocks.js +14 -0
  86. package/dist/mjs/api/resources/Stocks.js.map +1 -1
  87. package/dist/mjs/types/Enum/BrandClementine.d.ts +5 -0
  88. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  89. package/dist/mjs/types/Enum/BrandClementine.js +1 -0
  90. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  91. package/dist/mjs/types/Enum/BrandComptalib.d.ts +3 -0
  92. package/dist/mjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  93. package/dist/mjs/types/Enum/BrandComptalib.js +1 -0
  94. package/dist/mjs/types/Enum/BrandComptalib.js.map +1 -1
  95. package/dist/mjs/types/Enum/BrandLegalstart.d.ts +1 -0
  96. package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  97. package/dist/mjs/types/Enum/BrandLegalstart.js +1 -0
  98. package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
  99. package/dist/mjs/types/Enum/PriceGridClementine.d.ts +18 -0
  100. package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  101. package/dist/mjs/types/Enum/PriceGridClementine.js +48 -0
  102. package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
  103. package/dist/mjs/types/Interface/api/authentification/ForgotPassword.d.ts +4 -0
  104. package/dist/mjs/types/Interface/api/authentification/ForgotPassword.d.ts.map +1 -0
  105. package/dist/mjs/types/Interface/api/authentification/ForgotPassword.js +20 -0
  106. package/dist/mjs/types/Interface/api/authentification/ForgotPassword.js.map +1 -0
  107. package/dist/mjs/types/Interface/api/authentification/ResetPassword.d.ts +5 -0
  108. package/dist/mjs/types/Interface/api/authentification/ResetPassword.d.ts.map +1 -0
  109. package/dist/mjs/types/Interface/api/authentification/ResetPassword.js +26 -0
  110. package/dist/mjs/types/Interface/api/authentification/ResetPassword.js.map +1 -0
  111. package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts +1 -0
  112. package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.d.ts.map +1 -1
  113. package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.js +7 -1
  114. package/dist/mjs/types/Interface/api/userRoomEquipment/CreateSignature.js.map +1 -1
  115. package/dist/mjs/types/index.d.ts +2 -0
  116. package/dist/mjs/types/index.d.ts.map +1 -1
  117. package/dist/mjs/types/index.js +2 -0
  118. package/dist/mjs/types/index.js.map +1 -1
  119. package/package.json +1 -1
  120. package/ts/api/resources/Authenticate.ts +9 -1
  121. package/ts/api/resources/IncomeAllocation.ts +5 -0
  122. package/ts/api/resources/Loan.ts +11 -0
  123. package/ts/api/resources/PaymentExpectationCustomer.ts +2 -1
  124. package/ts/api/resources/Provision.ts +5 -0
  125. package/ts/api/resources/SalariesFile.ts +7 -0
  126. package/ts/api/resources/Stocks.ts +19 -0
  127. package/ts/types/Enum/BrandClementine.ts +1 -0
  128. package/ts/types/Enum/BrandComptalib.ts +1 -0
  129. package/ts/types/Enum/BrandLegalstart.ts +1 -0
  130. package/ts/types/Enum/PriceGridClementine.ts +48 -0
  131. package/ts/types/Interface/api/authentification/ForgotPassword.ts +8 -0
  132. package/ts/types/Interface/api/authentification/ResetPassword.ts +12 -0
  133. package/ts/types/Interface/api/userRoomEquipment/CreateSignature.ts +5 -1
  134. package/ts/types/index.ts +2 -0
@@ -12,10 +12,15 @@ export class Provision extends Resource {
12
12
  return this.axios.$get(`/balance-sheets/provisions/${params.idAccountingTransaction}`);
13
13
  }
14
14
 
15
+ /** @deprecated use createForSociety() */
15
16
  create(payload: CreateProvisionForm): Promise<ReadProvision> {
16
17
  return this.axios.$post('/balance-sheets/provisions', payload);
17
18
  }
18
19
 
20
+ createForSociety(idSociety: number, payload: CreateProvisionForm): Promise<ReadProvision> {
21
+ return this.axios.$post(`/societies/${idSociety}/balance-sheets/provisions`, payload);
22
+ }
23
+
19
24
  update(idAccountingTransaction: number, payload: UpdateProvisionForm): Promise<ReadProvision> {
20
25
  return this.axios.$put(`/balance-sheets/provisions/${idAccountingTransaction}`, payload);
21
26
  }
@@ -2,10 +2,17 @@ import { Resource } from '../Resource';
2
2
  import { CreateSalariesFile, ReadSalariesFile } from '../../types';
3
3
 
4
4
  export class SalariesFile extends Resource {
5
+
6
+ /** @deprecated use createForSociety() */
5
7
  create(params: CreateSalariesFile): Promise<ReadSalariesFile> {
6
8
  return this.axios.$post('salariesFile', params);
7
9
  }
8
10
 
11
+ createForSociety(idSociety: number): Promise<ReadSalariesFile> {
12
+ return this.axios.$post(`/societies/${idSociety}/salary-files`);
13
+ }
14
+
15
+
9
16
  /**
10
17
  * delete SalariesFile
11
18
  * @param params
@@ -2,14 +2,24 @@ import { Resource } from '../Resource';
2
2
  import { IFile, StockEntries, TFile } from '../../types';
3
3
 
4
4
  export class Stocks extends Resource {
5
+
6
+ /** @deprecated use create() */
5
7
  createStocks(payload: StockEntries): Promise<any> {
6
8
  return this.axios.$post('/stocks/entries', payload);
7
9
  }
8
10
 
11
+ create(idExercice: number, payload: StockEntries): Promise<any> {
12
+ return this.axios.$post(`/exercices/${idExercice}/stocks`, payload);
13
+ }
14
+
9
15
  createFile(file: TFile): Promise<any> {
10
16
  return this.axios.$post('/stocks/files', file, { headers: { 'Content-Type': 'multipart/form-data' } });
11
17
  }
12
18
 
19
+ importFile(idExercice: number, file: TFile): Promise<any> {
20
+ return this.axios.$post(`/exercices/${idExercice}/stocks/files`, file, { headers: { 'Content-Type': 'multipart/form-data' } });
21
+ }
22
+
13
23
  getStocks(idExercice: number): Promise<StockEntries> {
14
24
  return this.axios.$get(`/stocks/entries/${idExercice}`);
15
25
  }
@@ -18,10 +28,19 @@ export class Stocks extends Resource {
18
28
  return this.axios.$get('/stocks/files');
19
29
  }
20
30
 
31
+ getSocietyFiles(idSociety: number): Promise<IFile[]> {
32
+ return this.axios.$get(`/societies/${idSociety}/stocks/files`);
33
+ }
34
+
35
+ /** @deprecated use download() */
21
36
  downloadFile(token: string): Promise<void> {
22
37
  return this.axios.$get(`/stocks/files/${token}`, { responseType: 'blob' });
23
38
  }
24
39
 
40
+ download(idSociety: number, token: string): Promise<void> {
41
+ return this.axios.$get(`/societies/${idSociety}/stocks/files/${token}`, { responseType: 'blob' });
42
+ }
43
+
25
44
  deleteFile(idFile: number): Promise<any> {
26
45
  return this.axios.$delete(`/stocks/files/${idFile}`);
27
46
  }
@@ -7,6 +7,7 @@ export const BrandClementine = [
7
7
  commercialName: 'Clementine',
8
8
  urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-clementine/',
9
9
  logoS3: 'config/72030539-45a0-57fb-a7bb-e151e7d2721b.svg',
10
+ privacyPolicy: 'https://www.compta-clementine.fr/politique-des-donnees/',
10
11
  recaptcha: {
11
12
  secretKey: '6LdZneUUAAAAAKfiwC_JFWOlzc_0YYKHQJgSveRP',
12
13
  },
@@ -5,6 +5,7 @@ export const BrandComptalib = [
5
5
  commercialName: 'Comptalib',
6
6
  urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-comptalib/',
7
7
  logoS3: 'config/72030539-45a0-57fb-a7bb-e151e7d2721b.svg',
8
+ privacyPolicy: 'https://www.comptalib.com/data/',
8
9
  colors: {
9
10
  primary: '#1656ff',
10
11
  primary50: '#EDF2FF',
@@ -7,6 +7,7 @@ export const BrandLegalstart = [
7
7
  commercialName: 'Clementine',
8
8
  urlS3: 'https://resources-legalstart.s3.eu-west-3.amazonaws.com/',
9
9
  logoS3: 'config/55624137-0c29-5f16-a079-b2904a6f9e7b.svg',
10
+ privacyPolicy: 'https://www.legalstart.fr/corp/vie-privee/',
10
11
  colors: {
11
12
  primary: '#16a974',
12
13
  footerColor: '#f3692f',
@@ -473,6 +473,54 @@ export const PriceGridClementine = [
473
473
  },
474
474
  ],
475
475
  },
476
+ {
477
+ /* Prévisionnel */
478
+ idPrestationList: [PrestationType.BILAN_PREVISIONNEL],
479
+ turnoverCreatedYear: [
480
+ {
481
+ turnoverValue: 75000,
482
+ price: 199,
483
+ },
484
+ {
485
+ turnoverValue: 150000,
486
+ price: 299,
487
+ },
488
+ {
489
+ turnoverValue: 400000,
490
+ price: 399,
491
+ },
492
+ {
493
+ turnoverValue: 750000,
494
+ price: 579,
495
+ },
496
+ {
497
+ turnoverValue: 1000000,
498
+ price: 889,
499
+ },
500
+ ],
501
+ turnoverPastYear: [
502
+ {
503
+ turnoverValue: 75000,
504
+ price: 299,
505
+ },
506
+ {
507
+ turnoverValue: 150000,
508
+ price: 399,
509
+ },
510
+ {
511
+ turnoverValue: 400000,
512
+ price: 499,
513
+ },
514
+ {
515
+ turnoverValue: 750000,
516
+ price: 679,
517
+ },
518
+ {
519
+ turnoverValue: 1000000,
520
+ price: 989,
521
+ },
522
+ ],
523
+ },
476
524
  ],
477
525
  },
478
526
  ];
@@ -0,0 +1,8 @@
1
+ import { IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../';
3
+
4
+ export class PostForgotPassword {
5
+ @ApiProperty()
6
+ @IsString()
7
+ username: string;
8
+ }
@@ -0,0 +1,12 @@
1
+ import { IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../';
3
+
4
+ export class PutResetPassword {
5
+ @ApiProperty()
6
+ @IsString()
7
+ newPassword: string;
8
+
9
+ @ApiProperty()
10
+ @IsString()
11
+ token: string;
12
+ }
@@ -1,4 +1,4 @@
1
- import { IsInt } from 'class-validator';
1
+ import { IsInt, IsEmail } from 'class-validator';
2
2
  import { ApiProperty } from '../../../../utils';
3
3
 
4
4
  export class CreateYousignSignature {
@@ -9,4 +9,8 @@ export class CreateYousignSignature {
9
9
  @ApiProperty()
10
10
  @IsInt()
11
11
  idUserToSign: number;
12
+
13
+ @ApiProperty()
14
+ @IsEmail()
15
+ email: string;
12
16
  }
package/ts/types/index.ts CHANGED
@@ -992,6 +992,8 @@ export * from './Interface/api/accountsSectors/Create';
992
992
  export * from './Interface/api/fusion/FusionSocieties';
993
993
  export * from './Interface/api/changelog/Create';
994
994
  export * from './Interface/api/authentification/ReadAuthenticateCollaborater';
995
+ export * from './Interface/api/authentification/ResetPassword';
996
+ export * from './Interface/api/authentification/ForgotPassword';
995
997
  export * from './Interface/api/society/Export';
996
998
  export * from './Interface/api/businessSector/Create';
997
999
  export * from './Interface/api/businessSector/Query';