@silexpert/core 1.0.168 → 1.0.172
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/AccountingFiles.d.ts.map +1 -1
- package/es/api/resources/AccountingFiles.js +1 -0
- package/es/api/resources/AccountingFiles.js.map +1 -1
- package/es/api/resources/Log.d.ts +7 -1
- package/es/api/resources/Log.d.ts.map +1 -1
- package/es/api/resources/Log.js +8 -0
- package/es/api/resources/Log.js.map +1 -1
- package/es/api/resources/TimeRecorder.d.ts +2 -1
- package/es/api/resources/TimeRecorder.d.ts.map +1 -1
- package/es/api/resources/TimeRecorder.js +3 -0
- package/es/api/resources/TimeRecorder.js.map +1 -1
- package/es/api/resources/UnpaidCallHistory.d.ts +6 -0
- package/es/api/resources/UnpaidCallHistory.d.ts.map +1 -0
- package/es/api/resources/UnpaidCallHistory.js +7 -0
- package/es/api/resources/UnpaidCallHistory.js.map +1 -0
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/ConstitutionState.js +1 -1
- package/es/types/Enum/ConstitutionState.js.map +1 -1
- package/es/types/Enum/JobTitle.js +2 -2
- package/es/types/Enum/JobTitle.js.map +1 -1
- package/es/types/Enum/Log.d.ts +2 -1
- package/es/types/Enum/Log.d.ts.map +1 -1
- package/es/types/Enum/Log.js +1 -0
- package/es/types/Enum/Log.js.map +1 -1
- package/es/types/Enum/TimeCounterType.d.ts +7 -0
- package/es/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/es/types/Enum/TimeCounterType.js +7 -0
- package/es/types/Enum/TimeCounterType.js.map +1 -1
- package/es/types/Enum/UnpaidCallHistoryType.d.ts +10 -0
- package/es/types/Enum/UnpaidCallHistoryType.d.ts.map +1 -0
- package/es/types/Enum/UnpaidCallHistoryType.js +21 -0
- package/es/types/Enum/UnpaidCallHistoryType.js.map +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js +5 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/es/types/Interface/api/prestations/QueryGetAllPrestations.d.ts +2 -0
- package/es/types/Interface/api/prestations/QueryGetAllPrestations.d.ts.map +1 -1
- package/es/types/Interface/api/prestations/QueryGetAllPrestations.js +14 -0
- package/es/types/Interface/api/prestations/QueryGetAllPrestations.js.map +1 -1
- package/es/types/Interface/api/timeRecorder/ReadUsersAbsent.d.ts +7 -0
- package/es/types/Interface/api/timeRecorder/ReadUsersAbsent.d.ts.map +1 -0
- package/es/types/Interface/api/timeRecorder/ReadUsersAbsent.js +2 -0
- package/es/types/Interface/api/timeRecorder/ReadUsersAbsent.js.map +1 -0
- package/es/types/Interface/models/IAccountingTransaction.d.ts +0 -1
- 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/IInpiPayment.d.ts +1 -1
- package/es/types/Interface/models/IInpiPayment.d.ts.map +1 -1
- package/es/types/Interface/models/IInpiPayment.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +2 -1
- 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/IUnpaidCallHistory.d.ts +14 -0
- package/es/types/Interface/models/IUnpaidCallHistory.d.ts.map +1 -0
- package/es/types/Interface/models/IUnpaidCallHistory.js +2 -0
- package/es/types/Interface/models/IUnpaidCallHistory.js.map +1 -0
- package/es/types/index.d.ts +3 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +3 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/AccountingFiles.js +1 -0
- package/js/api/resources/AccountingFiles.js.map +1 -1
- package/js/api/resources/Log.js +8 -0
- package/js/api/resources/Log.js.map +1 -1
- package/js/api/resources/TimeRecorder.js +3 -0
- package/js/api/resources/TimeRecorder.js.map +1 -1
- package/js/api/resources/UnpaidCallHistory.js +14 -0
- package/js/api/resources/UnpaidCallHistory.js.map +1 -0
- package/js/api/resources.js +3 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/ConstitutionState.js +1 -1
- package/js/types/Enum/ConstitutionState.js.map +1 -1
- package/js/types/Enum/JobTitle.js +2 -2
- package/js/types/Enum/JobTitle.js.map +1 -1
- package/js/types/Enum/Log.js +1 -0
- package/js/types/Enum/Log.js.map +1 -1
- package/js/types/Enum/TimeCounterType.js +7 -0
- package/js/types/Enum/TimeCounterType.js.map +1 -1
- package/js/types/Enum/UnpaidCallHistoryType.js +22 -0
- package/js/types/Enum/UnpaidCallHistoryType.js.map +1 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/js/types/Interface/api/prestations/QueryGetAllPrestations.js +2 -0
- package/js/types/Interface/api/prestations/QueryGetAllPrestations.js.map +1 -1
- package/js/types/Interface/api/timeRecorder/ReadUsersAbsent.js +6 -0
- package/js/types/Interface/api/timeRecorder/ReadUsersAbsent.js.map +1 -0
- package/js/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/js/types/Interface/models/IInpiPayment.js.map +1 -1
- package/js/types/Interface/models/ISociety.js.map +1 -1
- package/js/types/Interface/models/IUnpaidCallHistory.js +6 -0
- package/js/types/Interface/models/IUnpaidCallHistory.js.map +1 -0
- package/js/types/index.js +30 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +1 -0
- package/ts/api/resources/Log.ts +10 -0
- package/ts/api/resources/TimeRecorder.ts +4 -1
- package/ts/api/resources/UnpaidCallHistory.ts +8 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/ConstitutionState.ts +1 -1
- package/ts/types/Enum/JobTitle.ts +2 -2
- package/ts/types/Enum/Log.ts +1 -0
- package/ts/types/Enum/TimeCounterType.ts +7 -0
- package/ts/types/Enum/UnpaidCallHistoryType.ts +20 -0
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +4 -0
- package/ts/types/Interface/api/prestations/QueryGetAllPrestations.ts +12 -0
- package/ts/types/Interface/api/timeRecorder/ReadUsersAbsent.ts +7 -0
- package/ts/types/Interface/models/IAccountingTransaction.ts +0 -1
- package/ts/types/Interface/models/IInpiPayment.ts +1 -1
- package/ts/types/Interface/models/ISociety.ts +2 -0
- package/ts/types/Interface/models/IUnpaidCallHistory.ts +16 -0
- package/ts/types/index.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.172",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -10,6 +10,7 @@ export class AccountingFiles extends Resource {
|
|
|
10
10
|
sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());
|
|
11
11
|
sendAccountingFiles.append('isPayPerso', params.isPayPerso.toString());
|
|
12
12
|
sendAccountingFiles.append('split', params.split.toString());
|
|
13
|
+
sendAccountingFiles.append('bypassOcr', params.bypassOcr.toString());
|
|
13
14
|
|
|
14
15
|
params.files.forEach((file) => {
|
|
15
16
|
sendAccountingFiles.append('files', file);
|
package/ts/api/resources/Log.ts
CHANGED
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
3
|
BasePaginate,
|
|
4
|
+
CreateLog,
|
|
4
5
|
ILog,
|
|
5
6
|
LogType,
|
|
6
7
|
} from '../../types';
|
|
7
8
|
|
|
8
9
|
export class Log extends Resource {
|
|
10
|
+
/**
|
|
11
|
+
* création d'un enregistrement dans la table logs
|
|
12
|
+
* @param { CreateLog } payload
|
|
13
|
+
* @returns { ILog }
|
|
14
|
+
*/
|
|
15
|
+
create(payload: CreateLog): Promise<ILog> {
|
|
16
|
+
return this.axios.$post('/log', payload);
|
|
17
|
+
}
|
|
18
|
+
|
|
9
19
|
getLastIpsPaginated(idUser: number): Promise<BasePaginate<ILog>> {
|
|
10
20
|
return this.axios.$get(`/users/${idUser}/logs`, { params: { idLogType: LogType.LOGIN, orderBy: 'createdAt' } });
|
|
11
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected, ITimeRecorder, UpdateRecorder,
|
|
3
|
+
ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected, ITimeRecorder, UpdateRecorder, ReadUsersAbsent,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class TimeRecorder extends Resource {
|
|
@@ -21,4 +21,7 @@ export class TimeRecorder extends Resource {
|
|
|
21
21
|
return this.axios.$get('paginated-delays',
|
|
22
22
|
{ params });
|
|
23
23
|
}
|
|
24
|
+
getUsersAbsent(): Promise<ReadUsersAbsent[]> {
|
|
25
|
+
return this.axios.$get('/users/absent');
|
|
26
|
+
}
|
|
24
27
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IUnpaidCallHistory } from '../../types';
|
|
2
|
+
import { Resource } from '../Resource';
|
|
3
|
+
|
|
4
|
+
export class UnpaidCallHistory extends Resource {
|
|
5
|
+
create(data: IUnpaidCallHistory): Promise<IUnpaidCallHistory> {
|
|
6
|
+
return this.axios.$post('unpaid/call/history', data);
|
|
7
|
+
}
|
|
8
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -120,6 +120,7 @@ import { Acceptance } from './resources/Acceptance';
|
|
|
120
120
|
import { Rating } from './resources/Rating';
|
|
121
121
|
import { Quotation } from './resources/Quotation';
|
|
122
122
|
import { Prestations } from './resources/Prestations';
|
|
123
|
+
import { UnpaidCallHistory } from './resources/UnpaidCallHistory';
|
|
123
124
|
|
|
124
125
|
export const resources = {
|
|
125
126
|
simulation: Simulation,
|
|
@@ -244,4 +245,5 @@ export const resources = {
|
|
|
244
245
|
acceptance: Acceptance,
|
|
245
246
|
quotation: Quotation,
|
|
246
247
|
prestations: Prestations,
|
|
248
|
+
unpaidCallHistory: UnpaidCallHistory,
|
|
247
249
|
};
|
|
@@ -47,7 +47,7 @@ export const ConstitutionStateDetail: ConstitutionStateType = {
|
|
|
47
47
|
// ========================================
|
|
48
48
|
WAITING_KBIS: {
|
|
49
49
|
value: ConstitutionState.WAITING_KBIS,
|
|
50
|
-
text: 'Attente KBIS',
|
|
50
|
+
text: 'Attente KBIS greffe',
|
|
51
51
|
color: 'purple lighten-4',
|
|
52
52
|
},
|
|
53
53
|
WAITING_RIB_OR_SEPA: {
|
|
@@ -72,8 +72,8 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string, womenText: str
|
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
id: JobTitle.PAYROLL_MANAGER,
|
|
75
|
-
menText: 'Gestionnaire de
|
|
76
|
-
womenText: 'Gestionnaire de
|
|
75
|
+
menText: 'Gestionnaire de paie',
|
|
76
|
+
womenText: 'Gestionnaire de paie',
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
id: JobTitle.JURIST,
|
package/ts/types/Enum/Log.ts
CHANGED
|
@@ -246,4 +246,11 @@ export const TimeCounterType = {
|
|
|
246
246
|
limitedRoles: null,
|
|
247
247
|
color: 'error',
|
|
248
248
|
},
|
|
249
|
+
INTERNAL_CONTROL: {
|
|
250
|
+
id: 36,
|
|
251
|
+
label: 'Validation contrôle interne',
|
|
252
|
+
aberrantTime: 480,
|
|
253
|
+
limitedRoles: [Role.CUSTOMER_SUCCESS],
|
|
254
|
+
color: 'grey-dark',
|
|
255
|
+
},
|
|
249
256
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export enum UnpaidCallHistoryType {
|
|
2
|
+
FIRST = 1,
|
|
3
|
+
SECOND = 2,
|
|
4
|
+
THIRD = 3,
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const UnpaidCallHistoryTypeList = [
|
|
8
|
+
{
|
|
9
|
+
id: UnpaidCallHistoryType.FIRST,
|
|
10
|
+
label: '1er Appel',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: UnpaidCallHistoryType.SECOND,
|
|
14
|
+
label: '2ème Appel',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: UnpaidCallHistoryType.THIRD,
|
|
18
|
+
label: '3ème Appel',
|
|
19
|
+
},
|
|
20
|
+
];
|
|
@@ -22,4 +22,16 @@ export class QueryGetAllPrestations {
|
|
|
22
22
|
@IsBoolean()
|
|
23
23
|
@ToBoolean()
|
|
24
24
|
isHidden?: boolean;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional()
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@IsBoolean()
|
|
29
|
+
@ToBoolean()
|
|
30
|
+
isCatalog?: boolean;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsBoolean()
|
|
35
|
+
@ToBoolean()
|
|
36
|
+
isComplementary?: boolean;
|
|
25
37
|
}
|
|
@@ -16,7 +16,6 @@ import { IMachineLearningResult } from './IMachineLearningResult';
|
|
|
16
16
|
export interface IAccountingTransaction {
|
|
17
17
|
id?: number;
|
|
18
18
|
label: string | null;
|
|
19
|
-
budgeaTransactionId?: string | null;
|
|
20
19
|
originalLabel?: string | null;
|
|
21
20
|
invoiceNumber: string | null;
|
|
22
21
|
reference: string | null;
|
|
@@ -50,6 +50,7 @@ import { ISocietyEvent } from './ISocietyEvent';
|
|
|
50
50
|
import {
|
|
51
51
|
ComptaType, CountryId, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner, IPaymentSchedule, IRegulate, IUserSocietyPermission,
|
|
52
52
|
ISocietyConfigBalanceSheet,
|
|
53
|
+
IUnpaidCallHistory,
|
|
53
54
|
} from '../..';
|
|
54
55
|
import { IBrandType } from './IBrandType';
|
|
55
56
|
|
|
@@ -214,4 +215,5 @@ export interface ISociety {
|
|
|
214
215
|
businessPartners: IBusinessPartner[];
|
|
215
216
|
fecFile: IFecFile | null;
|
|
216
217
|
gedFiles: IGedFile[];
|
|
218
|
+
unpaidCallHistory: IUnpaidCallHistory[];
|
|
217
219
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IUser } from './IUser';
|
|
2
|
+
import { ISociety } from './ISociety';
|
|
3
|
+
|
|
4
|
+
export interface IUnpaidCallHistory {
|
|
5
|
+
id?: number,
|
|
6
|
+
idCallType: number,
|
|
7
|
+
idUser: number,
|
|
8
|
+
idSociety: number,
|
|
9
|
+
createdAt?: Date;
|
|
10
|
+
updatedAt?: Date;
|
|
11
|
+
deletedAt?: Date;
|
|
12
|
+
|
|
13
|
+
// Associations
|
|
14
|
+
user?: IUser;
|
|
15
|
+
society?: ISociety;
|
|
16
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -325,7 +325,7 @@ export * from './Interface/models/ICommercialMail';
|
|
|
325
325
|
export * from './Interface/models/IRegistration';
|
|
326
326
|
export * from './Interface/models/IVatRegimeHistory';
|
|
327
327
|
export * from './Interface/models/ICustomerAcceptance';
|
|
328
|
-
|
|
328
|
+
export * from './Interface/models/IUnpaidCallHistory';
|
|
329
329
|
// Forms
|
|
330
330
|
export * from './Form/FormAuthenticate';
|
|
331
331
|
export * from './Form/FormConnector';
|
|
@@ -479,6 +479,8 @@ export * from './Enum/JobTitle';
|
|
|
479
479
|
export * from './Enum/Holidays';
|
|
480
480
|
export * from './Enum/AdminAcceptance';
|
|
481
481
|
export * from './Enum/PrestationListType';
|
|
482
|
+
export * from './Enum/UnpaidCallHistoryType';
|
|
483
|
+
|
|
482
484
|
// Interfaces API
|
|
483
485
|
export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
|
|
484
486
|
export * from './Interface/api/jeDeclare/ReadJeDeclare';
|
|
@@ -635,6 +637,7 @@ export * from './Interface/api/timeRecorder/QueryAttendance';
|
|
|
635
637
|
export * from './Interface/api/timeRecorder/QueryPaginatedDelays';
|
|
636
638
|
export * from './Interface/api/timeRecorder/ReadAttendanceHours';
|
|
637
639
|
export * from './Interface/api/timeRecorder/ReadPaginatedDelays';
|
|
640
|
+
export * from './Interface/api/timeRecorder/ReadUsersAbsent';
|
|
638
641
|
export * from './Interface/api/timeRecorder/ReadUsersNotConnected';
|
|
639
642
|
export * from './Interface/api/timeRecorder/UpdateRecorder';
|
|
640
643
|
export * from './Interface/api/inpiBalance/QueryInpiBalanceStatistic';
|