@silexpert/core 1.3.109 → 1.3.112
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/LeadsToPartners.d.ts +2 -2
- package/dist/cjs/api/resources/LeadsToPartners.d.ts.map +1 -1
- package/dist/cjs/api/resources/LeadsToPartners.js.map +1 -1
- package/dist/cjs/types/Enum/AIPrompt.js +2 -2
- package/dist/cjs/types/Enum/AIPrompt.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +1 -1
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +2 -10
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/Partners.d.ts +8 -47
- package/dist/cjs/types/Enum/Partners.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Partners.js +49 -39
- package/dist/cjs/types/Enum/Partners.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +1 -0
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +10 -2
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.d.ts +2 -1
- package/dist/cjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.js +1 -0
- package/dist/cjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts +2 -0
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.js +6 -0
- package/dist/cjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.d.ts +14 -0
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js +86 -0
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -0
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +3 -0
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/cjs/types/Interface/api/mail/CreateMailParams.d.ts +3 -0
- package/dist/cjs/types/Interface/api/mail/CreateMailParams.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/mail/CreateMailParams.js.map +1 -1
- package/dist/cjs/types/Interface/api/mail/EmailStatus.d.ts +17 -0
- package/dist/cjs/types/Interface/api/mail/EmailStatus.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/mail/EmailStatus.js +21 -0
- package/dist/cjs/types/Interface/api/mail/EmailStatus.js.map +1 -0
- package/dist/cjs/types/Interface/api/partners/CreatePartner.d.ts +6 -0
- package/dist/cjs/types/Interface/api/partners/CreatePartner.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/partners/CreatePartner.js +33 -0
- package/dist/cjs/types/Interface/api/partners/CreatePartner.js.map +1 -0
- package/dist/cjs/types/Interface/api/user/RegisterWebhook.d.ts +11 -0
- package/dist/cjs/types/Interface/api/user/RegisterWebhook.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/user/RegisterWebhook.js +62 -0
- package/dist/cjs/types/Interface/api/user/RegisterWebhook.js.map +1 -0
- package/dist/cjs/types/Interface/models/IMail.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IMail.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IMail.js.map +1 -1
- 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/LeadsToPartners.d.ts +2 -2
- package/dist/mjs/api/resources/LeadsToPartners.d.ts.map +1 -1
- package/dist/mjs/api/resources/LeadsToPartners.js.map +1 -1
- package/dist/mjs/types/Enum/AIPrompt.js +2 -2
- package/dist/mjs/types/Enum/AIPrompt.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +1 -1
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +2 -10
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/Partners.d.ts +8 -47
- package/dist/mjs/types/Enum/Partners.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Partners.js +48 -38
- package/dist/mjs/types/Enum/Partners.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +1 -0
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +9 -1
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.d.ts +2 -1
- package/dist/mjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.js +1 -0
- package/dist/mjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts +2 -0
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.js +7 -0
- package/dist/mjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.d.ts +14 -0
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js +93 -0
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -0
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +3 -0
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/mjs/types/Interface/api/mail/CreateMailParams.d.ts +3 -0
- package/dist/mjs/types/Interface/api/mail/CreateMailParams.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/mail/CreateMailParams.js.map +1 -1
- package/dist/mjs/types/Interface/api/mail/EmailStatus.d.ts +17 -0
- package/dist/mjs/types/Interface/api/mail/EmailStatus.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/mail/EmailStatus.js +18 -0
- package/dist/mjs/types/Interface/api/mail/EmailStatus.js.map +1 -0
- package/dist/mjs/types/Interface/api/partners/CreatePartner.d.ts +6 -0
- package/dist/mjs/types/Interface/api/partners/CreatePartner.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/partners/CreatePartner.js +32 -0
- package/dist/mjs/types/Interface/api/partners/CreatePartner.js.map +1 -0
- package/dist/mjs/types/Interface/api/user/RegisterWebhook.d.ts +11 -0
- package/dist/mjs/types/Interface/api/user/RegisterWebhook.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/user/RegisterWebhook.js +66 -0
- package/dist/mjs/types/Interface/api/user/RegisterWebhook.js.map +1 -0
- package/dist/mjs/types/Interface/models/IMail.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IMail.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IMail.js.map +1 -1
- 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/LeadsToPartners.ts +2 -1
- package/ts/types/Enum/AIPrompt.ts +2 -2
- package/ts/types/Enum/Card.ts +2 -10
- package/ts/types/Enum/Partners.ts +14 -3
- package/ts/types/Enum/PrestationType.ts +10 -1
- package/ts/types/Enum/RegistrationSource.ts +1 -0
- package/ts/types/Interface/api/brevo/BrevoElement.ts +6 -1
- package/ts/types/Interface/api/brevo/EmailSendOptions.dto.ts +61 -0
- package/ts/types/Interface/api/brevo/sendBrevoEmail +0 -0
- package/ts/types/Interface/api/config/ConfigType.ts +3 -0
- package/ts/types/Interface/api/mail/CreateMailParams.ts +3 -1
- package/ts/types/Interface/api/mail/EmailStatus.ts +16 -0
- package/ts/types/Interface/api/partners/CreatePartner.ts +16 -0
- package/ts/types/Interface/api/user/RegisterWebhook.ts +40 -0
- package/ts/types/Interface/models/IMail.ts +2 -0
- package/ts/types/index.ts +2 -0
|
@@ -38,7 +38,7 @@ export const AIPrompt: Record<AIPromptKey, AIPromptInfo> = {
|
|
|
38
38
|
systemPrompt: (bankAccountName) =>
|
|
39
39
|
`
|
|
40
40
|
Analysez ce relevé de compte bancaire et extrayez toutes les infos concernant le montant des solde précédents du compte bancaire, les dates de début et de fin du relevé sous forme d'un objet JSON structuré.
|
|
41
|
-
Le relevé peut contenir des informations telles que la date du solde précédent et le montant du solde qui doit être un nombre. La date de début et de fin doivent être retourné en string.
|
|
41
|
+
Le relevé peut contenir des informations telles que la date du solde précédent et le montant du solde qui doit être un nombre. La date de début et de fin doivent être retourné en string. Si aucune date de début ou de fin trouvé, renvoyé null
|
|
42
42
|
|
|
43
43
|
Garder exactement le même ordre des différentes dates que dans le relevé.
|
|
44
44
|
Si plusieurs solde sont trouvés, les retourner tous.
|
|
@@ -55,7 +55,7 @@ export const AIPrompt: Record<AIPromptKey, AIPromptInfo> = {
|
|
|
55
55
|
"startDate": string (format : YYYY-MM-DD correspondant a la date de début du relevé),
|
|
56
56
|
"endDate": string (format : YYYY-MM-DD correspondant a la date de fin du relevé),
|
|
57
57
|
},
|
|
58
|
-
formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf)
|
|
58
|
+
formattedFileName: string (nom du fichier au format 'releve_bancaire_${bankAccountName}_du_DD-MM-YYYY_au_DD-MM-YYYY.pdf, si aucune date de début ou de fin, remplacer par le début du mois courant et la fin du mois courant)
|
|
59
59
|
Assurez-vous que le JSON soit strictement conforme à ce format, sans aucun commentaire ou texte supplémentaire. Si Aucune date n'est trouvée, retourner un tableau vide,`,
|
|
60
60
|
},
|
|
61
61
|
[AIPromptKey.BANK_STATEMENT_PERIOD]: {
|
package/ts/types/Enum/Card.ts
CHANGED
|
@@ -108,14 +108,6 @@ export const CardGroup: readonly CardGroupType[] = [
|
|
|
108
108
|
teamType: TeamType.VAT,
|
|
109
109
|
maxByDay: 4,
|
|
110
110
|
},
|
|
111
|
-
{
|
|
112
|
-
id: CardGroupEnum.CARRY_FORWARD,
|
|
113
|
-
label: 'A nouveaux',
|
|
114
|
-
types: [CardType.SETUP_AND_INTEGRATION_N_MINUS_1],
|
|
115
|
-
roles: [Role.ACCOUNTANT],
|
|
116
|
-
maxByDay: 3,
|
|
117
|
-
teamType: TeamType.CARRY_FORWARD,
|
|
118
|
-
},
|
|
119
111
|
{
|
|
120
112
|
id: CardGroupEnum.BANK,
|
|
121
113
|
label: 'Banque',
|
|
@@ -135,7 +127,7 @@ export const CardGroup: readonly CardGroupType[] = [
|
|
|
135
127
|
{
|
|
136
128
|
id: CardGroupEnum.CLR,
|
|
137
129
|
label: 'CLR',
|
|
138
|
-
types: [CardType.CLR, CardType.CLR_EXCEPTIONAL_MISSION],
|
|
130
|
+
types: [CardType.CLR, CardType.CLR_EXCEPTIONAL_MISSION, CardType.SETUP_AND_INTEGRATION_N_MINUS_1],
|
|
139
131
|
roles: [Role.ACCOUNTANT],
|
|
140
132
|
maxByDay: 3,
|
|
141
133
|
teamType: TeamType.CLR,
|
|
@@ -299,7 +291,7 @@ export const CardTypeLabel = [
|
|
|
299
291
|
id: CardType.SETUP_AND_INTEGRATION_N_MINUS_1,
|
|
300
292
|
label: 'Paramétrage & Intégration N-1',
|
|
301
293
|
refLabel: 'PIN1',
|
|
302
|
-
groupId: CardGroupEnum.
|
|
294
|
+
groupId: CardGroupEnum.CLR,
|
|
303
295
|
},
|
|
304
296
|
{
|
|
305
297
|
id: CardType.CLR,
|
|
@@ -27,7 +27,7 @@ export const PartnerTypesDetail = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export const Partners = {
|
|
30
|
-
NATIVE: {
|
|
30
|
+
/* NATIVE: {
|
|
31
31
|
id: 1,
|
|
32
32
|
idType: PartnerTypesDetail.INSURANCE.id,
|
|
33
33
|
name: 'Native',
|
|
@@ -75,12 +75,23 @@ export const Partners = {
|
|
|
75
75
|
name: 'Qonto',
|
|
76
76
|
excludeBrand: [],
|
|
77
77
|
disabled: true,
|
|
78
|
-
},
|
|
78
|
+
}, */
|
|
79
79
|
SHINE: {
|
|
80
80
|
id: 8,
|
|
81
81
|
idType: null,
|
|
82
82
|
name: 'Shine',
|
|
83
83
|
excludeBrand: [],
|
|
84
|
-
disabled:
|
|
84
|
+
disabled: false,
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const ShineNeeds = {
|
|
89
|
+
ACCOUNT_OPENING: {
|
|
90
|
+
id: 'account_opening',
|
|
91
|
+
name: 'Ouverture de compte',
|
|
92
|
+
},
|
|
93
|
+
CAPITAL_DEPOSIT: {
|
|
94
|
+
id: 'capital_deposit',
|
|
95
|
+
name: 'Dépôt de capital',
|
|
85
96
|
},
|
|
86
97
|
};
|
|
@@ -193,6 +193,15 @@ export enum PrestationType {
|
|
|
193
193
|
TERMINATION_FEES = 239,
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
export const OWN_VAT_PRESTATIONS = [
|
|
197
|
+
PrestationType.VAT,
|
|
198
|
+
PrestationType.BALANCESHEET,
|
|
199
|
+
PrestationType.EXPERTISE,
|
|
200
|
+
PrestationType.GESTION_IMMO,
|
|
201
|
+
PrestationType.MICRO,
|
|
202
|
+
PrestationType.EI,
|
|
203
|
+
];
|
|
204
|
+
|
|
196
205
|
// Liste des prestations avec une lettre de mission à signer
|
|
197
206
|
export const allPrestationsWithBrochure = [
|
|
198
207
|
PrestationType.COMPTA_ASSISTANCE,
|
|
@@ -3749,7 +3758,7 @@ export const PrestationDetail: PrestationDetailEnum = {
|
|
|
3749
3758
|
minimumPrice: null,
|
|
3750
3759
|
price: 89,
|
|
3751
3760
|
isCatalog: false,
|
|
3752
|
-
isPlannable:
|
|
3761
|
+
isPlannable: true,
|
|
3753
3762
|
hidden: false,
|
|
3754
3763
|
isComplementary: false,
|
|
3755
3764
|
signaturePosition: '400,54,569,90',
|
|
@@ -34,6 +34,11 @@ export class CreateContact {
|
|
|
34
34
|
@ApiProperty()
|
|
35
35
|
@IsInt({ each: true })
|
|
36
36
|
listIds: number[];
|
|
37
|
+
|
|
38
|
+
@ApiPropertyOptional()
|
|
39
|
+
@IsString()
|
|
40
|
+
@IsOptional()
|
|
41
|
+
godfatherName?: string;
|
|
37
42
|
}
|
|
38
43
|
|
|
39
44
|
export class GetContact {
|
|
@@ -70,6 +75,7 @@ export interface ContactInfos {
|
|
|
70
75
|
activity?: string;
|
|
71
76
|
nameSociety?: string;
|
|
72
77
|
phone?: string;
|
|
78
|
+
godfatherName?: string;
|
|
73
79
|
}
|
|
74
80
|
|
|
75
81
|
export class AddOrCreateContactsToList {
|
|
@@ -81,7 +87,6 @@ export class AddOrCreateContactsToList {
|
|
|
81
87
|
listId: number;
|
|
82
88
|
}
|
|
83
89
|
|
|
84
|
-
|
|
85
90
|
export class ChangeContact {
|
|
86
91
|
@ApiProperty()
|
|
87
92
|
@IsString({ each: true })
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
2
|
+
import { IsString, IsEmail, IsOptional, IsNumber, IsObject, ValidateIf } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
export class EmailSendOptionsDto {
|
|
5
|
+
@ApiProperty({ description: 'Recipient email address' })
|
|
6
|
+
@IsEmail()
|
|
7
|
+
to: string;
|
|
8
|
+
|
|
9
|
+
@ApiPropertyOptional({ description: 'Email subject' })
|
|
10
|
+
@IsString()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
subject?: string;
|
|
13
|
+
|
|
14
|
+
@ApiPropertyOptional({ description: 'Sender email address' })
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsEmail()
|
|
17
|
+
from?: string;
|
|
18
|
+
|
|
19
|
+
@ApiPropertyOptional({ description: 'Sender name' })
|
|
20
|
+
@IsOptional()
|
|
21
|
+
@IsString()
|
|
22
|
+
fromName?: string;
|
|
23
|
+
|
|
24
|
+
@ApiPropertyOptional({ description: 'Reply-to email address' })
|
|
25
|
+
@IsOptional()
|
|
26
|
+
@IsEmail()
|
|
27
|
+
replyTo?: string;
|
|
28
|
+
|
|
29
|
+
@ApiPropertyOptional({ description: 'CC email address' })
|
|
30
|
+
@IsOptional()
|
|
31
|
+
@IsEmail()
|
|
32
|
+
cc?: string;
|
|
33
|
+
|
|
34
|
+
@ApiPropertyOptional({ description: 'BCC email address' })
|
|
35
|
+
@IsOptional()
|
|
36
|
+
@IsEmail()
|
|
37
|
+
bcc?: string;
|
|
38
|
+
|
|
39
|
+
@ApiPropertyOptional({ description: 'Custom ID for tracking' })
|
|
40
|
+
@IsOptional()
|
|
41
|
+
@IsString()
|
|
42
|
+
customId?: string;
|
|
43
|
+
|
|
44
|
+
@ApiPropertyOptional({ description: 'HTML content for the email' })
|
|
45
|
+
@IsOptional()
|
|
46
|
+
@IsString()
|
|
47
|
+
@ValidateIf((o) => !o.templateId)
|
|
48
|
+
htmlContent?: string;
|
|
49
|
+
|
|
50
|
+
@ApiPropertyOptional({ description: 'Brevo template ID' })
|
|
51
|
+
@IsOptional()
|
|
52
|
+
@IsNumber()
|
|
53
|
+
@ValidateIf((o) => !o.htmlContent)
|
|
54
|
+
templateId?: number;
|
|
55
|
+
|
|
56
|
+
@ApiPropertyOptional({ description: 'Template variables' })
|
|
57
|
+
@IsOptional()
|
|
58
|
+
@IsObject()
|
|
59
|
+
@ValidateIf((o) => !!o.templateId)
|
|
60
|
+
variables?: Record<string, any>;
|
|
61
|
+
}
|
|
File without changes
|
|
@@ -130,8 +130,11 @@ interface Pappers {
|
|
|
130
130
|
interface Shine {
|
|
131
131
|
host: string;
|
|
132
132
|
hostV3: string;
|
|
133
|
+
leadHost: string;
|
|
133
134
|
publicHost: string;
|
|
134
135
|
clientId: string;
|
|
136
|
+
sendLeadClientId: string;
|
|
137
|
+
updateLeadClientId: string;
|
|
135
138
|
redirect_uris: string[];
|
|
136
139
|
status: string;
|
|
137
140
|
scope: string;
|
|
@@ -19,8 +19,10 @@ export interface CreateMailParams extends IMail {
|
|
|
19
19
|
filesToken?: string[];
|
|
20
20
|
idCustomerIsRegime?: number;
|
|
21
21
|
icalEvent?: Buffer;
|
|
22
|
+
customId?: string;
|
|
23
|
+
templateId?: number;
|
|
24
|
+
templateVariables?: Record<string, any>;
|
|
22
25
|
}
|
|
23
|
-
|
|
24
26
|
export interface ExtendedIMailAddress extends IMailAddress {
|
|
25
27
|
idMailAddressType?: number;
|
|
26
28
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export enum EmailStatus {
|
|
2
|
+
PENDING = 'pending', // État initial du mail avant le retour de Brevo
|
|
3
|
+
REQUEST = 'request', // Demande d’envoi effectuée avec succès
|
|
4
|
+
DELIVERED = 'delivered', // Email délivré au serveur du destinataire
|
|
5
|
+
UNIQUE_OPENED = 'unique_opened', // Première ouverture de l’email par le destinataire
|
|
6
|
+
OPENED = 'opened', // Ouverture de l’email (peut être multiple)
|
|
7
|
+
CLICK = 'click', // Un lien dans l’email a été cliqué
|
|
8
|
+
SOFT_BOUNCE = 'soft_bounce', // Échec temporaire (ex: boîte pleine)
|
|
9
|
+
HARD_BOUNCE = 'hard_bounce', // Échec définitif (ex: email invalide)
|
|
10
|
+
INVALID_EMAIL = 'invalid_email', // Adresse email mal formatée ou inexistante
|
|
11
|
+
ERROR = 'error', // Erreur technique lors de l’envoi
|
|
12
|
+
SPAM = 'spam', // Email marqué comme spam
|
|
13
|
+
UNSUBSCRIBED = 'unsubscribed', // Désabonnement du destinataire
|
|
14
|
+
BLOCKED = 'blocked', // Envoi bloqué par Brevo ou serveur distant
|
|
15
|
+
PROXY_OPEN = 'proxy_open', // Ouverture via proxy (souvent Gmail)
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IsInt, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class CreateLeadToPartner {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsInt()
|
|
7
|
+
idSociety: number;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsInt()
|
|
11
|
+
idPartner: number;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
@IsString()
|
|
15
|
+
need?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IsEmail, IsOptional, IsPhoneNumber, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class RegisterWebhookBody {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsEmail()
|
|
7
|
+
email: string;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsString()
|
|
11
|
+
firstName: string;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
@IsString()
|
|
15
|
+
lastName: string;
|
|
16
|
+
|
|
17
|
+
@ApiProperty()
|
|
18
|
+
@IsPhoneNumber()
|
|
19
|
+
phone: string;
|
|
20
|
+
|
|
21
|
+
@ApiPropertyOptional()
|
|
22
|
+
@IsOptional()
|
|
23
|
+
@IsString()
|
|
24
|
+
companyName?: string;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional()
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@IsString()
|
|
29
|
+
legalForm?: string;
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional()
|
|
32
|
+
@IsOptional()
|
|
33
|
+
@IsString()
|
|
34
|
+
siret?: string;
|
|
35
|
+
|
|
36
|
+
@ApiPropertyOptional()
|
|
37
|
+
@IsOptional()
|
|
38
|
+
@IsString()
|
|
39
|
+
nafCode?: string;
|
|
40
|
+
}
|
|
@@ -5,6 +5,7 @@ import { IRole } from './IRole';
|
|
|
5
5
|
import { IMailContent } from './IMailContent';
|
|
6
6
|
import { IMailAttachment } from './IMailAttachment';
|
|
7
7
|
import { IMailAddress } from './IMailAddress';
|
|
8
|
+
import { EmailStatus } from '../api/mail/EmailStatus';
|
|
8
9
|
|
|
9
10
|
// mail
|
|
10
11
|
export interface IMail {
|
|
@@ -44,6 +45,7 @@ export interface IMail {
|
|
|
44
45
|
createdAt?: Date;
|
|
45
46
|
updatedAt?: Date;
|
|
46
47
|
deletedAt?: Date;
|
|
48
|
+
emailStatus?: EmailStatus;
|
|
47
49
|
|
|
48
50
|
// Associations
|
|
49
51
|
mailUserWhoAnswered?: IUser;
|
package/ts/types/index.ts
CHANGED
|
@@ -1122,6 +1122,7 @@ export * from './Interface/api/card/ModifyAcceptation';
|
|
|
1122
1122
|
export * from './Interface/api/card/ModifyCustomerVat';
|
|
1123
1123
|
export * from './Interface/api/card/Cron';
|
|
1124
1124
|
export * from './Interface/api/user/RegisterProspect';
|
|
1125
|
+
export * from './Interface/api/user/RegisterWebhook';
|
|
1125
1126
|
export * from './Interface/api/stateBankAccount/Query';
|
|
1126
1127
|
export * from './Interface/api/absenceRequest/QueryAbsenceRequest';
|
|
1127
1128
|
export * from './Interface/api/absenceRequest/QueryCalendarAbsenceRequest';
|
|
@@ -1154,6 +1155,7 @@ export * from './Interface/api/notificationSetting/CreateNotificationSetting';
|
|
|
1154
1155
|
export * from './Interface/api/notificationSetting/UpdateNotificationSetting';
|
|
1155
1156
|
export * from './Interface/api/appNotification/Update';
|
|
1156
1157
|
export * from './Interface/api/partners/QueryPartnerAll';
|
|
1158
|
+
export * from './Interface/api/partners/CreatePartner';
|
|
1157
1159
|
export * from './Interface/api/partners/QueryPartnerStatistic';
|
|
1158
1160
|
export * from './Interface/api/partners/QueryPartnerCsv';
|
|
1159
1161
|
export * from './Interface/api/partners/PartnerStatisticType';
|