@silexpert/core 1.3.164 → 1.3.166
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/AutomaticRegistration.d.ts +6 -0
- package/dist/cjs/api/resources/AutomaticRegistration.d.ts.map +1 -0
- package/dist/cjs/api/resources/AutomaticRegistration.js +22 -0
- package/dist/cjs/api/resources/AutomaticRegistration.js.map +1 -0
- package/dist/cjs/api/resources/Revenue.d.ts +8 -0
- package/dist/cjs/api/resources/Revenue.d.ts.map +1 -1
- package/dist/cjs/api/resources/Revenue.js +6 -0
- package/dist/cjs/api/resources/Revenue.js.map +1 -1
- 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/AutomaticRegistration.d.ts +7 -0
- package/dist/cjs/types/Enum/AutomaticRegistration.d.ts.map +1 -1
- package/dist/cjs/types/Enum/AutomaticRegistration.js +39 -1
- package/dist/cjs/types/Enum/AutomaticRegistration.js.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/BrandClementine.js +6 -0
- package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/cjs/types/Interface/api/automaticRegistration/Query.d.ts +6 -0
- package/dist/cjs/types/Interface/api/automaticRegistration/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/automaticRegistration/Query.js +36 -0
- package/dist/cjs/types/Interface/api/automaticRegistration/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/automaticRegistration/Read.d.ts +9 -0
- package/dist/cjs/types/Interface/api/automaticRegistration/Read.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/automaticRegistration/Read.js +3 -0
- package/dist/cjs/types/Interface/api/automaticRegistration/Read.js.map +1 -0
- package/dist/cjs/types/Interface/api/cashAndExpense/Create.d.ts +1 -1
- package/dist/cjs/types/Interface/api/cashAndExpense/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cashAndExpense/Create.js +1 -1
- package/dist/cjs/types/Interface/api/cashAndExpense/Create.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/AutomaticRegistration.d.ts +6 -0
- package/dist/mjs/api/resources/AutomaticRegistration.d.ts.map +1 -0
- package/dist/mjs/api/resources/AutomaticRegistration.js +7 -0
- package/dist/mjs/api/resources/AutomaticRegistration.js.map +1 -0
- package/dist/mjs/api/resources/Revenue.d.ts +8 -0
- package/dist/mjs/api/resources/Revenue.d.ts.map +1 -1
- package/dist/mjs/api/resources/Revenue.js +6 -0
- package/dist/mjs/api/resources/Revenue.js.map +1 -1
- 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/AutomaticRegistration.d.ts +7 -0
- package/dist/mjs/types/Enum/AutomaticRegistration.d.ts.map +1 -1
- package/dist/mjs/types/Enum/AutomaticRegistration.js +38 -0
- package/dist/mjs/types/Enum/AutomaticRegistration.js.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/BrandClementine.js +6 -0
- package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
- package/dist/mjs/types/Interface/api/automaticRegistration/Query.d.ts +6 -0
- package/dist/mjs/types/Interface/api/automaticRegistration/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/automaticRegistration/Query.js +35 -0
- package/dist/mjs/types/Interface/api/automaticRegistration/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/automaticRegistration/Read.d.ts +9 -0
- package/dist/mjs/types/Interface/api/automaticRegistration/Read.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/automaticRegistration/Read.js +2 -0
- package/dist/mjs/types/Interface/api/automaticRegistration/Read.js.map +1 -0
- package/dist/mjs/types/Interface/api/cashAndExpense/Create.d.ts +1 -1
- package/dist/mjs/types/Interface/api/cashAndExpense/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cashAndExpense/Create.js +1 -1
- package/dist/mjs/types/Interface/api/cashAndExpense/Create.js.map +1 -1
- package/dist/mjs/types/index.d.ts +2 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +2 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AutomaticRegistration.ts +8 -0
- package/ts/api/resources/Revenue.ts +8 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/AutomaticRegistration.ts +45 -0
- package/ts/types/Enum/BrandClementine.ts +6 -0
- package/ts/types/Interface/api/automaticRegistration/Query.ts +19 -0
- package/ts/types/Interface/api/automaticRegistration/Read.ts +8 -0
- package/ts/types/Interface/api/cashAndExpense/Create.ts +2 -2
- package/ts/types/index.ts +2 -1
|
@@ -31,6 +31,10 @@ export class Revenue extends Resource {
|
|
|
31
31
|
delete: (id: number) => {
|
|
32
32
|
return this.axios.$delete(`/revenue/movements/${id}`);
|
|
33
33
|
},
|
|
34
|
+
|
|
35
|
+
generateRetroactive: (idSociety: number, params: { startDate?: string; endDate?: string }) => {
|
|
36
|
+
return this.axios.$post(`/revenue/societies/${idSociety}/retroactivity`, params);
|
|
37
|
+
},
|
|
34
38
|
};
|
|
35
39
|
|
|
36
40
|
/**
|
|
@@ -52,6 +56,10 @@ export class Revenue extends Resource {
|
|
|
52
56
|
generateAll: (data: { date?: string }) => {
|
|
53
57
|
return this.axios.$post('/revenue/snapshots/generate-all', data);
|
|
54
58
|
},
|
|
59
|
+
|
|
60
|
+
generateRetroactiveSnapshots: (idSociety: number) => {
|
|
61
|
+
return this.axios.$post(`/revenue/societies/${idSociety}/snapshots/generate-retroactive`);
|
|
62
|
+
},
|
|
55
63
|
};
|
|
56
64
|
|
|
57
65
|
/**
|
package/ts/api/resources.ts
CHANGED
|
@@ -186,6 +186,7 @@ import { DashboardLayout } from './resources/DashboardLayout';
|
|
|
186
186
|
import { DocumentRequest } from './resources/DocumentRequest';
|
|
187
187
|
import { BalanceSheetReport } from './resources/BalanceSheetReport';
|
|
188
188
|
import { Revenue } from './resources/Revenue';
|
|
189
|
+
import { AutomaticRegistration } from './resources/AutomaticRegistration';
|
|
189
190
|
|
|
190
191
|
export const resources = {
|
|
191
192
|
budgetInsight: BudgetInsight,
|
|
@@ -376,4 +377,5 @@ export const resources = {
|
|
|
376
377
|
documentRequest: DocumentRequest,
|
|
377
378
|
balanceSheetReport: BalanceSheetReport,
|
|
378
379
|
revenue: Revenue,
|
|
380
|
+
automaticRegistration: AutomaticRegistration,
|
|
379
381
|
};
|
|
@@ -6,3 +6,48 @@ export enum AutomaticRegistrationType {
|
|
|
6
6
|
SEND_TO_SIE = 5,
|
|
7
7
|
FAILED_TO_SEND_TO_SIE = 6,
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
export const AutomaticRegistrationTypeStatistics: Array<{
|
|
11
|
+
label: string;
|
|
12
|
+
/** types included for this statistic (automatic registration state is updated at every step so we need to include more) */
|
|
13
|
+
types: AutomaticRegistrationType[];
|
|
14
|
+
/** specific state type (last state) */
|
|
15
|
+
type: AutomaticRegistrationType;
|
|
16
|
+
}> = [
|
|
17
|
+
{ label: 'Non généré', types: [AutomaticRegistrationType.INVALID], type: AutomaticRegistrationType.INVALID },
|
|
18
|
+
{
|
|
19
|
+
label: 'Généré',
|
|
20
|
+
types: [
|
|
21
|
+
AutomaticRegistrationType.GENERATED,
|
|
22
|
+
AutomaticRegistrationType.EMAIL_SEND,
|
|
23
|
+
AutomaticRegistrationType.EMAIL_ERROR,
|
|
24
|
+
AutomaticRegistrationType.SEND_TO_SIE,
|
|
25
|
+
AutomaticRegistrationType.FAILED_TO_SEND_TO_SIE,
|
|
26
|
+
],
|
|
27
|
+
type: AutomaticRegistrationType.GENERATED,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: 'Envoyé par e-mail',
|
|
31
|
+
types: [
|
|
32
|
+
AutomaticRegistrationType.EMAIL_SEND,
|
|
33
|
+
AutomaticRegistrationType.SEND_TO_SIE,
|
|
34
|
+
AutomaticRegistrationType.FAILED_TO_SEND_TO_SIE,
|
|
35
|
+
],
|
|
36
|
+
type: AutomaticRegistrationType.EMAIL_SEND,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: 'Échec envoi e-mail',
|
|
40
|
+
types: [AutomaticRegistrationType.EMAIL_ERROR],
|
|
41
|
+
type: AutomaticRegistrationType.EMAIL_ERROR,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: 'Envoyé au SIE',
|
|
45
|
+
types: [AutomaticRegistrationType.SEND_TO_SIE],
|
|
46
|
+
type: AutomaticRegistrationType.SEND_TO_SIE,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: 'Échec envoi au SIE',
|
|
50
|
+
types: [AutomaticRegistrationType.FAILED_TO_SEND_TO_SIE],
|
|
51
|
+
type: AutomaticRegistrationType.FAILED_TO_SEND_TO_SIE,
|
|
52
|
+
},
|
|
53
|
+
];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IsBoolean, IsDateString, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
|
+
|
|
5
|
+
export class QueryAutomaticRegistrationStatistics {
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
@IsDateString()
|
|
8
|
+
startDate: string;
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsDateString()
|
|
12
|
+
endDate: string;
|
|
13
|
+
|
|
14
|
+
@ApiPropertyOptional()
|
|
15
|
+
@IsBoolean()
|
|
16
|
+
@ToBoolean()
|
|
17
|
+
@IsOptional()
|
|
18
|
+
withCauses?: boolean;
|
|
19
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -876,7 +876,6 @@ export * from './Interface/api/humanResourceLibrary/CreateHumanResourceLibrary';
|
|
|
876
876
|
export * from './Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary';
|
|
877
877
|
export * from './Interface/api/report/ExternalReport';
|
|
878
878
|
export * from './Interface/api/collaboraterDetail/CreateCollaboraterDetail';
|
|
879
|
-
|
|
880
879
|
export * from './Interface/api/library/QueryLibrary';
|
|
881
880
|
export * from './Interface/api/library/ReadLibraryFile';
|
|
882
881
|
export * from './Interface/api/taxDeadline/QueryTaxDeadline';
|
|
@@ -1141,6 +1140,8 @@ export * from './Interface/api/recurrence/Query';
|
|
|
1141
1140
|
export * from './Interface/api/recurrence/Read';
|
|
1142
1141
|
export * from './Interface/api/documentRequest/Query';
|
|
1143
1142
|
export * from './Interface/api/documentRequest/Create';
|
|
1143
|
+
export * from './Interface/api/automaticRegistration/Query';
|
|
1144
|
+
export * from './Interface/api/automaticRegistration/Read';
|
|
1144
1145
|
|
|
1145
1146
|
// Enums types
|
|
1146
1147
|
export * from './Interface/enum/Util';
|