@silexpert/core 1.0.136 → 1.0.139
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/es/api/resources/Mail.d.ts +3 -3
- package/es/api/resources/Mail.d.ts.map +1 -1
- package/es/api/resources/Mail.js +2 -2
- package/es/api/resources/Mail.js.map +1 -1
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/es/types/Enum/TaskResponseType.js +11 -0
- package/es/types/Enum/TaskResponseType.js.map +1 -1
- package/es/types/Interface/api/mail/GetMailPromise.d.ts +5 -0
- package/es/types/Interface/api/mail/GetMailPromise.d.ts.map +1 -0
- package/es/types/Interface/api/mail/GetMailPromise.js +2 -0
- package/es/types/Interface/api/mail/GetMailPromise.js.map +1 -0
- package/es/types/Interface/api/mail/QueryMail.d.ts +8 -0
- package/es/types/Interface/api/mail/QueryMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryMail.js +44 -1
- package/es/types/Interface/api/mail/QueryMail.js.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts +2 -0
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.d.ts.map +1 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js +8 -1
- package/es/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/es/types/Interface/api/wallet/QueryWallet.d.ts +1 -0
- package/es/types/Interface/api/wallet/QueryWallet.d.ts.map +1 -1
- package/es/types/Interface/api/wallet/QueryWallet.js +5 -0
- package/es/types/Interface/api/wallet/QueryWallet.js.map +1 -1
- package/es/types/index.d.ts +1 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/documents.js +5 -5
- package/es/utils/documents.js.map +1 -1
- package/js/api/resources/Mail.js +2 -2
- package/js/api/resources/Mail.js.map +1 -1
- package/js/types/Enum/TaskResponseType.js +10 -0
- package/js/types/Enum/TaskResponseType.js.map +1 -1
- package/js/types/Interface/api/mail/GetMailPromise.js +6 -0
- package/js/types/Interface/api/mail/GetMailPromise.js.map +1 -0
- package/js/types/Interface/api/mail/QueryMail.js +23 -1
- package/js/types/Interface/api/mail/QueryMail.js.map +1 -1
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js +7 -0
- package/js/types/Interface/api/taxDeadline/QueryTaxDeadline.js.map +1 -1
- package/js/types/Interface/api/wallet/QueryWallet.js +2 -0
- package/js/types/Interface/api/wallet/QueryWallet.js.map +1 -1
- package/js/types/index.js +12 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/documents.js +5 -5
- package/js/utils/documents.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Mail.ts +5 -3
- package/ts/types/Enum/TaskResponseType.ts +11 -0
- package/ts/types/Interface/api/mail/GetMailPromise.ts +5 -0
- package/ts/types/Interface/api/mail/QueryMail.ts +38 -1
- package/ts/types/Interface/api/taxDeadline/QueryTaxDeadline.ts +9 -1
- package/ts/types/Interface/api/wallet/QueryWallet.ts +4 -0
- package/ts/types/index.ts +1 -0
- package/ts/utils/documents.ts +5 -5
package/ts/api/resources/Mail.ts
CHANGED
|
@@ -8,6 +8,8 @@ import {
|
|
|
8
8
|
CreateMailParams,
|
|
9
9
|
QueryAllMail,
|
|
10
10
|
QueryGetSignature,
|
|
11
|
+
GetMailPromise,
|
|
12
|
+
QueryUpdateMail,
|
|
11
13
|
} from '../../types';
|
|
12
14
|
|
|
13
15
|
export class Mail extends Resource {
|
|
@@ -15,8 +17,8 @@ export class Mail extends Resource {
|
|
|
15
17
|
return this.axios.$post('/mails', payload);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
public get(
|
|
19
|
-
return this.axios.$get(
|
|
20
|
+
public get(params: QueryMail): Promise<GetMailPromise> {
|
|
21
|
+
return this.axios.$get('/mails', { params });
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
public getAll(params: Partial<QueryAllMail>): Promise<Mail> {
|
|
@@ -195,7 +197,7 @@ export class Mail extends Resource {
|
|
|
195
197
|
});
|
|
196
198
|
}
|
|
197
199
|
|
|
198
|
-
update(id: number, payload: UpdateMailPayload, params:
|
|
200
|
+
update(id: number, payload: UpdateMailPayload, params: QueryUpdateMail): Promise<IMail> {
|
|
199
201
|
return this.axios.patch(`/mails/${id}`, { ...payload, ...params });
|
|
200
202
|
}
|
|
201
203
|
|
|
@@ -332,6 +332,17 @@ export const TaskResponseType = {
|
|
|
332
332
|
responseType: ResponseType.CALL,
|
|
333
333
|
description: 'Appel notation suite à la livraison du bilan',
|
|
334
334
|
},
|
|
335
|
+
{
|
|
336
|
+
id: 32,
|
|
337
|
+
label: 'Administratif',
|
|
338
|
+
role: Role.CUSTOMER_SUCCESS,
|
|
339
|
+
deadline: Deadline,
|
|
340
|
+
isForWholeRole: false,
|
|
341
|
+
backToClient: false,
|
|
342
|
+
goToCalendar: false,
|
|
343
|
+
responseType: null,
|
|
344
|
+
description: 'Rendez-vous Clémentine',
|
|
345
|
+
},
|
|
335
346
|
],
|
|
336
347
|
|
|
337
348
|
},
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsIn, IsOptional, IsString,
|
|
2
|
+
IsIn, IsInt, IsOptional, IsString,
|
|
3
3
|
} from 'class-validator';
|
|
4
4
|
import { ApiPropertyOptional } from '../../../../utils/decorators';
|
|
5
5
|
|
|
6
6
|
export class QueryMail {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsInt()
|
|
10
|
+
id?: number;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
idSociety?: number;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsInt()
|
|
20
|
+
idExercice?: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsInt()
|
|
25
|
+
idMailAuto?: number;
|
|
26
|
+
|
|
7
27
|
@ApiPropertyOptional()
|
|
8
28
|
@IsOptional()
|
|
9
29
|
@IsString({
|
|
@@ -19,3 +39,20 @@ export class QueryMail {
|
|
|
19
39
|
})
|
|
20
40
|
attributes?: string[];
|
|
21
41
|
}
|
|
42
|
+
|
|
43
|
+
export class QueryUpdateMail {
|
|
44
|
+
@ApiPropertyOptional()
|
|
45
|
+
@IsOptional()
|
|
46
|
+
@IsString({
|
|
47
|
+
each: true,
|
|
48
|
+
})
|
|
49
|
+
@IsIn(['society', 'mailContent', 'mailAttachment', 'userWhoFlagged'], { each: true })
|
|
50
|
+
include?: string[];
|
|
51
|
+
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
@IsOptional()
|
|
54
|
+
@IsString({
|
|
55
|
+
each: true,
|
|
56
|
+
})
|
|
57
|
+
attributes?: string[];
|
|
58
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { IsOptional, IsEnum } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
VatRegime, ToDoOrDone, BankCollectingState,
|
|
5
|
+
} from '../../..';
|
|
4
6
|
import { ComptaType } from '../../../Enum/ComptaType';
|
|
5
7
|
import { TaxSystem } from '../../../Enum/TaxSystem';
|
|
6
8
|
import { Supervision } from '../../../Enum/Supervision';
|
|
7
9
|
import { BalanceSheetState } from '../../../Enum/BalanceSheet';
|
|
10
|
+
import { LegalForm, LegalFormType } from '../../../Enum/LegalForm';
|
|
8
11
|
|
|
9
12
|
export class QueryTaxDeadline {
|
|
10
13
|
@ApiProperty({ description: 'Identifiant du collaborateur' })
|
|
@@ -56,6 +59,11 @@ export class QueryTaxDeadline {
|
|
|
56
59
|
@IsOptional()
|
|
57
60
|
@IsEnum(ToDoOrDone)
|
|
58
61
|
idTaxStatus?: ToDoOrDone;
|
|
62
|
+
|
|
63
|
+
@ApiPropertyOptional({ description: 'Forme juridique', enum: LegalForm })
|
|
64
|
+
@IsOptional()
|
|
65
|
+
@IsEnum(LegalForm)
|
|
66
|
+
idLegalForm?: LegalFormType | LegalFormType[];
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
export class QueryTaxDeadlineStatistics {
|
package/ts/types/index.ts
CHANGED
|
@@ -535,6 +535,7 @@ export * from './Interface/api/mail/QueryCountMail';
|
|
|
535
535
|
export * from './Interface/api/mail/UpdateMail';
|
|
536
536
|
export * from './Interface/api/mail/CreateMailParams';
|
|
537
537
|
export * from './Interface/api/mail/UpdateMailParams';
|
|
538
|
+
export * from './Interface/api/mail/GetMailPromise';
|
|
538
539
|
export * from './Interface/api/society/LegalFormSiren';
|
|
539
540
|
export * from './Interface/api/society/SocietyWithStatsCaParams';
|
|
540
541
|
export * from './Interface/api/society/QuerySociety';
|
package/ts/utils/documents.ts
CHANGED
|
@@ -11,18 +11,18 @@ const requiredListDocs = (idLegalForm: number, isOnlyPrevi?: boolean, isOnlyJuri
|
|
|
11
11
|
|
|
12
12
|
const generique = [GedFileType.IDENTITY_CARD, GedFileType.RIB, GedFileType.PLAQUETTE];
|
|
13
13
|
|
|
14
|
-
if ([LegalForm.SAS.id, LegalForm.
|
|
14
|
+
if ([LegalForm.SAS.id, LegalForm.SA.id].includes(idLegalForm)) {
|
|
15
15
|
generique.push(GedFileType.DISTRIBUTION_OF_SHARE);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
if ([LegalForm.SA.id, LegalForm.SAS.id, LegalForm.SARL.id, LegalForm.SCI.id].includes(idLegalForm)) {
|
|
18
|
+
if ([LegalForm.EURL.id, LegalForm.SASU.id, LegalForm.SA.id, LegalForm.SAS.id, LegalForm.SARL.id, LegalForm.SCI.id].includes(idLegalForm)) {
|
|
19
19
|
return [...generique, GedFileType.KBIS, GedFileType.STATUTES, GedFileType.DBE2, GedFileType.SEPA];
|
|
20
20
|
}
|
|
21
|
-
if ([LegalForm.
|
|
22
|
-
return [...generique, GedFileType.KBIS, GedFileType.STATUTES, GedFileType.SEPA];
|
|
21
|
+
if ([LegalForm.SELARL.id].includes(idLegalForm)) {
|
|
22
|
+
return [...generique, GedFileType.KBIS, GedFileType.STATUTES, GedFileType.SEPA];
|
|
23
23
|
}
|
|
24
24
|
if ([LegalForm.EI.id, LegalForm.AUTO_ENTREPRENEUR.id].includes(idLegalForm)) {
|
|
25
|
-
return [...generique, GedFileType.SIRENE, GedFileType.SEPA];
|
|
25
|
+
return [...generique, GedFileType.SIRENE, GedFileType.SEPA];
|
|
26
26
|
}
|
|
27
27
|
if ([LegalForm.EIRL.id].includes(idLegalForm)) {
|
|
28
28
|
return [...generique, GedFileType.SIRENE, GedFileType.SEPA, GedFileType.PATRIMONY];
|