@or-sdk/library-types-v2 6.0.21 → 7.0.0-tryboundletypes-20240228134210
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/cjs/index.js +103 -90
- package/dist/cjs/index.js.map +3 -3
- package/dist/esm/index.js +103 -90
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +3904 -25
- package/package.json +6 -5
- package/dist/types/CreatedBy.d.ts +0 -13
- package/dist/types/List.d.ts +0 -68
- package/dist/types/Packages/body.d.ts +0 -352
- package/dist/types/Packages/index.d.ts +0 -3
- package/dist/types/Packages/params.d.ts +0 -1234
- package/dist/types/Packages/response.d.ts +0 -1722
- package/dist/types/PropFilter.d.ts +0 -19
- package/dist/types/index.public.d.ts +0 -5
package/CHANGELOG.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -1158,91 +1158,91 @@ var require_index_browser2 = __commonJS({
|
|
|
1158
1158
|
Public: Public2,
|
|
1159
1159
|
detectRuntime: detectRuntime2
|
|
1160
1160
|
} = require_index_browser();
|
|
1161
|
-
var
|
|
1162
|
-
exports.Prisma =
|
|
1161
|
+
var Prisma = {};
|
|
1162
|
+
exports.Prisma = Prisma;
|
|
1163
1163
|
exports.$Enums = {};
|
|
1164
|
-
|
|
1165
|
-
client: "5.
|
|
1166
|
-
engine: "
|
|
1164
|
+
Prisma.prismaVersion = {
|
|
1165
|
+
client: "5.10.2",
|
|
1166
|
+
engine: "5a9203d0590c951969e85a7d07215503f4672eb9"
|
|
1167
1167
|
};
|
|
1168
|
-
|
|
1168
|
+
Prisma.PrismaClientKnownRequestError = () => {
|
|
1169
1169
|
throw new Error(
|
|
1170
1170
|
`PrismaClientKnownRequestError is unable to be run ${runtimeDescription}.
|
|
1171
|
-
In case this error is unexpected for you, please report it in https://
|
|
1171
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1172
1172
|
);
|
|
1173
1173
|
};
|
|
1174
|
-
|
|
1174
|
+
Prisma.PrismaClientUnknownRequestError = () => {
|
|
1175
1175
|
throw new Error(
|
|
1176
1176
|
`PrismaClientUnknownRequestError is unable to be run ${runtimeDescription}.
|
|
1177
|
-
In case this error is unexpected for you, please report it in https://
|
|
1177
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1178
1178
|
);
|
|
1179
1179
|
};
|
|
1180
|
-
|
|
1180
|
+
Prisma.PrismaClientRustPanicError = () => {
|
|
1181
1181
|
throw new Error(
|
|
1182
1182
|
`PrismaClientRustPanicError is unable to be run ${runtimeDescription}.
|
|
1183
|
-
In case this error is unexpected for you, please report it in https://
|
|
1183
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1184
1184
|
);
|
|
1185
1185
|
};
|
|
1186
|
-
|
|
1186
|
+
Prisma.PrismaClientInitializationError = () => {
|
|
1187
1187
|
throw new Error(
|
|
1188
1188
|
`PrismaClientInitializationError is unable to be run ${runtimeDescription}.
|
|
1189
|
-
In case this error is unexpected for you, please report it in https://
|
|
1189
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1190
1190
|
);
|
|
1191
1191
|
};
|
|
1192
|
-
|
|
1192
|
+
Prisma.PrismaClientValidationError = () => {
|
|
1193
1193
|
throw new Error(
|
|
1194
1194
|
`PrismaClientValidationError is unable to be run ${runtimeDescription}.
|
|
1195
|
-
In case this error is unexpected for you, please report it in https://
|
|
1195
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1196
1196
|
);
|
|
1197
1197
|
};
|
|
1198
|
-
|
|
1198
|
+
Prisma.NotFoundError = () => {
|
|
1199
1199
|
throw new Error(
|
|
1200
1200
|
`NotFoundError is unable to be run ${runtimeDescription}.
|
|
1201
|
-
In case this error is unexpected for you, please report it in https://
|
|
1201
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1202
1202
|
);
|
|
1203
1203
|
};
|
|
1204
|
-
|
|
1205
|
-
|
|
1204
|
+
Prisma.Decimal = Decimal2;
|
|
1205
|
+
Prisma.sql = () => {
|
|
1206
1206
|
throw new Error(
|
|
1207
1207
|
`sqltag is unable to be run ${runtimeDescription}.
|
|
1208
|
-
In case this error is unexpected for you, please report it in https://
|
|
1208
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1209
1209
|
);
|
|
1210
1210
|
};
|
|
1211
|
-
|
|
1211
|
+
Prisma.empty = () => {
|
|
1212
1212
|
throw new Error(
|
|
1213
1213
|
`empty is unable to be run ${runtimeDescription}.
|
|
1214
|
-
In case this error is unexpected for you, please report it in https://
|
|
1214
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1215
1215
|
);
|
|
1216
1216
|
};
|
|
1217
|
-
|
|
1217
|
+
Prisma.join = () => {
|
|
1218
1218
|
throw new Error(
|
|
1219
1219
|
`join is unable to be run ${runtimeDescription}.
|
|
1220
|
-
In case this error is unexpected for you, please report it in https://
|
|
1220
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1221
1221
|
);
|
|
1222
1222
|
};
|
|
1223
|
-
|
|
1223
|
+
Prisma.raw = () => {
|
|
1224
1224
|
throw new Error(
|
|
1225
1225
|
`raw is unable to be run ${runtimeDescription}.
|
|
1226
|
-
In case this error is unexpected for you, please report it in https://
|
|
1226
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1227
1227
|
);
|
|
1228
1228
|
};
|
|
1229
|
-
|
|
1230
|
-
|
|
1229
|
+
Prisma.validator = Public2.validator;
|
|
1230
|
+
Prisma.getExtensionContext = () => {
|
|
1231
1231
|
throw new Error(
|
|
1232
1232
|
`Extensions.getExtensionContext is unable to be run ${runtimeDescription}.
|
|
1233
|
-
In case this error is unexpected for you, please report it in https://
|
|
1233
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1234
1234
|
);
|
|
1235
1235
|
};
|
|
1236
|
-
|
|
1236
|
+
Prisma.defineExtension = () => {
|
|
1237
1237
|
throw new Error(
|
|
1238
1238
|
`Extensions.defineExtension is unable to be run ${runtimeDescription}.
|
|
1239
|
-
In case this error is unexpected for you, please report it in https://
|
|
1239
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1240
1240
|
);
|
|
1241
1241
|
};
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1242
|
+
Prisma.DbNull = objectEnumValues2.instances.DbNull;
|
|
1243
|
+
Prisma.JsonNull = objectEnumValues2.instances.JsonNull;
|
|
1244
|
+
Prisma.AnyNull = objectEnumValues2.instances.AnyNull;
|
|
1245
|
+
Prisma.NullTypes = {
|
|
1246
1246
|
DbNull: objectEnumValues2.classes.DbNull,
|
|
1247
1247
|
JsonNull: objectEnumValues2.classes.JsonNull,
|
|
1248
1248
|
AnyNull: objectEnumValues2.classes.AnyNull
|
|
@@ -1261,6 +1261,10 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1261
1261
|
error: "error",
|
|
1262
1262
|
pid: "pid"
|
|
1263
1263
|
};
|
|
1264
|
+
exports.Prisma.RelationLoadStrategy = {
|
|
1265
|
+
query: "query",
|
|
1266
|
+
join: "join"
|
|
1267
|
+
};
|
|
1264
1268
|
exports.Prisma.CreatedByScalarFieldEnum = {
|
|
1265
1269
|
id: "id",
|
|
1266
1270
|
accountId: "accountId",
|
|
@@ -1389,8 +1393,8 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1389
1393
|
desc: "desc"
|
|
1390
1394
|
};
|
|
1391
1395
|
exports.Prisma.NullableJsonNullValueInput = {
|
|
1392
|
-
DbNull:
|
|
1393
|
-
JsonNull:
|
|
1396
|
+
DbNull: Prisma.DbNull,
|
|
1397
|
+
JsonNull: Prisma.JsonNull
|
|
1394
1398
|
};
|
|
1395
1399
|
exports.Prisma.QueryMode = {
|
|
1396
1400
|
default: "default",
|
|
@@ -1420,9 +1424,9 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1420
1424
|
id: "id"
|
|
1421
1425
|
};
|
|
1422
1426
|
exports.Prisma.JsonNullValueFilter = {
|
|
1423
|
-
DbNull:
|
|
1424
|
-
JsonNull:
|
|
1425
|
-
AnyNull:
|
|
1427
|
+
DbNull: Prisma.DbNull,
|
|
1428
|
+
JsonNull: Prisma.JsonNull,
|
|
1429
|
+
AnyNull: Prisma.AnyNull
|
|
1426
1430
|
};
|
|
1427
1431
|
exports.Prisma.PackageReleaseOrderByRelevanceFieldEnum = {
|
|
1428
1432
|
revisionId: "revisionId",
|
|
@@ -1500,7 +1504,9 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1500
1504
|
EXTERNAL: "EXTERNAL",
|
|
1501
1505
|
VUE2_V1: "VUE2_V1",
|
|
1502
1506
|
VUE3_V1: "VUE3_V1",
|
|
1503
|
-
UNKNOWN: "UNKNOWN"
|
|
1507
|
+
UNKNOWN: "UNKNOWN",
|
|
1508
|
+
v1: "v1",
|
|
1509
|
+
v2: "v2"
|
|
1504
1510
|
};
|
|
1505
1511
|
exports.PackageStatusDetailsStatusEnum = exports.$Enums.PackageStatusDetailsStatusEnum = {
|
|
1506
1512
|
TEST_ONLY: "TEST_ONLY",
|
|
@@ -1542,7 +1548,7 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1542
1548
|
"workerd": "Cloudflare Workers",
|
|
1543
1549
|
"deno": "Deno and Deno Deploy",
|
|
1544
1550
|
"netlify": "Netlify Edge Functions",
|
|
1545
|
-
"edge-light": "Vercel Edge Functions"
|
|
1551
|
+
"edge-light": "Vercel Edge Functions or Edge Middleware"
|
|
1546
1552
|
}[runtime];
|
|
1547
1553
|
let message = "PrismaClient is unable to run in ";
|
|
1548
1554
|
if (edgeRuntimeName !== void 0) {
|
|
@@ -1551,14 +1557,14 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1551
1557
|
message += "this browser environment, or has been bundled for the browser (running in `" + runtime + "`).";
|
|
1552
1558
|
}
|
|
1553
1559
|
message += `
|
|
1554
|
-
If this is unexpected, please open an issue: https://
|
|
1560
|
+
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`;
|
|
1555
1561
|
throw new Error(message);
|
|
1556
1562
|
}
|
|
1557
1563
|
});
|
|
1558
1564
|
}
|
|
1559
1565
|
};
|
|
1560
1566
|
exports.PrismaClient = PrismaClient;
|
|
1561
|
-
Object.assign(exports,
|
|
1567
|
+
Object.assign(exports, Prisma);
|
|
1562
1568
|
}
|
|
1563
1569
|
});
|
|
1564
1570
|
|
|
@@ -5844,6 +5850,8 @@ var require_enums = __commonJS({
|
|
|
5844
5850
|
PackageSchemaTypeEnum5["VUE2_V1"] = "VUE2_V1";
|
|
5845
5851
|
PackageSchemaTypeEnum5["VUE3_V1"] = "VUE3_V1";
|
|
5846
5852
|
PackageSchemaTypeEnum5["UNKNOWN"] = "UNKNOWN";
|
|
5853
|
+
PackageSchemaTypeEnum5["v1"] = "v1";
|
|
5854
|
+
PackageSchemaTypeEnum5["v2"] = "v2";
|
|
5847
5855
|
})(PackageSchemaTypeEnum4 || (exports.PackageSchemaTypeEnum = PackageSchemaTypeEnum4 = {}));
|
|
5848
5856
|
var PackageStatusDetailsStatusEnum4;
|
|
5849
5857
|
(function(PackageStatusDetailsStatusEnum5) {
|
|
@@ -7283,16 +7291,17 @@ __export(src_exports, {
|
|
|
7283
7291
|
InAndNotInFunc: () => InAndNotInFunc,
|
|
7284
7292
|
ListView: () => ListView,
|
|
7285
7293
|
OrderByEnum: () => OrderByEnum,
|
|
7294
|
+
OrderEnum: () => OrderEnum,
|
|
7286
7295
|
PackageDependencyDeleteParams: () => PackageDependencyDeleteParams,
|
|
7287
7296
|
PackageMeta: () => PackageMeta,
|
|
7288
7297
|
PackageModelResponse: () => PackageModelResponse,
|
|
7289
7298
|
PackageReleaseModelResponse: () => PackageReleaseModelResponse,
|
|
7290
7299
|
PackageSchemaServingType: () => PackageSchemaServingType,
|
|
7291
|
-
PackageSchemaTypeEnum: () =>
|
|
7292
|
-
|
|
7293
|
-
PackageStatusDetailsLevelEnum: () =>
|
|
7294
|
-
PackageStatusDetailsStatusEnum: () =>
|
|
7295
|
-
PackageTypeEnum: () =>
|
|
7300
|
+
PackageSchemaTypeEnum: () => import_library_prisma5.PackageSchemaTypeEnum,
|
|
7301
|
+
PackageSchemaVersionEnum: () => PackageSchemaVersionEnum,
|
|
7302
|
+
PackageStatusDetailsLevelEnum: () => import_library_prisma5.PackageStatusDetailsLevelEnum,
|
|
7303
|
+
PackageStatusDetailsStatusEnum: () => import_library_prisma5.PackageStatusDetailsStatusEnum,
|
|
7304
|
+
PackageTypeEnum: () => import_library_prisma5.PackageTypeEnum,
|
|
7296
7305
|
PackageUpdateReleaseEnum: () => PackageUpdateReleaseEnum,
|
|
7297
7306
|
PackageUpdatesParams: () => PackageUpdatesParams,
|
|
7298
7307
|
PaginationParamsFunc: () => PaginationParamsFunc,
|
|
@@ -11106,10 +11115,9 @@ var AddPackageDependenciesBody = z.object({
|
|
|
11106
11115
|
});
|
|
11107
11116
|
|
|
11108
11117
|
// src/Packages/response.ts
|
|
11109
|
-
var
|
|
11118
|
+
var import_library_prisma3 = __toESM(require_dist());
|
|
11110
11119
|
|
|
11111
11120
|
// src/List.ts
|
|
11112
|
-
var import_library_prisma2 = __toESM(require_dist());
|
|
11113
11121
|
var ListView = z.object({
|
|
11114
11122
|
items: z.any().array().describe("List of items"),
|
|
11115
11123
|
total: z.number().describe("Total number of items in the list"),
|
|
@@ -11126,20 +11134,25 @@ var OrderByEnum = /* @__PURE__ */ ((OrderByEnum2) => {
|
|
|
11126
11134
|
OrderByEnum2["label"] = "label";
|
|
11127
11135
|
return OrderByEnum2;
|
|
11128
11136
|
})(OrderByEnum || {});
|
|
11137
|
+
var OrderEnum = /* @__PURE__ */ ((OrderEnum2) => {
|
|
11138
|
+
OrderEnum2["asc"] = "asc";
|
|
11139
|
+
OrderEnum2["desc"] = "desc";
|
|
11140
|
+
return OrderEnum2;
|
|
11141
|
+
})(OrderEnum || {});
|
|
11129
11142
|
var PaginationParamsFunc = ({
|
|
11130
11143
|
orderByEnum = OrderByEnum,
|
|
11131
11144
|
orderByDefault,
|
|
11132
|
-
orderDefault =
|
|
11145
|
+
orderDefault = "desc" /* desc */
|
|
11133
11146
|
}) => z.object({
|
|
11134
11147
|
orderBy: z.nativeEnum(orderByEnum).default(orderByDefault || orderByEnum[0]),
|
|
11135
|
-
order: z.nativeEnum(
|
|
11148
|
+
order: z.nativeEnum(OrderEnum).default(orderDefault),
|
|
11136
11149
|
skip: z.any().transform((n) => parseInt(n, 10)).default(0),
|
|
11137
11150
|
take: z.any().transform((n) => parseInt(n, 10)).default(10)
|
|
11138
11151
|
});
|
|
11139
11152
|
|
|
11140
11153
|
// src/CreatedBy.ts
|
|
11141
|
-
var
|
|
11142
|
-
var CreatedBy =
|
|
11154
|
+
var import_library_prisma2 = __toESM(require_dist());
|
|
11155
|
+
var CreatedBy = import_library_prisma2.prismaZodGenerated._CreatedByModel.pick({
|
|
11143
11156
|
accountId: true,
|
|
11144
11157
|
userId: true
|
|
11145
11158
|
}).or(z.any().nullable());
|
|
@@ -11154,12 +11167,12 @@ var PackageSchemaServingType = /* @__PURE__ */ ((PackageSchemaServingType2) => {
|
|
|
11154
11167
|
PackageSchemaServingType2["STATIC"] = "STATIC";
|
|
11155
11168
|
return PackageSchemaServingType2;
|
|
11156
11169
|
})(PackageSchemaServingType || {});
|
|
11157
|
-
var
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
return
|
|
11161
|
-
})(
|
|
11162
|
-
var PackageModelResponse =
|
|
11170
|
+
var PackageSchemaVersionEnum = /* @__PURE__ */ ((PackageSchemaVersionEnum2) => {
|
|
11171
|
+
PackageSchemaVersionEnum2["MULTI"] = "MULTI";
|
|
11172
|
+
PackageSchemaVersionEnum2["SINGLE"] = "SINGLE";
|
|
11173
|
+
return PackageSchemaVersionEnum2;
|
|
11174
|
+
})(PackageSchemaVersionEnum || {});
|
|
11175
|
+
var PackageModelResponse = import_library_prisma3.prismaZodGenerated._PackageModel.omit({
|
|
11163
11176
|
createdById: true,
|
|
11164
11177
|
modifiedById: true,
|
|
11165
11178
|
data: true,
|
|
@@ -11169,7 +11182,7 @@ var PackageModelResponse = import_library_prisma4.prismaZodGenerated._PackageMod
|
|
|
11169
11182
|
createdBy: CreatedBy.optional()
|
|
11170
11183
|
})
|
|
11171
11184
|
);
|
|
11172
|
-
var PackageReleaseModelResponse =
|
|
11185
|
+
var PackageReleaseModelResponse = import_library_prisma3.prismaZodGenerated._PackageReleaseModel.omit({
|
|
11173
11186
|
createdById: true,
|
|
11174
11187
|
modifiedById: true,
|
|
11175
11188
|
sourceRevisionId: true,
|
|
@@ -11179,16 +11192,16 @@ var PackageReleaseModelResponse = import_library_prisma4.prismaZodGenerated._Pac
|
|
|
11179
11192
|
z.object({
|
|
11180
11193
|
data: z.any().optional(),
|
|
11181
11194
|
createdBy: CreatedBy.optional(),
|
|
11182
|
-
categories:
|
|
11195
|
+
categories: import_library_prisma3.prismaZodGenerated._CategoryModel.pick({
|
|
11183
11196
|
id: true,
|
|
11184
11197
|
name: true
|
|
11185
11198
|
}).array(),
|
|
11186
|
-
statusDetailsSystem:
|
|
11199
|
+
statusDetailsSystem: import_library_prisma3.prismaZodGenerated._PackageStatusDetailsSystemModel.pick({
|
|
11187
11200
|
status: true,
|
|
11188
11201
|
createdAt: true,
|
|
11189
11202
|
updatedAt: true
|
|
11190
11203
|
}).merge(z.object({ createdBy: CreatedBy.optional() })).array().optional(),
|
|
11191
|
-
statusDetailsRelease:
|
|
11204
|
+
statusDetailsRelease: import_library_prisma3.prismaZodGenerated._PackageStatusDetailsReleaseModel.pick({
|
|
11192
11205
|
status: true,
|
|
11193
11206
|
level: true,
|
|
11194
11207
|
createdAt: true,
|
|
@@ -11197,7 +11210,7 @@ var PackageReleaseModelResponse = import_library_prisma4.prismaZodGenerated._Pac
|
|
|
11197
11210
|
schemaServingType: z.nativeEnum(PackageSchemaServingType).optional().describe(
|
|
11198
11211
|
"JSON - schema will be served as JSON, STATIC - schema will be served as static file, which was builded and uploaded to library content storage (AWS S3)"
|
|
11199
11212
|
),
|
|
11200
|
-
schemaVersion: z.nativeEnum(
|
|
11213
|
+
schemaVersion: z.nativeEnum(PackageSchemaVersionEnum).optional().describe(
|
|
11201
11214
|
"SINGLE - only latest version, MULTI - multiple versions will be able for package"
|
|
11202
11215
|
),
|
|
11203
11216
|
isPlayground: z.boolean().optional().describe("Is package playground"),
|
|
@@ -11206,16 +11219,16 @@ var PackageReleaseModelResponse = import_library_prisma4.prismaZodGenerated._Pac
|
|
|
11206
11219
|
).transform((data) => {
|
|
11207
11220
|
const { schemaType, type } = data;
|
|
11208
11221
|
switch (true) {
|
|
11209
|
-
case (schemaType ===
|
|
11222
|
+
case (schemaType === import_library_prisma3.PackageSchemaTypeEnum.LEGACY_MULTI && type === import_library_prisma3.PackageTypeEnum.STEP):
|
|
11210
11223
|
data.schemaServingType = "JSON" /* JSON */;
|
|
11211
11224
|
data.schemaVersion = "MULTI" /* MULTI */;
|
|
11212
11225
|
break;
|
|
11213
|
-
case (schemaType ===
|
|
11226
|
+
case (schemaType === import_library_prisma3.PackageSchemaTypeEnum.LEGACY && type === import_library_prisma3.PackageTypeEnum.STEP):
|
|
11214
11227
|
data.schemaServingType = "JSON" /* JSON */;
|
|
11215
11228
|
data.schemaVersion = "SINGLE" /* SINGLE */;
|
|
11216
11229
|
break;
|
|
11217
|
-
case (schemaType ===
|
|
11218
|
-
case (schemaType ===
|
|
11230
|
+
case (schemaType === import_library_prisma3.PackageSchemaTypeEnum.EXTERNAL && type === import_library_prisma3.PackageTypeEnum.STEP):
|
|
11231
|
+
case (schemaType === import_library_prisma3.PackageSchemaTypeEnum.EXTERNAL && type === import_library_prisma3.PackageTypeEnum.STEP_INPUT):
|
|
11219
11232
|
data.schemaServingType = "STATIC" /* STATIC */;
|
|
11220
11233
|
data.schemaVersion = "MULTI" /* MULTI */;
|
|
11221
11234
|
break;
|
|
@@ -11224,9 +11237,9 @@ var PackageReleaseModelResponse = import_library_prisma4.prismaZodGenerated._Pac
|
|
|
11224
11237
|
data.schemaVersion = "MULTI" /* MULTI */;
|
|
11225
11238
|
}
|
|
11226
11239
|
const releases = data.statusDetailsRelease?.map?.((e) => e.level);
|
|
11227
|
-
const hasPdeRelease = releases.includes(
|
|
11240
|
+
const hasPdeRelease = releases.includes(import_library_prisma3.PackageStatusDetailsLevelEnum.PDE) || releases.includes(import_library_prisma3.PackageStatusDetailsLevelEnum.ACCOUNT);
|
|
11228
11241
|
const hasUserRelease = releases.includes(
|
|
11229
|
-
|
|
11242
|
+
import_library_prisma3.PackageStatusDetailsLevelEnum.USER
|
|
11230
11243
|
);
|
|
11231
11244
|
data.isPlayground = !hasPdeRelease && hasUserRelease;
|
|
11232
11245
|
data.baseUrl ??= [
|
|
@@ -11249,7 +11262,7 @@ var AddPackageResponse = z.object({
|
|
|
11249
11262
|
}).array().describe("Upload signature for s3")
|
|
11250
11263
|
});
|
|
11251
11264
|
var GetPackagesListResponse = ListView.extend({
|
|
11252
|
-
categories:
|
|
11265
|
+
categories: import_library_prisma3.prismaZodGenerated._CategoryModel.pick({
|
|
11253
11266
|
name: true,
|
|
11254
11267
|
id: true
|
|
11255
11268
|
}).merge(
|
|
@@ -11276,7 +11289,7 @@ var GetPackageArchiveSignedUrl = z.object({
|
|
|
11276
11289
|
});
|
|
11277
11290
|
|
|
11278
11291
|
// src/Packages/params.ts
|
|
11279
|
-
var
|
|
11292
|
+
var import_library_prisma4 = __toESM(require_dist());
|
|
11280
11293
|
|
|
11281
11294
|
// src/PropFilter.ts
|
|
11282
11295
|
var InAndNotInFunc = ({
|
|
@@ -11294,23 +11307,23 @@ var UniversalPackageParams = z.object({
|
|
|
11294
11307
|
id: z.string(),
|
|
11295
11308
|
revisionId: z.string().optional(),
|
|
11296
11309
|
version: z.string().optional(),
|
|
11297
|
-
type: z.nativeEnum(
|
|
11310
|
+
type: z.nativeEnum(import_library_prisma4.PackageTypeEnum)
|
|
11298
11311
|
});
|
|
11299
11312
|
var AddPackageReleaseSystemStatusParams = UniversalPackageParams.merge(
|
|
11300
11313
|
z.object({
|
|
11301
|
-
status: z.nativeEnum(
|
|
11314
|
+
status: z.nativeEnum(import_library_prisma4.PackageStatusDetailsStatusEnum)
|
|
11302
11315
|
})
|
|
11303
11316
|
);
|
|
11304
11317
|
var AddPackageReleaseReleaseStatusParams = UniversalPackageParams.merge(
|
|
11305
11318
|
z.object({
|
|
11306
|
-
status: z.nativeEnum(
|
|
11307
|
-
level: z.nativeEnum(
|
|
11319
|
+
status: z.nativeEnum(import_library_prisma4.PackageStatusDetailsStatusEnum),
|
|
11320
|
+
level: z.nativeEnum(import_library_prisma4.PackageStatusDetailsLevelEnum)
|
|
11308
11321
|
})
|
|
11309
11322
|
);
|
|
11310
11323
|
var GetPackagesParamsFilter = z.object({
|
|
11311
11324
|
prerelease: z.any().transform((o) => [void 0, true, "true", "1"].includes(o)).optional().default(false),
|
|
11312
11325
|
schemaType: InAndNotInFunc({
|
|
11313
|
-
type: z.nativeEnum(
|
|
11326
|
+
type: z.nativeEnum(import_library_prisma4.PackageSchemaTypeEnum)
|
|
11314
11327
|
}).optional(),
|
|
11315
11328
|
categories: z.object({
|
|
11316
11329
|
name: InAndNotInFunc({
|
|
@@ -11325,29 +11338,29 @@ var GetPackagesParamsFilter = z.object({
|
|
|
11325
11338
|
}).optional(),
|
|
11326
11339
|
statusDetailsSystem: z.object({
|
|
11327
11340
|
status: InAndNotInFunc({
|
|
11328
|
-
type: z.nativeEnum(
|
|
11341
|
+
type: z.nativeEnum(import_library_prisma4.PackageStatusDetailsStatusEnum),
|
|
11329
11342
|
defaultValue: {
|
|
11330
|
-
in: [
|
|
11343
|
+
in: [import_library_prisma4.PackageStatusDetailsStatusEnum.UPLOADED]
|
|
11331
11344
|
}
|
|
11332
11345
|
})
|
|
11333
11346
|
}).optional().default({}),
|
|
11334
11347
|
statusDetailsRelease: z.object({
|
|
11335
11348
|
status: InAndNotInFunc({
|
|
11336
|
-
type: z.nativeEnum(
|
|
11349
|
+
type: z.nativeEnum(import_library_prisma4.PackageStatusDetailsStatusEnum),
|
|
11337
11350
|
defaultValue: {
|
|
11338
11351
|
in: [
|
|
11339
|
-
|
|
11340
|
-
|
|
11352
|
+
import_library_prisma4.PackageStatusDetailsStatusEnum.BETA,
|
|
11353
|
+
import_library_prisma4.PackageStatusDetailsStatusEnum.RELEASED
|
|
11341
11354
|
],
|
|
11342
|
-
notIn: [
|
|
11355
|
+
notIn: [import_library_prisma4.PackageStatusDetailsStatusEnum.DEPRECATED]
|
|
11343
11356
|
}
|
|
11344
11357
|
}),
|
|
11345
11358
|
level: InAndNotInFunc({
|
|
11346
|
-
type: z.nativeEnum(
|
|
11359
|
+
type: z.nativeEnum(import_library_prisma4.PackageStatusDetailsLevelEnum),
|
|
11347
11360
|
defaultValue: {
|
|
11348
11361
|
in: [
|
|
11349
|
-
|
|
11350
|
-
|
|
11362
|
+
import_library_prisma4.PackageStatusDetailsLevelEnum.ACCOUNT,
|
|
11363
|
+
import_library_prisma4.PackageStatusDetailsLevelEnum.PDE
|
|
11351
11364
|
],
|
|
11352
11365
|
notIn: []
|
|
11353
11366
|
}
|
|
@@ -11363,7 +11376,7 @@ var GetPackagesParamsOrderByEnum = /* @__PURE__ */ ((GetPackagesParamsOrderByEnu
|
|
|
11363
11376
|
var GetPackagesParams = PaginationParamsFunc({
|
|
11364
11377
|
orderByEnum: GetPackagesParamsOrderByEnum,
|
|
11365
11378
|
orderByDefault: "label" /* label */,
|
|
11366
|
-
orderDefault:
|
|
11379
|
+
orderDefault: "asc" /* asc */
|
|
11367
11380
|
}).merge(
|
|
11368
11381
|
z.object({
|
|
11369
11382
|
filter: GetPackagesParamsFilter.optional().default({}),
|
|
@@ -11400,7 +11413,7 @@ var PackageUpdatesParams = z.object({
|
|
|
11400
11413
|
});
|
|
11401
11414
|
|
|
11402
11415
|
// src/index.public.ts
|
|
11403
|
-
var
|
|
11416
|
+
var import_library_prisma5 = __toESM(require_dist());
|
|
11404
11417
|
/*! Bundled license information:
|
|
11405
11418
|
|
|
11406
11419
|
@prisma/client/runtime/index-browser.js:
|