@tourmalinecore/inner-circle-time-api-js-client 1.1.0 → 1.2.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 CHANGED
@@ -23,7 +23,19 @@ export interface CreateUnwellResponse {
23
23
  /** @format int64 */
24
24
  newUnwellEntryId: number;
25
25
  }
26
+ export interface EmployeeTrackedTaskHourDto {
27
+ /** @format int64 */
28
+ employeeId: number;
29
+ /** @format double */
30
+ trackedHours: number;
31
+ }
26
32
  export type EntryType = number;
33
+ export interface GetAllProjectsResponse {
34
+ projects: ProjectDto[];
35
+ }
36
+ export interface GetEmployeesTrackedTaskHoursResponse {
37
+ employeesTrackedTaskHours: EmployeeTrackedTaskHourDto[];
38
+ }
27
39
  export interface GetEntriesByPeriodResponse {
28
40
  taskEntries: TaskEntryDto[];
29
41
  unwellEntries: UnwellEntryDto[];
@@ -129,7 +141,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
129
141
  }
130
142
  /**
131
143
  * @title inner-circle-time-api
132
- * @version 1.1.0
144
+ * @version 1.2.0
133
145
  * @baseUrl http://localhost:6507/
134
146
  */
135
147
  export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -216,5 +228,30 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
216
228
  * @request DELETE:/api/tracking/entries/{entryId}/soft-delete
217
229
  */
218
230
  trackingSoftDeleteEntry: (entryId: number, data: SoftDeleteEntryRequest, params?: RequestParams) => Promise<AxiosResponse<void, any, {}>>;
231
+ /**
232
+ * No description
233
+ *
234
+ * @tags Internal
235
+ * @name InternalGetEmployeesTrackedTaskHours
236
+ * @summary Get employees tracked task hours
237
+ * @request GET:/api/internal/projects/tracked-task-hours
238
+ */
239
+ internalGetEmployeesTrackedTaskHours: (query: {
240
+ /** @format int64 */
241
+ projectId: number;
242
+ /** @format date */
243
+ startDate: string;
244
+ /** @format date */
245
+ endDate: string;
246
+ }, params?: RequestParams) => Promise<AxiosResponse<GetEmployeesTrackedTaskHoursResponse, any, {}>>;
247
+ /**
248
+ * No description
249
+ *
250
+ * @tags Internal
251
+ * @name InternalGetAllProjects
252
+ * @summary Get all projects
253
+ * @request GET:/api/internal/projects
254
+ */
255
+ internalGetAllProjects: (params?: RequestParams) => Promise<AxiosResponse<GetAllProjectsResponse, any, {}>>;
219
256
  };
220
257
  }
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.1.0
113
+ * @version 1.2.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 Internal
196
+ * @name InternalGetEmployeesTrackedTaskHours
197
+ * @summary Get employees tracked task hours
198
+ * @request GET:/api/internal/projects/tracked-task-hours
199
+ */
200
+ internalGetEmployeesTrackedTaskHours: (query, params = {}) => this.request(Object.assign({ path: `/api/internal/projects/tracked-task-hours`, method: "GET", query: query, format: "json" }, params)),
201
+ /**
202
+ * No description
203
+ *
204
+ * @tags Internal
205
+ * @name InternalGetAllProjects
206
+ * @summary Get all projects
207
+ * @request GET:/api/internal/projects
208
+ */
209
+ internalGetAllProjects: (params = {}) => this.request(Object.assign({ path: `/api/internal/projects`, method: "GET", format: "json" }, params)),
192
210
  };
193
211
  }
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.1.0",
3
+ "version": "1.2.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": {