@silexpert/core 1.2.32 → 1.2.34

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 (154) hide show
  1. package/dist/cjs/api/resources/Brevo.d.ts +4 -4
  2. package/dist/cjs/api/resources/Brevo.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Brevo.js +2 -2
  4. package/dist/cjs/api/resources/Brevo.js.map +1 -1
  5. package/dist/cjs/api/resources/CommercialConditionOfSale.d.ts +9 -0
  6. package/dist/cjs/api/resources/CommercialConditionOfSale.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/CommercialConditionOfSale.js +20 -0
  8. package/dist/cjs/api/resources/CommercialConditionOfSale.js.map +1 -0
  9. package/dist/cjs/api/resources/CommercialDocumentTemplate.d.ts +9 -0
  10. package/dist/cjs/api/resources/CommercialDocumentTemplate.d.ts.map +1 -0
  11. package/dist/cjs/api/resources/CommercialDocumentTemplate.js +20 -0
  12. package/dist/cjs/api/resources/CommercialDocumentTemplate.js.map +1 -0
  13. package/dist/cjs/api/resources/CommercialEmail.d.ts +9 -0
  14. package/dist/cjs/api/resources/CommercialEmail.d.ts.map +1 -0
  15. package/dist/cjs/api/resources/CommercialEmail.js +20 -0
  16. package/dist/cjs/api/resources/CommercialEmail.js.map +1 -0
  17. package/dist/cjs/api/resources/Dashboard.d.ts +2 -1
  18. package/dist/cjs/api/resources/Dashboard.d.ts.map +1 -1
  19. package/dist/cjs/api/resources/Dashboard.js +3 -0
  20. package/dist/cjs/api/resources/Dashboard.js.map +1 -1
  21. package/dist/cjs/api/resources.d.ts +6 -0
  22. package/dist/cjs/api/resources.d.ts.map +1 -1
  23. package/dist/cjs/api/resources.js +6 -0
  24. package/dist/cjs/api/resources.js.map +1 -1
  25. package/dist/cjs/types/Enum/PaymentRecovery.d.ts +9 -0
  26. package/dist/cjs/types/Enum/PaymentRecovery.d.ts.map +1 -1
  27. package/dist/cjs/types/Enum/PaymentRecovery.js +150 -1
  28. package/dist/cjs/types/Enum/PaymentRecovery.js.map +1 -1
  29. package/dist/cjs/types/Enum/QualificationLead.d.ts +13 -0
  30. package/dist/cjs/types/Enum/QualificationLead.d.ts.map +1 -0
  31. package/dist/cjs/types/Enum/QualificationLead.js +39 -0
  32. package/dist/cjs/types/Enum/QualificationLead.js.map +1 -0
  33. package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts +9 -3
  34. package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/api/brevo/BrevoElement.js +28 -11
  36. package/dist/cjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
  37. package/dist/cjs/types/Interface/api/brevo/Read.d.ts +12 -1
  38. package/dist/cjs/types/Interface/api/brevo/Read.d.ts.map +1 -1
  39. package/dist/cjs/types/Interface/api/brevo/Read.js.map +1 -1
  40. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +0 -1
  41. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  42. package/dist/cjs/types/Interface/api/commercialManagement/Create.js +0 -5
  43. package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  44. package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts +5 -0
  45. package/dist/cjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  46. package/dist/cjs/types/Interface/api/commercialManagement/Query.js +24 -1
  47. package/dist/cjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
  48. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts +7 -0
  49. package/dist/cjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  50. package/dist/cjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  51. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +2 -0
  52. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  53. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js +12 -0
  54. package/dist/cjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  55. package/dist/cjs/types/Interface/models/ITerminationList.d.ts +1 -0
  56. package/dist/cjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  57. package/dist/cjs/types/Interface/models/ITerminationList.js.map +1 -1
  58. package/dist/cjs/types/index.d.ts +1 -0
  59. package/dist/cjs/types/index.d.ts.map +1 -1
  60. package/dist/cjs/types/index.js +1 -0
  61. package/dist/cjs/types/index.js.map +1 -1
  62. package/dist/cjs/utils/commercialManagement/internationalization/choices.js +2 -2
  63. package/dist/cjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
  64. package/dist/cjs/utils/commercialManagement/templates/body.js +1 -1
  65. package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
  66. package/dist/cjs/utils/commercialManagement/templates/common.js +1 -1
  67. package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
  68. package/dist/mjs/api/resources/Brevo.d.ts +4 -4
  69. package/dist/mjs/api/resources/Brevo.d.ts.map +1 -1
  70. package/dist/mjs/api/resources/Brevo.js +2 -2
  71. package/dist/mjs/api/resources/Brevo.js.map +1 -1
  72. package/dist/mjs/api/resources/CommercialConditionOfSale.d.ts +9 -0
  73. package/dist/mjs/api/resources/CommercialConditionOfSale.d.ts.map +1 -0
  74. package/dist/mjs/api/resources/CommercialConditionOfSale.js +16 -0
  75. package/dist/mjs/api/resources/CommercialConditionOfSale.js.map +1 -0
  76. package/dist/mjs/api/resources/CommercialDocumentTemplate.d.ts +9 -0
  77. package/dist/mjs/api/resources/CommercialDocumentTemplate.d.ts.map +1 -0
  78. package/dist/mjs/api/resources/CommercialDocumentTemplate.js +16 -0
  79. package/dist/mjs/api/resources/CommercialDocumentTemplate.js.map +1 -0
  80. package/dist/mjs/api/resources/CommercialEmail.d.ts +9 -0
  81. package/dist/mjs/api/resources/CommercialEmail.d.ts.map +1 -0
  82. package/dist/mjs/api/resources/CommercialEmail.js +16 -0
  83. package/dist/mjs/api/resources/CommercialEmail.js.map +1 -0
  84. package/dist/mjs/api/resources/Dashboard.d.ts +2 -1
  85. package/dist/mjs/api/resources/Dashboard.d.ts.map +1 -1
  86. package/dist/mjs/api/resources/Dashboard.js +3 -0
  87. package/dist/mjs/api/resources/Dashboard.js.map +1 -1
  88. package/dist/mjs/api/resources.d.ts +6 -0
  89. package/dist/mjs/api/resources.d.ts.map +1 -1
  90. package/dist/mjs/api/resources.js +6 -0
  91. package/dist/mjs/api/resources.js.map +1 -1
  92. package/dist/mjs/types/Enum/PaymentRecovery.d.ts +9 -0
  93. package/dist/mjs/types/Enum/PaymentRecovery.d.ts.map +1 -1
  94. package/dist/mjs/types/Enum/PaymentRecovery.js +149 -0
  95. package/dist/mjs/types/Enum/PaymentRecovery.js.map +1 -1
  96. package/dist/mjs/types/Enum/QualificationLead.d.ts +13 -0
  97. package/dist/mjs/types/Enum/QualificationLead.d.ts.map +1 -0
  98. package/dist/mjs/types/Enum/QualificationLead.js +36 -0
  99. package/dist/mjs/types/Enum/QualificationLead.js.map +1 -0
  100. package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts +9 -3
  101. package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
  102. package/dist/mjs/types/Interface/api/brevo/BrevoElement.js +28 -11
  103. package/dist/mjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
  104. package/dist/mjs/types/Interface/api/brevo/Read.d.ts +12 -1
  105. package/dist/mjs/types/Interface/api/brevo/Read.d.ts.map +1 -1
  106. package/dist/mjs/types/Interface/api/brevo/Read.js.map +1 -1
  107. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +0 -1
  108. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  109. package/dist/mjs/types/Interface/api/commercialManagement/Create.js +0 -6
  110. package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  111. package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts +5 -0
  112. package/dist/mjs/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
  113. package/dist/mjs/types/Interface/api/commercialManagement/Query.js +26 -1
  114. package/dist/mjs/types/Interface/api/commercialManagement/Query.js.map +1 -1
  115. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts +7 -0
  116. package/dist/mjs/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
  117. package/dist/mjs/types/Interface/api/commercialManagement/Read.js.map +1 -1
  118. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts +2 -0
  119. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.d.ts.map +1 -1
  120. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js +14 -0
  121. package/dist/mjs/types/Interface/api/terminationList/CreateTerminationList.js.map +1 -1
  122. package/dist/mjs/types/Interface/models/ITerminationList.d.ts +1 -0
  123. package/dist/mjs/types/Interface/models/ITerminationList.d.ts.map +1 -1
  124. package/dist/mjs/types/Interface/models/ITerminationList.js.map +1 -1
  125. package/dist/mjs/types/index.d.ts +1 -0
  126. package/dist/mjs/types/index.d.ts.map +1 -1
  127. package/dist/mjs/types/index.js +1 -0
  128. package/dist/mjs/types/index.js.map +1 -1
  129. package/dist/mjs/utils/commercialManagement/internationalization/choices.js +2 -2
  130. package/dist/mjs/utils/commercialManagement/internationalization/choices.js.map +1 -1
  131. package/dist/mjs/utils/commercialManagement/templates/body.js +1 -1
  132. package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
  133. package/dist/mjs/utils/commercialManagement/templates/common.js +1 -1
  134. package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
  135. package/package.json +1 -1
  136. package/ts/api/resources/Brevo.ts +5 -5
  137. package/ts/api/resources/CommercialConditionOfSale.ts +20 -0
  138. package/ts/api/resources/CommercialDocumentTemplate.ts +20 -0
  139. package/ts/api/resources/CommercialEmail.ts +20 -0
  140. package/ts/api/resources/Dashboard.ts +6 -0
  141. package/ts/api/resources.ts +6 -0
  142. package/ts/types/Enum/PaymentRecovery.ts +150 -0
  143. package/ts/types/Enum/QualificationLead.ts +35 -0
  144. package/ts/types/Interface/api/brevo/BrevoElement.ts +22 -8
  145. package/ts/types/Interface/api/brevo/Read.ts +13 -1
  146. package/ts/types/Interface/api/commercialManagement/Create.ts +0 -4
  147. package/ts/types/Interface/api/commercialManagement/Query.ts +21 -0
  148. package/ts/types/Interface/api/commercialManagement/Read.ts +10 -1
  149. package/ts/types/Interface/api/terminationList/CreateTerminationList.ts +10 -0
  150. package/ts/types/Interface/models/ITerminationList.ts +1 -0
  151. package/ts/types/index.ts +1 -0
  152. package/ts/utils/commercialManagement/internationalization/choices.ts +2 -2
  153. package/ts/utils/commercialManagement/templates/body.ts +1 -1
  154. package/ts/utils/commercialManagement/templates/common.ts +1 -1
