@silexpert/core 1.3.153 → 1.3.155

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 (198) hide show
  1. package/dist/cjs/api/resources/Partner.d.ts +2 -1
  2. package/dist/cjs/api/resources/Partner.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Partner.js +9 -0
  4. package/dist/cjs/api/resources/Partner.js.map +1 -1
  5. package/dist/cjs/api/resources/StripeCustomer.d.ts +6 -0
  6. package/dist/cjs/api/resources/StripeCustomer.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/StripeCustomer.js +11 -0
  8. package/dist/cjs/api/resources/StripeCustomer.js.map +1 -0
  9. package/dist/cjs/api/resources.d.ts +0 -2
  10. package/dist/cjs/api/resources.d.ts.map +1 -1
  11. package/dist/cjs/api/resources.js +0 -2
  12. package/dist/cjs/api/resources.js.map +1 -1
  13. package/dist/cjs/types/Enum/Ged.d.ts +2 -1
  14. package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/Ged.js +1 -0
  16. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  17. package/dist/cjs/types/Enum/InternalService.d.ts +4 -0
  18. package/dist/cjs/types/Enum/InternalService.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/InternalService.js +4 -0
  20. package/dist/cjs/types/Enum/InternalService.js.map +1 -1
  21. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  22. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/ReasonTerminationType.js +6 -0
  24. package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
  25. package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  26. package/dist/cjs/types/Enum/TaskResponseType.js +17 -6
  27. package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
  28. package/dist/cjs/types/Enum/VisualizedInformation.d.ts +2 -1
  29. package/dist/cjs/types/Enum/VisualizedInformation.d.ts.map +1 -1
  30. package/dist/cjs/types/Enum/VisualizedInformation.js +1 -0
  31. package/dist/cjs/types/Enum/VisualizedInformation.js.map +1 -1
  32. package/dist/cjs/types/Interface/api/partner/Query.d.ts +5 -0
  33. package/dist/cjs/types/Interface/api/partner/Query.d.ts.map +1 -1
  34. package/dist/cjs/types/Interface/api/partner/Query.js +29 -1
  35. package/dist/cjs/types/Interface/api/partner/Query.js.map +1 -1
  36. package/dist/cjs/types/Interface/api/revision/Query.d.ts +4 -0
  37. package/dist/cjs/types/Interface/api/revision/Query.d.ts.map +1 -1
  38. package/dist/cjs/types/Interface/api/revision/Query.js +28 -0
  39. package/dist/cjs/types/Interface/api/revision/Query.js.map +1 -1
  40. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +4 -0
  41. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  42. package/dist/cjs/types/Interface/api/stripe/Create.js +16 -1
  43. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  44. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +6 -0
  45. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  46. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +25 -1
  47. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  48. package/dist/cjs/types/Interface/models/ISociety.d.ts +1 -0
  49. package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
  50. package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
  51. package/dist/cjs/types/index.d.ts +0 -6
  52. package/dist/cjs/types/index.d.ts.map +1 -1
  53. package/dist/cjs/types/index.js +0 -6
  54. package/dist/cjs/types/index.js.map +1 -1
  55. package/dist/cjs/utils/brands.d.ts.map +1 -1
  56. package/dist/cjs/utils/brands.js.map +1 -1
  57. package/dist/cjs/utils/vat/3517/century25.d.ts.map +1 -1
  58. package/dist/cjs/utils/vat/3517/century25.js +8 -14
  59. package/dist/cjs/utils/vat/3517/century25.js.map +1 -1
  60. package/dist/mjs/api/resources/Partner.d.ts +2 -1
  61. package/dist/mjs/api/resources/Partner.d.ts.map +1 -1
  62. package/dist/mjs/api/resources/Partner.js +9 -0
  63. package/dist/mjs/api/resources/Partner.js.map +1 -1
  64. package/dist/mjs/api/resources/StripeCustomer.d.ts +6 -0
  65. package/dist/mjs/api/resources/StripeCustomer.d.ts.map +1 -0
  66. package/dist/mjs/api/resources/StripeCustomer.js +7 -0
  67. package/dist/mjs/api/resources/StripeCustomer.js.map +1 -0
  68. package/dist/mjs/api/resources.d.ts +0 -2
  69. package/dist/mjs/api/resources.d.ts.map +1 -1
  70. package/dist/mjs/api/resources.js +0 -2
  71. package/dist/mjs/api/resources.js.map +1 -1
  72. package/dist/mjs/types/Enum/Ged.d.ts +2 -1
  73. package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
  74. package/dist/mjs/types/Enum/Ged.js +1 -0
  75. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  76. package/dist/mjs/types/Enum/InternalService.d.ts +4 -0
  77. package/dist/mjs/types/Enum/InternalService.d.ts.map +1 -1
  78. package/dist/mjs/types/Enum/InternalService.js +4 -0
  79. package/dist/mjs/types/Enum/InternalService.js.map +1 -1
  80. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  81. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  82. package/dist/mjs/types/Enum/ReasonTerminationType.js +6 -0
  83. package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
  84. package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  85. package/dist/mjs/types/Enum/TaskResponseType.js +17 -6
  86. package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
  87. package/dist/mjs/types/Enum/VisualizedInformation.d.ts +2 -1
  88. package/dist/mjs/types/Enum/VisualizedInformation.d.ts.map +1 -1
  89. package/dist/mjs/types/Enum/VisualizedInformation.js +1 -0
  90. package/dist/mjs/types/Enum/VisualizedInformation.js.map +1 -1
  91. package/dist/mjs/types/Interface/api/partner/Query.d.ts +5 -0
  92. package/dist/mjs/types/Interface/api/partner/Query.d.ts.map +1 -1
  93. package/dist/mjs/types/Interface/api/partner/Query.js +31 -1
  94. package/dist/mjs/types/Interface/api/partner/Query.js.map +1 -1
  95. package/dist/mjs/types/Interface/api/revision/Query.d.ts +4 -0
  96. package/dist/mjs/types/Interface/api/revision/Query.d.ts.map +1 -1
  97. package/dist/mjs/types/Interface/api/revision/Query.js +32 -0
  98. package/dist/mjs/types/Interface/api/revision/Query.js.map +1 -1
  99. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +4 -0
  100. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  101. package/dist/mjs/types/Interface/api/stripe/Create.js +16 -0
  102. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  103. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +6 -0
  104. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  105. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +27 -0
  106. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  107. package/dist/mjs/types/Interface/models/ISociety.d.ts +1 -0
  108. package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
  109. package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
  110. package/dist/mjs/types/index.d.ts +0 -6
  111. package/dist/mjs/types/index.d.ts.map +1 -1
  112. package/dist/mjs/types/index.js +0 -6
  113. package/dist/mjs/types/index.js.map +1 -1
  114. package/dist/mjs/utils/brands.d.ts.map +1 -1
  115. package/dist/mjs/utils/brands.js.map +1 -1
  116. package/dist/mjs/utils/vat/3517/century25.d.ts.map +1 -1
  117. package/dist/mjs/utils/vat/3517/century25.js +3 -9
  118. package/dist/mjs/utils/vat/3517/century25.js.map +1 -1
  119. package/package.json +1 -1
  120. package/ts/api/resources/Partner.ts +11 -0
  121. package/ts/api/resources/StripeCustomer.ts +8 -0
  122. package/ts/api/resources.ts +0 -2
  123. package/ts/types/Enum/Ged.ts +1 -0
  124. package/ts/types/Enum/InternalService.ts +4 -0
  125. package/ts/types/Enum/ReasonTerminationType.ts +6 -0
  126. package/ts/types/Enum/TaskResponseType.ts +17 -6
  127. package/ts/types/Enum/VisualizedInformation.ts +1 -0
  128. package/ts/types/Interface/api/partner/Query.ts +25 -1
  129. package/ts/types/Interface/api/revision/Query.ts +24 -0
  130. package/ts/types/Interface/api/stripe/Create.ts +12 -0
  131. package/ts/types/Interface/api/stripe/QueryStripe.ts +19 -0
  132. package/ts/types/Interface/models/ISociety.ts +1 -0
  133. package/ts/types/index.ts +0 -6
  134. package/ts/utils/brands.ts +0 -1
  135. package/ts/utils/vat/3517/century25.ts +3 -9
  136. package/dist/cjs/api/resources/Contest.d.ts +0 -12
  137. package/dist/cjs/api/resources/Contest.d.ts.map +0 -1
  138. package/dist/cjs/api/resources/Contest.js +0 -43
  139. package/dist/cjs/api/resources/Contest.js.map +0 -1
  140. package/dist/cjs/types/Enum/Contest.d.ts +0 -6
  141. package/dist/cjs/types/Enum/Contest.d.ts.map +0 -1
  142. package/dist/cjs/types/Enum/Contest.js +0 -10
  143. package/dist/cjs/types/Enum/Contest.js.map +0 -1
  144. package/dist/cjs/types/Interface/api/contest/Create.d.ts +0 -47
  145. package/dist/cjs/types/Interface/api/contest/Create.d.ts.map +0 -1
  146. package/dist/cjs/types/Interface/api/contest/Create.js +0 -201
  147. package/dist/cjs/types/Interface/api/contest/Create.js.map +0 -1
  148. package/dist/cjs/types/Interface/api/contest/Query.d.ts +0 -9
  149. package/dist/cjs/types/Interface/api/contest/Query.d.ts.map +0 -1
  150. package/dist/cjs/types/Interface/api/contest/Query.js +0 -46
  151. package/dist/cjs/types/Interface/api/contest/Query.js.map +0 -1
  152. package/dist/cjs/types/Interface/api/contest/Read.d.ts +0 -6
  153. package/dist/cjs/types/Interface/api/contest/Read.d.ts.map +0 -1
  154. package/dist/cjs/types/Interface/api/contest/Read.js +0 -3
  155. package/dist/cjs/types/Interface/api/contest/Read.js.map +0 -1
  156. package/dist/cjs/types/Interface/models/IContest.d.ts +0 -18
  157. package/dist/cjs/types/Interface/models/IContest.d.ts.map +0 -1
  158. package/dist/cjs/types/Interface/models/IContest.js +0 -3
  159. package/dist/cjs/types/Interface/models/IContest.js.map +0 -1
  160. package/dist/cjs/types/Interface/models/IUserContest.d.ts +0 -24
  161. package/dist/cjs/types/Interface/models/IUserContest.d.ts.map +0 -1
  162. package/dist/cjs/types/Interface/models/IUserContest.js +0 -3
  163. package/dist/cjs/types/Interface/models/IUserContest.js.map +0 -1
  164. package/dist/mjs/api/resources/Contest.d.ts +0 -12
  165. package/dist/mjs/api/resources/Contest.d.ts.map +0 -1
  166. package/dist/mjs/api/resources/Contest.js +0 -39
  167. package/dist/mjs/api/resources/Contest.js.map +0 -1
  168. package/dist/mjs/types/Enum/Contest.d.ts +0 -6
  169. package/dist/mjs/types/Enum/Contest.d.ts.map +0 -1
  170. package/dist/mjs/types/Enum/Contest.js +0 -7
  171. package/dist/mjs/types/Enum/Contest.js.map +0 -1
  172. package/dist/mjs/types/Interface/api/contest/Create.d.ts +0 -47
  173. package/dist/mjs/types/Interface/api/contest/Create.d.ts.map +0 -1
  174. package/dist/mjs/types/Interface/api/contest/Create.js +0 -228
  175. package/dist/mjs/types/Interface/api/contest/Create.js.map +0 -1
  176. package/dist/mjs/types/Interface/api/contest/Query.d.ts +0 -9
  177. package/dist/mjs/types/Interface/api/contest/Query.d.ts.map +0 -1
  178. package/dist/mjs/types/Interface/api/contest/Query.js +0 -48
  179. package/dist/mjs/types/Interface/api/contest/Query.js.map +0 -1
  180. package/dist/mjs/types/Interface/api/contest/Read.d.ts +0 -6
  181. package/dist/mjs/types/Interface/api/contest/Read.d.ts.map +0 -1
  182. package/dist/mjs/types/Interface/api/contest/Read.js +0 -2
  183. package/dist/mjs/types/Interface/api/contest/Read.js.map +0 -1
  184. package/dist/mjs/types/Interface/models/IContest.d.ts +0 -18
  185. package/dist/mjs/types/Interface/models/IContest.d.ts.map +0 -1
  186. package/dist/mjs/types/Interface/models/IContest.js +0 -2
  187. package/dist/mjs/types/Interface/models/IContest.js.map +0 -1
  188. package/dist/mjs/types/Interface/models/IUserContest.d.ts +0 -24
  189. package/dist/mjs/types/Interface/models/IUserContest.d.ts.map +0 -1
  190. package/dist/mjs/types/Interface/models/IUserContest.js +0 -2
  191. package/dist/mjs/types/Interface/models/IUserContest.js.map +0 -1
  192. package/ts/api/resources/Contest.ts +0 -45
  193. package/ts/types/Enum/Contest.ts +0 -5
  194. package/ts/types/Interface/api/contest/Create.ts +0 -149
  195. package/ts/types/Interface/api/contest/Query.ts +0 -26
  196. package/ts/types/Interface/api/contest/Read.ts +0 -6
  197. package/ts/types/Interface/models/IContest.ts +0 -20
  198. package/ts/types/Interface/models/IUserContest.ts +0 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.153",
