@figuredev/business-config-sdk
Advanced tools
Comparing version 0.15.84 to 0.15.85
@@ -21,3 +21,3 @@ import { AccountDTO, PreparedImageUploadDTO } from "./account"; | ||
import { TerminalDTO, TerminalPreviewDTO } from "./terminal"; | ||
import { TimeRecordLogDTO, TimeRecordReportBreakResponseDTO, TimeRecordReportResponseDTO } from "./timeRecord"; | ||
import { TimeRecordDTO, TimeRecordLogDTO, TimeRecordReportBreakResponseDTO, TimeRecordReportResponseDTO } from "./timeRecord"; | ||
import { UserContext } from "./utils"; | ||
@@ -91,2 +91,9 @@ type BusinessConfigClientConfig = { | ||
}; | ||
export type GetTimeRecordsQueryParams = { | ||
accountId: string; | ||
dateFrom: string; | ||
dateTo: string; | ||
locationIds?: string[]; | ||
employeeIds?: string[]; | ||
}; | ||
export type GetTimeRecordReportQueryParams = { | ||
@@ -152,2 +159,3 @@ accountId: string; | ||
getTimeRecordLogs(ctx: UserContext, params: GetTimeRecordLogsQueryParams): Promise<TimeRecordLogDTO[]>; | ||
getTimeRecords(ctx: UserContext, params: GetTimeRecordsQueryParams): Promise<TimeRecordDTO[]>; | ||
getTimeRecordReport(ctx: UserContext, params: GetTimeRecordReportQueryParams): Promise<TimeRecordReportResponseDTO>; | ||
@@ -154,0 +162,0 @@ getTimeRecordBreaks(ctx: UserContext, params: GetTimeRecordBreaksQueryParams): Promise<TimeRecordReportBreakResponseDTO[]>; |
@@ -457,2 +457,14 @@ "use strict"; | ||
} | ||
getTimeRecords(ctx, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const { data } = yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: "/time-record", | ||
headers: this.prepareHeaders(ctx), | ||
params: params, | ||
}); | ||
return data; | ||
}); | ||
} | ||
getTimeRecordReport(ctx, params) { | ||
@@ -459,0 +471,0 @@ return __awaiter(this, void 0, void 0, function* () { |
@@ -21,4 +21,2 @@ import { Maybe } from "./utils"; | ||
lastUpdateTimestamp?: string; | ||
}; | ||
export type TimeRecordReportDTO = TimeRecordDTO & { | ||
employeeFirstName?: Maybe<string>; | ||
@@ -33,6 +31,2 @@ employeeMiddleName?: Maybe<string>; | ||
clockOutLocationName?: Maybe<string>; | ||
cost?: Maybe<number>; | ||
duration?: Maybe<number>; | ||
payableDuration?: Maybe<number>; | ||
totalDuration?: Maybe<number>; | ||
/** @deprecated */ | ||
@@ -44,2 +38,8 @@ timezone?: Maybe<string>; | ||
}; | ||
export type TimeRecordReportDTO = TimeRecordDTO & { | ||
cost?: Maybe<number>; | ||
duration?: Maybe<number>; | ||
payableDuration?: Maybe<number>; | ||
totalDuration?: Maybe<number>; | ||
}; | ||
export type TimeRecordLogDTO = { | ||
@@ -46,0 +46,0 @@ id: string; |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.15.84", | ||
"version": "0.15.85", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "files": [ |
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
89579
1978