@or-sdk/library-types-v1 6.0.6 → 6.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.
- package/CHANGELOG.md +6 -0
- package/dist/Categories/body.d.ts +3 -2
- package/dist/Packages/param.d.ts +17 -60
- package/dist/Packages/response.d.ts +252 -71
- package/dist/Packages/union.d.ts +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +66 -54
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/src/Categories/body.ts +13 -2
- package/src/Packages/param.ts +64 -88
- package/src/Packages/response.ts +44 -32
- package/src/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const CategoryNameType: z.ZodEffects<z.ZodString, string, string>;
|
|
2
3
|
export declare const CreateCategoryBody: z.ZodObject<{
|
|
3
|
-
name: z.ZodString
|
|
4
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
4
5
|
}, "strip", z.ZodTypeAny, {
|
|
5
6
|
name?: string;
|
|
6
7
|
}, {
|
|
7
8
|
name?: string;
|
|
8
9
|
}>;
|
|
9
10
|
export declare const UpdateCategoryBody: z.ZodObject<{
|
|
10
|
-
name: z.ZodString
|
|
11
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
11
12
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
12
13
|
}, "strip", z.ZodTypeAny, {
|
|
13
14
|
name?: string;
|
package/dist/Packages/param.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ export declare enum PackagesOrderByEnum {
|
|
|
6
6
|
}
|
|
7
7
|
export declare const GetPackagesQueryFilter: z.ZodObject<{
|
|
8
8
|
filter: z.ZodDefault<z.ZodObject<{
|
|
9
|
-
id: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]
|
|
9
|
+
id: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]>>>;
|
|
10
10
|
schemaType: z.ZodOptional<z.ZodNativeEnum<{
|
|
11
11
|
LEGACY: "LEGACY";
|
|
12
12
|
EXTERNAL: "EXTERNAL";
|
|
13
13
|
UNKNOWN: "UNKNOWN";
|
|
14
14
|
}>>;
|
|
15
|
-
category: z.
|
|
15
|
+
category: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]>>>;
|
|
16
16
|
level: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodArray<z.ZodNativeEnum<{
|
|
17
17
|
USER: "USER";
|
|
18
18
|
ACCOUNT: "ACCOUNT";
|
|
@@ -25,7 +25,7 @@ export declare const GetPackagesQueryFilter: z.ZodObject<{
|
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
id?: unknown[];
|
|
27
27
|
schemaType?: "UNKNOWN" | "LEGACY" | "EXTERNAL";
|
|
28
|
-
category?:
|
|
28
|
+
category?: unknown[];
|
|
29
29
|
level?: ("USER" | "ACCOUNT" | "PDE")[];
|
|
30
30
|
}, {
|
|
31
31
|
id?: string | string[];
|
|
@@ -37,7 +37,7 @@ export declare const GetPackagesQueryFilter: z.ZodObject<{
|
|
|
37
37
|
filter?: {
|
|
38
38
|
id?: unknown[];
|
|
39
39
|
schemaType?: "UNKNOWN" | "LEGACY" | "EXTERNAL";
|
|
40
|
-
category?:
|
|
40
|
+
category?: unknown[];
|
|
41
41
|
level?: ("USER" | "ACCOUNT" | "PDE")[];
|
|
42
42
|
};
|
|
43
43
|
}, {
|
|
@@ -48,15 +48,15 @@ export declare const GetPackagesQueryFilter: z.ZodObject<{
|
|
|
48
48
|
level?: "USER" | "ACCOUNT" | "PDE" | ("USER" | "ACCOUNT" | "PDE")[];
|
|
49
49
|
};
|
|
50
50
|
}>;
|
|
51
|
-
export declare const GetPackagesQuery: z.
|
|
51
|
+
export declare const GetPackagesQuery: z.ZodIntersection<z.ZodObject<{
|
|
52
52
|
filter: z.ZodDefault<z.ZodObject<{
|
|
53
|
-
id: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]
|
|
53
|
+
id: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]>>>;
|
|
54
54
|
schemaType: z.ZodOptional<z.ZodNativeEnum<{
|
|
55
55
|
LEGACY: "LEGACY";
|
|
56
56
|
EXTERNAL: "EXTERNAL";
|
|
57
57
|
UNKNOWN: "UNKNOWN";
|
|
58
58
|
}>>;
|
|
59
|
-
category: z.
|
|
59
|
+
category: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]>>>;
|
|
60
60
|
level: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodArray<z.ZodNativeEnum<{
|
|
61
61
|
USER: "USER";
|
|
62
62
|
ACCOUNT: "ACCOUNT";
|
|
@@ -69,7 +69,7 @@ export declare const GetPackagesQuery: z.ZodEffects<z.ZodIntersection<z.ZodObjec
|
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
id?: unknown[];
|
|
71
71
|
schemaType?: "UNKNOWN" | "LEGACY" | "EXTERNAL";
|
|
72
|
-
category?:
|
|
72
|
+
category?: unknown[];
|
|
73
73
|
level?: ("USER" | "ACCOUNT" | "PDE")[];
|
|
74
74
|
}, {
|
|
75
75
|
id?: string | string[];
|
|
@@ -81,7 +81,7 @@ export declare const GetPackagesQuery: z.ZodEffects<z.ZodIntersection<z.ZodObjec
|
|
|
81
81
|
filter?: {
|
|
82
82
|
id?: unknown[];
|
|
83
83
|
schemaType?: "UNKNOWN" | "LEGACY" | "EXTERNAL";
|
|
84
|
-
category?:
|
|
84
|
+
category?: unknown[];
|
|
85
85
|
level?: ("USER" | "ACCOUNT" | "PDE")[];
|
|
86
86
|
};
|
|
87
87
|
}, {
|
|
@@ -92,7 +92,7 @@ export declare const GetPackagesQuery: z.ZodEffects<z.ZodIntersection<z.ZodObjec
|
|
|
92
92
|
level?: "USER" | "ACCOUNT" | "PDE" | ("USER" | "ACCOUNT" | "PDE")[];
|
|
93
93
|
};
|
|
94
94
|
}>, z.ZodDefault<z.ZodObject<{
|
|
95
|
-
id: z.
|
|
95
|
+
id: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]>>>;
|
|
96
96
|
type: z.ZodOptional<z.ZodNativeEnum<{
|
|
97
97
|
TEST_ONLY: "TEST_ONLY";
|
|
98
98
|
UNKNOWN: "UNKNOWN";
|
|
@@ -110,8 +110,8 @@ export declare const GetPackagesQuery: z.ZodEffects<z.ZodIntersection<z.ZodObjec
|
|
|
110
110
|
}>>;
|
|
111
111
|
query: z.ZodEffects<z.ZodOptional<z.ZodString>, string, string>;
|
|
112
112
|
scope: z.ZodDefault<z.ZodObject<{
|
|
113
|
-
id: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]
|
|
114
|
-
category: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]
|
|
113
|
+
id: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]>>>;
|
|
114
|
+
category: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]>>>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
id?: unknown[];
|
|
117
117
|
category?: unknown[];
|
|
@@ -136,10 +136,10 @@ export declare const GetPackagesQuery: z.ZodEffects<z.ZodIntersection<z.ZodObjec
|
|
|
136
136
|
asc: "asc";
|
|
137
137
|
desc: "desc";
|
|
138
138
|
}>>;
|
|
139
|
-
categories: z.ZodEffects<z.
|
|
139
|
+
categories: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]>>>;
|
|
140
140
|
includeDeprecated: z.ZodDefault<z.ZodUnion<[z.ZodEffects<z.ZodString, boolean, string>, z.ZodBoolean]>>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
id?:
|
|
142
|
+
id?: unknown[];
|
|
143
143
|
type?: "TEST_ONLY" | "UNKNOWN" | "STEP" | "STEP_INPUT" | "STEP_TEMPLATE" | "FLOW_TEMPLATE" | "BOT_TEMPLATE" | "TICKET_INPUT" | "CONTENT_INPUT" | "CONTENT" | "NPM_UNPACKED" | "S3_BUCKET" | "RWC_INPUT";
|
|
144
144
|
query?: string;
|
|
145
145
|
scope?: {
|
|
@@ -155,7 +155,7 @@ export declare const GetPackagesQuery: z.ZodEffects<z.ZodIntersection<z.ZodObjec
|
|
|
155
155
|
categories?: unknown[];
|
|
156
156
|
includeDeprecated?: boolean;
|
|
157
157
|
}, {
|
|
158
|
-
id?: string;
|
|
158
|
+
id?: string | string[];
|
|
159
159
|
type?: "TEST_ONLY" | "UNKNOWN" | "STEP" | "STEP_INPUT" | "STEP_TEMPLATE" | "FLOW_TEMPLATE" | "BOT_TEMPLATE" | "TICKET_INPUT" | "CONTENT_INPUT" | "CONTENT" | "NPM_UNPACKED" | "S3_BUCKET" | "RWC_INPUT";
|
|
160
160
|
query?: string;
|
|
161
161
|
scope?: {
|
|
@@ -166,52 +166,9 @@ export declare const GetPackagesQuery: z.ZodEffects<z.ZodIntersection<z.ZodObjec
|
|
|
166
166
|
cursor?: any;
|
|
167
167
|
orderBy?: PackagesOrderByEnum;
|
|
168
168
|
order?: "asc" | "desc";
|
|
169
|
-
categories?: string[];
|
|
169
|
+
categories?: string | string[];
|
|
170
170
|
includeDeprecated?: string | boolean;
|
|
171
|
-
}
|
|
172
|
-
categories: unknown[];
|
|
173
|
-
filter?: {
|
|
174
|
-
id?: unknown[];
|
|
175
|
-
schemaType?: "UNKNOWN" | "LEGACY" | "EXTERNAL";
|
|
176
|
-
category?: string[];
|
|
177
|
-
level?: ("USER" | "ACCOUNT" | "PDE")[];
|
|
178
|
-
};
|
|
179
|
-
id?: string | false;
|
|
180
|
-
type?: "TEST_ONLY" | "UNKNOWN" | "STEP" | "STEP_INPUT" | "STEP_TEMPLATE" | "FLOW_TEMPLATE" | "BOT_TEMPLATE" | "TICKET_INPUT" | "CONTENT_INPUT" | "CONTENT" | "NPM_UNPACKED" | "S3_BUCKET" | "RWC_INPUT";
|
|
181
|
-
query?: string;
|
|
182
|
-
scope?: {
|
|
183
|
-
id?: unknown[];
|
|
184
|
-
category?: unknown[];
|
|
185
|
-
};
|
|
186
|
-
size?: number;
|
|
187
|
-
cursor?: {
|
|
188
|
-
from?: number;
|
|
189
|
-
};
|
|
190
|
-
orderBy?: PackagesOrderByEnum.createdAt | PackagesOrderByEnum.updatedAt;
|
|
191
|
-
order?: "asc" | "desc";
|
|
192
|
-
includeDeprecated?: boolean;
|
|
193
|
-
}, {
|
|
194
|
-
filter?: {
|
|
195
|
-
id?: string | string[];
|
|
196
|
-
schemaType?: "UNKNOWN" | "LEGACY" | "EXTERNAL";
|
|
197
|
-
category?: string | string[];
|
|
198
|
-
level?: "USER" | "ACCOUNT" | "PDE" | ("USER" | "ACCOUNT" | "PDE")[];
|
|
199
|
-
};
|
|
200
|
-
} & {
|
|
201
|
-
id?: string;
|
|
202
|
-
type?: "TEST_ONLY" | "UNKNOWN" | "STEP" | "STEP_INPUT" | "STEP_TEMPLATE" | "FLOW_TEMPLATE" | "BOT_TEMPLATE" | "TICKET_INPUT" | "CONTENT_INPUT" | "CONTENT" | "NPM_UNPACKED" | "S3_BUCKET" | "RWC_INPUT";
|
|
203
|
-
query?: string;
|
|
204
|
-
scope?: {
|
|
205
|
-
id?: string | string[];
|
|
206
|
-
category?: string | string[];
|
|
207
|
-
};
|
|
208
|
-
size?: string | number;
|
|
209
|
-
cursor?: any;
|
|
210
|
-
orderBy?: PackagesOrderByEnum;
|
|
211
|
-
order?: "asc" | "desc";
|
|
212
|
-
categories?: string[];
|
|
213
|
-
includeDeprecated?: string | boolean;
|
|
214
|
-
}>;
|
|
171
|
+
}>>>;
|
|
215
172
|
export declare const PackageParamUniversal: z.ZodObject<{
|
|
216
173
|
type: z.ZodNativeEnum<{
|
|
217
174
|
TEST_ONLY: "TEST_ONLY";
|
|
@@ -54,7 +54,7 @@ export declare const GetPackagesResponseEntity: z.ZodObject<{
|
|
|
54
54
|
PDE: "PDE";
|
|
55
55
|
}>, "many">>;
|
|
56
56
|
name: z.ZodOptional<z.ZodString>;
|
|
57
|
-
releases: z.
|
|
57
|
+
releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
58
58
|
status: z.ZodNativeEnum<{
|
|
59
59
|
TEST_ONLY: "TEST_ONLY";
|
|
60
60
|
PENDING: "PENDING";
|
|
@@ -237,7 +237,7 @@ export declare const GetPackagesResponse: z.ZodObject<{
|
|
|
237
237
|
PDE: "PDE";
|
|
238
238
|
}>, "many">>;
|
|
239
239
|
name: z.ZodOptional<z.ZodString>;
|
|
240
|
-
releases: z.
|
|
240
|
+
releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
241
241
|
status: z.ZodNativeEnum<{
|
|
242
242
|
TEST_ONLY: "TEST_ONLY";
|
|
243
243
|
PENDING: "PENDING";
|
|
@@ -923,7 +923,76 @@ export declare const GetPackageResponse: z.ZodObject<{
|
|
|
923
923
|
};
|
|
924
924
|
servingType?: string;
|
|
925
925
|
}>;
|
|
926
|
-
export declare const
|
|
926
|
+
export declare const GetPackageByIdIncludes: z.ZodObject<{
|
|
927
|
+
releaseNotes: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
928
|
+
markdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
929
|
+
}, "strip", z.ZodTypeAny, {
|
|
930
|
+
markdown?: string;
|
|
931
|
+
}, {
|
|
932
|
+
markdown?: string;
|
|
933
|
+
}>>>;
|
|
934
|
+
member: z.ZodOptional<z.ZodObject<{
|
|
935
|
+
account: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
936
|
+
accountId: z.ZodString;
|
|
937
|
+
}, "strip", z.ZodTypeAny, {
|
|
938
|
+
accountId?: string;
|
|
939
|
+
}, {
|
|
940
|
+
accountId?: string;
|
|
941
|
+
}>, "many">>;
|
|
942
|
+
user: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
943
|
+
userId: z.ZodString;
|
|
944
|
+
}, "strip", z.ZodTypeAny, {
|
|
945
|
+
userId?: string;
|
|
946
|
+
}, {
|
|
947
|
+
userId?: string;
|
|
948
|
+
}>, "many">>;
|
|
949
|
+
}, "strip", z.ZodTypeAny, {
|
|
950
|
+
account?: {
|
|
951
|
+
accountId?: string;
|
|
952
|
+
}[];
|
|
953
|
+
user?: {
|
|
954
|
+
userId?: string;
|
|
955
|
+
}[];
|
|
956
|
+
}, {
|
|
957
|
+
account?: {
|
|
958
|
+
accountId?: string;
|
|
959
|
+
}[];
|
|
960
|
+
user?: {
|
|
961
|
+
userId?: string;
|
|
962
|
+
}[];
|
|
963
|
+
}>>;
|
|
964
|
+
membersAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
965
|
+
membersUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
966
|
+
}, "strip", z.ZodTypeAny, {
|
|
967
|
+
releaseNotes?: {
|
|
968
|
+
markdown?: string;
|
|
969
|
+
};
|
|
970
|
+
member?: {
|
|
971
|
+
account?: {
|
|
972
|
+
accountId?: string;
|
|
973
|
+
}[];
|
|
974
|
+
user?: {
|
|
975
|
+
userId?: string;
|
|
976
|
+
}[];
|
|
977
|
+
};
|
|
978
|
+
membersAccountIds?: string[];
|
|
979
|
+
membersUserIds?: string[];
|
|
980
|
+
}, {
|
|
981
|
+
releaseNotes?: {
|
|
982
|
+
markdown?: string;
|
|
983
|
+
};
|
|
984
|
+
member?: {
|
|
985
|
+
account?: {
|
|
986
|
+
accountId?: string;
|
|
987
|
+
}[];
|
|
988
|
+
user?: {
|
|
989
|
+
userId?: string;
|
|
990
|
+
}[];
|
|
991
|
+
};
|
|
992
|
+
membersAccountIds?: string[];
|
|
993
|
+
membersUserIds?: string[];
|
|
994
|
+
}>;
|
|
995
|
+
export declare const GetPackageByIdResponse: z.ZodIntersection<z.ZodObject<{
|
|
927
996
|
version: z.ZodString;
|
|
928
997
|
baseUrl: z.ZodString;
|
|
929
998
|
statusDetails: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -1045,45 +1114,6 @@ export declare const GetPackageByIdResponse: z.ZodObject<{
|
|
|
1045
1114
|
};
|
|
1046
1115
|
}>>>;
|
|
1047
1116
|
servingType: z.ZodOptional<z.ZodString>;
|
|
1048
|
-
releaseNotes: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1049
|
-
markdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1050
|
-
}, "strip", z.ZodTypeAny, {
|
|
1051
|
-
markdown?: string;
|
|
1052
|
-
}, {
|
|
1053
|
-
markdown?: string;
|
|
1054
|
-
}>>>;
|
|
1055
|
-
member: z.ZodOptional<z.ZodObject<{
|
|
1056
|
-
account: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1057
|
-
accountId: z.ZodString;
|
|
1058
|
-
}, "strip", z.ZodTypeAny, {
|
|
1059
|
-
accountId?: string;
|
|
1060
|
-
}, {
|
|
1061
|
-
accountId?: string;
|
|
1062
|
-
}>, "many">>;
|
|
1063
|
-
user: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1064
|
-
userId: z.ZodString;
|
|
1065
|
-
}, "strip", z.ZodTypeAny, {
|
|
1066
|
-
userId?: string;
|
|
1067
|
-
}, {
|
|
1068
|
-
userId?: string;
|
|
1069
|
-
}>, "many">>;
|
|
1070
|
-
}, "strip", z.ZodTypeAny, {
|
|
1071
|
-
account?: {
|
|
1072
|
-
accountId?: string;
|
|
1073
|
-
}[];
|
|
1074
|
-
user?: {
|
|
1075
|
-
userId?: string;
|
|
1076
|
-
}[];
|
|
1077
|
-
}, {
|
|
1078
|
-
account?: {
|
|
1079
|
-
accountId?: string;
|
|
1080
|
-
}[];
|
|
1081
|
-
user?: {
|
|
1082
|
-
userId?: string;
|
|
1083
|
-
}[];
|
|
1084
|
-
}>>;
|
|
1085
|
-
membersAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1086
|
-
membersUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1087
1117
|
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodString]>>;
|
|
1088
1118
|
revisionId: z.ZodOptional<z.ZodString>;
|
|
1089
1119
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1152,19 +1182,6 @@ export declare const GetPackageByIdResponse: z.ZodObject<{
|
|
|
1152
1182
|
};
|
|
1153
1183
|
};
|
|
1154
1184
|
servingType?: string;
|
|
1155
|
-
releaseNotes?: {
|
|
1156
|
-
markdown?: string;
|
|
1157
|
-
};
|
|
1158
|
-
member?: {
|
|
1159
|
-
account?: {
|
|
1160
|
-
accountId?: string;
|
|
1161
|
-
}[];
|
|
1162
|
-
user?: {
|
|
1163
|
-
userId?: string;
|
|
1164
|
-
}[];
|
|
1165
|
-
};
|
|
1166
|
-
membersAccountIds?: string[];
|
|
1167
|
-
membersUserIds?: string[];
|
|
1168
1185
|
createdAt?: string | Date;
|
|
1169
1186
|
revisionId?: string;
|
|
1170
1187
|
name?: string;
|
|
@@ -1205,19 +1222,6 @@ export declare const GetPackageByIdResponse: z.ZodObject<{
|
|
|
1205
1222
|
};
|
|
1206
1223
|
};
|
|
1207
1224
|
servingType?: string;
|
|
1208
|
-
releaseNotes?: {
|
|
1209
|
-
markdown?: string;
|
|
1210
|
-
};
|
|
1211
|
-
member?: {
|
|
1212
|
-
account?: {
|
|
1213
|
-
accountId?: string;
|
|
1214
|
-
}[];
|
|
1215
|
-
user?: {
|
|
1216
|
-
userId?: string;
|
|
1217
|
-
}[];
|
|
1218
|
-
};
|
|
1219
|
-
membersAccountIds?: string[];
|
|
1220
|
-
membersUserIds?: string[];
|
|
1221
1225
|
createdAt?: string | Date;
|
|
1222
1226
|
revisionId?: string;
|
|
1223
1227
|
name?: string;
|
|
@@ -1238,8 +1242,76 @@ export declare const GetPackageByIdResponse: z.ZodObject<{
|
|
|
1238
1242
|
}, z.ZodTypeAny, "passthrough">;
|
|
1239
1243
|
id?: string;
|
|
1240
1244
|
schemaType?: "UNKNOWN" | "LEGACY" | "EXTERNAL";
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1245
|
+
}>, z.ZodObject<{
|
|
1246
|
+
releaseNotes: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1247
|
+
markdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1248
|
+
}, "strip", z.ZodTypeAny, {
|
|
1249
|
+
markdown?: string;
|
|
1250
|
+
}, {
|
|
1251
|
+
markdown?: string;
|
|
1252
|
+
}>>>;
|
|
1253
|
+
member: z.ZodOptional<z.ZodObject<{
|
|
1254
|
+
account: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1255
|
+
accountId: z.ZodString;
|
|
1256
|
+
}, "strip", z.ZodTypeAny, {
|
|
1257
|
+
accountId?: string;
|
|
1258
|
+
}, {
|
|
1259
|
+
accountId?: string;
|
|
1260
|
+
}>, "many">>;
|
|
1261
|
+
user: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1262
|
+
userId: z.ZodString;
|
|
1263
|
+
}, "strip", z.ZodTypeAny, {
|
|
1264
|
+
userId?: string;
|
|
1265
|
+
}, {
|
|
1266
|
+
userId?: string;
|
|
1267
|
+
}>, "many">>;
|
|
1268
|
+
}, "strip", z.ZodTypeAny, {
|
|
1269
|
+
account?: {
|
|
1270
|
+
accountId?: string;
|
|
1271
|
+
}[];
|
|
1272
|
+
user?: {
|
|
1273
|
+
userId?: string;
|
|
1274
|
+
}[];
|
|
1275
|
+
}, {
|
|
1276
|
+
account?: {
|
|
1277
|
+
accountId?: string;
|
|
1278
|
+
}[];
|
|
1279
|
+
user?: {
|
|
1280
|
+
userId?: string;
|
|
1281
|
+
}[];
|
|
1282
|
+
}>>;
|
|
1283
|
+
membersAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1284
|
+
membersUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1285
|
+
}, "strip", z.ZodTypeAny, {
|
|
1286
|
+
releaseNotes?: {
|
|
1287
|
+
markdown?: string;
|
|
1288
|
+
};
|
|
1289
|
+
member?: {
|
|
1290
|
+
account?: {
|
|
1291
|
+
accountId?: string;
|
|
1292
|
+
}[];
|
|
1293
|
+
user?: {
|
|
1294
|
+
userId?: string;
|
|
1295
|
+
}[];
|
|
1296
|
+
};
|
|
1297
|
+
membersAccountIds?: string[];
|
|
1298
|
+
membersUserIds?: string[];
|
|
1299
|
+
}, {
|
|
1300
|
+
releaseNotes?: {
|
|
1301
|
+
markdown?: string;
|
|
1302
|
+
};
|
|
1303
|
+
member?: {
|
|
1304
|
+
account?: {
|
|
1305
|
+
accountId?: string;
|
|
1306
|
+
}[];
|
|
1307
|
+
user?: {
|
|
1308
|
+
userId?: string;
|
|
1309
|
+
}[];
|
|
1310
|
+
};
|
|
1311
|
+
membersAccountIds?: string[];
|
|
1312
|
+
membersUserIds?: string[];
|
|
1313
|
+
}>>;
|
|
1314
|
+
export declare const GetPackageByIdLatestResponse: z.ZodIntersection<z.ZodObject<{
|
|
1243
1315
|
packageMeta: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1244
1316
|
label: z.ZodOptional<z.ZodString>;
|
|
1245
1317
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1287,6 +1359,35 @@ export declare const GetPackageByIdLatestResponse: z.ZodObject<{
|
|
|
1287
1359
|
name: z.ZodOptional<z.ZodString>;
|
|
1288
1360
|
baseUrl: z.ZodString;
|
|
1289
1361
|
servingType: z.ZodOptional<z.ZodString>;
|
|
1362
|
+
releases: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1363
|
+
status: z.ZodNativeEnum<{
|
|
1364
|
+
TEST_ONLY: "TEST_ONLY";
|
|
1365
|
+
PENDING: "PENDING";
|
|
1366
|
+
EXTRACTING: "EXTRACTING";
|
|
1367
|
+
UPLOADED: "UPLOADED";
|
|
1368
|
+
BETA: "BETA";
|
|
1369
|
+
RELEASED: "RELEASED";
|
|
1370
|
+
ACCOUNT_BETA: "ACCOUNT_BETA";
|
|
1371
|
+
DEPRECATED: "DEPRECATED";
|
|
1372
|
+
}>;
|
|
1373
|
+
level: z.ZodNativeEnum<{
|
|
1374
|
+
USER: "USER";
|
|
1375
|
+
ACCOUNT: "ACCOUNT";
|
|
1376
|
+
PDE: "PDE";
|
|
1377
|
+
}>;
|
|
1378
|
+
version: z.ZodString;
|
|
1379
|
+
primaryId: z.ZodOptional<z.ZodNumber>;
|
|
1380
|
+
}, "strip", z.ZodTypeAny, {
|
|
1381
|
+
status?: "TEST_ONLY" | "PENDING" | "EXTRACTING" | "UPLOADED" | "BETA" | "RELEASED" | "ACCOUNT_BETA" | "DEPRECATED";
|
|
1382
|
+
level?: "USER" | "ACCOUNT" | "PDE";
|
|
1383
|
+
version?: string;
|
|
1384
|
+
primaryId?: number;
|
|
1385
|
+
}, {
|
|
1386
|
+
status?: "TEST_ONLY" | "PENDING" | "EXTRACTING" | "UPLOADED" | "BETA" | "RELEASED" | "ACCOUNT_BETA" | "DEPRECATED";
|
|
1387
|
+
level?: "USER" | "ACCOUNT" | "PDE";
|
|
1388
|
+
version?: string;
|
|
1389
|
+
primaryId?: number;
|
|
1390
|
+
}>, "many">>;
|
|
1290
1391
|
}, "strip", z.ZodTypeAny, {
|
|
1291
1392
|
packageMeta?: z.objectOutputType<{
|
|
1292
1393
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1307,6 +1408,12 @@ export declare const GetPackageByIdLatestResponse: z.ZodObject<{
|
|
|
1307
1408
|
name?: string;
|
|
1308
1409
|
baseUrl?: string;
|
|
1309
1410
|
servingType?: string;
|
|
1411
|
+
releases?: {
|
|
1412
|
+
status?: "TEST_ONLY" | "PENDING" | "EXTRACTING" | "UPLOADED" | "BETA" | "RELEASED" | "ACCOUNT_BETA" | "DEPRECATED";
|
|
1413
|
+
level?: "USER" | "ACCOUNT" | "PDE";
|
|
1414
|
+
version?: string;
|
|
1415
|
+
primaryId?: number;
|
|
1416
|
+
}[];
|
|
1310
1417
|
}, {
|
|
1311
1418
|
packageMeta?: z.objectInputType<{
|
|
1312
1419
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1327,7 +1434,81 @@ export declare const GetPackageByIdLatestResponse: z.ZodObject<{
|
|
|
1327
1434
|
name?: string;
|
|
1328
1435
|
baseUrl?: string;
|
|
1329
1436
|
servingType?: string;
|
|
1330
|
-
|
|
1437
|
+
releases?: {
|
|
1438
|
+
status?: "TEST_ONLY" | "PENDING" | "EXTRACTING" | "UPLOADED" | "BETA" | "RELEASED" | "ACCOUNT_BETA" | "DEPRECATED";
|
|
1439
|
+
level?: "USER" | "ACCOUNT" | "PDE";
|
|
1440
|
+
version?: string;
|
|
1441
|
+
primaryId?: number;
|
|
1442
|
+
}[];
|
|
1443
|
+
}>, z.ZodObject<{
|
|
1444
|
+
releaseNotes: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1445
|
+
markdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1446
|
+
}, "strip", z.ZodTypeAny, {
|
|
1447
|
+
markdown?: string;
|
|
1448
|
+
}, {
|
|
1449
|
+
markdown?: string;
|
|
1450
|
+
}>>>;
|
|
1451
|
+
member: z.ZodOptional<z.ZodObject<{
|
|
1452
|
+
account: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1453
|
+
accountId: z.ZodString;
|
|
1454
|
+
}, "strip", z.ZodTypeAny, {
|
|
1455
|
+
accountId?: string;
|
|
1456
|
+
}, {
|
|
1457
|
+
accountId?: string;
|
|
1458
|
+
}>, "many">>;
|
|
1459
|
+
user: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1460
|
+
userId: z.ZodString;
|
|
1461
|
+
}, "strip", z.ZodTypeAny, {
|
|
1462
|
+
userId?: string;
|
|
1463
|
+
}, {
|
|
1464
|
+
userId?: string;
|
|
1465
|
+
}>, "many">>;
|
|
1466
|
+
}, "strip", z.ZodTypeAny, {
|
|
1467
|
+
account?: {
|
|
1468
|
+
accountId?: string;
|
|
1469
|
+
}[];
|
|
1470
|
+
user?: {
|
|
1471
|
+
userId?: string;
|
|
1472
|
+
}[];
|
|
1473
|
+
}, {
|
|
1474
|
+
account?: {
|
|
1475
|
+
accountId?: string;
|
|
1476
|
+
}[];
|
|
1477
|
+
user?: {
|
|
1478
|
+
userId?: string;
|
|
1479
|
+
}[];
|
|
1480
|
+
}>>;
|
|
1481
|
+
membersAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1482
|
+
membersUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1483
|
+
}, "strip", z.ZodTypeAny, {
|
|
1484
|
+
releaseNotes?: {
|
|
1485
|
+
markdown?: string;
|
|
1486
|
+
};
|
|
1487
|
+
member?: {
|
|
1488
|
+
account?: {
|
|
1489
|
+
accountId?: string;
|
|
1490
|
+
}[];
|
|
1491
|
+
user?: {
|
|
1492
|
+
userId?: string;
|
|
1493
|
+
}[];
|
|
1494
|
+
};
|
|
1495
|
+
membersAccountIds?: string[];
|
|
1496
|
+
membersUserIds?: string[];
|
|
1497
|
+
}, {
|
|
1498
|
+
releaseNotes?: {
|
|
1499
|
+
markdown?: string;
|
|
1500
|
+
};
|
|
1501
|
+
member?: {
|
|
1502
|
+
account?: {
|
|
1503
|
+
accountId?: string;
|
|
1504
|
+
}[];
|
|
1505
|
+
user?: {
|
|
1506
|
+
userId?: string;
|
|
1507
|
+
}[];
|
|
1508
|
+
};
|
|
1509
|
+
membersAccountIds?: string[];
|
|
1510
|
+
membersUserIds?: string[];
|
|
1511
|
+
}>>;
|
|
1331
1512
|
export declare const GetPackageArchiveSignedUrl: z.ZodObject<{
|
|
1332
1513
|
key: z.ZodString;
|
|
1333
1514
|
url: z.ZodString;
|
package/dist/Packages/union.d.ts
CHANGED
|
@@ -474,13 +474,13 @@ export declare const CreatePackageByVersionUnion: z.ZodIntersection<z.ZodInterse
|
|
|
474
474
|
}>>;
|
|
475
475
|
export declare const GetPackageByIdQueryUnion: z.ZodIntersection<z.ZodObject<{
|
|
476
476
|
filter: z.ZodDefault<z.ZodObject<{
|
|
477
|
-
id: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]
|
|
477
|
+
id: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]>>>;
|
|
478
478
|
schemaType: z.ZodOptional<z.ZodNativeEnum<{
|
|
479
479
|
LEGACY: "LEGACY";
|
|
480
480
|
EXTERNAL: "EXTERNAL";
|
|
481
481
|
UNKNOWN: "UNKNOWN";
|
|
482
482
|
}>>;
|
|
483
|
-
category: z.
|
|
483
|
+
category: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>, unknown[], string | string[]>>>;
|
|
484
484
|
level: z.ZodEffects<z.ZodDefault<z.ZodUnion<[z.ZodArray<z.ZodNativeEnum<{
|
|
485
485
|
USER: "USER";
|
|
486
486
|
ACCOUNT: "ACCOUNT";
|
|
@@ -493,7 +493,7 @@ export declare const GetPackageByIdQueryUnion: z.ZodIntersection<z.ZodObject<{
|
|
|
493
493
|
}, "strip", z.ZodTypeAny, {
|
|
494
494
|
id?: unknown[];
|
|
495
495
|
schemaType?: "UNKNOWN" | "LEGACY" | "EXTERNAL";
|
|
496
|
-
category?:
|
|
496
|
+
category?: unknown[];
|
|
497
497
|
level?: ("USER" | "ACCOUNT" | "PDE")[];
|
|
498
498
|
}, {
|
|
499
499
|
id?: string | string[];
|
|
@@ -505,7 +505,7 @@ export declare const GetPackageByIdQueryUnion: z.ZodIntersection<z.ZodObject<{
|
|
|
505
505
|
filter?: {
|
|
506
506
|
id?: unknown[];
|
|
507
507
|
schemaType?: "UNKNOWN" | "LEGACY" | "EXTERNAL";
|
|
508
|
-
category?:
|
|
508
|
+
category?: unknown[];
|
|
509
509
|
level?: ("USER" | "ACCOUNT" | "PDE")[];
|
|
510
510
|
};
|
|
511
511
|
}, {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as allZodSchemas from './index.zod';
|
|
3
|
+
export type CategoryNameTypeDTO = z.infer<typeof allZodSchemas.CategoryNameType>;
|
|
3
4
|
export type CreateCategoryBodyDTO = z.infer<typeof allZodSchemas.CreateCategoryBody>;
|
|
4
5
|
export type UpdateCategoryBodyDTO = z.infer<typeof allZodSchemas.UpdateCategoryBody>;
|
|
5
6
|
export type CategoriesParamUniversalDTO = z.infer<typeof allZodSchemas.CategoriesParamUniversal>;
|
|
@@ -26,6 +27,7 @@ export type GetPackagesResponseEntityDTO = z.infer<typeof allZodSchemas.GetPacka
|
|
|
26
27
|
export type GetPackagesResponseDTO = z.infer<typeof allZodSchemas.GetPackagesResponse>;
|
|
27
28
|
export type PackageStatusDetailsDTO = z.infer<typeof allZodSchemas.PackageStatusDetails>;
|
|
28
29
|
export type GetPackageResponseDTO = z.infer<typeof allZodSchemas.GetPackageResponse>;
|
|
30
|
+
export type GetPackageByIdIncludesDTO = z.infer<typeof allZodSchemas.GetPackageByIdIncludes>;
|
|
29
31
|
export type GetPackageByIdResponseDTO = z.infer<typeof allZodSchemas.GetPackageByIdResponse>;
|
|
30
32
|
export type GetPackageByIdLatestResponseDTO = z.infer<typeof allZodSchemas.GetPackageByIdLatestResponse>;
|
|
31
33
|
export type GetPackageArchiveSignedUrlDTO = z.infer<typeof allZodSchemas.GetPackageArchiveSignedUrl>;
|