@silexpert/core 1.1.234 → 1.1.236

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 (87) hide show
  1. package/dist/cjs/api/resources/AccountingFiles.d.ts +2 -1
  2. package/dist/cjs/api/resources/AccountingFiles.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/AccountingFiles.js +3 -0
  4. package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
  5. package/dist/cjs/api/resources/Transaction.d.ts +2 -1
  6. package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Transaction.js +3 -0
  8. package/dist/cjs/api/resources/Transaction.js.map +1 -1
  9. package/dist/cjs/types/Enum/BrandPourcentage.js +2 -2
  10. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  11. package/dist/cjs/types/Enum/CommercialOfferType.js +2 -2
  12. package/dist/cjs/types/Enum/CommercialOfferType.js.map +1 -1
  13. package/dist/cjs/types/Enum/EntityType.d.ts +1 -1
  14. package/dist/cjs/types/Enum/EntityType.js +1 -1
  15. package/dist/cjs/types/Enum/EntityType.js.map +1 -1
  16. package/dist/cjs/types/Interface/api/accountingEntry/Create.d.ts +9 -0
  17. package/dist/cjs/types/Interface/api/accountingEntry/Create.d.ts.map +1 -1
  18. package/dist/cjs/types/Interface/api/accountingEntry/Create.js +41 -1
  19. package/dist/cjs/types/Interface/api/accountingEntry/Create.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +4 -0
  21. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  22. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +15 -1
  23. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  24. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +4 -0
  25. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -1
  26. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js +13 -3
  27. package/dist/cjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  28. package/dist/cjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.d.ts.map +1 -1
  29. package/dist/cjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js +9 -0
  30. package/dist/cjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
  31. package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts +3 -0
  32. package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  33. package/dist/cjs/types/Interface/models/ISocietyDetail.js.map +1 -1
  34. package/dist/cjs/utils/email/templates/signature.js +1 -1
  35. package/dist/cjs/utils/email/templates/signature.js.map +1 -1
  36. package/dist/cjs/utils/email.js +1 -1
  37. package/dist/cjs/utils/email.js.map +1 -1
  38. package/dist/mjs/api/resources/AccountingFiles.d.ts +2 -1
  39. package/dist/mjs/api/resources/AccountingFiles.d.ts.map +1 -1
  40. package/dist/mjs/api/resources/AccountingFiles.js +3 -0
  41. package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
  42. package/dist/mjs/api/resources/Transaction.d.ts +2 -1
  43. package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
  44. package/dist/mjs/api/resources/Transaction.js +3 -0
  45. package/dist/mjs/api/resources/Transaction.js.map +1 -1
  46. package/dist/mjs/types/Enum/BrandPourcentage.js +2 -2
  47. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  48. package/dist/mjs/types/Enum/CommercialOfferType.js +2 -2
  49. package/dist/mjs/types/Enum/CommercialOfferType.js.map +1 -1
  50. package/dist/mjs/types/Enum/EntityType.d.ts +1 -1
  51. package/dist/mjs/types/Enum/EntityType.js +1 -1
  52. package/dist/mjs/types/Enum/EntityType.js.map +1 -1
  53. package/dist/mjs/types/Interface/api/accountingEntry/Create.d.ts +9 -0
  54. package/dist/mjs/types/Interface/api/accountingEntry/Create.d.ts.map +1 -1
  55. package/dist/mjs/types/Interface/api/accountingEntry/Create.js +46 -0
  56. package/dist/mjs/types/Interface/api/accountingEntry/Create.js.map +1 -1
  57. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +4 -0
  58. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  59. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +15 -0
  60. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  61. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts +4 -0
  62. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.d.ts.map +1 -1
  63. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js +16 -4
  64. package/dist/mjs/types/Interface/api/accountingTransaction/QueryTransaction.js.map +1 -1
  65. package/dist/mjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.d.ts.map +1 -1
  66. package/dist/mjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js +10 -1
  67. package/dist/mjs/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.js.map +1 -1
  68. package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts +3 -0
  69. package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  70. package/dist/mjs/types/Interface/models/ISocietyDetail.js.map +1 -1
  71. package/dist/mjs/utils/email/templates/signature.js +1 -1
  72. package/dist/mjs/utils/email/templates/signature.js.map +1 -1
  73. package/dist/mjs/utils/email.js +1 -1
  74. package/dist/mjs/utils/email.js.map +1 -1
  75. package/package.json +1 -1
  76. package/ts/api/resources/AccountingFiles.ts +5 -1
  77. package/ts/api/resources/Transaction.ts +5 -1
  78. package/ts/types/Enum/BrandPourcentage.ts +2 -2
  79. package/ts/types/Enum/CommercialOfferType.ts +2 -2
  80. package/ts/types/Enum/EntityType.ts +1 -1
  81. package/ts/types/Interface/api/accountingEntry/Create.ts +32 -0
  82. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +13 -0
  83. package/ts/types/Interface/api/accountingTransaction/QueryTransaction.ts +10 -1
  84. package/ts/types/Interface/api/paymentExpectationCustomer/QueryPaymentExpectationCustomer.ts +8 -2
  85. package/ts/types/Interface/models/ISocietyDetail.ts +3 -0
  86. package/ts/utils/email/templates/signature.ts +1 -1
  87. package/ts/utils/email.ts +1 -1
@@ -40,6 +40,38 @@ export class CreateManualEntry {
40
40
  balanceIsOptionnal?: boolean;
41
41
  }
42
42
 
