@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
|
@@ -50,35 +50,35 @@ export declare class CreateCommercialMail {
|
|
|
50
50
|
content: string;
|
|
51
51
|
}
|
|
52
52
|
export declare class CommercialDocumentInputs {
|
|
53
|
-
legalForm
|
|
53
|
+
legalForm: string | null;
|
|
54
54
|
capital?: number;
|
|
55
|
-
siren
|
|
56
|
-
rcs
|
|
57
|
-
vatCode
|
|
58
|
-
nafCode
|
|
55
|
+
siren: string | null;
|
|
56
|
+
rcs: string | null;
|
|
57
|
+
vatCode: string | null;
|
|
58
|
+
nafCode: string | null;
|
|
59
59
|
reference: string;
|
|
60
60
|
thirdParty: IThirdParty;
|
|
61
61
|
emissionDate: string;
|
|
62
62
|
dueDate: string;
|
|
63
|
-
expirationDate: string;
|
|
64
|
-
termsOfPayment: string;
|
|
63
|
+
expirationDate: string | null;
|
|
64
|
+
termsOfPayment: string | null;
|
|
65
65
|
products: Array<IProductInvoiceToCreate>;
|
|
66
66
|
discount: string;
|
|
67
|
-
comment
|
|
68
|
-
penalties
|
|
67
|
+
comment: string | null;
|
|
68
|
+
penalties: string | null;
|
|
69
69
|
generalDiscount2: number;
|
|
70
|
-
compensation
|
|
71
|
-
vatMention
|
|
70
|
+
compensation: string | null;
|
|
71
|
+
vatMention: string | null;
|
|
72
72
|
disableVat: boolean;
|
|
73
|
-
title
|
|
73
|
+
title: string | null;
|
|
74
74
|
name: string;
|
|
75
|
-
number?: string;
|
|
76
|
-
street
|
|
77
|
-
zipCode
|
|
78
|
-
city
|
|
75
|
+
number?: string | null;
|
|
76
|
+
street: string | null;
|
|
77
|
+
zipCode: string | null;
|
|
78
|
+
city: string | null;
|
|
79
79
|
settings?: ISocietyGescom;
|
|
80
|
-
cgv
|
|
81
|
-
logoUrl
|
|
80
|
+
cgv: string | null;
|
|
81
|
+
logoUrl: string | null;
|
|
82
82
|
isStripeAllowed?: boolean;
|
|
83
83
|
isDraft?: boolean;
|
|
84
84
|
idEstimateInvoiceType: EstimateInvoiceType;
|
|
@@ -92,6 +92,7 @@ export declare class CreatePreSaleDocument extends CommercialDocumentInputs {
|
|
|
92
92
|
export declare class CreateInvoiceDocument extends CommercialDocumentInputs {
|
|
93
93
|
paymentLink?: string;
|
|
94
94
|
deposit?: number;
|
|
95
|
+
fromInvoiceId?: number | null;
|
|
95
96
|
fromEstimateId: number | null;
|
|
96
97
|
assetMarginVatIds?: number[];
|
|
97
98
|
}
|
|
@@ -106,4 +107,10 @@ export declare class CreateReminder {
|
|
|
106
107
|
subject?: string;
|
|
107
108
|
message?: string;
|
|
108
109
|
}
|
|
110
|
+
export declare class CreateRecurrence {
|
|
111
|
+
type: number;
|
|
112
|
+
startDate: string;
|
|
113
|
+
endDate: string;
|
|
114
|
+
isActive: boolean;
|
|
115
|
+
}
|
|
109
116
|
//# sourceMappingURL=Create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,oBAAY,uBAAuB,GAAG,eAAe,GAAG;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE3E,qBAAa,uBAAuB;IAOlC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKpB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKrB,IAAI,CAAC,EAAE,MAAM,GAAG,IA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(decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { IsArray, IsBoolean, IsDateString, IsNumber, IsOptional, IsString, Min, } from 'class-validator';
|
|
10
|
+
import { IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min, } from 'class-validator';
|
|
11
11
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
13
13
|
import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';
|
|
14
|
+
import { RecurrenceType } from '../../../Enum/RecurrenceType';
|
|
14
15
|
export class CreateCommercialSetting {
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
@@ -263,40 +264,29 @@ __decorate([
|
|
|
263
264
|
export class CommercialDocumentInputs {
|
|
264
265
|
}
|
|
265
266
|
__decorate([
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
IsOptional(),
|
|
269
|
-
__metadata("design:type", String)
|
|
267
|
+
ApiProperty(),
|
|
268
|
+
__metadata("design:type", Object)
|
|
270
269
|
], CommercialDocumentInputs.prototype, "legalForm", void 0);
|
|
271
270
|
__decorate([
|
|
272
|
-
|
|
271
|
+
ApiProperty(),
|
|
273
272
|
IsNumber(),
|
|
274
|
-
IsOptional(),
|
|
275
273
|
__metadata("design:type", Number)
|
|
276
274
|
], CommercialDocumentInputs.prototype, "capital", void 0);
|
|
277
275
|
__decorate([
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
IsOptional(),
|
|
281
|
-
__metadata("design:type", String)
|
|
276
|
+
ApiProperty(),
|
|
277
|
+
__metadata("design:type", Object)
|
|
282
278
|
], CommercialDocumentInputs.prototype, "siren", void 0);
|
|
283
279
|
__decorate([
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
IsOptional(),
|
|
287
|
-
__metadata("design:type", String)
|
|
280
|
+
ApiProperty(),
|
|
281
|
+
__metadata("design:type", Object)
|
|
288
282
|
], CommercialDocumentInputs.prototype, "rcs", void 0);
|
|
289
283
|
__decorate([
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
IsOptional(),
|
|
293
|
-
__metadata("design:type", String)
|
|
284
|
+
ApiProperty(),
|
|
285
|
+
__metadata("design:type", Object)
|
|
294
286
|
], CommercialDocumentInputs.prototype, "vatCode", void 0);
|
|
295
287
|
__decorate([
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
IsOptional(),
|
|
299
|
-
__metadata("design:type", String)
|
|
288
|
+
ApiProperty(),
|
|
289
|
+
__metadata("design:type", Object)
|
|
300
290
|
], CommercialDocumentInputs.prototype, "nafCode", void 0);
|
|
301
291
|
__decorate([
|
|
302
292
|
ApiProperty(),
|
|
@@ -318,15 +308,12 @@ __decorate([
|
|
|
318
308
|
__metadata("design:type", String)
|
|
319
309
|
], CommercialDocumentInputs.prototype, "dueDate", void 0);
|
|
320
310
|
__decorate([
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
IsOptional(),
|
|
324
|
-
__metadata("design:type", String)
|
|
311
|
+
ApiProperty({ description: 'Date d\'expiration pour la facture d\'acompte' }),
|
|
312
|
+
__metadata("design:type", Object)
|
|
325
313
|
], CommercialDocumentInputs.prototype, "expirationDate", void 0);
|
|
326
314
|
__decorate([
|
|
327
315
|
ApiProperty({ description: 'Conditions de réglement' }),
|
|
328
|
-
|
|
329
|
-
__metadata("design:type", String)
|
|
316
|
+
__metadata("design:type", Object)
|
|
330
317
|
], CommercialDocumentInputs.prototype, "termsOfPayment", void 0);
|
|
331
318
|
__decorate([
|
|
332
319
|
ApiProperty(),
|
|
@@ -339,34 +326,25 @@ __decorate([
|
|
|
339
326
|
__metadata("design:type", String)
|
|
340
327
|
], CommercialDocumentInputs.prototype, "discount", void 0);
|
|
341
328
|
__decorate([
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
IsString(),
|
|
345
|
-
__metadata("design:type", String)
|
|
329
|
+
ApiProperty(),
|
|
330
|
+
__metadata("design:type", Object)
|
|
346
331
|
], CommercialDocumentInputs.prototype, "comment", void 0);
|
|
347
332
|
__decorate([
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
IsString(),
|
|
351
|
-
__metadata("design:type", String)
|
|
333
|
+
ApiProperty({ description: 'Pénalité de retard' }),
|
|
334
|
+
__metadata("design:type", Object)
|
|
352
335
|
], CommercialDocumentInputs.prototype, "penalties", void 0);
|
|
353
336
|
__decorate([
|
|
354
337
|
ApiProperty({ description: 'Remise globale' }),
|
|
355
|
-
IsOptional(),
|
|
356
338
|
IsNumber(),
|
|
357
339
|
__metadata("design:type", Number)
|
|
358
340
|
], CommercialDocumentInputs.prototype, "generalDiscount2", void 0);
|
|
359
341
|
__decorate([
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
IsString(),
|
|
363
|
-
__metadata("design:type", String)
|
|
342
|
+
ApiProperty({ description: 'Indemnité forfaitaire' }),
|
|
343
|
+
__metadata("design:type", Object)
|
|
364
344
|
], CommercialDocumentInputs.prototype, "compensation", void 0);
|
|
365
345
|
__decorate([
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
IsString(),
|
|
369
|
-
__metadata("design:type", String)
|
|
346
|
+
ApiProperty(),
|
|
347
|
+
__metadata("design:type", Object)
|
|
370
348
|
], CommercialDocumentInputs.prototype, "vatMention", void 0);
|
|
371
349
|
__decorate([
|
|
372
350
|
ApiProperty(),
|
|
@@ -375,68 +353,51 @@ __decorate([
|
|
|
375
353
|
__metadata("design:type", Boolean)
|
|
376
354
|
], CommercialDocumentInputs.prototype, "disableVat", void 0);
|
|
377
355
|
__decorate([
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
IsOptional(),
|
|
381
|
-
__metadata("design:type", String)
|
|
356
|
+
ApiProperty(),
|
|
357
|
+
__metadata("design:type", Object)
|
|
382
358
|
], CommercialDocumentInputs.prototype, "title", void 0);
|
|
383
359
|
__decorate([
|
|
384
|
-
|
|
360
|
+
ApiProperty({ description: 'Commercial name of seller' }),
|
|
385
361
|
IsString(),
|
|
386
|
-
IsOptional(),
|
|
387
362
|
__metadata("design:type", String)
|
|
388
363
|
], CommercialDocumentInputs.prototype, "name", void 0);
|
|
389
364
|
__decorate([
|
|
390
|
-
|
|
365
|
+
ApiProperty({ description: 'Commercial number address of seller' }),
|
|
391
366
|
IsString(),
|
|
392
|
-
|
|
393
|
-
__metadata("design:type", String)
|
|
367
|
+
__metadata("design:type", Object)
|
|
394
368
|
], CommercialDocumentInputs.prototype, "number", void 0);
|
|
395
369
|
__decorate([
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
IsOptional(),
|
|
399
|
-
__metadata("design:type", String)
|
|
370
|
+
ApiProperty({ description: 'Commercial street address of seller' }),
|
|
371
|
+
__metadata("design:type", Object)
|
|
400
372
|
], CommercialDocumentInputs.prototype, "street", void 0);
|
|
401
373
|
__decorate([
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
IsOptional(),
|
|
405
|
-
__metadata("design:type", String)
|
|
374
|
+
ApiProperty({ description: 'Commercial zip code address of seller' }),
|
|
375
|
+
__metadata("design:type", Object)
|
|
406
376
|
], CommercialDocumentInputs.prototype, "zipCode", void 0);
|
|
407
377
|
__decorate([
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
IsOptional(),
|
|
411
|
-
__metadata("design:type", String)
|
|
378
|
+
ApiProperty({ description: 'Commercial city address of seller' }),
|
|
379
|
+
__metadata("design:type", Object)
|
|
412
380
|
], CommercialDocumentInputs.prototype, "city", void 0);
|
|
413
381
|
__decorate([
|
|
414
|
-
|
|
415
|
-
IsOptional(),
|
|
382
|
+
ApiProperty(),
|
|
416
383
|
__metadata("design:type", Object)
|
|
417
384
|
], CommercialDocumentInputs.prototype, "settings", void 0);
|
|
418
385
|
__decorate([
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
IsString(),
|
|
422
|
-
__metadata("design:type", String)
|
|
386
|
+
ApiProperty(),
|
|
387
|
+
__metadata("design:type", Object)
|
|
423
388
|
], CommercialDocumentInputs.prototype, "cgv", void 0);
|
|
424
389
|
__decorate([
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
IsString(),
|
|
428
|
-
__metadata("design:type", String)
|
|
390
|
+
ApiProperty(),
|
|
391
|
+
__metadata("design:type", Object)
|
|
429
392
|
], CommercialDocumentInputs.prototype, "logoUrl", void 0);
|
|
430
393
|
__decorate([
|
|
431
|
-
|
|
432
|
-
IsOptional(),
|
|
394
|
+
ApiProperty(),
|
|
433
395
|
IsBoolean(),
|
|
434
396
|
ToBoolean(),
|
|
435
397
|
__metadata("design:type", Boolean)
|
|
436
398
|
], CommercialDocumentInputs.prototype, "isStripeAllowed", void 0);
|
|
437
399
|
__decorate([
|
|
438
|
-
|
|
439
|
-
IsOptional(),
|
|
400
|
+
ApiProperty(),
|
|
440
401
|
IsBoolean(),
|
|
441
402
|
ToBoolean(),
|
|
442
403
|
__metadata("design:type", Boolean)
|
|
@@ -493,4 +454,27 @@ __decorate([
|
|
|
493
454
|
IsOptional(),
|
|
494
455
|
__metadata("design:type", String)
|
|
495
456
|
], CreateReminder.prototype, "message", void 0);
|
|
457
|
+
export class CreateRecurrence {
|
|
458
|
+
}
|
|
459
|
+
__decorate([
|
|
460
|
+
ApiProperty(),
|
|
461
|
+
IsEnum(RecurrenceType),
|
|
462
|
+
__metadata("design:type", Number)
|
|
463
|
+
], CreateRecurrence.prototype, "type", void 0);
|
|
464
|
+
__decorate([
|
|
465
|
+
ApiProperty(),
|
|
466
|
+
IsDateString(),
|
|
467
|
+
__metadata("design:type", String)
|
|
468
|
+
], CreateRecurrence.prototype, "startDate", void 0);
|
|
469
|
+
__decorate([
|
|
470
|
+
ApiProperty(),
|
|
471
|
+
IsDateString(),
|
|
472
|
+
__metadata("design:type", String)
|
|
473
|
+
], CreateRecurrence.prototype, "endDate", void 0);
|
|
474
|
+
__decorate([
|
|
475
|
+
ApiProperty(),
|
|
476
|
+
ToBoolean(),
|
|
477
|
+
IsBoolean(),
|
|
478
|
+
__metadata("design:type", Boolean)
|
|
479
|
+
], CreateRecurrence.prototype, "isActive", void 0);
|
|
496
480
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GACtE,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAOpE,MAAM,OAAO,uBAAuB;CAwLnC;AAjLC;IANC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,GAAG,CAAC,CAAC,EAAE;QACN,OAAO,EAAE,4BAA4B;KACtC,CAAC;;wDACsB;AAKxB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;wDACa;AAKxB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;oDACS;AAKpB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;qEAC0B;AAKrC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;qDACU;AAKrB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;qDACU;AAKrB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;oDACS;AAKpB;IAHC,mBAAmB,EAAE;IACrB,UAAU,E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E;IACX,SAAS,EAAE;;yDACM;AAGlB;IADC,WAAW,EAAE;;uEAC6B;AAG7C,MAAM,OAAO,qBAAsB,SAAQ,wBAAwB;CAKlE;AACD,MAAM,OAAO,qBAAsB,SAAQ,wBAAwB;CAKlE;AAED,MAAM,OAAO,SAAS;CAGrB;AADC;IADC,WAAW,EAAE;;sCACK;AAGrB,MAAM,OAAO,cAAc;CA8B1B;AA1BC;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;mDACS;AAKrB;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;+CACK;AAKjB;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACQ;AAKpB;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACQ;AAKpB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACI","sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n}\n\nexport class CommercialDocumentInputs {\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n legalForm?: string;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n capital?: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n siren?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n rcs?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n vatCode?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n nafCode?: string;\n\n @ApiProperty()\n @IsString()\n reference: string; //\n\n @ApiProperty()\n thirdParty: IThirdParty; //\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string; //\n\n @ApiProperty()\n @IsDateString()\n dueDate: string; //\n\n @ApiPropertyOptional({ description: 'Date d\\'expiration pour la facture d\\'acompte' })\n @IsDateString()\n @IsOptional()\n expirationDate: string;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n @IsString()\n termsOfPayment: string;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n @IsString()\n discount: string; //\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n comment?: string; //\n\n @ApiPropertyOptional({ description: 'Pénalité de retard' })\n @IsOptional()\n @IsString()\n penalties?: string; //\n\n @ApiProperty({ description: 'Remise globale' })\n @IsOptional()\n @IsNumber()\n generalDiscount2: number; //\n\n @ApiPropertyOptional({ description: 'Indemnité forfaitaire' })\n @IsOptional()\n @IsString()\n compensation?: string; //\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string; //\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n title?: string; //\n\n @ApiPropertyOptional({ description: 'Commercial name of seller' })\n @IsString()\n @IsOptional()\n name: string;\n\n @ApiPropertyOptional({ description: 'Commercial number address of seller' })\n @IsString()\n @IsOptional()\n number?: string;\n\n @ApiPropertyOptional({ description: 'Commercial street address of seller' })\n @IsString()\n @IsOptional()\n street?: string;\n\n @ApiPropertyOptional({ description: 'Commercial zip code address of seller' })\n @IsString()\n @IsOptional()\n zipCode?: string;\n\n @ApiPropertyOptional({ description: 'Commercial city address of seller' })\n @IsString()\n @IsOptional()\n city?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n settings?: ISocietyGescom;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cgv?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoUrl?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isDraft?: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n}"]}
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GAC9E,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,OAAO,EAAE,mBAA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6B;AAG7C,MAAM,OAAO,qBAAsB,SAAQ,wBAAwB;CAKlE;AACD,MAAM,OAAO,qBAAsB,SAAQ,wBAAwB;CAMlE;AAED,MAAM,OAAO,SAAS;CAGrB;AADC;IADC,WAAW,EAAE;;sCACK;AAGrB,MAAM,OAAO,cAAc;CA8B1B;AA1BC;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;mDACS;AAKrB;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;+CACK;AAKjB;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACQ;AAKpB;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACQ;AAKpB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACI;AAGnB,MAAM,OAAO,gBAAgB;CAiB5B;AAdC;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,cAAc,CAAC;;8CACV;AAIb;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;mDACG;AAIlB;IAFC,WAAW,EAAE;IACb,YAAY,EAAE;;iDACC;AAKhB;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;kDACM","sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsEnum, IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { FontIds, LogoAlignment } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ISocietyGescom } from '../../models/ISocietyGescom';\nimport { IThirdParty } from '../../models/IThirdParty';\n\nexport type IProductInvoiceToCreate = IProductInvoice & { save?: boolean };\n\nexport class CreateCommercialSetting {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @Min(0, {\n message: 'Capital should be positive',\n })\n capital?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n tvaCode?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n rcs?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n numberTradeDirectory?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bank?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n iban?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bic?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n phoneContact?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n website?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n commercialName?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n penalties?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n discount?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n recoveryCost?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n vatMention?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n generatedBy?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n acceptCheque?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n mentionAutoent?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startInvoice?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n startEstimate?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n paymentsAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n stripePaymentByDefault?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayLogo?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n invoiceCgv?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n color?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeInvoiceText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n freeEstimateText?: string | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n logoAlignment?: LogoAlignment | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idFont?: FontIds | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isEdgingDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n edgingColor?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isCoordinatesFrameDisplayed?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areLinesSeparationHidden?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n areColumnsSeparationHidden?: boolean;\n}\n\nexport class CreateCommercialMail {\n @ApiProperty()\n @IsString()\n to: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n cc?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n bcc?: string;\n\n @ApiProperty()\n @IsString()\n subject: string;\n\n @ApiProperty()\n @IsString()\n content: string;\n}\n\nexport class CommercialDocumentInputs {\n @ApiProperty()\n legalForm: string | null;\n\n @ApiProperty()\n @IsNumber()\n capital?: number;\n\n @ApiProperty()\n siren: string | null;\n\n @ApiProperty()\n rcs: string | null;\n\n @ApiProperty()\n vatCode: string | null;\n\n @ApiProperty()\n nafCode: string | null;\n\n @ApiProperty()\n @IsString()\n reference: string; //\n\n @ApiProperty()\n thirdParty: IThirdParty; //\n\n @ApiProperty()\n @IsDateString()\n emissionDate: string; //\n\n @ApiProperty()\n @IsDateString()\n dueDate: string; //\n\n @ApiProperty({ description: 'Date d\\'expiration pour la facture d\\'acompte' })\n expirationDate: string | null;\n\n @ApiProperty({ description: 'Conditions de réglement' })\n termsOfPayment: string | null;\n\n @ApiProperty()\n @IsArray()\n products: Array<IProductInvoiceToCreate>;\n\n @ApiProperty({ description: 'Escompte' })\n @IsString()\n discount: string; //\n\n @ApiProperty()\n comment: string | null; //\n\n @ApiProperty({ description: 'Pénalité de retard' })\n penalties: string | null; //\n\n @ApiProperty({ description: 'Remise globale' })\n @IsNumber()\n generalDiscount2: number; //\n\n @ApiProperty({ description: 'Indemnité forfaitaire' })\n compensation: string | null; //\n\n @ApiProperty()\n vatMention: string | null; //\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n disableVat: boolean;\n\n @ApiProperty()\n title: string | null; //\n\n @ApiProperty({ description: 'Commercial name of seller' })\n @IsString()\n name: string;\n\n @ApiProperty({ description: 'Commercial number address of seller' })\n @IsString()\n number?: string | null;\n\n @ApiProperty({ description: 'Commercial street address of seller' })\n street: string | null;\n\n @ApiProperty({ description: 'Commercial zip code address of seller' })\n zipCode: string | null;\n\n @ApiProperty({ description: 'Commercial city address of seller' })\n city: string | null;\n\n @ApiProperty()\n settings?: ISocietyGescom;\n\n @ApiProperty()\n cgv: string | null;\n\n @ApiProperty()\n logoUrl: string | null;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isStripeAllowed?: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isDraft?: boolean;\n\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n}\n\nexport class CreatePreSaleDocument extends CommercialDocumentInputs {\n paymentLink?: '#';\n deposit?: undefined;\n fromEstimateId: undefined;\n assetMarginVatIds?: [];\n}\nexport class CreateInvoiceDocument extends CommercialDocumentInputs {\n paymentLink?: string;\n deposit?: number;\n fromInvoiceId?: number | null; // Nécessaire lors de la création d'un avoir à partir d'une facture\n fromEstimateId: number | null; // Nécessaire lors du passage d'un devis à facture\n assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes\n}\n\nexport class CreateCgv {\n @ApiProperty()\n cgv: string | null;\n}\n\nexport class CreateReminder {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n beforeThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n dueDate: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterThree: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n}\n\nexport class CreateRecurrence {\n @ApiProperty()\n @IsEnum(RecurrenceType)\n type: number;\n\n @ApiProperty()\n @IsDateString()\n startDate: string;\n\n @ApiProperty()\n @IsDateString()\n endDate: string;\n\n @ApiProperty()\n @ToBoolean()\n @IsBoolean()\n isActive: boolean;\n}"]}
|
|
@@ -42,4 +42,10 @@ export declare class QueryDocumentPaginated {
|
|
|
42
42
|
search?: string;
|
|
43
43
|
isDraft?: boolean;
|
|
44
44
|
}
|
|
45
|
+
export declare class QueryCountByStatus {
|
|
46
|
+
minDate?: string;
|
|
47
|
+
maxDate?: string;
|
|
48
|
+
search?: string;
|
|
49
|
+
isDraft?: boolean;
|
|
50
|
+
}
|
|
45
51
|
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBAAa,YAAY;IAIvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,MAAM,CAAC,EAAE,aAAa,CAAC;IAKvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE;QACL,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,aAAa,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,qBAAa,kBAAkB;IAG7B,qBAAqB,EAAE,MAAM,CAAC;IAM9B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,qBAAa,oBAAoB;IAE/B,qBAAqB,EAAE,mBAAmB,CAAC;CAC5C;AAED,qBAAa,sBAAsB;IAGjC,KAAK,EAAE,mBAAmB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,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YAAY,CAAC,EAAE,OAAO,CAAC;IAKvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,kBAAkB;IAI7B,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -80,11 +80,13 @@ __decorate([
|
|
|
80
80
|
__decorate([
|
|
81
81
|
ApiPropertyOptional(),
|
|
82
82
|
IsDateString(),
|
|
83
|
+
IsOptional(),
|
|
83
84
|
__metadata("design:type", String)
|
|
84
85
|
], QueryDocumentPaginated.prototype, "minDate", void 0);
|
|
85
86
|
__decorate([
|
|
86
87
|
ApiPropertyOptional(),
|
|
87
88
|
IsDateString(),
|
|
89
|
+
IsOptional(),
|
|
88
90
|
__metadata("design:type", String)
|
|
89
91
|
], QueryDocumentPaginated.prototype, "maxDate", void 0);
|
|
90
92
|
__decorate([
|
|
@@ -118,4 +120,31 @@ __decorate([
|
|
|
118
120
|
ToBoolean(),
|
|
119
121
|
__metadata("design:type", Boolean)
|
|
120
122
|
], QueryDocumentPaginated.prototype, "isDraft", void 0);
|
|
123
|
+
export class QueryCountByStatus {
|
|
124
|
+
}
|
|
125
|
+
__decorate([
|
|
126
|
+
ApiPropertyOptional(),
|
|
127
|
+
IsDateString(),
|
|
128
|
+
IsOptional(),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], QueryCountByStatus.prototype, "minDate", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
ApiPropertyOptional(),
|
|
133
|
+
IsDateString(),
|
|
134
|
+
IsOptional(),
|
|
135
|
+
__metadata("design:type", String)
|
|
136
|
+
], QueryCountByStatus.prototype, "maxDate", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
ApiPropertyOptional(),
|
|
139
|
+
IsOptional(),
|
|
140
|
+
IsString(),
|
|
141
|
+
__metadata("design:type", String)
|
|
142
|
+
], QueryCountByStatus.prototype, "search", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
ApiPropertyOptional(),
|
|
145
|
+
IsBoolean(),
|
|
146
|
+
ToBoolean(),
|
|
147
|
+
IsOptional(),
|
|
148
|
+
__metadata("design:type", Boolean)
|
|
149
|
+
], QueryCountByStatus.prototype, "isDraft", void 0);
|
|
121
150
|
//# sourceMappingURL=Query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,GACjE,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAgB,cAAc,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGpE,MAAM,OAAO,YAAY;CA8BxB;AA1BC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;6CACE;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;6CACE;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;4CACK;AAKhB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;4CACY;AAKvB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;6CACM;AAKjB;IAHC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;;kDACW;AAezB,MAAM,OAAO,kBAAkB;CAU9B;AAPC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;iEACmB;AAM9B;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;mDACK;AAQpB,MAAM,OAAO,oBAAoB;CAGhC;AADC;IADC,WAAW,EAAE;;mEAC6B;AAG7C,MAAM,OAAO,sBAAsB;
|
|
1
|
+
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,GACjE,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAgB,cAAc,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGpE,MAAM,OAAO,YAAY;CA8BxB;AA1BC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;6CACE;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,YAAY,EAAE;;6CACE;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;4CACK;AAKhB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;4CACY;AAKvB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;6CACM;AAKjB;IAHC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;;kDACW;AAezB,MAAM,OAAO,kBAAkB;CAU9B;AAPC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;iEACmB;AAM9B;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;mDACK;AAQpB,MAAM,OAAO,oBAAoB;CAGhC;AADC;IADC,WAAW,EAAE;;mEAC6B;AAG7C,MAAM,OAAO,sBAAsB;CAwClC;AArCC;IAFC,WAAW,EAAE;IACb,OAAO,EAAE;;qDACmB;AAK7B;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;uDACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;uDACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;sDACa;AAKxB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;uDACM;AAMjB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;4DACU;AAKvB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;sDACK;AAKhB;IAHC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;;uDACM;AAGpB,MAAM,OAAO,kBAAkB;CAqB9B;AAjBC;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;mDACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;mDACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;kDACK;AAMhB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;mDACK","sourcesContent":["import {\n IsArray, IsBoolean, IsDateString, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { Order } from 'sequelize/types';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { DiscountType, EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';\nimport { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { QueryPaginate } from '../BasePaginate';\n\nexport class QueryInvoice {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDateString()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: InvoiceStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n isDescending?: boolean;\n}\n\nexport interface ParamPaginatedInvoices {\n idSociety: number;\n date?: {\n gte?: string;\n lte?: string;\n };\n status?: InvoiceStatus;\n search?: string;\n pagination: QueryPaginate;\n order?: Order;\n}\n\nexport class QueryNextReference {\n @ApiProperty()\n @IsNumber()\n idEstimateInvoiceType: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}\n\nexport interface Discount {\n type: DiscountType,\n amount: number\n}\n\nexport class QueryPreviewDocument {\n @ApiProperty()\n idEstimateInvoiceType: EstimateInvoiceType;\n}\n\nexport class QueryDocumentPaginated {\n @ApiProperty()\n @IsArray()\n types: EstimateInvoiceType[];\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n status?: EstimateStatus;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n orderBy?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDescending?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n isDraft?: boolean;\n}\n\nexport class QueryCountByStatus {\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n maxDate?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDraft?: boolean;\n}"]}
|
|
@@ -4,6 +4,7 @@ import { IProductInvoice } from '../../models/IProductInvoice';
|
|
|
4
4
|
import { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';
|
|
5
5
|
import { CommercialDocumentInputs } from './Create';
|
|
6
6
|
import { IEstimateInvoice } from '../../models/IEstimateInvoice';
|
|
7
|
+
import { EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';
|
|
7
8
|
export declare type ReadCashBasedInvoice = Partial<IAccountingFile>;
|
|
8
9
|
export declare type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;
|
|
9
10
|
export declare type ReadEstimateInvoice = IEstimateInvoice & {
|
|
@@ -60,4 +61,22 @@ export declare type ReadCommercialDocumentTemplate = {
|
|
|
60
61
|
footer: string;
|
|
61
62
|
data: ReadDocumentEditing;
|
|
62
63
|
};
|
|
64
|
+
export declare type ReadEstimateInvoiceStatus = InvoiceStatus.PAID | InvoiceStatus.UNPAID | InvoiceStatus.CANCELED | InvoiceStatus.WAITING | EstimateStatus.REFUSED | EstimateStatus.BILLED | EstimateStatus.ACCEPTED | EstimateStatus.WAITING | EstimateStatus.EXPIRED;
|
|
65
|
+
declare type CountAndNumber = {
|
|
66
|
+
count: number;
|
|
67
|
+
amount: number;
|
|
68
|
+
};
|
|
69
|
+
export declare type ReadCountDocumentByStatus = {
|
|
70
|
+
invoices: {
|
|
71
|
+
paid: CountAndNumber;
|
|
72
|
+
waiting: CountAndNumber;
|
|
73
|
+
unpaid: CountAndNumber;
|
|
74
|
+
};
|
|
75
|
+
preSales: {
|
|
76
|
+
accepted: CountAndNumber;
|
|
77
|
+
waiting: CountAndNumber;
|
|
78
|
+
refused: CountAndNumber;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export {};
|
|
63
82
|
//# sourceMappingURL=Read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"Read.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,kCAAkC,EAAE,MAAM,kDAAkD,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnF,oBAAY,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAE5D,oBAAY,kBAAkB,GA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
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n};\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n name: string;\n url: string;\n },\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};"]}
|
|
1
|
+
{"version":3,"file":"Read.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Read.ts"],"names":[],"mappings":"","sourcesContent":["import { EstimateInvoiceType } from '../../../Enum/EstimateInvoice';\nimport { IAccountingFile } from '../../models/IAccountingFile';\nimport { IProductInvoice } from '../../models/IProductInvoice';\nimport { ReadFormattedAccountingTransaction } from '../accountingEntry/AnnotateAccountingTransaction';\nimport { CommercialDocumentInputs } from './Create';\nimport { IEstimateInvoice } from '../../models/IEstimateInvoice';\nimport { EstimateStatus, InvoiceStatus } from '../../../Enum/CommercialManagement';\n\nexport type ReadCashBasedInvoice = Partial<IAccountingFile>;\n\nexport type ReadAccrualInvoice = Partial<ReadFormattedAccountingTransaction>;\n\nexport type ReadEstimateInvoice = IEstimateInvoice & { id: number };\n\nexport type ReadProductEditing = IProductInvoice & {\n totalTaxExcluded: number;\n unitFormatted: string;\n vatFormatted: string;\n discountFormatted: string | null;\n discountTypeFormatted: string | null;\n priceTaxExcludedFormatted: string | null;\n totalTaxExcludedFormatted: string | null;\n marginVatFormatted: string | null;\n};\n\nexport type ReadVatEditing = {\n id: number;\n name: string;\n amount: number;\n value: number;\n baseFormatted: string;\n amountFormatted: string;\n};\n\nexport type ReadDocumentEditing = CommercialDocumentInputs & {\n title?: string;\n idEstimateInvoiceType: EstimateInvoiceType;\n phoneContact: string | null;\n dueDateFormatted: string | null;\n expirationDateFormatted: string | null;\n capitalFormatted: string | null;\n depositFormatted: string | null;\n emissionDateFormatted: string | null;\n products: ReadProductEditing[];\n vats: ReadVatEditing[];\n totalTaxExcluded: number;\n totalTaxIncluded: number;\n totalTaxAndDiscountIncluded: number;\n generalDiscountFormatted: string | null;\n totalTaxExcludedFormatted: string;\n totalTaxIncludedFormatted: string;\n totalTaxAndDiscountIncludedFormatted: string;\n totalVatAmountFormatted: string;\n font: {\n name: string;\n url: string;\n },\n shouldDisplayDiscountColumn: boolean;\n paymentLink?: string;\n marginVats: string[];\n};\n\nexport type ReadCommercialDocumentTemplate = {\n header: string;\n body: string;\n footer: string;\n data: ReadDocumentEditing;\n};\n\nexport type ReadEstimateInvoiceStatus =\nInvoiceStatus.PAID |\nInvoiceStatus.UNPAID |\nInvoiceStatus.CANCELED |\nInvoiceStatus.WAITING |\nEstimateStatus.REFUSED |\nEstimateStatus.BILLED |\nEstimateStatus.ACCEPTED |\nEstimateStatus.WAITING |\nEstimateStatus.EXPIRED;\n\ntype CountAndNumber = { count: number; amount: number; };\n\nexport type ReadCountDocumentByStatus = {\n invoices: { paid: CountAndNumber; waiting: CountAndNumber; unpaid: CountAndNumber; }\n preSales: { accepted: CountAndNumber; waiting: CountAndNumber; refused: CountAndNumber; }\n};"]}
|
|
@@ -13,4 +13,10 @@ export declare class UpdateReminder {
|
|
|
13
13
|
subject?: string;
|
|
14
14
|
message?: string;
|
|
15
15
|
}
|
|
16
|
+
export declare class UpdateRecurrence {
|
|
17
|
+
type?: number;
|
|
18
|
+
startDate?: string;
|
|
19
|
+
endDate?: string;
|
|
20
|
+
isActive?: boolean;
|
|
21
|
+
}
|
|
16
22
|
//# sourceMappingURL=Update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Update.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Update.ts"],"names":[],"mappings":"AAOA,qBAAa,wBAAwB;IAKnC,UAAU,CAAC,EAAE,OAAO,CAAC;IAMrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB;AAED,qBAAa,cAAc;IAKzB,WAAW,EAAE,OAAO,CAAC;IAMrB,OAAO,EAAE,OAAO,CAAC;IAMjB,UAAU,EAAE,OAAO,CAAC;IAMpB,UAAU,EAAE,OAAO,CAAC;IAKpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,gBAAgB;IAI3B,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -7,9 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { IsBoolean, IsDate, IsOptional, IsString, } from 'class-validator';
|
|
10
|
+
import { IsBoolean, IsDate, IsDateString, IsEnum, IsOptional, IsString, } from 'class-validator';
|
|
11
11
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
13
|
+
import { RecurrenceType } from '../../../Enum/RecurrenceType';
|
|
13
14
|
export class UpdateCommercialDocument {
|
|
14
15
|
}
|
|
15
16
|
__decorate([
|
|
@@ -88,4 +89,31 @@ __decorate([
|
|
|
88
89
|
IsOptional(),
|
|
89
90
|
__metadata("design:type", String)
|
|
90
91
|
], UpdateReminder.prototype, "message", void 0);
|
|
92
|
+
export class UpdateRecurrence {
|
|
93
|
+
}
|
|
94
|
+
__decorate([
|
|
95
|
+
ApiPropertyOptional(),
|
|
96
|
+
IsEnum(RecurrenceType),
|
|
97
|
+
IsOptional(),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], UpdateRecurrence.prototype, "type", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
ApiPropertyOptional(),
|
|
102
|
+
IsDateString(),
|
|
103
|
+
IsOptional(),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], UpdateRecurrence.prototype, "startDate", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
ApiPropertyOptional(),
|
|
108
|
+
IsDateString(),
|
|
109
|
+
IsOptional(),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], UpdateRecurrence.prototype, "endDate", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
ApiPropertyOptional(),
|
|
114
|
+
ToBoolean(),
|
|
115
|
+
IsBoolean(),
|
|
116
|
+
IsOptional(),
|
|
117
|
+
__metadata("design:type", Boolean)
|
|
118
|
+
], UpdateRecurrence.prototype, "isActive", void 0);
|
|
91
119
|
//# sourceMappingURL=Update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Update.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/commercialManagement/Update.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,GAC9D,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,OAAO,wBAAwB;CA6BpC;AAxBC;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;4DACQ;AAMrB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;2DACO;AAMpB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;wDACI;AAMjB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;wDACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;;0DACU;AAGzB,MAAM,OAAO,cAAc;CAkC1B;AA7BC;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;mDACQ;AAMrB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;+CACI;AAMjB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;kDACO;AAMpB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;kDACO;AAKpB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACI;AAGnB,MAAM,OAAO,gBAAgB;CAqB5B;AAjBC;IAHC,mBAAmB,EAAE;IACrB,MAAM,CAAC,cAAc,CAAC;IACtB,UAAU,EAAE;;8CACC;AAKd;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;mDACM;AAKnB;IAHC,mBAAmB,EAAE;IACrB,YAAY,EAAE;IACd,UAAU,EAAE;;iDACI;AAMjB;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;kDACM","sourcesContent":["import {\n IsBoolean, IsDate, IsDateString, IsEnum, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { RecurrenceType } from '../../../Enum/RecurrenceType';\n\nexport class UpdateCommercialDocument {\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isCanceled?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isRefused?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isPaid?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isUsed?: boolean;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n mailSent?: Date | null;\n}\n\nexport class UpdateReminder {\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n beforeThree: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n dueDate: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n afterThree: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n afterSeven: boolean;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n subject?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n message?: string;\n}\n\nexport class UpdateRecurrence {\n @ApiPropertyOptional()\n @IsEnum(RecurrenceType)\n @IsOptional()\n type?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n @ToBoolean()\n @IsBoolean()\n @IsOptional()\n isActive?: boolean;\n}"]}
|