@silexpert/core 1.1.229 → 1.1.231

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 (62) hide show
  1. package/dist/cjs/api/resources/Brevo.d.ts +8 -0
  2. package/dist/cjs/api/resources/Brevo.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/Brevo.js +17 -0
  4. package/dist/cjs/api/resources/Brevo.js.map +1 -0
  5. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/Society.js +3 -1
  7. package/dist/cjs/api/resources/Society.js.map +1 -1
  8. package/dist/cjs/api/resources.d.ts +2 -0
  9. package/dist/cjs/api/resources.d.ts.map +1 -1
  10. package/dist/cjs/api/resources.js +2 -0
  11. package/dist/cjs/api/resources.js.map +1 -1
  12. package/dist/cjs/types/Enum/Brevo.d.ts +9 -0
  13. package/dist/cjs/types/Enum/Brevo.d.ts.map +1 -0
  14. package/dist/cjs/types/Enum/Brevo.js +13 -0
  15. package/dist/cjs/types/Enum/Brevo.js.map +1 -0
  16. package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts +20 -0
  17. package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -0
  18. package/dist/cjs/types/Interface/api/brevo/BrevoElement.js +86 -0
  19. package/dist/cjs/types/Interface/api/brevo/BrevoElement.js.map +1 -0
  20. package/dist/cjs/types/Interface/api/statutsGeneration/QueryGetUser.d.ts +13 -0
  21. package/dist/cjs/types/Interface/api/statutsGeneration/QueryGetUser.d.ts.map +1 -0
  22. package/dist/cjs/types/Interface/api/statutsGeneration/QueryGetUser.js +3 -0
  23. package/dist/cjs/types/Interface/api/statutsGeneration/QueryGetUser.js.map +1 -0
  24. package/dist/cjs/types/index.d.ts +3 -0
  25. package/dist/cjs/types/index.d.ts.map +1 -1
  26. package/dist/cjs/types/index.js +3 -0
  27. package/dist/cjs/types/index.js.map +1 -1
  28. package/dist/mjs/api/resources/Brevo.d.ts +8 -0
  29. package/dist/mjs/api/resources/Brevo.d.ts.map +1 -0
  30. package/dist/mjs/api/resources/Brevo.js +13 -0
  31. package/dist/mjs/api/resources/Brevo.js.map +1 -0
  32. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  33. package/dist/mjs/api/resources/Society.js +3 -1
  34. package/dist/mjs/api/resources/Society.js.map +1 -1
  35. package/dist/mjs/api/resources.d.ts +2 -0
  36. package/dist/mjs/api/resources.d.ts.map +1 -1
  37. package/dist/mjs/api/resources.js +2 -0
  38. package/dist/mjs/api/resources.js.map +1 -1
  39. package/dist/mjs/types/Enum/Brevo.d.ts +9 -0
  40. package/dist/mjs/types/Enum/Brevo.d.ts.map +1 -0
  41. package/dist/mjs/types/Enum/Brevo.js +10 -0
  42. package/dist/mjs/types/Enum/Brevo.js.map +1 -0
  43. package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts +20 -0
  44. package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -0
  45. package/dist/mjs/types/Interface/api/brevo/BrevoElement.js +90 -0
  46. package/dist/mjs/types/Interface/api/brevo/BrevoElement.js.map +1 -0
  47. package/dist/mjs/types/Interface/api/statutsGeneration/QueryGetUser.d.ts +13 -0
  48. package/dist/mjs/types/Interface/api/statutsGeneration/QueryGetUser.d.ts.map +1 -0
  49. package/dist/mjs/types/Interface/api/statutsGeneration/QueryGetUser.js +2 -0
  50. package/dist/mjs/types/Interface/api/statutsGeneration/QueryGetUser.js.map +1 -0
  51. package/dist/mjs/types/index.d.ts +3 -0
  52. package/dist/mjs/types/index.d.ts.map +1 -1
  53. package/dist/mjs/types/index.js +3 -0
  54. package/dist/mjs/types/index.js.map +1 -1
  55. package/package.json +1 -1
  56. package/ts/api/resources/Brevo.ts +17 -0
  57. package/ts/api/resources/Society.ts +3 -1
  58. package/ts/api/resources.ts +2 -0
  59. package/ts/types/Enum/Brevo.ts +8 -0
  60. package/ts/types/Interface/api/brevo/BrevoElement.ts +63 -0
  61. package/ts/types/Interface/api/statutsGeneration/QueryGetUser.ts +15 -0
  62. package/ts/types/index.ts +3 -0
