@or-sdk/library-types-v1 6.0.8 → 6.0.9
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 +6 -0
- package/package.json +1 -2
- package/src/Categories/body.ts +0 -21
- package/src/Categories/index.ts +0 -3
- package/src/Categories/param.ts +0 -7
- package/src/Categories/response.ts +0 -14
- package/src/PackageMeta.ts +0 -19
- package/src/Packages/body.ts +0 -100
- package/src/Packages/index.ts +0 -7
- package/src/Packages/param.ts +0 -157
- package/src/Packages/propTransformer.ts +0 -17
- package/src/Packages/response.ts +0 -217
- package/src/Packages/union.ts +0 -41
- package/src/Sources/body.ts +0 -101
- package/src/Sources/index.ts +0 -3
- package/src/Sources/param.ts +0 -9
- package/src/Sources/response.ts +0 -122
- package/src/Sync/index.ts +0 -1
- package/src/Sync/response.ts +0 -17
- package/src/UploadUrl.ts +0 -15
- package/src/User.ts +0 -15
- package/src/index.private.ts +0 -3
- package/src/index.public.ts +0 -13
- package/src/index.ts +0 -55
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/Categories/body.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
const uuidRegex = new RegExp(
|
|
4
|
-
/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,
|
|
5
|
-
);
|
|
6
|
-
|
|
7
|
-
export const CategoryNameType = z
|
|
8
|
-
.string()
|
|
9
|
-
.trim()
|
|
10
|
-
.refine((s) => !uuidRegex.test(s), {
|
|
11
|
-
message: 'Category name cannot be uuid',
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
export const CreateCategoryBody = z.object({
|
|
15
|
-
name: CategoryNameType,
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
export const UpdateCategoryBody = z.object({
|
|
19
|
-
name: CategoryNameType,
|
|
20
|
-
hidden: z.boolean().optional(),
|
|
21
|
-
});
|
package/src/Categories/index.ts
DELETED
package/src/Categories/param.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PackageTypeEnum } from '@or-sdk/library-prisma';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
export const CategoryItemResponse = z.object({
|
|
5
|
-
id: z.string(),
|
|
6
|
-
name: z.string(),
|
|
7
|
-
hidden: z.boolean().optional(),
|
|
8
|
-
type: z.nativeEnum(PackageTypeEnum).optional(),
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
export const CategoryListResponse = z.object({
|
|
12
|
-
categories: z.array(CategoryItemResponse),
|
|
13
|
-
type: z.nativeEnum(PackageTypeEnum).optional(),
|
|
14
|
-
});
|
package/src/PackageMeta.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export const PackageMeta = z
|
|
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
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PackageSchemaTypeEnum,
|
|
3
|
-
PackageStatusDetailsLevelEnum,
|
|
4
|
-
PackageStatusDetailsStatusEnum,
|
|
5
|
-
} from '@or-sdk/library-prisma';
|
|
6
|
-
import { PackageMeta } from '../PackageMeta';
|
|
7
|
-
import { z } from 'zod';
|
|
8
|
-
|
|
9
|
-
export const CreatePackageByVersionBody = z
|
|
10
|
-
.object({
|
|
11
|
-
fileName: z.string().trim().optional(),
|
|
12
|
-
fileNames: z.array(z.string()).optional(),
|
|
13
|
-
name: z.string().trim().optional(),
|
|
14
|
-
label: z.string().trim().optional(),
|
|
15
|
-
description: z.string().optional(),
|
|
16
|
-
categories: z.array(z.string()).optional(),
|
|
17
|
-
packageMeta: PackageMeta,
|
|
18
|
-
revisionId: z.string().optional(),
|
|
19
|
-
status: z
|
|
20
|
-
.nativeEnum(PackageStatusDetailsStatusEnum)
|
|
21
|
-
.default(PackageStatusDetailsStatusEnum.BETA)
|
|
22
|
-
.optional(),
|
|
23
|
-
level: z
|
|
24
|
-
.nativeEnum(PackageStatusDetailsLevelEnum)
|
|
25
|
-
.default(PackageStatusDetailsLevelEnum.ACCOUNT)
|
|
26
|
-
.optional(),
|
|
27
|
-
servingType: z
|
|
28
|
-
.string()
|
|
29
|
-
.optional()
|
|
30
|
-
.transform((s) => s?.toUpperCase?.()),
|
|
31
|
-
})
|
|
32
|
-
.transform((body) => {
|
|
33
|
-
body.label = body.label || body.name;
|
|
34
|
-
|
|
35
|
-
return body;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
export const CreatePackageReleaseBody = z
|
|
39
|
-
.object({
|
|
40
|
-
status: z
|
|
41
|
-
.string()
|
|
42
|
-
.transform(
|
|
43
|
-
(status) => PackageStatusDetailsStatusEnum?.[status?.toUpperCase?.()],
|
|
44
|
-
)
|
|
45
|
-
.optional(),
|
|
46
|
-
releaseNotes: z
|
|
47
|
-
.union([
|
|
48
|
-
z.string(),
|
|
49
|
-
z
|
|
50
|
-
.object({
|
|
51
|
-
markdown: z.string().optional(),
|
|
52
|
-
})
|
|
53
|
-
.transform((s) => s?.markdown || ''),
|
|
54
|
-
])
|
|
55
|
-
.transform((s) => s?.trim?.() || s)
|
|
56
|
-
.optional(),
|
|
57
|
-
membersAccountIds: z.array(z.string()).optional(),
|
|
58
|
-
membersUserIds: z.array(z.string()).optional(),
|
|
59
|
-
member: z
|
|
60
|
-
.object({
|
|
61
|
-
account: z
|
|
62
|
-
.array(
|
|
63
|
-
z.object({
|
|
64
|
-
accountId: z.string(),
|
|
65
|
-
}),
|
|
66
|
-
)
|
|
67
|
-
.optional(),
|
|
68
|
-
})
|
|
69
|
-
.optional(),
|
|
70
|
-
})
|
|
71
|
-
.transform((body) => {
|
|
72
|
-
if (!body?.membersAccountIds?.length) {
|
|
73
|
-
body.membersAccountIds =
|
|
74
|
-
body.member?.account.map((e) => e.accountId) || [];
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return body;
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
export const CreatePackageFromJsonBody = z.object({
|
|
81
|
-
name: z.string(),
|
|
82
|
-
description: z.string(),
|
|
83
|
-
categories: z.array(z.string()).optional(),
|
|
84
|
-
packageMeta: PackageMeta,
|
|
85
|
-
data: z.any().optional(),
|
|
86
|
-
schemaType: z.nativeEnum(PackageSchemaTypeEnum),
|
|
87
|
-
isBeta: z.boolean().optional(),
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
export const DeprecateLegacyStepsBody = z.object({
|
|
91
|
-
exclude: z.array(z.object({ id: z.string() })).default([]),
|
|
92
|
-
include: z.array(z.object({ id: z.string() })).default([]),
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
export const PutLegacyPackageBody = z.object({
|
|
96
|
-
name: z.string().default(''),
|
|
97
|
-
description: z.string().default(''),
|
|
98
|
-
categories: z.array(z.string()).default([]),
|
|
99
|
-
data: z.any().default({}),
|
|
100
|
-
});
|
package/src/Packages/index.ts
DELETED
package/src/Packages/param.ts
DELETED
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Prisma,
|
|
3
|
-
PackageSchemaTypeEnum,
|
|
4
|
-
PackageTypeEnum,
|
|
5
|
-
PackageStatusDetailsLevelEnum,
|
|
6
|
-
} from '@or-sdk/library-prisma';
|
|
7
|
-
import { z } from 'zod';
|
|
8
|
-
import { packageLevel, packageStatus } from './propTransformer';
|
|
9
|
-
|
|
10
|
-
function clearArray<T>(arr = []): T[] {
|
|
11
|
-
return arr
|
|
12
|
-
.map((e) => e?.trim?.())
|
|
13
|
-
.filter(
|
|
14
|
-
(item) =>
|
|
15
|
-
['', 'undefined', 'false', 'true', 'null'].indexOf(`${item}`) === -1,
|
|
16
|
-
) as T[];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export enum PackagesOrderByEnum {
|
|
20
|
-
createdAt = 'createdAt',
|
|
21
|
-
created = 'created', // override
|
|
22
|
-
updatedAt = 'updatedAt',
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const PackageArrayOfStringParam = z
|
|
26
|
-
.array(z.string())
|
|
27
|
-
.or(z.string())
|
|
28
|
-
.transform((data) => {
|
|
29
|
-
if (!Array.isArray(data)) {
|
|
30
|
-
data = [data];
|
|
31
|
-
}
|
|
32
|
-
return clearArray(data);
|
|
33
|
-
})
|
|
34
|
-
.optional()
|
|
35
|
-
.default([]);
|
|
36
|
-
|
|
37
|
-
export const GetPackagesQueryFilter = z.object({
|
|
38
|
-
filter: z
|
|
39
|
-
.object({
|
|
40
|
-
id: PackageArrayOfStringParam,
|
|
41
|
-
schemaType: z.nativeEnum(PackageSchemaTypeEnum).optional(),
|
|
42
|
-
category: PackageArrayOfStringParam,
|
|
43
|
-
level: z
|
|
44
|
-
.array(z.nativeEnum(PackageStatusDetailsLevelEnum))
|
|
45
|
-
.or(
|
|
46
|
-
z
|
|
47
|
-
.nativeEnum(PackageStatusDetailsLevelEnum)
|
|
48
|
-
.transform((data) => [data]),
|
|
49
|
-
)
|
|
50
|
-
.default([
|
|
51
|
-
PackageStatusDetailsLevelEnum.PDE,
|
|
52
|
-
PackageStatusDetailsLevelEnum.ACCOUNT,
|
|
53
|
-
])
|
|
54
|
-
.transform((data) => (Array.isArray(data) ? data : [data])),
|
|
55
|
-
})
|
|
56
|
-
.default({}),
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
export const GetPackagesQuery = z.intersection(
|
|
60
|
-
GetPackagesQueryFilter,
|
|
61
|
-
z
|
|
62
|
-
.object({
|
|
63
|
-
id: PackageArrayOfStringParam,
|
|
64
|
-
type: z.nativeEnum(PackageTypeEnum).optional(),
|
|
65
|
-
query: z
|
|
66
|
-
.string()
|
|
67
|
-
.optional()
|
|
68
|
-
.transform((s) => (typeof s === 'string' ? s.trim() : s)),
|
|
69
|
-
scope: z
|
|
70
|
-
.object({
|
|
71
|
-
id: PackageArrayOfStringParam,
|
|
72
|
-
category: PackageArrayOfStringParam,
|
|
73
|
-
})
|
|
74
|
-
.default({}),
|
|
75
|
-
size: z
|
|
76
|
-
.number()
|
|
77
|
-
.or(z.string())
|
|
78
|
-
.default(10)
|
|
79
|
-
.transform((n) => Number(n) || 0),
|
|
80
|
-
cursor: z
|
|
81
|
-
.object({
|
|
82
|
-
from: z
|
|
83
|
-
.number()
|
|
84
|
-
.or(z.string())
|
|
85
|
-
.transform((n) => Number(n) || 0),
|
|
86
|
-
})
|
|
87
|
-
.or(z.any().transform(() => ({ from: 0 })))
|
|
88
|
-
.transform((data) => (data?.from ? data : { from: 0 })),
|
|
89
|
-
orderBy: z
|
|
90
|
-
.nativeEnum(PackagesOrderByEnum)
|
|
91
|
-
.default(PackagesOrderByEnum.createdAt)
|
|
92
|
-
.transform((data) => {
|
|
93
|
-
if (data === PackagesOrderByEnum.created) {
|
|
94
|
-
return PackagesOrderByEnum.createdAt;
|
|
95
|
-
}
|
|
96
|
-
return data;
|
|
97
|
-
}),
|
|
98
|
-
order: z.nativeEnum(Prisma.SortOrder).default(Prisma.SortOrder.desc),
|
|
99
|
-
categories: PackageArrayOfStringParam,
|
|
100
|
-
includeDeprecated: z
|
|
101
|
-
.string()
|
|
102
|
-
.transform((v) => ['true', '1', 1, true].includes(v))
|
|
103
|
-
.or(z.boolean())
|
|
104
|
-
.default(false),
|
|
105
|
-
})
|
|
106
|
-
.default({}),
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
export const PackageParamUniversal = z.object({
|
|
110
|
-
type: z.nativeEnum(PackageTypeEnum),
|
|
111
|
-
id: z.string(),
|
|
112
|
-
version: z.string().optional(),
|
|
113
|
-
revisionId: z.string().optional(),
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
export const CreateReleaseParams = z.object({
|
|
117
|
-
type: z.nativeEnum(PackageTypeEnum),
|
|
118
|
-
id: z.string(),
|
|
119
|
-
revisionId: z.string().optional(),
|
|
120
|
-
version: z.string().optional(),
|
|
121
|
-
level: packageLevel,
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
export const PackageParamNpmScope = z.object({
|
|
125
|
-
npmScope: z.string(),
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
export const PackageIncludesParams = z.object({
|
|
129
|
-
includeDeprecated: z
|
|
130
|
-
.string()
|
|
131
|
-
.transform((v) => ['true', '1', 1, true].includes(v))
|
|
132
|
-
.or(z.boolean())
|
|
133
|
-
.default(true),
|
|
134
|
-
includeMember: z
|
|
135
|
-
.string()
|
|
136
|
-
.transform((v) => ['true', '1', 1, true].includes(v))
|
|
137
|
-
.or(z.boolean())
|
|
138
|
-
.default(true),
|
|
139
|
-
includeReleaseNotes: z
|
|
140
|
-
.string()
|
|
141
|
-
.transform((v) => ['true', '1', 1, true].includes(v))
|
|
142
|
-
.or(z.boolean())
|
|
143
|
-
.default(true),
|
|
144
|
-
includeData: z
|
|
145
|
-
.string()
|
|
146
|
-
.transform((v) => ['true', '1', 1, true].includes(v))
|
|
147
|
-
.or(z.boolean())
|
|
148
|
-
.default(true),
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
export const PackageSetSystemStatusParams = z.object({
|
|
152
|
-
type: z.nativeEnum(PackageTypeEnum),
|
|
153
|
-
id: z.string(),
|
|
154
|
-
version: z.string().optional(),
|
|
155
|
-
revisionId: z.string().optional(),
|
|
156
|
-
status: packageStatus,
|
|
157
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
PackageStatusDetailsLevelEnum,
|
|
4
|
-
PackageStatusDetailsStatusEnum,
|
|
5
|
-
} from '@or-sdk/library-prisma';
|
|
6
|
-
|
|
7
|
-
export const packageStatus = z
|
|
8
|
-
.string()
|
|
9
|
-
.trim()
|
|
10
|
-
.toUpperCase()
|
|
11
|
-
.transform((status) => PackageStatusDetailsStatusEnum?.[status] || null);
|
|
12
|
-
|
|
13
|
-
export const packageLevel = z
|
|
14
|
-
.string()
|
|
15
|
-
.trim()
|
|
16
|
-
.toUpperCase()
|
|
17
|
-
.transform((level) => PackageStatusDetailsLevelEnum?.[level] || null);
|
package/src/Packages/response.ts
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PackageSchemaTypeEnum,
|
|
3
|
-
PackageStatusDetailsLevelEnum,
|
|
4
|
-
PackageStatusDetailsStatusEnum,
|
|
5
|
-
PackageTypeEnum,
|
|
6
|
-
} from '@or-sdk/library-prisma';
|
|
7
|
-
import { PackageMeta } from '../PackageMeta';
|
|
8
|
-
import { z } from 'zod';
|
|
9
|
-
|
|
10
|
-
const categoriesList = z.array(
|
|
11
|
-
z.object({
|
|
12
|
-
id: z.string().nullable(),
|
|
13
|
-
count: z.number(),
|
|
14
|
-
name: z.string().optional(),
|
|
15
|
-
}),
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
const PackageReleases = z
|
|
19
|
-
.array(
|
|
20
|
-
z.object({
|
|
21
|
-
status: z.nativeEnum(PackageStatusDetailsStatusEnum),
|
|
22
|
-
level: z.nativeEnum(PackageStatusDetailsLevelEnum),
|
|
23
|
-
version: z.string(),
|
|
24
|
-
primaryId: z.number().optional(),
|
|
25
|
-
}),
|
|
26
|
-
)
|
|
27
|
-
.default([]);
|
|
28
|
-
|
|
29
|
-
export const GetPackagesResponseEntity = z.object({
|
|
30
|
-
createdAt: z.date().or(z.string()).optional(),
|
|
31
|
-
id: z.string(),
|
|
32
|
-
isExternal: z.boolean().optional(),
|
|
33
|
-
isSandbox: z.boolean().optional(), // TODO: remove this after frontend will be updated #SA-32
|
|
34
|
-
isPlayground: z.boolean().optional(),
|
|
35
|
-
latest: PackageMeta,
|
|
36
|
-
latestVersion: z.string().optional(),
|
|
37
|
-
level: z.nativeEnum(PackageStatusDetailsLevelEnum).optional(),
|
|
38
|
-
levels: z.array(z.nativeEnum(PackageStatusDetailsLevelEnum)).optional(),
|
|
39
|
-
name: z.string().optional(),
|
|
40
|
-
releases: PackageReleases,
|
|
41
|
-
latestDocId: z.any().optional(),
|
|
42
|
-
revisionId: z.string().optional(),
|
|
43
|
-
schemaType: z.nativeEnum(PackageSchemaTypeEnum),
|
|
44
|
-
status: z.string().optional(),
|
|
45
|
-
statuses: z.array(z.string()).optional(),
|
|
46
|
-
type: z.nativeEnum(PackageTypeEnum).optional(),
|
|
47
|
-
versions: z.array(z.string()),
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
export const GetPackagesResponse = z.object({
|
|
51
|
-
entities: z.array(GetPackagesResponseEntity),
|
|
52
|
-
total: z.number().optional(),
|
|
53
|
-
count: z.number().optional(), // TODO: remove this
|
|
54
|
-
offset: z.number().optional(),
|
|
55
|
-
limit: z.number().optional(),
|
|
56
|
-
cursor: z.object({
|
|
57
|
-
from: z.number(),
|
|
58
|
-
}),
|
|
59
|
-
categories: categoriesList,
|
|
60
|
-
all: z.object({
|
|
61
|
-
categories: categoriesList,
|
|
62
|
-
count: z.number(),
|
|
63
|
-
}),
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
export const PackageStatusDetails = z
|
|
67
|
-
.object({
|
|
68
|
-
release: z.object({
|
|
69
|
-
pde: z
|
|
70
|
-
.object({
|
|
71
|
-
status: z.array(z.nativeEnum(PackageStatusDetailsStatusEnum)),
|
|
72
|
-
})
|
|
73
|
-
.optional(),
|
|
74
|
-
user: z
|
|
75
|
-
.object({
|
|
76
|
-
status: z.array(z.nativeEnum(PackageStatusDetailsStatusEnum)),
|
|
77
|
-
})
|
|
78
|
-
.optional(),
|
|
79
|
-
account: z
|
|
80
|
-
.object({
|
|
81
|
-
status: z.array(z.nativeEnum(PackageStatusDetailsStatusEnum)),
|
|
82
|
-
})
|
|
83
|
-
.optional(),
|
|
84
|
-
}),
|
|
85
|
-
system: z
|
|
86
|
-
.object({
|
|
87
|
-
status: z.array(z.nativeEnum(PackageStatusDetailsStatusEnum)),
|
|
88
|
-
})
|
|
89
|
-
.optional(),
|
|
90
|
-
})
|
|
91
|
-
.optional();
|
|
92
|
-
|
|
93
|
-
export const GetPackageResponse = z.object({
|
|
94
|
-
baseUrl: z.string(),
|
|
95
|
-
data: z.any(),
|
|
96
|
-
packageMeta: PackageMeta,
|
|
97
|
-
id: z.string(),
|
|
98
|
-
version: z.string(),
|
|
99
|
-
schemaType: z.nativeEnum(PackageSchemaTypeEnum),
|
|
100
|
-
revisionId: z.string().optional(),
|
|
101
|
-
status: z.nativeEnum(PackageStatusDetailsStatusEnum).optional(),
|
|
102
|
-
level: z.nativeEnum(PackageStatusDetailsLevelEnum).optional(),
|
|
103
|
-
name: z.string(),
|
|
104
|
-
description: z.string().nullable().optional(),
|
|
105
|
-
categories: z.array(z.string()).optional(),
|
|
106
|
-
statusDetails: PackageStatusDetails,
|
|
107
|
-
servingType: z.string().optional(),
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
export const GetPackageByIdIncludes = z.object({
|
|
111
|
-
releaseNotes: z
|
|
112
|
-
.object({ markdown: z.string().nullable().optional() })
|
|
113
|
-
.optional()
|
|
114
|
-
.optional(),
|
|
115
|
-
member: z
|
|
116
|
-
.object({
|
|
117
|
-
account: z
|
|
118
|
-
.array(
|
|
119
|
-
z.object({
|
|
120
|
-
accountId: z.string(),
|
|
121
|
-
}),
|
|
122
|
-
)
|
|
123
|
-
.optional(),
|
|
124
|
-
user: z
|
|
125
|
-
.array(
|
|
126
|
-
z.object({
|
|
127
|
-
userId: z.string(),
|
|
128
|
-
}),
|
|
129
|
-
)
|
|
130
|
-
.optional(),
|
|
131
|
-
})
|
|
132
|
-
.optional()
|
|
133
|
-
.describe('Deprecated for v2 version api'),
|
|
134
|
-
membersAccountIds: z.array(z.string()).optional(),
|
|
135
|
-
membersUserIds: z.array(z.string()).optional(),
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
export const GetPackageByIdResponse = z.intersection(
|
|
139
|
-
z.object({
|
|
140
|
-
version: z.string(),
|
|
141
|
-
baseUrl: z.string(),
|
|
142
|
-
statusDetails: PackageStatusDetails.optional(),
|
|
143
|
-
servingType: z.string().optional(),
|
|
144
|
-
createdAt: z.date().or(z.string()).optional(),
|
|
145
|
-
revisionId: z.string().optional(),
|
|
146
|
-
name: z.string().optional(),
|
|
147
|
-
description: z.string().nullable().optional(),
|
|
148
|
-
categories: z.array(z.string()).optional(),
|
|
149
|
-
packageMeta: PackageMeta,
|
|
150
|
-
id: z.string().optional(),
|
|
151
|
-
schemaType: z.nativeEnum(PackageSchemaTypeEnum).optional(),
|
|
152
|
-
}),
|
|
153
|
-
GetPackageByIdIncludes,
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
export const GetPackageByIdLatestResponse = z.intersection(
|
|
157
|
-
z.object({
|
|
158
|
-
packageMeta: PackageMeta,
|
|
159
|
-
id: z.string(),
|
|
160
|
-
schemaType: z.nativeEnum(PackageSchemaTypeEnum),
|
|
161
|
-
version: z.string(),
|
|
162
|
-
name: z.string().trim().optional(),
|
|
163
|
-
baseUrl: z.string(),
|
|
164
|
-
servingType: z.string().optional(),
|
|
165
|
-
releases: PackageReleases,
|
|
166
|
-
}),
|
|
167
|
-
GetPackageByIdIncludes,
|
|
168
|
-
);
|
|
169
|
-
|
|
170
|
-
export const GetPackageArchiveSignedUrl = z.object({
|
|
171
|
-
key: z.string(),
|
|
172
|
-
url: z.string(),
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
export const CreatePackageByVersionFileNamesResponse = z
|
|
176
|
-
.array(
|
|
177
|
-
z.object({
|
|
178
|
-
fileName: z.string(),
|
|
179
|
-
url: z.string(),
|
|
180
|
-
fields: z.any(),
|
|
181
|
-
}),
|
|
182
|
-
)
|
|
183
|
-
.optional()
|
|
184
|
-
.describe(
|
|
185
|
-
'When you upload a package with multiple files, this field will be returned',
|
|
186
|
-
);
|
|
187
|
-
|
|
188
|
-
export const CreatePackageByVersionResponse = z.object({
|
|
189
|
-
revisionId: z.string().optional(),
|
|
190
|
-
isExists: z.boolean().optional(),
|
|
191
|
-
fileNames: CreatePackageByVersionFileNamesResponse,
|
|
192
|
-
url: z
|
|
193
|
-
.string()
|
|
194
|
-
.optional()
|
|
195
|
-
.describe(
|
|
196
|
-
'When you upload a package with a single file, this field will be returned',
|
|
197
|
-
),
|
|
198
|
-
fields: z
|
|
199
|
-
.any()
|
|
200
|
-
.optional()
|
|
201
|
-
.describe(
|
|
202
|
-
'When you upload a package with a single file, this field will be returned',
|
|
203
|
-
),
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
export const GetPackageSystemStatusResponse = z.object({
|
|
207
|
-
createdAt: z.date().or(z.string()),
|
|
208
|
-
id: z.string(),
|
|
209
|
-
revisionId: z.string(),
|
|
210
|
-
statusDetailsSystem: z.array(
|
|
211
|
-
z.object({
|
|
212
|
-
status: z.nativeEnum(PackageStatusDetailsStatusEnum),
|
|
213
|
-
}),
|
|
214
|
-
),
|
|
215
|
-
type: z.nativeEnum(PackageTypeEnum),
|
|
216
|
-
version: z.string(),
|
|
217
|
-
});
|
package/src/Packages/union.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { PackageSchemaTypeEnum } from '@or-sdk/library-prisma';
|
|
2
|
-
import {
|
|
3
|
-
CreatePackageReleaseBody,
|
|
4
|
-
CreatePackageFromJsonBody,
|
|
5
|
-
CreatePackageByVersionBody,
|
|
6
|
-
} from './body';
|
|
7
|
-
import {
|
|
8
|
-
PackageParamUniversal,
|
|
9
|
-
CreateReleaseParams,
|
|
10
|
-
GetPackagesQueryFilter,
|
|
11
|
-
PackageIncludesParams,
|
|
12
|
-
} from './param';
|
|
13
|
-
import { z } from 'zod';
|
|
14
|
-
import { packageLevel, packageStatus } from './propTransformer';
|
|
15
|
-
|
|
16
|
-
export const CreateReleaseUnion = z.intersection(
|
|
17
|
-
CreatePackageReleaseBody,
|
|
18
|
-
CreateReleaseParams,
|
|
19
|
-
);
|
|
20
|
-
export const CreatePackageFromJsonUnion = z.intersection(
|
|
21
|
-
PackageParamUniversal,
|
|
22
|
-
CreatePackageFromJsonBody,
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
export const StatusDetailsReleaseParam = z.object({
|
|
26
|
-
statusDetailsReleaseData: z.object({
|
|
27
|
-
status: packageStatus,
|
|
28
|
-
level: packageLevel,
|
|
29
|
-
}),
|
|
30
|
-
schemaType: z.nativeEnum(PackageSchemaTypeEnum),
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
export const CreatePackageByVersionUnion = z.intersection(
|
|
34
|
-
z.intersection(PackageParamUniversal, CreatePackageByVersionBody),
|
|
35
|
-
StatusDetailsReleaseParam,
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
export const GetPackageByIdQueryUnion = z.intersection(
|
|
39
|
-
GetPackagesQueryFilter,
|
|
40
|
-
PackageIncludesParams,
|
|
41
|
-
);
|
package/src/Sources/body.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { PackageMeta } from '../PackageMeta';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
export const SourceDataBody = z
|
|
5
|
-
.object({
|
|
6
|
-
helpTextSource: z.string().trim().optional(),
|
|
7
|
-
hooksSource: z.string().trim().optional(),
|
|
8
|
-
migrationSource: z.string().trim().optional(),
|
|
9
|
-
logicSource: z.string().trim().optional(),
|
|
10
|
-
invalidData: z.any().optional(),
|
|
11
|
-
rootInputSettings: z.any().optional(),
|
|
12
|
-
rootInputUrn: z.any().optional(),
|
|
13
|
-
// TODO: use packageMeta instead
|
|
14
|
-
stepDetails: z.any().optional().describe('Deprecated'),
|
|
15
|
-
stepPackages: z.any().optional(),
|
|
16
|
-
})
|
|
17
|
-
.or(z.any())
|
|
18
|
-
.optional();
|
|
19
|
-
|
|
20
|
-
export const SourceMetaMocksBody = z
|
|
21
|
-
.object({
|
|
22
|
-
mocks: z.any().optional(),
|
|
23
|
-
})
|
|
24
|
-
.or(z.any())
|
|
25
|
-
.optional();
|
|
26
|
-
|
|
27
|
-
export const SourceMetaLabelBody = z
|
|
28
|
-
.object({
|
|
29
|
-
label: z.string().trim().nonempty(),
|
|
30
|
-
})
|
|
31
|
-
.or(z.any())
|
|
32
|
-
.optional();
|
|
33
|
-
|
|
34
|
-
export const CreateSourceBody = z.object({
|
|
35
|
-
id: z.string().trim().optional(),
|
|
36
|
-
meta: SourceMetaLabelBody,
|
|
37
|
-
source: z.object({
|
|
38
|
-
data: SourceDataBody,
|
|
39
|
-
meta: z.intersection(SourceMetaMocksBody, SourceMetaLabelBody),
|
|
40
|
-
packageMeta: PackageMeta,
|
|
41
|
-
}),
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export const SetPublishedBody = z.object({
|
|
45
|
-
version: z.string().trim(),
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
export const CreateSourceSourceRevisionBody = z.intersection(
|
|
49
|
-
z.intersection(
|
|
50
|
-
z.object({
|
|
51
|
-
data: SourceDataBody,
|
|
52
|
-
}),
|
|
53
|
-
z.object({
|
|
54
|
-
meta: SourceMetaMocksBody,
|
|
55
|
-
}),
|
|
56
|
-
),
|
|
57
|
-
z.object({
|
|
58
|
-
packageMeta: PackageMeta,
|
|
59
|
-
}),
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
export const ForkSourceBranchBody = z
|
|
63
|
-
.object({
|
|
64
|
-
meta: z.intersection(SourceMetaMocksBody, SourceMetaLabelBody).optional(),
|
|
65
|
-
label: z.string().trim().optional(),
|
|
66
|
-
})
|
|
67
|
-
.transform((data) => {
|
|
68
|
-
return {
|
|
69
|
-
...data,
|
|
70
|
-
label: data?.label || data?.meta?.label,
|
|
71
|
-
};
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
export const UpdateMetaBranchBodyLegacy = z
|
|
75
|
-
.object({
|
|
76
|
-
sourceMembers: z
|
|
77
|
-
.object({
|
|
78
|
-
accountId: z.array(z.string().trim()).optional(),
|
|
79
|
-
userId: z.array(z.string().trim()).optional(),
|
|
80
|
-
})
|
|
81
|
-
.optional(),
|
|
82
|
-
meta: z
|
|
83
|
-
.intersection(
|
|
84
|
-
SourceMetaLabelBody,
|
|
85
|
-
z.object({
|
|
86
|
-
shared: z
|
|
87
|
-
.object({
|
|
88
|
-
currentAccount: z.boolean().optional(),
|
|
89
|
-
})
|
|
90
|
-
.optional(),
|
|
91
|
-
}),
|
|
92
|
-
)
|
|
93
|
-
.optional(),
|
|
94
|
-
label: z.string().trim().optional(),
|
|
95
|
-
})
|
|
96
|
-
.transform((data) => {
|
|
97
|
-
return {
|
|
98
|
-
...data,
|
|
99
|
-
label: data?.label || data?.meta?.label,
|
|
100
|
-
};
|
|
101
|
-
});
|
package/src/Sources/index.ts
DELETED
package/src/Sources/param.ts
DELETED
package/src/Sources/response.ts
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { PackageMeta } from '../PackageMeta';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
// TODO: refactor this
|
|
5
|
-
export const GetSourceItemBranchResponse = z.object({
|
|
6
|
-
id: z.string(),
|
|
7
|
-
meta: z.object({
|
|
8
|
-
label: z.string(),
|
|
9
|
-
mocks: z.any(),
|
|
10
|
-
}),
|
|
11
|
-
createdBy: z
|
|
12
|
-
.object({
|
|
13
|
-
id: z.any(),
|
|
14
|
-
accountId: z.string(),
|
|
15
|
-
userId: z.string(),
|
|
16
|
-
createdAt: z.date().or(z.string()),
|
|
17
|
-
})
|
|
18
|
-
.optional(),
|
|
19
|
-
published: z
|
|
20
|
-
.object({
|
|
21
|
-
version: z.string(),
|
|
22
|
-
})
|
|
23
|
-
.optional(),
|
|
24
|
-
latestRevisionId: z.string().optional(),
|
|
25
|
-
packageMeta: PackageMeta,
|
|
26
|
-
revision: z.array(
|
|
27
|
-
z.object({
|
|
28
|
-
id: z.string(),
|
|
29
|
-
accountId: z.string().optional(),
|
|
30
|
-
userId: z.string().optional(),
|
|
31
|
-
createdAt: z.date().or(z.string()).optional(),
|
|
32
|
-
}),
|
|
33
|
-
),
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
export const GetSourceItemResponse = z.object({
|
|
37
|
-
id: z.string().optional(),
|
|
38
|
-
createdAt: z.date().or(z.string()),
|
|
39
|
-
meta: z
|
|
40
|
-
.object({
|
|
41
|
-
shared: z.object({
|
|
42
|
-
currentAccount: z.boolean(),
|
|
43
|
-
}),
|
|
44
|
-
label: z.string(),
|
|
45
|
-
})
|
|
46
|
-
.optional(),
|
|
47
|
-
createdBy: z
|
|
48
|
-
.object({
|
|
49
|
-
id: z.any(),
|
|
50
|
-
accountId: z.string(),
|
|
51
|
-
userId: z.string(),
|
|
52
|
-
createdAt: z.date().or(z.string()),
|
|
53
|
-
})
|
|
54
|
-
.optional(),
|
|
55
|
-
source: z.array(GetSourceItemBranchResponse),
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
// TODO: refactor this
|
|
59
|
-
export const GetSourcesResponse = z.object({
|
|
60
|
-
total: z.number(),
|
|
61
|
-
hits: z.array(GetSourceItemResponse),
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
// TODO: refactor this
|
|
65
|
-
export const GetSourceRevisionResponse = z.object({
|
|
66
|
-
data: z.any().or(
|
|
67
|
-
z.object({
|
|
68
|
-
helpTextSource: z.string().trim().optional(),
|
|
69
|
-
hooksSource: z.string().trim().optional(),
|
|
70
|
-
invalidData: z.any().optional(),
|
|
71
|
-
logicSource: z.string().trim().optional(),
|
|
72
|
-
migrationSource: z.string().trim().optional(),
|
|
73
|
-
rootInputSettings: z.any().optional(),
|
|
74
|
-
rootInputUrn: z.string().trim().optional(),
|
|
75
|
-
// TODO: use packageMeta instead
|
|
76
|
-
stepDetails: z.any().optional().describe('Deprecated'),
|
|
77
|
-
stepPackages: z.any().optional(),
|
|
78
|
-
}),
|
|
79
|
-
),
|
|
80
|
-
published: z
|
|
81
|
-
.object({
|
|
82
|
-
version: z.string(),
|
|
83
|
-
})
|
|
84
|
-
.optional(),
|
|
85
|
-
sandboxUploaded: z.boolean().optional(), // TODO: remove this after frontend will be updated #SA-32
|
|
86
|
-
playgroundUploaded: z.boolean().optional(),
|
|
87
|
-
sourceMeta: z
|
|
88
|
-
.any()
|
|
89
|
-
.or(
|
|
90
|
-
z.object({
|
|
91
|
-
meta: z
|
|
92
|
-
.any()
|
|
93
|
-
.or(
|
|
94
|
-
z.object({
|
|
95
|
-
label: z.string().trim().nonempty().optional(),
|
|
96
|
-
mocks: z.any().optional(),
|
|
97
|
-
}),
|
|
98
|
-
)
|
|
99
|
-
.optional(),
|
|
100
|
-
revision: z
|
|
101
|
-
.any()
|
|
102
|
-
.or(
|
|
103
|
-
z.object({
|
|
104
|
-
accountId: z.string().trim().optional(),
|
|
105
|
-
createdAt: z.date().or(z.string()).optional(),
|
|
106
|
-
id: z.string().trim().optional(),
|
|
107
|
-
userId: z.string().trim().optional(),
|
|
108
|
-
}),
|
|
109
|
-
)
|
|
110
|
-
.optional(),
|
|
111
|
-
}),
|
|
112
|
-
)
|
|
113
|
-
.optional()
|
|
114
|
-
.describe('branch and revision meta data'),
|
|
115
|
-
});
|
|
116
|
-
|
|
117
|
-
export const ForkSourceBranchResponse = z.object({
|
|
118
|
-
id: z.string(),
|
|
119
|
-
revisionId: z.string(),
|
|
120
|
-
sourceId: z.string(),
|
|
121
|
-
packageUpdateResult: z.any().optional(),
|
|
122
|
-
});
|
package/src/Sync/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './response';
|
package/src/Sync/response.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PackageTypeEnum } from '@or-sdk/library-prisma';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
export const SyncLegacyResponse = z.object({
|
|
5
|
-
id: z.string(),
|
|
6
|
-
version: z.string(),
|
|
7
|
-
created: z.boolean(),
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export const PutLegacyVersionResponse = z.object({
|
|
11
|
-
id: z.string(),
|
|
12
|
-
version: z.string(),
|
|
13
|
-
revisionId: z.string(),
|
|
14
|
-
type: z.nativeEnum(PackageTypeEnum),
|
|
15
|
-
fileName: z.string().nullable().optional(),
|
|
16
|
-
key: z.string().nullable().optional(),
|
|
17
|
-
});
|
package/src/UploadUrl.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export const UploadUrlSchema = z.object({
|
|
4
|
-
id: z.string().optional(),
|
|
5
|
-
version: z.string().trim(),
|
|
6
|
-
type: z.string(),
|
|
7
|
-
fileName: z.string().optional().optional(),
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export const UploadUrlSchemaRequired = UploadUrlSchema.required({
|
|
11
|
-
id: true,
|
|
12
|
-
version: true,
|
|
13
|
-
type: true,
|
|
14
|
-
fileName: true,
|
|
15
|
-
});
|
package/src/User.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export const IUserRequestData = z.object({
|
|
4
|
-
accountId: z.string(),
|
|
5
|
-
userId: z.string(),
|
|
6
|
-
authorization: z.string(),
|
|
7
|
-
allow: z.boolean().optional(),
|
|
8
|
-
isDevelopmentAccount: z.boolean().optional(),
|
|
9
|
-
multiUserId: z.string().optional(),
|
|
10
|
-
role: z.string().optional(),
|
|
11
|
-
silent: z.boolean().optional(),
|
|
12
|
-
tokenType: z.string().optional(),
|
|
13
|
-
twoFactorEnabled: z.boolean().optional(),
|
|
14
|
-
username: z.string().optional(),
|
|
15
|
-
});
|
package/src/index.private.ts
DELETED
package/src/index.public.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './Categories';
|
|
2
|
-
export * from './Packages';
|
|
3
|
-
export * from './Sources';
|
|
4
|
-
export * from './Sync';
|
|
5
|
-
export * from './UploadUrl';
|
|
6
|
-
export * from './PackageMeta';
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
PackageTypeEnum,
|
|
10
|
-
PackageSchemaTypeEnum,
|
|
11
|
-
PackageStatusDetailsStatusEnum,
|
|
12
|
-
PackageStatusDetailsLevelEnum,
|
|
13
|
-
} from '@or-sdk/library-prisma';
|
package/src/index.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import * as allZodSchemas from './index.public';
|
|
3
|
-
export type CreateCategoryBodyDTO = z.infer<typeof allZodSchemas.CreateCategoryBody>
|
|
4
|
-
export type UpdateCategoryBodyDTO = z.infer<typeof allZodSchemas.UpdateCategoryBody>
|
|
5
|
-
export type CategoriesParamUniversalDTO = z.infer<typeof allZodSchemas.CategoriesParamUniversal>
|
|
6
|
-
export type CategoryItemResponseDTO = z.infer<typeof allZodSchemas.CategoryItemResponse>
|
|
7
|
-
export type CategoryListResponseDTO = z.infer<typeof allZodSchemas.CategoryListResponse>
|
|
8
|
-
export type GetPackagesQueryFilterDTO = z.infer<typeof allZodSchemas.GetPackagesQueryFilter>
|
|
9
|
-
export type GetPackagesQueryDTO = z.infer<typeof allZodSchemas.GetPackagesQuery>
|
|
10
|
-
export type PackageParamUniversalDTO = z.infer<typeof allZodSchemas.PackageParamUniversal>
|
|
11
|
-
export type CreateReleaseParamsDTO = z.infer<typeof allZodSchemas.CreateReleaseParams>
|
|
12
|
-
export type PackageParamNpmScopeDTO = z.infer<typeof allZodSchemas.PackageParamNpmScope>
|
|
13
|
-
export type PackageIncludesParamsDTO = z.infer<typeof allZodSchemas.PackageIncludesParams>
|
|
14
|
-
export type PackageSetSystemStatusParamsDTO = z.infer<typeof allZodSchemas.PackageSetSystemStatusParams>
|
|
15
|
-
export type CreatePackageByVersionBodyDTO = z.infer<typeof allZodSchemas.CreatePackageByVersionBody>
|
|
16
|
-
export type CreatePackageReleaseBodyDTO = z.infer<typeof allZodSchemas.CreatePackageReleaseBody>
|
|
17
|
-
export type CreatePackageFromJsonBodyDTO = z.infer<typeof allZodSchemas.CreatePackageFromJsonBody>
|
|
18
|
-
export type DeprecateLegacyStepsBodyDTO = z.infer<typeof allZodSchemas.DeprecateLegacyStepsBody>
|
|
19
|
-
export type PutLegacyPackageBodyDTO = z.infer<typeof allZodSchemas.PutLegacyPackageBody>
|
|
20
|
-
export type CreateReleaseUnionDTO = z.infer<typeof allZodSchemas.CreateReleaseUnion>
|
|
21
|
-
export type CreatePackageFromJsonUnionDTO = z.infer<typeof allZodSchemas.CreatePackageFromJsonUnion>
|
|
22
|
-
export type StatusDetailsReleaseParamDTO = z.infer<typeof allZodSchemas.StatusDetailsReleaseParam>
|
|
23
|
-
export type CreatePackageByVersionUnionDTO = z.infer<typeof allZodSchemas.CreatePackageByVersionUnion>
|
|
24
|
-
export type GetPackageByIdQueryUnionDTO = z.infer<typeof allZodSchemas.GetPackageByIdQueryUnion>
|
|
25
|
-
export type GetPackagesResponseEntityDTO = z.infer<typeof allZodSchemas.GetPackagesResponseEntity>
|
|
26
|
-
export type GetPackagesResponseDTO = z.infer<typeof allZodSchemas.GetPackagesResponse>
|
|
27
|
-
export type PackageStatusDetailsDTO = z.infer<typeof allZodSchemas.PackageStatusDetails>
|
|
28
|
-
export type GetPackageResponseDTO = z.infer<typeof allZodSchemas.GetPackageResponse>
|
|
29
|
-
export type GetPackageByIdIncludesDTO = z.infer<typeof allZodSchemas.GetPackageByIdIncludes>
|
|
30
|
-
export type GetPackageByIdResponseDTO = z.infer<typeof allZodSchemas.GetPackageByIdResponse>
|
|
31
|
-
export type GetPackageByIdLatestResponseDTO = z.infer<typeof allZodSchemas.GetPackageByIdLatestResponse>
|
|
32
|
-
export type GetPackageArchiveSignedUrlDTO = z.infer<typeof allZodSchemas.GetPackageArchiveSignedUrl>
|
|
33
|
-
export type CreatePackageByVersionFileNamesResponseDTO = z.infer<typeof allZodSchemas.CreatePackageByVersionFileNamesResponse>
|
|
34
|
-
export type CreatePackageByVersionResponseDTO = z.infer<typeof allZodSchemas.CreatePackageByVersionResponse>
|
|
35
|
-
export type GetPackageSystemStatusResponseDTO = z.infer<typeof allZodSchemas.GetPackageSystemStatusResponse>
|
|
36
|
-
export type SourcesParamUniversalDTO = z.infer<typeof allZodSchemas.SourcesParamUniversal>
|
|
37
|
-
export type SourceDataBodyDTO = z.infer<typeof allZodSchemas.SourceDataBody>
|
|
38
|
-
export type SourceMetaMocksBodyDTO = z.infer<typeof allZodSchemas.SourceMetaMocksBody>
|
|
39
|
-
export type SourceMetaLabelBodyDTO = z.infer<typeof allZodSchemas.SourceMetaLabelBody>
|
|
40
|
-
export type CreateSourceBodyDTO = z.infer<typeof allZodSchemas.CreateSourceBody>
|
|
41
|
-
export type SetPublishedBodyDTO = z.infer<typeof allZodSchemas.SetPublishedBody>
|
|
42
|
-
export type CreateSourceSourceRevisionBodyDTO = z.infer<typeof allZodSchemas.CreateSourceSourceRevisionBody>
|
|
43
|
-
export type ForkSourceBranchBodyDTO = z.infer<typeof allZodSchemas.ForkSourceBranchBody>
|
|
44
|
-
export type UpdateMetaBranchBodyLegacyDTO = z.infer<typeof allZodSchemas.UpdateMetaBranchBodyLegacy>
|
|
45
|
-
export type GetSourceItemBranchResponseDTO = z.infer<typeof allZodSchemas.GetSourceItemBranchResponse>
|
|
46
|
-
export type GetSourceItemResponseDTO = z.infer<typeof allZodSchemas.GetSourceItemResponse>
|
|
47
|
-
export type GetSourcesResponseDTO = z.infer<typeof allZodSchemas.GetSourcesResponse>
|
|
48
|
-
export type GetSourceRevisionResponseDTO = z.infer<typeof allZodSchemas.GetSourceRevisionResponse>
|
|
49
|
-
export type ForkSourceBranchResponseDTO = z.infer<typeof allZodSchemas.ForkSourceBranchResponse>
|
|
50
|
-
export type SyncLegacyResponseDTO = z.infer<typeof allZodSchemas.SyncLegacyResponse>
|
|
51
|
-
export type PutLegacyVersionResponseDTO = z.infer<typeof allZodSchemas.PutLegacyVersionResponse>
|
|
52
|
-
export type UploadUrlSchemaDTO = z.infer<typeof allZodSchemas.UploadUrlSchema>
|
|
53
|
-
export type UploadUrlSchemaRequiredDTO = z.infer<typeof allZodSchemas.UploadUrlSchemaRequired>
|
|
54
|
-
export type PackageMetaDTO = z.infer<typeof allZodSchemas.PackageMeta>
|
|
55
|
-
export * from './index.public';
|