@tourmalinecore/inner-circle-time-api-js-client 1.3.0 → 1.4.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/index.d.ts +59 -1
- package/dist/index.js +19 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,11 @@ export interface CreateUnwellResponse {
|
|
|
23
23
|
/** @format int64 */
|
|
24
24
|
newUnwellEntryId: number;
|
|
25
25
|
}
|
|
26
|
+
export interface EmployeeDto {
|
|
27
|
+
/** @format int64 */
|
|
28
|
+
id: number;
|
|
29
|
+
fullName: string;
|
|
30
|
+
}
|
|
26
31
|
export interface EmployeeTrackedTaskHourDto {
|
|
27
32
|
/** @format int64 */
|
|
28
33
|
employeeId: number;
|
|
@@ -30,6 +35,9 @@ export interface EmployeeTrackedTaskHourDto {
|
|
|
30
35
|
trackedHours: number;
|
|
31
36
|
}
|
|
32
37
|
export type EntryType = number;
|
|
38
|
+
export interface GetAllEmployeesResponse {
|
|
39
|
+
employees: EmployeeDto[];
|
|
40
|
+
}
|
|
33
41
|
export interface GetAllProjectsResponse {
|
|
34
42
|
projects: ProjectDto[];
|
|
35
43
|
}
|
|
@@ -40,6 +48,13 @@ export interface GetEntriesByPeriodResponse {
|
|
|
40
48
|
taskEntries: TaskEntryDto[];
|
|
41
49
|
unwellEntries: UnwellEntryDto[];
|
|
42
50
|
}
|
|
51
|
+
export interface GetPersonalReportResponse {
|
|
52
|
+
trackedEntries: TrackedEntryDto[];
|
|
53
|
+
/** @format double */
|
|
54
|
+
taskHours: number;
|
|
55
|
+
/** @format double */
|
|
56
|
+
unwellHours: number;
|
|
57
|
+
}
|
|
43
58
|
export interface ProjectDto {
|
|
44
59
|
/** @format int64 */
|
|
45
60
|
id: number;
|
|
@@ -53,6 +68,10 @@ export interface SoftDeleteEntryRequest {
|
|
|
53
68
|
id?: number;
|
|
54
69
|
deletionReason: string;
|
|
55
70
|
}
|
|
71
|
+
export interface TaskDto {
|
|
72
|
+
id: string;
|
|
73
|
+
title: string;
|
|
74
|
+
}
|
|
56
75
|
export interface TaskEntryDto {
|
|
57
76
|
/** @format int64 */
|
|
58
77
|
id: number;
|
|
@@ -67,6 +86,20 @@ export interface TaskEntryDto {
|
|
|
67
86
|
taskId: string;
|
|
68
87
|
description: string;
|
|
69
88
|
}
|
|
89
|
+
export interface TrackedEntryDto {
|
|
90
|
+
/** @format int64 */
|
|
91
|
+
id: number;
|
|
92
|
+
/** @format double */
|
|
93
|
+
trackedHoursPerDay: number;
|
|
94
|
+
/** @format date-time */
|
|
95
|
+
startTime: string;
|
|
96
|
+
/** @format date-time */
|
|
97
|
+
endTime: string;
|
|
98
|
+
entryType: EntryType;
|
|
99
|
+
project: ProjectDto;
|
|
100
|
+
task: TaskDto;
|
|
101
|
+
description?: string | null;
|
|
102
|
+
}
|
|
70
103
|
export interface UnwellEntryDto {
|
|
71
104
|
/** @format int64 */
|
|
72
105
|
id: number;
|
|
@@ -141,7 +174,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
141
174
|
}
|
|
142
175
|
/**
|
|
143
176
|
* @title inner-circle-time-api
|
|
144
|
-
* @version 1.
|
|
177
|
+
* @version 1.4.0
|
|
145
178
|
* @baseUrl http://localhost:6507/
|
|
146
179
|
*/
|
|
147
180
|
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
@@ -228,6 +261,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
228
261
|
* @request DELETE:/api/tracking/entries/{entryId}/soft-delete
|
|
229
262
|
*/
|
|
230
263
|
trackingSoftDeleteEntry: (entryId: number, data: SoftDeleteEntryRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
264
|
+
/**
|
|
265
|
+
* No description
|
|
266
|
+
*
|
|
267
|
+
* @tags Reporting
|
|
268
|
+
* @name ReportingGetAllEmployees
|
|
269
|
+
* @summary Get all employees
|
|
270
|
+
* @request GET:/api/reporting/employees
|
|
271
|
+
*/
|
|
272
|
+
reportingGetAllEmployees: (params?: RequestParams) => Promise<AxiosResponse<GetAllEmployeesResponse, any, {}>>;
|
|
273
|
+
/**
|
|
274
|
+
* No description
|
|
275
|
+
*
|
|
276
|
+
* @tags Reporting
|
|
277
|
+
* @name ReportingGetPersonalReport
|
|
278
|
+
* @summary Get personal report
|
|
279
|
+
* @request GET:/api/reporting/personal-report
|
|
280
|
+
*/
|
|
281
|
+
reportingGetPersonalReport: (query: {
|
|
282
|
+
/** @format int64 */
|
|
283
|
+
employeeId: number;
|
|
284
|
+
/** @format int32 */
|
|
285
|
+
year: number;
|
|
286
|
+
/** @format int32 */
|
|
287
|
+
month: number;
|
|
288
|
+
}, params?: RequestParams) => Promise<AxiosResponse<GetPersonalReportResponse, any, {}>>;
|
|
231
289
|
/**
|
|
232
290
|
* No description
|
|
233
291
|
*
|
package/dist/index.js
CHANGED
|
@@ -110,7 +110,7 @@ class HttpClient {
|
|
|
110
110
|
exports.HttpClient = HttpClient;
|
|
111
111
|
/**
|
|
112
112
|
* @title inner-circle-time-api
|
|
113
|
-
* @version 1.
|
|
113
|
+
* @version 1.4.0
|
|
114
114
|
* @baseUrl http://localhost:6507/
|
|
115
115
|
*/
|
|
116
116
|
class Api extends HttpClient {
|
|
@@ -189,6 +189,24 @@ class Api extends HttpClient {
|
|
|
189
189
|
* @request DELETE:/api/tracking/entries/{entryId}/soft-delete
|
|
190
190
|
*/
|
|
191
191
|
trackingSoftDeleteEntry: (entryId, data, params = {}) => this.request(Object.assign({ path: `/api/tracking/entries/${entryId}/soft-delete`, method: "DELETE", body: data, type: ContentType.Json }, params)),
|
|
192
|
+
/**
|
|
193
|
+
* No description
|
|
194
|
+
*
|
|
195
|
+
* @tags Reporting
|
|
196
|
+
* @name ReportingGetAllEmployees
|
|
197
|
+
* @summary Get all employees
|
|
198
|
+
* @request GET:/api/reporting/employees
|
|
199
|
+
*/
|
|
200
|
+
reportingGetAllEmployees: (params = {}) => this.request(Object.assign({ path: `/api/reporting/employees`, method: "GET", format: "json" }, params)),
|
|
201
|
+
/**
|
|
202
|
+
* No description
|
|
203
|
+
*
|
|
204
|
+
* @tags Reporting
|
|
205
|
+
* @name ReportingGetPersonalReport
|
|
206
|
+
* @summary Get personal report
|
|
207
|
+
* @request GET:/api/reporting/personal-report
|
|
208
|
+
*/
|
|
209
|
+
reportingGetPersonalReport: (query, params = {}) => this.request(Object.assign({ path: `/api/reporting/personal-report`, method: "GET", query: query, format: "json" }, params)),
|
|
192
210
|
/**
|
|
193
211
|
* No description
|
|
194
212
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tourmalinecore/inner-circle-time-api-js-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Client for inner-circle-time-api that provides TypeScript types and client to make network calls from JavaScript.",
|
|
5
5
|
"homepage": "https://github.com/TourmalineCore/inner-circle-time-api#readme",
|
|
6
6
|
"bugs": {
|