@silexpert/core 1.2.62 → 1.2.64
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/Transaction.d.ts +2 -1
- package/dist/cjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/cjs/api/resources/Transaction.js +3 -0
- package/dist/cjs/api/resources/Transaction.js.map +1 -1
- package/dist/cjs/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/dist/cjs/types/Enum/CommercialManagement.js +8 -7
- package/dist/cjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/cjs/types/Enum/MimeType.d.ts +26 -0
- package/dist/cjs/types/Enum/MimeType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/MimeType.js +3 -1
- package/dist/cjs/types/Enum/MimeType.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationState.d.ts +5 -1
- package/dist/cjs/types/Enum/PrestationState.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationState.js +28 -0
- package/dist/cjs/types/Enum/PrestationState.js.map +1 -1
- package/dist/cjs/types/Enum/TimeSlot.js +2 -2
- package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/cjs/types/Interface/api/SocietyTransaction/Query.d.ts +4 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Query.js +23 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Read.d.ts +5 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Read.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Read.js +7 -0
- package/dist/cjs/types/Interface/api/SocietyTransaction/Read.js.map +1 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +2 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +7 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.d.ts +3 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.js +13 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +2 -1
- 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/file/TFile.d.ts +6 -0
- package/dist/cjs/types/Interface/api/file/TFile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/file/TFile.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/Transaction.d.ts +2 -1
- package/dist/mjs/api/resources/Transaction.d.ts.map +1 -1
- package/dist/mjs/api/resources/Transaction.js +6 -0
- package/dist/mjs/api/resources/Transaction.js.map +1 -1
- package/dist/mjs/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/dist/mjs/types/Enum/CommercialManagement.js +8 -7
- package/dist/mjs/types/Enum/CommercialManagement.js.map +1 -1
- package/dist/mjs/types/Enum/MimeType.d.ts +26 -0
- package/dist/mjs/types/Enum/MimeType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/MimeType.js +2 -0
- package/dist/mjs/types/Enum/MimeType.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationState.d.ts +5 -1
- package/dist/mjs/types/Enum/PrestationState.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationState.js +28 -0
- package/dist/mjs/types/Enum/PrestationState.js.map +1 -1
- package/dist/mjs/types/Enum/TimeSlot.js +2 -2
- package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/mjs/types/Interface/api/SocietyTransaction/Query.d.ts +4 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Query.js +20 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Read.d.ts +5 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Read.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Read.js +5 -0
- package/dist/mjs/types/Interface/api/SocietyTransaction/Read.js.map +1 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +2 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +8 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.d.ts +3 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Update.js +17 -3
- package/dist/mjs/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +2 -1
- 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/file/TFile.d.ts +6 -0
- package/dist/mjs/types/Interface/api/file/TFile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/file/TFile.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/Transaction.ts +12 -0
- package/ts/types/Enum/CommercialManagement.ts +9 -7
- package/ts/types/Enum/MimeType.ts +3 -0
- package/ts/types/Enum/PrestationState.ts +28 -0
- package/ts/types/Enum/TimeSlot.ts +2 -2
- package/ts/types/Interface/api/SocietyTransaction/Query.ts +8 -0
- package/ts/types/Interface/api/SocietyTransaction/Read.ts +4 -0
- package/ts/types/Interface/api/commercialManagement/Create.ts +7 -2
- package/ts/types/Interface/api/commercialManagement/Update.ts +24 -4
- package/ts/types/Interface/api/config/ConfigType.ts +15 -1
- package/ts/types/Interface/api/file/TFile.ts +8 -0
- package/ts/types/index.ts +2 -0
|
@@ -110,8 +110,10 @@ export const emailTemplateVariableList = [
|
|
|
110
110
|
'montant_ttc_document',
|
|
111
111
|
'titre_document',
|
|
112
112
|
'raison_sociale',
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
|
|
114
|
+
// not used for now
|
|
115
|
+
// 'lien_google',
|
|
116
|
+
// 'lien_trustpilot',
|
|
115
117
|
];
|
|
116
118
|
export const emailTemplateVariableAffiliatedData: Array<{
|
|
117
119
|
name: string;
|
|
@@ -174,7 +176,7 @@ export const emailTypeList: Array<{ label: string; id: EmailType }> = [
|
|
|
174
176
|
|
|
175
177
|
export const DefaultEmailTemplateList: Array<Omit<ISaleEmail, 'idSociety'>> = [
|
|
176
178
|
{
|
|
177
|
-
name: '
|
|
179
|
+
name: 'modèle devis par défaut',
|
|
178
180
|
subject: 'Votre devis',
|
|
179
181
|
content: `<p>Bonjour, <span style="color: rgb(131, 131, 132);">[nom_client]</span> </p>
|
|
180
182
|
<p>Vous trouverez ci-joint votre devis N°<span style="color: rgb(131, 131, 132);">[reference_document]</span> d’un montant de <span style="color: rgb(131, 131, 132);">[montant_ttc_document]</span>. </p>
|
|
@@ -186,7 +188,7 @@ export const DefaultEmailTemplateList: Array<Omit<ISaleEmail, 'idSociety'>> = [
|
|
|
186
188
|
isDefault: false,
|
|
187
189
|
},
|
|
188
190
|
{
|
|
189
|
-
name: '
|
|
191
|
+
name: 'modèle facture par défaut',
|
|
190
192
|
subject: 'Votre facture',
|
|
191
193
|
content: `<p>Bonjour, <span style="color: rgb(131, 131, 132);">[nom_client]</span> </p>
|
|
192
194
|
<p>Vous trouverez ci-joint votre facture N°<span style="color: rgb(131, 131, 132);">[reference_document]</span> d’un montant de <span style="color: rgb(131, 131, 132);">[montant_ttc_document]</span>.</p> <p>Vous en souhaitant bonne réception.</p>
|
|
@@ -197,7 +199,7 @@ export const DefaultEmailTemplateList: Array<Omit<ISaleEmail, 'idSociety'>> = [
|
|
|
197
199
|
isDefault: false,
|
|
198
200
|
},
|
|
199
201
|
{
|
|
200
|
-
name: '
|
|
202
|
+
name: 'modèle bon de commande par défaut',
|
|
201
203
|
subject: 'Votre bon de commande',
|
|
202
204
|
content: `<p>Bonjour, <span style="color: rgb(131, 131, 132);">[nom_client]</span></p>
|
|
203
205
|
<p>Vous trouverez ci-joint votre bon de commande N°<span style="color: rgb(131, 131, 132);">[reference_document]</span> d’un montant de <span style="color: rgb(131, 131, 132);">[montant_ttc_document]</span>. </p>
|
|
@@ -209,7 +211,7 @@ export const DefaultEmailTemplateList: Array<Omit<ISaleEmail, 'idSociety'>> = [
|
|
|
209
211
|
isDefault: false,
|
|
210
212
|
},
|
|
211
213
|
{
|
|
212
|
-
name: '
|
|
214
|
+
name: 'modèle avoir par défaut',
|
|
213
215
|
subject: 'Votre avoir',
|
|
214
216
|
content: `<p>Bonjour, <span style="color: rgb(131, 131, 132);">[nom_client]</span> </p>
|
|
215
217
|
<p>Vous trouverez ci-joint votre facture.</p>
|
|
@@ -222,7 +224,7 @@ export const DefaultEmailTemplateList: Array<Omit<ISaleEmail, 'idSociety'>> = [
|
|
|
222
224
|
isDefault: false,
|
|
223
225
|
},
|
|
224
226
|
{
|
|
225
|
-
name: '
|
|
227
|
+
name: 'modèle relance par défaut',
|
|
226
228
|
subject: 'Votre facture',
|
|
227
229
|
content: `<p>Bonjour, <span style="color: rgb(131, 131, 132);">[nom_client]</span> </p>
|
|
228
230
|
<p>
|
|
@@ -5,7 +5,10 @@ export enum JuridicalPrestationState {
|
|
|
5
5
|
WAITING_INFO_BILLING = 4,
|
|
6
6
|
WAITING_SIGNED_DOCUMENTS_AND_BILLING = 5,
|
|
7
7
|
WAITING_REGISTRATION = 6,
|
|
8
|
+
WAITING_PAYMENT_OF_COURT_FEES = 7,
|
|
8
9
|
WAITING_KBIS = 8,
|
|
10
|
+
SENDING_KBIS = 9,
|
|
11
|
+
DISCONTINUED = 10,
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
export const JuridicalPrestationStateDetail = [
|
|
@@ -13,35 +16,60 @@ export const JuridicalPrestationStateDetail = [
|
|
|
13
16
|
id: JuridicalPrestationState.TO_CONTACT_BILLING_TO_DO,
|
|
14
17
|
name: 'A contacter / facturation à faire',
|
|
15
18
|
color: 'grey lighten-4',
|
|
19
|
+
hidden: false,
|
|
16
20
|
},
|
|
17
21
|
{
|
|
18
22
|
id: JuridicalPrestationState.WAITING_INFO_BILLING,
|
|
19
23
|
name: 'En attente informations / paiement',
|
|
20
24
|
color: 'blue lighten-4',
|
|
25
|
+
hidden: false,
|
|
21
26
|
},
|
|
22
27
|
{
|
|
23
28
|
id: JuridicalPrestationState.WAITING_SIGNED_DOCUMENTS_AND_BILLING,
|
|
24
29
|
name: 'En attente documents signés et paiements',
|
|
25
30
|
color: 'blue',
|
|
31
|
+
hidden: false,
|
|
26
32
|
},
|
|
27
33
|
{
|
|
28
34
|
id: JuridicalPrestationState.WAITING_REGISTRATION,
|
|
29
35
|
name: 'En attente enregistrement',
|
|
30
36
|
color: 'blue lighten-4',
|
|
37
|
+
hidden: false,
|
|
31
38
|
},
|
|
32
39
|
{
|
|
33
40
|
id: JuridicalPrestationState.WAITING_BALANCE_SHEET_LIQUI,
|
|
34
41
|
name: 'En attente bilan de liquidation',
|
|
35
42
|
color: 'primary',
|
|
43
|
+
hidden: false,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: JuridicalPrestationState.WAITING_PAYMENT_OF_COURT_FEES,
|
|
47
|
+
name: 'En attente paiement des frais de Greffe',
|
|
48
|
+
color: 'purple lighten-4',
|
|
49
|
+
hidden: true,
|
|
36
50
|
},
|
|
37
51
|
{
|
|
38
52
|
id: JuridicalPrestationState.WAITING_KBIS,
|
|
39
53
|
name: 'En attente KBIS',
|
|
40
54
|
color: 'yellow lighten-4',
|
|
55
|
+
hidden: false,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: JuridicalPrestationState.SENDING_KBIS,
|
|
59
|
+
name: 'Envoi de KBIS',
|
|
60
|
+
color: 'primary lighten-2',
|
|
61
|
+
hidden: true,
|
|
41
62
|
},
|
|
42
63
|
{
|
|
43
64
|
id: JuridicalPrestationState.DONE,
|
|
44
65
|
name: 'Dossier terminé',
|
|
45
66
|
color: 'success',
|
|
67
|
+
hidden: false,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: JuridicalPrestationState.DISCONTINUED,
|
|
71
|
+
name: 'Dossier abandon',
|
|
72
|
+
color: 'error',
|
|
73
|
+
hidden: true,
|
|
46
74
|
},
|
|
47
75
|
];
|
|
@@ -233,7 +233,7 @@ export const TimeSlotDetail: TimeSlotDetailType[] = [
|
|
|
233
233
|
category: TimeSlotCategoryDetail.find((c) => c.id === TimeSlotCategory.JURIDIC)?.name,
|
|
234
234
|
duration: 60,
|
|
235
235
|
idRole: [Role.JURIDIC, Role.DIRECTOR],
|
|
236
|
-
forWholeService:
|
|
236
|
+
forWholeService: true,
|
|
237
237
|
idTimeCounterType: TimeCounterType.CALENDLY.id,
|
|
238
238
|
},
|
|
239
239
|
{
|
|
@@ -314,7 +314,7 @@ export const TimeSlotDetail: TimeSlotDetailType[] = [
|
|
|
314
314
|
duration: 60,
|
|
315
315
|
idRole: [Role.JURIDIC, Role.MANAGER],
|
|
316
316
|
idRoleExcluded: [Role.DIRECTOR],
|
|
317
|
-
forWholeService:
|
|
317
|
+
forWholeService: true,
|
|
318
318
|
idTimeCounterType: TimeCounterType.CALENDLY.id,
|
|
319
319
|
},
|
|
320
320
|
{
|
|
@@ -579,10 +579,15 @@ export class CreateReminder {
|
|
|
579
579
|
@IsOptional()
|
|
580
580
|
customizedDate?: Date;
|
|
581
581
|
|
|
582
|
-
@
|
|
582
|
+
@ApiPropertyOptional()
|
|
583
|
+
@IsNumber()
|
|
584
|
+
@IsOptional()
|
|
585
|
+
customizedDayDiff?: number;
|
|
586
|
+
|
|
587
|
+
@ApiPropertyOptional()
|
|
583
588
|
@IsArray()
|
|
584
589
|
@IsInt({ each: true })
|
|
585
|
-
idFiles
|
|
590
|
+
idFiles?: number[];
|
|
586
591
|
}
|
|
587
592
|
|
|
588
593
|
export class CreateRecurrence {
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
IsArray,
|
|
3
|
+
IsBoolean,
|
|
4
|
+
IsDate,
|
|
5
|
+
IsDateString,
|
|
6
|
+
IsEnum,
|
|
7
|
+
IsInt,
|
|
8
|
+
IsNumber,
|
|
9
|
+
IsOptional,
|
|
10
|
+
IsString,
|
|
11
|
+
} from 'class-validator';
|
|
12
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
13
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
14
|
import { RecurrenceType } from '../../../Enum/RecurrenceType';
|
|
5
15
|
|
|
@@ -85,10 +95,20 @@ export class UpdateReminder {
|
|
|
85
95
|
@IsOptional()
|
|
86
96
|
email?: string;
|
|
87
97
|
|
|
88
|
-
@
|
|
98
|
+
@ApiPropertyOptional()
|
|
99
|
+
@IsDate()
|
|
100
|
+
@IsOptional()
|
|
101
|
+
customizedDate?: Date;
|
|
102
|
+
|
|
103
|
+
@ApiPropertyOptional()
|
|
104
|
+
@IsNumber()
|
|
105
|
+
@IsOptional()
|
|
106
|
+
customizedDayDiff?: number;
|
|
107
|
+
|
|
108
|
+
@ApiPropertyOptional()
|
|
89
109
|
@IsArray()
|
|
90
110
|
@IsInt({ each: true })
|
|
91
|
-
idFiles
|
|
111
|
+
idFiles?: number[];
|
|
92
112
|
}
|
|
93
113
|
|
|
94
114
|
export class UpdateRecurrence {
|
|
@@ -133,10 +133,24 @@ export interface Bred {
|
|
|
133
133
|
subscriptionKey: string;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
export type BucketName =
|
|
137
|
+
| 'resources-local-dev'
|
|
138
|
+
| 'resources-anytime'
|
|
139
|
+
| 'resources-comptalib'
|
|
140
|
+
| 'resources-eunomia'
|
|
141
|
+
| 'resources-legalstart'
|
|
142
|
+
| 'resources-pourcentage'
|
|
143
|
+
| 'resources-statuts-express'
|
|
144
|
+
| 'resources-clementine'
|
|
145
|
+
| 'resources-comptalib-staging'
|
|
146
|
+
| 'clementine-website'
|
|
147
|
+
| 'resources-internal'
|
|
148
|
+
| 'sales-contract';
|
|
149
|
+
|
|
136
150
|
export interface AwsClementine {
|
|
137
151
|
accessKeyId: string;
|
|
138
152
|
secretAccessKey: string;
|
|
139
|
-
clementineBucketName:
|
|
153
|
+
clementineBucketName: BucketName;
|
|
140
154
|
apiVersion: string;
|
|
141
155
|
}
|
|
142
156
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** @deprecated use TFile2 first */
|
|
1
2
|
export type TFile = {
|
|
2
3
|
buffer: Buffer;
|
|
3
4
|
encoding?: string;
|
|
@@ -7,3 +8,10 @@ export type TFile = {
|
|
|
7
8
|
size?: number;
|
|
8
9
|
bankFileId?: string;
|
|
9
10
|
};
|
|
11
|
+
|
|
12
|
+
// TODO: Utiliser File natif une fois toutes les apps en Node 20+
|
|
13
|
+
export type TFile2 = {
|
|
14
|
+
buffer: Buffer;
|
|
15
|
+
mimeType?: string;
|
|
16
|
+
originalname: string;
|
|
17
|
+
};
|
package/ts/types/index.ts
CHANGED
|
@@ -733,7 +733,9 @@ export * from './Interface/api/vatDeclaration/ReadVatVariousOperations';
|
|
|
733
733
|
export * from './Interface/api/vatDeclaration/ResultFormatToEntries';
|
|
734
734
|
export * from './Interface/api/promoCode/QueryDefaultPromotion';
|
|
735
735
|
export * from './Interface/api/promoCode/ReadDefaultPromotion';
|
|
736
|
+
export * from './Interface/api/SocietyTransaction/Query';
|
|
736
737
|
export * from './Interface/api/SocietyTransaction/QuerySocietyTransactionCount';
|
|
738
|
+
export * from './Interface/api/SocietyTransaction/Read';
|
|
737
739
|
export * from './Interface/api/SocietyTransaction/ReadSocietyTransactionCount';
|
|
738
740
|
export * from './Interface/api/salesContract/SendSalesContractParams';
|
|
739
741
|
export * from './Interface/api/salesContract/GenerateSalesContractParams';
|