@tourmalinecore/inner-circle-time-api-js-client 1.4.10 → 1.5.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 +47 -1
- package/dist/index.js +19 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
export interface CreateAwayWithMakeUpTimeEntryRequest {
|
|
2
|
+
/** @format date-time */
|
|
3
|
+
startTime: string;
|
|
4
|
+
/** @format date-time */
|
|
5
|
+
endTime: string;
|
|
6
|
+
description: string;
|
|
7
|
+
makeUpTimeList: MakeUpTimeEntryDto[];
|
|
8
|
+
}
|
|
9
|
+
export interface CreateAwayWithMakeUpTimeEntryResponse {
|
|
10
|
+
/** @format int64 */
|
|
11
|
+
newAwayWithMakeUpTimeEntryId: number;
|
|
12
|
+
}
|
|
1
13
|
export interface CreateTaskEntryRequest {
|
|
2
14
|
title: string;
|
|
3
15
|
/** @format date-time */
|
|
@@ -55,6 +67,12 @@ export interface GetPersonalReportResponse {
|
|
|
55
67
|
/** @format double */
|
|
56
68
|
unwellHours: number;
|
|
57
69
|
}
|
|
70
|
+
export interface MakeUpTimeEntryDto {
|
|
71
|
+
/** @format date-time */
|
|
72
|
+
startTime: string;
|
|
73
|
+
/** @format date-time */
|
|
74
|
+
endTime: string;
|
|
75
|
+
}
|
|
58
76
|
export interface ProjectDto {
|
|
59
77
|
/** @format int64 */
|
|
60
78
|
id: number;
|
|
@@ -111,6 +129,16 @@ export interface UnwellEntryDto {
|
|
|
111
129
|
endTime: string;
|
|
112
130
|
type: EntryType;
|
|
113
131
|
}
|
|
132
|
+
export interface UpdateAwayWithMakeUpTimeEntryRequest {
|
|
133
|
+
/** @format int64 */
|
|
134
|
+
id?: number;
|
|
135
|
+
/** @format date-time */
|
|
136
|
+
startTime: string;
|
|
137
|
+
/** @format date-time */
|
|
138
|
+
endTime: string;
|
|
139
|
+
description: string;
|
|
140
|
+
makeUpTimeList: MakeUpTimeEntryDto[];
|
|
141
|
+
}
|
|
114
142
|
export interface UpdateTaskEntryRequest {
|
|
115
143
|
/** @format int64 */
|
|
116
144
|
id?: number;
|
|
@@ -176,7 +204,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
176
204
|
}
|
|
177
205
|
/**
|
|
178
206
|
* @title inner-circle-time-api
|
|
179
|
-
* @version 1.
|
|
207
|
+
* @version 1.5.0
|
|
180
208
|
* @baseUrl http://localhost:6507/
|
|
181
209
|
*/
|
|
182
210
|
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
@@ -213,6 +241,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
213
241
|
* @request POST:/api/tracking/unwell-entries
|
|
214
242
|
*/
|
|
215
243
|
trackingCreateUnwellEntry: (data: CreateUnwellEntryRequest, params?: RequestParams) => Promise<AxiosResponse<CreateUnwellResponse, any, {}>>;
|
|
244
|
+
/**
|
|
245
|
+
* No description
|
|
246
|
+
*
|
|
247
|
+
* @tags Tracking
|
|
248
|
+
* @name TrackingCreateAwayWithMakeUpTimeEntry
|
|
249
|
+
* @summary Create an away with make up time entry
|
|
250
|
+
* @request POST:/api/tracking/away-with-make-up-time-entries
|
|
251
|
+
*/
|
|
252
|
+
trackingCreateAwayWithMakeUpTimeEntry: (data: CreateAwayWithMakeUpTimeEntryRequest, params?: RequestParams) => Promise<AxiosResponse<CreateAwayWithMakeUpTimeEntryResponse, any, {}>>;
|
|
216
253
|
/**
|
|
217
254
|
* No description
|
|
218
255
|
*
|
|
@@ -231,6 +268,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
231
268
|
* @request POST:/api/tracking/unwell-entries/{unwellEntryId}
|
|
232
269
|
*/
|
|
233
270
|
trackingUpdateUnwellEntry: (unwellEntryId: number, data: UpdateUnwellEntryRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
|
|
271
|
+
/**
|
|
272
|
+
* No description
|
|
273
|
+
*
|
|
274
|
+
* @tags Tracking
|
|
275
|
+
* @name TrackingUpdateAwayWithMakeUpTimeEntry
|
|
276
|
+
* @summary Update an away with make up time entry
|
|
277
|
+
* @request POST:/api/tracking/away-with-make-up-time-entries/{awayWithMakeUpTimeEntryId}
|
|
278
|
+
*/
|
|
279
|
+
trackingUpdateAwayWithMakeUpTimeEntry: (awayWithMakeUpTimeEntryId: number, data: UpdateAwayWithMakeUpTimeEntryRequest, params?: RequestParams) => Promise<AxiosResponse<CreateAwayWithMakeUpTimeEntryResponse, any, {}>>;
|
|
234
280
|
/**
|
|
235
281
|
* No description
|
|
236
282
|
*
|
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.5.0
|
|
114
114
|
* @baseUrl http://localhost:6507/
|
|
115
115
|
*/
|
|
116
116
|
class Api extends HttpClient {
|
|
@@ -144,6 +144,15 @@ class Api extends HttpClient {
|
|
|
144
144
|
* @request POST:/api/tracking/unwell-entries
|
|
145
145
|
*/
|
|
146
146
|
trackingCreateUnwellEntry: (data, params = {}) => this.request(Object.assign({ path: `/api/tracking/unwell-entries`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
147
|
+
/**
|
|
148
|
+
* No description
|
|
149
|
+
*
|
|
150
|
+
* @tags Tracking
|
|
151
|
+
* @name TrackingCreateAwayWithMakeUpTimeEntry
|
|
152
|
+
* @summary Create an away with make up time entry
|
|
153
|
+
* @request POST:/api/tracking/away-with-make-up-time-entries
|
|
154
|
+
*/
|
|
155
|
+
trackingCreateAwayWithMakeUpTimeEntry: (data, params = {}) => this.request(Object.assign({ path: `/api/tracking/away-with-make-up-time-entries`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
147
156
|
/**
|
|
148
157
|
* No description
|
|
149
158
|
*
|
|
@@ -162,6 +171,15 @@ class Api extends HttpClient {
|
|
|
162
171
|
* @request POST:/api/tracking/unwell-entries/{unwellEntryId}
|
|
163
172
|
*/
|
|
164
173
|
trackingUpdateUnwellEntry: (unwellEntryId, data, params = {}) => this.request(Object.assign({ path: `/api/tracking/unwell-entries/${unwellEntryId}`, method: "POST", body: data, type: ContentType.Json }, params)),
|
|
174
|
+
/**
|
|
175
|
+
* No description
|
|
176
|
+
*
|
|
177
|
+
* @tags Tracking
|
|
178
|
+
* @name TrackingUpdateAwayWithMakeUpTimeEntry
|
|
179
|
+
* @summary Update an away with make up time entry
|
|
180
|
+
* @request POST:/api/tracking/away-with-make-up-time-entries/{awayWithMakeUpTimeEntryId}
|
|
181
|
+
*/
|
|
182
|
+
trackingUpdateAwayWithMakeUpTimeEntry: (awayWithMakeUpTimeEntryId, data, params = {}) => this.request(Object.assign({ path: `/api/tracking/away-with-make-up-time-entries/${awayWithMakeUpTimeEntryId}`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
|
|
165
183
|
/**
|
|
166
184
|
* No description
|
|
167
185
|
*
|
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.5.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": {
|