@timetac/js-client-library
Advanced tools
Comparing version 0.14.0 to 0.15.0
@@ -51,3 +51,3 @@ import { AbsenceDaysEndpoint } from './absenceDays'; | ||
export { TimesheetAccounting } from './timesheetAccountings/types'; | ||
export { StartTimeTrackingData, StopTimeTrackingData, TimeTracking, TimeTrackingCreate } from './timetrackings/types'; | ||
export { StartTimeTrackingData, StopTimeTrackingData, TimeTracking, TimeTrackingCreate, TimeTrackingUpdate } from './timetrackings/types'; | ||
export { Timezone } from './timezones/types'; | ||
@@ -54,0 +54,0 @@ export { TodoTask, TodoTaskCreate } from './todoTasks/types'; |
@@ -5,3 +5,3 @@ import BaseApi from '../baseApi'; | ||
import { ResourceResponse } from '../utils/response/resourceResponse'; | ||
import { StartTimeTrackingData, StopTimeTrackingData, TimeTracking, TimeTrackingCreate, ToggleTimeTrackingData } from './types'; | ||
import { StartTimeTrackingData, StopTimeTrackingData, TimeTracking, TimeTrackingCreate, TimeTrackingUpdate, ToggleTimeTrackingData } from './types'; | ||
export declare class TimeTrackingsEndpoint extends BaseApi { | ||
@@ -14,3 +14,3 @@ readonly resourceName = "timeTrackings"; | ||
create(data: TimeTrackingCreate): Promise<TimeTracking>; | ||
update(data: TimeTracking): Promise<TimeTracking>; | ||
update(data: TimeTrackingUpdate): Promise<TimeTracking>; | ||
delete(id: number): Promise<TimeTracking>; | ||
@@ -17,0 +17,0 @@ start(data: StartTimeTrackingData): Promise<ResourceResponse<TimeTracking>>; |
@@ -49,2 +49,10 @@ export interface TimeTracking { | ||
updated?: string; | ||
status_invoicing?: string; | ||
start_time__timezone_hours_to_add?: string; | ||
end_time__timezone_hours_to_add?: string; | ||
invoice_id?: string; | ||
is_offline_tracking?: boolean; | ||
insertIntoConflicting?: string; | ||
entityToCreateOnSplit?: string; | ||
_writePermissionType?: string; | ||
last_change_time_tracking_request_id?: number; | ||
@@ -61,2 +69,4 @@ client_unique_id?: string; | ||
export declare type TimeTrackingCreate = Omit<TimeTracking, 'id'>; | ||
export declare type TimeTrackingRead = Partial<Omit<TimeTracking, 'start_date' | 'timezone' | 'time' | 'geo_long' | 'geo_accuracy' | 'grantedUserComment' | 'requestUserComment' | 'isOfflineLiveTracking' | 'insertIntoConflicting' | 'entityToCreateOnSplit' | '_writePermissionType'>>; | ||
export declare type TimeTrackingUpdate = Pick<TimeTracking, 'id'> & Partial<Omit<TimeTracking, 'user_id' | 'department_id' | 'department_role_id' | 'start_date' | 'start_time__timezone_hours_to_add' | 'end_time__timezone_hours_to_add' | 'timezon' | 'is_start_live' | 'is_end_live' | 'time' | 'duration' | 'status' | 'start_ip' | 'end_ip' | 'is_statistic_countable' | 'input_type' | 'is_nonworking' | 'status_invoicing' | 'invoice_id' | 'geo_lat' | 'geo_long' | 'geo_accuracy' | 'updated' | 'last_change_time_tracking_request_id' | 'client_unique_id' | 'is_paid_non_working' | 'inherited_user_ids' | 'grantedUserComment' | 'entityToCreateOnSplit'>>; | ||
export interface StartTimeTrackingData extends Omit<TimeTracking, 'id' | 'task_id'> { | ||
@@ -63,0 +73,0 @@ task_id?: number; |
{ | ||
"name": "@timetac/js-client-library", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "TimeTac API JS client library", | ||
@@ -52,3 +52,3 @@ "homepage": "https://github.com/TimeTac/js-client-library#readme", | ||
"eslint-plugin-simple-import-sort": "^7.0.0", | ||
"husky": "^4.3.6", | ||
"husky-v4": "^4.3.8", | ||
"jest": "^26.6.3", | ||
@@ -55,0 +55,0 @@ "jest-ts-auto-mock": "^2.0.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
212546
3120