UNPKG

@mft/moneyhub-api-client

Version:
19 lines 696 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = ({ config, request }) => { const { resourceServerUrl } = config; return { getSpendingAnalysis: async ({ userId, dates, accountIds, categoryIds, projectIds }, options) => { return await request(`${resourceServerUrl}/spending-analysis`, { method: "POST", cc: { scope: "spending_analysis:read", sub: userId, }, body: { dates, accountIds, categoryIds, projectIds }, options, }); }, }; }; //# sourceMappingURL=spending-analysis.js.map