@figuredev/orders-sdk
Advanced tools
Comparing version 0.14.4 to 0.15.0
@@ -71,3 +71,4 @@ import { NetCollectedBreakdownByEmployeeReportDTO, NetCollectedBreakdownByPaymentTypeReportDTO, NetCollectedBreakdownReportDTO, OrderListReportDTO, ReportExportType, SalesTaxReportDTO, SummaryGraphDTO, SummaryReportCsvDTO, TipsAndGratuityByAssignmentDTO, TipsGratuityByEmployeeHourlyReportDTO, TransactionByAssignmentReportDTO, TransactionByCategoryReportDTO, TransactionByPaymentTypeByEmployeeReportDTO, TransactionByPaymentTypeReportDTO, TransactionBySourceReportDTO } from "./reportsTypes"; | ||
getTipsGratuityByEmployeeHourlyReport(ctx: UserContext, params: ReportHourlyParams): Promise<TipsGratuityByEmployeeHourlyReportDTO[]>; | ||
private post; | ||
} | ||
export {}; |
@@ -15,2 +15,3 @@ "use strict"; | ||
const ramda_1 = require("ramda"); | ||
const http_1 = require("./http"); | ||
const reportsTypes_1 = require("./reportsTypes"); | ||
@@ -195,11 +196,16 @@ class ReportsClient { | ||
getTipsGratuityByEmployeeHourlyReport(ctx, params) { | ||
return this.post(ctx, "/report/tips-gratuity-by-employee-hourly", params); | ||
} | ||
post(ctx, url, data, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const { data } = yield axios_1.default.request({ | ||
method: "GET", | ||
const r = yield (0, http_1.createHttpRequest)({ | ||
baseURL: this.config.baseUrl, | ||
url: "/report/tips-gratuity-by-employee-hourly", | ||
method: "POST", | ||
url: url, | ||
headers: this.prepareHeaders(ctx), | ||
data: params, | ||
data: data, | ||
params: params, | ||
timeout: 300000, | ||
}); | ||
return data; | ||
return r.data; | ||
}); | ||
@@ -206,0 +212,0 @@ } |
{ | ||
"name": "@figuredev/orders-sdk", | ||
"version": "0.14.4", | ||
"version": "0.15.0", | ||
"license": "ISC", | ||
@@ -18,5 +18,7 @@ "files": [ | ||
"scripts": { | ||
"prepublish": "yarn build", | ||
"build": "rm -rf lib && tsc" | ||
"prepublishOnly": "yarn test && yarn build", | ||
"build": "rm -rf lib && tsc", | ||
"test": "(cd ../ && yarn test sdk)", | ||
"postpublish": "rm -rf lib" | ||
} | ||
} |
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
96154
48
1821