@silexpert/core 1.1.241 → 1.1.243
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/Comment.d.ts +1 -1
- package/dist/cjs/api/resources/Comment.d.ts.map +1 -1
- package/dist/cjs/api/resources/Comment.js.map +1 -1
- package/dist/cjs/api/resources/Echo.d.ts +8 -0
- package/dist/cjs/api/resources/Echo.d.ts.map +1 -0
- package/dist/cjs/api/resources/Echo.js +17 -0
- package/dist/cjs/api/resources/Echo.js.map +1 -0
- package/dist/cjs/api/resources/LegalNotice.d.ts +4 -2
- package/dist/cjs/api/resources/LegalNotice.d.ts.map +1 -1
- package/dist/cjs/api/resources/LegalNotice.js +6 -0
- package/dist/cjs/api/resources/LegalNotice.js.map +1 -1
- package/dist/cjs/api/resources/Synchronisation.d.ts +6 -0
- package/dist/cjs/api/resources/Synchronisation.d.ts.map +1 -0
- package/dist/cjs/api/resources/Synchronisation.js +11 -0
- package/dist/cjs/api/resources/Synchronisation.js.map +1 -0
- package/dist/cjs/api/resources/UpToDate.d.ts +6 -0
- package/dist/cjs/api/resources/UpToDate.d.ts.map +1 -0
- package/dist/cjs/api/resources/UpToDate.js +11 -0
- package/dist/cjs/api/resources/UpToDate.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +6 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +6 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts +3 -3
- package/dist/cjs/types/Enum/BalanceSheet.js +3 -3
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.d.ts +3 -0
- package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +1 -0
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.d.ts +4 -0
- package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandPourcentage.js +1 -0
- package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/Comment.d.ts +2 -1
- package/dist/cjs/types/Enum/Comment.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Comment.js +1 -0
- package/dist/cjs/types/Enum/Comment.js.map +1 -1
- package/dist/cjs/types/Enum/InternalService.d.ts +12 -0
- package/dist/cjs/types/Enum/InternalService.d.ts.map +1 -1
- package/dist/cjs/types/Enum/InternalService.js +12 -0
- package/dist/cjs/types/Enum/InternalService.js.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts +5 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.js +25 -1
- package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/cjs/types/Enum/Role.d.ts +4 -1
- package/dist/cjs/types/Enum/Role.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Role.js +7 -2
- package/dist/cjs/types/Enum/Role.js.map +1 -1
- package/dist/cjs/types/Enum/RoleDetail.d.ts +15 -2
- package/dist/cjs/types/Enum/RoleDetail.d.ts.map +1 -1
- package/dist/cjs/types/Enum/RoleDetail.js +19 -6
- package/dist/cjs/types/Enum/RoleDetail.js.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.d.ts +1 -0
- package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TaskResponseType.js +67 -0
- package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/cjs/types/Enum/TimeCounterType.js +13 -13
- package/dist/cjs/types/Enum/TimeCounterType.js.map +1 -1
- package/dist/cjs/types/Enum/ZoneCode.d.ts +653 -0
- package/dist/cjs/types/Enum/ZoneCode.d.ts.map +1 -0
- package/dist/cjs/types/Enum/ZoneCode.js +765 -0
- package/dist/cjs/types/Enum/ZoneCode.js.map +1 -0
- package/dist/cjs/types/Interface/api/echo/CreateOrder.d.ts +22 -0
- package/dist/cjs/types/Interface/api/echo/CreateOrder.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/echo/CreateOrder.js +93 -0
- package/dist/cjs/types/Interface/api/echo/CreateOrder.js.map +1 -0
- package/dist/cjs/types/Interface/api/echo/Mission.d.ts +5 -0
- package/dist/cjs/types/Interface/api/echo/Mission.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/echo/Mission.js +3 -0
- package/dist/cjs/types/Interface/api/echo/Mission.js.map +1 -0
- package/dist/cjs/types/Interface/api/echo/NewsPaper.d.ts +18 -0
- package/dist/cjs/types/Interface/api/echo/NewsPaper.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/echo/NewsPaper.js +3 -0
- package/dist/cjs/types/Interface/api/echo/NewsPaper.js.map +1 -0
- package/dist/cjs/types/Interface/api/echo/Order.d.ts +9 -0
- package/dist/cjs/types/Interface/api/echo/Order.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/echo/Order.js +3 -0
- package/dist/cjs/types/Interface/api/echo/Order.js.map +1 -0
- package/dist/cjs/types/Interface/api/synchronisation/Query.d.ts +12 -0
- package/dist/cjs/types/Interface/api/synchronisation/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/synchronisation/Query.js +70 -0
- package/dist/cjs/types/Interface/api/synchronisation/Query.js.map +1 -0
- package/dist/cjs/types/Interface/models/IBankAccount.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBankAccount.js.map +1 -1
- package/dist/cjs/types/Interface/models/IComment.d.ts +3 -0
- package/dist/cjs/types/Interface/models/IComment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IComment.js.map +1 -1
- package/dist/cjs/types/Interface/models/IExercice.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IExercice.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IExercice.js.map +1 -1
- package/dist/cjs/types/Interface/models/ILegalNotice.d.ts +3 -0
- package/dist/cjs/types/Interface/models/ILegalNotice.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ILegalNotice.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUpToDateBankAccount.d.ts +34 -0
- package/dist/cjs/types/Interface/models/IUpToDateBankAccount.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IUpToDateBankAccount.js +3 -0
- package/dist/cjs/types/Interface/models/IUpToDateBankAccount.js.map +1 -0
- package/dist/cjs/types/index.d.ts +7 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +7 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/email/templates/signature.js +1 -1
- package/dist/cjs/utils/email/templates/signature.js.map +1 -1
- package/dist/cjs/utils/email.d.ts.map +1 -1
- package/dist/cjs/utils/email.js +41 -2
- package/dist/cjs/utils/email.js.map +1 -1
- package/dist/cjs/utils/task.d.ts.map +1 -1
- package/dist/cjs/utils/task.js +12 -0
- package/dist/cjs/utils/task.js.map +1 -1
- package/dist/cjs/utils/webmail.d.ts.map +1 -1
- package/dist/cjs/utils/webmail.js +12 -0
- package/dist/cjs/utils/webmail.js.map +1 -1
- package/dist/mjs/api/resources/Comment.d.ts +1 -1
- package/dist/mjs/api/resources/Comment.d.ts.map +1 -1
- package/dist/mjs/api/resources/Comment.js.map +1 -1
- package/dist/mjs/api/resources/Echo.d.ts +8 -0
- package/dist/mjs/api/resources/Echo.d.ts.map +1 -0
- package/dist/mjs/api/resources/Echo.js +13 -0
- package/dist/mjs/api/resources/Echo.js.map +1 -0
- package/dist/mjs/api/resources/LegalNotice.d.ts +4 -2
- package/dist/mjs/api/resources/LegalNotice.d.ts.map +1 -1
- package/dist/mjs/api/resources/LegalNotice.js +6 -0
- package/dist/mjs/api/resources/LegalNotice.js.map +1 -1
- package/dist/mjs/api/resources/Synchronisation.d.ts +6 -0
- package/dist/mjs/api/resources/Synchronisation.d.ts.map +1 -0
- package/dist/mjs/api/resources/Synchronisation.js +10 -0
- package/dist/mjs/api/resources/Synchronisation.js.map +1 -0
- package/dist/mjs/api/resources/UpToDate.d.ts +6 -0
- package/dist/mjs/api/resources/UpToDate.d.ts.map +1 -0
- package/dist/mjs/api/resources/UpToDate.js +7 -0
- package/dist/mjs/api/resources/UpToDate.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +6 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +6 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts +3 -3
- package/dist/mjs/types/Enum/BalanceSheet.js +3 -3
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.d.ts +3 -0
- package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +1 -0
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.d.ts +4 -0
- package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandPourcentage.js +1 -0
- package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/Comment.d.ts +2 -1
- package/dist/mjs/types/Enum/Comment.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Comment.js +1 -0
- package/dist/mjs/types/Enum/Comment.js.map +1 -1
- package/dist/mjs/types/Enum/InternalService.d.ts +12 -0
- package/dist/mjs/types/Enum/InternalService.d.ts.map +1 -1
- package/dist/mjs/types/Enum/InternalService.js +12 -0
- package/dist/mjs/types/Enum/InternalService.js.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts +5 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.js +25 -1
- package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/mjs/types/Enum/Role.d.ts +4 -1
- package/dist/mjs/types/Enum/Role.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Role.js +7 -2
- package/dist/mjs/types/Enum/Role.js.map +1 -1
- package/dist/mjs/types/Enum/RoleDetail.d.ts +15 -2
- package/dist/mjs/types/Enum/RoleDetail.d.ts.map +1 -1
- package/dist/mjs/types/Enum/RoleDetail.js +19 -6
- package/dist/mjs/types/Enum/RoleDetail.js.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.d.ts +1 -0
- package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TaskResponseType.js +67 -0
- package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
- package/dist/mjs/types/Enum/TimeCounterType.js +13 -13
- package/dist/mjs/types/Enum/TimeCounterType.js.map +1 -1
- package/dist/mjs/types/Enum/ZoneCode.d.ts +653 -0
- package/dist/mjs/types/Enum/ZoneCode.d.ts.map +1 -0
- package/dist/mjs/types/Enum/ZoneCode.js +762 -0
- package/dist/mjs/types/Enum/ZoneCode.js.map +1 -0
- package/dist/mjs/types/Interface/api/echo/CreateOrder.d.ts +22 -0
- package/dist/mjs/types/Interface/api/echo/CreateOrder.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/echo/CreateOrder.js +101 -0
- package/dist/mjs/types/Interface/api/echo/CreateOrder.js.map +1 -0
- package/dist/mjs/types/Interface/api/echo/Mission.d.ts +5 -0
- package/dist/mjs/types/Interface/api/echo/Mission.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/echo/Mission.js +2 -0
- package/dist/mjs/types/Interface/api/echo/Mission.js.map +1 -0
- package/dist/mjs/types/Interface/api/echo/NewsPaper.d.ts +18 -0
- package/dist/mjs/types/Interface/api/echo/NewsPaper.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/echo/NewsPaper.js +2 -0
- package/dist/mjs/types/Interface/api/echo/NewsPaper.js.map +1 -0
- package/dist/mjs/types/Interface/api/echo/Order.d.ts +9 -0
- package/dist/mjs/types/Interface/api/echo/Order.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/echo/Order.js +2 -0
- package/dist/mjs/types/Interface/api/echo/Order.js.map +1 -0
- package/dist/mjs/types/Interface/api/synchronisation/Query.d.ts +12 -0
- package/dist/mjs/types/Interface/api/synchronisation/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/synchronisation/Query.js +75 -0
- package/dist/mjs/types/Interface/api/synchronisation/Query.js.map +1 -0
- package/dist/mjs/types/Interface/models/IBankAccount.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IBankAccount.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBankAccount.js.map +1 -1
- package/dist/mjs/types/Interface/models/IComment.d.ts +3 -0
- package/dist/mjs/types/Interface/models/IComment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IComment.js.map +1 -1
- package/dist/mjs/types/Interface/models/IExercice.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IExercice.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IExercice.js.map +1 -1
- package/dist/mjs/types/Interface/models/ILegalNotice.d.ts +3 -0
- package/dist/mjs/types/Interface/models/ILegalNotice.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ILegalNotice.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUpToDateBankAccount.d.ts +34 -0
- package/dist/mjs/types/Interface/models/IUpToDateBankAccount.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IUpToDateBankAccount.js +2 -0
- package/dist/mjs/types/Interface/models/IUpToDateBankAccount.js.map +1 -0
- package/dist/mjs/types/index.d.ts +7 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +7 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/email/templates/signature.js +1 -1
- package/dist/mjs/utils/email/templates/signature.js.map +1 -1
- package/dist/mjs/utils/email.d.ts.map +1 -1
- package/dist/mjs/utils/email.js +44 -2
- package/dist/mjs/utils/email.js.map +1 -1
- package/dist/mjs/utils/task.d.ts.map +1 -1
- package/dist/mjs/utils/task.js +12 -0
- package/dist/mjs/utils/task.js.map +1 -1
- package/dist/mjs/utils/webmail.d.ts.map +1 -1
- package/dist/mjs/utils/webmail.js +12 -0
- package/dist/mjs/utils/webmail.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Comment.ts +1 -1
- package/ts/api/resources/Echo.ts +16 -0
- package/ts/api/resources/LegalNotice.ts +10 -2
- package/ts/api/resources/Synchronisation.ts +11 -0
- package/ts/api/resources/UpToDate.ts +8 -0
- package/ts/api/resources.ts +6 -0
- package/ts/types/Enum/BalanceSheet.ts +3 -3
- package/ts/types/Enum/BrandClementine.ts +1 -0
- package/ts/types/Enum/BrandPourcentage.ts +1 -0
- package/ts/types/Enum/Comment.ts +1 -0
- package/ts/types/Enum/InternalService.ts +12 -0
- package/ts/types/Enum/JobTitle.ts +25 -1
- package/ts/types/Enum/Role.ts +7 -2
- package/ts/types/Enum/RoleDetail.ts +19 -6
- package/ts/types/Enum/TaskResponseType.ts +67 -0
- package/ts/types/Enum/TimeCounterType.ts +13 -13
- package/ts/types/Enum/ZoneCode.ts +764 -0
- package/ts/types/Interface/api/echo/CreateOrder.ts +64 -0
- package/ts/types/Interface/api/echo/Mission.ts +4 -0
- package/ts/types/Interface/api/echo/NewsPaper.ts +18 -0
- package/ts/types/Interface/api/echo/Order.ts +8 -0
- package/ts/types/Interface/api/synchronisation/Query.ts +47 -0
- package/ts/types/Interface/models/IBankAccount.ts +2 -0
- package/ts/types/Interface/models/IComment.ts +3 -0
- package/ts/types/Interface/models/IExercice.ts +2 -0
- package/ts/types/Interface/models/ILegalNotice.ts +3 -0
- package/ts/types/Interface/models/IUpToDateBankAccount.ts +37 -0
- package/ts/types/index.ts +7 -0
- package/ts/utils/email/templates/signature.ts +1 -1
- package/ts/utils/email.ts +31 -2
- package/ts/utils/task.ts +8 -0
- package/ts/utils/webmail.ts +8 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { IsIn, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { DepartmentCode } from '../../../Enum/ZoneCode';
|
|
4
|
+
|
|
5
|
+
export class PublicationContent {
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
@IsString()
|
|
8
|
+
text_html: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class Publication {
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsString()
|
|
14
|
+
ad_type_id: string;
|
|
15
|
+
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
content: PublicationContent;
|
|
18
|
+
|
|
19
|
+
@ApiProperty()
|
|
20
|
+
@IsString()
|
|
21
|
+
header: string;
|
|
22
|
+
|
|
23
|
+
@ApiProperty()
|
|
24
|
+
@IsString()
|
|
25
|
+
legal_name: string;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsString()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
logo_base_64?: string | null;
|
|
31
|
+
}
|
|
32
|
+
export class CreateEchoOrder {
|
|
33
|
+
@ApiProperty()
|
|
34
|
+
departement: DepartmentCode;
|
|
35
|
+
|
|
36
|
+
@ApiProperty()
|
|
37
|
+
@IsString()
|
|
38
|
+
newspaper_id: string;
|
|
39
|
+
|
|
40
|
+
@ApiProperty()
|
|
41
|
+
@IsInt()
|
|
42
|
+
paper_proof_qty: number;
|
|
43
|
+
|
|
44
|
+
@ApiProperty()
|
|
45
|
+
publication: Publication;
|
|
46
|
+
|
|
47
|
+
@ApiProperty()
|
|
48
|
+
@IsString()
|
|
49
|
+
publishing_date_from: string;
|
|
50
|
+
|
|
51
|
+
@ApiProperty()
|
|
52
|
+
@IsString()
|
|
53
|
+
publishing_date_to: string;
|
|
54
|
+
|
|
55
|
+
@ApiProperty()
|
|
56
|
+
@IsString()
|
|
57
|
+
selection_mode: string;
|
|
58
|
+
|
|
59
|
+
@ApiProperty()
|
|
60
|
+
@IsString()
|
|
61
|
+
@IsIn(['simulation', 'order'])
|
|
62
|
+
type: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type NewsPaper = {
|
|
2
|
+
newspaper_accept_logo_header: boolean,
|
|
3
|
+
newspaper_id: string,
|
|
4
|
+
newspaper_name: string,
|
|
5
|
+
newspaper_publication_info: {
|
|
6
|
+
next_publication_closing_datetime: string,
|
|
7
|
+
next_publication_date: string,
|
|
8
|
+
publishing_date_frequency: PublishingDateFrequency[]
|
|
9
|
+
},
|
|
10
|
+
newspaper_publishing_medium: string
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type PublishingDateFrequency = {
|
|
14
|
+
closing_day: number,
|
|
15
|
+
closing_time: string,
|
|
16
|
+
plus_7: boolean,
|
|
17
|
+
publishing_day: number
|
|
18
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QuerySynchronisationPaginated {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsNumber()
|
|
7
|
+
limit: number;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsNumber()
|
|
11
|
+
page: number;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
@IsString()
|
|
15
|
+
@IsOptional()
|
|
16
|
+
search?: string;
|
|
17
|
+
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsArray()
|
|
21
|
+
accountants?: number[];
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsNumber()
|
|
26
|
+
customerSuccess?: number;
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
@IsArray()
|
|
31
|
+
synchroStates?: number[];
|
|
32
|
+
|
|
33
|
+
@ApiPropertyOptional()
|
|
34
|
+
@IsOptional()
|
|
35
|
+
@IsArray()
|
|
36
|
+
banks?: number[];
|
|
37
|
+
|
|
38
|
+
@ApiPropertyOptional()
|
|
39
|
+
@IsOptional()
|
|
40
|
+
@IsNumber()
|
|
41
|
+
jeDeclareState?: number;
|
|
42
|
+
|
|
43
|
+
@ApiPropertyOptional()
|
|
44
|
+
@IsOptional()
|
|
45
|
+
@IsNumber()
|
|
46
|
+
connector?: number;
|
|
47
|
+
}
|
|
@@ -5,6 +5,7 @@ import { IAccount } from './IAccount';
|
|
|
5
5
|
import { IBankList } from './IBankList';
|
|
6
6
|
import { IBalanceBankAccount } from './IBalanceBankAccount';
|
|
7
7
|
import { ISimulation } from './ISimulation';
|
|
8
|
+
import { IUpToDateBankAccount } from './IUpToDateBankAccount';
|
|
8
9
|
|
|
9
10
|
// bankAccounts
|
|
10
11
|
export interface IBankAccount {
|
|
@@ -45,4 +46,5 @@ export interface IBankAccount {
|
|
|
45
46
|
bankList?: IBankList;
|
|
46
47
|
balanceBankAccounts?: IBalanceBankAccount[];
|
|
47
48
|
simulations?: ISimulation[];
|
|
49
|
+
upToDateBankAccount?: IUpToDateBankAccount;
|
|
48
50
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ICommentType } from './ICommentType';
|
|
2
2
|
import { IChannelType } from './IChannelType';
|
|
3
3
|
import { IUser } from './IUser';
|
|
4
|
+
import { IExercice } from './IExercice';
|
|
4
5
|
import { ISupervision } from './ISupervision';
|
|
5
6
|
import { ICard, ITask } from '../..';
|
|
6
7
|
|
|
@@ -14,6 +15,7 @@ export interface IComment {
|
|
|
14
15
|
idReport?: number | null;
|
|
15
16
|
idTask?: number | null;
|
|
16
17
|
idUser?: number | null;
|
|
18
|
+
idExercice?: number | null;
|
|
17
19
|
idCard?: number | null;
|
|
18
20
|
idChecklist?: number | null;
|
|
19
21
|
isPing?: boolean;
|
|
@@ -25,6 +27,7 @@ export interface IComment {
|
|
|
25
27
|
commentType?: ICommentType;
|
|
26
28
|
channelType?: IChannelType;
|
|
27
29
|
user?: IUser;
|
|
30
|
+
exercice?: IExercice;
|
|
28
31
|
supervision?: ISupervision;
|
|
29
32
|
task?: ITask;
|
|
30
33
|
card?: ICard;
|
|
@@ -12,6 +12,7 @@ import { ISociety } from './ISociety';
|
|
|
12
12
|
import { IExerciceDetail } from './IExerciceDetail';
|
|
13
13
|
import { IBalanceSheetModule } from './IBalanceSheetModule';
|
|
14
14
|
import { IRegistration } from './IRegistration';
|
|
15
|
+
import { IComment } from './IComment';
|
|
15
16
|
|
|
16
17
|
// exercices
|
|
17
18
|
export interface IExercice {
|
|
@@ -62,4 +63,5 @@ export interface IExercice {
|
|
|
62
63
|
exerciceDetail?: IExerciceDetail;
|
|
63
64
|
exerciceBalanceSheetModule?: IBalanceSheetModule;
|
|
64
65
|
registrations: IRegistration[];
|
|
66
|
+
comments?: IComment[];
|
|
65
67
|
}
|
|
@@ -7,6 +7,7 @@ export interface ILegalNotice {
|
|
|
7
7
|
ref: string | null;
|
|
8
8
|
folderCode: string | null;
|
|
9
9
|
nameOfNewspaper: string | null;
|
|
10
|
+
department: string | null;
|
|
10
11
|
amountPurchaseHt: number | null;
|
|
11
12
|
amountSaleHt: number | null;
|
|
12
13
|
status: number;
|
|
@@ -17,6 +18,8 @@ export interface ILegalNotice {
|
|
|
17
18
|
isPaid: boolean;
|
|
18
19
|
processed: boolean;
|
|
19
20
|
societyWithoutRegister: string | null;
|
|
21
|
+
idMission?: string | null;
|
|
22
|
+
idNewsPaper?: string | null;
|
|
20
23
|
idSociety: number | null;
|
|
21
24
|
idOperationLegalNotice: number;
|
|
22
25
|
idPrestation: number | null;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ISociety } from './ISociety';
|
|
2
|
+
import { IBankAccount } from './IBankAccount';
|
|
3
|
+
import { IMonth } from './IMonth';
|
|
4
|
+
import { IWebMail } from './IWebMail';
|
|
5
|
+
import { IMail } from './IMail';
|
|
6
|
+
|
|
7
|
+
// bankAccounts
|
|
8
|
+
export interface IUpToDateBankAccount {
|
|
9
|
+
id?: number;
|
|
10
|
+
idBankAccount: number;
|
|
11
|
+
idSociety: number;
|
|
12
|
+
year?: number | null;
|
|
13
|
+
idMonth?: number | null;
|
|
14
|
+
upToDateBankAccount?: Date | null;
|
|
15
|
+
upToDateBalance?: Date | null;
|
|
16
|
+
currentMandate?: Date | null;
|
|
17
|
+
signedMandate?: Date | null;
|
|
18
|
+
idMailRelanceAnnotation?: number | null;
|
|
19
|
+
idMailAskCsv?: number | null;
|
|
20
|
+
idMailRelanceDesyncho?: number | null;
|
|
21
|
+
idNewMailRelanceAnnotation?: number | null;
|
|
22
|
+
idNewMailAskCsv?: number | null;
|
|
23
|
+
idNewMailRelanceDesyncho?: number | null;
|
|
24
|
+
createdAt?: Date | null;
|
|
25
|
+
updatedAt?: Date | null;
|
|
26
|
+
|
|
27
|
+
// Associations
|
|
28
|
+
bankAccount?: IBankAccount;
|
|
29
|
+
society?: ISociety;
|
|
30
|
+
month?: IMonth;
|
|
31
|
+
mailAskCsv?: IWebMail;
|
|
32
|
+
mailRelanceAnnotation?: IWebMail;
|
|
33
|
+
mailRelanceDesynchro?: IWebMail;
|
|
34
|
+
newMailAskCsv?: IMail;
|
|
35
|
+
newMailRelanceAnnotation?: IMail;
|
|
36
|
+
newMailRelanceDesynchro?: IMail;
|
|
37
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -252,6 +252,7 @@ export * from './Interface/models/IStripeEventType';
|
|
|
252
252
|
export * from './Interface/models/ISubscriptionType';
|
|
253
253
|
export * from './Interface/models/IThirdPartyType';
|
|
254
254
|
export * from './Interface/models/IVehicleType';
|
|
255
|
+
export * from './Interface/models/IUpToDateBankAccount';
|
|
255
256
|
export * from './Interface/models/IUser';
|
|
256
257
|
export * from './Interface/models/IUserBrand';
|
|
257
258
|
export * from './Interface/models/IUserNotification';
|
|
@@ -527,6 +528,7 @@ export * from './Enum/EquipmentAvailability';
|
|
|
527
528
|
export * from './Enum/SpecialDayType';
|
|
528
529
|
export * from './Enum/Degree';
|
|
529
530
|
export * from './Enum/Brevo';
|
|
531
|
+
export * from './Enum/ZoneCode';
|
|
530
532
|
|
|
531
533
|
// Interfaces API
|
|
532
534
|
export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
|
|
@@ -924,6 +926,7 @@ export * from './Interface/api/mobile/UpdateMobile';
|
|
|
924
926
|
export * from './Interface/api/mobile/QueryMobileMigration';
|
|
925
927
|
export * from './Interface/api/societyEvent/QuerySocietyEvent';
|
|
926
928
|
export * from './Interface/api/societyEvent/CreateSocietyEvent';
|
|
929
|
+
export * from './Interface/api/synchronisation/Query';
|
|
927
930
|
export * from './Interface/api/task/QueryGetAllTask';
|
|
928
931
|
export * from './Interface/api/regulate/QueryGetAll';
|
|
929
932
|
export * from './Interface/api/regulate/RegulateWithStats';
|
|
@@ -1036,6 +1039,10 @@ export * from './Interface/api/paymentExpectation/CreatePaymentExpecation';
|
|
|
1036
1039
|
export * from './Interface/api/expertAnnuary/Query';
|
|
1037
1040
|
export * from './Interface/api/brevo/BrevoElement';
|
|
1038
1041
|
export * from './Interface/api/bankAccount/Create';
|
|
1042
|
+
export * from './Interface/api/echo/Mission';
|
|
1043
|
+
export * from './Interface/api/echo/CreateOrder';
|
|
1044
|
+
export * from './Interface/api/echo/NewsPaper';
|
|
1045
|
+
export * from './Interface/api/echo/Order';
|
|
1039
1046
|
|
|
1040
1047
|
// Enums types
|
|
1041
1048
|
export * from './Interface/enum/Util';
|
|
@@ -237,7 +237,7 @@ ${logoClementine}
|
|
|
237
237
|
<a href="https://www.smileyourpla.net/" style="display: inline-block; color:#6E6E71;" target="_blank"><img
|
|
238
238
|
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png"
|
|
239
239
|
alt="Initiative Smile your planet" height="36"></a>
|
|
240
|
-
<% if(user.calendlyUrl) { %>
|
|
240
|
+
<% if(user.calendlyUrl && !isDataOfficer) { %>
|
|
241
241
|
<a href="<%= user.calendlyUrl %>" style="display: inline-block; color:#6E6E71;" target="_blank">
|
|
242
242
|
<img
|
|
243
243
|
src="https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %>.png"
|
package/ts/utils/email.ts
CHANGED
|
@@ -21,6 +21,10 @@ function getRoleSignature(user:any) {
|
|
|
21
21
|
const isFacturation = user.roles.map((r: any) => r.id).includes(Role.FACTURATION);
|
|
22
22
|
const isExpert = user.roles.map((r: any) => r.id).includes(Role.EXPERT_ACCOUNTANT);
|
|
23
23
|
const isCS = user.roles.map((r: any) => r.id).includes(Role.CUSTOMER_SUCCESS);
|
|
24
|
+
const isOnBoarder = user.roles.map((r: any) => r.id).includes(Role.ON_BOARDER);
|
|
25
|
+
const isTermination = user.roles.map((r: any) => r.id).includes(Role.TERMINATION);
|
|
26
|
+
const isLitige = user.roles.map((r: any) => r.id).includes(Role.LITIGE);
|
|
27
|
+
const isDataOfficer = user.roles.map((r: any) => r.id).includes(Role.DATA_OFFICER);
|
|
24
28
|
const isSales = user.roles.map((r: any) => r.id).includes(Role.COMMERCIAL);
|
|
25
29
|
const isAdmin = user.roles.map((r: any) => r.id).includes(Role.ADMIN);
|
|
26
30
|
const isFront = !!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS]]).length;
|
|
@@ -31,6 +35,18 @@ function getRoleSignature(user:any) {
|
|
|
31
35
|
if (isCS && isManager) { return 'Responsable relations clients'; }
|
|
32
36
|
if (isCS) { return `Conseill${user.idCivility === 2 ? 'ère' : 'er'} comptable`; }
|
|
33
37
|
|
|
38
|
+
if (isOnBoarder && isManager) { return `Responsable chargé${user.idCivility === 2 ? 'e' : ''} accueil clients`; }
|
|
39
|
+
if (isOnBoarder) { return `Chargé${user.idCivility === 2 ? 'e' : ''} accueil clients`; }
|
|
40
|
+
|
|
41
|
+
if (isTermination && isManager) { return `Responsable chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients`; }
|
|
42
|
+
if (isTermination) { return `Chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients`; }
|
|
43
|
+
|
|
44
|
+
if (isLitige && isManager) { return `Responsable chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients (Litige)`; }
|
|
45
|
+
if (isLitige) { return `Chargé${user.idCivility === 2 ? 'e' : ''} de la satisfaction clients (Litige)`; }
|
|
46
|
+
|
|
47
|
+
if (isDataOfficer && isManager) { return 'Responsable aide comptable'; }
|
|
48
|
+
if (isDataOfficer) { return 'Aide comptable'; }
|
|
49
|
+
|
|
34
50
|
if (isFacturation && isStagiaireOrAlternant) { return 'Assistant facturation'; }
|
|
35
51
|
if (isFacturation && isManager) { return 'Responsable facturation'; }
|
|
36
52
|
if (isFacturation) { return `Chargé${user.idCivility === 2 ? 'e' : ''} de facturation`; }
|
|
@@ -110,7 +126,7 @@ function getMailSignature(user:any, idTypeBrand:number) {
|
|
|
110
126
|
}) as unknown as string;
|
|
111
127
|
|
|
112
128
|
if (user.roles.map((r: any) => r.id).includes(Role.ADMIN)) { return informatiqueMail; }
|
|
113
|
-
if (user && !!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS, Role.COMMERCIAL]]).length) return user.email;
|
|
129
|
+
if (user && !!intersection([user.roles.map((r: any) => r.id), [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS, Role.DATA_OFFICER, Role.COMMERCIAL]]).length) return user.email;
|
|
114
130
|
return bonjourMail;
|
|
115
131
|
}
|
|
116
132
|
|
|
@@ -156,6 +172,10 @@ export function generateSignature(params: any): string {
|
|
|
156
172
|
...(idTypeBrand ? { idTypeBrand } : {}),
|
|
157
173
|
objectWaited: 'listMails.social',
|
|
158
174
|
}) as unknown as string;
|
|
175
|
+
const dataOfficerMail = getBrandConfig({
|
|
176
|
+
...(idTypeBrand ? { idTypeBrand } : {}),
|
|
177
|
+
objectWaited: 'listMails.gestion',
|
|
178
|
+
}) as unknown as string;
|
|
159
179
|
const supportMail = getBrandConfig({
|
|
160
180
|
...(idTypeBrand ? { idTypeBrand } : {}),
|
|
161
181
|
objectWaited: 'listMails.support',
|
|
@@ -191,7 +211,15 @@ export function generateSignature(params: any): string {
|
|
|
191
211
|
let horaires: string | null;
|
|
192
212
|
[roleSignature, mailSignature, phoneSignature, horaires] = ['Expert-Comptable', bonjourMail, false, 'Du lundi au vendredi de 9h à 19h'];
|
|
193
213
|
|
|
194
|
-
if (
|
|
214
|
+
if (user.roles && user.roles.some((r: any) => r.id === Role.DATA_OFFICER)) { // Signature data_officer
|
|
215
|
+
user = {
|
|
216
|
+
firstname: `L'équipe ${commercialName}`,
|
|
217
|
+
isAll: true,
|
|
218
|
+
};
|
|
219
|
+
mailSignature = dataOfficerMail;
|
|
220
|
+
roleSignature = '';
|
|
221
|
+
phoneSignature = standardPhoneSignature;
|
|
222
|
+
} else if (forceRole === 'social') { // Signature social
|
|
195
223
|
user = {
|
|
196
224
|
firstname: 'Service social',
|
|
197
225
|
isAll: true,
|
|
@@ -238,6 +266,7 @@ export function generateSignature(params: any): string {
|
|
|
238
266
|
return ejs.render(signatureTemplate, {
|
|
239
267
|
forceRole,
|
|
240
268
|
isFacturation: user.roles ? user.roles.some((r: any) => r.id === Role.FACTURATION) : false,
|
|
269
|
+
isDataOfficer: user.roles ? user.roles.some((r: any) => r.id === Role.DATA_OFFICER) : true,
|
|
241
270
|
brandName,
|
|
242
271
|
idTypeBrand,
|
|
243
272
|
commercialName,
|
package/ts/utils/task.ts
CHANGED
|
@@ -13,8 +13,16 @@ const getIdRoleUsedForTask = (listRoles: number[]): number => {
|
|
|
13
13
|
idRole = Role.FACTURATION;
|
|
14
14
|
} else if (listRoles.includes(Role.CUSTOMER_SUCCESS)) {
|
|
15
15
|
idRole = Role.CUSTOMER_SUCCESS;
|
|
16
|
+
} else if (listRoles.includes(Role.ON_BOARDER)) {
|
|
17
|
+
idRole = Role.ON_BOARDER;
|
|
18
|
+
} else if (listRoles.includes(Role.TERMINATION)) {
|
|
19
|
+
idRole = Role.TERMINATION;
|
|
20
|
+
} else if (listRoles.includes(Role.LITIGE)) {
|
|
21
|
+
idRole = Role.LITIGE;
|
|
16
22
|
} else if (listRoles.includes(Role.FRONT_OFFICE)) {
|
|
17
23
|
idRole = Role.FRONT_OFFICE;
|
|
24
|
+
} else if (listRoles.includes(Role.DATA_OFFICER)) {
|
|
25
|
+
idRole = Role.DATA_OFFICER;
|
|
18
26
|
}
|
|
19
27
|
return idRole;
|
|
20
28
|
};
|
package/ts/utils/webmail.ts
CHANGED
|
@@ -8,6 +8,8 @@ const getIdRoleUsedForEmail = (listRoles: number[]): number => {
|
|
|
8
8
|
idRole = Role.FRONT_OFFICE;
|
|
9
9
|
} else if (listRoles.includes(Role.FRONT_OFFICE_EXPRESS)) {
|
|
10
10
|
idRole = Role.FRONT_OFFICE_EXPRESS;
|
|
11
|
+
} else if (listRoles.includes(Role.DATA_OFFICER)) {
|
|
12
|
+
idRole = Role.DATA_OFFICER;
|
|
11
13
|
} else if (listRoles.includes(Role.COMMERCIAL)) {
|
|
12
14
|
idRole = Role.COMMERCIAL;
|
|
13
15
|
} else if (listRoles.includes(Role.EXPERT_ACCOUNTANT)) {
|
|
@@ -18,6 +20,12 @@ const getIdRoleUsedForEmail = (listRoles: number[]): number => {
|
|
|
18
20
|
idRole = Role.JURIDIC;
|
|
19
21
|
} else if (listRoles.includes(Role.SOCIAL)) {
|
|
20
22
|
idRole = Role.SOCIAL;
|
|
23
|
+
} else if (listRoles.includes(Role.ON_BOARDER)) {
|
|
24
|
+
idRole = Role.ON_BOARDER;
|
|
25
|
+
} else if (listRoles.includes(Role.TERMINATION)) {
|
|
26
|
+
idRole = Role.TERMINATION;
|
|
27
|
+
} else if (listRoles.includes(Role.LITIGE)) {
|
|
28
|
+
idRole = Role.LITIGE;
|
|
21
29
|
}
|
|
22
30
|
return idRole;
|
|
23
31
|
};
|