@figuredev/business-config-sdk
Advanced tools
Comparing version 0.15.72 to 0.15.73
@@ -21,2 +21,3 @@ import { AccountDTO, PreparedImageUploadDTO } from "./account"; | ||
import { TerminalDTO, TerminalPreviewDTO } from "./terminal"; | ||
import { TimeRecordLogDTO } from "./timeRecord"; | ||
import { UserContext } from "./utils"; | ||
@@ -84,2 +85,8 @@ type BusinessConfigClientConfig = { | ||
}; | ||
export type GetTimeRecordLogsQueryParams = { | ||
accountId: string; | ||
dateFrom?: string; | ||
dateTo?: string; | ||
locationIds?: string[]; | ||
}; | ||
export declare class BusinessConfigClient { | ||
@@ -130,3 +137,4 @@ private config; | ||
getMenu(ctx: UserContext, params: GetMenuQueryParams): Promise<MenuDTO>; | ||
getTimeRecordLogs(ctx: UserContext, params: GetTimeRecordLogsQueryParams): Promise<TimeRecordLogDTO[]>; | ||
} | ||
export {}; |
@@ -444,4 +444,17 @@ "use strict"; | ||
} | ||
getTimeRecordLogs(ctx, params) { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const { data } = yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
method: "GET", | ||
url: "/time-record/log", | ||
headers: this.prepareHeaders(ctx), | ||
params: Object.assign(Object.assign({}, params), { locationIds: (_a = params.locationIds) === null || _a === void 0 ? void 0 : _a.join(",") }), | ||
}); | ||
return data; | ||
}); | ||
} | ||
} | ||
exports.BusinessConfigClient = BusinessConfigClient; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@figuredev/business-config-sdk", | ||
"version": "0.15.72", | ||
"version": "0.15.73", | ||
"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
81114
77
1785