43
+ export class CreateWithMasterEntry {
44
+ @ApiProperty()
45
+ @IsNumber()
46
+ debit: number;
47
+
48
+ @ApiProperty()
49
+ @IsNumber()
50
+ credit: number;
51
+
52
+ @ApiProperty()
53
+ dateValue: Date;
54
+
55
+ @ApiProperty()
56
+ @IsString()
57
+ designation: string;
58
+
59
+ @ApiPropertyOptional()
60
+ @IsNumber()
61
+ @IsOptional()
62
+ idAccountingJournal?: AccountingJournal | null;
63
+
64
+ @ApiPropertyOptional()
65
+ @IsInt()
66
+ @IsOptional()
67
+ idFile?: number | null;
68
+
69
+ @ApiPropertyOptional()
70
+ @IsString()
71
+ @IsOptional()
72
+ dateLocked?: string | null;
73
+ }
74
+
43
75
  export class DuplicateAccountingTransaction {
44
76
  @ApiProperty()
45
77
  @IsArray()
@@ -1,5 +1,8 @@
1
1
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
2
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
3
+ import {
4
+ IsInt, IsOptional,
5
+ } from 'class-validator';
3
6
 
4
7
  export class QueryAccountingFiles {
5
8
  @ApiProperty()
@@ -30,4 +33,14 @@ export class QueryAccountingFilesV2 extends QueryAccountingFiles {
30
33
 
31
34
  @ApiPropertyOptional()
32
35
  idAccountingTransaction?: number;
36
+ }
37
+
38
+ export class CreateAccountingFileFromFile {
39
+ @ApiProperty()
40
+ @IsInt()
41
+ idAccountingFileType: number;
42
+
43
+ @ApiPropertyOptional()
44
+ @IsOptional()
45
+ emissionDate: Date | null;
33
46
  }
@@ -1,5 +1,6 @@
1
1
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
2
  import { TypeCustomerProviderOperation } from '../../../Enum/TypeCustomerProviderOperation';
3
+ import { AccountingJournal } from '../../../Enum/AccountingJournal';
3
4
 
4
5
  export class QueryTransaction {
5
6
  id: number;
@@ -11,7 +12,6 @@ export class QueryTransaction {
11
12
  limit: number;
12
13
 
13
14
  @ApiProperty()
14
- // @Type(() => Number)
15
15
  idAccountingJournal: number[];
16
16
 
17
17
  @ApiPropertyOptional()
@@ -20,6 +20,9 @@ export class QueryTransaction {
20
20
  @ApiPropertyOptional()
21
21
  idAccountType?: number;
22
22
 
23
+ @ApiPropertyOptional()
24
+ idFile?: number;
25
+
23
26
  @ApiPropertyOptional()
24
27
  orderBy?: string;
25
28
 
@@ -57,4 +60,10 @@ export class QueryGetAllTransactions {
57
60
 
58
61
  @ApiPropertyOptional()
59
62
  dateValue?: string;
63
+
64
+ @ApiPropertyOptional()
65
+ idAccountingJournal: AccountingJournal[];
66
+
67
+ @ApiPropertyOptional()
68
+ idFile: number;
60
69
  }
@@ -1,6 +1,8 @@
1
- import { ApiProperty } from '../../../../utils';
1
+ import { IsBoolean, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
3
  import { QueryPaginate } from '../BasePaginate';
3
4
  import { Order } from '../BaseRequest';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
6
 
5
7
  export class QueryPaymentExpectationCustomer {
6
8
  // @ApiProperty()
@@ -41,7 +43,11 @@ export class QueryGetSocietyPaymentsExpectationsCustomers implements QueryPagina
41
43
 
42
44
  order?: string;
43
45
 
44
- descending?: boolean;
46
+ @ApiPropertyOptional()
47
+ @IsBoolean()
48
+ @ToBoolean()
49
+ @IsOptional()
50
+ descending?: boolean;
45
51
  }
46
52
 
47
53
  export class QueryPayPaymentExpectationCustomer {
@@ -86,6 +86,9 @@ export interface ISocietyDetail {
86
86
  personnalContributionCapital?: string | null;
87
87
  personnalContributionCurrentBankAccount?: string | null;
88
88
  personnalContributionInKind?: string | null;
89
+ dateOfCertificateOfDepositOfShareCapital?: Date | null;
90
+ bankOfDepositOfShareCapital?: string | null;
91
+ addressOfBankOfDepositOfShareCapital?: string | null;
89
92
  poleEmploiAid?: string | null;
90
93
  poleEmploiAidType?: number | null;
91
94
  honorLoan?: string | null;
@@ -187,7 +187,7 @@ ${logoClementine}
187
187
  </table>
188
188
  <p style="margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2"><!-- --></p>
189
189
  <p style="margin:0px 0; padding:0 0 4px; color:#6E6E71;">
190
- Standard : <%= standardPhoneSignature %><br/>
190
+ Standard : <%- standardPhoneSignature %><br/>
191
191
  <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>
192
192
  Ligne directe : <%- phoneSignature %><br/>
193
193
  <% } %>
package/ts/utils/email.ts CHANGED
@@ -278,7 +278,7 @@ export function generateSignature(params: any): string {
278
278
  roleSignature,
279
279
  mailSignature,
280
280
  phoneSignature,
281
- standardPhoneSignature,
281
+ standardPhoneSignature: standardPhoneSignature.replace(/\s+/gm, '&nbsp;'),
282
282
  horaires,
283
283
  primaryColor,
284
284
  supportMail,