@@ -25,6 +25,108 @@ export enum PaymentRecoveryEvent {
25
25
  SUBMITTED = 'submitted',
26
26
  SENT_TO_AMICABLE_SETTLEMENT = 'sentToAmicableSettlement',
27
27
  }
28
+ export const PaymentRecoveryEventDetails = [
29
+ {
30
+ slug: PaymentRecoveryEvent.NEW_PAYMENT,
31
+ description: 'Versement reçu'
32
+ },
33
+ {
34
+ slug: PaymentRecoveryEvent.AROK,
35
+ description: 'Dossier pris en charge par l\'étude'
36
+ },
37
+ {
38
+ slug: PaymentRecoveryEvent.DISPUTE,
39
+ description: 'Le débiteur conteste la créance'
40
+ },
41
+ {
42
+ slug: PaymentRecoveryEvent.NO_ANSWER,
43
+ description: 'Le débiteur ne répond pas'
44
+ },
45
+ {
46
+ slug: PaymentRecoveryEvent.CLAIM_ENDED_RJ,
47
+ description: 'Le débiteur est en redressement judiciaire'
48
+ },
49
+ {
50
+ slug: PaymentRecoveryEvent.CLAIM_ENDED_LJ,
51
+ description: 'Le débiteur est en liquidation judiciaire'
52
+ },
53
+ {
54
+ slug: PaymentRecoveryEvent.CLAIM_ENDED_PAYED,
55
+ description: 'Les sommes dues ont été réglées'
56
+ },
57
+ {
58
+ slug: PaymentRecoveryEvent.CLAIM_ENDED,
59
+ description: 'Dossier clôturé en amiable'
60
+ },
61
+ {
62
+ slug: PaymentRecoveryEvent.PAY_SCHEDULE_SETUP,
63
+ description: 'Le débiteur accepte de régler'
64
+ },
65
+ {
66
+ slug: PaymentRecoveryEvent.PAY_SCHEDULE_ERROR,
67
+ description: 'Le débiteur n\'a pas respecté son échéance de paiement'
68
+ },
69
+ {
70
+ slug: PaymentRecoveryEvent.NEW_ACTION,
71
+ description: 'Nouvelle action réalisée'
72
+ },
73
+ {
74
+ slug: PaymentRecoveryEvent.COURT_SETTLEMENT_PAID,
75
+ description: 'Frais de recouvrement réglés : lancement procédure judiciaire'
76
+ },
77
+ {
78
+ slug: PaymentRecoveryEvent.NEW_PAYMENT_CLIENT,
79
+ description: 'Un nouveau versement a été effectué sur votre compte'
80
+ },
81
+ {
82
+ slug: PaymentRecoveryEvent.FILED_IP,
83
+ description: 'Votre facture a été déposée au tribunal'
84
+ },
85
+ {
86
+ slug: PaymentRecoveryEvent.IP_OK,
87
+ description: 'Votre injonction de payer a été obtenue'
88
+ },
89
+ {
90
+ slug: PaymentRecoveryEvent.IP_KO,
91
+ description: 'Votre injonction de payer a été refusée'
92
+ },
93
+ {
94
+ slug: PaymentRecoveryEvent.SIGNIFIED_IP,
95
+ description: 'Votre injonction de payer a été présentée et signifiée auprès de votre débiteur'
96
+ },
97
+ {
98
+ slug: PaymentRecoveryEvent.ON_GOING_NEGOCIAITION,
99
+ description: 'Négociation en cours'
100
+ },
101
+ {
102
+ slug: PaymentRecoveryEvent.IP_PARTIEL,
103
+ description: 'Votre injonction de payer a été obtenue partiellement'
104
+ },
105
+ {
106
+ slug: PaymentRecoveryEvent.DIRECT_PAYMENT_TO_DEBTOR,
107
+ description: 'Demande de suspension temporaire'
108
+ },
109
+ {
110
+ slug: PaymentRecoveryEvent.CLAIM_DELETION_REQUEST,
111
+ description: 'Demande de suspension définitive'
112
+ },
113
+ {
114
+ slug: PaymentRecoveryEvent.TEMPORARY_PAUSE_REQUEST,
115
+ description: 'Demande de suspension temporaire'
116
+ },
117
+ {
118
+ slug: PaymentRecoveryEvent.SENT_TO_COURT_SETTLEMENT,
119
+ description: 'Facture envoyée à l\'étude, en attente de paiement'
120
+ },
121
+ {
122
+ slug: PaymentRecoveryEvent.SUBMITTED,
123
+ description: 'Facture déposée'
124
+ },
125
+ {
126
+ slug: PaymentRecoveryEvent.SENT_TO_AMICABLE_SETTLEMENT,
127
+ description: 'Facture envoyée à l\'étude'
128
+ },
129
+ ];
28
130
 
