@or-sdk/library-types-v2 6.0.9 → 6.0.10
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 +60 -33
- package/dist/cjs/index.js.map +3 -3
- package/dist/esm/index.js +60 -33
- package/dist/esm/index.js.map +3 -3
- package/dist/types/List.d.ts +9 -4
- package/dist/types/Packages/params.d.ts +42 -3
- package/dist/types/Packages/response.d.ts +10 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1153,91 +1153,91 @@ var require_index_browser2 = __commonJS({
|
|
|
1153
1153
|
Public: Public2,
|
|
1154
1154
|
detectRuntime: detectRuntime2
|
|
1155
1155
|
} = require_index_browser();
|
|
1156
|
-
var
|
|
1157
|
-
exports.Prisma =
|
|
1156
|
+
var Prisma3 = {};
|
|
1157
|
+
exports.Prisma = Prisma3;
|
|
1158
1158
|
exports.$Enums = {};
|
|
1159
|
-
|
|
1159
|
+
Prisma3.prismaVersion = {
|
|
1160
1160
|
client: "5.4.2",
|
|
1161
1161
|
engine: "ac9d7041ed77bcc8a8dbd2ab6616b39013829574"
|
|
1162
1162
|
};
|
|
1163
|
-
|
|
1163
|
+
Prisma3.PrismaClientKnownRequestError = () => {
|
|
1164
1164
|
throw new Error(
|
|
1165
1165
|
`PrismaClientKnownRequestError is unable to be run ${runtimeDescription}.
|
|
1166
1166
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1167
1167
|
);
|
|
1168
1168
|
};
|
|
1169
|
-
|
|
1169
|
+
Prisma3.PrismaClientUnknownRequestError = () => {
|
|
1170
1170
|
throw new Error(
|
|
1171
1171
|
`PrismaClientUnknownRequestError is unable to be run ${runtimeDescription}.
|
|
1172
1172
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1173
1173
|
);
|
|
1174
1174
|
};
|
|
1175
|
-
|
|
1175
|
+
Prisma3.PrismaClientRustPanicError = () => {
|
|
1176
1176
|
throw new Error(
|
|
1177
1177
|
`PrismaClientRustPanicError is unable to be run ${runtimeDescription}.
|
|
1178
1178
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1179
1179
|
);
|
|
1180
1180
|
};
|
|
1181
|
-
|
|
1181
|
+
Prisma3.PrismaClientInitializationError = () => {
|
|
1182
1182
|
throw new Error(
|
|
1183
1183
|
`PrismaClientInitializationError is unable to be run ${runtimeDescription}.
|
|
1184
1184
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1185
1185
|
);
|
|
1186
1186
|
};
|
|
1187
|
-
|
|
1187
|
+
Prisma3.PrismaClientValidationError = () => {
|
|
1188
1188
|
throw new Error(
|
|
1189
1189
|
`PrismaClientValidationError is unable to be run ${runtimeDescription}.
|
|
1190
1190
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1191
1191
|
);
|
|
1192
1192
|
};
|
|
1193
|
-
|
|
1193
|
+
Prisma3.NotFoundError = () => {
|
|
1194
1194
|
throw new Error(
|
|
1195
1195
|
`NotFoundError is unable to be run ${runtimeDescription}.
|
|
1196
1196
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1197
1197
|
);
|
|
1198
1198
|
};
|
|
1199
|
-
|
|
1200
|
-
|
|
1199
|
+
Prisma3.Decimal = Decimal2;
|
|
1200
|
+
Prisma3.sql = () => {
|
|
1201
1201
|
throw new Error(
|
|
1202
1202
|
`sqltag is unable to be run ${runtimeDescription}.
|
|
1203
1203
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1204
1204
|
);
|
|
1205
1205
|
};
|
|
1206
|
-
|
|
1206
|
+
Prisma3.empty = () => {
|
|
1207
1207
|
throw new Error(
|
|
1208
1208
|
`empty is unable to be run ${runtimeDescription}.
|
|
1209
1209
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1210
1210
|
);
|
|
1211
1211
|
};
|
|
1212
|
-
|
|
1212
|
+
Prisma3.join = () => {
|
|
1213
1213
|
throw new Error(
|
|
1214
1214
|
`join is unable to be run ${runtimeDescription}.
|
|
1215
1215
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1216
1216
|
);
|
|
1217
1217
|
};
|
|
1218
|
-
|
|
1218
|
+
Prisma3.raw = () => {
|
|
1219
1219
|
throw new Error(
|
|
1220
1220
|
`raw is unable to be run ${runtimeDescription}.
|
|
1221
1221
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1222
1222
|
);
|
|
1223
1223
|
};
|
|
1224
|
-
|
|
1225
|
-
|
|
1224
|
+
Prisma3.validator = Public2.validator;
|
|
1225
|
+
Prisma3.getExtensionContext = () => {
|
|
1226
1226
|
throw new Error(
|
|
1227
1227
|
`Extensions.getExtensionContext is unable to be run ${runtimeDescription}.
|
|
1228
1228
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1229
1229
|
);
|
|
1230
1230
|
};
|
|
1231
|
-
|
|
1231
|
+
Prisma3.defineExtension = () => {
|
|
1232
1232
|
throw new Error(
|
|
1233
1233
|
`Extensions.defineExtension is unable to be run ${runtimeDescription}.
|
|
1234
1234
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1235
1235
|
);
|
|
1236
1236
|
};
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1237
|
+
Prisma3.DbNull = objectEnumValues2.instances.DbNull;
|
|
1238
|
+
Prisma3.JsonNull = objectEnumValues2.instances.JsonNull;
|
|
1239
|
+
Prisma3.AnyNull = objectEnumValues2.instances.AnyNull;
|
|
1240
|
+
Prisma3.NullTypes = {
|
|
1241
1241
|
DbNull: objectEnumValues2.classes.DbNull,
|
|
1242
1242
|
JsonNull: objectEnumValues2.classes.JsonNull,
|
|
1243
1243
|
AnyNull: objectEnumValues2.classes.AnyNull
|
|
@@ -1383,8 +1383,8 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1383
1383
|
desc: "desc"
|
|
1384
1384
|
};
|
|
1385
1385
|
exports.Prisma.NullableJsonNullValueInput = {
|
|
1386
|
-
DbNull:
|
|
1387
|
-
JsonNull:
|
|
1386
|
+
DbNull: Prisma3.DbNull,
|
|
1387
|
+
JsonNull: Prisma3.JsonNull
|
|
1388
1388
|
};
|
|
1389
1389
|
exports.Prisma.QueryMode = {
|
|
1390
1390
|
default: "default",
|
|
@@ -1414,9 +1414,9 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1414
1414
|
id: "id"
|
|
1415
1415
|
};
|
|
1416
1416
|
exports.Prisma.JsonNullValueFilter = {
|
|
1417
|
-
DbNull:
|
|
1418
|
-
JsonNull:
|
|
1419
|
-
AnyNull:
|
|
1417
|
+
DbNull: Prisma3.DbNull,
|
|
1418
|
+
JsonNull: Prisma3.JsonNull,
|
|
1419
|
+
AnyNull: Prisma3.AnyNull
|
|
1420
1420
|
};
|
|
1421
1421
|
exports.Prisma.PackageReleaseOrderByRelevanceFieldEnum = {
|
|
1422
1422
|
revisionId: "revisionId",
|
|
@@ -1551,7 +1551,7 @@ If this is unexpected, please open an issue: https://github.com/prisma/prisma/is
|
|
|
1551
1551
|
}
|
|
1552
1552
|
};
|
|
1553
1553
|
exports.PrismaClient = PrismaClient;
|
|
1554
|
-
Object.assign(exports,
|
|
1554
|
+
Object.assign(exports, Prisma3);
|
|
1555
1555
|
}
|
|
1556
1556
|
});
|
|
1557
1557
|
|
|
@@ -11040,7 +11040,8 @@ var UpdatePackageByRevisionBody = AddPackageBody.pick({
|
|
|
11040
11040
|
meta: true,
|
|
11041
11041
|
label: true,
|
|
11042
11042
|
description: true,
|
|
11043
|
-
releaseNotesMarkdown: true
|
|
11043
|
+
releaseNotesMarkdown: true,
|
|
11044
|
+
categories: true
|
|
11044
11045
|
}).partial();
|
|
11045
11046
|
var AddPackageDependenciesBody = z.object({
|
|
11046
11047
|
type: z.nativeEnum(import_library_prisma.PackageTypeEnum),
|
|
@@ -11064,12 +11065,18 @@ var ListView = z.object({
|
|
|
11064
11065
|
filter: z.any().optional(),
|
|
11065
11066
|
scope: z.any().optional()
|
|
11066
11067
|
});
|
|
11068
|
+
var OrderByEnum = /* @__PURE__ */ ((OrderByEnum2) => {
|
|
11069
|
+
OrderByEnum2["createdAt"] = "createdAt";
|
|
11070
|
+
OrderByEnum2["updatedAt"] = "updatedAt";
|
|
11071
|
+
OrderByEnum2["label"] = "label";
|
|
11072
|
+
return OrderByEnum2;
|
|
11073
|
+
})(OrderByEnum || {});
|
|
11067
11074
|
var PaginationParamsFunc = ({
|
|
11068
|
-
orderByEnum =
|
|
11075
|
+
orderByEnum = OrderByEnum,
|
|
11069
11076
|
orderByDefault,
|
|
11070
11077
|
orderDefault = import_library_prisma2.Prisma.SortOrder.desc
|
|
11071
11078
|
}) => z.object({
|
|
11072
|
-
orderBy: z.
|
|
11079
|
+
orderBy: z.nativeEnum(orderByEnum).default(orderByDefault || orderByEnum[0]),
|
|
11073
11080
|
order: z.nativeEnum(import_library_prisma2.Prisma.SortOrder).default(orderDefault),
|
|
11074
11081
|
skip: z.any().transform((n) => parseInt(n, 10)).default(0),
|
|
11075
11082
|
take: z.any().transform((n) => parseInt(n, 10)).default(10)
|
|
@@ -11191,6 +11198,10 @@ var GetPackageReleaseResponse = z.intersection(
|
|
|
11191
11198
|
baseUrl: z.string()
|
|
11192
11199
|
})
|
|
11193
11200
|
);
|
|
11201
|
+
var GetPackageArchiveSignedUrl = z.object({
|
|
11202
|
+
key: z.string(),
|
|
11203
|
+
url: z.string()
|
|
11204
|
+
});
|
|
11194
11205
|
|
|
11195
11206
|
// src/Packages/params.ts
|
|
11196
11207
|
var import_library_prisma5 = __toESM(require_dist());
|
|
@@ -11268,10 +11279,16 @@ var GetPackagesParamsFilter = z.object({
|
|
|
11268
11279
|
})
|
|
11269
11280
|
}).optional().default({})
|
|
11270
11281
|
});
|
|
11282
|
+
var GetPackagesParamsOrderByEnum = /* @__PURE__ */ ((GetPackagesParamsOrderByEnum2) => {
|
|
11283
|
+
GetPackagesParamsOrderByEnum2["label"] = "label";
|
|
11284
|
+
GetPackagesParamsOrderByEnum2["updatedAt"] = "updatedAt";
|
|
11285
|
+
GetPackagesParamsOrderByEnum2["createdAt"] = "createdAt";
|
|
11286
|
+
return GetPackagesParamsOrderByEnum2;
|
|
11287
|
+
})(GetPackagesParamsOrderByEnum || {});
|
|
11271
11288
|
var GetPackagesParams = PaginationParamsFunc({
|
|
11272
|
-
orderByEnum:
|
|
11273
|
-
orderByDefault: "label"
|
|
11274
|
-
orderDefault:
|
|
11289
|
+
orderByEnum: GetPackagesParamsOrderByEnum,
|
|
11290
|
+
orderByDefault: "label" /* label */,
|
|
11291
|
+
orderDefault: import_library_prisma5.Prisma.SortOrder.asc
|
|
11275
11292
|
}).merge(
|
|
11276
11293
|
z.object({
|
|
11277
11294
|
filter: GetPackagesParamsFilter.optional().default({}),
|
|
@@ -11292,6 +11309,12 @@ var DeletePackageParams = z.object({
|
|
|
11292
11309
|
schemaType: true
|
|
11293
11310
|
})
|
|
11294
11311
|
});
|
|
11312
|
+
var PackageDependencyDeleteParams = z.intersection(
|
|
11313
|
+
UniversalPackageParams.pick({ id: true, revisionId: true, type: true }),
|
|
11314
|
+
z.object({
|
|
11315
|
+
dependencyId: z.string()
|
|
11316
|
+
})
|
|
11317
|
+
);
|
|
11295
11318
|
export {
|
|
11296
11319
|
AddPackageBody,
|
|
11297
11320
|
AddPackageDependenciesBody,
|
|
@@ -11300,14 +11323,18 @@ export {
|
|
|
11300
11323
|
AddPackageResponse,
|
|
11301
11324
|
CreatedBy,
|
|
11302
11325
|
DeletePackageParams,
|
|
11326
|
+
GetPackageArchiveSignedUrl,
|
|
11303
11327
|
GetPackageParams,
|
|
11304
11328
|
GetPackageReleaseResponse,
|
|
11305
11329
|
GetPackageResponse,
|
|
11306
11330
|
GetPackagesListResponse,
|
|
11307
11331
|
GetPackagesParams,
|
|
11308
11332
|
GetPackagesParamsFilter,
|
|
11333
|
+
GetPackagesParamsOrderByEnum,
|
|
11309
11334
|
InAndNotInFunc,
|
|
11310
11335
|
ListView,
|
|
11336
|
+
OrderByEnum,
|
|
11337
|
+
PackageDependencyDeleteParams,
|
|
11311
11338
|
PackageMeta,
|
|
11312
11339
|
PackageSchemaServingType,
|
|
11313
11340
|
PackageSchemaVersion,
|