@figuredev/orders-sdk
Advanced tools
Comparing version 0.12.53 to 0.12.54
@@ -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>; | ||
}; |
{ | ||
"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
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
53636
1040