29
131
  export enum PaymentRecoveryStatus {
30
132
  OPENED = 'opened',
@@ -38,6 +140,54 @@ export enum PaymentRecoveryStatus {
38
140
  SENT_TO_COURT = 'sent_to_court',
39
141
  }
40
142
 
143
+ export const PaymentRecoveryStatusDetails = [
144
+ {
145
+ slug: PaymentRecoveryStatus.OPENED,
146
+ shortLabel: 'En attente',
147
+ label: 'Facture déposée sur la plateforme'
148
+ },
149
+ {
150
+ slug: PaymentRecoveryStatus.SENT_TO_AMICABLE,
151
+ shortLabel: 'Envoyée',
152
+ label: 'Facture envoyée à l\'étude de Commissaires de Justice'
153
+ },
154
+ {
155
+ slug: PaymentRecoveryStatus.AMICABLE_SETTLEMENT,
156
+ shortLabel: 'Amiable',
157
+ label: 'Facture en recouvrement amiable'
158
+ },
159
+ {
160
+ slug: PaymentRecoveryStatus.RJ,
161
+ shortLabel: 'Red. jud.',
162
+ label: 'Dossier clôturé : le débiteur est en Redressement Judiciaire'
163
+ },
164
+ {
165
+ slug: PaymentRecoveryStatus.LJ,
166
+ shortLabel: 'Liq. jud.',
167
+ label: 'Dossier clôturé : le débiteur est en Liquidation Judiciaire'
168
+ },
169
+ {
170
+ slug: PaymentRecoveryStatus.PAYED,
171
+ shortLabel: 'Recouvré',
172
+ label: 'Les sommes dues ont été réglées'
173
+ },
174
+ {
175
+ slug: PaymentRecoveryStatus.CLOSED,
176
+ shortLabel: 'Clôturé',
177
+ label: 'Dossier clôturé'
178
+ },
179
+ {
180
+ slug: PaymentRecoveryStatus.JUDICIARY_PROCEDURE,
181
+ shortLabel: 'Judiciaire',
182
+ label: 'Facture en recouvrement judiciaire'
183
+ },
184
+ {
185
+ slug: PaymentRecoveryStatus.SENT_TO_COURT,
186
+ shortLabel: 'Env. jud.',
187
+ label: 'Facture envoyée à l\'étude de Commissaires de Justice pour procédure judiciaire'
188
+ },
189
+ ];
190
+
41
191
  export enum PaymentRecoveryTag {
42
192
  RECOVERED = 'recovered',
43
193
  WAITING = 'waiting',
@@ -0,0 +1,35 @@
1
+ export enum QualificationLead {
2
+ NOT_SUBSCRIBED = 1,
3
+ SMALL_INTEREST = 2,
4
+ NEUTRAL = 3,
5
+ INTERESSEMENT = 4,
6
+ VERY_INTERESSEMENT = 5,
7
+ PROMISE_CONTRACT = 6,
8
+ }
9
+
10
+ export const QualificationLeadType: Array<{ id: QualificationLead, label: string }> = [
11
+ {
12
+ id: QualificationLead.NOT_SUBSCRIBED,
13
+ label: 'Non souscris/abandon',
14
+ },
15
+ {
16
+ id: QualificationLead.SMALL_INTEREST,
17
+ label: 'Peu intéressé',
18
+ },
19
+ {
20
+ id: QualificationLead.NEUTRAL,
21
+ label: 'Neutre',
22
+ },
23
+ {
24
+ id: QualificationLead.INTERESSEMENT,
25
+ label: 'Intéressé',
26
+ },
27
+ {
28
+ id: QualificationLead.VERY_INTERESSEMENT,
29
+ label: 'Très intéressé',
30
+ },
31
+ {
32
+ id: QualificationLead.PROMISE_CONTRACT,
33
+ label: 'Promesse contrat',
34
+ },
35
+ ];
@@ -1,4 +1,5 @@
1
1
  import {
2
+ IsArray,
2
3
  IsInt, IsNotEmpty, IsNumber, IsOptional, IsString,
3
4
  } from 'class-validator';
4
5
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
@@ -35,15 +36,10 @@ export class CreateContact {
35
36
 
36
37
  }
37
38
 
38
- export class ChangeContact {
39
+ export class GetContact {
39
40
  @ApiProperty()
40
- @IsString({ each: true })
41
- email: string[];
42
-
43
-
44
- @ApiProperty()
45
- @IsNumber()
46
- listId: number;
41
+ @IsString()
42
+ email: string;
47
43
  }
48
44
 
49
45
  export class UpdateContact {
@@ -54,4 +50,22 @@ export class UpdateContact {
54
50
 
55
51
  @ApiProperty()
56
52
  attributes: Partial<CreateContact>;
53
+ }
54
+
55
+ export class ChangeContact {
56
+ @ApiProperty()
57
+ @IsString({ each: true })
58
+ email: string[];
59
+
60
+
61
+ @ApiProperty()
62
+ @IsNumber()
63
+ listId: number;
64
+ }
65
+
66
+ export class BrevoTermination {
67
+ @ApiPropertyOptional()
68
+ @IsOptional()
69
+ @IsArray()
70
+ idSociety: number[];
57
71
  }
@@ -1,7 +1,19 @@
1
- export type ReadContact = {
1
+ export type ReadCreateContact = {
2
2
  id: number,
3
3
  }
4
4
 
5
+ export type ReadGetContact = {
6
+ email: string,
7
+ id: number,
8
+ emailBlacklisted: boolean,
9
+ smsBlacklisted: boolean,
10
+ createdAt: Date,
11
+ modifiedAt: Date,
12
+ attributes: object
13
+ listIds: number[],
14
+ statistics: object
15
+ }
16
+
5
17
  export type ReadContactChange = {
6
18
  contacts: {
7
19
  success: string[],
@@ -576,10 +576,6 @@ export class CreateSaleEmail {
576
576
  @IsBoolean()
577
577
  @ToBoolean()
578
578
  isDefault?: boolean;
579
-
580
- @ApiProperty()
581
- @IsInt()
582
- idSociety: number;
583
579
  }
584
580
 
585
581
  export class UpdateSaleEmail {
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  IsArray, IsBoolean, IsDateString, IsInt, IsNumber, IsOptional, IsString,
3
+ Min,
3
4
  } from 'class-validator';
4
5
  import { Order } from '../../..';
5
6
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
@@ -175,4 +176,24 @@ export class QueryExportCommercialManagementIntoCSV {
175
176
  @ApiProperty()
176
177
  @IsArray()
177
178
  types: EstimateInvoiceType[];
179
+ }
180
+
181
+ export class QueryRecentActivity {
182
+ @ApiPropertyOptional()
183
+ @IsOptional()
184
+ @IsInt()
185
+ @Min(1)
186
+ page?: number;
187
+
188
+ @ApiPropertyOptional()
189
+ @IsOptional()
190
+ @IsInt()
191
+ @Min(1)
192
+ limit?: number;
193
+
194
+
195
+ @ApiPropertyOptional()
196
+ @IsOptional()
197
+ @IsString()
198
+ search?: string;
178
199
  }
@@ -106,4 +106,13 @@ export type ReadCommercialMailTemplate = {
106
106
 
107
107
  export type ReadSaleEmail = ISaleEmail & {
108
108
  defaultFromApplication: boolean;
109
- };
109
+ };
110
+
111
+ export type ReadRecentActivity = {
112
+ id: number;
113
+ type: 'estimate' | 'product' | 'tier';
114
+ label: string;
115
+ updatedAt: string;
116
+ // i don't know if needed, it is in the type but not return from service for now
117
+ item?: IEstimateInvoice | IProductInvoice | IThirdParty;
118
+ }
@@ -161,6 +161,16 @@ export class UpdateTerminationList {
161
161
  @IsInt()
162
162
  idRefund?: number;
163
163
 
164
+ @ApiPropertyOptional()
165
+ @IsOptional()
166
+ @IsNumber()
167
+ commercialGestureAmount?: number;
168
+
169
+ @ApiPropertyOptional()
170
+ @IsOptional()
171
+ @IsInt({each: true})
172
+ listIdTypeBrand?: number[];
173
+
164
174
  @ApiPropertyOptional()
165
175
  @IsOptional()
166
176
  @IsNumber()
@@ -22,6 +22,7 @@ export interface ITerminationList {
22
22
  monthlyPrice?: number | null;
23
23
  monthNumber?: number | null;
24
24
  monthOffer?: number | null;
25
+ commercialGestureAmount?: number | null;
25
26
  idReasonTermination?: number[] | null;
26
27
  idSociety?: number | null;
27
28
  idPrestation?: number | null;
package/ts/types/index.ts CHANGED
@@ -564,6 +564,7 @@ export * from './Enum/JuridicalSociety';
564
564
  export * from './Enum/Pdf2PicLocalType';
565
565
  export * from './Enum/DocumentForHumanResourceType';
566
566
  export * from './Enum/ReasonCancelSignatureRequest';
567
+ export * from './Enum/QualificationLead';
567
568
 
568
569
  // Interfaces API
569
570
  export * from './Interface/api/exercice/ReadExercice';
@@ -129,7 +129,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
129
129
  estimate: {
130
130
  headers: {
131
131
  title: 'Devis',
132
- dueDate: 'Valide jusq\'au',
132
+ dueDate: 'Valide jusqu\'au',
133
133
  termsOfPayment: 'Conditions de règlement',
134
134
  },
135
135
  },
@@ -143,7 +143,7 @@ export const internationalizationChoices: InternationalizationChoicesType = {
143
143
  },
144
144
  deposit: {
145
145
  headers: {
146
- title: 'Accompte',
146
+ title: 'Acompte',
147
147
  expirationDate: 'Date d\'expiration',
148
148
  termsOfPayment: 'Date limite de règlement',
149
149
  },
@@ -92,7 +92,7 @@ export const bodyTemplate = `<html class="pdf-content">
92
92
  <div>
93
93
  ${commonTemplate.amountRecapitulation}
94
94
 
95
- <% if (isStripeAllowed) { %>
95
+ <% if (isStripeAllowed && ![${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) { %>
96
96
  <div style="text-align: right; margin-top: 30px;">${commonTemplate.paymentButton}</div>
97
97
  <% } %>
98
98
  </div>
@@ -245,7 +245,7 @@ export class CommercialDocumentCommonHTML {
245
245
  .pdf-content .logo-placeholder { width: 300px; max-height: 150px;text-align: <%= settings && settings.logoAlignment === 'left' ? 'left' : 'right' %>; margin-bottom: <%= settings && settings.logoAlignment === 'left' ? '10px;' : '0px' %>}
246
246
  .pdf-content .logo-placeholder > svg, .pdf-content .logo-placeholder > img { max-width: 100%; max-height: 150px; }
247
247
  .pdf-content .document-reference { font-size: 20px !important; }
248
- .pdf-content .customer-border { border: <%= settings && settings.customerBlockBorderThickness ? settings.customerBlockBorderThickness + 'px' : '2px' %> solid <% settings && settings.customerBlockBorderColor ? settings.customerBlockBorderColor : '#EAEAEA' %>; border-radius: 6px; padding: 7px; }
248
+ .pdf-content .customer-border { border: <%= settings && settings.customerBlockBorderThickness ? settings.customerBlockBorderThickness + 'px' : '2px' %> solid <%= settings && settings.customerBlockBorderColor ? settings.customerBlockBorderColor : '#EAEAEA' %>; border-radius: 6px; padding: 7px; }
249
249
 
250
250
  /* Body */
251
251
  .pdf-content table.commercial-table-preview { border-spacing: 1px; border-collapse: collapse; }