@pgfsm/api 0.0.0-stage → 0.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/esm/_dnt.polyfills.d.ts +17 -0
- package/esm/_dnt.polyfills.js +15 -0
- package/esm/_dnt.shims.d.ts +5 -0
- package/esm/_dnt.shims.js +61 -0
- package/esm/database-src/generated/database.types.d.ts +2131 -0
- package/esm/database-src/generated/database.types.js +21 -0
- package/esm/deps/jsr.io/@std/cli/1.0.31/parse_args.d.ts +342 -0
- package/esm/deps/jsr.io/@std/cli/1.0.31/parse_args.js +372 -0
- package/esm/fsm-api-ts/env.d.ts +143 -0
- package/esm/fsm-api-ts/env.js +72 -0
- package/esm/fsm-api-ts/lib/configure-open-api.d.ts +3 -0
- package/esm/fsm-api-ts/lib/configure-open-api.js +25 -0
- package/esm/fsm-api-ts/lib/constants.d.ts +15 -0
- package/esm/fsm-api-ts/lib/constants.js +11 -0
- package/esm/fsm-api-ts/lib/create-app.d.ts +19 -0
- package/esm/fsm-api-ts/lib/create-app.js +137 -0
- package/esm/fsm-api-ts/lib/create-router.d.ts +3 -0
- package/esm/fsm-api-ts/lib/create-router.js +10 -0
- package/esm/fsm-api-ts/lib/license.d.ts +13 -0
- package/esm/fsm-api-ts/lib/license.js +15 -0
- package/esm/fsm-api-ts/lib/types.d.ts +19 -0
- package/esm/fsm-api-ts/lib/types.js +1 -0
- package/esm/fsm-api-ts/logger.d.ts +3 -0
- package/esm/fsm-api-ts/logger.js +20 -0
- package/esm/fsm-api-ts/middlewares/api-key-auth.d.ts +34 -0
- package/esm/fsm-api-ts/middlewares/api-key-auth.js +70 -0
- package/esm/fsm-api-ts/middlewares/logtape-logger.d.ts +2 -0
- package/esm/fsm-api-ts/middlewares/logtape-logger.js +33 -0
- package/esm/fsm-api-ts/middlewares/otel-trace.d.ts +2 -0
- package/esm/fsm-api-ts/middlewares/otel-trace.js +29 -0
- package/esm/fsm-api-ts/middlewares/supabase.d.ts +10 -0
- package/esm/fsm-api-ts/middlewares/supabase.js +34 -0
- package/esm/fsm-api-ts/mod.d.ts +2 -0
- package/esm/fsm-api-ts/mod.js +6 -0
- package/esm/fsm-api-ts/routes/admin/admin.handlers.d.ts +8 -0
- package/esm/fsm-api-ts/routes/admin/admin.handlers.js +98 -0
- package/esm/fsm-api-ts/routes/admin/admin.index.d.ts +189 -0
- package/esm/fsm-api-ts/routes/admin/admin.index.js +11 -0
- package/esm/fsm-api-ts/routes/admin/admin.routes.d.ts +473 -0
- package/esm/fsm-api-ts/routes/admin/admin.routes.js +130 -0
- package/esm/fsm-api-ts/routes/definitions/definitions.handlers.d.ts +5 -0
- package/esm/fsm-api-ts/routes/definitions/definitions.handlers.js +29 -0
- package/esm/fsm-api-ts/routes/definitions/definitions.index.d.ts +86 -0
- package/esm/fsm-api-ts/routes/definitions/definitions.index.js +8 -0
- package/esm/fsm-api-ts/routes/definitions/definitions.routes.d.ts +204 -0
- package/esm/fsm-api-ts/routes/definitions/definitions.routes.js +56 -0
- package/esm/fsm-api-ts/routes/index.route.d.ts +19 -0
- package/esm/fsm-api-ts/routes/index.route.js +31 -0
- package/esm/fsm-api-ts/routes/instances/instances.handlers.d.ts +8 -0
- package/esm/fsm-api-ts/routes/instances/instances.handlers.js +108 -0
- package/esm/fsm-api-ts/routes/instances/instances.index.d.ts +237 -0
- package/esm/fsm-api-ts/routes/instances/instances.index.js +11 -0
- package/esm/fsm-api-ts/routes/instances/instances.routes.d.ts +411 -0
- package/esm/fsm-api-ts/routes/instances/instances.routes.js +104 -0
- package/esm/fsm-api-ts/src/cli/index.d.ts +2 -0
- package/esm/fsm-api-ts/src/cli/index.js +197 -0
- package/esm/fsm-api-ts/src/cli/invocation.node.d.ts +1 -0
- package/esm/fsm-api-ts/src/cli/invocation.node.js +4 -0
- package/esm/fsm-api-ts/src/cli/key-bootstrap.d.ts +14 -0
- package/esm/fsm-api-ts/src/cli/key-bootstrap.js +35 -0
- package/esm/fsm-api-ts/src/cli/serve.node.d.ts +6 -0
- package/esm/fsm-api-ts/src/cli/serve.node.js +20 -0
- package/esm/fsm-api-ts/src/cli/version.node.d.ts +1 -0
- package/esm/fsm-api-ts/src/cli/version.node.js +2 -0
- package/esm/fsm-api-ts/stoker-src/http-status-codes.d.ts +354 -0
- package/esm/fsm-api-ts/stoker-src/http-status-codes.js +356 -0
- package/esm/fsm-api-ts/stoker-src/http-status-phrases.d.ts +354 -0
- package/esm/fsm-api-ts/stoker-src/http-status-phrases.js +356 -0
- package/esm/fsm-api-ts/stoker-src/middlewares/index.d.ts +3 -0
- package/esm/fsm-api-ts/stoker-src/middlewares/index.js +3 -0
- package/esm/fsm-api-ts/stoker-src/middlewares/not-found.d.ts +3 -0
- package/esm/fsm-api-ts/stoker-src/middlewares/not-found.js +8 -0
- package/esm/fsm-api-ts/stoker-src/middlewares/on-error.d.ts +3 -0
- package/esm/fsm-api-ts/stoker-src/middlewares/on-error.js +19 -0
- package/esm/fsm-api-ts/stoker-src/middlewares/serve-emoji-favicon.d.ts +3 -0
- package/esm/fsm-api-ts/stoker-src/middlewares/serve-emoji-favicon.js +10 -0
- package/esm/fsm-api-ts/stoker-src/openapi/default-hook.d.ts +3 -0
- package/esm/fsm-api-ts/stoker-src/openapi/default-hook.js +11 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/index.d.ts +4 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/index.js +4 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/json-content-one-of.d.ts +12 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/json-content-one-of.js +14 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/json-content-required.d.ts +11 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/json-content-required.js +8 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/json-content.d.ts +10 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/json-content.js +11 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/one-of.d.ts +3 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/one-of.js +13 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/types.d.ts +2 -0
- package/esm/fsm-api-ts/stoker-src/openapi/helpers/types.js +1 -0
- package/esm/fsm-api-ts/stoker-src/openapi/index.d.ts +3 -0
- package/esm/fsm-api-ts/stoker-src/openapi/index.js +3 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/create-error-schema.d.ts +56 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/create-error-schema.js +25 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/create-message-object.d.ts +9 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/create-message-object.js +11 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/id-params.d.ts +9 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/id-params.js +13 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/id-uuid-params.d.ts +9 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/id-uuid-params.js +13 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/index.d.ts +5 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/index.js +5 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/slug-params.d.ts +9 -0
- package/esm/fsm-api-ts/stoker-src/openapi/schemas/slug-params.js +18 -0
- package/esm/fsm-core-db-ts/src/database.types.d.ts +4 -0
- package/esm/fsm-core-db-ts/src/database.types.js +17 -0
- package/esm/package.json +3 -0
- package/package.json +45 -3
- package/script/_dnt.polyfills.d.ts +17 -0
- package/script/_dnt.polyfills.js +16 -0
- package/script/_dnt.shims.d.ts +5 -0
- package/script/_dnt.shims.js +65 -0
- package/script/fsm-api-ts/mod.d.ts +2 -0
- package/script/fsm-api-ts/mod.js +10 -0
- package/script/fsm-api-ts/src/cli/version.node.d.ts +1 -0
- package/script/fsm-api-ts/src/cli/version.node.js +5 -0
- package/script/package.json +3 -0
- package/README.md +0 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Error {
|
|
3
|
+
cause?: unknown;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
7
|
+
declare global {
|
|
8
|
+
interface Object {
|
|
9
|
+
/**
|
|
10
|
+
* Determines whether an object has a property with the specified name.
|
|
11
|
+
* @param o An object.
|
|
12
|
+
* @param v A property name.
|
|
13
|
+
*/
|
|
14
|
+
hasOwn(o: object, v: PropertyKey): boolean;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
|
|
2
|
+
if (!Object.hasOwn) {
|
|
3
|
+
Object.defineProperty(Object, "hasOwn", {
|
|
4
|
+
value: function (object, property) {
|
|
5
|
+
if (object == null) {
|
|
6
|
+
throw new TypeError("Cannot convert undefined or null to object");
|
|
7
|
+
}
|
|
8
|
+
return Object.prototype.hasOwnProperty.call(Object(object), property);
|
|
9
|
+
},
|
|
10
|
+
configurable: true,
|
|
11
|
+
enumerable: false,
|
|
12
|
+
writable: true,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Deno } from "@deno/shim-deno";
|
|
2
|
+
export { Deno } from "@deno/shim-deno";
|
|
3
|
+
const dntGlobals = {
|
|
4
|
+
Deno,
|
|
5
|
+
};
|
|
6
|
+
export const dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
|
|
7
|
+
function createMergeProxy(baseObj, extObj) {
|
|
8
|
+
return new Proxy(baseObj, {
|
|
9
|
+
get(_target, prop, _receiver) {
|
|
10
|
+
if (prop in extObj) {
|
|
11
|
+
return extObj[prop];
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return baseObj[prop];
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
set(_target, prop, value) {
|
|
18
|
+
if (prop in extObj) {
|
|
19
|
+
delete extObj[prop];
|
|
20
|
+
}
|
|
21
|
+
baseObj[prop] = value;
|
|
22
|
+
return true;
|
|
23
|
+
},
|
|
24
|
+
deleteProperty(_target, prop) {
|
|
25
|
+
let success = false;
|
|
26
|
+
if (prop in extObj) {
|
|
27
|
+
delete extObj[prop];
|
|
28
|
+
success = true;
|
|
29
|
+
}
|
|
30
|
+
if (prop in baseObj) {
|
|
31
|
+
delete baseObj[prop];
|
|
32
|
+
success = true;
|
|
33
|
+
}
|
|
34
|
+
return success;
|
|
35
|
+
},
|
|
36
|
+
ownKeys(_target) {
|
|
37
|
+
const baseKeys = Reflect.ownKeys(baseObj);
|
|
38
|
+
const extKeys = Reflect.ownKeys(extObj);
|
|
39
|
+
const extKeysSet = new Set(extKeys);
|
|
40
|
+
return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
|
|
41
|
+
},
|
|
42
|
+
defineProperty(_target, prop, desc) {
|
|
43
|
+
if (prop in extObj) {
|
|
44
|
+
delete extObj[prop];
|
|
45
|
+
}
|
|
46
|
+
Reflect.defineProperty(baseObj, prop, desc);
|
|
47
|
+
return true;
|
|
48
|
+
},
|
|
49
|
+
getOwnPropertyDescriptor(_target, prop) {
|
|
50
|
+
if (prop in extObj) {
|
|
51
|
+
return Reflect.getOwnPropertyDescriptor(extObj, prop);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
return Reflect.getOwnPropertyDescriptor(baseObj, prop);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
has(_target, prop) {
|
|
58
|
+
return prop in extObj || prop in baseObj;
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
}
|