@silexpert/core 1.0.175 → 1.0.177
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/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/statistic/CustomerSuccess.js +1 -1
- package/es/api/resources/statistic/CustomerSuccess.js.map +1 -1
- package/es/types/Enum/TimeRecorderLocation.d.ts +4 -0
- package/es/types/Enum/TimeRecorderLocation.d.ts.map +1 -1
- package/es/types/Enum/TimeRecorderLocation.js +3 -0
- package/es/types/Enum/TimeRecorderLocation.js.map +1 -1
- package/es/types/Interface/api/statistic/QueryInternal.d.ts +2 -0
- package/es/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
- package/es/types/Interface/api/statistic/QueryInternal.js +3 -1
- package/es/types/Interface/api/statistic/QueryInternal.js.map +1 -1
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts +1 -0
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts.map +1 -1
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +6 -0
- package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -1
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.d.ts +5 -0
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.d.ts.map +1 -0
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js +25 -0
- package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js.map +1 -0
- package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts +5 -0
- package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts.map +1 -1
- package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -1
- package/es/types/index.d.ts +1 -2
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -2
- package/es/types/index.js.map +1 -1
- package/js/api/resources/TimeRecorder.js +5 -0
- package/js/api/resources/TimeRecorder.js.map +1 -1
- package/js/api/resources/statistic/CustomerSuccess.js +1 -1
- package/js/api/resources/statistic/CustomerSuccess.js.map +1 -1
- package/js/types/Enum/TimeRecorderLocation.js +4 -0
- package/js/types/Enum/TimeRecorderLocation.js.map +1 -1
- package/js/types/Interface/api/statistic/QueryInternal.js +4 -2
- package/js/types/Interface/api/statistic/QueryInternal.js.map +1 -1
- package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +1 -0
- package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -1
- package/js/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js +23 -0
- package/js/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js.map +1 -0
- package/js/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -1
- package/js/types/index.js +10 -20
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/TimeRecorder.ts +4 -1
- package/ts/api/resources/statistic/CustomerSuccess.ts +1 -1
- package/ts/types/Enum/TimeRecorderLocation.ts +4 -0
- package/ts/types/Interface/api/statistic/QueryInternal.ts +2 -0
- package/ts/types/Interface/api/timeRecorder/QueryPaginatedDelays.ts +5 -0
- package/ts/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.ts +15 -0
- package/ts/types/Interface/api/timeRecorder/ReadPaginatedDelays.ts +7 -1
- package/ts/types/index.ts +1 -2
- package/es/types/Interface/models/IInterestedByFeature.d.ts +0 -11
- package/es/types/Interface/models/IInterestedByFeature.d.ts.map +0 -1
- package/es/types/Interface/models/IInterestedByFeature.js +0 -2
- package/es/types/Interface/models/IInterestedByFeature.js.map +0 -1
- package/es/types/Interface/models/IPageView.d.ts +0 -10
- package/es/types/Interface/models/IPageView.d.ts.map +0 -1
- package/es/types/Interface/models/IPageView.js +0 -2
- package/es/types/Interface/models/IPageView.js.map +0 -1
- package/js/types/Interface/models/IInterestedByFeature.js +0 -6
- package/js/types/Interface/models/IInterestedByFeature.js.map +0 -1
- package/js/types/Interface/models/IPageView.js +0 -6
- package/js/types/Interface/models/IPageView.js.map +0 -1
- package/ts/types/Interface/models/IInterestedByFeature.ts +0 -14
- package/ts/types/Interface/models/IPageView.ts +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.177",
|
|
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",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected, ITimeRecorder, UpdateRecorder, ReadUsersAbsent,
|
|
3
|
+
ReadAttendanceHours, QueryAttendance, QueryPaginatedDelays, ReadPaginatedDelays, BasePaginate, ReadUsersNotConnected, ITimeRecorder, UpdateRecorder, QueryTimeRecorderGetStats, ReadUsersAbsent, ReadPlaceToWork,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class TimeRecorder extends Resource {
|
|
@@ -21,6 +21,9 @@ export class TimeRecorder extends Resource {
|
|
|
21
21
|
return this.axios.$get('paginated-delays',
|
|
22
22
|
{ params });
|
|
23
23
|
}
|
|
24
|
+
getStats(params: QueryTimeRecorderGetStats): Promise<ReadPlaceToWork> {
|
|
25
|
+
return this.axios.$get('/stats', { params });
|
|
26
|
+
}
|
|
24
27
|
getUsersAbsent(): Promise<ReadUsersAbsent[]> {
|
|
25
28
|
return this.axios.$get('/users/absent');
|
|
26
29
|
}
|
|
@@ -4,6 +4,6 @@ import { QueryCustomerSuccess } from '../../../types';
|
|
|
4
4
|
|
|
5
5
|
export class StatisticCustomerSuccess extends Resource {
|
|
6
6
|
public get(params: QueryCustomerSuccess, cancelToken?: CancelToken): Promise<JSON> {
|
|
7
|
-
return this.axios.$get('/statistic-
|
|
7
|
+
return this.axios.$get('/statistic-customer-success', { params, ...(cancelToken ? { cancelToken } : {}) });
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsDateString, IsOptional, IsArray,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryTimeRecorderGetStats {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
@IsDateString()
|
|
9
|
+
startDate: string;
|
|
10
|
+
|
|
11
|
+
@ApiPropertyOptional()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
@IsArray()
|
|
14
|
+
idUser?: number[];
|
|
15
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -93,7 +93,6 @@ export * from './Interface/models/IGedFile';
|
|
|
93
93
|
export * from './Interface/models/IGedFolder';
|
|
94
94
|
export * from './Interface/models/IIdentification';
|
|
95
95
|
export * from './Interface/models/IIndependentReview';
|
|
96
|
-
export * from './Interface/models/IInterestedByFeature';
|
|
97
96
|
export * from './Interface/models/IInternalEstimate';
|
|
98
97
|
export * from './Interface/models/IIpTmpBlocked';
|
|
99
98
|
export * from './Interface/models/IProductInvoice';
|
|
@@ -119,7 +118,6 @@ export * from './Interface/models/INote';
|
|
|
119
118
|
export * from './Interface/models/INotification';
|
|
120
119
|
export * from './Interface/models/IOldExpertInfo';
|
|
121
120
|
export * from './Interface/models/IOperationLegalNotice';
|
|
122
|
-
export * from './Interface/models/IPageView';
|
|
123
121
|
export * from './Interface/models/IPartneredAccountant';
|
|
124
122
|
export * from './Interface/models/IPartneredAccountantCompanyService';
|
|
125
123
|
export * from './Interface/models/IPartneredAccountantPicture';
|
|
@@ -637,6 +635,7 @@ export * from './Interface/api/workingSchedule/UpdateOrCreateWorkingSchedule';
|
|
|
637
635
|
export * from './Interface/api/workingSchedule/QueryDailyHour';
|
|
638
636
|
export * from './Interface/api/timeRecorder/QueryAttendance';
|
|
639
637
|
export * from './Interface/api/timeRecorder/QueryPaginatedDelays';
|
|
638
|
+
export * from './Interface/api/timeRecorder/QueryTimeRecorderGetStats';
|
|
640
639
|
export * from './Interface/api/timeRecorder/ReadAttendanceHours';
|
|
641
640
|
export * from './Interface/api/timeRecorder/ReadPaginatedDelays';
|
|
642
641
|
export * from './Interface/api/timeRecorder/ReadUsersAbsent';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ISociety } from './ISociety';
|
|
2
|
-
export interface IInterestedByFeature {
|
|
3
|
-
id?: number;
|
|
4
|
-
email: string | null;
|
|
5
|
-
idTypeFeature: number | null;
|
|
6
|
-
idSociety: number;
|
|
7
|
-
createdAt?: Date | null;
|
|
8
|
-
updatedAt?: Date | null;
|
|
9
|
-
society: ISociety;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=IInterestedByFeature.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IInterestedByFeature.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IInterestedByFeature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,EAAE,QAAQ,CAAC;CACnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IInterestedByFeature.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IInterestedByFeature.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from './ISociety';\n\n// interestedByFeatures\nexport interface IInterestedByFeature {\n id?: number;\n email: string | null;\n idTypeFeature: number | null;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society: ISociety;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPageView.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPageView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,WAAW,SAAS;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,EAAE,QAAQ,CAAC;CACnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPageView.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IPageView.ts"],"names":[],"mappings":"","sourcesContent":["import { ISociety } from './ISociety';\n\n// pageViews\nexport interface IPageView {\n id?: number;\n idPage: number | null;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society: ISociety;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IInterestedByFeature.js","names":[],"sources":["../../../../ts/types/Interface/models/IInterestedByFeature.ts"],"sourcesContent":["import { ISociety } from './ISociety';\n\n// interestedByFeatures\nexport interface IInterestedByFeature {\n id?: number;\n email: string | null;\n idTypeFeature: number | null;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society: ISociety;\n}\n"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPageView.js","names":[],"sources":["../../../../ts/types/Interface/models/IPageView.ts"],"sourcesContent":["import { ISociety } from './ISociety';\n\n// pageViews\nexport interface IPageView {\n id?: number;\n idPage: number | null;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society: ISociety;\n}\n"],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ISociety } from './ISociety';
|
|
2
|
-
|
|
3
|
-
// interestedByFeatures
|
|
4
|
-
export interface IInterestedByFeature {
|
|
5
|
-
id?: number;
|
|
6
|
-
email: string | null;
|
|
7
|
-
idTypeFeature: number | null;
|
|
8
|
-
idSociety: number;
|
|
9
|
-
createdAt?: Date | null;
|
|
10
|
-
updatedAt?: Date | null;
|
|
11
|
-
|
|
12
|
-
// Associations
|
|
13
|
-
society: ISociety;
|
|
14
|
-
}
|