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.42 to 0.12.43

lib/http.d.ts

40

lib/index.js

@@ -13,3 +13,3 @@ "use strict";

exports.OrdersClient = void 0;
const axios_1 = require("axios");
const http_1 = require("./http");
class OrdersClient {

@@ -24,3 +24,3 @@ constructor(config) {

return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default.request({
return yield http_1.createHttpRequest({
baseURL: this.config.baseUrl,

@@ -38,4 +38,3 @@ method: "POST",

return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
return yield http_1.createHttpRequest({
baseURL: this.config.baseUrl,

@@ -45,4 +44,3 @@ method: "GET",

headers: this.prepareHeaders(ctx),
})
.then((r) => r.data);
}).then((r) => r.data);
});

@@ -52,4 +50,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
return yield http_1.createHttpRequest({
baseURL: this.config.baseUrl,

@@ -65,4 +62,3 @@ method: "GET",

},
})
.then((r) => r.data.count);
}).then((r) => r.data.count);
});

@@ -72,4 +68,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
return yield http_1.createHttpRequest({
baseURL: this.config.baseUrl,

@@ -79,4 +74,3 @@ method: "GET",

headers: this.prepareHeaders(ctx),
})
.then((r) => { var _a; return (_a = r.data.exists) !== null && _a !== void 0 ? _a : false; });
}).then((r) => { var _a; return (_a = r.data.exists) !== null && _a !== void 0 ? _a : false; });
});

@@ -86,4 +80,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
return yield http_1.createHttpRequest({
baseURL: this.config.baseUrl,

@@ -97,4 +90,3 @@ method: "GET",

},
})
.then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : []; });
}).then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : []; });
});

@@ -104,4 +96,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
return yield http_1.createHttpRequest({
baseURL: this.config.baseUrl,

@@ -116,4 +107,3 @@ method: "GET",

},
})
.then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : { items: [] }; });
}).then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : { items: [] }; });
});

@@ -123,4 +113,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
return yield http_1.createHttpRequest({
baseURL: this.config.baseUrl,

@@ -135,4 +124,3 @@ method: "GET",

},
})
.then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : { hours: [] }; });
}).then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : { hours: [] }; });
});

@@ -139,0 +127,0 @@ }

@@ -56,5 +56,8 @@ import { Maybe } from "./types";

sum_voids: number;
special_pricings: SpecialPricingReportBreakdownDTO[];
sum_special_pricings: number;
sum_taxes: number;
taxes: TaxReportBreakdownDTO[];
sum_tips: number;
tips: TipReportBreakdownDTO[];
sum_gratuity: number;

@@ -69,2 +72,17 @@ sum_tips_and_gratuity: number;

};
export declare type SpecialPricingReportBreakdownDTO = {
name: string;
total: number;
net_collected: number;
};
export declare type TaxReportBreakdownDTO = {
name: string;
percentage: number;
total: number;
net_collected: number;
};
export declare type TipReportBreakdownDTO = {
name: string;
total: number;
};
export declare type SummaryGraphDTO = {

@@ -71,0 +89,0 @@ date: Maybe<string>;

{
"name": "@figuredev/orders-sdk",
"version": "0.12.42",
"version": "0.12.43",
"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