@figuredev/business-config-sdk
Advanced tools
Comparing version 0.15.77 to 0.15.78
@@ -21,3 +21,3 @@ import { AccountDTO, PreparedImageUploadDTO } from "./account"; | ||
import { TerminalDTO, TerminalPreviewDTO } from "./terminal"; | ||
import { TimeRecordLogDTO, TimeRecordReportResponseDTO } from "./timeRecord"; | ||
import { TimeRecordLogDTO, TimeRecordReportBreakResponseDTO, TimeRecordReportResponseDTO } from "./timeRecord"; | ||
import { UserContext } from "./utils"; | ||
@@ -98,2 +98,9 @@ type BusinessConfigClientConfig = { | ||
}; | ||
export type GetTimeRecordBreaksQueryParams = { | ||
accountId: string; | ||
dateFrom: string; | ||
dateTo: string; | ||
locationIds?: string[]; | ||
employeeIds?: string[]; | ||
}; | ||
export declare class BusinessConfigClient { | ||
@@ -146,3 +153,4 @@ private config; | ||
getTimeRecordReport(ctx: UserContext, params: GetTimeRecordReportQueryParams): Promise<TimeRecordReportResponseDTO>; | ||
getTimeRecordBreaks(ctx: UserContext, params: GetTimeRecordBreaksQueryParams): Promise<TimeRecordReportBreakResponseDTO[]>; | ||
} | ||
export {}; |
@@ -469,4 +469,16 @@ "use strict"; | ||
} | ||
getTimeRecordBreaks(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/break", | ||
headers: this.prepareHeaders(ctx), | ||
params: params, | ||
}); | ||
return data; | ||
}); | ||
} | ||
} | ||
exports.BusinessConfigClient = BusinessConfigClient; | ||
//# sourceMappingURL=index.js.map |
@@ -36,3 +36,3 @@ import { Maybe } from "./utils"; | ||
timezone?: Maybe<string>; | ||
breaks: TimeRecordBreakDTO[]; | ||
breaks: TimeRecordBreakReportDTO[]; | ||
}; | ||
@@ -81,3 +81,8 @@ export type TimeRecordLogDTO = { | ||
duration: Maybe<number>; | ||
userAccountId: string; | ||
employeeFullName?: Maybe<string>; | ||
locationId: string; | ||
locationName?: Maybe<string>; | ||
}; | ||
export type TimeRecordBreakReportDTO = Omit<TimeRecordBreakDTO, "userAccountId" | "employeeFullName" | "locationId" | "locationName">; | ||
export declare enum TimeRecordBreakTypeDTO { | ||
@@ -98,1 +103,6 @@ Paid = "paid", | ||
}; | ||
export type TimeRecordReportBreakResponseDTO = { | ||
userAccountId: string; | ||
employeeFullName?: Maybe<string>; | ||
breaks: Omit<TimeRecordBreakDTO, "userAccountId" | "employeeFullName">[]; | ||
}; |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.15.77", | ||
"version": "0.15.78", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
87233
1933