@hello-bill/node 2.1.1-beta.5 → 2.1.1-beta.7
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/CHANGELOG.md +21 -22
- package/dist/express/index.d.cts +2 -2
- package/dist/express/index.d.ts +2 -2
- package/dist/express/index.js +1 -20
- package/dist/express/index.js.map +1 -1
- package/dist/express/index.mjs +1 -20
- 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 +1 -20
- package/dist/hono/index.js.map +1 -1
- package/dist/hono/index.mjs +1 -20
- package/dist/hono/index.mjs.map +1 -1
- package/dist/{index-BAETgMms.d.ts → index-D5WlUYVZ.d.cts} +1 -7
- package/dist/{index-9PkSdjVq.d.cts → index-jK9cEnEY.d.ts} +1 -7
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -17
- 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 +1 -20
- package/dist/koa/index.js.map +1 -1
- package/dist/koa/index.mjs +1 -20
- 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 +1 -23
- package/dist/next/index.js.map +1 -1
- package/dist/next/index.mjs +1 -23
- 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/webhook/index.d.cts +2 -2
- package/dist/webhook/index.d.ts +2 -2
- package/dist/{webhooks-Cv4e8oXp.d.cts → webhooks-DePW-Bjp.d.cts} +16 -1
- package/dist/{webhooks-Cv4e8oXp.d.ts → webhooks-DePW-Bjp.d.ts} +16 -1
- package/package.json +1 -1
package/dist/koa/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CreateHellobillHandlerOptions } from '../index-
|
|
2
|
-
import '../webhooks-
|
|
1
|
+
import { C as CreateHellobillHandlerOptions } from '../index-D5WlUYVZ.cjs';
|
|
2
|
+
import '../webhooks-DePW-Bjp.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Koa adapter for the framework-agnostic SDK core.
|
package/dist/koa/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CreateHellobillHandlerOptions } from '../index-
|
|
2
|
-
import '../webhooks-
|
|
1
|
+
import { C as CreateHellobillHandlerOptions } from '../index-jK9cEnEY.js';
|
|
2
|
+
import '../webhooks-DePW-Bjp.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Koa adapter for the framework-agnostic SDK core.
|
package/dist/koa/index.js
CHANGED
|
@@ -932,21 +932,6 @@ function createHellobillHandler(opts) {
|
|
|
932
932
|
if (!result2) return;
|
|
933
933
|
passthroughUpstream(res, result2.status, result2.body, result2.requestId, result2.headers);
|
|
934
934
|
};
|
|
935
|
-
const loaDocument = async (req, res) => {
|
|
936
|
-
const rawLoa = req.query.loa_id ?? req.params?.id;
|
|
937
|
-
const loaId = Array.isArray(rawLoa) ? rawLoa[0] : rawLoa;
|
|
938
|
-
if (!loaId) {
|
|
939
|
-
sendError(res, 400, "validation.missing_required_field", "loa_id query parameter required");
|
|
940
|
-
return;
|
|
941
|
-
}
|
|
942
|
-
const result2 = await safeCallUpstream(res, {
|
|
943
|
-
method: "GET",
|
|
944
|
-
path: `/partner/loa/${encodeURIComponent(loaId)}/document`,
|
|
945
|
-
logger
|
|
946
|
-
});
|
|
947
|
-
if (!result2) return;
|
|
948
|
-
passthroughUpstream(res, result2.status, result2.body, result2.requestId, result2.headers);
|
|
949
|
-
};
|
|
950
935
|
const webhookHandler = opts.webhook ? createWebhookHandler({ ...opts.webhook, logger: opts.webhook.logger ?? opts.logger }) : void 0;
|
|
951
936
|
const result = {
|
|
952
937
|
session,
|
|
@@ -958,8 +943,7 @@ function createHellobillHandler(opts) {
|
|
|
958
943
|
property,
|
|
959
944
|
sessions: { list: sessionsList, get: sessionsGet },
|
|
960
945
|
savingsSummary,
|
|
961
|
-
serviceSlots
|
|
962
|
-
loaDocument
|
|
946
|
+
serviceSlots
|
|
963
947
|
};
|
|
964
948
|
if (webhookHandler !== void 0) {
|
|
965
949
|
result.webhook = webhookHandler;
|
|
@@ -1076,9 +1060,6 @@ function createHellobillRouter(opts) {
|
|
|
1076
1060
|
router.get("/property", asyncWrap(handlers.property, false));
|
|
1077
1061
|
router.get("/sessions", asyncWrap(handlers.sessions.list, false));
|
|
1078
1062
|
router.get("/sessions/:id", asyncWrap(handlers.sessions.get, false));
|
|
1079
|
-
router.get("/service-slots", asyncWrap(handlers.serviceSlots, false));
|
|
1080
|
-
router.get("/savings-summary", asyncWrap(handlers.savingsSummary, false));
|
|
1081
|
-
router.get("/loa-document", asyncWrap(handlers.loaDocument, false));
|
|
1082
1063
|
return router;
|
|
1083
1064
|
}
|
|
1084
1065
|
|