Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@figuredev/orders-sdk

Package Overview
Dependencies
Maintainers
8
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figuredev/orders-sdk - npm Package Compare versions

Comparing version 0.12.62 to 0.12.63

7

lib/reports.d.ts

@@ -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;
};

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc