@silexpert/core 1.0.12 → 1.0.15
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/{commercialDocument.d.ts → CommercialDocument.d.ts} +4 -2
- package/es/api/resources/CommercialDocument.d.ts.map +1 -0
- package/es/api/resources/{commercialDocument.js → CommercialDocument.js} +7 -1
- package/es/api/resources/CommercialDocument.js.map +1 -0
- package/es/api/resources/Dashboard.d.ts +1 -2
- package/es/api/resources/Dashboard.d.ts.map +1 -1
- package/es/api/resources/Dashboard.js +0 -3
- package/es/api/resources/Dashboard.js.map +1 -1
- package/es/api/resources/Exercice.d.ts +1 -0
- package/es/api/resources/Exercice.d.ts.map +1 -1
- package/es/api/resources/Exercice.js +3 -0
- package/es/api/resources/Exercice.js.map +1 -1
- package/es/api/resources/Invoice.d.ts +1 -0
- package/es/api/resources/Invoice.d.ts.map +1 -1
- package/es/api/resources/Invoice.js +3 -0
- package/es/api/resources/Invoice.js.map +1 -1
- package/es/api/resources/Mail.js +2 -2
- package/es/api/resources/Mail.js.map +1 -1
- package/es/api/resources/Qonto.d.ts +2 -1
- package/es/api/resources/Qonto.d.ts.map +1 -1
- package/es/api/resources/Qonto.js +3 -0
- package/es/api/resources/Qonto.js.map +1 -1
- package/es/api/resources/Recurrence.d.ts +9 -0
- package/es/api/resources/Recurrence.d.ts.map +1 -0
- package/es/api/resources/Recurrence.js +13 -0
- package/es/api/resources/Recurrence.js.map +1 -0
- package/es/api/resources/{reminder.d.ts → Reminder.d.ts} +1 -1
- package/es/api/resources/{reminder.d.ts.map → Reminder.d.ts.map} +1 -1
- package/es/api/resources/{reminder.js → Reminder.js} +2 -2
- package/es/api/resources/{reminder.js.map → Reminder.js.map} +1 -1
- package/es/api/resources/User.d.ts +2 -2
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +2 -11
- package/es/api/resources/User.js.map +1 -1
- package/es/api/resources.d.ts +4 -2
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +4 -2
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/BrandClementine.d.ts +3 -1
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +3 -0
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/CommercialManagement.d.ts +4 -2
- package/es/types/Enum/CommercialManagement.d.ts.map +1 -1
- package/es/types/Enum/CommercialManagement.js +3 -1
- package/es/types/Enum/CommercialManagement.js.map +1 -1
- package/es/types/Enum/RecurrenceType.d.ts +11 -0
- package/es/types/Enum/RecurrenceType.d.ts.map +1 -0
- package/es/types/Enum/RecurrenceType.js +26 -0
- package/es/types/Enum/RecurrenceType.js.map +1 -0
- package/es/types/Enum/Role.d.ts +6 -11
- package/es/types/Enum/Role.d.ts.map +1 -1
- package/es/types/Enum/Role.js +15 -10
- package/es/types/Enum/Role.js.map +1 -1
- package/es/types/Enum/RoleDetail.d.ts +40 -56
- package/es/types/Enum/RoleDetail.d.ts.map +1 -1
- package/es/types/Enum/RoleDetail.js +120 -64
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/TaskResponseType.d.ts +9 -0
- package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
- package/es/types/Enum/TaskResponseType.js +35 -2
- package/es/types/Enum/TaskResponseType.js.map +1 -1
- package/es/types/Enum/TimeCounterType.js +7 -7
- package/es/types/Enum/TimeCounterType.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.d.ts +25 -18
- package/es/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Create.js +65 -81
- package/es/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Query.d.ts +6 -0
- package/es/types/Interface/api/commercialManagement/Query.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Query.js +29 -0
- package/es/types/Interface/api/commercialManagement/Query.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Read.d.ts +19 -0
- package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Update.d.ts +6 -0
- package/es/types/Interface/api/commercialManagement/Update.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Update.js +29 -1
- package/es/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
- package/es/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.d.ts.map +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
- package/es/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/es/types/Interface/api/qonto/CreateImportation.d.ts +5 -0
- package/es/types/Interface/api/qonto/CreateImportation.d.ts.map +1 -0
- package/es/types/Interface/api/{dashboard/QueryGescom.js → qonto/CreateImportation.js} +12 -19
- package/es/types/Interface/api/qonto/CreateImportation.js.map +1 -0
- package/es/types/Interface/api/qonto/Query.d.ts +78 -0
- package/es/types/Interface/api/qonto/Query.d.ts.map +1 -0
- package/es/types/Interface/api/qonto/Query.js +2 -0
- package/es/types/Interface/api/qonto/Query.js.map +1 -0
- package/es/types/Interface/api/revision/QueryRevision.d.ts +2 -0
- package/es/types/Interface/api/revision/QueryRevision.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevision.js +16 -2
- package/es/types/Interface/api/revision/QueryRevision.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.js +11 -5
- package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts +2 -0
- package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionPaginate.js +16 -2
- package/es/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
- package/es/types/Interface/api/task/QueryCountTask.d.ts +1 -1
- package/es/types/Interface/api/task/QueryCountTask.d.ts.map +1 -1
- package/es/types/Interface/api/task/QueryCountTask.js +1 -1
- package/es/types/Interface/api/task/QueryCountTask.js.map +1 -1
- package/es/types/Interface/api/task/QueryPaginatedTask.d.ts +2 -0
- package/es/types/Interface/api/task/QueryPaginatedTask.d.ts.map +1 -1
- package/es/types/Interface/api/task/QueryPaginatedTask.js +11 -0
- package/es/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts +1 -0
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.d.ts.map +1 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.js +10 -1
- package/es/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts +1 -0
- package/es/types/Interface/api/user/QueryGetAllCollaborators.d.ts.map +1 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.js +11 -1
- package/es/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +2 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +1 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.d.ts +4 -2
- package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/es/types/Interface/models/IInvoiceRecurrence.d.ts +15 -0
- package/es/types/Interface/models/IInvoiceRecurrence.d.ts.map +1 -0
- package/es/types/Interface/models/IInvoiceRecurrence.js +2 -0
- package/es/types/Interface/models/IInvoiceRecurrence.js.map +1 -0
- package/es/types/Interface/models/IInvoiceReminder.d.ts +1 -1
- package/es/types/Interface/models/IInvoiceReminder.d.ts.map +1 -1
- package/es/types/Interface/models/IInvoiceReminder.js.map +1 -1
- package/es/types/Interface/models/ITask.d.ts +2 -2
- package/es/types/Interface/models/ITask.d.ts.map +1 -1
- package/es/types/Interface/models/ITask.js.map +1 -1
- package/es/types/index.d.ts +4 -2
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +4 -2
- package/es/types/index.js.map +1 -1
- package/es/utils/commercialManagement/document.d.ts.map +1 -1
- package/es/utils/commercialManagement/document.js +1 -5
- package/es/utils/commercialManagement/document.js.map +1 -1
- package/es/utils/commercialManagement/recurrence.d.ts +7 -0
- package/es/utils/commercialManagement/recurrence.d.ts.map +1 -0
- package/es/utils/commercialManagement/recurrence.js +31 -0
- package/es/utils/commercialManagement/recurrence.js.map +1 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.d.ts.map +1 -1
- package/es/utils/index.js +1 -0
- package/es/utils/index.js.map +1 -1
- package/es/utils/task.d.ts +3 -2
- package/es/utils/task.d.ts.map +1 -1
- package/es/utils/task.js +23 -19
- package/es/utils/task.js.map +1 -1
- package/es/utils/webmail.d.ts.map +1 -1
- package/es/utils/webmail.js +1 -4
- package/es/utils/webmail.js.map +1 -1
- package/js/api/resources/{commercialDocument.js → CommercialDocument.js} +11 -1
- package/js/api/resources/CommercialDocument.js.map +1 -0
- package/js/api/resources/Dashboard.js +0 -6
- package/js/api/resources/Dashboard.js.map +1 -1
- package/js/api/resources/Exercice.js +4 -0
- package/js/api/resources/Exercice.js.map +1 -1
- package/js/api/resources/Invoice.js +4 -0
- package/js/api/resources/Invoice.js.map +1 -1
- package/js/api/resources/Mail.js +2 -2
- package/js/api/resources/Mail.js.map +1 -1
- package/js/api/resources/Qonto.js +4 -0
- package/js/api/resources/Qonto.js.map +1 -1
- package/js/api/resources/Recurrence.js +26 -0
- package/js/api/resources/Recurrence.js.map +1 -0
- package/js/api/resources/{reminder.js → Reminder.js} +2 -2
- package/js/api/resources/{reminder.js.map → Reminder.js.map} +1 -1
- package/js/api/resources/User.js +5 -3
- package/js/api/resources/User.js.map +1 -1
- package/js/api/resources.js +7 -4
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +3 -0
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/CommercialManagement.js +3 -1
- package/js/types/Enum/CommercialManagement.js.map +1 -1
- package/js/types/Enum/RecurrenceType.js +28 -0
- package/js/types/Enum/RecurrenceType.js.map +1 -0
- package/js/types/Enum/Role.js +18 -13
- package/js/types/Enum/Role.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +142 -86
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/TaskResponseType.js +36 -3
- package/js/types/Enum/TaskResponseType.js.map +1 -1
- package/js/types/Enum/TimeCounterType.js +7 -7
- package/js/types/Enum/TimeCounterType.js.map +1 -1
- package/js/types/Interface/api/commercialManagement/Create.js +47 -33
- package/js/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/js/types/Interface/api/commercialManagement/Query.js +15 -3
- package/js/types/Interface/api/commercialManagement/Query.js.map +1 -1
- package/js/types/Interface/api/commercialManagement/Update.js +15 -1
- package/js/types/Interface/api/commercialManagement/Update.js.map +1 -1
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js +1 -1
- package/js/types/Interface/api/mail/QueryCountUnprocessedByUserMail.js.map +1 -1
- package/js/types/Interface/api/mail/QueryPaginatedMail.js +1 -1
- package/js/types/Interface/api/mail/QueryPaginatedMail.js.map +1 -1
- package/js/types/Interface/api/{dashboard/QueryGescom.js → qonto/CreateImportation.js} +8 -12
- package/js/types/Interface/api/qonto/CreateImportation.js.map +1 -0
- package/js/types/Interface/api/qonto/Query.js +6 -0
- package/js/types/Interface/api/qonto/Query.js.map +1 -0
- package/js/types/Interface/api/revision/QueryRevision.js +6 -0
- package/js/types/Interface/api/revision/QueryRevision.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionAccount.js +7 -5
- package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionPaginate.js +6 -0
- package/js/types/Interface/api/revision/QueryRevisionPaginate.js.map +1 -1
- package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
- package/js/types/Interface/api/task/QueryCountTask.js +1 -1
- package/js/types/Interface/api/task/QueryCountTask.js.map +1 -1
- package/js/types/Interface/api/task/QueryPaginatedTask.js +6 -0
- package/js/types/Interface/api/task/QueryPaginatedTask.js.map +1 -1
- package/js/types/Interface/api/user/ParamsGetAllCollaborators.js +6 -0
- package/js/types/Interface/api/user/ParamsGetAllCollaborators.js.map +1 -1
- package/js/types/Interface/api/user/QueryGetAllCollaborators.js +8 -0
- package/js/types/Interface/api/user/QueryGetAllCollaborators.js.map +1 -1
- package/js/types/Interface/models/IApiError.js +1 -0
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/IInvoiceRecurrence.js +6 -0
- package/js/types/Interface/models/IInvoiceRecurrence.js.map +1 -0
- package/js/types/index.js +48 -24
- package/js/types/index.js.map +1 -1
- package/js/utils/commercialManagement/document.js +1 -6
- package/js/utils/commercialManagement/document.js.map +1 -1
- package/js/utils/commercialManagement/recurrence.js +47 -0
- package/js/utils/commercialManagement/recurrence.js.map +1 -0
- package/js/utils/index.js +12 -0
- package/js/utils/index.js.map +1 -1
- package/js/utils/task.js +29 -20
- package/js/utils/task.js.map +1 -1
- package/js/utils/webmail.js +1 -3
- package/js/utils/webmail.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/{commercialDocument.ts → CommercialDocument.ts} +10 -0
- package/ts/api/resources/Dashboard.ts +0 -6
- package/ts/api/resources/Exercice.ts +4 -0
- package/ts/api/resources/Invoice.ts +4 -0
- package/ts/api/resources/Mail.ts +2 -2
- package/ts/api/resources/Qonto.ts +7 -1
- package/ts/api/resources/Recurrence.ts +17 -0
- package/ts/api/resources/{reminder.ts → Reminder.ts} +1 -1
- package/ts/api/resources/User.ts +3 -12
- package/ts/api/resources.ts +4 -2
- package/ts/types/Enum/BrandClementine.ts +3 -0
- package/ts/types/Enum/CommercialManagement.ts +3 -1
- package/ts/types/Enum/RecurrenceType.ts +25 -0
- package/ts/types/Enum/Role.ts +15 -10
- package/ts/types/Enum/RoleDetail.ts +120 -64
- package/ts/types/Enum/TaskResponseType.ts +35 -2
- package/ts/types/Enum/TimeCounterType.ts +7 -7
- package/ts/types/Interface/api/commercialManagement/Create.ts +62 -81
- package/ts/types/Interface/api/commercialManagement/Query.ts +25 -0
- package/ts/types/Interface/api/commercialManagement/Read.ts +19 -0
- package/ts/types/Interface/api/commercialManagement/Update.ts +25 -1
- package/ts/types/Interface/api/mail/QueryCountUnprocessedByUserMail.ts +1 -1
- package/ts/types/Interface/api/mail/QueryPaginatedMail.ts +1 -1
- package/ts/types/Interface/api/qonto/CreateImportation.ts +14 -0
- package/ts/types/Interface/api/qonto/Query.ts +80 -0
- package/ts/types/Interface/api/revision/QueryRevision.ts +15 -2
- package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +11 -4
- package/ts/types/Interface/api/revision/QueryRevisionPaginate.ts +15 -2
- package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +1 -1
- package/ts/types/Interface/api/task/QueryCountTask.ts +1 -1
- package/ts/types/Interface/api/task/QueryPaginatedTask.ts +9 -0
- package/ts/types/Interface/api/user/ParamsGetAllCollaborators.ts +9 -0
- package/ts/types/Interface/api/user/QueryGetAllCollaborators.ts +10 -1
- package/ts/types/Interface/models/IApiError.ts +1 -0
- package/ts/types/Interface/models/IEstimateInvoice.ts +4 -2
- package/ts/types/Interface/models/IInvoiceRecurrence.ts +16 -0
- package/ts/types/Interface/models/IInvoiceReminder.ts +1 -1
- package/ts/types/Interface/models/ITask.ts +2 -2
- package/ts/types/index.ts +4 -2
- package/ts/utils/commercialManagement/document.ts +1 -6
- package/ts/utils/commercialManagement/recurrence.ts +39 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/task.ts +24 -16
- package/ts/utils/webmail.ts +1 -3
- package/es/api/resources/commercialDocument.d.ts.map +0 -1
- package/es/api/resources/commercialDocument.js.map +0 -1
- package/es/types/Interface/api/dashboard/QueryGescom.d.ts +0 -8
- package/es/types/Interface/api/dashboard/QueryGescom.d.ts.map +0 -1
- package/es/types/Interface/api/dashboard/QueryGescom.js.map +0 -1
- package/es/types/Interface/api/dashboard/ReadGescom.d.ts +0 -22
- package/es/types/Interface/api/dashboard/ReadGescom.d.ts.map +0 -1
- package/es/types/Interface/api/dashboard/ReadGescom.js +0 -9
- package/es/types/Interface/api/dashboard/ReadGescom.js.map +0 -1
- package/js/api/resources/commercialDocument.js.map +0 -1
- package/js/types/Interface/api/dashboard/QueryGescom.js.map +0 -1
- package/js/types/Interface/api/dashboard/ReadGescom.js +0 -22
- package/js/types/Interface/api/dashboard/ReadGescom.js.map +0 -1
- package/ts/types/Interface/api/dashboard/QueryGescom.ts +0 -18
- package/ts/types/Interface/api/dashboard/ReadGescom.ts +0 -24
|
@@ -4,30 +4,35 @@ export const RoleDetail = {
|
|
|
4
4
|
name: 'Client',
|
|
5
5
|
colorPrimary: '#8765D0',
|
|
6
6
|
colorSecondary: '#DED7F6',
|
|
7
|
+
subRole: false,
|
|
7
8
|
},
|
|
8
9
|
ADMIN: {
|
|
9
10
|
id: 2,
|
|
10
11
|
name: 'Admin',
|
|
11
12
|
colorPrimary: '#8765D0',
|
|
12
13
|
colorSecondary: '#DED7F6',
|
|
14
|
+
subRole: false,
|
|
13
15
|
},
|
|
14
16
|
FRONT_OFFICE: {
|
|
15
17
|
id: 3,
|
|
16
18
|
name: 'Front Office',
|
|
17
19
|
colorPrimary: '#8765D0',
|
|
18
20
|
colorSecondary: '#DED7F6',
|
|
21
|
+
subRole: false,
|
|
19
22
|
},
|
|
20
23
|
COMMERCIAL: {
|
|
21
24
|
id: 9,
|
|
22
25
|
name: 'Commercial',
|
|
23
26
|
colorPrimary: '#8765D0',
|
|
24
27
|
colorSecondary: '#DED7F6',
|
|
28
|
+
subRole: false,
|
|
25
29
|
},
|
|
26
30
|
CUSTOMER_SUCCESS: {
|
|
27
31
|
id: 10,
|
|
28
32
|
name: 'Customer success',
|
|
29
33
|
colorPrimary: '#5894EF',
|
|
30
34
|
colorSecondary: '#DAEEFC',
|
|
35
|
+
subRole: false,
|
|
31
36
|
handledInUserSocietyPermissionTable: false,
|
|
32
37
|
},
|
|
33
38
|
SOCIAL: {
|
|
@@ -35,182 +40,233 @@ export const RoleDetail = {
|
|
|
35
40
|
name: 'Social',
|
|
36
41
|
colorPrimary: '#8765D0',
|
|
37
42
|
colorSecondary: '#DED7F6',
|
|
43
|
+
subRole: false,
|
|
38
44
|
},
|
|
39
45
|
JURIDIC: {
|
|
40
46
|
id: 12,
|
|
41
47
|
name: 'Juridique',
|
|
42
48
|
colorPrimary: '#8765D0',
|
|
43
49
|
colorSecondary: '#DED7F6',
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
subRole: false,
|
|
51
|
+
},
|
|
52
|
+
// CHIEF_ACCOUNTANT: {
|
|
53
|
+
// id: 13,
|
|
54
|
+
// name: 'Chef comptable',
|
|
55
|
+
// colorPrimary: '#8765D0',
|
|
56
|
+
// colorSecondary: '#DED7F6',
|
|
57
|
+
// subRole: false,
|
|
58
|
+
// },
|
|
59
|
+
// SUPERVISOR: {
|
|
60
|
+
// id: 14,
|
|
61
|
+
// name: 'Superviseur',
|
|
62
|
+
// colorPrimary: '#8765D0',
|
|
63
|
+
// colorSecondary: '#DED7F6',
|
|
64
|
+
// subRole: false,
|
|
65
|
+
// },
|
|
57
66
|
FRONT_OFFICE_EXPRESS: {
|
|
58
67
|
id: 15,
|
|
59
68
|
name: 'Front office express',
|
|
60
69
|
colorPrimary: '#8765D0',
|
|
61
70
|
colorSecondary: '#DED7F6',
|
|
71
|
+
subRole: false,
|
|
62
72
|
},
|
|
63
73
|
SUPER_ADMIN: {
|
|
64
74
|
id: 16,
|
|
65
75
|
name: 'Super admin',
|
|
66
76
|
colorPrimary: '#8765D0',
|
|
67
77
|
colorSecondary: '#DED7F6',
|
|
78
|
+
subRole: false,
|
|
68
79
|
},
|
|
69
80
|
EXPERT_SUB_CONTRACTOR: {
|
|
70
81
|
id: 17,
|
|
71
82
|
name: 'Expert sous-traitant',
|
|
72
83
|
colorPrimary: '#B5D33C',
|
|
73
84
|
colorSecondary: '#EEF4C3',
|
|
85
|
+
subRole: false,
|
|
74
86
|
},
|
|
75
87
|
MAINTAINER: {
|
|
76
88
|
id: 18,
|
|
77
89
|
name: 'Admin partenaire',
|
|
78
90
|
colorPrimary: '#8765D0',
|
|
79
91
|
colorSecondary: '#DED7F6',
|
|
92
|
+
subRole: false,
|
|
80
93
|
},
|
|
81
94
|
MANAGER: {
|
|
82
95
|
id: 19,
|
|
83
96
|
name: 'Manager',
|
|
84
97
|
colorPrimary: '#8765D0',
|
|
85
98
|
colorSecondary: '#DED7F6',
|
|
99
|
+
subRole: false,
|
|
86
100
|
},
|
|
87
101
|
EXPERT_ACCOUNTANT: {
|
|
88
102
|
id: 20,
|
|
89
103
|
name: 'Expert-comptable',
|
|
90
104
|
colorPrimary: '#B5D33C',
|
|
91
105
|
colorSecondary: '#EEF4C3',
|
|
106
|
+
subRole: false,
|
|
92
107
|
handledInUserSocietyPermissionTable: false,
|
|
93
108
|
},
|
|
94
|
-
MFA_PENDING: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
109
|
+
// MFA_PENDING: {
|
|
110
|
+
// id: 21,
|
|
111
|
+
// name: 'Attente MFA',
|
|
112
|
+
// colorPrimary: '#8765D0',
|
|
113
|
+
// colorSecondary: '#DED7F6',
|
|
114
|
+
// subRole: false,
|
|
115
|
+
// },
|
|
116
|
+
// VAT: {
|
|
117
|
+
// id: 22,
|
|
118
|
+
// name: 'VAT',
|
|
119
|
+
// colorPrimary: '#8765D0',
|
|
120
|
+
// colorSecondary: '#DED7F6',
|
|
121
|
+
// subRole: false,
|
|
122
|
+
// },
|
|
106
123
|
CANDIDAT: {
|
|
107
124
|
id: 24,
|
|
108
125
|
name: 'Candidat',
|
|
109
126
|
colorPrimary: '#8765D0',
|
|
110
127
|
colorSecondary: '#DED7F6',
|
|
128
|
+
subRole: false,
|
|
111
129
|
},
|
|
112
130
|
DEVELOPER: {
|
|
113
131
|
id: 25,
|
|
114
132
|
name: 'Développeur',
|
|
115
133
|
colorPrimary: '#8765D0',
|
|
116
134
|
colorSecondary: '#DED7F6',
|
|
135
|
+
subRole: false,
|
|
117
136
|
},
|
|
118
137
|
API: {
|
|
119
138
|
id: 26,
|
|
120
139
|
name: 'API',
|
|
121
140
|
colorPrimary: '#8765D0',
|
|
122
141
|
colorSecondary: '#DED7F6',
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
},
|
|
142
|
+
subRole: false,
|
|
143
|
+
},
|
|
144
|
+
// BACK_OFFICE: {
|
|
145
|
+
// id: 27,
|
|
146
|
+
// name: 'Back office',
|
|
147
|
+
// colorPrimary: '#8765D0',
|
|
148
|
+
// colorSecondary: '#DED7F6',
|
|
149
|
+
// subRole: false,
|
|
150
|
+
// },
|
|
151
|
+
// BACK_OFFICE_EXPRESS: {
|
|
152
|
+
// id: 28,
|
|
153
|
+
// name: 'Back office express',
|
|
154
|
+
// colorPrimary: '#8765D0',
|
|
155
|
+
// colorSecondary: '#DED7F6',
|
|
156
|
+
// subRole: false,
|
|
157
|
+
// },
|
|
158
|
+
// BACK_MANAGER: {
|
|
159
|
+
// id: 30,
|
|
160
|
+
// name: 'Manager back',
|
|
161
|
+
// colorPrimary: '#8765D0',
|
|
162
|
+
// colorSecondary: '#DED7F6',
|
|
163
|
+
// subRole: false,
|
|
164
|
+
// handledInUserSocietyPermissionTable: false,
|
|
165
|
+
// },
|
|
166
|
+
// FRONT_MANAGER: {
|
|
167
|
+
// id: 31,
|
|
168
|
+
// name: 'Manager front',
|
|
169
|
+
// colorPrimary: '#8765D0',
|
|
170
|
+
// colorSecondary: '#DED7F6',
|
|
171
|
+
// subRole: false,
|
|
172
|
+
// },
|
|
173
|
+
// CUSTOMER_SUCCESS_MANAGER: {
|
|
174
|
+
// id: 32,
|
|
175
|
+
// name: 'Customer success manager',
|
|
176
|
+
// colorPrimary: '#5894EF',
|
|
177
|
+
// colorSecondary: '#DAEEFC',
|
|
178
|
+
// subRole: false,
|
|
179
|
+
// handledInUserSocietyPermissionTable: false,
|
|
180
|
+
// },
|
|
181
|
+
// COMMERCIAL_MANAGER: {
|
|
182
|
+
// id: 33,
|
|
183
|
+
// name: 'Manager commercial',
|
|
184
|
+
// colorPrimary: '#8765D0',
|
|
185
|
+
// colorSecondary: '#DED7F6',
|
|
186
|
+
// subRole: false,
|
|
187
|
+
// },
|
|
162
188
|
FACTURATION: {
|
|
163
189
|
id: 34,
|
|
164
190
|
name: 'Facturation',
|
|
165
191
|
colorPrimary: '#8765D0',
|
|
166
192
|
colorSecondary: '#DED7F6',
|
|
193
|
+
subRole: false,
|
|
167
194
|
},
|
|
168
195
|
HUMAN_RESSOURCES: {
|
|
169
196
|
id: 35,
|
|
170
197
|
name: 'Ressources humaines',
|
|
171
198
|
colorPrimary: '#8765D0',
|
|
172
199
|
colorSecondary: '#DED7F6',
|
|
200
|
+
subRole: false,
|
|
173
201
|
},
|
|
174
202
|
PARTNERED_ACCOUNTANT: {
|
|
175
203
|
id: 36,
|
|
176
204
|
name: 'Comptable partenaire',
|
|
177
205
|
colorPrimary: '#8765D0',
|
|
178
206
|
colorSecondary: '#DED7F6',
|
|
207
|
+
subRole: false,
|
|
179
208
|
},
|
|
180
209
|
FORECAST_MANAGER: {
|
|
181
210
|
id: 38,
|
|
182
211
|
name: 'Gestionnaire Prévisionnels',
|
|
183
212
|
colorPrimary: '#8765D0',
|
|
184
213
|
colorSecondary: '#DED7F6',
|
|
214
|
+
subRole: false,
|
|
185
215
|
},
|
|
186
216
|
TERMINATION_MANAGER: {
|
|
187
217
|
id: 39,
|
|
188
218
|
name: 'Gestionnaire Résiliations',
|
|
189
219
|
colorPrimary: '#8765D0',
|
|
190
220
|
colorSecondary: '#DED7F6',
|
|
221
|
+
subRole: false,
|
|
191
222
|
},
|
|
192
223
|
EXPRESS_MANAGER: {
|
|
193
224
|
id: 40,
|
|
194
225
|
name: 'Gestionnaire Express',
|
|
195
226
|
colorPrimary: '#8765D0',
|
|
196
227
|
colorSecondary: '#DED7F6',
|
|
228
|
+
subRole: false,
|
|
197
229
|
},
|
|
198
230
|
CONFLICT_MANAGER: {
|
|
199
231
|
id: 41,
|
|
200
232
|
name: 'Gestionnaire Conflits',
|
|
201
233
|
colorPrimary: '#8765D0',
|
|
202
234
|
colorSecondary: '#DED7F6',
|
|
235
|
+
subRole: false,
|
|
203
236
|
},
|
|
204
237
|
ATTESTATION_MANAGER: {
|
|
205
238
|
id: 42,
|
|
206
239
|
name: 'Gestionnaire Attestations',
|
|
207
240
|
colorPrimary: '#8765D0',
|
|
208
241
|
colorSecondary: '#DED7F6',
|
|
242
|
+
subRole: false,
|
|
209
243
|
},
|
|
210
244
|
JURIDICAL_SUPPORT: {
|
|
211
245
|
id: 43,
|
|
212
246
|
name: 'Support juridique',
|
|
213
247
|
colorPrimary: '#8765D0',
|
|
214
248
|
colorSecondary: '#DED7F6',
|
|
249
|
+
subRole: false,
|
|
250
|
+
},
|
|
251
|
+
INTERN: {
|
|
252
|
+
id: 44,
|
|
253
|
+
name: 'Stagiaire',
|
|
254
|
+
colorPrimary: '#FFF',
|
|
255
|
+
colorSecondary: '#FFF',
|
|
256
|
+
subRole: true,
|
|
257
|
+
},
|
|
258
|
+
ALTERNATE: {
|
|
259
|
+
id: 45,
|
|
260
|
+
name: 'Alternant',
|
|
261
|
+
colorPrimary: '#FFF',
|
|
262
|
+
colorSecondary: '#FFF',
|
|
263
|
+
subRole: true,
|
|
264
|
+
},
|
|
265
|
+
DIRECTOR: {
|
|
266
|
+
id: 46,
|
|
267
|
+
name: 'Directeur',
|
|
268
|
+
colorPrimary: '#FFF',
|
|
269
|
+
colorSecondary: '#FFF',
|
|
270
|
+
subRole: true,
|
|
215
271
|
},
|
|
216
272
|
};
|
|
@@ -24,6 +24,17 @@ export enum StateTask {
|
|
|
24
24
|
REFUSED = 4,
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export enum RoleAvailableForTask {
|
|
28
|
+
SOCIAL = Role.SOCIAL,
|
|
29
|
+
FACTURATION = Role.FACTURATION,
|
|
30
|
+
JURIDIC = Role.JURIDIC,
|
|
31
|
+
CUSTOMER_SUCCESS = Role.CUSTOMER_SUCCESS,
|
|
32
|
+
FRONT_OFFICE = Role.FRONT_OFFICE,
|
|
33
|
+
COMMERCIAL = Role.COMMERCIAL,
|
|
34
|
+
// BACK_MANAGER = Role.BACK_MANAGER,
|
|
35
|
+
EXPERT_ACCOUNTANT = Role.EXPERT_ACCOUNTANT,
|
|
36
|
+
}
|
|
37
|
+
|
|
27
38
|
export const TaskResponseType = {
|
|
28
39
|
INTERN: {
|
|
29
40
|
id: 1,
|
|
@@ -131,7 +142,7 @@ export const TaskResponseType = {
|
|
|
131
142
|
{
|
|
132
143
|
id: 10,
|
|
133
144
|
label: 'Préparation d\'un bilan',
|
|
134
|
-
role: Role.
|
|
145
|
+
role: Role.MANAGER,
|
|
135
146
|
deadline: Deadline,
|
|
136
147
|
isForWholeRole: false,
|
|
137
148
|
backToClient: false,
|
|
@@ -139,6 +150,17 @@ export const TaskResponseType = {
|
|
|
139
150
|
responseType: null,
|
|
140
151
|
description: 'Controle de la DADS.',
|
|
141
152
|
},
|
|
153
|
+
{
|
|
154
|
+
id: 11,
|
|
155
|
+
label: 'Comptable express',
|
|
156
|
+
role: Role.FRONT_OFFICE_EXPRESS,
|
|
157
|
+
deadline: Deadline,
|
|
158
|
+
isForWholeRole: false,
|
|
159
|
+
backToClient: false,
|
|
160
|
+
goToCalendar: false,
|
|
161
|
+
responseType: null,
|
|
162
|
+
description: 'Est-ce que nous pouvons réaliser le bilan 2020 de ce client ?',
|
|
163
|
+
},
|
|
142
164
|
],
|
|
143
165
|
},
|
|
144
166
|
EXTERN: {
|
|
@@ -258,7 +280,7 @@ export const TaskResponseType = {
|
|
|
258
280
|
{
|
|
259
281
|
id: 14,
|
|
260
282
|
label: 'Litige dossier',
|
|
261
|
-
role: Role.
|
|
283
|
+
role: Role.MANAGER,
|
|
262
284
|
deadline: Deadline,
|
|
263
285
|
isForWholeRole: false,
|
|
264
286
|
backToClient: true,
|
|
@@ -266,6 +288,17 @@ export const TaskResponseType = {
|
|
|
266
288
|
responseType: ResponseType.MAIL,
|
|
267
289
|
description: 'Le client veut avoir une explication de bilan par le responsable comptable',
|
|
268
290
|
},
|
|
291
|
+
{
|
|
292
|
+
id: 15,
|
|
293
|
+
label: 'Comptable express',
|
|
294
|
+
role: Role.FRONT_OFFICE_EXPRESS,
|
|
295
|
+
deadline: Deadline,
|
|
296
|
+
isForWholeRole: false,
|
|
297
|
+
backToClient: true,
|
|
298
|
+
goToCalendar: false,
|
|
299
|
+
responseType: ResponseType.MAIL,
|
|
300
|
+
description: 'Bilan express à envoyer au SIE.',
|
|
301
|
+
},
|
|
269
302
|
],
|
|
270
303
|
|
|
271
304
|
},
|
|
@@ -5,25 +5,25 @@ export const TimeCounterType = {
|
|
|
5
5
|
id: 1,
|
|
6
6
|
label: 'OnBoarding',
|
|
7
7
|
aberrantTime: 60,
|
|
8
|
-
limitedRoles: [Role.FRONT_OFFICE
|
|
8
|
+
limitedRoles: [Role.FRONT_OFFICE],
|
|
9
9
|
},
|
|
10
10
|
VAT: {
|
|
11
11
|
id: 2,
|
|
12
12
|
label: 'TVA',
|
|
13
13
|
aberrantTime: 60,
|
|
14
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE
|
|
14
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
15
15
|
},
|
|
16
16
|
REVISION: {
|
|
17
17
|
id: 3,
|
|
18
18
|
label: 'Révision',
|
|
19
19
|
aberrantTime: 120,
|
|
20
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE
|
|
20
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
21
21
|
},
|
|
22
22
|
FOLDER_REVIEW: {
|
|
23
23
|
id: 4,
|
|
24
24
|
label: 'Revue dossier',
|
|
25
25
|
aberrantTime: 60,
|
|
26
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE
|
|
26
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
27
27
|
},
|
|
28
28
|
REPORTING: {
|
|
29
29
|
id: 5,
|
|
@@ -65,7 +65,7 @@ export const TimeCounterType = {
|
|
|
65
65
|
id: 11,
|
|
66
66
|
label: 'Prévisionnel',
|
|
67
67
|
aberrantTime: null,
|
|
68
|
-
limitedRoles: [Role.FRONT_OFFICE
|
|
68
|
+
limitedRoles: [Role.FRONT_OFFICE],
|
|
69
69
|
},
|
|
70
70
|
CERTIFICATE: {
|
|
71
71
|
id: 12,
|
|
@@ -77,7 +77,7 @@ export const TimeCounterType = {
|
|
|
77
77
|
id: 13,
|
|
78
78
|
label: 'Mission complémentaire',
|
|
79
79
|
aberrantTime: null,
|
|
80
|
-
limitedRoles: [Role.FRONT_OFFICE
|
|
80
|
+
limitedRoles: [Role.FRONT_OFFICE],
|
|
81
81
|
},
|
|
82
82
|
ORGANISATION: {
|
|
83
83
|
id: 14,
|
|
@@ -119,7 +119,7 @@ export const TimeCounterType = {
|
|
|
119
119
|
id: 20,
|
|
120
120
|
label: 'Bilan',
|
|
121
121
|
aberrantTime: 120,
|
|
122
|
-
limitedRoles: [Role.FRONT_OFFICE, Role.
|
|
122
|
+
limitedRoles: [Role.FRONT_OFFICE, Role.EXPERT_ACCOUNTANT],
|
|
123
123
|
},
|
|
124
124
|
PAYSLIP: {
|
|
125
125
|
id: 21,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsArray, IsBoolean, IsDateString, IsNumber, IsOptional, IsString, Min,
|
|
2
|
+
IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,
|
|
3
3
|
} from 'class-validator';
|
|
4
4
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
5
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
6
|
import { FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';
|
|
7
7
|
import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';
|
|
8
|
+
import { RecurrenceType } from '../../../Enum/RecurrenceType';
|
|
8
9
|
import { IProductInvoice } from '../../models/IProductInvoice';
|
|
9
10
|
import { ISocietyGescom } from '../../models/ISocietyGescom';
|
|
10
11
|
import { IThirdParty } from '../../models/IThirdParty';
|
|
@@ -222,35 +223,24 @@ export class CreateCommercialMail {
|
|
|
222
223
|
}
|
|
223
224
|
|
|
224
225
|
export class CommercialDocumentInputs {
|
|
225
|
-
@
|
|
226
|
-
|
|
227
|
-
@IsOptional()
|
|
228
|
-
legalForm?: string;
|
|
226
|
+
@ApiProperty()
|
|
227
|
+
legalForm: string | null;
|
|
229
228
|
|
|
230
|
-
@
|
|
229
|
+
@ApiProperty()
|
|
231
230
|
@IsNumber()
|
|
232
|
-
@IsOptional()
|
|
233
231
|
capital?: number;
|
|
234
232
|
|
|
235
|
-
@
|
|
236
|
-
|
|
237
|
-
@IsOptional()
|
|
238
|
-
siren?: string;
|
|
233
|
+
@ApiProperty()
|
|
234
|
+
siren: string | null;
|
|
239
235
|
|
|
240
|
-
@
|
|
241
|
-
|
|
242
|
-
@IsOptional()
|
|
243
|
-
rcs?: string;
|
|
236
|
+
@ApiProperty()
|
|
237
|
+
rcs: string | null;
|
|
244
238
|
|
|
245
|
-
@
|
|
246
|
-
|
|
247
|
-
@IsOptional()
|
|
248
|
-
vatCode?: string;
|
|
239
|
+
@ApiProperty()
|
|
240
|
+
vatCode: string | null;
|
|
249
241
|
|
|
250
|
-
@
|
|
251
|
-
|
|
252
|
-
@IsOptional()
|
|
253
|
-
nafCode?: string;
|
|
242
|
+
@ApiProperty()
|
|
243
|
+
nafCode: string | null;
|
|
254
244
|
|
|
255
245
|
@ApiProperty()
|
|
256
246
|
@IsString()
|
|
@@ -267,14 +257,11 @@ export class CommercialDocumentInputs {
|
|
|
267
257
|
@IsDateString()
|
|
268
258
|
dueDate: string; //
|
|
269
259
|
|
|
270
|
-
@
|
|
271
|
-
|
|
272
|
-
@IsOptional()
|
|
273
|
-
expirationDate: string;
|
|
260
|
+
@ApiProperty({ description: 'Date d\'expiration pour la facture d\'acompte' })
|
|
261
|
+
expirationDate: string | null;
|
|
274
262
|
|
|
275
263
|
@ApiProperty({ description: 'Conditions de réglement' })
|
|
276
|
-
|
|
277
|
-
termsOfPayment: string;
|
|
264
|
+
termsOfPayment: string | null;
|
|
278
265
|
|
|
279
266
|
@ApiProperty()
|
|
280
267
|
@IsArray()
|
|
@@ -284,88 +271,62 @@ export class CommercialDocumentInputs {
|
|
|
284
271
|
@IsString()
|
|
285
272
|
discount: string; //
|
|
286
273
|
|
|
287
|
-
@
|
|
288
|
-
|
|
289
|
-
@IsString()
|
|
290
|
-
comment?: string; //
|
|
274
|
+
@ApiProperty()
|
|
275
|
+
comment: string | null; //
|
|
291
276
|
|
|
292
|
-
@
|
|
293
|
-
|
|
294
|
-
@IsString()
|
|
295
|
-
penalties?: string; //
|
|
277
|
+
@ApiProperty({ description: 'Pénalité de retard' })
|
|
278
|
+
penalties: string | null; //
|
|
296
279
|
|
|
297
280
|
@ApiProperty({ description: 'Remise globale' })
|
|
298
|
-
@IsOptional()
|
|
299
281
|
@IsNumber()
|
|
300
282
|
generalDiscount2: number; //
|
|
301
283
|
|
|
302
|
-
@
|
|
303
|
-
|
|
304
|
-
@IsString()
|
|
305
|
-
compensation?: string; //
|
|
284
|
+
@ApiProperty({ description: 'Indemnité forfaitaire' })
|
|
285
|
+
compensation: string | null; //
|
|
306
286
|
|
|
307
|
-
@
|
|
308
|
-
|
|
309
|
-
@IsString()
|
|
310
|
-
vatMention?: string; //
|
|
287
|
+
@ApiProperty()
|
|
288
|
+
vatMention: string | null; //
|
|
311
289
|
|
|
312
290
|
@ApiProperty()
|
|
313
291
|
@IsBoolean()
|
|
314
292
|
@ToBoolean()
|
|
315
293
|
disableVat: boolean;
|
|
316
294
|
|
|
317
|
-
@
|
|
318
|
-
|
|
319
|
-
@IsOptional()
|
|
320
|
-
title?: string; //
|
|
295
|
+
@ApiProperty()
|
|
296
|
+
title: string | null; //
|
|
321
297
|
|
|
322
|
-
@
|
|
298
|
+
@ApiProperty({ description: 'Commercial name of seller' })
|
|
323
299
|
@IsString()
|
|
324
|
-
@IsOptional()
|
|
325
300
|
name: string;
|
|
326
301
|
|
|
327
|
-
@
|
|
302
|
+
@ApiProperty({ description: 'Commercial number address of seller' })
|
|
328
303
|
@IsString()
|
|
329
|
-
|
|
330
|
-
number?: string;
|
|
304
|
+
number?: string | null;
|
|
331
305
|
|
|
332
|
-
@
|
|
333
|
-
|
|
334
|
-
@IsOptional()
|
|
335
|
-
street?: string;
|
|
306
|
+
@ApiProperty({ description: 'Commercial street address of seller' })
|
|
307
|
+
street: string | null;
|
|
336
308
|
|
|
337
|
-
@
|
|
338
|
-
|
|
339
|
-
@IsOptional()
|
|
340
|
-
zipCode?: string;
|
|
309
|
+
@ApiProperty({ description: 'Commercial zip code address of seller' })
|
|
310
|
+
zipCode: string | null;
|
|
341
311
|
|
|
342
|
-
@
|
|
343
|
-
|
|
344
|
-
@IsOptional()
|
|
345
|
-
city?: string;
|
|
312
|
+
@ApiProperty({ description: 'Commercial city address of seller' })
|
|
313
|
+
city: string | null;
|
|
346
314
|
|
|
347
|
-
@
|
|
348
|
-
@IsOptional()
|
|
315
|
+
@ApiProperty()
|
|
349
316
|
settings?: ISocietyGescom;
|
|
350
317
|
|
|
351
|
-
@
|
|
352
|
-
|
|
353
|
-
@IsString()
|
|
354
|
-
cgv?: string;
|
|
318
|
+
@ApiProperty()
|
|
319
|
+
cgv: string | null;
|
|
355
320
|
|
|
356
|
-
@
|
|
357
|
-
|
|
358
|
-
@IsString()
|
|
359
|
-
logoUrl?: string;
|
|
321
|
+
@ApiProperty()
|
|
322
|
+
logoUrl: string | null;
|
|
360
323
|
|
|
361
|
-
@
|
|
362
|
-
@IsOptional()
|
|
324
|
+
@ApiProperty()
|
|
363
325
|
@IsBoolean()
|
|
364
326
|
@ToBoolean()
|
|
365
327
|
isStripeAllowed?: boolean;
|
|
366
328
|
|
|
367
|
-
@
|
|
368
|
-
@IsOptional()
|
|
329
|
+
@ApiProperty()
|
|
369
330
|
@IsBoolean()
|
|
370
331
|
@ToBoolean()
|
|
371
332
|
isDraft?: boolean;
|
|
@@ -383,6 +344,7 @@ export class CreatePreSaleDocument extends CommercialDocumentInputs {
|
|
|
383
344
|
export class CreateInvoiceDocument extends CommercialDocumentInputs {
|
|
384
345
|
paymentLink?: string;
|
|
385
346
|
deposit?: number;
|
|
347
|
+
fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture
|
|
386
348
|
fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture
|
|
387
349
|
assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes
|
|
388
350
|
}
|
|
@@ -422,4 +384,23 @@ export class CreateReminder {
|
|
|
422
384
|
@IsString()
|
|
423
385
|
@IsOptional()
|
|
424
386
|
message?: string;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export class CreateRecurrence {
|
|
390
|
+
@ApiProperty()
|
|
391
|
+
@IsEnum(RecurrenceType)
|
|
392
|
+
type: number;
|
|
393
|
+
|
|
394
|
+
@ApiProperty()
|
|
395
|
+
@IsDateString()
|
|
396
|
+
startDate: string;
|
|
397
|
+
|
|
398
|
+
@ApiProperty()
|
|
399
|
+
@IsDateString()
|
|
400
|
+
endDate: string;
|
|
401
|
+
|
|
402
|
+
@ApiProperty()
|
|
403
|
+
@ToBoolean()
|
|
404
|
+
@IsBoolean()
|
|
405
|
+
isActive: boolean;
|
|
425
406
|
}
|