@or-sdk/library-types-v1 6.0.13 → 6.0.14
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 +39 -32
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +39 -32
- package/dist/esm/index.js.map +2 -2
- package/dist/types/Packages/body.d.ts +12 -0
- package/dist/types/Packages/response.d.ts +10 -0
- package/dist/types/Packages/union.d.ts +12 -0
- package/dist/types/Sync/response.d.ts +8 -21
- package/dist/types/index.d.ts +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -750,7 +750,7 @@ var require_index_browser = __commonJS({
|
|
|
750
750
|
function Ee(e, n) {
|
|
751
751
|
var i, r, t, s, o, u, l, f = 0, c = 0, a = 0, h = e.constructor, g = h.rounding, v = h.precision;
|
|
752
752
|
if (!e.d || !e.d[0] || e.e > 17)
|
|
753
|
-
return new h(e.d ? e.d[0] ? e.s < 0 ? 0 : 1 / 0 : 1 : e.s ? e.s < 0 ? 0 : e :
|
|
753
|
+
return new h(e.d ? e.d[0] ? e.s < 0 ? 0 : 1 / 0 : 1 : e.s ? e.s < 0 ? 0 : e : NaN);
|
|
754
754
|
for (n == null ? (w = false, l = v) : l = n, u = new h(0.03125); e.e > -2; )
|
|
755
755
|
e = e.times(u), a += 5;
|
|
756
756
|
for (r = Math.log(M(2, a)) / Math.LN10 * 2 + 5 | 0, l += r, i = s = o = new h(1), h.precision = l; ; ) {
|
|
@@ -1162,81 +1162,81 @@ var require_index_browser2 = __commonJS({
|
|
|
1162
1162
|
exports.Prisma = Prisma2;
|
|
1163
1163
|
exports.$Enums = {};
|
|
1164
1164
|
Prisma2.prismaVersion = {
|
|
1165
|
-
client: "5.
|
|
1166
|
-
engine: "
|
|
1165
|
+
client: "5.10.1",
|
|
1166
|
+
engine: "5a9203d0590c951969e85a7d07215503f4672eb9"
|
|
1167
1167
|
};
|
|
1168
1168
|
Prisma2.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
|
Prisma2.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
|
Prisma2.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
|
Prisma2.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
|
Prisma2.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
|
Prisma2.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
1204
|
Prisma2.Decimal = Decimal2;
|
|
1205
1205
|
Prisma2.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
|
Prisma2.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
|
Prisma2.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
|
Prisma2.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
1229
|
Prisma2.validator = Public2.validator;
|
|
1230
1230
|
Prisma2.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
|
Prisma2.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
1242
|
Prisma2.DbNull = objectEnumValues2.instances.DbNull;
|
|
@@ -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",
|
|
@@ -1311,7 +1315,8 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1311
1315
|
servingType: "servingType",
|
|
1312
1316
|
label: "label",
|
|
1313
1317
|
description: "description",
|
|
1314
|
-
sourceRevisionId: "sourceRevisionId"
|
|
1318
|
+
sourceRevisionId: "sourceRevisionId",
|
|
1319
|
+
fts: "fts"
|
|
1315
1320
|
};
|
|
1316
1321
|
exports.Prisma.PackageReleaseDataScalarFieldEnum = {
|
|
1317
1322
|
revisionId: "revisionId",
|
|
@@ -1433,7 +1438,8 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1433
1438
|
servingType: "servingType",
|
|
1434
1439
|
label: "label",
|
|
1435
1440
|
description: "description",
|
|
1436
|
-
sourceRevisionId: "sourceRevisionId"
|
|
1441
|
+
sourceRevisionId: "sourceRevisionId",
|
|
1442
|
+
fts: "fts"
|
|
1437
1443
|
};
|
|
1438
1444
|
exports.Prisma.PackageReleaseDataOrderByRelevanceFieldEnum = {
|
|
1439
1445
|
revisionId: "revisionId"
|
|
@@ -1540,7 +1546,7 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1540
1546
|
"workerd": "Cloudflare Workers",
|
|
1541
1547
|
"deno": "Deno and Deno Deploy",
|
|
1542
1548
|
"netlify": "Netlify Edge Functions",
|
|
1543
|
-
"edge-light": "Vercel Edge Functions"
|
|
1549
|
+
"edge-light": "Vercel Edge Functions or Edge Middleware"
|
|
1544
1550
|
}[runtime];
|
|
1545
1551
|
let message = "PrismaClient is unable to run in ";
|
|
1546
1552
|
if (edgeRuntimeName !== void 0) {
|
|
@@ -1549,7 +1555,7 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1549
1555
|
message += "this browser environment, or has been bundled for the browser (running in `" + runtime + "`).";
|
|
1550
1556
|
}
|
|
1551
1557
|
message += `
|
|
1552
|
-
If this is unexpected, please open an issue: https://
|
|
1558
|
+
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`;
|
|
1553
1559
|
throw new Error(message);
|
|
1554
1560
|
}
|
|
1555
1561
|
});
|
|
@@ -6402,7 +6408,8 @@ var require_packagerelease = __commonJS({
|
|
|
6402
6408
|
servingType: z2.string().nullish(),
|
|
6403
6409
|
label: z2.string(),
|
|
6404
6410
|
description: z2.string().nullish(),
|
|
6405
|
-
sourceRevisionId: z2.string().nullish()
|
|
6411
|
+
sourceRevisionId: z2.string().nullish(),
|
|
6412
|
+
fts: z2.string().nullish()
|
|
6406
6413
|
});
|
|
6407
6414
|
var PackageReleaseDto = (
|
|
6408
6415
|
/** @class */
|
|
@@ -7272,6 +7279,7 @@ __export(src_exports, {
|
|
|
7272
7279
|
CreatePackageByVersionResponse: () => CreatePackageByVersionResponse,
|
|
7273
7280
|
CreatePackageByVersionUnion: () => CreatePackageByVersionUnion,
|
|
7274
7281
|
CreatePackageFromJsonBody: () => CreatePackageFromJsonBody,
|
|
7282
|
+
CreatePackageFromJsonResponse: () => CreatePackageFromJsonResponse,
|
|
7275
7283
|
CreatePackageFromJsonUnion: () => CreatePackageFromJsonUnion,
|
|
7276
7284
|
CreatePackageReleaseBody: () => CreatePackageReleaseBody,
|
|
7277
7285
|
CreateReleaseParams: () => CreateReleaseParams,
|
|
@@ -7308,14 +7316,13 @@ __export(src_exports, {
|
|
|
7308
7316
|
PackageTypeEnum: () => import_library_prisma10.PackageTypeEnum,
|
|
7309
7317
|
PackagesOrderByEnum: () => PackagesOrderByEnum,
|
|
7310
7318
|
PutLegacyPackageBody: () => PutLegacyPackageBody,
|
|
7311
|
-
PutLegacyVersionResponse: () => PutLegacyVersionResponse,
|
|
7312
7319
|
SetPublishedBody: () => SetPublishedBody,
|
|
7313
7320
|
SourceDataBody: () => SourceDataBody,
|
|
7314
7321
|
SourceMetaLabelBody: () => SourceMetaLabelBody,
|
|
7315
7322
|
SourceMetaMocksBody: () => SourceMetaMocksBody,
|
|
7316
7323
|
SourcesParamUniversal: () => SourcesParamUniversal,
|
|
7317
7324
|
StatusDetailsReleaseParam: () => StatusDetailsReleaseParam,
|
|
7318
|
-
|
|
7325
|
+
SyncResponse: () => SyncResponse,
|
|
7319
7326
|
UpdateCategoryBody: () => UpdateCategoryBody,
|
|
7320
7327
|
UpdateMetaBranchBodyLegacy: () => UpdateMetaBranchBodyLegacy,
|
|
7321
7328
|
UploadUrlSchema: () => UploadUrlSchema,
|
|
@@ -11222,7 +11229,8 @@ var CreatePackageByVersionBody = z.object({
|
|
|
11222
11229
|
revisionId: z.string().optional(),
|
|
11223
11230
|
status: z.nativeEnum(import_library_prisma5.PackageStatusDetailsStatusEnum).default(import_library_prisma5.PackageStatusDetailsStatusEnum.BETA).optional(),
|
|
11224
11231
|
level: z.nativeEnum(import_library_prisma5.PackageStatusDetailsLevelEnum).default(import_library_prisma5.PackageStatusDetailsLevelEnum.ACCOUNT).optional(),
|
|
11225
|
-
data: z.any().optional().default({})
|
|
11232
|
+
data: z.any().optional().default({}),
|
|
11233
|
+
schemaType: z.nativeEnum(import_library_prisma5.PackageSchemaTypeEnum).optional()
|
|
11226
11234
|
}).transform((body) => {
|
|
11227
11235
|
body.label = body.label || body.name;
|
|
11228
11236
|
return body;
|
|
@@ -11464,6 +11472,10 @@ var GetPackageSystemStatusResponse = z.object({
|
|
|
11464
11472
|
type: z.nativeEnum(import_library_prisma7.PackageTypeEnum),
|
|
11465
11473
|
version: z.string()
|
|
11466
11474
|
});
|
|
11475
|
+
var CreatePackageFromJsonResponse = z.object({
|
|
11476
|
+
success: z.boolean(),
|
|
11477
|
+
debug: z.any().optional()
|
|
11478
|
+
});
|
|
11467
11479
|
|
|
11468
11480
|
// src/Sources/param.ts
|
|
11469
11481
|
var import_library_prisma8 = __toESM(require_dist());
|
|
@@ -11645,18 +11657,13 @@ var ForkSourceBranchResponse = z.object({
|
|
|
11645
11657
|
|
|
11646
11658
|
// src/Sync/response.ts
|
|
11647
11659
|
var import_library_prisma9 = __toESM(require_dist());
|
|
11648
|
-
var
|
|
11649
|
-
id: z.string(),
|
|
11650
|
-
version: z.string(),
|
|
11651
|
-
created: z.boolean()
|
|
11652
|
-
});
|
|
11653
|
-
var PutLegacyVersionResponse = z.object({
|
|
11660
|
+
var SyncResponse = z.object({
|
|
11654
11661
|
id: z.string(),
|
|
11655
11662
|
version: z.string(),
|
|
11656
|
-
revisionId: z.string(),
|
|
11657
11663
|
type: z.nativeEnum(import_library_prisma9.PackageTypeEnum),
|
|
11658
|
-
|
|
11659
|
-
key: z.string().
|
|
11664
|
+
created: z.boolean(),
|
|
11665
|
+
key: z.string().optional(),
|
|
11666
|
+
debug: z.any()
|
|
11660
11667
|
});
|
|
11661
11668
|
|
|
11662
11669
|
// src/UploadUrl.ts
|