@silexpert/core 0.4.200 → 0.4.203
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/Checklist.d.ts +20 -0
- package/es/api/resources/Checklist.d.ts.map +1 -0
- package/es/api/resources/Checklist.js +38 -0
- package/es/api/resources/Checklist.js.map +1 -0
- package/es/api/resources/GeneralLedger.d.ts +2 -1
- package/es/api/resources/GeneralLedger.d.ts.map +1 -1
- package/es/api/resources/GeneralLedger.js +3 -0
- package/es/api/resources/GeneralLedger.js.map +1 -1
- package/es/api/resources/Lettering.d.ts +7 -0
- package/es/api/resources/Lettering.d.ts.map +1 -0
- package/es/api/resources/Lettering.js +13 -0
- package/es/api/resources/Lettering.js.map +1 -0
- package/es/api/resources/Mobile.d.ts +6 -0
- package/es/api/resources/Mobile.d.ts.map +1 -0
- package/es/api/resources/Mobile.js +7 -0
- package/es/api/resources/Mobile.js.map +1 -0
- package/es/api/resources/Notification.d.ts +5 -0
- package/es/api/resources/Notification.d.ts.map +1 -0
- package/es/api/resources/Notification.js +7 -0
- package/es/api/resources/Notification.js.map +1 -0
- package/es/api/resources/Revision.d.ts +2 -1
- package/es/api/resources/Revision.d.ts.map +1 -1
- package/es/api/resources/Revision.js +3 -0
- package/es/api/resources/Revision.js.map +1 -1
- package/es/api/resources/Transaction.d.ts +5 -13
- package/es/api/resources/Transaction.d.ts.map +1 -1
- package/es/api/resources/Transaction.js +5 -0
- package/es/api/resources/Transaction.js.map +1 -1
- package/es/api/resources.d.ts +8 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +8 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/Account.d.ts +4 -0
- package/es/types/Enum/Account.d.ts.map +1 -1
- package/es/types/Enum/Account.js +4 -0
- package/es/types/Enum/Account.js.map +1 -1
- package/es/types/Enum/BrandClementine.d.ts +10 -0
- package/es/types/Enum/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +5 -0
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/BrandComptalib.d.ts +6 -0
- package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
- package/es/types/Enum/BrandComptalib.js +8 -0
- package/es/types/Enum/BrandComptalib.js.map +1 -1
- package/es/types/Enum/BrandLegalstart.d.ts +2 -0
- package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
- package/es/types/Enum/BrandLegalstart.js +2 -0
- package/es/types/Enum/BrandLegalstart.js.map +1 -1
- package/es/types/Enum/ChecklistType.d.ts +60 -0
- package/es/types/Enum/ChecklistType.d.ts.map +1 -0
- package/es/types/Enum/ChecklistType.js +64 -0
- package/es/types/Enum/ChecklistType.js.map +1 -0
- package/es/types/Enum/EstimateInvoice.d.ts +1 -1
- package/es/types/Enum/EstimateInvoice.d.ts.map +1 -1
- package/es/types/Enum/EstimateInvoice.js +9 -9
- package/es/types/Enum/EstimateInvoice.js.map +1 -1
- package/es/types/Enum/MailAuto.d.ts +3 -1
- package/es/types/Enum/MailAuto.d.ts.map +1 -1
- package/es/types/Enum/MailAuto.js +2 -0
- package/es/types/Enum/MailAuto.js.map +1 -1
- package/es/types/Enum/NotificationType.d.ts +5 -0
- package/es/types/Enum/NotificationType.d.ts.map +1 -0
- package/es/types/Enum/NotificationType.js +6 -0
- package/es/types/Enum/NotificationType.js.map +1 -0
- package/es/types/Interface/api/checklist/Query.d.ts +20 -0
- package/es/types/Interface/api/checklist/Query.d.ts.map +1 -0
- package/es/types/Interface/api/checklist/Query.js +59 -0
- package/es/types/Interface/api/checklist/Query.js.map +1 -0
- package/es/types/Interface/api/checklist/Read.d.ts +12 -0
- package/es/types/Interface/api/checklist/Read.d.ts.map +1 -0
- package/es/types/Interface/api/checklist/Read.js +2 -0
- package/es/types/Interface/api/checklist/Read.js.map +1 -0
- package/es/types/Interface/api/checklist/Update.d.ts +6 -0
- package/es/types/Interface/api/checklist/Update.d.ts.map +1 -0
- package/es/types/Interface/api/checklist/Update.js +25 -0
- package/es/types/Interface/api/checklist/Update.js.map +1 -0
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +3 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +10 -0
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -0
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +2 -0
- package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -0
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +12 -0
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -0
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +63 -0
- package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -0
- package/es/types/Interface/api/lettering/QueryRegroupLettering.d.ts +4 -0
- package/es/types/Interface/api/lettering/QueryRegroupLettering.d.ts.map +1 -0
- package/es/types/Interface/api/lettering/QueryRegroupLettering.js +19 -0
- package/es/types/Interface/api/lettering/QueryRegroupLettering.js.map +1 -0
- package/es/types/Interface/api/mobile/UpdateMobile.d.ts +4 -0
- package/es/types/Interface/api/mobile/UpdateMobile.d.ts.map +1 -0
- package/es/types/Interface/api/mobile/UpdateMobile.js +17 -0
- package/es/types/Interface/api/mobile/UpdateMobile.js.map +1 -0
- package/es/types/Interface/api/notification/CreateNotification.d.ts +6 -0
- package/es/types/Interface/api/notification/CreateNotification.d.ts.map +1 -0
- package/es/types/Interface/api/notification/CreateNotification.js +22 -0
- package/es/types/Interface/api/notification/CreateNotification.js.map +1 -0
- package/es/types/Interface/api/revision/QueryRevisionApprobation.d.ts +7 -0
- package/es/types/Interface/api/revision/QueryRevisionApprobation.d.ts.map +1 -0
- package/es/types/Interface/api/revision/QueryRevisionApprobation.js +34 -0
- package/es/types/Interface/api/revision/QueryRevisionApprobation.js.map +1 -0
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +8 -0
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js +46 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
- package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts +2 -2
- package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts.map +1 -1
- package/es/types/Interface/api/revision/ReadRevisionAccount.js.map +1 -1
- package/es/types/Interface/api/society/ReadSociety.d.ts +4 -0
- package/es/types/Interface/api/society/ReadSociety.d.ts.map +1 -1
- package/es/types/Interface/api/society/ReadSociety.js.map +1 -1
- package/es/types/Interface/api/tax/ReadTax.d.ts +9 -0
- package/es/types/Interface/api/tax/ReadTax.d.ts.map +1 -1
- package/es/types/Interface/api/tax/ReadTax.js.map +1 -1
- package/es/types/Interface/models/IAccountDetail.d.ts +6 -6
- package/es/types/Interface/models/IAccountDetail.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountDetail.js.map +1 -1
- package/es/types/Interface/models/IAccountingEntry.d.ts +1 -0
- package/es/types/Interface/models/IAccountingEntry.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingEntry.js.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.d.ts +0 -3
- package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/es/types/Interface/models/IApiError.d.ts +5 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +4 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IChecklist.d.ts +13 -9
- package/es/types/Interface/models/IChecklist.d.ts.map +1 -1
- package/es/types/Interface/models/IChecklist.js.map +1 -1
- package/es/types/Interface/models/IChecklistDetail.d.ts +1 -0
- package/es/types/Interface/models/IChecklistDetail.d.ts.map +1 -1
- package/es/types/Interface/models/IChecklistDetail.js.map +1 -1
- package/es/types/Interface/models/IChecklistType.d.ts +7 -0
- package/es/types/Interface/models/IChecklistType.d.ts.map +1 -1
- package/es/types/Interface/models/IChecklistType.js.map +1 -1
- package/es/types/Interface/models/ILettering.d.ts +0 -2
- package/es/types/Interface/models/ILettering.d.ts.map +1 -1
- package/es/types/Interface/models/ILettering.js.map +1 -1
- package/es/types/Interface/models/IMobile.d.ts +11 -0
- package/es/types/Interface/models/IMobile.d.ts.map +1 -0
- package/es/types/Interface/models/IMobile.js +2 -0
- package/es/types/Interface/models/IMobile.js.map +1 -0
- package/es/types/Interface/models/ISociety.d.ts +4 -2
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/Interface/models/IUser.d.ts +2 -0
- package/es/types/Interface/models/IUser.d.ts.map +1 -1
- package/es/types/Interface/models/IUser.js.map +1 -1
- package/es/types/index.d.ts +13 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +13 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/checklist.d.ts +3 -0
- package/es/utils/checklist.d.ts.map +1 -0
- package/es/utils/checklist.js +37 -0
- package/es/utils/checklist.js.map +1 -0
- package/js/api/resources/Checklist.js +68 -0
- package/js/api/resources/Checklist.js.map +1 -0
- package/js/api/resources/GeneralLedger.js +6 -0
- package/js/api/resources/GeneralLedger.js.map +1 -1
- package/js/api/resources/Lettering.js +25 -0
- package/js/api/resources/Lettering.js.map +1 -0
- package/js/api/resources/Mobile.js +18 -0
- package/js/api/resources/Mobile.js.map +1 -0
- package/js/api/resources/Notification.js +18 -0
- package/js/api/resources/Notification.js.map +1 -0
- package/js/api/resources/Revision.js +4 -0
- package/js/api/resources/Revision.js.map +1 -1
- package/js/api/resources/Transaction.js +6 -0
- package/js/api/resources/Transaction.js.map +1 -1
- package/js/api/resources.js +13 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/Account.js +4 -0
- package/js/types/Enum/Account.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +5 -0
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/BrandComptalib.js +8 -0
- package/js/types/Enum/BrandComptalib.js.map +1 -1
- package/js/types/Enum/BrandLegalstart.js +2 -0
- package/js/types/Enum/BrandLegalstart.js.map +1 -1
- package/js/types/Enum/ChecklistType.js +76 -0
- package/js/types/Enum/ChecklistType.js.map +1 -0
- package/js/types/Enum/EstimateInvoice.js +9 -9
- package/js/types/Enum/EstimateInvoice.js.map +1 -1
- package/js/types/Enum/MailAuto.js +2 -0
- package/js/types/Enum/MailAuto.js.map +1 -1
- package/js/types/Enum/NotificationType.js +12 -0
- package/js/types/Enum/NotificationType.js.map +1 -0
- package/js/types/Interface/api/checklist/Query.js +57 -0
- package/js/types/Interface/api/checklist/Query.js.map +1 -0
- package/js/types/Interface/api/checklist/Read.js +6 -0
- package/js/types/Interface/api/checklist/Read.js.map +1 -0
- package/js/types/Interface/api/checklist/Update.js +33 -0
- package/js/types/Interface/api/checklist/Update.js.map +1 -0
- package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +6 -0
- package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -0
- package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +54 -0
- package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -0
- package/js/types/Interface/api/lettering/QueryRegroupLettering.js +29 -0
- package/js/types/Interface/api/lettering/QueryRegroupLettering.js.map +1 -0
- package/js/types/Interface/api/mobile/UpdateMobile.js +27 -0
- package/js/types/Interface/api/mobile/UpdateMobile.js.map +1 -0
- package/js/types/Interface/api/notification/CreateNotification.js +31 -0
- package/js/types/Interface/api/notification/CreateNotification.js.map +1 -0
- package/js/types/Interface/api/revision/QueryRevisionApprobation.js +35 -0
- package/js/types/Interface/api/revision/QueryRevisionApprobation.js.map +1 -0
- package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js +20 -0
- package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
- package/js/types/Interface/models/IApiError.js +4 -0
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/IMobile.js +6 -0
- package/js/types/Interface/models/IMobile.js.map +1 -0
- package/js/types/index.js +156 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/checklist.js +48 -0
- package/js/utils/checklist.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/Checklist.ts +51 -0
- package/ts/api/resources/GeneralLedger.ts +5 -1
- package/ts/api/resources/Lettering.ts +15 -0
- package/ts/api/resources/Mobile.ts +8 -0
- package/ts/api/resources/Notification.ts +7 -0
- package/ts/api/resources/Revision.ts +6 -0
- package/ts/api/resources/Transaction.ts +10 -14
- package/ts/api/resources.ts +8 -0
- package/ts/types/Enum/Account.ts +4 -0
- package/ts/types/Enum/BrandClementine.ts +5 -0
- package/ts/types/Enum/BrandComptalib.ts +8 -0
- package/ts/types/Enum/BrandLegalstart.ts +2 -0
- package/ts/types/Enum/ChecklistType.ts +62 -0
- package/ts/types/Enum/EstimateInvoice.ts +1 -1
- package/ts/types/Enum/MailAuto.ts +2 -0
- package/ts/types/Enum/NotificationType.ts +4 -0
- package/ts/types/Interface/api/checklist/Query.ts +51 -0
- package/ts/types/Interface/api/checklist/Read.ts +10 -0
- package/ts/types/Interface/api/checklist/Update.ts +13 -0
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +3 -1
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +10 -0
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +47 -0
- package/ts/types/Interface/api/lettering/QueryRegroupLettering.ts +8 -0
- package/ts/types/Interface/api/mobile/UpdateMobile.ts +6 -0
- package/ts/types/Interface/api/notification/CreateNotification.ts +10 -0
- package/ts/types/Interface/api/revision/QueryRevisionApprobation.ts +22 -0
- package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +41 -0
- package/ts/types/Interface/api/revision/ReadRevisionAccount.ts +2 -2
- package/ts/types/Interface/api/society/ReadSociety.ts +5 -0
- package/ts/types/Interface/api/tax/ReadTax.ts +8 -1
- package/ts/types/Interface/models/IAccountDetail.ts +6 -6
- package/ts/types/Interface/models/IAccountingEntry.ts +1 -0
- package/ts/types/Interface/models/IAccountingTransaction.ts +0 -3
- package/ts/types/Interface/models/IApiError.ts +5 -0
- package/ts/types/Interface/models/IChecklist.ts +13 -9
- package/ts/types/Interface/models/IChecklistDetail.ts +1 -0
- package/ts/types/Interface/models/IChecklistType.ts +7 -0
- package/ts/types/Interface/models/ILettering.ts +0 -2
- package/ts/types/Interface/models/IMobile.ts +13 -0
- package/ts/types/Interface/models/ISociety.ts +4 -2
- package/ts/types/Interface/models/IUser.ts +2 -0
- package/ts/types/index.ts +13 -0
- package/ts/utils/checklist.ts +43 -0
|
@@ -5,6 +5,8 @@ import {
|
|
|
5
5
|
ReadRevisionMergeIntoAccount,
|
|
6
6
|
QueryRevisionSearchEntries,
|
|
7
7
|
QueryRevisionPaginate,
|
|
8
|
+
IAccountingTransaction,
|
|
9
|
+
QueryRevisionApprobation,
|
|
8
10
|
} from '../..';
|
|
9
11
|
|
|
10
12
|
export class Revision extends Resource {
|
|
@@ -31,4 +33,8 @@ export class Revision extends Resource {
|
|
|
31
33
|
mergeIntoAccount(idAccount: number, bodyParams: QueryRevisionMergeIntoAccount): Promise<ReadRevisionMergeIntoAccount> {
|
|
32
34
|
return this.axios.$post(`/revisions/merge-into-account/${idAccount}`, bodyParams);
|
|
33
35
|
}
|
|
36
|
+
|
|
37
|
+
approve(id: number, params: QueryRevisionApprobation): Promise<IAccountingTransaction[]> {
|
|
38
|
+
return this.axios.$post(`/revisions/accounts/${id}/approve`, params);
|
|
39
|
+
}
|
|
34
40
|
}
|
|
@@ -1,38 +1,34 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
AccountingJournal,
|
|
4
3
|
BasePaginate,
|
|
5
|
-
|
|
4
|
+
ReadFormattedAccountingTransaction, UpdateAccountingTransaction, DeleteTransactions, QueryUnexport, QueryGetAllTransactions, IAccountingTransaction, ReadAccountantBalance, CreateManualEntry, IAccountingEntry, QueryDeleteInvoices, ReadDeletedInvoices, QuerySocietyTransactionCount, ReadSocietyTransactionCount, ReadBankAccountSum, QueryBankAccountSum, QueryTransaction,
|
|
6
5
|
} from '../../types';
|
|
7
6
|
|
|
8
7
|
export class Transaction extends Resource {
|
|
9
|
-
getFormattedPaginate(idSociety: number, params: {
|
|
10
|
-
idAccountingJournal: AccountingJournal,
|
|
11
|
-
idBankAccount?: Array<number>,
|
|
12
|
-
orderBy?: string,
|
|
13
|
-
descending?: boolean,
|
|
14
|
-
startDate?: string,
|
|
15
|
-
endDate?: string,
|
|
16
|
-
onlyDebit?: boolean
|
|
17
|
-
onlyCredit?: boolean
|
|
18
|
-
} & QueryPaginate): Promise<BasePaginate<ReadFormattedAccountingTransaction> | Error> {
|
|
8
|
+
getFormattedPaginate(idSociety: number, params: QueryTransaction): Promise<BasePaginate<ReadFormattedAccountingTransaction>> {
|
|
19
9
|
return this.axios.$get(`/society/${idSociety}/transactions`, {
|
|
20
10
|
params,
|
|
21
11
|
});
|
|
22
12
|
}
|
|
13
|
+
|
|
14
|
+
export(idSociety: number, params: QueryTransaction): Promise<BasePaginate<ReadFormattedAccountingTransaction>> {
|
|
15
|
+
return this.axios.$get(`/society/${idSociety}/transactions/export`, {
|
|
16
|
+
params,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
23
19
|
getAll(idSociety: number, query: QueryGetAllTransactions): Promise<IAccountingTransaction[]> {
|
|
24
20
|
return this.axios.$get(`/society/${idSociety}/transactions/list`, { params: query });
|
|
25
21
|
}
|
|
26
22
|
unexport(idSociety: number, params: QueryUnexport): Promise<void> {
|
|
27
23
|
return this.axios.$put(`/society/${idSociety}/transactions/unexport`, params);
|
|
28
24
|
}
|
|
29
|
-
annotate(id: number, data: UpdateAccountingTransaction): Promise<ReadFormattedAccountingTransaction
|
|
25
|
+
annotate(id: number, data: UpdateAccountingTransaction): Promise<ReadFormattedAccountingTransaction> {
|
|
30
26
|
return this.axios.$put(`/transactions/${id}`, data);
|
|
31
27
|
}
|
|
32
28
|
delete(idSociety: number, id: number): Promise<number> {
|
|
33
29
|
return this.axios.$delete(`/society/${idSociety}/transaction/${id}`);
|
|
34
30
|
}
|
|
35
|
-
deleteTransactions(id: number, data: DeleteTransactions): Promise<number
|
|
31
|
+
deleteTransactions(id: number, data: DeleteTransactions): Promise<number> {
|
|
36
32
|
return this.axios.$delete(`/bankAccount/${id}/transactions`, { params: data });
|
|
37
33
|
}
|
|
38
34
|
|
package/ts/api/resources.ts
CHANGED
|
@@ -72,6 +72,10 @@ import { Mail } from './resources/Mail';
|
|
|
72
72
|
import { Employee } from './resources/Employee';
|
|
73
73
|
import { SheetMonthSchedule } from './resources/SheetMonthSchedule';
|
|
74
74
|
import { NafCode } from './resources/NafCode';
|
|
75
|
+
import { Checklist } from './resources/Checklist';
|
|
76
|
+
import { Lettering } from './resources/Lettering';
|
|
77
|
+
import { Notification } from './resources/Notification';
|
|
78
|
+
import { Mobile } from './resources/Mobile';
|
|
75
79
|
|
|
76
80
|
export const resources = {
|
|
77
81
|
simulation: Simulation,
|
|
@@ -148,4 +152,8 @@ export const resources = {
|
|
|
148
152
|
employee: Employee,
|
|
149
153
|
sheetMonthSchedule: SheetMonthSchedule,
|
|
150
154
|
nafCode: NafCode,
|
|
155
|
+
checklist: Checklist,
|
|
156
|
+
lettering: Lettering,
|
|
157
|
+
mobile: Mobile,
|
|
158
|
+
notification: Notification,
|
|
151
159
|
};
|
package/ts/types/Enum/Account.ts
CHANGED
|
@@ -2,6 +2,8 @@ export const BrandClementine = [
|
|
|
2
2
|
{
|
|
3
3
|
idTypeBrand: 1,
|
|
4
4
|
name: 'Clementine',
|
|
5
|
+
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-clementine/',
|
|
6
|
+
logoS3: 'config/72030539-45a0-57fb-a7bb-e151e7d2721b.svg',
|
|
5
7
|
colors: {
|
|
6
8
|
primary: '#ff7e3c',
|
|
7
9
|
},
|
|
@@ -76,6 +78,7 @@ export const BrandClementine = [
|
|
|
76
78
|
{
|
|
77
79
|
idTypeBrand: 2,
|
|
78
80
|
name: 'Legalstart',
|
|
81
|
+
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-clementine/',
|
|
79
82
|
colors: {
|
|
80
83
|
primary: '#16a974',
|
|
81
84
|
},
|
|
@@ -165,6 +168,8 @@ export const BrandClementine = [
|
|
|
165
168
|
{
|
|
166
169
|
idTypeBrand: 4,
|
|
167
170
|
name: 'Pourcentage',
|
|
171
|
+
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-clementine/',
|
|
172
|
+
logoS3: 'config/pourcentage-logo.png',
|
|
168
173
|
colors: {
|
|
169
174
|
primary: '#1e6f5c',
|
|
170
175
|
},
|
|
@@ -2,6 +2,8 @@ export const BrandComptalib = [
|
|
|
2
2
|
{
|
|
3
3
|
idTypeBrand: 1,
|
|
4
4
|
name: 'Comptalib',
|
|
5
|
+
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-comptalib/',
|
|
6
|
+
logoS3: 'config/72030539-45a0-57fb-a7bb-e151e7d2721b.svg',
|
|
5
7
|
colors: {
|
|
6
8
|
primary: '#1656ff',
|
|
7
9
|
},
|
|
@@ -52,6 +54,8 @@ export const BrandComptalib = [
|
|
|
52
54
|
},
|
|
53
55
|
{
|
|
54
56
|
idTypeBrand: 2,
|
|
57
|
+
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-comptalib/',
|
|
58
|
+
logoS3: 'config/pourcentage-logo.png',
|
|
55
59
|
name: 'Pourcentage',
|
|
56
60
|
colors: {
|
|
57
61
|
primary: '#1e6f5c',
|
|
@@ -128,6 +132,8 @@ export const BrandComptalib = [
|
|
|
128
132
|
{
|
|
129
133
|
idTypeBrand: 3,
|
|
130
134
|
name: 'Le Comptable Français',
|
|
135
|
+
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-comptalib/',
|
|
136
|
+
logoS3: 'config/le-comptable-francais-logo.png',
|
|
131
137
|
colors: {
|
|
132
138
|
primary: '#191237',
|
|
133
139
|
},
|
|
@@ -200,6 +206,8 @@ export const BrandComptalib = [
|
|
|
200
206
|
{
|
|
201
207
|
idTypeBrand: 4,
|
|
202
208
|
name: 'AEC54',
|
|
209
|
+
urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-comptalib/',
|
|
210
|
+
logoS3: 'config/logo-aec.png',
|
|
203
211
|
colors: {
|
|
204
212
|
primary: '#6900AE',
|
|
205
213
|
},
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export enum ChecklistTypeEnum {
|
|
2
|
+
OBSOLETE = 0,
|
|
3
|
+
DEFAULT = 1,
|
|
4
|
+
REINFORCED = 2,
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export enum ChecklistDetailName {
|
|
8
|
+
IS_INVOICING_UP_TO_DATE = 'isInvoicingUpToDate',
|
|
9
|
+
ARE_ALL_BANK_ACCOUNTS_SYNCHRONIZED = 'areAllBankAccountsSynchronized',
|
|
10
|
+
ALMOST_ANNOTED = 'almostAnnoted',
|
|
11
|
+
FULLY_ANNOTED = 'fullyAnnoted',
|
|
12
|
+
ACTION_TAKEN = 'actionTaken',
|
|
13
|
+
HAS_RENT_DOCUMENT = 'hasRentDocument',
|
|
14
|
+
HAS_DEBTS_DOCUMENT = 'hasDebtsDocument',
|
|
15
|
+
HAS_LOAN_DOCUMENT = 'hasLoanDocument',
|
|
16
|
+
HAS_INSURANCE_DOCUMENT = 'hasInsuranceDocument',
|
|
17
|
+
HAS_SUBSIDIES_DOCUMENT = 'hasSubsidiesDocument',
|
|
18
|
+
HAS_CASH_APPROVED = 'hasCashApproved',
|
|
19
|
+
HAS_CA3 = 'hasCA3',
|
|
20
|
+
HAS_GESCOM = 'hasGESCOM',
|
|
21
|
+
HAS_POLICE = 'hasPolice',
|
|
22
|
+
HAS_TNS = 'hasTNS',
|
|
23
|
+
HAS_ACCOUNT_STATEMENT = 'hasAccountStatement',
|
|
24
|
+
HAS_CURRENT_ACCOUNT_TO_VALID = 'hasCurrentAccountToValid',
|
|
25
|
+
HAS_JUSTIFIED_CONTRIBUTIONS = 'hasJustifiedContributions',
|
|
26
|
+
HAS_CUSTOMER_CARD_UP_TO_DATE = 'hasCustomerCardUpToDate',
|
|
27
|
+
HAS_LAST_YEAR_INTEGRATED = 'hasLastYearIntegrated',
|
|
28
|
+
HAS_VAT_BALANCE_JUSTIFIED = 'hasVatBalanceJustified',
|
|
29
|
+
HAS_TREATED_AMOUNT = 'hasTreatedAmount',
|
|
30
|
+
HAS_CLEARED_INTERNAL_TRANSFER = 'hasClearedInternalTransfer',
|
|
31
|
+
HAS_INSERT_ORI = 'hasInsertORI',
|
|
32
|
+
HAS_VAT_CHECKED = 'hasVatChecked',
|
|
33
|
+
HAS_CONSISTENCY_CHECK = 'hasConsistencyCheck',
|
|
34
|
+
IS_VAT_REGULATION_DONE = 'isVatRegulationDone',
|
|
35
|
+
IS_WAITING_ACCOUNT_RESET = 'isWaitingAccountReset',
|
|
36
|
+
HAS_BALANCE_TREATED = 'hasBalanceTreated',
|
|
37
|
+
DATA_ARE_REVISED = 'dataAreRevised',
|
|
38
|
+
HAS_BANK_ACCOUNT_CLOSED = 'hasBankAccountClosed',
|
|
39
|
+
HAS_SHEET_MONTH_SCHEDULE_ON_CADOR = 'hasSheetMonthScheduleOnCador',
|
|
40
|
+
HAS_REVIEWED_IMMOBILISATIONS = 'hasReviewedImmobilisations',
|
|
41
|
+
HAS_SEND_TECHNICAL_DOCUMENT = 'hasSendTechnicalDocument',
|
|
42
|
+
COMMENTS = 'comments',
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export enum ChecklistDetailValue {
|
|
46
|
+
YES = 1,
|
|
47
|
+
NO = 0,
|
|
48
|
+
NA = 2,
|
|
49
|
+
MAIL = 3,
|
|
50
|
+
WAITING_SUPPORT_TICKET = 4,
|
|
51
|
+
LRAR = 5,
|
|
52
|
+
CALL = 6,
|
|
53
|
+
PERSONAL_TAX_NOTICE = 7,
|
|
54
|
+
SAVINGS_STATEMENT = 8,
|
|
55
|
+
SHEET_MONTH_SCHEDULE = 9,
|
|
56
|
+
OTHER = 10,
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export enum ChecklistDetailType {
|
|
60
|
+
SELECT = 'select',
|
|
61
|
+
SWITCH = 'switch',
|
|
62
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean,
|
|
3
|
+
IsDateString, IsEnum, IsNumber, IsOptional, IsPositive,
|
|
4
|
+
} from 'class-validator';
|
|
5
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
6
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
7
|
+
import { ChecklistTypeEnum } from '../../../Enum/ChecklistType';
|
|
8
|
+
import { IChecklistDetail } from '../../models/IChecklistDetail';
|
|
9
|
+
import { IChecklistType } from '../../models/IChecklistType';
|
|
10
|
+
|
|
11
|
+
export class QueryGetAllDeadlines {
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsNumber()
|
|
14
|
+
@IsPositive()
|
|
15
|
+
idSociety: number;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsDateString()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
minDate?: string;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsDateString()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
maxDate?: string;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional({ description: 'Retrieve deadlines by exercices date' })
|
|
28
|
+
@IsBoolean()
|
|
29
|
+
@ToBoolean()
|
|
30
|
+
@IsOptional()
|
|
31
|
+
byExercices?: boolean;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class QueryGetAllQuestions {
|
|
35
|
+
@ApiPropertyOptional()
|
|
36
|
+
@IsOptional()
|
|
37
|
+
@IsEnum(ChecklistTypeEnum)
|
|
38
|
+
type?: ChecklistTypeEnum;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export class QueryGetAllBlockingIssues {
|
|
42
|
+
questionsList: IChecklistType[];
|
|
43
|
+
answers: IChecklistDetail[];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class QueryGetToComplete {
|
|
47
|
+
@ApiProperty()
|
|
48
|
+
@IsNumber()
|
|
49
|
+
@IsPositive()
|
|
50
|
+
idSociety: number;
|
|
51
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChecklistDetailValue } from '../../../Enum/ChecklistType';
|
|
2
|
+
import { IChecklist } from '../../models/IChecklist';
|
|
3
|
+
|
|
4
|
+
export type ReadChecklistDeadline = {
|
|
5
|
+
date: string;
|
|
6
|
+
isReinforced: boolean;
|
|
7
|
+
checklist: IChecklist | null;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type ReadValue = { name: string; value: ChecklistDetailValue | null };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsEnum, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
import { ChecklistDetailValue } from '../../../Enum/ChecklistType';
|
|
4
|
+
|
|
5
|
+
export class UpdateAnswer {
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
@IsString()
|
|
8
|
+
name: string;
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsEnum(ChecklistDetailValue)
|
|
12
|
+
value: ChecklistDetailValue;
|
|
13
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccountingJournal } from '../../..';
|
|
1
|
+
import { AccountingJournal, ILettering, IThirdParty } from '../../..';
|
|
2
2
|
|
|
3
3
|
export interface IGeneralLedgerAccountingEntry {
|
|
4
4
|
designation: string
|
|
@@ -8,5 +8,7 @@ export interface IGeneralLedgerAccountingEntry {
|
|
|
8
8
|
credit: number
|
|
9
9
|
debit: number
|
|
10
10
|
intermediateSolde: number
|
|
11
|
+
thirdParty?: IThirdParty;
|
|
12
|
+
lettering?: ILettering;
|
|
11
13
|
exported?: Date
|
|
12
14
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';
|
|
2
|
+
|
|
3
|
+
export interface IGeneralLedgerThirdParty {
|
|
4
|
+
idThirdParty: number
|
|
5
|
+
name: string,
|
|
6
|
+
totalCredit: number
|
|
7
|
+
totalDebit: number
|
|
8
|
+
totalSolde: number
|
|
9
|
+
entries: IGeneralLedgerAccountingEntry[]
|
|
10
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean, IsEnum, IsInt, IsOptional, IsString, Min,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
|
+
import { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';
|
|
7
|
+
import { ThirdPartyType } from '../../../Enum/ThirdPartyType';
|
|
8
|
+
|
|
9
|
+
export class QueryGeneralLedgerAuxiliary {
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsFormattedDateString()
|
|
12
|
+
dateStart: string;
|
|
13
|
+
|
|
14
|
+
@ApiProperty()
|
|
15
|
+
@IsFormattedDateString()
|
|
16
|
+
dateEnd: string;
|
|
17
|
+
|
|
18
|
+
@ApiProperty()
|
|
19
|
+
@IsEnum(ThirdPartyType)
|
|
20
|
+
idThirdPartyType: ThirdPartyType;
|
|
21
|
+
|
|
22
|
+
@ApiProperty()
|
|
23
|
+
@IsInt()
|
|
24
|
+
@Min(1)
|
|
25
|
+
limit: number;
|
|
26
|
+
|
|
27
|
+
@ApiProperty()
|
|
28
|
+
@IsInt()
|
|
29
|
+
@Min(1)
|
|
30
|
+
page: number;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional({ default: false, describe: 'If set to true, it will search only entries with no lettering' })
|
|
33
|
+
@IsBoolean()
|
|
34
|
+
@ToBoolean()
|
|
35
|
+
@IsOptional()
|
|
36
|
+
omitLettering?: boolean;
|
|
37
|
+
|
|
38
|
+
@ApiPropertyOptional({ default: true })
|
|
39
|
+
@IsBoolean()
|
|
40
|
+
@ToBoolean()
|
|
41
|
+
@IsOptional()
|
|
42
|
+
descending?: boolean;
|
|
43
|
+
|
|
44
|
+
@ApiPropertyOptional()
|
|
45
|
+
@IsString()
|
|
46
|
+
search?: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsDate, IsNumber, IsString,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../..';
|
|
5
|
+
|
|
6
|
+
export class QueryRevisionApprobation {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
@IsDate()
|
|
9
|
+
startDate: Date;
|
|
10
|
+
|
|
11
|
+
@ApiProperty()
|
|
12
|
+
@IsDate()
|
|
13
|
+
endDate: Date;
|
|
14
|
+
|
|
15
|
+
@ApiProperty()
|
|
16
|
+
@IsNumber()
|
|
17
|
+
idSociety: number;
|
|
18
|
+
|
|
19
|
+
@ApiPropertyOptional()
|
|
20
|
+
@IsString()
|
|
21
|
+
comment?: string;
|
|
22
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
+
IsArray,
|
|
3
|
+
IsBoolean,
|
|
2
4
|
IsDate, IsEnum, IsNumber, IsOptional, IsString,
|
|
3
5
|
} from 'class-validator';
|
|
4
6
|
import { AccountingJournal, ApiProperty } from '../../../..';
|
|
5
7
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
8
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
9
|
|
|
7
10
|
export class QueryRevisionSearchEntries {
|
|
8
11
|
// Mandatory
|
|
@@ -54,6 +57,44 @@ export class QueryRevisionSearchEntries {
|
|
|
54
57
|
@IsOptional()
|
|
55
58
|
idAccountingJournal?: number;
|
|
56
59
|
|
|
60
|
+
// advanced search
|
|
61
|
+
@ApiPropertyOptional()
|
|
62
|
+
@IsNumber()
|
|
63
|
+
@IsOptional()
|
|
64
|
+
minimumAmount?: number;
|
|
65
|
+
|
|
66
|
+
@ApiPropertyOptional()
|
|
67
|
+
@IsNumber()
|
|
68
|
+
@IsOptional()
|
|
69
|
+
maximumAmount?: number;
|
|
70
|
+
|
|
71
|
+
@ApiPropertyOptional()
|
|
72
|
+
@IsArray({ each: true })
|
|
73
|
+
@IsOptional()
|
|
74
|
+
idsAccountingJournal?: Array<AccountingJournal>;
|
|
75
|
+
|
|
76
|
+
@ApiPropertyOptional()
|
|
77
|
+
@IsNumber()
|
|
78
|
+
@IsOptional()
|
|
79
|
+
type?: number;
|
|
80
|
+
|
|
81
|
+
@ApiPropertyOptional()
|
|
82
|
+
@IsBoolean()
|
|
83
|
+
@ToBoolean()
|
|
84
|
+
@IsOptional()
|
|
85
|
+
isRevised?: boolean;
|
|
86
|
+
|
|
87
|
+
@ApiPropertyOptional({ default: 'date' })
|
|
88
|
+
@IsString()
|
|
89
|
+
@IsOptional()
|
|
90
|
+
orderBy?: 'date' | 'accountNumber';
|
|
91
|
+
|
|
92
|
+
@ApiPropertyOptional()
|
|
93
|
+
@IsBoolean()
|
|
94
|
+
@ToBoolean()
|
|
95
|
+
@IsOptional()
|
|
96
|
+
descending?: boolean;
|
|
97
|
+
|
|
57
98
|
// Interface paginate
|
|
58
99
|
@ApiProperty({ default: 25 })
|
|
59
100
|
@IsNumber()
|
|
@@ -18,6 +18,8 @@ export interface ReadRevisionAccount {
|
|
|
18
18
|
idAccountingTransaction: number;
|
|
19
19
|
idVat: number | null;
|
|
20
20
|
idImmobilization: number | null;
|
|
21
|
+
idLettering?: number | null;
|
|
22
|
+
lettering?: ILettering;
|
|
21
23
|
createdAt: Date;
|
|
22
24
|
updatedAt: Date;
|
|
23
25
|
accountingTransaction: {
|
|
@@ -28,10 +30,8 @@ export interface ReadRevisionAccount {
|
|
|
28
30
|
idUser: number | null;
|
|
29
31
|
exported: Date | null;
|
|
30
32
|
idAccountingJournal: number;
|
|
31
|
-
idLettering: number | null;
|
|
32
33
|
accountingFiles: Array<IAccountingFile>;
|
|
33
34
|
accountingJournal: IAccountingJournal;
|
|
34
|
-
lettering: ILettering;
|
|
35
35
|
user: IUser;
|
|
36
36
|
},
|
|
37
37
|
thirdParty: { id: number, fullname: string } | null,
|
|
@@ -24,4 +24,11 @@ export interface TaxDate {
|
|
|
24
24
|
date: string;
|
|
25
25
|
required: boolean;
|
|
26
26
|
isBalance: boolean;
|
|
27
|
-
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type ReadVatAmountDetail = { idVat: number; real: number; collected: number; };
|
|
30
|
+
|
|
31
|
+
export type ReadVatAmount = {
|
|
32
|
+
isBalanced: boolean;
|
|
33
|
+
details: ReadVatAmountDetail[];
|
|
34
|
+
};
|
|
@@ -5,19 +5,19 @@ import { IUser } from './IUser';
|
|
|
5
5
|
// accountDetail
|
|
6
6
|
export interface IAccountDetail {
|
|
7
7
|
id?: number;
|
|
8
|
-
comment
|
|
8
|
+
comment?: string | null;
|
|
9
9
|
isPending: boolean;
|
|
10
10
|
checkByIdAccountant: number | null;
|
|
11
11
|
checkByIdSupervisor: number | null;
|
|
12
12
|
idAccount: number;
|
|
13
|
-
idExercice
|
|
13
|
+
idExercice?: number;
|
|
14
14
|
idSociety: number;
|
|
15
15
|
createdAt?: Date | null;
|
|
16
16
|
updatedAt?: Date | null;
|
|
17
17
|
|
|
18
18
|
// Associations
|
|
19
|
-
society
|
|
20
|
-
account
|
|
21
|
-
accountDetailByAccountant
|
|
22
|
-
accountDetailBySupervisor
|
|
19
|
+
society?: ISociety;
|
|
20
|
+
account?: IAccount;
|
|
21
|
+
accountDetailByAccountant?: IUser;
|
|
22
|
+
accountDetailBySupervisor?: IUser;
|
|
23
23
|
}
|
|
@@ -8,7 +8,6 @@ import { IRule } from './IRule';
|
|
|
8
8
|
import { IEstimateInvoice } from './IEstimateInvoice';
|
|
9
9
|
import { IFile } from './IFile';
|
|
10
10
|
import { IComptaType } from './IComptaType';
|
|
11
|
-
import { ILettering } from './ILettering';
|
|
12
11
|
import { IPartnerTransaction } from './IPartnerTransaction';
|
|
13
12
|
import { ICurrency } from './ICurrency';
|
|
14
13
|
import { IMachineLearningResult } from '../..';
|
|
@@ -46,7 +45,6 @@ export interface IAccountingTransaction {
|
|
|
46
45
|
idSocietyVehicle?: number | null;
|
|
47
46
|
idSocietyPartner?: number | null;
|
|
48
47
|
idRule?: number | null;
|
|
49
|
-
idLettering?: number | null;
|
|
50
48
|
idAccountingJournal: number;
|
|
51
49
|
idTypeCompta?: number | null;
|
|
52
50
|
idEstimateInvoice?: number | null;
|
|
@@ -69,7 +67,6 @@ export interface IAccountingTransaction {
|
|
|
69
67
|
estimatesInvoice?: IEstimateInvoice;
|
|
70
68
|
file?: IFile;
|
|
71
69
|
typeComptum?: IComptaType;
|
|
72
|
-
lettering?: ILettering;
|
|
73
70
|
partnersTransaction: IPartnerTransaction | null;
|
|
74
71
|
parents?: IAccountingTransaction[];
|
|
75
72
|
childs?: IAccountingTransaction[];
|
|
@@ -160,6 +160,11 @@ export enum Code {
|
|
|
160
160
|
|
|
161
161
|
// Society Vehicles
|
|
162
162
|
MISSING_REGISTRATION_CARD = 'MISSING_REGISTRATION_CARD',
|
|
163
|
+
|
|
164
|
+
PREVIOUS_CHECKLIST_NOT_COMPLETED = 'previous_checklist_not_completed',
|
|
165
|
+
CAN_NOT_EDIT_COMPLETED_ISSUE = 'can_not_edit_completed_issue',
|
|
166
|
+
CAN_NOT_CONFIRM_CHECKLIST = 'can_not_confirm_checklist',
|
|
167
|
+
CHECKLIST_ALREADY_EXIST = 'checklist_already_exist',
|
|
163
168
|
}
|
|
164
169
|
|
|
165
170
|
export interface IApiError {
|
|
@@ -2,23 +2,27 @@ import { IChecklistDetail } from './IChecklistDetail';
|
|
|
2
2
|
import { IUser } from './IUser';
|
|
3
3
|
import { IExercice } from './IExercice';
|
|
4
4
|
import { ICustomerTva } from './ICustomerTva';
|
|
5
|
+
import { ChecklistTypeEnum } from '../../Enum/ChecklistType';
|
|
5
6
|
|
|
6
7
|
// checklist
|
|
7
8
|
export interface IChecklist {
|
|
8
9
|
id?: number;
|
|
9
10
|
idUserFront: number | null;
|
|
10
|
-
revisionDate
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
revisionDate?: Date | null;
|
|
12
|
+
isConfirmed: boolean;
|
|
13
|
+
date: Date | null;
|
|
14
|
+
type: ChecklistTypeEnum;
|
|
15
|
+
startDate?: Date | null;
|
|
16
|
+
endDate?: Date | null;
|
|
17
|
+
notifyFront?: boolean;
|
|
14
18
|
idExercice: number | null;
|
|
15
|
-
|
|
19
|
+
idCustomerVat: number | null;
|
|
16
20
|
createdAt?: Date | null;
|
|
17
21
|
updatedAt?: Date | null;
|
|
18
22
|
|
|
19
23
|
// Associations
|
|
20
|
-
checklistHasSomeDetails
|
|
21
|
-
checklistHasOneSupervisor
|
|
22
|
-
exoChecklist
|
|
23
|
-
|
|
24
|
+
checklistHasSomeDetails?: IChecklistDetail[];
|
|
25
|
+
checklistHasOneSupervisor?: IUser;
|
|
26
|
+
exoChecklist?: IExercice;
|
|
27
|
+
checklistHasOneCustomerVat?: ICustomerTva;
|
|
24
28
|
}
|