@silexpert/core 1.1.208 → 1.1.209

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 (46) hide show
  1. package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  2. package/dist/cjs/types/Interface/api/OnBoarding.js +0 -1
  3. package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -1
  4. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaborators.js +1 -1
  5. package/dist/cjs/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  6. package/dist/cjs/types/Interface/api/wallet/UpdateAttribution.d.ts +1 -0
  7. package/dist/cjs/types/Interface/api/wallet/UpdateAttribution.d.ts.map +1 -1
  8. package/dist/cjs/types/Interface/api/wallet/UpdateAttribution.js +8 -0
  9. package/dist/cjs/types/Interface/api/wallet/UpdateAttribution.js.map +1 -1
  10. package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts +1 -0
  11. package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  12. package/dist/cjs/types/Interface/models/ISocietyDetail.js.map +1 -1
  13. package/dist/cjs/types/Interface/models/IUser.d.ts +2 -0
  14. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  15. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  16. package/dist/cjs/utils/checkup.js +10 -10
  17. package/dist/cjs/utils/checkup.js.map +1 -1
  18. package/dist/cjs/utils/vat/centuries.js +1 -1
  19. package/dist/cjs/utils/vat/centuries.js.map +1 -1
  20. package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  21. package/dist/mjs/types/Interface/api/OnBoarding.js +0 -1
  22. package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -1
  23. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaborators.js +1 -1
  24. package/dist/mjs/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
  25. package/dist/mjs/types/Interface/api/wallet/UpdateAttribution.d.ts +1 -0
  26. package/dist/mjs/types/Interface/api/wallet/UpdateAttribution.d.ts.map +1 -1
  27. package/dist/mjs/types/Interface/api/wallet/UpdateAttribution.js +10 -1
  28. package/dist/mjs/types/Interface/api/wallet/UpdateAttribution.js.map +1 -1
  29. package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts +1 -0
  30. package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  31. package/dist/mjs/types/Interface/models/ISocietyDetail.js.map +1 -1
  32. package/dist/mjs/types/Interface/models/IUser.d.ts +2 -0
  33. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  34. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  35. package/dist/mjs/utils/checkup.js +10 -10
  36. package/dist/mjs/utils/checkup.js.map +1 -1
  37. package/dist/mjs/utils/vat/centuries.js +1 -1
  38. package/dist/mjs/utils/vat/centuries.js.map +1 -1
  39. package/package.json +1 -1
  40. package/ts/types/Interface/api/OnBoarding.ts +0 -1
  41. package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +1 -1
  42. package/ts/types/Interface/api/wallet/UpdateAttribution.ts +8 -1
  43. package/ts/types/Interface/models/ISocietyDetail.ts +1 -0
  44. package/ts/types/Interface/models/IUser.ts +2 -0
  45. package/ts/utils/checkup.ts +10 -10
  46. package/ts/utils/vat/centuries.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import {
2
- IsBoolean, IsNumber, IsOptional, IsPositive,
2
+ IsBoolean, IsNumber, IsOptional, IsPositive, IsInt,
3
3
  } from 'class-validator';
4
4
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
5
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
@@ -20,4 +20,11 @@ export class UpdateAttribution {
20
20
  @IsBoolean()
21
21
  @ToBoolean()
22
22
  randomSwap?: boolean;
23
+
24
+ @ApiPropertyOptional()
25
+ @IsOptional()
26
+ @IsInt({
27
+ each: true,
28
+ })
29
+ idCollaboratersToExclude: number[];
23
30
  }
@@ -21,6 +21,7 @@ export interface ISocietyDetail {
21
21
  isPersoAdress?: string | null;
22
22
  vehicle?: string | null;
23
23
  interestOtherCompanies?: string | null;
24
+ listCompaniesInterestedIn?: string | null;
24
25
  areOtherCompaniesOnOurBrand?: string | null;
25
26
  listTva?: string | null;
26
27
  nbAssociates?: number | null;
@@ -21,6 +21,7 @@ import { IAccountingStatementHistory } from './IAccountingStatementHistory';
21
21
  import { ICountry } from './ICountry';
22
22
  import { INationality } from './INationality';
23
23
  import { IUserBrand } from './IUserBrand';
24
+ import { ICollaboraterDetail } from './ICollaboraterDetail';
24
25
 
25
26
  type isAny<T> = T | any;
26
27
 
@@ -129,4 +130,5 @@ export interface IUser {
129
130
  countryLiving?: ICountry;
130
131
  nationality?: INationality;
131
132
  usersBrands?: IUserBrand[];
133
+ collaboraterDetails?: ICollaboraterDetail;
132
134
  }
@@ -113,7 +113,7 @@ export const getCheckupDetailForm = (
113
113
  items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
114
114
  hideDetails: true,
115
115
  },
116
- lg: 4,
116
+ lg: societyDetail.isPersoAdress === '1' ? 4 : 8,
117
117
  },
118
118
  {
119
119
  component: 'FormInputSelect', //'FormInputRadio',
@@ -124,19 +124,19 @@ export const getCheckupDetailForm = (
124
124
  hideDetails: true,
125
125
  },
126
126
  condition: societyDetail.isPersoAdress === '1',
127
- lg: societyDetail.isPersoAdress === '1' ? 4 : 8,
127
+ lg: 4,
128
128
  },
129
129
  {
130
130
  component: 'FormInputSelect', //'FormInputRadio',
131
- text: 'Si non, avez-vous un bail commercial ?',
131
+ text: 'Avez-vous un bail commercial ?',
132
132
  value: 'hasCommercialLease',
133
133
  meta: {
134
134
  items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
135
135
  hideDetails: true,
136
136
  },
137
137
  //TODO: conseil à afficher
138
- condition: societyDetail.isPersoAdress === '1',
139
- lg: societyDetail.isPersoAdress === '1' ? 4 : 8,
138
+ condition: societyDetail.isPersoAdress !== '1',
139
+ lg: societyDetail.hasCommercialLease === '1' ? 4 : 12,
140
140
  },
141
141
  {
142
142
  component: 'FormInputText',
@@ -147,8 +147,8 @@ export const getCheckupDetailForm = (
147
147
  suffix: 'm²',
148
148
  hideDetails:true,
149
149
  },
150
- condition: societyDetail.isPersoAdress === '1',
151
- lg: societyDetail.isPersoAdress === '1' ? 4 : 8,
150
+ condition: societyDetail.isPersoAdress !== '1' && societyDetail.hasCommercialLease === '1',
151
+ lg: 4,
152
152
  },
153
153
  {
154
154
  component: 'FormInputText',
@@ -159,8 +159,8 @@ export const getCheckupDetailForm = (
159
159
  suffix: '€',
160
160
  hideDetails:true,
161
161
  },
162
- condition: societyDetail.isPersoAdress === '1',
163
- lg: societyDetail.isPersoAdress === '1' ? 4 : 8,
162
+ condition: societyDetail.isPersoAdress !== '1' && societyDetail.hasCommercialLease === '1',
163
+ lg: 4,
164
164
  },
165
165
  {
166
166
  component: 'FormInputSelect',
@@ -187,7 +187,7 @@ export const getCheckupDetailForm = (
187
187
  {
188
188
  component: 'FormInputText',
189
189
  text: 'Si oui, quels sont les noms des sociétés ?',
190
- value: 'commercialRentAmount',
190
+ value: 'listCompaniesInterestedIn',
191
191
  condition: parseInt(societyDetail.interestOtherCompanies, 10) > 0,
192
192
  lg: parseInt(societyDetail.interestOtherCompanies, 10) > 0 ? 4 : 12,
193
193
  },
@@ -26,7 +26,7 @@ const vatDocuments: VatDocument[] = [
26
26
  fileName: '3310-2023',
27
27
  annex: {
28
28
  name: '3519',
29
- century: '23',
29
+ century: dayjs().format('YY'),
30
30
  shouldInclude: (data: Cerfa3310_2023) => Boolean(data.credit?.refundAsked && data.credit.refundAsked > 0),
31
31
  payload: (amount: number, payload: PayloadCerfa3519_2017) => getCerfa3519Century17Payload(amount, payload),
32
32
  asponePayload: (data: Cerfa3519_2017) => getCerfa3519Century23RegistrationFields(data),