@timetac/js-client-library
Advanced tools
Comparing version 0.26.2 to 0.26.3
@@ -0,1 +1,2 @@ | ||
declare type TimeTrackingPossibleNestedEntities = 'changeTimeTrackingRequests'; | ||
export interface TimeTracking { | ||
@@ -67,2 +68,5 @@ id: number; | ||
absence_request_id?: number; | ||
nestedEntities?: { | ||
[key in TimeTrackingPossibleNestedEntities]: Array<Record<string, unknown>>; | ||
}; | ||
} | ||
@@ -81,1 +85,2 @@ export declare type TimeTrackingCreate = Omit<TimeTracking, 'id'>; | ||
} | ||
export {}; |
export declare type RequestParams<R> = Record<string, string> & { | ||
_type?: R; | ||
}; | ||
declare type NestedParams = { | ||
[key: string]: undefined | Array<NestedParams>; | ||
}; | ||
export declare class RequestParamsBuilder<R extends Object> { | ||
@@ -26,2 +29,4 @@ protected requestParams: RequestParams<R>; | ||
getOffset(): number; | ||
nestedEntities(NestedParams: NestedParams): RequestParamsBuilder<R>; | ||
} | ||
export {}; |
@@ -96,4 +96,8 @@ "use strict"; | ||
} | ||
nestedEntities(NestedParams) { | ||
this.requestParams['nestedEntities'] = JSON.stringify(NestedParams); | ||
return this; | ||
} | ||
} | ||
exports.RequestParamsBuilder = RequestParamsBuilder; | ||
//# sourceMappingURL=requestParams.js.map |
{ | ||
"name": "@timetac/js-client-library", | ||
"version": "0.26.2", | ||
"version": "0.26.3", | ||
"description": "TimeTac API JS client library", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/TimeTac/js-client-library#readme", |
Sorry, the diff of this file is not supported yet
223624
3283