@or-sdk/library-types-v2 6.0.19 → 6.0.21

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/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 : 0 / 0);
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,8 +1157,8 @@ var require_index_browser2 = __commonJS({
1157
1157
  exports.Prisma = Prisma3;
1158
1158
  exports.$Enums = {};
1159
1159
  Prisma3.prismaVersion = {
1160
- client: "5.6.0",
1161
- engine: "e95e739751f42d8ca026f6b910f5a2dc5adeaeee"
1160
+ client: "5.7.0",
1161
+ engine: "79fb5193cf0a8fdbef536e4b4a159cad677ab1b9"
1162
1162
  };
1163
1163
  Prisma3.PrismaClientKnownRequestError = () => {
1164
1164
  throw new Error(
@@ -1306,7 +1306,8 @@ In case this error is unexpected for you, please report it in https://github.com
1306
1306
  servingType: "servingType",
1307
1307
  label: "label",
1308
1308
  description: "description",
1309
- sourceRevisionId: "sourceRevisionId"
1309
+ sourceRevisionId: "sourceRevisionId",
1310
+ fts: "fts"
1310
1311
  };
1311
1312
  exports.Prisma.PackageReleaseDataScalarFieldEnum = {
1312
1313
  revisionId: "revisionId",
@@ -1428,7 +1429,8 @@ In case this error is unexpected for you, please report it in https://github.com
1428
1429
  servingType: "servingType",
1429
1430
  label: "label",
1430
1431
  description: "description",
1431
- sourceRevisionId: "sourceRevisionId"
1432
+ sourceRevisionId: "sourceRevisionId",
1433
+ fts: "fts"
1432
1434
  };
1433
1435
  exports.Prisma.PackageReleaseDataOrderByRelevanceFieldEnum = {
1434
1436
  revisionId: "revisionId"
@@ -6397,7 +6399,8 @@ var require_packagerelease = __commonJS({
6397
6399
  servingType: z2.string().nullish(),
6398
6400
  label: z2.string(),
6399
6401
  description: z2.string().nullish(),
6400
- sourceRevisionId: z2.string().nullish()
6402
+ sourceRevisionId: z2.string().nullish(),
6403
+ fts: z2.string().nullish()
6401
6404
  });
6402
6405
  var PackageReleaseDto = (
6403
6406
  /** @class */
@@ -11021,7 +11024,7 @@ var AddPackageReleasePartial = import_library_prisma.prismaZodGenerated._Package
11021
11024
  meta: PackageMeta,
11022
11025
  fileNames: z.array(z.string()).describe(
11023
11026
  "Custom field for files, will return signatures for upload them to S3, used in EXTERNAL packages types"
11024
- ),
11027
+ ).optional(),
11025
11028
  categories: z.array(z.string()).describe("Category IDs"),
11026
11029
  statusDetailsSystem: import_library_prisma.prismaZodGenerated._PackageStatusDetailsSystemModel.pick({ status: true }).optional().describe(
11027
11030
  `Default status, for example "${import_library_prisma.PackageStatusDetailsStatusEnum.UPLOADED}"`
@@ -11033,7 +11036,16 @@ var AddPackageReleasePartial = import_library_prisma.prismaZodGenerated._Package
11033
11036
  `Default publish level, for example '${import_library_prisma.PackageStatusDetailsLevelEnum.ACCOUNT}' level and '${import_library_prisma.PackageStatusDetailsStatusEnum.BETA}' status`
11034
11037
  )
11035
11038
  }).describe("Add package model body");
11036
- var AddPackageBody = AddPackageReleasePartial;
11039
+ var AddPackageBody = AddPackageReleasePartial.refine(
11040
+ (data) => {
11041
+ const hasFileNames = !!data.fileNames?.length;
11042
+ const hasData = !!Object.keys(data.data || {}).length;
11043
+ return hasFileNames || hasData;
11044
+ },
11045
+ {
11046
+ message: "fileNames or data required, use data for LEGACY packages types and fileNames for EXTERNAL packages types"
11047
+ }
11048
+ );
11037
11049
  var UpdatePackageByRevisionBody = AddPackageReleasePartial.pick({
11038
11050
  membersAccountIds: true,
11039
11051
  membersUserIds: true,
@@ -11117,7 +11129,8 @@ var PackageReleaseModelResponse = import_library_prisma4.prismaZodGenerated._Pac
11117
11129
  createdById: true,
11118
11130
  modifiedById: true,
11119
11131
  sourceRevisionId: true,
11120
- versionInt: true
11132
+ versionInt: true,
11133
+ fts: true
11121
11134
  }).merge(
11122
11135
  z.object({
11123
11136
  data: z.any().optional(),
@@ -11182,13 +11195,14 @@ var PackageReleaseModelResponse = import_library_prisma4.prismaZodGenerated._Pac
11182
11195
  return data;
11183
11196
  });
11184
11197
  var AddPackageResponse = z.object({
11185
- packageRelease: PackageReleaseModelResponse,
11186
- baseUrl: z.string().optional().nullable(),
11198
+ packageRelease: PackageReleaseModelResponse.describe(
11199
+ "Release of added package"
11200
+ ),
11187
11201
  uploadSignature: z.object({
11188
11202
  fileName: z.string(),
11189
11203
  url: z.string(),
11190
11204
  fields: z.any()
11191
- }).array()
11205
+ }).array().describe("Upload signature for s3")
11192
11206
  });
11193
11207
  var GetPackagesListResponse = ListView.extend({
11194
11208
  categories: import_library_prisma4.prismaZodGenerated._CategoryModel.pick({