@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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @or-sdk/library-types
2
2
 
3
+ ## 6.0.21
4
+
5
+ ### Patch Changes
6
+
7
+ - f48fd537: fix multiword search
8
+
9
+ ## 6.0.20
10
+
11
+ ### Patch Changes
12
+
13
+ - 8f3c20ef: update create package params and move reusable func in test to one place
14
+
3
15
  ## 6.0.19
4
16
 
5
17
  ### Patch Changes
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 : 0 / 0);
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,8 +1162,8 @@ var require_index_browser2 = __commonJS({
1162
1162
  exports.Prisma = Prisma3;
1163
1163
  exports.$Enums = {};
1164
1164
  Prisma3.prismaVersion = {
1165
- client: "5.6.0",
1166
- engine: "e95e739751f42d8ca026f6b910f5a2dc5adeaeee"
1165
+ client: "5.7.0",
1166
+ engine: "79fb5193cf0a8fdbef536e4b4a159cad677ab1b9"
1167
1167
  };
1168
1168
  Prisma3.PrismaClientKnownRequestError = () => {
1169
1169
  throw new Error(
@@ -1311,7 +1311,8 @@ In case this error is unexpected for you, please report it in https://github.com
1311
1311
  servingType: "servingType",
1312
1312
  label: "label",
1313
1313
  description: "description",
1314
- sourceRevisionId: "sourceRevisionId"
1314
+ sourceRevisionId: "sourceRevisionId",
1315
+ fts: "fts"
1315
1316
  };
1316
1317
  exports.Prisma.PackageReleaseDataScalarFieldEnum = {
1317
1318
  revisionId: "revisionId",
@@ -1433,7 +1434,8 @@ In case this error is unexpected for you, please report it in https://github.com
1433
1434
  servingType: "servingType",
1434
1435
  label: "label",
1435
1436
  description: "description",
1436
- sourceRevisionId: "sourceRevisionId"
1437
+ sourceRevisionId: "sourceRevisionId",
1438
+ fts: "fts"
1437
1439
  };
1438
1440
  exports.Prisma.PackageReleaseDataOrderByRelevanceFieldEnum = {
1439
1441
  revisionId: "revisionId"
@@ -6402,7 +6404,8 @@ var require_packagerelease = __commonJS({
6402
6404
  servingType: z2.string().nullish(),
6403
6405
  label: z2.string(),
6404
6406
  description: z2.string().nullish(),
6405
- sourceRevisionId: z2.string().nullish()
6407
+ sourceRevisionId: z2.string().nullish(),
6408
+ fts: z2.string().nullish()
6406
6409
  });
6407
6410
  var PackageReleaseDto = (
6408
6411
  /** @class */
@@ -11065,7 +11068,7 @@ var AddPackageReleasePartial = import_library_prisma.prismaZodGenerated._Package
11065
11068
  meta: PackageMeta,
11066
11069
  fileNames: z.array(z.string()).describe(
11067
11070
  "Custom field for files, will return signatures for upload them to S3, used in EXTERNAL packages types"
11068
- ),
11071
+ ).optional(),
11069
11072
  categories: z.array(z.string()).describe("Category IDs"),
11070
11073
  statusDetailsSystem: import_library_prisma.prismaZodGenerated._PackageStatusDetailsSystemModel.pick({ status: true }).optional().describe(
11071
11074
  `Default status, for example "${import_library_prisma.PackageStatusDetailsStatusEnum.UPLOADED}"`
@@ -11077,7 +11080,16 @@ var AddPackageReleasePartial = import_library_prisma.prismaZodGenerated._Package
11077
11080
  `Default publish level, for example '${import_library_prisma.PackageStatusDetailsLevelEnum.ACCOUNT}' level and '${import_library_prisma.PackageStatusDetailsStatusEnum.BETA}' status`
11078
11081
  )
11079
11082
  }).describe("Add package model body");
11080
- var AddPackageBody = AddPackageReleasePartial;
11083
+ var AddPackageBody = AddPackageReleasePartial.refine(
11084
+ (data) => {
11085
+ const hasFileNames = !!data.fileNames?.length;
11086
+ const hasData = !!Object.keys(data.data || {}).length;
11087
+ return hasFileNames || hasData;
11088
+ },
11089
+ {
11090
+ message: "fileNames or data required, use data for LEGACY packages types and fileNames for EXTERNAL packages types"
11091
+ }
11092
+ );
11081
11093
  var UpdatePackageByRevisionBody = AddPackageReleasePartial.pick({
11082
11094
  membersAccountIds: true,
11083
11095
  membersUserIds: true,
@@ -11161,7 +11173,8 @@ var PackageReleaseModelResponse = import_library_prisma4.prismaZodGenerated._Pac
11161
11173
  createdById: true,
11162
11174
  modifiedById: true,
11163
11175
  sourceRevisionId: true,
11164
- versionInt: true
11176
+ versionInt: true,
11177
+ fts: true
11165
11178
  }).merge(
11166
11179
  z.object({
11167
11180
  data: z.any().optional(),
@@ -11226,13 +11239,14 @@ var PackageReleaseModelResponse = import_library_prisma4.prismaZodGenerated._Pac
11226
11239
  return data;
11227
11240
  });
11228
11241
  var AddPackageResponse = z.object({
11229
- packageRelease: PackageReleaseModelResponse,
11230
- baseUrl: z.string().optional().nullable(),
11242
+ packageRelease: PackageReleaseModelResponse.describe(
11243
+ "Release of added package"
11244
+ ),
11231
11245
  uploadSignature: z.object({
11232
11246
  fileName: z.string(),
11233
11247
  url: z.string(),
11234
11248
  fields: z.any()
11235
- }).array()
11249
+ }).array().describe("Upload signature for s3")
11236
11250
  });
11237
11251
  var GetPackagesListResponse = ListView.extend({
11238
11252
  categories: import_library_prisma4.prismaZodGenerated._CategoryModel.pick({