@dokploy/trpc-openapi 0.0.5 → 0.0.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.
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ProcedureType } from "@trpc/server";
|
|
2
|
-
import { AnyZodObject } from "zod";
|
|
3
2
|
import { OpenApiMeta, OpenApiMethod, OpenApiProcedure, OpenApiProcedureRecord } from "../types";
|
|
4
3
|
export declare const getInputOutputParsers: (procedure: OpenApiProcedure) => {
|
|
5
|
-
inputParser:
|
|
4
|
+
inputParser: import("@trpc/server/dist/core/parser").Parser | undefined;
|
|
6
5
|
outputParser: import("@trpc/server/dist/core/parser").Parser | undefined;
|
|
7
6
|
};
|
|
8
7
|
export declare const getMethod: (procedure: OpenApiProcedure) => OpenApiMethod;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procedure.d.ts","sourceRoot":"","sources":["../../src/utils/procedure.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"procedure.d.ts","sourceRoot":"","sources":["../../src/utils/procedure.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,OAAO,EACN,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,MAAM,UAAU,CAAC;AASlB,eAAO,MAAM,qBAAqB,GAAI,WAAW,gBAAgB;;;CAOhE,CAAC;AASF,eAAO,MAAM,SAAS,GAAI,WAAW,gBAAgB,KAAG,aAEvD,CAAC;AAEF,eAAO,MAAM,uBAAuB,GACnC,iBAAiB,sBAAsB,EACvC,UAAU,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,OAAO,EAAE,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;CAC7C,KAAK,IAAI,SA4BV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procedure.js","sourceRoot":"","sources":["../../src/utils/procedure.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"procedure.js","sourceRoot":"","sources":["../../src/utils/procedure.ts"],"names":[],"mappings":";;;AAEA,6BAAyB;AASzB,MAAM,WAAW,GAAG,CAAC,YAA2B,EAAe,EAAE;IAChE,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE;QAC/C,OAAO,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IAC/B,CAAC,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC;AAEF,4EAA4E;AACrE,MAAM,qBAAqB,GAAG,CAAC,SAA2B,EAAE,EAAE;IACpE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC;IAC1C,OAAO;QACN,WAAW,EACV,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAuB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QACtE,YAAY,EAAE,MAAM;KACpB,CAAC;AACH,CAAC,CAAC;AAPW,QAAA,qBAAqB,yBAOhC;AAEF,MAAM,gBAAgB,GAAG,CAAC,SAA2B,EAAiB,EAAE;IACvE,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK;QAAE,OAAO,OAAO,CAAC;IACzC,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ;QAAE,OAAO,UAAU,CAAC;IAC/C,IAAI,SAAS,CAAC,IAAI,CAAC,YAAY;QAAE,OAAO,cAAc,CAAC;IACvD,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAC3C,CAAC,CAAC;AAEK,MAAM,SAAS,GAAG,CAAC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AI,OAAO,IAAI,OAAO,CAAC,OAAO,KAAK,KAAK,EAAE,CAAC;YAC1C,MAAM,IAAI,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;YACzC,aAAa;YACb,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;QAC9C,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAnCW,QAAA,uBAAuB,2BAmClC"}
|
package/dist/utils/zod.d.ts
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
export declare const instanceofZodType: (type:
|
|
3
|
-
export declare const instanceofZodTypeKind: <
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const instanceofZodType: (type: unknown) => type is z.ZodTypeAny;
|
|
3
|
+
export declare const instanceofZodTypeKind: <T extends z.ZodTypeAny, K extends string>(type: z.ZodTypeAny, kind: K) => type is T;
|
|
4
4
|
export declare const instanceofZodTypeOptional: (type: z.ZodTypeAny) => type is z.ZodOptional<z.ZodTypeAny>;
|
|
5
|
-
export declare const instanceofZodTypeObject: (type: z.ZodTypeAny) => type is z.ZodObject<
|
|
5
|
+
export declare const instanceofZodTypeObject: (type: z.ZodTypeAny) => type is z.ZodObject<any>;
|
|
6
6
|
export type ZodTypeLikeVoid = z.ZodVoid | z.ZodUndefined | z.ZodNever;
|
|
7
7
|
export declare const instanceofZodTypeLikeVoid: (type: z.ZodTypeAny) => type is ZodTypeLikeVoid;
|
|
8
8
|
export declare const unwrapZodType: (type: z.ZodTypeAny, unwrapPreprocess: boolean) => z.ZodTypeAny;
|
|
9
|
-
type
|
|
10
|
-
[k: string]: string | number;
|
|
11
|
-
[nu: number]: string;
|
|
12
|
-
};
|
|
13
|
-
export type ZodTypeLikeString = z.ZodString | z.ZodOptional<ZodTypeLikeString> | z.ZodDefault<ZodTypeLikeString> | z.ZodEffects<ZodTypeLikeString, unknown, unknown> | z.ZodUnion<[ZodTypeLikeString, ...ZodTypeLikeString[]]> | z.ZodIntersection<ZodTypeLikeString, ZodTypeLikeString> | z.ZodLazy<ZodTypeLikeString> | z.ZodLiteral<string> | z.ZodEnum<[string, ...string[]]> | z.ZodNativeEnum<NativeEnumType>;
|
|
9
|
+
export type ZodTypeLikeString = z.ZodString | z.ZodLiteral<string> | z.ZodEnum<any> | ReturnType<typeof z.nativeEnum> | z.ZodOptional<any> | z.ZodDefault<any> | z.ZodUnion<any> | z.ZodIntersection<any, any> | z.ZodLazy<any>;
|
|
14
10
|
export declare const instanceofZodTypeLikeString: (_type: z.ZodTypeAny) => _type is ZodTypeLikeString;
|
|
15
11
|
export declare const zodSupportsCoerce: boolean;
|
|
16
12
|
export type ZodTypeCoercible = z.ZodNumber | z.ZodBoolean | z.ZodBigInt | z.ZodDate;
|
|
17
13
|
export declare const instanceofZodTypeCoercible: (_type: z.ZodTypeAny) => _type is ZodTypeCoercible;
|
|
18
|
-
export {};
|
|
19
14
|
//# sourceMappingURL=zod.d.ts.map
|
package/dist/utils/zod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../src/utils/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../src/utils/zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,iBAAiB,GAC5B,MAAM,OAAO,KACZ,IAAI,IAAI,CAAC,CAAC,UAEZ,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,CAAC,SAAS,CAAC,CAAC,UAAU,EACtB,CAAC,SAAS,MAAM,EAEhB,MAAM,CAAC,CAAC,UAAU,EAClB,MAAM,CAAC,KACN,IAAI,IAAI,CAEV,CAAC;AAMF,eAAO,MAAM,yBAAyB,GACpC,MAAM,CAAC,CAA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IAAI,gBAUX,CAAC"}
|
package/dist/utils/zod.js
CHANGED
|
@@ -2,98 +2,103 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.instanceofZodTypeCoercible = exports.zodSupportsCoerce = exports.instanceofZodTypeLikeString = exports.unwrapZodType = exports.instanceofZodTypeLikeVoid = exports.instanceofZodTypeObject = exports.instanceofZodTypeOptional = exports.instanceofZodTypeKind = exports.instanceofZodType = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
/* ============================================================
|
|
6
|
+
Base helpers
|
|
7
|
+
============================================================ */
|
|
5
8
|
const instanceofZodType = (type) => {
|
|
6
|
-
var _a;
|
|
7
|
-
return !!((_a = type === null || type === void 0 ? void 0 : type.
|
|
9
|
+
var _a, _b;
|
|
10
|
+
return !!((_b = (_a = type === null || type === void 0 ? void 0 : type._zod) === null || _a === void 0 ? void 0 : _a.def) === null || _b === void 0 ? void 0 : _b.type);
|
|
8
11
|
};
|
|
9
12
|
exports.instanceofZodType = instanceofZodType;
|
|
10
|
-
const instanceofZodTypeKind = (type,
|
|
11
|
-
var _a;
|
|
12
|
-
return ((_a = type === null || type === void 0 ? void 0 : type.
|
|
13
|
+
const instanceofZodTypeKind = (type, kind) => {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
return ((_b = (_a = type === null || type === void 0 ? void 0 : type._zod) === null || _a === void 0 ? void 0 : _a.def) === null || _b === void 0 ? void 0 : _b.type) === kind;
|
|
13
16
|
};
|
|
14
17
|
exports.instanceofZodTypeKind = instanceofZodTypeKind;
|
|
18
|
+
/* ============================================================
|
|
19
|
+
Optional / Object
|
|
20
|
+
============================================================ */
|
|
15
21
|
const instanceofZodTypeOptional = (type) => {
|
|
16
|
-
return
|
|
22
|
+
return type instanceof zod_1.z.ZodOptional;
|
|
17
23
|
};
|
|
18
24
|
exports.instanceofZodTypeOptional = instanceofZodTypeOptional;
|
|
19
25
|
const instanceofZodTypeObject = (type) => {
|
|
20
|
-
return
|
|
26
|
+
return type instanceof zod_1.z.ZodObject;
|
|
21
27
|
};
|
|
22
28
|
exports.instanceofZodTypeObject = instanceofZodTypeObject;
|
|
23
29
|
const instanceofZodTypeLikeVoid = (type) => {
|
|
24
|
-
return ((0, exports.instanceofZodTypeKind)(type, zod_1.z.ZodFirstPartyTypeKind.ZodVoid) ||
|
|
25
|
-
(0, exports.instanceofZodTypeKind)(type, zod_1.z.ZodFirstPartyTypeKind.ZodUndefined) ||
|
|
26
|
-
(0, exports.instanceofZodTypeKind)(type, zod_1.z.ZodFirstPartyTypeKind.ZodNever));
|
|
27
|
-
};
|
|
28
|
-
exports.instanceofZodTypeLikeVoid = instanceofZodTypeLikeVoid;
|
|
29
|
-
/** Get inner type from ZodOptional (Zod 3: .unwrap(), Zod 4: _def.innerType) */
|
|
30
|
-
const getOptionalInnerType = (type) => {
|
|
31
30
|
var _a, _b;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/** Get inner type from ZodDefault (Zod 3: .removeDefault(), Zod 4: _def.innerType) */
|
|
35
|
-
const getDefaultInnerType = (type) => {
|
|
36
|
-
var _a, _b;
|
|
37
|
-
return (_b = (_a = type._def) === null || _a === void 0 ? void 0 : _a.innerType) !== null && _b !== void 0 ? _b : (typeof type.removeDefault === "function"
|
|
38
|
-
? type.removeDefault()
|
|
39
|
-
: type);
|
|
31
|
+
const t = (_b = (_a = type === null || type === void 0 ? void 0 : type._zod) === null || _a === void 0 ? void 0 : _a.def) === null || _b === void 0 ? void 0 : _b.type;
|
|
32
|
+
return t === "void" || t === "undefined" || t === "never";
|
|
40
33
|
};
|
|
34
|
+
exports.instanceofZodTypeLikeVoid = instanceofZodTypeLikeVoid;
|
|
35
|
+
/* ============================================================
|
|
36
|
+
unwrapZodType
|
|
37
|
+
============================================================ */
|
|
41
38
|
const unwrapZodType = (type, unwrapPreprocess) => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
39
|
+
var _a;
|
|
40
|
+
const def = (_a = type === null || type === void 0 ? void 0 : type._zod) === null || _a === void 0 ? void 0 : _a.def;
|
|
41
|
+
if (!def)
|
|
42
|
+
return type;
|
|
43
|
+
switch (def.type) {
|
|
44
|
+
case "optional":
|
|
45
|
+
return (0, exports.unwrapZodType)(def.innerType, unwrapPreprocess);
|
|
46
|
+
case "default":
|
|
47
|
+
return (0, exports.unwrapZodType)(def.innerType, unwrapPreprocess);
|
|
48
|
+
case "lazy":
|
|
49
|
+
return (0, exports.unwrapZodType)(def.getter(), unwrapPreprocess);
|
|
50
|
+
case "transform":
|
|
51
|
+
case "pipe":
|
|
52
|
+
return (0, exports.unwrapZodType)(def.schema, unwrapPreprocess);
|
|
53
|
+
case "preprocess":
|
|
54
|
+
if (unwrapPreprocess) {
|
|
55
|
+
return (0, exports.unwrapZodType)(def.schema, unwrapPreprocess);
|
|
56
|
+
}
|
|
57
|
+
return type;
|
|
58
|
+
default:
|
|
59
|
+
return type;
|
|
61
60
|
}
|
|
62
|
-
return type;
|
|
63
61
|
};
|
|
64
62
|
exports.unwrapZodType = unwrapZodType;
|
|
65
63
|
const instanceofZodTypeLikeString = (_type) => {
|
|
64
|
+
var _a;
|
|
66
65
|
const type = (0, exports.unwrapZodType)(_type, false);
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
const def = (_a = type === null || type === void 0 ? void 0 : type._zod) === null || _a === void 0 ? void 0 : _a.def;
|
|
67
|
+
if (!def)
|
|
68
|
+
return false;
|
|
69
|
+
switch (def.type) {
|
|
70
|
+
case "string":
|
|
69
71
|
return true;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return !Object.values(type._def.values).some((value) => typeof value === 'number');
|
|
72
|
+
case "literal":
|
|
73
|
+
return typeof def.value === "string";
|
|
74
|
+
case "enum":
|
|
75
|
+
return true;
|
|
76
|
+
case "nativeEnum":
|
|
77
|
+
return !Object.values(def.values).some((value) => typeof value === "number");
|
|
78
|
+
case "union":
|
|
79
|
+
return def.options.every((option) => (0, exports.instanceofZodTypeLikeString)(option));
|
|
80
|
+
case "intersection":
|
|
81
|
+
return ((0, exports.instanceofZodTypeLikeString)(def.left) &&
|
|
82
|
+
(0, exports.instanceofZodTypeLikeString)(def.right));
|
|
83
|
+
case "preprocess":
|
|
84
|
+
return true;
|
|
85
|
+
default:
|
|
86
|
+
return false;
|
|
86
87
|
}
|
|
87
|
-
return (0, exports.instanceofZodTypeKind)(type, zod_1.z.ZodFirstPartyTypeKind.ZodString);
|
|
88
88
|
};
|
|
89
89
|
exports.instanceofZodTypeLikeString = instanceofZodTypeLikeString;
|
|
90
|
-
|
|
90
|
+
/* ============================================================
|
|
91
|
+
Coercible
|
|
92
|
+
============================================================ */
|
|
93
|
+
exports.zodSupportsCoerce = "coerce" in zod_1.z;
|
|
91
94
|
const instanceofZodTypeCoercible = (_type) => {
|
|
95
|
+
var _a, _b;
|
|
92
96
|
const type = (0, exports.unwrapZodType)(_type, false);
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
const def = (_b = (_a = type === null || type === void 0 ? void 0 : type._zod) === null || _a === void 0 ? void 0 : _a.def) === null || _b === void 0 ? void 0 : _b.type;
|
|
98
|
+
return (def === "number" ||
|
|
99
|
+
def === "boolean" ||
|
|
100
|
+
def === "bigint" ||
|
|
101
|
+
def === "date");
|
|
97
102
|
};
|
|
98
103
|
exports.instanceofZodTypeCoercible = instanceofZodTypeCoercible;
|
|
99
104
|
//# sourceMappingURL=zod.js.map
|
package/dist/utils/zod.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.js","sourceRoot":"","sources":["../../src/utils/zod.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"zod.js","sourceRoot":"","sources":["../../src/utils/zod.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;+DAE+D;AAExD,MAAM,iBAAiB,GAAG,CAC/B,IAAa,EACS,EAAE;;IACxB,OAAO,CAAC,CAAC,CAAA,MAAA,MAAC,IAAY,aAAZ,IAAI,uBAAJ,IAAI,CAAU,IAAI,0CAAE,GAAG,0CAAE,IAAI,CAAA,CAAC;AAC1C,CAAC,CAAC;AAJW,QAAA,iBAAiB,qBAI5B;AAEK,MAAM,qBAAqB,GAAG,CAInC,IAAkB,EAClB,IAAO,EACI,EAAE;;IACb,OAAO,CAAA,MAAA,MAAC,IAAY,aAAZ,IAAI,uBAAJ,IAAI,CAAU,IAAI,0CAAE,GAAG,0CAAE,IAAI,MAAK,IAAI,CAAC;AACjD,CAAC,CAAC;AARW,QAAA,qBAAqB,yBAQhC;AAEF;;+DAE+D;AAExD,MAAM,yBAAyB,GAAG,CACvC,IAAkB,EACmB,EAAE;IACvC,OAAO,IAAI,YAAY,OAAC,CAAC,WAAW,CAAC;AACvC,CAAC,CAAC;AAJW,QAAA,yBAAyB,6BAIpC;AAEK,MAAM,uBAAuB,GAAG,CACrC,IAAkB,EACQ,EAAE;IAC5B,OAAO,IAAI,YAAY,OAAC,CAAC,SAAS,CAAC;AACrC,CAAC,CAAC;AAJW,QAAA,uBAAuB,2BAIlC;AAWK,MAAM,yBAAyB,GAAG,CACvC,IAAkB,EACO,EAAE;;IAC3B,MAAM,CAAC,GAAG,MAAA,MAAC,IAAY,aAAZ,IAAI,uBAAJ,IAAI,CAAU,IAAI,0CAAE,GAAG,0CAAE,IAAI,CAAC;IACzC,OAAO,CAAC,KAAK,MAA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KAAK,QAAQ;QAChB,GAAG,KAAK,MAAM,CACf,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,0BAA0B,8BAYrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dokploy/trpc-openapi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "tRPC OpenAPI",
|
|
5
5
|
"author": "Mauricio Siu <siumauricio@hotmail.com>",
|
|
6
6
|
"private": false,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@trpc/server": "^10.0.0",
|
|
34
|
-
"zod": "^3.
|
|
34
|
+
"zod": "^4.3.6"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"co-body": "^6.1.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lodash.clonedeep": "^4.5.0",
|
|
40
40
|
"node-mocks-http": "^1.12.2",
|
|
41
41
|
"openapi-types": "^12.1.1",
|
|
42
|
-
"zod-to-json-schema": "^3.
|
|
42
|
+
"zod-to-json-schema": "^3.25.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
|