@@ -0,0 +1,63 @@
1
+ import {
2
+ IsInt, IsNotEmpty, IsNumber, IsOptional, IsString,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+
6
+
7
+ export class CreateContact {
8
+ @ApiProperty()
9
+ @IsString()
10
+ email: string;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsString()
15
+ firstName?: string;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsString()
20
+ lastname?: string;
21
+
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
24
+ @IsString()
25
+ activity?: string;
26
+
27
+ @ApiPropertyOptional()
28
+ @IsOptional()
29
+ @IsString()
30
+ nameSociety?: string;
31
+
32
+ @ApiProperty()
33
+ @IsInt({ each: true })
34
+ listIds: number[];
35
+
36
+ }
37
+
38
+ export class ReadContact {
39
+ @ApiProperty()
40
+ @IsNumber()
41
+ id: number;
42
+ }
43
+
44
+ export class ChangeContact {
45
+ @ApiProperty()
46
+ @IsString({ each: true })
47
+ email: string[];
48
+
49
+
50
+ @ApiProperty()
51
+ @IsNumber()
52
+ listId: number;
53
+ }
54
+
55
+ export class UpdateContact {
56
+ @ApiProperty()
57
+ @IsString()
58
+ @IsNotEmpty()
59
+ email: string;
60
+
61
+ @ApiProperty()
62
+ attributes: Partial<CreateContact>;
63
+ }
@@ -0,0 +1,15 @@
1
+ import { IBusinessPartner } from '../../models/IBusinessPartner';
2
+ import { ISociety } from '../../models/ISociety';
3
+ import { IUser } from '../../models/IUser';
4
+
5
+ export interface SocietyWithDirector extends ISociety {
6
+ businessPartners: BusinessPartnerWithDirector[]
7
+ }
8
+
9
+ export interface BusinessPartnerWithDirector extends IBusinessPartner {
10
+ director: string
11
+ }
12
+
13
+ export interface QueryGetUser extends IUser {
14
+ societies: SocietyWithDirector[]
15
+ }
package/ts/types/index.ts CHANGED
@@ -526,6 +526,7 @@ export * from './Enum/EquipmentState';
526
526
  export * from './Enum/EquipmentAvailability';
527
527
  export * from './Enum/SpecialDayType';
528
528
  export * from './Enum/Degree';
529
+ export * from './Enum/Brevo';
529
530
 
530
531
  // Interfaces API
531
532
  export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
@@ -668,6 +669,7 @@ export * from './Interface/api/exercice/Create';
668
669
  export * from './Interface/api/exercice/UpdateExercice';
669
670
  export * from './Interface/api/statutsGeneration/UpdateExerciceParams';
670
671
  export * from './Interface/api/statutsGeneration/TemplateParams';
672
+ export * from './Interface/api/statutsGeneration/QueryGetUser';
671
673
  export * from './Interface/api/statutsGeneration/IntentToPayPrestationParams';
672
674
  export * from './Interface/api/statutsGeneration/SendInviteMailParams';
673
675
  export * from './Interface/api/statutsGeneration/CreateBusinessPartnersAndUsersParams';
@@ -1032,6 +1034,7 @@ export * from './Interface/api/customerSignature/Query';
1032
1034
  export * from './Interface/api/userRoomEquipment/CreateSignature';
1033
1035
  export * from './Interface/api/paymentExpectation/CreatePaymentExpecation';
1034
1036
  export * from './Interface/api/expertAnnuary/Query';
1037
+ export * from './Interface/api/brevo/BrevoElement';
1035
1038
  export * from './Interface/api/bankAccount/Create';
1036
1039
 
1037
1040
  // Enums types