3
+ "version": "1.3.155",
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": "dist/cjs/index.js",
@@ -9,6 +9,7 @@ import {
9
9
  GetPartnerSolde,
10
10
  ReadPartnerSolde,
11
11
  BasePaginate,
12
+ GetPartnersCurrentAcountsExport,
12
13
  } from '../../types';
13
14
 
14
15
  export class Partner extends Resource {
@@ -33,4 +34,14 @@ export class Partner extends Resource {
33
34
  getSolde(params: GetPartnerSolde): Promise<BasePaginate<ReadPartnerSolde>> {
34
35
  return this.axios.$get('partners/solde', { params });
35
36
  }
37
+
38
+ getCurrentAccountExport(params: GetPartnersCurrentAcountsExport): Promise<Buffer> {
39
+ return this.axios.$get('partners/current-accounts/pdf', {
40
+ responseType: 'arraybuffer',
41
+ headers: {
42
+ Accept: 'application/pdf',
43
+ },
44
+ params,
45
+ });
46
+ }
36
47
  }
@@ -0,0 +1,8 @@
1
+ import { CreateCustomerPaymentMethodPortal } from '../../types';
2
+ import { Resource } from '../Resource';
3
+
4
+ export class StripeCustomer extends Resource {
5
+ configurePaymentMethods(payload: CreateCustomerPaymentMethodPortal): Promise<string> {
6
+ return this.axios.post('connector/stripe/customers/configure-payment-methods', payload);
7
+ }
8
+ }
@@ -142,7 +142,6 @@ import { ExercicePrestation } from './resources/ExercicePrestation';
142
142
  import { Equipment } from './resources/Equipment';
143
143
  import { CustomerSignature } from './resources/CustomerSignature';
144
144
  import { IntermediateManagementRebate } from './resources/IntermediateManagementRebate';
145
- import { Contest } from './resources/Contest';
146
145
  import { UserSpecialDay } from './resources/UserSpecialDay';
147
146
  import { OldExpertInfo } from './resources/OldExpertInfos';
148
147
  import { ReportMessage } from './resources/ReportMessage';
@@ -333,7 +332,6 @@ export const resources = {
333
332
  timeTracking: TimeTracking,
334
333
  exercicePrestation: ExercicePrestation,
335
334
  intermediateManagementRebate: IntermediateManagementRebate,
336
- contest: Contest,
337
335
  equipment: Equipment,
338
336
  customerSignature: CustomerSignature,
339
337
  userSpecialDay: UserSpecialDay,
@@ -157,6 +157,7 @@ export enum TypeFile {
157
157
  TAX_NOTICE = 98, // Avis d'imposition (CFE, taxe foncière)
158
158
  SUBSIDY_ALLOCATION_NOTIFICATION = 99, // Notifications d'attribution de subventions publiques
159
159
  FINANCING_CONTRACTS_OR_SUBSIDY_AGREEMENTS = 100, // Contrats de financement ou conventions de subvention
160
+ LDM = 101, // Lettres de mission
160
161
  }
161
162
 
162
163
  export enum GedFileType {
@@ -29,6 +29,10 @@ export const InternalService = {
29
29
  idRole: Role.JURIDIC,
30
30
  name: 'Juridique',
31
31
  },
32
+ SUPPORT_JURIDIQUE: {
33
+ idRole: Role.JURIDICAL_SUPPORT,
34
+ name: 'Support juridique',
35
+ },
32
36
  FACTURATION: {
33
37
  idRole: Role.FACTURATION,
34
38
  name: 'Facturation',
@@ -26,6 +26,7 @@ export enum ReasonTerminationType {
26
26
  LAB_REFUSED = 25,
27
27
  CHANGES_NEW_OFFERS = 26,
28
28
  REJECTION_OF_THE_AMENDMENT = 27,
29
+ CLEANING = 28, //Demandée par Morgane pour supprimer des sociétés qui n'ont pas lieu d'exister
29
30
  }
30
31
 
31
32
  export const ReasonTerminationTypeDetail = [
@@ -164,4 +165,9 @@ export const ReasonTerminationTypeDetail = [
164
165
  label: "Refus de l'avenant",
165
166
  active: true,
166
167
  },
168
+ {
169
+ id: ReasonTerminationType.CLEANING,
170
+ label: 'Nettoyage Clementinier',
171
+ active: true,
172
+ },
167
173
  ];
@@ -98,7 +98,7 @@ export const TaskResponseType = {
98
98
  backToClient: false,
99
99
  goToCalendar: false,
100
100
  responseType: null,
101
- description: 'Comment annoter une facture d\'achat SFR ?',
101
+ description: "Comment annoter une facture d'achat SFR ?",
102
102
  },
103
103
  {
104
104
  id: 6,
@@ -146,7 +146,7 @@ export const TaskResponseType = {
146
146
  },
147
147
  {
148
148
  id: 10,
149
- label: 'Préparation d\'un bilan',
149
+ label: "Préparation d'un bilan",
150
150
  role: Role.MANAGER,
151
151
  deadline: Deadline,
152
152
  isForWholeRole: false,
@@ -331,6 +331,17 @@ export const TaskResponseType = {
331
331
  responseType: null,
332
332
  description: 'Le client à rempli le formulaire de création de société',
333
333
  },
334
+ {
335
+ id: 27,
336
+ label: 'Mise à jour INPI',
337
+ role: Role.FACTURATION,
338
+ deadline: Deadline,
339
+ isForWholeRole: true,
340
+ backToClient: false,
341
+ goToCalendar: false,
342
+ responseType: null,
343
+ description: "la société à été mise à jour sur l'INPI",
344
+ },
334
345
  ],
335
346
  },
336
347
  EXTERN: {
@@ -401,7 +412,7 @@ export const TaskResponseType = {
401
412
  backToClient: true,
402
413
  goToCalendar: false,
403
414
  responseType: ResponseType.MAIL,
404
- description: 'Resiliation du client car 6 mois d\'impayés.',
415
+ description: "Resiliation du client car 6 mois d'impayés.",
405
416
  },
406
417
  {
407
418
  id: 10,
@@ -526,7 +537,7 @@ export const TaskResponseType = {
526
537
  },
527
538
  {
528
539
  id: 34,
529
- label: 'Mettre à jour l\'application',
540
+ label: "Mettre à jour l'application",
530
541
  role: Role.DATA_OFFICER,
531
542
  deadline: Deadline,
532
543
  isForWholeRole: true,
@@ -537,7 +548,7 @@ export const TaskResponseType = {
537
548
  },
538
549
  {
539
550
  id: 35,
540
- label: 'Mettre à jour l\'application',
551
+ label: "Mettre à jour l'application",
541
552
  role: Role.DATA_OFFICER,
542
553
  deadline: Deadline,
543
554
  isForWholeRole: false,
@@ -570,7 +581,7 @@ export const TaskResponseType = {
570
581
  },
571
582
  {
572
583
  id: 38,
573
- label: 'Pas de réponse à l\'onboarding',
584
+ label: "Pas de réponse à l'onboarding",
574
585
  role: Role.COMMERCIAL,
575
586
  deadline: Deadline,
576
587
  isForWholeRole: false,
@@ -1,4 +1,5 @@
1
1
  export enum VisualizedInformationState {
2
2
  CANCELED = 0,
3
3
  APPROVED = 1,
4
+ PENDING = 2,
4
5
  }
@@ -1,4 +1,4 @@
1
- import { IsBoolean, IsOptional } from 'class-validator';
1
+ import { IsBoolean, IsOptional, IsNumber, IsString, IsDateString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
@@ -12,28 +12,52 @@ export class GetPartners {
12
12
 
13
13
  export class GetPartnersCurrentAccounts {
14
14
  @ApiProperty()
15
+ @IsString()
15
16
  startDate!: string;
16
17
 
17
18
  @ApiProperty()
19
+ @IsString()
18
20
  endDate!: string;
19
21
 
20
22
  @ApiPropertyOptional()
21
23
  descending?: boolean;
22
24
 
23
25
  @ApiPropertyOptional()
26
+ @IsString()
27
+ @IsOptional()
24
28
  orderBy?: string;
25
29
  }
26
30
 
27
31
  export class GetPartnerSolde {
28
32
  @ApiProperty()
33
+ @IsString()
29
34
  endDate!: string;
30
35
 
31
36
  @ApiProperty()
37
+ @IsNumber()
32
38
  page: number;
33
39
 
34
40
  @ApiProperty()
41
+ @IsNumber()
35
42
  limit: number;
36
43
 
37
44
  @ApiPropertyOptional()
45
+ @IsString()
46
+ @IsOptional()
38
47
  search?: string;
39
48
  }
49
+
50
+ export class GetPartnersCurrentAcountsExport {
51
+ @ApiProperty()
52
+ @IsDateString()
53
+ startDate!: string;
54
+
55
+ @ApiProperty()
56
+ @IsDateString()
57
+ endDate!: string;
58
+
59
+ @ApiPropertyOptional()
60
+ @IsNumber()
61
+ @IsOptional()
62
+ idPartner?: number;
63
+ }
@@ -46,6 +46,12 @@ export class QueryRevision extends RequiredQueryPaginate {
46
46
  @IsBoolean()
47
47
  @ToBoolean()
48
48
  descending?: boolean;
49
+
50
+ @ApiPropertyOptional()
51
+ @IsOptional()
52
+ @IsBoolean()
53
+ @ToBoolean()
54
+ omitLettering?: boolean;
49
55
  }
50
56
 
51
57
  export class QueryRevisionThirdParty extends RequiredQueryPaginate {
@@ -95,6 +101,12 @@ export class QueryRevisionThirdParty extends RequiredQueryPaginate {
95
101
  @IsBoolean()
96
102
  @ToBoolean()
97
103
  descending?: boolean;
104
+
105
+ @ApiPropertyOptional()
106
+ @IsOptional()
107
+ @IsBoolean()
108
+ @ToBoolean()
109
+ omitLettering?: boolean;
98
110
  }
99
111
 
100
112
  export class QueryRevisionAccount implements QueryPaginate {
@@ -346,6 +358,12 @@ export class QueryRevisionThirdPartyPaginate {
346
358
  @ApiProperty({ default: 1 })
347
359
  @IsNumber()
348
360
  page?: number = 1;
361
+
362
+ @ApiPropertyOptional()
363
+ @IsOptional()
364
+ @IsBoolean()
365
+ @ToBoolean()
366
+ omitLettering?: boolean;
349
367
  }
350
368
 
351
369
  export class QueryRevisionSearchEntries {
@@ -439,6 +457,12 @@ export class QueryRevisionSearchEntries {
439
457
  @ApiProperty({ default: 1 })
440
458
  @IsNumber()
441
459
  page?: number = 1;
460
+
461
+ @ApiPropertyOptional()
462
+ @IsOptional()
463
+ @IsBoolean()
464
+ @ToBoolean()
465
+ omitLettering?: boolean;
442
466
  }
443
467
 
444
468
  export class QuerySupervision {
@@ -240,3 +240,15 @@ export class CreatePaymentLocation {
240
240
  @IsInt()
241
241
  idCountry: number;
242
242
  }
243
+
244
+ export class CreateCustomerPaymentMethodPortal {
245
+ @ApiPropertyOptional()
246
+ @IsBoolean()
247
+ @ToBoolean()
248
+ @IsOptional()
249
+ isSoftware?: boolean;
250
+
251
+ @ApiProperty()
252
+ @IsNumber()
253
+ dueDay: number;
254
+ }
@@ -48,3 +48,22 @@ export class QueryStripePaymentHook {
48
48
  @ToBoolean()
49
49
  isSoftware?: boolean;
50
50
  }
51
+
52
+ export class QueryProcessCustomerPaymentMethods {
53
+ @ApiProperty({ description: 'Context identifier to link the visualized information' })
54
+ @IsString()
55
+ context: string;
56
+
57
+ @ApiProperty()
58
+ @IsBoolean()
59
+ @ToBoolean()
60
+ isSoftware: boolean;
61
+
62
+ @ApiProperty()
63
+ @IsNumber()
64
+ idUser: number;
65
+
66
+ @ApiProperty()
67
+ @IsNumber()
68
+ dueDay: number;
69
+ }
@@ -141,6 +141,7 @@ export interface ISociety {
141
141
  folderNote?: string | null;
142
142
  oldNafCode?: string | null;
143
143
  dateSendAdvise?: Date | null;
144
+ inpiDate?: Date | null;
144
145
  idUserAdvise?: number | null;
145
146
  idVatForInternalInvoicing?: number;
146
147
  dateFirstSendUnpaid?: Date | null;
package/ts/types/index.ts CHANGED
@@ -300,8 +300,6 @@ export * from './Interface/models/IBalanceSheetHistory';
300
300
  export * from './Interface/models/ICard';
301
301
  export * from './Interface/models/ICardHistory';
302
302
  export * from './Interface/models/IDubiousCustomer';
303
- export * from './Interface/models/IUserContest';
304
- export * from './Interface/models/IContest';
305
303
  export * from './Interface/models/IEquipment';
306
304
  export * from './Interface/models/IUserRoomEquipment';
307
305
  export * from './Interface/models/IUserSpecialDay';
@@ -535,7 +533,6 @@ export * from './Enum/ZoneCode';
535
533
  export * from './Enum/TimeSlot';
536
534
  export * from './Enum/StateSynchro';
537
535
  export * from './Enum/RefundReason';
538
- export * from './Enum/Contest';
539
536
  export * from './Enum/LetterResponseType';
540
537
  export * from './Enum/StatusRating';
541
538
  export * from './Enum/TypeSupportForNotation';
@@ -1076,9 +1073,6 @@ export * from './Interface/api/card/UpdateCard';
1076
1073
  export * from './Interface/api/card/ModifyPlanning';
1077
1074
  export * from './Interface/api/notion/NotionResponse';
1078
1075
  export * from './Interface/api/IntermediateManagementRebate';
1079
- export * from './Interface/api/contest/Create';
1080
- export * from './Interface/api/contest/Query';
1081
- export * from './Interface/api/contest/Read';
1082
1076
  export * from './Interface/api/equipment/Query';
1083
1077
  export * from './Interface/api/userRoomEquipment/Query';
1084
1078
  export * from './Interface/api/equipment/StockAmount';
@@ -245,7 +245,6 @@ function getBrand(params?: GetBrandParam): Brand {
245
245
 
246
246
  return brand;
247
247
  }
248
-
249
248
  /**
250
249
  * @deprecated use getBrand()
251
250
  */
@@ -425,7 +425,7 @@ export function getCerfa3517Century25Payload(
425
425
  },
426
426
  total: 0, // Calculé plus bas
427
427
  refund: {
428
- creditRefundable: shouldFillRefund ? (isNil ? 0 : _round(payload.refund?.creditRefundable ?? 0)) : 0,
428
+ creditRefundable: 0, // Calculé plus bas
429
429
  surplus: 0, // Calculé plus bas
430
430
  maximum: 0, // Calculé plus bas
431
431
  asked: isNil ? 0 : _round(payload.refund?.asked ?? 0),
@@ -548,6 +548,7 @@ export function getCerfa3517Century25Payload(
548
548
  data.recapitulation.toPay =
549
549
  data.recapitulation.vatNetDue + data.recapitulation.assimiledTax + data.recapitulation.consumsion;
550
550
 
551
+ data.refund.creditRefundable = shouldFillRefund ? data.net.credit : 0;
551
552
  data.refund.surplus = shouldFillRefund ? data.net.surplus : 0;
552
553
  data.refund.maximum = shouldFillRefund ? data.refund.creditRefundable + data.refund.surplus : 0;
553
554
  data.refund.reportable =
@@ -2398,13 +2399,6 @@ export const cerfa3517Century25Fields: CerfaPayloadForm[] = [
2398
2399
  },
2399
2400
  {
2400
2401
  sectionName: 'Demande de remboursement',
2401
- childrens: [
2402
- { label: 'Remboursement demandé', key: 'refund.asked', type: 'number' },
2403
- {
2404
- label: 'Crédit remboursable dégagé à la clôture de l’année ou de l’exercice',
2405
- key: 'refund.creditRefundable',
2406
- type: 'number',
2407
- },
2408
- ],
2402
+ childrens: [{ label: 'Remboursement demandé', key: 'refund.asked', type: 'number' }],
2409
2403
  },
2410
2404
  ];
@@ -1,12 +0,0 @@
1
- import { IUserContest, IContest, QueryFetchUserContest, CreateUserContest, CreateVoteContest } from '../../types';
2
- import { Resource } from '../Resource';
3
- export declare class Contest extends Resource {
4
- fetchUsers(params: QueryFetchUserContest): Promise<IUserContest[]>;
5
- fetchUsersCount(): Promise<number>;
6
- fetchVotesCount(): Promise<number>;
7
- fethTopThree(): Promise<IUserContest[]>;
8
- createUser(payload: CreateUserContest): Promise<IUserContest>;
9
- checkIdentity(payload: CreateVoteContest): Promise<boolean>;
10
- createVote(payload: CreateVoteContest): Promise<IContest>;
11
- }
12
- //# sourceMappingURL=Contest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Contest.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Contest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAClH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,UAAU,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAIlE,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAIlC,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAIlC,YAAY,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAIvC,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC;IAgB7D,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;IAI3D,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;CAG1D"}
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Contest = void 0;
4
- const class_validator_1 = require("class-validator");
5
- const Resource_1 = require("../Resource");
6
- class Contest extends Resource_1.Resource {
7
- fetchUsers(params) {
8
- return this.axios.$get('contest/users', { params });
9
- }
10
- fetchUsersCount() {
11
- return this.axios.$get('contest/users/count');
12
- }
13
- fetchVotesCount() {
14
- return this.axios.$get('contest/votes/count');
15
- }
16
- fethTopThree() {
17
- return this.axios.$get('contest/users/top');
18
- }
19
- createUser(payload) {
20
- const formData = new FormData();
21
- Object.entries(payload).forEach(([key, value]) => {
22
- if ((0, class_validator_1.isDefined)(value) || key === 'writeDpae') {
23
- if (['logo', 'photo'].includes(key)) {
24
- formData.append(key, value);
25
- }
26
- else {
27
- formData.append(key, `${value}`);
28
- }
29
- }
30
- });
31
- return this.axios.$post('contest/user', formData, {
32
- headers: { 'Content-Type': 'multipart/form-data' },
33
- });
34
- }
35
- checkIdentity(payload) {
36
- return this.axios.$post('contest/vote/check', payload);
37
- }
38
- createVote(payload) {
39
- return this.axios.$post('contest/vote', payload);
40
- }
41
- }
42
- exports.Contest = Contest;
43
- //# sourceMappingURL=Contest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Contest.js","sourceRoot":"","sources":["../../../../ts/api/resources/Contest.ts"],"names":[],"mappings":";;;AAAA,qDAA4C;AAE5C,0CAAuC;AAEvC,MAAa,OAAQ,SAAQ,mBAAQ;IACnC,UAAU,CAAC,MAA6B;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,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serContest, CreateUserContest, CreateVoteContest } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class Contest extends Resource {\n fetchUsers(params: QueryFetchUserContest): Promise<IUserContest[]> {\n return this.axios.$get('contest/users', { params });\n }\n\n fetchUsersCount(): Promise<number> {\n return this.axios.$get('contest/users/count');\n }\n\n fetchVotesCount(): Promise<number> {\n return this.axios.$get('contest/votes/count');\n }\n\n fethTopThree(): Promise<IUserContest[]> {\n return this.axios.$get('contest/users/top');\n }\n\n createUser(payload: CreateUserContest): Promise<IUserContest> {\n const formData = new FormData();\n Object.entries(payload).forEach(([key, value]) => {\n if (isDefined(value) || key === 'writeDpae') {\n if (['logo', 'photo'].includes(key)) {\n formData.append(key, value as File);\n } else {\n formData.append(key, `${value}`);\n }\n }\n });\n return this.axios.$post('contest/user', formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n checkIdentity(payload: CreateVoteContest): Promise<boolean> {\n return this.axios.$post('contest/vote/check', payload);\n }\n\n createVote(payload: CreateVoteContest): Promise<IContest> {\n return this.axios.$post('contest/vote', payload);\n }\n}\n"]}
@@ -1,6 +0,0 @@
1
- export declare enum ContestType {
2
- ENTREPRENEUR = 1,
3
- BIKE_1 = 2,
4
- BIKE_2 = 3
5
- }
6
- //# sourceMappingURL=Contest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Contest.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/Contest.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,YAAY,IAAI;IAChB,MAAM,IAAI;IACV,MAAM,IAAI;CACX"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContestType = void 0;
4
- var ContestType;
5
- (function (ContestType) {
6
- ContestType[ContestType["ENTREPRENEUR"] = 1] = "ENTREPRENEUR";
7
- ContestType[ContestType["BIKE_1"] = 2] = "BIKE_1";
8
- ContestType[ContestType["BIKE_2"] = 3] = "BIKE_2";
9
- })(ContestType || (exports.ContestType = ContestType = {}));
10
- //# sourceMappingURL=Contest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Contest.js","sourceRoot":"","sources":["../../../../ts/types/Enum/Contest.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,6DAAgB,CAAA;IAChB,iDAAU,CAAA;IACV,iDAAU,CAAA;AACZ,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB","sourcesContent":["export enum ContestType {\n ENTREPRENEUR = 1,\n BIKE_1 = 2,\n BIKE_2 = 3,\n}\n"]}
@@ -1,47 +0,0 @@
1
- import { TFile } from '../file/TFile';
2
- export declare class CreateUserContest {
3
- firstname: string;
4
- lastname: string;
5
- email: string;
6
- phone: string;
7
- societyName: string;
8
- siren: string;
9
- companyWebsite?: string;
10
- productDescription?: string;
11
- societyDescription?: string;
12
- photo: TFile;
13
- logo?: TFile;
14
- banner?: TFile;
15
- acceptNewsletter: boolean;
16
- acceptPromotion: boolean;
17
- isTestMode?: boolean;
18
- recaptcha?: string;
19
- }
20
- export declare class CreateCheckVote {
21
- email: string;
22
- ipAddress: string;
23
- idVoter: number;
24
- acceptContact: boolean;
25
- recaptcha?: string;
26
- isTestMode?: boolean;
27
- }
28
- export declare class CreateVoteContest {
29
- hashMail: string;
30
- userHash: string;
31
- }
32
- export declare class CreateGeneriqueContestResult {
33
- email: string;
34
- ipAddress: string;
35
- acceptContact: boolean;
36
- idTypeContest: number;
37
- result: string;
38
- recaptcha?: string;
39
- isTestMode?: boolean;
40
- secret?: string;
41
- }
42
- export declare class CreateEmail {
43
- winnerId: number;
44
- idTypeContest: number;
45
- secret?: string;
46
- }
47
- //# sourceMappingURL=Create.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/contest/Create.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAItC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