@figuredev/orders-sdk
Advanced tools
Comparing version 0.12.62 to 0.12.63
@@ -1,2 +0,2 @@ | ||
import { NetCollectedBreakdownByEmployeeReportDTO, NetCollectedBreakdownReportDTO, SummaryGraphDTO, TransactionByAssignmentReportDTO, TransactionByCategoryReportDTO, TransactionByPaymentTypeByEmployeeReportDTO, TransactionByPaymentTypeReportDTO, TransactionBySourceReportDTO } from "./reportsTypes"; | ||
import { NetCollectedBreakdownByEmployeeReportDTO, NetCollectedBreakdownReportDTO, SummaryGraphDTO, SummaryReportCsvDTO, TransactionByAssignmentReportDTO, TransactionByCategoryReportDTO, TransactionByPaymentTypeByEmployeeReportDTO, TransactionByPaymentTypeReportDTO, TransactionBySourceReportDTO } from "./reportsTypes"; | ||
import { IsoDate } from "./types"; | ||
@@ -66,3 +66,8 @@ import { UserContext } from "./utils"; | ||
}): Promise<SummaryGraphDTO[]>; | ||
getSummaryCsvExportReport(ctx: UserContext, params: { | ||
from: IsoDate; | ||
to: IsoDate; | ||
locationIds?: string[]; | ||
}): Promise<SummaryReportCsvDTO[]>; | ||
} | ||
export {}; |
@@ -125,4 +125,17 @@ "use strict"; | ||
} | ||
getSummaryCsvExportReport(ctx, params) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield axios_1.default | ||
.request({ | ||
baseURL: this.config.baseUrl, | ||
method: "POST", | ||
url: "/report/summary-csv-export", | ||
headers: this.prepareHeaders(ctx), | ||
data: Object.assign({ from: params.from, to: params.to }, (params.locationIds ? { locationIds: params.locationIds } : null)), | ||
}) | ||
.then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : []; }); | ||
}); | ||
} | ||
} | ||
exports.ReportsClient = ReportsClient; | ||
//# sourceMappingURL=reports.js.map |
@@ -112,1 +112,32 @@ import { Maybe } from "./types"; | ||
}; | ||
export declare type SummaryReportCsvDTO = { | ||
date: string; | ||
locationName: string; | ||
sumGrossRevenue: number; | ||
sumVoids: number; | ||
sumRefunds: number; | ||
sumPricing: number; | ||
sumLossesAndForfeits: number; | ||
sumNetRevenue: number; | ||
sumTaxes: number; | ||
sumTips: number; | ||
sumGratuity: number; | ||
netRevenueTaxTipGratuity: number; | ||
sumServiceFee: number; | ||
sumCashDiscount: number; | ||
sumHistoricalRefunds: number; | ||
sumNetCollected: number; | ||
sumNetCollectedCash: number; | ||
sumNetCollectedCard: number; | ||
sumNetCollectedExternal: number; | ||
sumNetCollectedLoyalty: number; | ||
sumNetCollectedCardProgram: number; | ||
countCash: number; | ||
countCard: number; | ||
countExternal: number; | ||
countLoyalty: number; | ||
countCardProgram: number; | ||
countTransactions: number; | ||
countOrders: number; | ||
countGuests: number; | ||
}; |
{ | ||
"name": "@figuredev/orders-sdk", | ||
"version": "0.12.62", | ||
"version": "0.12.63", | ||
"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
60570
1186