@or-sdk/library-types-v1 6.0.13 → 6.0.15
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 +12 -0
- package/dist/cjs/index.js +41 -33
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +41 -33
- package/dist/esm/index.js.map +2 -2
- package/dist/types/Packages/body.d.ts +12 -0
- package/dist/types/Packages/param.d.ts +3 -0
- package/dist/types/Packages/response.d.ts +10 -0
- package/dist/types/Packages/union.d.ts +15 -0
- package/dist/types/Sync/response.d.ts +8 -21
- package/dist/types/index.d.ts +2 -2
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -745,7 +745,7 @@ var require_index_browser = __commonJS({
|
|
|
745
745
|
function Ee(e, n) {
|
|
746
746
|
var i, r, t, s, o, u, l, f = 0, c = 0, a = 0, h = e.constructor, g = h.rounding, v = h.precision;
|
|
747
747
|
if (!e.d || !e.d[0] || e.e > 17)
|
|
748
|
-
return new h(e.d ? e.d[0] ? e.s < 0 ? 0 : 1 / 0 : 1 : e.s ? e.s < 0 ? 0 : e :
|
|
748
|
+
return new h(e.d ? e.d[0] ? e.s < 0 ? 0 : 1 / 0 : 1 : e.s ? e.s < 0 ? 0 : e : NaN);
|
|
749
749
|
for (n == null ? (w = false, l = v) : l = n, u = new h(0.03125); e.e > -2; )
|
|
750
750
|
e = e.times(u), a += 5;
|
|
751
751
|
for (r = Math.log(M(2, a)) / Math.LN10 * 2 + 5 | 0, l += r, i = s = o = new h(1), h.precision = l; ; ) {
|
|
@@ -1157,81 +1157,81 @@ var require_index_browser2 = __commonJS({
|
|
|
1157
1157
|
exports.Prisma = Prisma2;
|
|
1158
1158
|
exports.$Enums = {};
|
|
1159
1159
|
Prisma2.prismaVersion = {
|
|
1160
|
-
client: "5.
|
|
1161
|
-
engine: "
|
|
1160
|
+
client: "5.10.2",
|
|
1161
|
+
engine: "5a9203d0590c951969e85a7d07215503f4672eb9"
|
|
1162
1162
|
};
|
|
1163
1163
|
Prisma2.PrismaClientKnownRequestError = () => {
|
|
1164
1164
|
throw new Error(
|
|
1165
1165
|
`PrismaClientKnownRequestError is unable to be run ${runtimeDescription}.
|
|
1166
|
-
In case this error is unexpected for you, please report it in https://
|
|
1166
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1167
1167
|
);
|
|
1168
1168
|
};
|
|
1169
1169
|
Prisma2.PrismaClientUnknownRequestError = () => {
|
|
1170
1170
|
throw new Error(
|
|
1171
1171
|
`PrismaClientUnknownRequestError is unable to be run ${runtimeDescription}.
|
|
1172
|
-
In case this error is unexpected for you, please report it in https://
|
|
1172
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1173
1173
|
);
|
|
1174
1174
|
};
|
|
1175
1175
|
Prisma2.PrismaClientRustPanicError = () => {
|
|
1176
1176
|
throw new Error(
|
|
1177
1177
|
`PrismaClientRustPanicError is unable to be run ${runtimeDescription}.
|
|
1178
|
-
In case this error is unexpected for you, please report it in https://
|
|
1178
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1179
1179
|
);
|
|
1180
1180
|
};
|
|
1181
1181
|
Prisma2.PrismaClientInitializationError = () => {
|
|
1182
1182
|
throw new Error(
|
|
1183
1183
|
`PrismaClientInitializationError is unable to be run ${runtimeDescription}.
|
|
1184
|
-
In case this error is unexpected for you, please report it in https://
|
|
1184
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1185
1185
|
);
|
|
1186
1186
|
};
|
|
1187
1187
|
Prisma2.PrismaClientValidationError = () => {
|
|
1188
1188
|
throw new Error(
|
|
1189
1189
|
`PrismaClientValidationError is unable to be run ${runtimeDescription}.
|
|
1190
|
-
In case this error is unexpected for you, please report it in https://
|
|
1190
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1191
1191
|
);
|
|
1192
1192
|
};
|
|
1193
1193
|
Prisma2.NotFoundError = () => {
|
|
1194
1194
|
throw new Error(
|
|
1195
1195
|
`NotFoundError is unable to be run ${runtimeDescription}.
|
|
1196
|
-
In case this error is unexpected for you, please report it in https://
|
|
1196
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1197
1197
|
);
|
|
1198
1198
|
};
|
|
1199
1199
|
Prisma2.Decimal = Decimal2;
|
|
1200
1200
|
Prisma2.sql = () => {
|
|
1201
1201
|
throw new Error(
|
|
1202
1202
|
`sqltag is unable to be run ${runtimeDescription}.
|
|
1203
|
-
In case this error is unexpected for you, please report it in https://
|
|
1203
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1204
1204
|
);
|
|
1205
1205
|
};
|
|
1206
1206
|
Prisma2.empty = () => {
|
|
1207
1207
|
throw new Error(
|
|
1208
1208
|
`empty is unable to be run ${runtimeDescription}.
|
|
1209
|
-
In case this error is unexpected for you, please report it in https://
|
|
1209
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1210
1210
|
);
|
|
1211
1211
|
};
|
|
1212
1212
|
Prisma2.join = () => {
|
|
1213
1213
|
throw new Error(
|
|
1214
1214
|
`join is unable to be run ${runtimeDescription}.
|
|
1215
|
-
In case this error is unexpected for you, please report it in https://
|
|
1215
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1216
1216
|
);
|
|
1217
1217
|
};
|
|
1218
1218
|
Prisma2.raw = () => {
|
|
1219
1219
|
throw new Error(
|
|
1220
1220
|
`raw is unable to be run ${runtimeDescription}.
|
|
1221
|
-
In case this error is unexpected for you, please report it in https://
|
|
1221
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1222
1222
|
);
|
|
1223
1223
|
};
|
|
1224
1224
|
Prisma2.validator = Public2.validator;
|
|
1225
1225
|
Prisma2.getExtensionContext = () => {
|
|
1226
1226
|
throw new Error(
|
|
1227
1227
|
`Extensions.getExtensionContext is unable to be run ${runtimeDescription}.
|
|
1228
|
-
In case this error is unexpected for you, please report it in https://
|
|
1228
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1229
1229
|
);
|
|
1230
1230
|
};
|
|
1231
1231
|
Prisma2.defineExtension = () => {
|
|
1232
1232
|
throw new Error(
|
|
1233
1233
|
`Extensions.defineExtension is unable to be run ${runtimeDescription}.
|
|
1234
|
-
In case this error is unexpected for you, please report it in https://
|
|
1234
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`
|
|
1235
1235
|
);
|
|
1236
1236
|
};
|
|
1237
1237
|
Prisma2.DbNull = objectEnumValues2.instances.DbNull;
|
|
@@ -1256,6 +1256,10 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1256
1256
|
error: "error",
|
|
1257
1257
|
pid: "pid"
|
|
1258
1258
|
};
|
|
1259
|
+
exports.Prisma.RelationLoadStrategy = {
|
|
1260
|
+
query: "query",
|
|
1261
|
+
join: "join"
|
|
1262
|
+
};
|
|
1259
1263
|
exports.Prisma.CreatedByScalarFieldEnum = {
|
|
1260
1264
|
id: "id",
|
|
1261
1265
|
accountId: "accountId",
|
|
@@ -1306,7 +1310,8 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1306
1310
|
servingType: "servingType",
|
|
1307
1311
|
label: "label",
|
|
1308
1312
|
description: "description",
|
|
1309
|
-
sourceRevisionId: "sourceRevisionId"
|
|
1313
|
+
sourceRevisionId: "sourceRevisionId",
|
|
1314
|
+
fts: "fts"
|
|
1310
1315
|
};
|
|
1311
1316
|
exports.Prisma.PackageReleaseDataScalarFieldEnum = {
|
|
1312
1317
|
revisionId: "revisionId",
|
|
@@ -1428,7 +1433,8 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1428
1433
|
servingType: "servingType",
|
|
1429
1434
|
label: "label",
|
|
1430
1435
|
description: "description",
|
|
1431
|
-
sourceRevisionId: "sourceRevisionId"
|
|
1436
|
+
sourceRevisionId: "sourceRevisionId",
|
|
1437
|
+
fts: "fts"
|
|
1432
1438
|
};
|
|
1433
1439
|
exports.Prisma.PackageReleaseDataOrderByRelevanceFieldEnum = {
|
|
1434
1440
|
revisionId: "revisionId"
|
|
@@ -1535,7 +1541,7 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1535
1541
|
"workerd": "Cloudflare Workers",
|
|
1536
1542
|
"deno": "Deno and Deno Deploy",
|
|
1537
1543
|
"netlify": "Netlify Edge Functions",
|
|
1538
|
-
"edge-light": "Vercel Edge Functions"
|
|
1544
|
+
"edge-light": "Vercel Edge Functions or Edge Middleware"
|
|
1539
1545
|
}[runtime];
|
|
1540
1546
|
let message = "PrismaClient is unable to run in ";
|
|
1541
1547
|
if (edgeRuntimeName !== void 0) {
|
|
@@ -1544,7 +1550,7 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1544
1550
|
message += "this browser environment, or has been bundled for the browser (running in `" + runtime + "`).";
|
|
1545
1551
|
}
|
|
1546
1552
|
message += `
|
|
1547
|
-
If this is unexpected, please open an issue: https://
|
|
1553
|
+
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`;
|
|
1548
1554
|
throw new Error(message);
|
|
1549
1555
|
}
|
|
1550
1556
|
});
|
|
@@ -6397,7 +6403,8 @@ var require_packagerelease = __commonJS({
|
|
|
6397
6403
|
servingType: z2.string().nullish(),
|
|
6398
6404
|
label: z2.string(),
|
|
6399
6405
|
description: z2.string().nullish(),
|
|
6400
|
-
sourceRevisionId: z2.string().nullish()
|
|
6406
|
+
sourceRevisionId: z2.string().nullish(),
|
|
6407
|
+
fts: z2.string().nullish()
|
|
6401
6408
|
});
|
|
6402
6409
|
var PackageReleaseDto = (
|
|
6403
6410
|
/** @class */
|
|
@@ -11113,7 +11120,8 @@ var PackageIncludesParams = z.object({
|
|
|
11113
11120
|
includeDeprecated: z.string().transform((v) => ["true", "1", 1, true].includes(v)).or(z.boolean()).default(true),
|
|
11114
11121
|
includeMember: z.string().transform((v) => ["true", "1", 1, true].includes(v)).or(z.boolean()).default(true),
|
|
11115
11122
|
includeReleaseNotes: z.string().transform((v) => ["true", "1", 1, true].includes(v)).or(z.boolean()).default(true),
|
|
11116
|
-
includeData: z.string().transform((v) => ["true", "1", 1, true].includes(v)).or(z.boolean()).default(true)
|
|
11123
|
+
includeData: z.string().transform((v) => ["true", "1", 1, true].includes(v)).or(z.boolean()).default(true),
|
|
11124
|
+
includePrerelease: z.string().transform((v) => ["true", "1", 1, true].includes(v)).or(z.boolean()).default(false)
|
|
11117
11125
|
});
|
|
11118
11126
|
var PackageSetSystemStatusParams = z.object({
|
|
11119
11127
|
type: z.nativeEnum(import_library_prisma4.PackageTypeEnum),
|
|
@@ -11153,7 +11161,8 @@ var CreatePackageByVersionBody = z.object({
|
|
|
11153
11161
|
revisionId: z.string().optional(),
|
|
11154
11162
|
status: z.nativeEnum(import_library_prisma5.PackageStatusDetailsStatusEnum).default(import_library_prisma5.PackageStatusDetailsStatusEnum.BETA).optional(),
|
|
11155
11163
|
level: z.nativeEnum(import_library_prisma5.PackageStatusDetailsLevelEnum).default(import_library_prisma5.PackageStatusDetailsLevelEnum.ACCOUNT).optional(),
|
|
11156
|
-
data: z.any().optional().default({})
|
|
11164
|
+
data: z.any().optional().default({}),
|
|
11165
|
+
schemaType: z.nativeEnum(import_library_prisma5.PackageSchemaTypeEnum).optional()
|
|
11157
11166
|
}).transform((body) => {
|
|
11158
11167
|
body.label = body.label || body.name;
|
|
11159
11168
|
return body;
|
|
@@ -11395,6 +11404,10 @@ var GetPackageSystemStatusResponse = z.object({
|
|
|
11395
11404
|
type: z.nativeEnum(import_library_prisma7.PackageTypeEnum),
|
|
11396
11405
|
version: z.string()
|
|
11397
11406
|
});
|
|
11407
|
+
var CreatePackageFromJsonResponse = z.object({
|
|
11408
|
+
success: z.boolean(),
|
|
11409
|
+
debug: z.any().optional()
|
|
11410
|
+
});
|
|
11398
11411
|
|
|
11399
11412
|
// src/Sources/param.ts
|
|
11400
11413
|
var import_library_prisma8 = __toESM(require_dist());
|
|
@@ -11576,18 +11589,13 @@ var ForkSourceBranchResponse = z.object({
|
|
|
11576
11589
|
|
|
11577
11590
|
// src/Sync/response.ts
|
|
11578
11591
|
var import_library_prisma9 = __toESM(require_dist());
|
|
11579
|
-
var
|
|
11580
|
-
id: z.string(),
|
|
11581
|
-
version: z.string(),
|
|
11582
|
-
created: z.boolean()
|
|
11583
|
-
});
|
|
11584
|
-
var PutLegacyVersionResponse = z.object({
|
|
11592
|
+
var SyncResponse = z.object({
|
|
11585
11593
|
id: z.string(),
|
|
11586
11594
|
version: z.string(),
|
|
11587
|
-
revisionId: z.string(),
|
|
11588
11595
|
type: z.nativeEnum(import_library_prisma9.PackageTypeEnum),
|
|
11589
|
-
|
|
11590
|
-
key: z.string().
|
|
11596
|
+
created: z.boolean(),
|
|
11597
|
+
key: z.string().optional(),
|
|
11598
|
+
debug: z.any()
|
|
11591
11599
|
});
|
|
11592
11600
|
|
|
11593
11601
|
// src/UploadUrl.ts
|
|
@@ -11621,6 +11629,7 @@ export {
|
|
|
11621
11629
|
CreatePackageByVersionResponse,
|
|
11622
11630
|
CreatePackageByVersionUnion,
|
|
11623
11631
|
CreatePackageFromJsonBody,
|
|
11632
|
+
CreatePackageFromJsonResponse,
|
|
11624
11633
|
CreatePackageFromJsonUnion,
|
|
11625
11634
|
CreatePackageReleaseBody,
|
|
11626
11635
|
CreateReleaseParams,
|
|
@@ -11657,14 +11666,13 @@ export {
|
|
|
11657
11666
|
export_PackageTypeEnum as PackageTypeEnum,
|
|
11658
11667
|
PackagesOrderByEnum,
|
|
11659
11668
|
PutLegacyPackageBody,
|
|
11660
|
-
PutLegacyVersionResponse,
|
|
11661
11669
|
SetPublishedBody,
|
|
11662
11670
|
SourceDataBody,
|
|
11663
11671
|
SourceMetaLabelBody,
|
|
11664
11672
|
SourceMetaMocksBody,
|
|
11665
11673
|
SourcesParamUniversal,
|
|
11666
11674
|
StatusDetailsReleaseParam,
|
|
11667
|
-
|
|
11675
|
+
SyncResponse,
|
|
11668
11676
|
UpdateCategoryBody,
|
|
11669
11677
|
UpdateMetaBranchBodyLegacy,
|
|
11670
11678
|
UploadUrlSchema,
|