@or-sdk/library-types-v1 6.0.5 → 6.0.6
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 +8 -0
- package/dist/PackageMeta.d.ts +27 -24
- package/dist/Packages/body.d.ts +132 -120
- package/dist/Packages/response.d.ts +294 -264
- package/dist/Packages/union.d.ts +132 -120
- package/dist/Sources/body.d.ts +132 -120
- package/dist/Sources/response.d.ts +237 -216
- package/dist/index.js +201 -74
- package/dist/index.js.map +3 -3
- package/package.json +3 -6
- package/src/PackageMeta.ts +16 -16
- package/src/Packages/body.ts +2 -2
- package/src/Packages/response.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/library-types-v1",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.6",
|
|
4
4
|
"description": "Request/response v1 legacy types for the OR SDK",
|
|
5
5
|
"files": [
|
|
6
6
|
"./dist",
|
|
@@ -26,11 +26,8 @@
|
|
|
26
26
|
"license": "UNLICENSED",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"nestjs-zod": "3.0.0",
|
|
29
|
-
"zod": "3.22.
|
|
30
|
-
"@or-sdk/library-prisma": "6.0.
|
|
31
|
-
},
|
|
32
|
-
"peerDependencies": {
|
|
33
|
-
"stream": "0.0.2"
|
|
29
|
+
"zod": "3.22.4",
|
|
30
|
+
"@or-sdk/library-prisma": "6.0.6"
|
|
34
31
|
},
|
|
35
32
|
"scripts": {
|
|
36
33
|
"build:nest": "ts-node ./esbuild.nest.ts",
|
package/src/PackageMeta.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
export const PackageMeta = z
|
|
4
|
-
.
|
|
5
|
-
z.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
)
|
|
19
|
-
.
|
|
4
|
+
.object({
|
|
5
|
+
label: z.string().trim().optional(),
|
|
6
|
+
name: z.string().trim().optional(),
|
|
7
|
+
id: z.string().trim().optional(),
|
|
8
|
+
version: z.string().trim().optional(),
|
|
9
|
+
categories: z.array(z.string()).optional(),
|
|
10
|
+
description: z.string().trim().nullable().optional(),
|
|
11
|
+
icon: z.string().trim().nullable().optional(),
|
|
12
|
+
iconType: z.string().trim().nullable().optional(),
|
|
13
|
+
recommendedSteps: z.array(z.string()).nullable().optional(),
|
|
14
|
+
shape: z.string().trim().nullable().optional(),
|
|
15
|
+
tags: z.array(z.string().trim()).nullable().optional(),
|
|
16
|
+
})
|
|
17
|
+
.passthrough()
|
|
18
|
+
.nullable()
|
|
19
|
+
.default({});
|
package/src/Packages/body.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const CreatePackageByVersionBody = z
|
|
|
14
14
|
label: z.string().trim().optional(),
|
|
15
15
|
description: z.string().optional(),
|
|
16
16
|
categories: z.array(z.string()).optional(),
|
|
17
|
-
packageMeta: PackageMeta
|
|
17
|
+
packageMeta: PackageMeta,
|
|
18
18
|
revisionId: z.string().optional(),
|
|
19
19
|
status: z
|
|
20
20
|
.nativeEnum(PackageStatusDetailsStatusEnum)
|
|
@@ -81,7 +81,7 @@ export const CreatePackageFromJsonBody = z.object({
|
|
|
81
81
|
name: z.string(),
|
|
82
82
|
description: z.string(),
|
|
83
83
|
categories: z.array(z.string()).optional(),
|
|
84
|
-
packageMeta: PackageMeta
|
|
84
|
+
packageMeta: PackageMeta,
|
|
85
85
|
data: z.any().optional(),
|
|
86
86
|
schemaType: z.nativeEnum(PackageSchemaTypeEnum),
|
|
87
87
|
isBeta: z.boolean().optional(),
|
package/src/Packages/response.ts
CHANGED
|
@@ -140,7 +140,7 @@ export const GetPackageByIdResponse = z.object({
|
|
|
140
140
|
name: z.string().optional(),
|
|
141
141
|
description: z.string().nullable().optional(),
|
|
142
142
|
categories: z.array(z.string()).optional(),
|
|
143
|
-
packageMeta: PackageMeta
|
|
143
|
+
packageMeta: PackageMeta,
|
|
144
144
|
id: z.string().optional(),
|
|
145
145
|
schemaType: z.nativeEnum(PackageSchemaTypeEnum).optional(),
|
|
146
146
|
});
|
|
@@ -150,6 +150,7 @@ export const GetPackageByIdLatestResponse = z.object({
|
|
|
150
150
|
id: z.string(),
|
|
151
151
|
schemaType: z.nativeEnum(PackageSchemaTypeEnum),
|
|
152
152
|
version: z.string(),
|
|
153
|
+
name: z.string().trim().optional(),
|
|
153
154
|
baseUrl: z.string(),
|
|
154
155
|
servingType: z.string().optional(),
|
|
155
156
|
});
|