@or-sdk/library-types-v1 6.0.12 → 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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @or-sdk/library-types
2
2
 
3
+ ## 6.0.14
4
+
5
+ ### Patch Changes
6
+
7
+ - d52d1acb: fix for json recreate for non uploaded packages
8
+
9
+ ## 6.0.13
10
+
11
+ ### Patch Changes
12
+
13
+ - 6df06387: remove servingType, add schemaServingType and schemaVersion prop
14
+
3
15
  ## 6.0.12
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,81 +1162,81 @@ var require_index_browser2 = __commonJS({
1162
1162
  exports.Prisma = Prisma2;
1163
1163
  exports.$Enums = {};
1164
1164
  Prisma2.prismaVersion = {
1165
- client: "5.4.2",
1166
- engine: "ac9d7041ed77bcc8a8dbd2ab6616b39013829574"
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://github.com/prisma/prisma/issues`
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://github.com/prisma/prisma/issues`
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://github.com/prisma/prisma/issues`
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://github.com/prisma/prisma/issues`
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://github.com/prisma/prisma/issues`
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://github.com/prisma/prisma/issues`
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://github.com/prisma/prisma/issues`
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://github.com/prisma/prisma/issues`
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://github.com/prisma/prisma/issues`
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://github.com/prisma/prisma/issues`
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://github.com/prisma/prisma/issues`
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://github.com/prisma/prisma/issues`
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"
@@ -1478,23 +1484,26 @@ In case this error is unexpected for you, please report it in https://github.com
1478
1484
  FAILURE: "FAILURE"
1479
1485
  };
1480
1486
  exports.PackageTypeEnum = exports.$Enums.PackageTypeEnum = {
1481
- TEST_ONLY: "TEST_ONLY",
1482
- UNKNOWN: "UNKNOWN",
1483
- STEP: "STEP",
1484
- STEP_INPUT: "STEP_INPUT",
1485
- STEP_TEMPLATE: "STEP_TEMPLATE",
1486
- FLOW_TEMPLATE: "FLOW_TEMPLATE",
1487
1487
  BOT_TEMPLATE: "BOT_TEMPLATE",
1488
- TICKET_INPUT: "TICKET_INPUT",
1489
- CONTENT_INPUT: "CONTENT_INPUT",
1490
1488
  CONTENT: "CONTENT",
1489
+ CONTENT_INPUT: "CONTENT_INPUT",
1490
+ FLOW_TEMPLATE: "FLOW_TEMPLATE",
1491
1491
  NPM_UNPACKED: "NPM_UNPACKED",
1492
+ RWC_INPUT: "RWC_INPUT",
1492
1493
  S3_BUCKET: "S3_BUCKET",
1493
- RWC_INPUT: "RWC_INPUT"
1494
+ STEP: "STEP",
1495
+ STEP_INPUT: "STEP_INPUT",
1496
+ STEP_TEMPLATE: "STEP_TEMPLATE",
1497
+ TEST_ONLY: "TEST_ONLY",
1498
+ TICKET_INPUT: "TICKET_INPUT",
1499
+ UNKNOWN: "UNKNOWN"
1494
1500
  };
1495
1501
  exports.PackageSchemaTypeEnum = exports.$Enums.PackageSchemaTypeEnum = {
1496
1502
  LEGACY: "LEGACY",
1503
+ LEGACY_MULTI: "LEGACY_MULTI",
1497
1504
  EXTERNAL: "EXTERNAL",
1505
+ VUE2_V1: "VUE2_V1",
1506
+ VUE3_V1: "VUE3_V1",
1498
1507
  UNKNOWN: "UNKNOWN"
1499
1508
  };
1500
1509
  exports.PackageStatusDetailsStatusEnum = exports.$Enums.PackageStatusDetailsStatusEnum = {
@@ -1537,7 +1546,7 @@ In case this error is unexpected for you, please report it in https://github.com
1537
1546
  "workerd": "Cloudflare Workers",
1538
1547
  "deno": "Deno and Deno Deploy",
1539
1548
  "netlify": "Netlify Edge Functions",
1540
- "edge-light": "Vercel Edge Functions"
1549
+ "edge-light": "Vercel Edge Functions or Edge Middleware"
1541
1550
  }[runtime];
1542
1551
  let message = "PrismaClient is unable to run in ";
1543
1552
  if (edgeRuntimeName !== void 0) {
@@ -1546,7 +1555,7 @@ In case this error is unexpected for you, please report it in https://github.com
1546
1555
  message += "this browser environment, or has been bundled for the browser (running in `" + runtime + "`).";
1547
1556
  }
1548
1557
  message += `
1549
- If this is unexpected, please open an issue: https://github.com/prisma/prisma/issues`;
1558
+ If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`;
1550
1559
  throw new Error(message);
1551
1560
  }
1552
1561
  });
@@ -5817,24 +5826,27 @@ var require_enums = __commonJS({
5817
5826
  })(MigrationStatus || (exports.MigrationStatus = MigrationStatus = {}));
5818
5827
  var PackageTypeEnum8;
5819
5828
  (function(PackageTypeEnum9) {
5820
- PackageTypeEnum9["TEST_ONLY"] = "TEST_ONLY";
5821
- PackageTypeEnum9["UNKNOWN"] = "UNKNOWN";
5822
- PackageTypeEnum9["STEP"] = "STEP";
5823
- PackageTypeEnum9["STEP_INPUT"] = "STEP_INPUT";
5824
- PackageTypeEnum9["STEP_TEMPLATE"] = "STEP_TEMPLATE";
5825
- PackageTypeEnum9["FLOW_TEMPLATE"] = "FLOW_TEMPLATE";
5826
5829
  PackageTypeEnum9["BOT_TEMPLATE"] = "BOT_TEMPLATE";
5827
- PackageTypeEnum9["TICKET_INPUT"] = "TICKET_INPUT";
5828
- PackageTypeEnum9["CONTENT_INPUT"] = "CONTENT_INPUT";
5829
5830
  PackageTypeEnum9["CONTENT"] = "CONTENT";
5831
+ PackageTypeEnum9["CONTENT_INPUT"] = "CONTENT_INPUT";
5832
+ PackageTypeEnum9["FLOW_TEMPLATE"] = "FLOW_TEMPLATE";
5830
5833
  PackageTypeEnum9["NPM_UNPACKED"] = "NPM_UNPACKED";
5831
- PackageTypeEnum9["S3_BUCKET"] = "S3_BUCKET";
5832
5834
  PackageTypeEnum9["RWC_INPUT"] = "RWC_INPUT";
5835
+ PackageTypeEnum9["S3_BUCKET"] = "S3_BUCKET";
5836
+ PackageTypeEnum9["STEP"] = "STEP";
5837
+ PackageTypeEnum9["STEP_INPUT"] = "STEP_INPUT";
5838
+ PackageTypeEnum9["STEP_TEMPLATE"] = "STEP_TEMPLATE";
5839
+ PackageTypeEnum9["TEST_ONLY"] = "TEST_ONLY";
5840
+ PackageTypeEnum9["TICKET_INPUT"] = "TICKET_INPUT";
5841
+ PackageTypeEnum9["UNKNOWN"] = "UNKNOWN";
5833
5842
  })(PackageTypeEnum8 || (exports.PackageTypeEnum = PackageTypeEnum8 = {}));
5834
5843
  var PackageSchemaTypeEnum6;
5835
5844
  (function(PackageSchemaTypeEnum7) {
5836
5845
  PackageSchemaTypeEnum7["LEGACY"] = "LEGACY";
5846
+ PackageSchemaTypeEnum7["LEGACY_MULTI"] = "LEGACY_MULTI";
5837
5847
  PackageSchemaTypeEnum7["EXTERNAL"] = "EXTERNAL";
5848
+ PackageSchemaTypeEnum7["VUE2_V1"] = "VUE2_V1";
5849
+ PackageSchemaTypeEnum7["VUE3_V1"] = "VUE3_V1";
5838
5850
  PackageSchemaTypeEnum7["UNKNOWN"] = "UNKNOWN";
5839
5851
  })(PackageSchemaTypeEnum6 || (exports.PackageSchemaTypeEnum = PackageSchemaTypeEnum6 = {}));
5840
5852
  var PackageStatusDetailsStatusEnum5;
@@ -6396,7 +6408,8 @@ var require_packagerelease = __commonJS({
6396
6408
  servingType: z2.string().nullish(),
6397
6409
  label: z2.string(),
6398
6410
  description: z2.string().nullish(),
6399
- sourceRevisionId: z2.string().nullish()
6411
+ sourceRevisionId: z2.string().nullish(),
6412
+ fts: z2.string().nullish()
6400
6413
  });
6401
6414
  var PackageReleaseDto = (
6402
6415
  /** @class */
@@ -7266,6 +7279,7 @@ __export(src_exports, {
7266
7279
  CreatePackageByVersionResponse: () => CreatePackageByVersionResponse,
7267
7280
  CreatePackageByVersionUnion: () => CreatePackageByVersionUnion,
7268
7281
  CreatePackageFromJsonBody: () => CreatePackageFromJsonBody,
7282
+ CreatePackageFromJsonResponse: () => CreatePackageFromJsonResponse,
7269
7283
  CreatePackageFromJsonUnion: () => CreatePackageFromJsonUnion,
7270
7284
  CreatePackageReleaseBody: () => CreatePackageReleaseBody,
7271
7285
  CreateReleaseParams: () => CreateReleaseParams,
@@ -7302,14 +7316,13 @@ __export(src_exports, {
7302
7316
  PackageTypeEnum: () => import_library_prisma10.PackageTypeEnum,
7303
7317
  PackagesOrderByEnum: () => PackagesOrderByEnum,
7304
7318
  PutLegacyPackageBody: () => PutLegacyPackageBody,
7305
- PutLegacyVersionResponse: () => PutLegacyVersionResponse,
7306
7319
  SetPublishedBody: () => SetPublishedBody,
7307
7320
  SourceDataBody: () => SourceDataBody,
7308
7321
  SourceMetaLabelBody: () => SourceMetaLabelBody,
7309
7322
  SourceMetaMocksBody: () => SourceMetaMocksBody,
7310
7323
  SourcesParamUniversal: () => SourcesParamUniversal,
7311
7324
  StatusDetailsReleaseParam: () => StatusDetailsReleaseParam,
7312
- SyncLegacyResponse: () => SyncLegacyResponse,
7325
+ SyncResponse: () => SyncResponse,
7313
7326
  UpdateCategoryBody: () => UpdateCategoryBody,
7314
7327
  UpdateMetaBranchBodyLegacy: () => UpdateMetaBranchBodyLegacy,
7315
7328
  UploadUrlSchema: () => UploadUrlSchema,
@@ -11216,8 +11229,8 @@ var CreatePackageByVersionBody = z.object({
11216
11229
  revisionId: z.string().optional(),
11217
11230
  status: z.nativeEnum(import_library_prisma5.PackageStatusDetailsStatusEnum).default(import_library_prisma5.PackageStatusDetailsStatusEnum.BETA).optional(),
11218
11231
  level: z.nativeEnum(import_library_prisma5.PackageStatusDetailsLevelEnum).default(import_library_prisma5.PackageStatusDetailsLevelEnum.ACCOUNT).optional(),
11219
- servingType: z.string().optional().transform((s) => s?.toUpperCase?.()),
11220
- data: z.any().optional().default({})
11232
+ data: z.any().optional().default({}),
11233
+ schemaType: z.nativeEnum(import_library_prisma5.PackageSchemaTypeEnum).optional()
11221
11234
  }).transform((body) => {
11222
11235
  body.label = body.label || body.name;
11223
11236
  return body;
@@ -11376,8 +11389,7 @@ var GetPackageResponse = z.object({
11376
11389
  name: z.string(),
11377
11390
  description: z.string().nullable().optional(),
11378
11391
  categories: z.array(z.string()).optional(),
11379
- statusDetails: PackageStatusDetails,
11380
- servingType: z.string().optional()
11392
+ statusDetails: PackageStatusDetails
11381
11393
  });
11382
11394
  var GetPackageByIdIncludes = z.object({
11383
11395
  releaseNotes: z.object({ markdown: z.string().nullable().optional() }).optional().optional(),
@@ -11401,7 +11413,6 @@ var GetPackageByIdResponse = z.intersection(
11401
11413
  version: z.string(),
11402
11414
  baseUrl: z.string(),
11403
11415
  statusDetails: PackageStatusDetails.optional(),
11404
- servingType: z.string().optional(),
11405
11416
  createdAt: z.date().or(z.string()).optional(),
11406
11417
  revisionId: z.string().optional(),
11407
11418
  name: z.string().optional(),
@@ -11421,7 +11432,6 @@ var GetPackageByIdLatestResponse = z.intersection(
11421
11432
  version: z.string(),
11422
11433
  name: z.string().trim().optional(),
11423
11434
  baseUrl: z.string(),
11424
- servingType: z.string().optional(),
11425
11435
  releases: PackageReleases
11426
11436
  }),
11427
11437
  GetPackageByIdIncludes
@@ -11462,6 +11472,10 @@ var GetPackageSystemStatusResponse = z.object({
11462
11472
  type: z.nativeEnum(import_library_prisma7.PackageTypeEnum),
11463
11473
  version: z.string()
11464
11474
  });
11475
+ var CreatePackageFromJsonResponse = z.object({
11476
+ success: z.boolean(),
11477
+ debug: z.any().optional()
11478
+ });
11465
11479
 
11466
11480
  // src/Sources/param.ts
11467
11481
  var import_library_prisma8 = __toESM(require_dist());
@@ -11643,18 +11657,13 @@ var ForkSourceBranchResponse = z.object({
11643
11657
 
11644
11658
  // src/Sync/response.ts
11645
11659
  var import_library_prisma9 = __toESM(require_dist());
11646
- var SyncLegacyResponse = z.object({
11660
+ var SyncResponse = z.object({
11647
11661
  id: z.string(),
11648
11662
  version: z.string(),
11649
- created: z.boolean()
11650
- });
11651
- var PutLegacyVersionResponse = z.object({
11652
- id: z.string(),
11653
- version: z.string(),
11654
- revisionId: z.string(),
11655
11663
  type: z.nativeEnum(import_library_prisma9.PackageTypeEnum),
11656
- fileName: z.string().nullable().optional(),
11657
- key: z.string().nullable().optional()
11664
+ created: z.boolean(),
11665
+ key: z.string().optional(),
11666
+ debug: z.any()
11658
11667
  });
11659
11668
 
11660
11669
  // src/UploadUrl.ts