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.53 to 0.12.54

6

lib/reports.d.ts

@@ -47,2 +47,8 @@ import { NetCollectedBreakdownByEmployeeReportDTO, NetCollectedBreakdownReportDTO, SummaryGraphDTO, TransactionByAssignmentReportDTO, TransactionByPaymentTypeByEmployeeReportDTO, TransactionByPaymentTypeReportDTO, TransactionBySourceReportDTO } from "./reportsTypes";

}): Promise<TransactionByAssignmentReportDTO[]>;
getTransactionsByCategoryReport(ctx: UserContext, params: {
from: IsoDate;
to: IsoDate;
assigneeIds?: string[];
locationIds?: string[];
}): Promise<TransactionByAssignmentReportDTO[]>;
getNetCollectedBreakdownReport(ctx: UserContext, params: {

@@ -49,0 +55,0 @@ from: IsoDate;

@@ -86,2 +86,15 @@ "use strict";

}
getTransactionsByCategoryReport(ctx, params) {
return __awaiter(this, void 0, void 0, function* () {
return yield axios_1.default
.request({
baseURL: this.config.baseUrl,
method: "POST",
url: "/report/transactions-by-category",
headers: this.prepareHeaders(ctx),
data: Object.assign(Object.assign({ from: params.from, to: params.to }, (params.assigneeIds ? { assigneeIds: params.assigneeIds } : null)), (params.locationIds ? { locationIds: params.locationIds } : null)),
})
.then((r) => { var _a; return (_a = r.data) !== null && _a !== void 0 ? _a : []; });
});
}
getNetCollectedBreakdownReport(ctx, params) {

@@ -88,0 +101,0 @@ return __awaiter(this, void 0, void 0, function* () {

@@ -50,2 +50,10 @@ import { Maybe } from "./types";

};
export declare type TransactionByCategoryReportDTO = {
name: string;
count: number;
percentage_amount: number;
percentage_count: number;
sum_net_revenue: number;
children?: TransactionByCategoryReportDTO[];
};
export declare type NetCollectedBreakdownReportDTO = {

@@ -97,1 +105,11 @@ sum_net_collected: number;

};
export declare type CategoryDimDTO = {
id: string;
category_id: string;
category_parent_id: Maybe<string>;
name: Maybe<string>;
type: Maybe<string>;
account_id: string;
fromTimestamp: string;
toTimestamp: Maybe<string>;
};

2

package.json
{
"name": "@figuredev/orders-sdk",
"version": "0.12.53",
"version": "0.12.54",
"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