@hello-bill/node 2.2.0-beta.4 → 2.2.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/express/index.d.cts +3 -2
- package/dist/express/index.d.ts +3 -2
- package/dist/express/index.js +18 -0
- package/dist/express/index.js.map +1 -1
- package/dist/express/index.mjs +18 -0
- package/dist/express/index.mjs.map +1 -1
- package/dist/hono/index.d.cts +2 -2
- package/dist/hono/index.d.ts +2 -2
- package/dist/hono/index.js +17 -0
- package/dist/hono/index.js.map +1 -1
- package/dist/hono/index.mjs +17 -0
- package/dist/hono/index.mjs.map +1 -1
- package/dist/{index-weK_H8io.d.cts → index-D1Y88dmC.d.cts} +12 -1
- package/dist/{index-CtQgDuFR.d.ts → index-sSyUfAhM.d.ts} +12 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -0
- package/dist/index.mjs.map +1 -1
- package/dist/koa/index.d.cts +2 -2
- package/dist/koa/index.d.ts +2 -2
- package/dist/koa/index.js +17 -0
- package/dist/koa/index.js.map +1 -1
- package/dist/koa/index.mjs +17 -0
- package/dist/koa/index.mjs.map +1 -1
- package/dist/next/index.d.cts +2 -2
- package/dist/next/index.d.ts +2 -2
- package/dist/next/index.js +17 -0
- package/dist/next/index.js.map +1 -1
- package/dist/next/index.mjs +17 -0
- package/dist/next/index.mjs.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs.map +1 -1
- package/dist/webhook/index.d.cts +2 -2
- package/dist/webhook/index.d.ts +2 -2
- package/dist/{webhooks-iwkEPw9n.d.cts → webhooks-CfpQ4PEE.d.cts} +9 -0
- package/dist/{webhooks-iwkEPw9n.d.ts → webhooks-CfpQ4PEE.d.ts} +9 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -933,6 +933,22 @@ function createHellobillHandler(opts) {
|
|
|
933
933
|
if (!result2) return;
|
|
934
934
|
passthroughUpstream(res, result2.status, result2.body, result2.requestId, result2.headers);
|
|
935
935
|
};
|
|
936
|
+
const sessionResume = async (req, res) => {
|
|
937
|
+
const id = typeof req.params?.id === "string" ? req.params.id : void 0;
|
|
938
|
+
if (!id || id.length === 0) {
|
|
939
|
+
sendError(res, 400, "validation.missing_required_field", "sessions/:id/resume requires a non-empty id path param");
|
|
940
|
+
return;
|
|
941
|
+
}
|
|
942
|
+
const result2 = await safeCallUpstream(res, {
|
|
943
|
+
method: "POST",
|
|
944
|
+
path: `/partner/sessions/${encodeURIComponent(id)}/resume`,
|
|
945
|
+
body: req.body,
|
|
946
|
+
idempotencyKey: inboundIdempotencyKey(req) ?? idempotencyKeyFactory(),
|
|
947
|
+
logger
|
|
948
|
+
});
|
|
949
|
+
if (!result2) return;
|
|
950
|
+
passthroughUpstream(res, result2.status, result2.body, result2.requestId, result2.headers);
|
|
951
|
+
};
|
|
936
952
|
const savingsSummary = async (req, res) => {
|
|
937
953
|
const rawCustomer = req.query.customer_id ?? req.params?.id;
|
|
938
954
|
const customerId = Array.isArray(rawCustomer) ? rawCustomer[0] : rawCustomer;
|
|
@@ -1003,6 +1019,7 @@ function createHellobillHandler(opts) {
|
|
|
1003
1019
|
products,
|
|
1004
1020
|
property,
|
|
1005
1021
|
sessions: { list: sessionsList, get: sessionsGet },
|
|
1022
|
+
sessionResume,
|
|
1006
1023
|
savingsSummary,
|
|
1007
1024
|
serviceSlots,
|
|
1008
1025
|
loaDocument
|