@silexpert/core 1.3.157 → 1.3.158-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/resources/Report.d.ts +1 -0
- package/dist/cjs/api/resources/Report.d.ts.map +1 -1
- package/dist/cjs/api/resources/Report.js +3 -0
- package/dist/cjs/api/resources/Report.js.map +1 -1
- package/dist/cjs/api/resources/ReportHistory.d.ts +13 -0
- package/dist/cjs/api/resources/ReportHistory.d.ts.map +1 -0
- package/dist/cjs/api/resources/ReportHistory.js +18 -0
- package/dist/cjs/api/resources/ReportHistory.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +7 -1
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +7 -0
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/Proceding.d.ts +8 -0
- package/dist/cjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Proceding.js +10 -2
- package/dist/cjs/types/Enum/Proceding.js.map +1 -1
- package/dist/cjs/types/Enum/ReportSource.d.ts +12 -0
- package/dist/cjs/types/Enum/ReportSource.d.ts.map +1 -0
- package/dist/cjs/types/Enum/ReportSource.js +24 -0
- package/dist/cjs/types/Enum/ReportSource.js.map +1 -0
- package/dist/cjs/types/Interface/api/card/Query.d.ts +3 -0
- package/dist/cjs/types/Interface/api/card/Query.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/Query.js +10 -1
- package/dist/cjs/types/Interface/api/card/Query.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/UpdateReport.d.ts +0 -1
- package/dist/cjs/types/Interface/api/report/UpdateReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/UpdateReport.js.map +1 -1
- package/dist/cjs/types/Interface/api/reportHistory/Query.d.ts +4 -0
- package/dist/cjs/types/Interface/api/reportHistory/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/reportHistory/Query.js +23 -0
- package/dist/cjs/types/Interface/api/reportHistory/Query.js.map +1 -0
- package/dist/cjs/types/Interface/models/IReport.d.ts +6 -0
- package/dist/cjs/types/Interface/models/IReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IReport.js.map +1 -1
- package/dist/cjs/types/Interface/models/IReportHistory.d.ts +19 -0
- package/dist/cjs/types/Interface/models/IReportHistory.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IReportHistory.js +3 -0
- package/dist/cjs/types/Interface/models/IReportHistory.js.map +1 -0
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Report.d.ts +1 -0
- package/dist/mjs/api/resources/Report.d.ts.map +1 -1
- package/dist/mjs/api/resources/Report.js +5 -0
- package/dist/mjs/api/resources/Report.js.map +1 -1
- package/dist/mjs/api/resources/ReportHistory.d.ts +13 -0
- package/dist/mjs/api/resources/ReportHistory.d.ts.map +1 -0
- package/dist/mjs/api/resources/ReportHistory.js +17 -0
- package/dist/mjs/api/resources/ReportHistory.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +7 -1
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +7 -0
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/Proceding.d.ts +8 -0
- package/dist/mjs/types/Enum/Proceding.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Proceding.js +10 -2
- package/dist/mjs/types/Enum/Proceding.js.map +1 -1
- package/dist/mjs/types/Enum/ReportSource.d.ts +12 -0
- package/dist/mjs/types/Enum/ReportSource.d.ts.map +1 -0
- package/dist/mjs/types/Enum/ReportSource.js +21 -0
- package/dist/mjs/types/Enum/ReportSource.js.map +1 -0
- package/dist/mjs/types/Interface/api/card/Query.d.ts +3 -0
- package/dist/mjs/types/Interface/api/card/Query.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/Query.js +10 -2
- package/dist/mjs/types/Interface/api/card/Query.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/UpdateReport.d.ts +0 -1
- package/dist/mjs/types/Interface/api/report/UpdateReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/UpdateReport.js.map +1 -1
- package/dist/mjs/types/Interface/api/reportHistory/Query.d.ts +4 -0
- package/dist/mjs/types/Interface/api/reportHistory/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/reportHistory/Query.js +20 -0
- package/dist/mjs/types/Interface/api/reportHistory/Query.js.map +1 -0
- package/dist/mjs/types/Interface/models/IReport.d.ts +6 -0
- package/dist/mjs/types/Interface/models/IReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IReport.js.map +1 -1
- package/dist/mjs/types/Interface/models/IReportHistory.d.ts +19 -0
- package/dist/mjs/types/Interface/models/IReportHistory.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IReportHistory.js +2 -0
- package/dist/mjs/types/Interface/models/IReportHistory.js.map +1 -0
- package/dist/mjs/types/index.d.ts +3 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +3 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Report.ts +5 -0
- package/ts/api/resources/ReportHistory.ts +18 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Card.ts +7 -0
- package/ts/types/Enum/Proceding.ts +10 -2
- package/ts/types/Enum/ReportSource.ts +25 -0
- package/ts/types/Interface/api/card/Query.ts +9 -2
- package/ts/types/Interface/api/report/UpdateReport.ts +0 -1
- package/ts/types/Interface/api/reportHistory/Query.ts +8 -0
- package/ts/types/Interface/models/IReport.ts +6 -0
- package/ts/types/Interface/models/IReportHistory.ts +22 -0
- package/ts/types/index.ts +3 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IReportHistory, QueryAllReportHistory } from '../../types';
|
|
2
|
+
import { Resource } from '../Resource';
|
|
3
|
+
|
|
4
|
+
export class ReportHistory extends Resource {
|
|
5
|
+
/**
|
|
6
|
+
* Report Message Get All
|
|
7
|
+
* @param { QueryAllReportHistory } params
|
|
8
|
+
* @param { CancelToken } cancelToken
|
|
9
|
+
* @param { AbortSignal } signal
|
|
10
|
+
* @returns { Promise<IReportHistory[]> }
|
|
11
|
+
*/
|
|
12
|
+
getAll(params: QueryAllReportHistory, signal?: AbortSignal): Promise<IReportHistory[]> {
|
|
13
|
+
return this.axios.$get('/report-history/all', {
|
|
14
|
+
params,
|
|
15
|
+
...(signal ? { signal } : {}),
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -185,6 +185,7 @@ import { DashboardLayout } from './resources/DashboardLayout';
|
|
|
185
185
|
import { DocumentRequest } from './resources/DocumentRequest';
|
|
186
186
|
import { BalanceSheetReport } from './resources/BalanceSheetReport';
|
|
187
187
|
import { Revenue } from './resources/Revenue';
|
|
188
|
+
import { ReportHistory } from './resources/ReportHistory';
|
|
188
189
|
|
|
189
190
|
export const resources = {
|
|
190
191
|
budgetInsight: BudgetInsight,
|
|
@@ -374,4 +375,5 @@ export const resources = {
|
|
|
374
375
|
documentRequest: DocumentRequest,
|
|
375
376
|
balanceSheetReport: BalanceSheetReport,
|
|
376
377
|
revenue: Revenue,
|
|
378
|
+
reportHistory: ReportHistory,
|
|
377
379
|
};
|
package/ts/types/Enum/Card.ts
CHANGED
|
@@ -33,6 +33,7 @@ export enum CardType {
|
|
|
33
33
|
ADVANCE_SIMPLIFIED_VAT_SEND_SIE = 29, // Acompte de TVA envoi SIE
|
|
34
34
|
VAT_SEND_SIE = 30, // TVA envoi SIE
|
|
35
35
|
ADVANCE_IS_SEND_SIE = 31, // Acompte IS envoi SIE
|
|
36
|
+
CUT_OFF_ORI_M_1 = 32, // Cut-off ORI M-1
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
export enum CardState {
|
|
@@ -323,6 +324,12 @@ export const CardTypeLabel = [
|
|
|
323
324
|
refLabel: 'AVTS',
|
|
324
325
|
groupId: CardGroupEnum.VAT_GROUP,
|
|
325
326
|
},
|
|
327
|
+
{
|
|
328
|
+
id: CardType.CUT_OFF_ORI_M_1,
|
|
329
|
+
label: 'Cut-off ORI M-1',
|
|
330
|
+
refLabel: 'COOM1',
|
|
331
|
+
groupId: CardGroupEnum.CUT_OFF,
|
|
332
|
+
},
|
|
326
333
|
] as const;
|
|
327
334
|
|
|
328
335
|
export interface UserCardsStats {
|
|
@@ -17,7 +17,7 @@ export const Proceding = {
|
|
|
17
17
|
},
|
|
18
18
|
CONTINUATION_OF_THE_ACTIVITY: {
|
|
19
19
|
id: 5,
|
|
20
|
-
name:
|
|
20
|
+
name: "Poursuite de l'activité",
|
|
21
21
|
},
|
|
22
22
|
DISSOLUTION: {
|
|
23
23
|
id: 6,
|
|
@@ -41,6 +41,14 @@ export const Proceding = {
|
|
|
41
41
|
},
|
|
42
42
|
ENTRY_ORDER: {
|
|
43
43
|
id: 11,
|
|
44
|
-
name:
|
|
44
|
+
name: "Saisie de l'ordre",
|
|
45
|
+
},
|
|
46
|
+
DELISTING: {
|
|
47
|
+
id: 12,
|
|
48
|
+
name: 'Radiation',
|
|
49
|
+
},
|
|
50
|
+
AUTOMATIC_DELISTING: {
|
|
51
|
+
id: 13,
|
|
52
|
+
name: "Radiation d'office",
|
|
45
53
|
},
|
|
46
54
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export enum ReportSource {
|
|
2
|
+
LETTER = 1,
|
|
3
|
+
MAIL = 2,
|
|
4
|
+
INTERNAL = 3,
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
interface ReportSourceInterface {
|
|
8
|
+
id: ReportSource;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const ReportSourceDetails: ReportSourceInterface[] = [
|
|
13
|
+
{
|
|
14
|
+
id: ReportSource.LETTER,
|
|
15
|
+
name: 'Courrier',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: ReportSource.MAIL,
|
|
19
|
+
name: 'Mail',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: ReportSource.INTERNAL,
|
|
23
|
+
name: 'Interne',
|
|
24
|
+
},
|
|
25
|
+
];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IsDate, IsInt } from 'class-validator';
|
|
2
|
-
import { ApiProperty } from '../../../../utils';
|
|
1
|
+
import { IsDate, IsInt, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
|
|
4
4
|
export class QueryInternalCardsStats {
|
|
5
5
|
@ApiProperty()
|
|
@@ -10,3 +10,10 @@ export class QueryInternalCardsStats {
|
|
|
10
10
|
@IsDate()
|
|
11
11
|
date: Date;
|
|
12
12
|
}
|
|
13
|
+
|
|
14
|
+
export class QueryCronCards {
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsInt()
|
|
18
|
+
declare idSociety?: number;
|
|
19
|
+
}
|
|
@@ -4,15 +4,19 @@ import { IComment } from './IComment';
|
|
|
4
4
|
import { ICustomerAcceptance } from './ICustomerAcceptance';
|
|
5
5
|
import { IFile } from './IFile';
|
|
6
6
|
import { ILetter } from './ILetter';
|
|
7
|
+
import { IReportHistory } from './IReportHistory';
|
|
7
8
|
import { IReportMessage } from './IReportMessage';
|
|
8
9
|
import { ISociety } from './ISociety';
|
|
10
|
+
import { IUser } from './IUser';
|
|
9
11
|
|
|
10
12
|
// report
|
|
11
13
|
export interface IReport {
|
|
12
14
|
id?: number;
|
|
13
15
|
idSociety?: number | null;
|
|
16
|
+
idSource?: number | null;
|
|
14
17
|
idReportType?: ReportTypeEnum | null;
|
|
15
18
|
idCalendarEvent?: number;
|
|
19
|
+
idUserConcerned?: number | null;
|
|
16
20
|
idServiceConcerned?: number | null;
|
|
17
21
|
idService?: number | null;
|
|
18
22
|
idFile?: number | null;
|
|
@@ -34,8 +38,10 @@ export interface IReport {
|
|
|
34
38
|
society?: ISociety;
|
|
35
39
|
file?: IFile;
|
|
36
40
|
calendarEvent?: ICalendarEvent;
|
|
41
|
+
userConcerned?: IUser;
|
|
37
42
|
comments?: IComment[];
|
|
38
43
|
messages?: IReportMessage[];
|
|
39
44
|
customerAcceptance?: ICustomerAcceptance;
|
|
40
45
|
letter?: ILetter;
|
|
46
|
+
history?: IReportHistory[];
|
|
41
47
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReportTypeEnum } from '../../Enum/ReportType';
|
|
2
|
+
import { IReport } from './IReport';
|
|
3
|
+
import { IUser } from './IUser';
|
|
4
|
+
|
|
5
|
+
// reportHistory
|
|
6
|
+
export interface IReportHistory {
|
|
7
|
+
id?: number;
|
|
8
|
+
idSource?: number | null;
|
|
9
|
+
idReportType?: ReportTypeEnum | null;
|
|
10
|
+
state?: number | null;
|
|
11
|
+
idUserConcerned?: number | null;
|
|
12
|
+
idServiceConcerned?: number | null;
|
|
13
|
+
idReport?: number;
|
|
14
|
+
idUser?: number | null;
|
|
15
|
+
createdAt?: Date | null;
|
|
16
|
+
updatedAt?: Date | null;
|
|
17
|
+
|
|
18
|
+
// Associations
|
|
19
|
+
userConcerned?: IUser;
|
|
20
|
+
report?: IReport;
|
|
21
|
+
user?: IUser;
|
|
22
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -146,6 +146,7 @@ export * from './Interface/models/IRegisterCategory';
|
|
|
146
146
|
export * from './Interface/models/IRegulate';
|
|
147
147
|
export * from './Interface/models/IRegulation';
|
|
148
148
|
export * from './Interface/models/IReport';
|
|
149
|
+
export * from './Interface/models/IReportHistory';
|
|
149
150
|
export * from './Interface/models/IReportMessage';
|
|
150
151
|
export * from './Interface/models/IRole';
|
|
151
152
|
export * from './Interface/models/IRoleUser';
|
|
@@ -386,6 +387,7 @@ export * from './Enum/SurveyType';
|
|
|
386
387
|
export * from './Enum/SurveyTypeDatas';
|
|
387
388
|
export * from './Enum/PaymentMethod';
|
|
388
389
|
export * from './Enum/ReportType';
|
|
390
|
+
export * from './Enum/ReportSource';
|
|
389
391
|
export * from './Enum/IssueType';
|
|
390
392
|
export * from './Enum/AdjustmentType';
|
|
391
393
|
export * from './Enum/ReportState';
|
|
@@ -789,6 +791,7 @@ export * from './Interface/api/report/DeleteReport';
|
|
|
789
791
|
export * from './Interface/api/report/QueryReports';
|
|
790
792
|
export * from './Interface/api/report/QueryReportsStats';
|
|
791
793
|
export * from './Interface/api/report/QueryReportsForLetter';
|
|
794
|
+
export * from './Interface/api/reportHistory/Query';
|
|
792
795
|
export * from './Interface/api/reportMessage/Query';
|
|
793
796
|
export * from './Interface/api/letter/CreateLetter';
|
|
794
797
|
export * from './Interface/api/mailInvoice/CreateInvoiceMail';
|