@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.
Files changed (67) hide show
  1. package/es/api/resources/TimeRecorder.d.ts +2 -1
  2. package/es/api/resources/TimeRecorder.d.ts.map +1 -1
  3. package/es/api/resources/TimeRecorder.js +3 -0
  4. package/es/api/resources/TimeRecorder.js.map +1 -1
  5. package/es/api/resources/statistic/CustomerSuccess.js +1 -1
  6. package/es/api/resources/statistic/CustomerSuccess.js.map +1 -1
  7. package/es/types/Enum/TimeRecorderLocation.d.ts +4 -0
  8. package/es/types/Enum/TimeRecorderLocation.d.ts.map +1 -1
  9. package/es/types/Enum/TimeRecorderLocation.js +3 -0
  10. package/es/types/Enum/TimeRecorderLocation.js.map +1 -1
  11. package/es/types/Interface/api/statistic/QueryInternal.d.ts +2 -0
  12. package/es/types/Interface/api/statistic/QueryInternal.d.ts.map +1 -1
  13. package/es/types/Interface/api/statistic/QueryInternal.js +3 -1
  14. package/es/types/Interface/api/statistic/QueryInternal.js.map +1 -1
  15. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts +1 -0
  16. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.d.ts.map +1 -1
  17. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +6 -0
  18. package/es/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -1
  19. package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.d.ts +5 -0
  20. package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.d.ts.map +1 -0
  21. package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js +25 -0
  22. package/es/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js.map +1 -0
  23. package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts +5 -0
  24. package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.d.ts.map +1 -1
  25. package/es/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -1
  26. package/es/types/index.d.ts +1 -2
  27. package/es/types/index.d.ts.map +1 -1
  28. package/es/types/index.js +1 -2
  29. package/es/types/index.js.map +1 -1
  30. package/js/api/resources/TimeRecorder.js +5 -0
  31. package/js/api/resources/TimeRecorder.js.map +1 -1
  32. package/js/api/resources/statistic/CustomerSuccess.js +1 -1
  33. package/js/api/resources/statistic/CustomerSuccess.js.map +1 -1
  34. package/js/types/Enum/TimeRecorderLocation.js +4 -0
  35. package/js/types/Enum/TimeRecorderLocation.js.map +1 -1
  36. package/js/types/Interface/api/statistic/QueryInternal.js +4 -2
  37. package/js/types/Interface/api/statistic/QueryInternal.js.map +1 -1
  38. package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js +1 -0
  39. package/js/types/Interface/api/timeRecorder/QueryPaginatedDelays.js.map +1 -1
  40. package/js/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js +23 -0
  41. package/js/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.js.map +1 -0
  42. package/js/types/Interface/api/timeRecorder/ReadPaginatedDelays.js.map +1 -1
  43. package/js/types/index.js +10 -20
  44. package/js/types/index.js.map +1 -1
  45. package/package.json +1 -1
  46. package/ts/api/resources/TimeRecorder.ts +4 -1
  47. package/ts/api/resources/statistic/CustomerSuccess.ts +1 -1
  48. package/ts/types/Enum/TimeRecorderLocation.ts +4 -0
  49. package/ts/types/Interface/api/statistic/QueryInternal.ts +2 -0
  50. package/ts/types/Interface/api/timeRecorder/QueryPaginatedDelays.ts +5 -0
  51. package/ts/types/Interface/api/timeRecorder/QueryTimeRecorderGetStats.ts +15 -0
  52. package/ts/types/Interface/api/timeRecorder/ReadPaginatedDelays.ts +7 -1
  53. package/ts/types/index.ts +1 -2
  54. package/es/types/Interface/models/IInterestedByFeature.d.ts +0 -11
  55. package/es/types/Interface/models/IInterestedByFeature.d.ts.map +0 -1
  56. package/es/types/Interface/models/IInterestedByFeature.js +0 -2
  57. package/es/types/Interface/models/IInterestedByFeature.js.map +0 -1
  58. package/es/types/Interface/models/IPageView.d.ts +0 -10
  59. package/es/types/Interface/models/IPageView.d.ts.map +0 -1
  60. package/es/types/Interface/models/IPageView.js +0 -2
  61. package/es/types/Interface/models/IPageView.js.map +0 -1
  62. package/js/types/Interface/models/IInterestedByFeature.js +0 -6
  63. package/js/types/Interface/models/IInterestedByFeature.js.map +0 -1
  64. package/js/types/Interface/models/IPageView.js +0 -6
  65. package/js/types/Interface/models/IPageView.js.map +0 -1
  66. package/ts/types/Interface/models/IInterestedByFeature.ts +0 -14
  67. 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.175",
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-cs', { params, ...(cancelToken ? { cancelToken } : {}) });
7
+ return this.axios.$get('/statistic-customer-success', { params, ...(cancelToken ? { cancelToken } : {}) });
8
8
  }
9
9
  }
@@ -6,4 +6,8 @@ export const TimeRecorderLocation = {
6
6
  id: 5,
7
7
  name: 'Télétravail',
8
8
  },
9
+ WITHOUT_PLACE: {
10
+ id: 6,
11
+ name: 'NC',
12
+ },
9
13
  };
@@ -13,7 +13,9 @@ export class QueryInternal {
13
13
  @IsOptional()
14
14
  @IsNumber()
15
15
  idUser?: number;
16
+ }
16
17
 
18
+ export class QueryInternalCustomerSuccess {
17
19
  @ApiPropertyOptional()
18
20
  @IsOptional()
19
21
  @IsArray()
@@ -33,4 +33,9 @@ export class QueryPaginatedDelays {
33
33
  @IsOptional()
34
34
  @IsNumber()
35
35
  page?: number;
36
+
37
+ @ApiPropertyOptional()
38
+ @IsOptional()
39
+ @IsArray()
40
+ location?: number[];
36
41
  }
@@ -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
+ }
@@ -18,4 +18,10 @@ export interface ReadPaginatedDelays {
18
18
  firstname: string;
19
19
  lastname: string;
20
20
  days: DelaysByDay
21
- }
21
+ }
22
+
23
+ export type ReadPlaceToWork = Array< {
24
+ location: string;
25
+ id: number;
26
+ value: number;
27
+ }>;
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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IInterestedByFeature.js.map
@@ -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,10 +0,0 @@
1
- import { ISociety } from './ISociety';
2
- export interface IPageView {
3
- id?: number;
4
- idPage: number | null;
5
- idSociety: number;
6
- createdAt?: Date | null;
7
- updatedAt?: Date | null;
8
- society: ISociety;
9
- }
10
- //# sourceMappingURL=IPageView.d.ts.map
@@ -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,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IPageView.js.map
@@ -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,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=IInterestedByFeature.js.map
@@ -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,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=IPageView.js.map
@@ -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
- }
@@ -1,13 +0,0 @@
1
- import { ISociety } from './ISociety';
2
-
3
- // pageViews
4
- export interface IPageView {
5
- id?: number;
6
- idPage: number | null;
7
- idSociety: number;
8
- createdAt?: Date | null;
9
- updatedAt?: Date | null;
10
-
11
- // Associations
12
- society: ISociety;
13
- }