@palbase/backend 22.1.0 → 23.0.0
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/bin/palbase-backend.cjs +439 -18
- package/dist/bin/palbase-backend.cjs.map +1 -1
- package/dist/bin/palbase-backend.js +4 -4
- package/dist/{chunk-SQC5EIWY.js → chunk-FSGSB42K.js} +11 -6
- package/dist/chunk-FSGSB42K.js.map +1 -0
- package/dist/{chunk-I3ON7MYF.js → chunk-HAF67F2H.js} +73 -16
- package/dist/chunk-HAF67F2H.js.map +1 -0
- package/dist/{chunk-QMVK4X3V.js → chunk-OMRTHM4X.js} +98 -98
- package/dist/chunk-OMRTHM4X.js.map +1 -0
- package/dist/{chunk-74XDEF5J.js → chunk-REZU6UKT.js} +432 -17
- package/dist/chunk-REZU6UKT.js.map +1 -0
- package/dist/{chunk-YL4C5NRY.js → chunk-Y5HXVUMP.js} +2 -2
- package/dist/{chunk-N32VDWKH.js → chunk-ZC6Q2BRD.js} +4 -59
- package/dist/chunk-ZC6Q2BRD.js.map +1 -0
- package/dist/db/env.cjs.map +1 -1
- package/dist/db/env.d.cts +3 -21
- package/dist/db/env.d.ts +3 -21
- package/dist/db/index.cjs +72 -15
- package/dist/db/index.cjs.map +1 -1
- package/dist/db/index.d.cts +3 -2
- package/dist/db/index.d.ts +3 -2
- package/dist/db/index.js +1 -1
- package/dist/{endpoint-BVT6jcVW.d.cts → endpoint-BavvbW4P.d.ts} +77 -7
- package/dist/{endpoint-BVT6jcVW.d.ts → endpoint-i8TTCohk.d.cts} +77 -7
- package/dist/engine/index.cjs +439 -18
- package/dist/engine/index.cjs.map +1 -1
- package/dist/engine/index.d.cts +6 -5
- package/dist/engine/index.d.ts +6 -5
- package/dist/engine/index.js +3 -3
- package/dist/{index-vwHoS0l2.d.ts → index-B3jmmItD.d.ts} +111 -5
- package/dist/{index-CCZqzych.d.ts → index-B7YBEG5w.d.ts} +96 -71
- package/dist/{index-BqCiHao8.d.cts → index-Bmvx1EvJ.d.cts} +111 -5
- package/dist/{index-BS1gW4nV.d.cts → index-E7OscPJT.d.cts} +96 -71
- package/dist/index.cjs +285 -1099
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +89 -1134
- package/dist/index.d.ts +89 -1134
- package/dist/index.js +107 -902
- package/dist/index.js.map +1 -1
- package/dist/openapi/index.cjs +3 -57
- package/dist/openapi/index.cjs.map +1 -1
- package/dist/openapi/index.d.cts +3 -2
- package/dist/openapi/index.d.ts +3 -2
- package/dist/openapi/index.js +5 -22
- package/dist/openapi/index.js.map +1 -1
- package/dist/{registry-Bsuf-orT.d.ts → registry-C3H2uPeZ.d.cts} +13 -169
- package/dist/{registry-BWttGlaT.d.cts → registry-DY3d9l1k.d.ts} +13 -169
- package/dist/{purchases/keys.cjs → stack.cjs} +4 -4
- package/dist/stack.cjs.map +1 -0
- package/dist/stack.d.cts +76 -0
- package/dist/stack.d.ts +76 -0
- package/dist/stack.js +1 -0
- package/docs/README.md +7 -6
- package/docs/llms-full.txt +7 -260
- package/docs/llms.txt +0 -2
- package/package.json +6 -6
- package/template/package.json +1 -1
- package/dist/chunk-74XDEF5J.js.map +0 -1
- package/dist/chunk-I3ON7MYF.js.map +0 -1
- package/dist/chunk-N32VDWKH.js.map +0 -1
- package/dist/chunk-QMVK4X3V.js.map +0 -1
- package/dist/chunk-SQC5EIWY.js.map +0 -1
- package/dist/purchases/keys.cjs.map +0 -1
- package/dist/purchases/keys.d.cts +0 -42
- package/dist/purchases/keys.d.ts +0 -42
- package/dist/purchases/keys.js +0 -1
- package/docs/config.md +0 -147
- package/docs/resources.md +0 -97
- package/template/config/secrets.ts +0 -24
- /package/dist/{chunk-YL4C5NRY.js.map → chunk-Y5HXVUMP.js.map} +0 -0
- /package/dist/{purchases/keys.js.map → stack.js.map} +0 -0
package/dist/openapi/index.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { OpenApiGeneratorV31 } from '@asteasolutions/zod-to-openapi';
|
|
2
2
|
import { ZodTypeAny } from 'zod';
|
|
3
|
-
import { A as AuthSpec, R as RateLimitConfig } from '../endpoint-
|
|
4
|
-
import { P as ParamMeta, T as ThrowDescriptor, U as UploadConfig } from '../registry-
|
|
3
|
+
import { A as AuthSpec, R as RateLimitConfig } from '../endpoint-i8TTCohk.cjs';
|
|
4
|
+
import { P as ParamMeta, T as ThrowDescriptor, U as UploadConfig } from '../registry-C3H2uPeZ.cjs';
|
|
5
|
+
import '../stack.cjs';
|
|
5
6
|
|
|
6
7
|
/** A controller class (constructor). Kept loose — the only contract is that it
|
|
7
8
|
* is a `@Controller`-decorated class, asserted via {@link isController}. */
|
package/dist/openapi/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { OpenApiGeneratorV31 } from '@asteasolutions/zod-to-openapi';
|
|
2
2
|
import { ZodTypeAny } from 'zod';
|
|
3
|
-
import { A as AuthSpec, R as RateLimitConfig } from '../endpoint-
|
|
4
|
-
import { P as ParamMeta, T as ThrowDescriptor, U as UploadConfig } from '../registry-
|
|
3
|
+
import { A as AuthSpec, R as RateLimitConfig } from '../endpoint-BavvbW4P.js';
|
|
4
|
+
import { P as ParamMeta, T as ThrowDescriptor, U as UploadConfig } from '../registry-DY3d9l1k.js';
|
|
5
|
+
import '../stack.js';
|
|
5
6
|
|
|
6
7
|
/** A controller class (constructor). Kept loose — the only contract is that it
|
|
7
8
|
* is a `@Controller`-decorated class, asserted via {@link isController}. */
|
package/dist/openapi/index.js
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
spendFor
|
|
5
|
-
} from "../chunk-N32VDWKH.js";
|
|
2
|
+
getErrorRegistry
|
|
3
|
+
} from "../chunk-ZC6Q2BRD.js";
|
|
6
4
|
import {
|
|
7
5
|
isController,
|
|
8
6
|
resolveController
|
|
9
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-Y5HXVUMP.js";
|
|
10
8
|
import {
|
|
11
9
|
getRoutes
|
|
12
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-OMRTHM4X.js";
|
|
13
11
|
import {
|
|
14
12
|
__commonJS,
|
|
15
13
|
__require,
|
|
@@ -5792,19 +5790,6 @@ var import_fast_glob = __toESM(require_out4(), 1);
|
|
|
5792
5790
|
import path from "path";
|
|
5793
5791
|
import { pathToFileURL } from "url";
|
|
5794
5792
|
|
|
5795
|
-
// src/purchases/openapi.ts
|
|
5796
|
-
function purchaseThrows(ctor, fnName) {
|
|
5797
|
-
const out = [];
|
|
5798
|
-
if (entitlementFor(ctor, fnName) !== void 0) {
|
|
5799
|
-
out.push({ name: "EntitlementRequired", code: "entitlement_required" });
|
|
5800
|
-
}
|
|
5801
|
-
if (spendFor(ctor, fnName) !== void 0) {
|
|
5802
|
-
out.push({ name: "QuotaExceeded", code: "quota_exceeded" });
|
|
5803
|
-
out.push({ name: "CreditInsufficient", code: "credit_insufficient" });
|
|
5804
|
-
}
|
|
5805
|
-
return out;
|
|
5806
|
-
}
|
|
5807
|
-
|
|
5808
5793
|
// src/openapi/discover.ts
|
|
5809
5794
|
function capitalizeSegment(s) {
|
|
5810
5795
|
if (s.length === 0) return s;
|
|
@@ -5875,11 +5860,9 @@ function flattenController(controller) {
|
|
|
5875
5860
|
break;
|
|
5876
5861
|
}
|
|
5877
5862
|
}
|
|
5878
|
-
const purchases = purchaseThrows(controller, route.fnName);
|
|
5879
5863
|
const seen = new Set((route.throws ?? []).map((t) => t.code));
|
|
5880
5864
|
const allThrows = [
|
|
5881
|
-
...route.throws ?? []
|
|
5882
|
-
...purchases.filter((t) => !seen.has(t.code))
|
|
5865
|
+
...route.throws ?? []
|
|
5883
5866
|
];
|
|
5884
5867
|
out.push({
|
|
5885
5868
|
method: route.method,
|