@silexpert/core 1.1.229 → 1.1.230
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.
- package/dist/cjs/api/resources/Brevo.d.ts +8 -0
- package/dist/cjs/api/resources/Brevo.d.ts.map +1 -0
- package/dist/cjs/api/resources/Brevo.js +17 -0
- package/dist/cjs/api/resources/Brevo.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/Brevo.d.ts +9 -0
- package/dist/cjs/types/Enum/Brevo.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Brevo.js +13 -0
- package/dist/cjs/types/Enum/Brevo.js.map +1 -0
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts +20 -0
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.js +86 -0
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.js.map +1 -0
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Brevo.d.ts +8 -0
- package/dist/mjs/api/resources/Brevo.d.ts.map +1 -0
- package/dist/mjs/api/resources/Brevo.js +13 -0
- package/dist/mjs/api/resources/Brevo.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/Brevo.d.ts +9 -0
- package/dist/mjs/types/Enum/Brevo.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Brevo.js +10 -0
- package/dist/mjs/types/Enum/Brevo.js.map +1 -0
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts +20 -0
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.js +90 -0
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.js.map +1 -0
- package/dist/mjs/types/index.d.ts +2 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +2 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Brevo.ts +17 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Brevo.ts +8 -0
- package/ts/types/Interface/api/brevo/BrevoElement.ts +63 -0
- package/ts/types/index.ts +2 -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
|
+
}
|
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';
|
|
@@ -1032,6 +1033,7 @@ export * from './Interface/api/customerSignature/Query';
|
|
|
1032
1033
|
export * from './Interface/api/userRoomEquipment/CreateSignature';
|
|
1033
1034
|
export * from './Interface/api/paymentExpectation/CreatePaymentExpecation';
|
|
1034
1035
|
export * from './Interface/api/expertAnnuary/Query';
|
|
1036
|
+
export * from './Interface/api/brevo/BrevoElement';
|
|
1035
1037
|
export * from './Interface/api/bankAccount/Create';
|
|
1036
1038
|
|
|
1037
1039
|
// Enums types
|