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

@figuredev/orders-sdk

Package Overview
Dependencies
Maintainers
0
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.14.4 to 0.15.0

lib/__tests__/reports.spec.d.ts

1

lib/reports.d.ts

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

16

lib/reports.js

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

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