@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @or-sdk/library-types
2
2
 
3
+ ## 6.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 8645c036: update types for v2 sdk
8
+
3
9
  ## 6.0.9
4
10
 
5
11
  ### Patch Changes
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 Prisma2 = {};
1162
- exports.Prisma = Prisma2;
1161
+ var Prisma3 = {};
1162
+ exports.Prisma = Prisma3;
1163
1163
  exports.$Enums = {};
1164
- Prisma2.prismaVersion = {
1164
+ Prisma3.prismaVersion = {
1165
1165
  client: "5.4.2",
1166
1166
  engine: "ac9d7041ed77bcc8a8dbd2ab6616b39013829574"
1167
1167
  };
1168
- Prisma2.PrismaClientKnownRequestError = () => {
1168
+ Prisma3.PrismaClientKnownRequestError = () => {
1169
1169
  throw new Error(
1170
1170
  `PrismaClientKnownRequestError is unable to be run ${runtimeDescription}.
1171
1171
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1172
1172
  );
1173
1173
  };
1174
- Prisma2.PrismaClientUnknownRequestError = () => {
1174
+ Prisma3.PrismaClientUnknownRequestError = () => {
1175
1175
  throw new Error(
1176
1176
  `PrismaClientUnknownRequestError is unable to be run ${runtimeDescription}.
1177
1177
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1178
1178
  );
1179
1179
  };
1180
- Prisma2.PrismaClientRustPanicError = () => {
1180
+ Prisma3.PrismaClientRustPanicError = () => {
1181
1181
  throw new Error(
1182
1182
  `PrismaClientRustPanicError is unable to be run ${runtimeDescription}.
1183
1183
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1184
1184
  );
1185
1185
  };
1186
- Prisma2.PrismaClientInitializationError = () => {
1186
+ Prisma3.PrismaClientInitializationError = () => {
1187
1187
  throw new Error(
1188
1188
  `PrismaClientInitializationError is unable to be run ${runtimeDescription}.
1189
1189
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1190
1190
  );
1191
1191
  };
1192
- Prisma2.PrismaClientValidationError = () => {
1192
+ Prisma3.PrismaClientValidationError = () => {
1193
1193
  throw new Error(
1194
1194
  `PrismaClientValidationError is unable to be run ${runtimeDescription}.
1195
1195
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1196
1196
  );
1197
1197
  };
1198
- Prisma2.NotFoundError = () => {
1198
+ Prisma3.NotFoundError = () => {
1199
1199
  throw new Error(
1200
1200
  `NotFoundError is unable to be run ${runtimeDescription}.
1201
1201
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1202
1202
  );
1203
1203
  };
1204
- Prisma2.Decimal = Decimal2;
1205
- Prisma2.sql = () => {
1204
+ Prisma3.Decimal = Decimal2;
1205
+ Prisma3.sql = () => {
1206
1206
  throw new Error(
1207
1207
  `sqltag is unable to be run ${runtimeDescription}.
1208
1208
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1209
1209
  );
1210
1210
  };
1211
- Prisma2.empty = () => {
1211
+ Prisma3.empty = () => {
1212
1212
  throw new Error(
1213
1213
  `empty is unable to be run ${runtimeDescription}.
1214
1214
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1215
1215
  );
1216
1216
  };
1217
- Prisma2.join = () => {
1217
+ Prisma3.join = () => {
1218
1218
  throw new Error(
1219
1219
  `join is unable to be run ${runtimeDescription}.
1220
1220
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1221
1221
  );
1222
1222
  };
1223
- Prisma2.raw = () => {
1223
+ Prisma3.raw = () => {
1224
1224
  throw new Error(
1225
1225
  `raw is unable to be run ${runtimeDescription}.
1226
1226
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1227
1227
  );
1228
1228
  };
1229
- Prisma2.validator = Public2.validator;
1230
- Prisma2.getExtensionContext = () => {
1229
+ Prisma3.validator = Public2.validator;
1230
+ Prisma3.getExtensionContext = () => {
1231
1231
  throw new Error(
1232
1232
  `Extensions.getExtensionContext is unable to be run ${runtimeDescription}.
1233
1233
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1234
1234
  );
1235
1235
  };
1236
- Prisma2.defineExtension = () => {
1236
+ Prisma3.defineExtension = () => {
1237
1237
  throw new Error(
1238
1238
  `Extensions.defineExtension is unable to be run ${runtimeDescription}.
1239
1239
  In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
1240
1240
  );
1241
1241
  };
1242
- Prisma2.DbNull = objectEnumValues2.instances.DbNull;
1243
- Prisma2.JsonNull = objectEnumValues2.instances.JsonNull;
1244
- Prisma2.AnyNull = objectEnumValues2.instances.AnyNull;
1245
- Prisma2.NullTypes = {
1242
+ Prisma3.DbNull = objectEnumValues2.instances.DbNull;
1243
+ Prisma3.JsonNull = objectEnumValues2.instances.JsonNull;
1244
+ Prisma3.AnyNull = objectEnumValues2.instances.AnyNull;
1245
+ Prisma3.NullTypes = {
1246
1246
  DbNull: objectEnumValues2.classes.DbNull,
1247
1247
  JsonNull: objectEnumValues2.classes.JsonNull,
1248
1248
  AnyNull: objectEnumValues2.classes.AnyNull
@@ -1388,8 +1388,8 @@ In case this error is unexpected for you, please report it in https://github.com
1388
1388
  desc: "desc"
1389
1389
  };
1390
1390
  exports.Prisma.NullableJsonNullValueInput = {
1391
- DbNull: Prisma2.DbNull,
1392
- JsonNull: Prisma2.JsonNull
1391
+ DbNull: Prisma3.DbNull,
1392
+ JsonNull: Prisma3.JsonNull
1393
1393
  };
1394
1394
  exports.Prisma.QueryMode = {
1395
1395
  default: "default",
@@ -1419,9 +1419,9 @@ In case this error is unexpected for you, please report it in https://github.com
1419
1419
  id: "id"
1420
1420
  };
1421
1421
  exports.Prisma.JsonNullValueFilter = {
1422
- DbNull: Prisma2.DbNull,
1423
- JsonNull: Prisma2.JsonNull,
1424
- AnyNull: Prisma2.AnyNull
1422
+ DbNull: Prisma3.DbNull,
1423
+ JsonNull: Prisma3.JsonNull,
1424
+ AnyNull: Prisma3.AnyNull
1425
1425
  };
1426
1426
  exports.Prisma.PackageReleaseOrderByRelevanceFieldEnum = {
1427
1427
  revisionId: "revisionId",
@@ -1556,7 +1556,7 @@ If this is unexpected, please open an issue: https://github.com/prisma/prisma/is
1556
1556
  }
1557
1557
  };
1558
1558
  exports.PrismaClient = PrismaClient;
1559
- Object.assign(exports, Prisma2);
1559
+ Object.assign(exports, Prisma3);
1560
1560
  }
1561
1561
  });
1562
1562
 
@@ -7269,14 +7269,18 @@ __export(src_exports, {
7269
7269
  AddPackageResponse: () => AddPackageResponse,
7270
7270
  CreatedBy: () => CreatedBy,
7271
7271
  DeletePackageParams: () => DeletePackageParams,
7272
+ GetPackageArchiveSignedUrl: () => GetPackageArchiveSignedUrl,
7272
7273
  GetPackageParams: () => GetPackageParams,
7273
7274
  GetPackageReleaseResponse: () => GetPackageReleaseResponse,
7274
7275
  GetPackageResponse: () => GetPackageResponse,
7275
7276
  GetPackagesListResponse: () => GetPackagesListResponse,
7276
7277
  GetPackagesParams: () => GetPackagesParams,
7277
7278
  GetPackagesParamsFilter: () => GetPackagesParamsFilter,
7279
+ GetPackagesParamsOrderByEnum: () => GetPackagesParamsOrderByEnum,
7278
7280
  InAndNotInFunc: () => InAndNotInFunc,
7279
7281
  ListView: () => ListView,
7282
+ OrderByEnum: () => OrderByEnum,
7283
+ PackageDependencyDeleteParams: () => PackageDependencyDeleteParams,
7280
7284
  PackageMeta: () => PackageMeta,
7281
7285
  PackageSchemaServingType: () => PackageSchemaServingType,
7282
7286
  PackageSchemaVersion: () => PackageSchemaVersion,
@@ -11072,7 +11076,8 @@ var UpdatePackageByRevisionBody = AddPackageBody.pick({
11072
11076
  meta: true,
11073
11077
  label: true,
11074
11078
  description: true,
11075
- releaseNotesMarkdown: true
11079
+ releaseNotesMarkdown: true,
11080
+ categories: true
11076
11081
  }).partial();
11077
11082
  var AddPackageDependenciesBody = z.object({
11078
11083
  type: z.nativeEnum(import_library_prisma.PackageTypeEnum),
@@ -11096,12 +11101,18 @@ var ListView = z.object({
11096
11101
  filter: z.any().optional(),
11097
11102
  scope: z.any().optional()
11098
11103
  });
11104
+ var OrderByEnum = /* @__PURE__ */ ((OrderByEnum2) => {
11105
+ OrderByEnum2["createdAt"] = "createdAt";
11106
+ OrderByEnum2["updatedAt"] = "updatedAt";
11107
+ OrderByEnum2["label"] = "label";
11108
+ return OrderByEnum2;
11109
+ })(OrderByEnum || {});
11099
11110
  var PaginationParamsFunc = ({
11100
- orderByEnum = ["updatedAt", "createdAt"],
11111
+ orderByEnum = OrderByEnum,
11101
11112
  orderByDefault,
11102
11113
  orderDefault = import_library_prisma2.Prisma.SortOrder.desc
11103
11114
  }) => z.object({
11104
- orderBy: z.enum(orderByEnum).default(orderByDefault || orderByEnum[0]),
11115
+ orderBy: z.nativeEnum(orderByEnum).default(orderByDefault || orderByEnum[0]),
11105
11116
  order: z.nativeEnum(import_library_prisma2.Prisma.SortOrder).default(orderDefault),
11106
11117
  skip: z.any().transform((n) => parseInt(n, 10)).default(0),
11107
11118
  take: z.any().transform((n) => parseInt(n, 10)).default(10)
@@ -11223,6 +11234,10 @@ var GetPackageReleaseResponse = z.intersection(
11223
11234
  baseUrl: z.string()
11224
11235
  })
11225
11236
  );
11237
+ var GetPackageArchiveSignedUrl = z.object({
11238
+ key: z.string(),
11239
+ url: z.string()
11240
+ });
11226
11241
 
11227
11242
  // src/Packages/params.ts
11228
11243
  var import_library_prisma5 = __toESM(require_dist());
@@ -11300,10 +11315,16 @@ var GetPackagesParamsFilter = z.object({
11300
11315
  })
11301
11316
  }).optional().default({})
11302
11317
  });
11318
+ var GetPackagesParamsOrderByEnum = /* @__PURE__ */ ((GetPackagesParamsOrderByEnum2) => {
11319
+ GetPackagesParamsOrderByEnum2["label"] = "label";
11320
+ GetPackagesParamsOrderByEnum2["updatedAt"] = "updatedAt";
11321
+ GetPackagesParamsOrderByEnum2["createdAt"] = "createdAt";
11322
+ return GetPackagesParamsOrderByEnum2;
11323
+ })(GetPackagesParamsOrderByEnum || {});
11303
11324
  var GetPackagesParams = PaginationParamsFunc({
11304
- orderByEnum: ["label", "updatedAt", "createdAt", "versionInt"],
11305
- orderByDefault: "label",
11306
- orderDefault: "asc"
11325
+ orderByEnum: GetPackagesParamsOrderByEnum,
11326
+ orderByDefault: "label" /* label */,
11327
+ orderDefault: import_library_prisma5.Prisma.SortOrder.asc
11307
11328
  }).merge(
11308
11329
  z.object({
11309
11330
  filter: GetPackagesParamsFilter.optional().default({}),
@@ -11324,6 +11345,12 @@ var DeletePackageParams = z.object({
11324
11345
  schemaType: true
11325
11346
  })
11326
11347
  });
11348
+ var PackageDependencyDeleteParams = z.intersection(
11349
+ UniversalPackageParams.pick({ id: true, revisionId: true, type: true }),
11350
+ z.object({
11351
+ dependencyId: z.string()
11352
+ })
11353
+ );
11327
11354
  /*! Bundled license information:
11328
11355
 
11329
11356
  @prisma/client/runtime/index-browser.js: