@silexpert/core 1.3.60 → 1.3.61

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 (80) hide show
  1. package/dist/cjs/api/resources/SalesContract.d.ts +0 -4
  2. package/dist/cjs/api/resources/SalesContract.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/SalesContract.js +0 -18
  4. package/dist/cjs/api/resources/SalesContract.js.map +1 -1
  5. package/dist/cjs/types/Enum/BrandAnytime.d.ts.map +1 -1
  6. package/dist/cjs/types/Enum/BrandAnytime.js +1 -4
  7. package/dist/cjs/types/Enum/BrandAnytime.js.map +1 -1
  8. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  9. package/dist/cjs/types/Enum/BrandClementine.js +6 -13
  10. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  11. package/dist/cjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  12. package/dist/cjs/types/Enum/BrandComptalib.js +0 -3
  13. package/dist/cjs/types/Enum/BrandComptalib.js.map +1 -1
  14. package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/BrandLegalstart.js +1 -2
  16. package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
  17. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/BrandPourcentage.js +0 -4
  19. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  20. package/dist/cjs/types/Enum/BrandStatutsExpress.d.ts.map +1 -1
  21. package/dist/cjs/types/Enum/BrandStatutsExpress.js +0 -1
  22. package/dist/cjs/types/Enum/BrandStatutsExpress.js.map +1 -1
  23. package/dist/cjs/types/Enum/TimeSlot.js +21 -21
  24. package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
  25. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +0 -32
  26. package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
  28. package/dist/cjs/types/Interface/api/user/RegisterProspect.d.ts +6 -1
  29. package/dist/cjs/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
  30. package/dist/cjs/types/Interface/api/user/RegisterProspect.js +18 -0
  31. package/dist/cjs/types/Interface/api/user/RegisterProspect.js.map +1 -1
  32. package/dist/cjs/utils/brands.d.ts +0 -4
  33. package/dist/cjs/utils/brands.d.ts.map +1 -1
  34. package/dist/cjs/utils/brands.js.map +1 -1
  35. package/dist/mjs/api/resources/SalesContract.d.ts +0 -4
  36. package/dist/mjs/api/resources/SalesContract.d.ts.map +1 -1
  37. package/dist/mjs/api/resources/SalesContract.js +0 -18
  38. package/dist/mjs/api/resources/SalesContract.js.map +1 -1
  39. package/dist/mjs/types/Enum/BrandAnytime.d.ts.map +1 -1
  40. package/dist/mjs/types/Enum/BrandAnytime.js +1 -4
  41. package/dist/mjs/types/Enum/BrandAnytime.js.map +1 -1
  42. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  43. package/dist/mjs/types/Enum/BrandClementine.js +6 -13
  44. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  45. package/dist/mjs/types/Enum/BrandComptalib.d.ts.map +1 -1
  46. package/dist/mjs/types/Enum/BrandComptalib.js +0 -3
  47. package/dist/mjs/types/Enum/BrandComptalib.js.map +1 -1
  48. package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  49. package/dist/mjs/types/Enum/BrandLegalstart.js +1 -2
  50. package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
  51. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  52. package/dist/mjs/types/Enum/BrandPourcentage.js +0 -4
  53. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  54. package/dist/mjs/types/Enum/BrandStatutsExpress.d.ts.map +1 -1
  55. package/dist/mjs/types/Enum/BrandStatutsExpress.js +0 -1
  56. package/dist/mjs/types/Enum/BrandStatutsExpress.js.map +1 -1
  57. package/dist/mjs/types/Enum/TimeSlot.js +13 -13
  58. package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
  59. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +0 -32
  60. package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  61. package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
  62. package/dist/mjs/types/Interface/api/user/RegisterProspect.d.ts +6 -1
  63. package/dist/mjs/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
  64. package/dist/mjs/types/Interface/api/user/RegisterProspect.js +21 -1
  65. package/dist/mjs/types/Interface/api/user/RegisterProspect.js.map +1 -1
  66. package/dist/mjs/utils/brands.d.ts +0 -4
  67. package/dist/mjs/utils/brands.d.ts.map +1 -1
  68. package/dist/mjs/utils/brands.js.map +1 -1
  69. package/package.json +1 -1
  70. package/ts/api/resources/SalesContract.ts +0 -18
  71. package/ts/types/Enum/BrandAnytime.ts +1 -4
  72. package/ts/types/Enum/BrandClementine.ts +6 -13
  73. package/ts/types/Enum/BrandComptalib.ts +0 -3
  74. package/ts/types/Enum/BrandLegalstart.ts +1 -2
  75. package/ts/types/Enum/BrandPourcentage.ts +0 -4
  76. package/ts/types/Enum/BrandStatutsExpress.ts +0 -1
  77. package/ts/types/Enum/TimeSlot.ts +13 -13
  78. package/ts/types/Interface/api/config/ConfigType.ts +0 -36
  79. package/ts/types/Interface/api/user/RegisterProspect.ts +38 -6
  80. package/ts/utils/brands.ts +0 -2
@@ -6,13 +6,10 @@ export interface ConfigType {
6
6
  redisPrimary: RedisPrimary;
7
7
  caarl: Caarl;
8
8
  yousign: Yousign;
9
- secretToken: string;
10
- bred: Bred;
11
9
  awsClementine: AwsClementine;
12
10
  mail: Mail;
13
11
  client: Client;
14
12
  twilio: Twilio;
15
- societyTestId: number;
16
13
  pappers: Pappers;
17
14
  shine: Shine;
18
15
  defaultPermissions: DefaultPermissions;
@@ -26,7 +23,6 @@ export interface ConfigType {
26
23
  imageMagick: LambdaInfos;
27
24
  companeo: Companeo;
28
25
  inpi: Inpi;
29
- notion: Notion;
30
26
  brevo: Brevo;
31
27
  tinyurl: LambdaInfos;
32
28
  machineLearning: MachineLearning;
@@ -37,7 +33,6 @@ export interface ConfigType {
37
33
  sharper: LambdaInfos;
38
34
  chartizer: LambdaInfos;
39
35
  authentication: Authentication;
40
- recaptcha: Recaptcha;
41
36
  }
42
37
 
43
38
  interface Authentication {
@@ -79,35 +74,13 @@ interface RedisPrimary {
79
74
 
80
75
  interface Caarl {
81
76
  api: string;
82
- token: string;
83
77
  bundle: string;
84
78
  }
85
79
 
86
80
  interface Yousign {
87
- apiYousign: string;
88
- appYousign: string;
89
- token: Token;
90
81
  workspaceId: string;
91
82
  }
92
83
 
93
- interface Token {
94
- clementine: string;
95
- pourcentage: string;
96
- }
97
-
98
- export interface Bred {
99
- authorizeHost: string;
100
- authorizePath: string;
101
- urlPostCodeRequest: string;
102
- urlGetToken: string;
103
- apiUrl: string;
104
- clientId: string;
105
- clientSecret: string;
106
- scope: string;
107
- redirectUri: string;
108
- subscriptionKey: string;
109
- }
110
-
111
84
  export type BucketName =
112
85
  | 'resources-local-dev'
113
86
  | 'resources-anytime'
@@ -144,7 +117,6 @@ interface Client {
144
117
 
145
118
  interface Twilio {
146
119
  accountSID: string;
147
- authToken: string;
148
120
  number: string;
149
121
  }
150
122
 
@@ -261,10 +233,6 @@ interface Inpi {
261
233
  password: string;
262
234
  }
263
235
 
264
- interface Notion {
265
- key: string;
266
- }
267
-
268
236
  interface Brevo {
269
237
  lists: {
270
238
  hot: number;
@@ -279,7 +247,3 @@ interface Echo {
279
247
  accountid: string;
280
248
  apikey: string;
281
249
  }
282
-
283
- interface Recaptcha {
284
- secret: string;
285
- }
@@ -1,15 +1,27 @@
1
- import { IsEmail, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString, ValidateNested } from 'class-validator';
1
+ import {
2
+ IsArray,
3
+ IsEmail,
4
+ IsEnum,
5
+ IsNotEmpty,
6
+ IsNumber,
7
+ IsOptional,
8
+ IsString,
9
+ IsStrongPassword,
10
+ ValidateNested,
11
+ } from 'class-validator';
2
12
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
13
  import { Activity } from '../../../Enum/Activity';
4
14
  import { Civility } from '../../../Enum/Civility';
5
15
  import { IAnalyticsUtm } from '../../models/IAnalyticsUtm';
6
16
  import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
17
+ import { UpdateOrCreateVisualizedInformation } from '../visualizedInformation/Update';
7
18
 
8
19
  /**
9
20
  * Response of the register prospect endpoint
10
21
  */
11
22
  export interface RegisterProspectResponse {
12
- externalId: string;
23
+ externalId?: string;
24
+ token?: string;
13
25
  }
14
26
 
15
27
  /**
@@ -19,6 +31,7 @@ export interface ProspectInfo {
19
31
  idCivility?: Civility;
20
32
  firstname?: string;
21
33
  lastname?: string;
34
+ password?: string;
22
35
  email: string;
23
36
  phone?: string;
24
37
  prefix?: string;
@@ -38,9 +51,9 @@ export interface ReferalProgram {
38
51
  }
39
52
 
40
53
  export interface RegisterProspect {
41
- user: ProspectInfo,
42
- society?: ProspectSocietyInfo,
43
- referralProgram?: ReferalProgram,
54
+ user: ProspectInfo;
55
+ society?: ProspectSocietyInfo;
56
+ referralProgram?: ReferalProgram;
44
57
  recaptcha?: string;
45
58
  token?: string;
46
59
  // @deprecated use sourceAlias instead
@@ -81,6 +94,20 @@ class ProspectInfoBody implements ProspectInfo {
81
94
  @IsOptional()
82
95
  @IsString()
83
96
  prefix?: string;
97
+
98
+ @ApiPropertyOptional()
99
+ @IsStrongPassword(
100
+ {
101
+ minLength: 8,
102
+ minLowercase: 0,
103
+ minNumbers: 0,
104
+ minSymbols: 0,
105
+ minUppercase: 0,
106
+ },
107
+ { message: 'Le mot de passe doit comporter 8 caractères minimum' },
108
+ )
109
+ @IsOptional()
110
+ password?: string;
84
111
  }
85
112
 
86
113
  class ProspectSocietyInfoBody implements ProspectSocietyInfo {
@@ -209,4 +236,9 @@ export class RegisterProspectBody implements RegisterProspect {
209
236
  @IsOptional()
210
237
  @IsString()
211
238
  comment?: string;
212
- }
239
+
240
+ @ApiPropertyOptional()
241
+ @IsOptional()
242
+ @IsArray()
243
+ visualizedInformations?: UpdateOrCreateVisualizedInformation[];
244
+ }
@@ -15,7 +15,6 @@ export type Brand = {
15
15
  logoS3?: string;
16
16
  lightLogoS3?: string;
17
17
  privacyPolicy?: string;
18
- recaptcha?: { secretKey: string };
19
18
  urlApi1?: string;
20
19
  urlClient?: string;
21
20
  urlApp?: string;
@@ -74,7 +73,6 @@ export type Brand = {
74
73
  statut: string;
75
74
  zipCode: string;
76
75
  };
77
- recaptchaSecretKey?: string;
78
76
  idPrestationsListHidden?: number[];
79
77
  idPrestationsListAuthorized?: number[];
80
78
  logoUrl?: string;