@mft/moneyhub-api-client
Version:
Node.JS client for the Moneyhub API
23 lines • 892 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = ({ config, request }) => {
const { resourceServerUrl } = config;
return {
getStandardFinancialStatements: async ({ userId, params = {} }, options) => request(`${resourceServerUrl}/standard-financial-statements`, {
searchParams: params,
cc: {
scope: "standard_financial_statement:read",
sub: userId,
},
options,
}),
getStandardFinancialStatement: async ({ userId, reportId }, options) => request(`${resourceServerUrl}/standard-financial-statements/${reportId}`, {
cc: {
scope: "standard_financial_statement:read",
sub: userId,
},
options,
}),
};
};
//# sourceMappingURL=standard-financial-statements.js.map