@figuredev/orders-sdk
Advanced tools
Comparing version 0.12.68 to 0.12.69
@@ -1,2 +0,2 @@ | ||
import { NetCollectedBreakdownByEmployeeReportDTO, NetCollectedBreakdownReportDTO, SummaryGraphDTO, SummaryReportCsvDTO, TransactionByAssignmentReportDTO, TransactionByCategoryReportDTO, TransactionByPaymentTypeByEmployeeReportDTO, TransactionByPaymentTypeReportDTO, TransactionBySourceReportDTO } from "./reportsTypes"; | ||
import { NetCollectedBreakdownByEmployeeReportDTO, NetCollectedBreakdownReportDTO, ReportExportType, SummaryGraphDTO, SummaryReportCsvDTO, TransactionByAssignmentReportDTO, TransactionByCategoryReportDTO, TransactionByPaymentTypeByEmployeeReportDTO, TransactionByPaymentTypeReportDTO, TransactionBySourceReportDTO } from "./reportsTypes"; | ||
import { IsoDate } from "./types"; | ||
@@ -71,5 +71,5 @@ import { UserContext } from "./utils"; | ||
employeeName?: string; | ||
type: string; | ||
type: ReportExportType; | ||
}): Promise<SummaryReportCsvDTO[]>; | ||
} | ||
export {}; |
@@ -14,2 +14,3 @@ "use strict"; | ||
const axios_1 = require("axios"); | ||
const reportsTypes_1 = require("./reportsTypes"); | ||
class ReportsClient { | ||
@@ -135,2 +136,3 @@ constructor(config) { | ||
data: Object.assign(Object.assign(Object.assign({ from: params.from, to: params.to }, (params.locationIds ? { locationIds: params.locationIds } : null)), (params.employeeName ? { employeeName: params.employeeName } : null)), { type: params.type }), | ||
responseType: params.type === reportsTypes_1.ReportExportType.Excel ? "arraybuffer" : "json", | ||
}) | ||
@@ -137,0 +139,0 @@ .then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : []; }); |
{ | ||
"name": "@figuredev/orders-sdk", | ||
"version": "0.12.68", | ||
"version": "0.12.69", | ||
"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
61614
1200