@silexpert/core 1.3.2 → 1.3.3
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/FIle.js +1 -1
- package/dist/cjs/api/resources/FIle.js.map +1 -1
- package/dist/cjs/api/resources/User.d.ts +2 -2
- package/dist/cjs/api/resources/User.d.ts.map +1 -1
- package/dist/cjs/api/resources/User.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +6 -1
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandLegalstart.js +2 -0
- package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js +6 -0
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/Marketing.d.ts +5 -0
- package/dist/cjs/types/Enum/Marketing.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Marketing.js +9 -0
- package/dist/cjs/types/Enum/Marketing.js.map +1 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +6 -0
- package/dist/cjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Query.d.ts +3 -0
- package/dist/cjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/checklist/Query.js +18 -0
- package/dist/cjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +2 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +13 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.d.ts +2 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.js +13 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/dist/cjs/types/Interface/api/file/Create.js +1 -1
- package/dist/cjs/types/Interface/api/file/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/marketing/NewLeadSheet.d.ts +10 -0
- package/dist/cjs/types/Interface/api/marketing/NewLeadSheet.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/marketing/NewLeadSheet.js +3 -0
- package/dist/cjs/types/Interface/api/marketing/NewLeadSheet.js.map +1 -0
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.d.ts +1 -0
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.js +7 -0
- package/dist/cjs/types/Interface/api/society/QueryUnpaid.js.map +1 -1
- package/dist/cjs/types/Interface/api/user/Query.d.ts +8 -1
- package/dist/cjs/types/Interface/api/user/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/user/Query.js +41 -5
- package/dist/cjs/types/Interface/api/user/Query.js.map +1 -1
- package/dist/cjs/types/Interface/models/IInvoiceRecurrence.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IInvoiceRecurrence.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IInvoiceRecurrence.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/cjs/types/Interface/models/ISupervision.d.ts +26 -26
- package/dist/cjs/types/Interface/models/ISupervision.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISupervision.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/cjs/utils/commercialManagement/templates/common.js +3 -3
- package/dist/cjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/dist/mjs/api/resources/FIle.js +1 -1
- package/dist/mjs/api/resources/FIle.js.map +1 -1
- package/dist/mjs/api/resources/User.d.ts +2 -2
- package/dist/mjs/api/resources/User.d.ts.map +1 -1
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +6 -1
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandLegalstart.js +2 -0
- package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +6 -0
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/Marketing.d.ts +5 -0
- package/dist/mjs/types/Enum/Marketing.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Marketing.js +6 -0
- package/dist/mjs/types/Enum/Marketing.js.map +1 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +1 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +7 -0
- package/dist/mjs/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Query.d.ts +3 -0
- package/dist/mjs/types/Interface/api/checklist/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/checklist/Query.js +21 -0
- package/dist/mjs/types/Interface/api/checklist/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +2 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +15 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.d.ts +2 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.js +15 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/dist/mjs/types/Interface/api/file/Create.js +1 -1
- package/dist/mjs/types/Interface/api/file/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/marketing/NewLeadSheet.d.ts +10 -0
- package/dist/mjs/types/Interface/api/marketing/NewLeadSheet.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/marketing/NewLeadSheet.js +2 -0
- package/dist/mjs/types/Interface/api/marketing/NewLeadSheet.js.map +1 -0
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.d.ts +1 -0
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.js +8 -0
- package/dist/mjs/types/Interface/api/society/QueryUnpaid.js.map +1 -1
- package/dist/mjs/types/Interface/api/user/Query.d.ts +8 -1
- package/dist/mjs/types/Interface/api/user/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/user/Query.js +44 -3
- package/dist/mjs/types/Interface/api/user/Query.js.map +1 -1
- package/dist/mjs/types/Interface/models/IInvoiceRecurrence.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IInvoiceRecurrence.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IInvoiceRecurrence.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ISociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISociety.js.map +1 -1
- package/dist/mjs/types/Interface/models/ISupervision.d.ts +26 -26
- package/dist/mjs/types/Interface/models/ISupervision.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISupervision.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/dist/mjs/utils/commercialManagement/templates/common.js +3 -3
- package/dist/mjs/utils/commercialManagement/templates/common.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/FIle.ts +1 -1
- package/ts/api/resources/User.ts +2 -2
- package/ts/types/Enum/BrandClementine.ts +6 -1
- package/ts/types/Enum/BrandLegalstart.ts +2 -0
- package/ts/types/Enum/BrandPourcentage.ts +6 -0
- package/ts/types/Enum/Marketing.ts +4 -0
- package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +5 -0
- package/ts/types/Interface/api/checklist/Query.ts +15 -0
- package/ts/types/Interface/api/commercialManagement/Create.ts +11 -0
- package/ts/types/Interface/api/commercialManagement/Update.ts +11 -0
- package/ts/types/Interface/api/file/Create.ts +1 -1
- package/ts/types/Interface/api/marketing/NewLeadSheet.ts +10 -0
- package/ts/types/Interface/api/society/QueryUnpaid.ts +7 -1
- package/ts/types/Interface/api/user/Query.ts +35 -2
- package/ts/types/Interface/models/IInvoiceRecurrence.ts +2 -0
- package/ts/types/Interface/models/ISociety.ts +1 -0
- package/ts/types/Interface/models/ISupervision.ts +26 -26
- package/ts/types/index.ts +2 -0
- package/ts/utils/commercialManagement/templates/common.ts +3 -3
|
@@ -590,6 +590,7 @@ export class CreateReminder {
|
|
|
590
590
|
customizedDate?: Date;
|
|
591
591
|
|
|
592
592
|
@ApiPropertyOptional()
|
|
593
|
+
@IsOptional()
|
|
593
594
|
@IsArray()
|
|
594
595
|
@IsInt({ each: true })
|
|
595
596
|
idFiles?: number[];
|
|
@@ -617,6 +618,16 @@ export class CreateRecurrence {
|
|
|
617
618
|
@ToBoolean()
|
|
618
619
|
@IsBoolean()
|
|
619
620
|
isActive: boolean;
|
|
621
|
+
|
|
622
|
+
@ApiProperty()
|
|
623
|
+
@ToBoolean()
|
|
624
|
+
@IsBoolean()
|
|
625
|
+
shouldSendEmailOnCreation: boolean;
|
|
626
|
+
|
|
627
|
+
@ApiPropertyOptional()
|
|
628
|
+
@IsNumber()
|
|
629
|
+
@IsOptional()
|
|
630
|
+
idSaleEmail?: number;
|
|
620
631
|
}
|
|
621
632
|
|
|
622
633
|
export class CreateRegenerateDocument {
|
|
@@ -106,6 +106,7 @@ export class UpdateReminder {
|
|
|
106
106
|
customizedDayDiff?: number;
|
|
107
107
|
|
|
108
108
|
@ApiPropertyOptional()
|
|
109
|
+
@IsOptional()
|
|
109
110
|
@IsArray()
|
|
110
111
|
@IsInt({ each: true })
|
|
111
112
|
idFiles?: number[];
|
|
@@ -132,4 +133,14 @@ export class UpdateRecurrence {
|
|
|
132
133
|
@IsBoolean()
|
|
133
134
|
@IsOptional()
|
|
134
135
|
isActive?: boolean;
|
|
136
|
+
|
|
137
|
+
@ApiPropertyOptional()
|
|
138
|
+
@ToBoolean()
|
|
139
|
+
@IsOptional()
|
|
140
|
+
shouldSendEmailOnCreation?: boolean;
|
|
141
|
+
|
|
142
|
+
@ApiPropertyOptional()
|
|
143
|
+
@IsNumber()
|
|
144
|
+
@IsOptional()
|
|
145
|
+
idSaleEmail?: number;
|
|
135
146
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MarketingConversionName } from '../../../Enum/Marketing';
|
|
2
|
+
|
|
3
|
+
export interface MarketingNewLeadSheet {
|
|
4
|
+
email: string;
|
|
5
|
+
prefix: string;
|
|
6
|
+
phone: string;
|
|
7
|
+
conversionName: MarketingConversionName;
|
|
8
|
+
conversionTime: Date;
|
|
9
|
+
conversionValue: number;
|
|
10
|
+
}
|
|
@@ -23,7 +23,13 @@ export class QueryUnpaidSociety {
|
|
|
23
23
|
@IsOptional()
|
|
24
24
|
@IsBoolean()
|
|
25
25
|
@ToBoolean()
|
|
26
|
-
isRecoverable?: boolean;
|
|
26
|
+
isRecoverable?: boolean;
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsBoolean()
|
|
31
|
+
@ToBoolean()
|
|
32
|
+
isRecovering?: boolean;
|
|
27
33
|
|
|
28
34
|
@ApiPropertyOptional()
|
|
29
35
|
@IsOptional()
|
|
@@ -2,6 +2,8 @@ import { IsArray, IsBoolean, IsIn, IsInt, IsNumber, IsOptional, IsString, Min }
|
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
import { SubscriptionType } from '../../../Enum/SubscriptionType';
|
|
5
|
+
import { WhereOptions } from 'sequelize';
|
|
6
|
+
import { ISociety } from '../../models/ISociety';
|
|
5
7
|
|
|
6
8
|
export class QueryConfirm {
|
|
7
9
|
@ApiProperty()
|
|
@@ -83,11 +85,42 @@ export class QueryResendConfirmationLink {
|
|
|
83
85
|
id: number;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
export class
|
|
88
|
+
export class GetSocietyFromUser {
|
|
87
89
|
@ApiPropertyOptional()
|
|
88
|
-
@IsNumber()
|
|
89
90
|
@IsOptional()
|
|
91
|
+
@IsNumber()
|
|
90
92
|
idSubscriptionType?: SubscriptionType;
|
|
93
|
+
|
|
94
|
+
@ApiPropertyOptional()
|
|
95
|
+
@IsOptional()
|
|
96
|
+
@IsBoolean()
|
|
97
|
+
@ToBoolean()
|
|
98
|
+
displayArchived?: boolean;
|
|
99
|
+
|
|
100
|
+
@ApiPropertyOptional()
|
|
101
|
+
@IsOptional()
|
|
102
|
+
@IsBoolean()
|
|
103
|
+
@ToBoolean()
|
|
104
|
+
onlyLabAccepted?: boolean;
|
|
105
|
+
|
|
106
|
+
@ApiPropertyOptional()
|
|
107
|
+
@IsOptional()
|
|
108
|
+
@IsString({each: true})
|
|
109
|
+
attributes?: Extract<keyof ISociety, string>[];
|
|
110
|
+
|
|
111
|
+
@ApiPropertyOptional({
|
|
112
|
+
default: ['societyConfig','brandType','societyGescom','oldExpertInfo','activity','follows','compta','subscriptionType','connector','permissions']
|
|
113
|
+
})
|
|
114
|
+
@IsOptional()
|
|
115
|
+
@IsString({
|
|
116
|
+
each: true,
|
|
117
|
+
})
|
|
118
|
+
@IsIn(['societyConfig','brandType','societyGescom','oldExpertInfo','activity','follows','compta','subscriptionType','connector','permissions','societyDetails'], { each: true })
|
|
119
|
+
include?: string[];
|
|
120
|
+
|
|
121
|
+
@ApiPropertyOptional()
|
|
122
|
+
@IsOptional()
|
|
123
|
+
where?: WhereOptions<ISociety>;
|
|
91
124
|
}
|
|
92
125
|
|
|
93
126
|
export class QueryUpdatePassword {
|
|
@@ -10,36 +10,36 @@ import { IUser } from './IUser';
|
|
|
10
10
|
export interface ISupervision {
|
|
11
11
|
id?: number;
|
|
12
12
|
state: number | null;
|
|
13
|
-
sendToJedeclare
|
|
14
|
-
dueDate
|
|
15
|
-
revisionDate
|
|
16
|
-
superviseurId
|
|
17
|
-
expertId
|
|
18
|
-
dateAssignmentSuperviseur
|
|
13
|
+
sendToJedeclare?: boolean | null;
|
|
14
|
+
dueDate?: Date | null;
|
|
15
|
+
revisionDate?: Date | null;
|
|
16
|
+
superviseurId?: number | null;
|
|
17
|
+
expertId?: number | null;
|
|
18
|
+
dateAssignmentSuperviseur?: Date | null;
|
|
19
19
|
idExercice: number;
|
|
20
|
-
idAccountant
|
|
21
|
-
idFile
|
|
22
|
-
idLetter
|
|
23
|
-
checkDateRecommandation
|
|
24
|
-
freeText
|
|
25
|
-
freeTextDate
|
|
26
|
-
freeTextUserId
|
|
27
|
-
idBalanceSheet
|
|
28
|
-
idUserWhoValidate
|
|
20
|
+
idAccountant?: number | null;
|
|
21
|
+
idFile?: number | null;
|
|
22
|
+
idLetter?: number | null;
|
|
23
|
+
checkDateRecommandation?: Date | null;
|
|
24
|
+
freeText?: string | null;
|
|
25
|
+
freeTextDate?: Date | null;
|
|
26
|
+
freeTextUserId?: number | null;
|
|
27
|
+
idBalanceSheet?: number | null;
|
|
28
|
+
idUserWhoValidate?: number | null;
|
|
29
29
|
validateDate?: Date | null;
|
|
30
30
|
createdAt?: Date | null;
|
|
31
31
|
updatedAt?: Date | null;
|
|
32
32
|
|
|
33
33
|
// Associations
|
|
34
|
-
exercice
|
|
35
|
-
supervisionUsers
|
|
36
|
-
supervisionExpertUsers
|
|
37
|
-
supervisionAccountant
|
|
38
|
-
freeTextUser
|
|
39
|
-
balanceSheet
|
|
40
|
-
file
|
|
41
|
-
letter
|
|
42
|
-
supervisionPendingPoints
|
|
43
|
-
pendingPoints
|
|
44
|
-
userWhoValidate
|
|
34
|
+
exercice?: IExercice;
|
|
35
|
+
supervisionUsers?: IUser;
|
|
36
|
+
supervisionExpertUsers?: IUser;
|
|
37
|
+
supervisionAccountant?: IUser;
|
|
38
|
+
freeTextUser?: IUser;
|
|
39
|
+
balanceSheet?: IBalanceSheet;
|
|
40
|
+
file?: IFile;
|
|
41
|
+
letter?: ILetter;
|
|
42
|
+
supervisionPendingPoints?: ISupervisionPendingPoint[];
|
|
43
|
+
pendingPoints?: IPendingPoint[];
|
|
44
|
+
userWhoValidate?: IUser;
|
|
45
45
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -569,6 +569,7 @@ export * from './Enum/ReasonCancelSignatureRequest';
|
|
|
569
569
|
export * from './Enum/ReasonNotSubscribed';
|
|
570
570
|
export * from './Enum/QualificationLead';
|
|
571
571
|
export * from './Enum/Template';
|
|
572
|
+
export * from './Enum/Marketing';
|
|
572
573
|
|
|
573
574
|
// Interfaces API
|
|
574
575
|
export * from './Interface/api/exercice/ReadExercice';
|
|
@@ -1179,3 +1180,4 @@ export * from './Interface/api/IntermediateManagementRebate';
|
|
|
1179
1180
|
export * from './Interface/api/regulation/Query';
|
|
1180
1181
|
export * from './Interface/api/regulation/Read';
|
|
1181
1182
|
export * from './Interface/api/regulation/Create';
|
|
1183
|
+
export * from './Interface/api/marketing/NewLeadSheet';
|
|
@@ -29,9 +29,9 @@ export class CommercialDocumentCommonHTML {
|
|
|
29
29
|
</div>`;
|
|
30
30
|
|
|
31
31
|
company = `<div>
|
|
32
|
-
<% if (name) { %><p><%= name
|
|
33
|
-
<% if (number || street) {%><p><%}%><% if (number) { %><%= number + ' ' %><% } if (street) { %><%= street %><% } if (number || street) {
|
|
34
|
-
<% if (zipCode || city) {%><p><%}%><% if (zipCode) { %><%= zipCode + ' ' %><% } if (city) { %><%= city %><% } if (zipCode || city) { %></p><% } %>
|
|
32
|
+
<% if (name) { %><p><%= name %></p><% } %>
|
|
33
|
+
<% if (number || street) { %><p><% } %><% if (number) { %><%= number + ' ' %><% } if (street) { %><%= street %><% } if (number || street) { %></p><% } %>
|
|
34
|
+
<% if (zipCode || city) { %><p><% } %><% if (zipCode) { %><%= zipCode + ' ' %><% } if (city) { %><%= city %><% } if (zipCode || city) { %></p><% } %>
|
|
35
35
|
</div>
|
|
36
36
|
<% if (phoneContact) { %><p><%= phoneContact %><p><% } %>
|
|
37
37
|
<% if (settings && settings.mailContact) { %><p><%= settings.mailContact %></p><% } %>`;
|