@or-sdk/library-types-v2 6.0.8 → 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,17 @@
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
+
9
+ ## 6.0.9
10
+
11
+ ### Patch Changes
12
+
13
+ - 6df06387: remove servingType, add schemaServingType and schemaVersion prop
14
+
3
15
  ## 6.0.8
4
16
 
5
17
  ### 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",
@@ -1478,23 +1478,26 @@ In case this error is unexpected for you, please report it in https://github.com
1478
1478
  FAILURE: "FAILURE"
1479
1479
  };
1480
1480
  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
1481
  BOT_TEMPLATE: "BOT_TEMPLATE",
1488
- TICKET_INPUT: "TICKET_INPUT",
1489
- CONTENT_INPUT: "CONTENT_INPUT",
1490
1482
  CONTENT: "CONTENT",
1483
+ CONTENT_INPUT: "CONTENT_INPUT",
1484
+ FLOW_TEMPLATE: "FLOW_TEMPLATE",
1491
1485
  NPM_UNPACKED: "NPM_UNPACKED",
1486
+ RWC_INPUT: "RWC_INPUT",
1492
1487
  S3_BUCKET: "S3_BUCKET",
1493
- RWC_INPUT: "RWC_INPUT"
1488
+ STEP: "STEP",
1489
+ STEP_INPUT: "STEP_INPUT",
1490
+ STEP_TEMPLATE: "STEP_TEMPLATE",
1491
+ TEST_ONLY: "TEST_ONLY",
1492
+ TICKET_INPUT: "TICKET_INPUT",
1493
+ UNKNOWN: "UNKNOWN"
1494
1494
  };
1495
1495
  exports.PackageSchemaTypeEnum = exports.$Enums.PackageSchemaTypeEnum = {
1496
1496
  LEGACY: "LEGACY",
1497
+ LEGACY_MULTI: "LEGACY_MULTI",
1497
1498
  EXTERNAL: "EXTERNAL",
1499
+ VUE2_V1: "VUE2_V1",
1500
+ VUE3_V1: "VUE3_V1",
1498
1501
  UNKNOWN: "UNKNOWN"
1499
1502
  };
1500
1503
  exports.PackageStatusDetailsStatusEnum = exports.$Enums.PackageStatusDetailsStatusEnum = {
@@ -1553,7 +1556,7 @@ If this is unexpected, please open an issue: https://github.com/prisma/prisma/is
1553
1556
  }
1554
1557
  };
1555
1558
  exports.PrismaClient = PrismaClient;
1556
- Object.assign(exports, Prisma2);
1559
+ Object.assign(exports, Prisma3);
1557
1560
  }
1558
1561
  });
1559
1562
 
@@ -5815,28 +5818,31 @@ var require_enums = __commonJS({
5815
5818
  MigrationStatus2["SUCCESS"] = "SUCCESS";
5816
5819
  MigrationStatus2["FAILURE"] = "FAILURE";
5817
5820
  })(MigrationStatus || (exports.MigrationStatus = MigrationStatus = {}));
5818
- var PackageTypeEnum3;
5819
- (function(PackageTypeEnum4) {
5820
- PackageTypeEnum4["TEST_ONLY"] = "TEST_ONLY";
5821
- PackageTypeEnum4["UNKNOWN"] = "UNKNOWN";
5822
- PackageTypeEnum4["STEP"] = "STEP";
5823
- PackageTypeEnum4["STEP_INPUT"] = "STEP_INPUT";
5824
- PackageTypeEnum4["STEP_TEMPLATE"] = "STEP_TEMPLATE";
5825
- PackageTypeEnum4["FLOW_TEMPLATE"] = "FLOW_TEMPLATE";
5826
- PackageTypeEnum4["BOT_TEMPLATE"] = "BOT_TEMPLATE";
5827
- PackageTypeEnum4["TICKET_INPUT"] = "TICKET_INPUT";
5828
- PackageTypeEnum4["CONTENT_INPUT"] = "CONTENT_INPUT";
5829
- PackageTypeEnum4["CONTENT"] = "CONTENT";
5830
- PackageTypeEnum4["NPM_UNPACKED"] = "NPM_UNPACKED";
5831
- PackageTypeEnum4["S3_BUCKET"] = "S3_BUCKET";
5832
- PackageTypeEnum4["RWC_INPUT"] = "RWC_INPUT";
5833
- })(PackageTypeEnum3 || (exports.PackageTypeEnum = PackageTypeEnum3 = {}));
5834
- var PackageSchemaTypeEnum2;
5835
- (function(PackageSchemaTypeEnum3) {
5836
- PackageSchemaTypeEnum3["LEGACY"] = "LEGACY";
5837
- PackageSchemaTypeEnum3["EXTERNAL"] = "EXTERNAL";
5838
- PackageSchemaTypeEnum3["UNKNOWN"] = "UNKNOWN";
5839
- })(PackageSchemaTypeEnum2 || (exports.PackageSchemaTypeEnum = PackageSchemaTypeEnum2 = {}));
5821
+ var PackageTypeEnum4;
5822
+ (function(PackageTypeEnum5) {
5823
+ PackageTypeEnum5["BOT_TEMPLATE"] = "BOT_TEMPLATE";
5824
+ PackageTypeEnum5["CONTENT"] = "CONTENT";
5825
+ PackageTypeEnum5["CONTENT_INPUT"] = "CONTENT_INPUT";
5826
+ PackageTypeEnum5["FLOW_TEMPLATE"] = "FLOW_TEMPLATE";
5827
+ PackageTypeEnum5["NPM_UNPACKED"] = "NPM_UNPACKED";
5828
+ PackageTypeEnum5["RWC_INPUT"] = "RWC_INPUT";
5829
+ PackageTypeEnum5["S3_BUCKET"] = "S3_BUCKET";
5830
+ PackageTypeEnum5["STEP"] = "STEP";
5831
+ PackageTypeEnum5["STEP_INPUT"] = "STEP_INPUT";
5832
+ PackageTypeEnum5["STEP_TEMPLATE"] = "STEP_TEMPLATE";
5833
+ PackageTypeEnum5["TEST_ONLY"] = "TEST_ONLY";
5834
+ PackageTypeEnum5["TICKET_INPUT"] = "TICKET_INPUT";
5835
+ PackageTypeEnum5["UNKNOWN"] = "UNKNOWN";
5836
+ })(PackageTypeEnum4 || (exports.PackageTypeEnum = PackageTypeEnum4 = {}));
5837
+ var PackageSchemaTypeEnum3;
5838
+ (function(PackageSchemaTypeEnum4) {
5839
+ PackageSchemaTypeEnum4["LEGACY"] = "LEGACY";
5840
+ PackageSchemaTypeEnum4["LEGACY_MULTI"] = "LEGACY_MULTI";
5841
+ PackageSchemaTypeEnum4["EXTERNAL"] = "EXTERNAL";
5842
+ PackageSchemaTypeEnum4["VUE2_V1"] = "VUE2_V1";
5843
+ PackageSchemaTypeEnum4["VUE3_V1"] = "VUE3_V1";
5844
+ PackageSchemaTypeEnum4["UNKNOWN"] = "UNKNOWN";
5845
+ })(PackageSchemaTypeEnum3 || (exports.PackageSchemaTypeEnum = PackageSchemaTypeEnum3 = {}));
5840
5846
  var PackageStatusDetailsStatusEnum2;
5841
5847
  (function(PackageStatusDetailsStatusEnum3) {
5842
5848
  PackageStatusDetailsStatusEnum3["TEST_ONLY"] = "TEST_ONLY";
@@ -7263,15 +7269,21 @@ __export(src_exports, {
7263
7269
  AddPackageResponse: () => AddPackageResponse,
7264
7270
  CreatedBy: () => CreatedBy,
7265
7271
  DeletePackageParams: () => DeletePackageParams,
7272
+ GetPackageArchiveSignedUrl: () => GetPackageArchiveSignedUrl,
7266
7273
  GetPackageParams: () => GetPackageParams,
7267
7274
  GetPackageReleaseResponse: () => GetPackageReleaseResponse,
7268
7275
  GetPackageResponse: () => GetPackageResponse,
7269
7276
  GetPackagesListResponse: () => GetPackagesListResponse,
7270
7277
  GetPackagesParams: () => GetPackagesParams,
7271
7278
  GetPackagesParamsFilter: () => GetPackagesParamsFilter,
7279
+ GetPackagesParamsOrderByEnum: () => GetPackagesParamsOrderByEnum,
7272
7280
  InAndNotInFunc: () => InAndNotInFunc,
7273
7281
  ListView: () => ListView,
7282
+ OrderByEnum: () => OrderByEnum,
7283
+ PackageDependencyDeleteParams: () => PackageDependencyDeleteParams,
7274
7284
  PackageMeta: () => PackageMeta,
7285
+ PackageSchemaServingType: () => PackageSchemaServingType,
7286
+ PackageSchemaVersion: () => PackageSchemaVersion,
7275
7287
  PaginationParamsFunc: () => PaginationParamsFunc,
7276
7288
  UniversalPackageParams: () => UniversalPackageParams,
7277
7289
  UpdatePackageByRevisionBody: () => UpdatePackageByRevisionBody
@@ -11040,7 +11052,6 @@ var AddPackageBody = import_library_prisma.prismaZodGenerated._PackageModel.pick
11040
11052
  revisionId: true,
11041
11053
  schemaType: true,
11042
11054
  type: true,
11043
- servingType: true,
11044
11055
  label: true,
11045
11056
  description: true
11046
11057
  }).merge(
@@ -11065,8 +11076,8 @@ var UpdatePackageByRevisionBody = AddPackageBody.pick({
11065
11076
  meta: true,
11066
11077
  label: true,
11067
11078
  description: true,
11068
- servingType: true,
11069
- releaseNotesMarkdown: true
11079
+ releaseNotesMarkdown: true,
11080
+ categories: true
11070
11081
  }).partial();
11071
11082
  var AddPackageDependenciesBody = z.object({
11072
11083
  type: z.nativeEnum(import_library_prisma.PackageTypeEnum),
@@ -11090,12 +11101,18 @@ var ListView = z.object({
11090
11101
  filter: z.any().optional(),
11091
11102
  scope: z.any().optional()
11092
11103
  });
11104
+ var OrderByEnum = /* @__PURE__ */ ((OrderByEnum2) => {
11105
+ OrderByEnum2["createdAt"] = "createdAt";
11106
+ OrderByEnum2["updatedAt"] = "updatedAt";
11107
+ OrderByEnum2["label"] = "label";
11108
+ return OrderByEnum2;
11109
+ })(OrderByEnum || {});
11093
11110
  var PaginationParamsFunc = ({
11094
- orderByEnum = ["updatedAt", "createdAt"],
11111
+ orderByEnum = OrderByEnum,
11095
11112
  orderByDefault,
11096
11113
  orderDefault = import_library_prisma2.Prisma.SortOrder.desc
11097
11114
  }) => z.object({
11098
- orderBy: z.enum(orderByEnum).default(orderByDefault || orderByEnum[0]),
11115
+ orderBy: z.nativeEnum(orderByEnum).default(orderByDefault || orderByEnum[0]),
11099
11116
  order: z.nativeEnum(import_library_prisma2.Prisma.SortOrder).default(orderDefault),
11100
11117
  skip: z.any().transform((n) => parseInt(n, 10)).default(0),
11101
11118
  take: z.any().transform((n) => parseInt(n, 10)).default(10)
@@ -11109,6 +11126,16 @@ var CreatedBy = import_library_prisma3.prismaZodGenerated._CreatedByModel.pick({
11109
11126
  }).or(z.any().nullable());
11110
11127
 
11111
11128
  // src/Packages/response.ts
11129
+ var PackageSchemaServingType = /* @__PURE__ */ ((PackageSchemaServingType2) => {
11130
+ PackageSchemaServingType2["JSON"] = "JSON";
11131
+ PackageSchemaServingType2["STATIC"] = "STATIC";
11132
+ return PackageSchemaServingType2;
11133
+ })(PackageSchemaServingType || {});
11134
+ var PackageSchemaVersion = /* @__PURE__ */ ((PackageSchemaVersion2) => {
11135
+ PackageSchemaVersion2["MULTI"] = "MULTI";
11136
+ PackageSchemaVersion2["SINGLE"] = "SINGLE";
11137
+ return PackageSchemaVersion2;
11138
+ })(PackageSchemaVersion || {});
11112
11139
  var PackageModelResponse = import_library_prisma4.prismaZodGenerated._PackageModel.omit({
11113
11140
  createdById: true,
11114
11141
  modifiedById: true,
@@ -11142,9 +11169,36 @@ var PackageReleaseModelResponse = import_library_prisma4.prismaZodGenerated._Pac
11142
11169
  level: true,
11143
11170
  createdAt: true,
11144
11171
  updatedAt: true
11145
- }).merge(z.object({ createdBy: CreatedBy.optional() })).array().optional()
11172
+ }).merge(z.object({ createdBy: CreatedBy.optional() })).array().optional(),
11173
+ schemaServingType: z.nativeEnum(PackageSchemaServingType).optional().describe(
11174
+ "JSON - schema will be served as JSON, STATIC - schema will be served as static file, which was builded and uploaded to library content storage (AWS S3)"
11175
+ ),
11176
+ schemaVersion: z.nativeEnum(PackageSchemaVersion).optional().describe(
11177
+ "SINGLE - only latest version, MULTI - multiple versions will be able for package"
11178
+ )
11146
11179
  })
11147
- );
11180
+ ).transform((data) => {
11181
+ const { schemaType, type } = data;
11182
+ switch (true) {
11183
+ case (schemaType === import_library_prisma4.PackageSchemaTypeEnum.LEGACY_MULTI && type === import_library_prisma4.PackageTypeEnum.STEP):
11184
+ data.schemaServingType = "JSON" /* JSON */;
11185
+ data.schemaVersion = "MULTI" /* MULTI */;
11186
+ break;
11187
+ case (schemaType === import_library_prisma4.PackageSchemaTypeEnum.LEGACY && type === import_library_prisma4.PackageTypeEnum.STEP):
11188
+ data.schemaServingType = "JSON" /* JSON */;
11189
+ data.schemaVersion = "SINGLE" /* SINGLE */;
11190
+ break;
11191
+ case (schemaType === import_library_prisma4.PackageSchemaTypeEnum.EXTERNAL && type === import_library_prisma4.PackageTypeEnum.STEP):
11192
+ case (schemaType === import_library_prisma4.PackageSchemaTypeEnum.EXTERNAL && type === import_library_prisma4.PackageTypeEnum.STEP_INPUT):
11193
+ data.schemaServingType = "STATIC" /* STATIC */;
11194
+ data.schemaVersion = "MULTI" /* MULTI */;
11195
+ break;
11196
+ default:
11197
+ data.schemaServingType = "STATIC" /* STATIC */;
11198
+ data.schemaVersion = "MULTI" /* MULTI */;
11199
+ }
11200
+ return data;
11201
+ });
11148
11202
  var AddPackageResponse = z.object({
11149
11203
  packageRelease: PackageReleaseModelResponse,
11150
11204
  package: PackageModelResponse,
@@ -11174,11 +11228,16 @@ var GetPackageResponse = PackageModelResponse.merge(
11174
11228
  releases: PackageReleaseModelResponse.array()
11175
11229
  })
11176
11230
  );
11177
- var GetPackageReleaseResponse = PackageReleaseModelResponse.merge(
11231
+ var GetPackageReleaseResponse = z.intersection(
11232
+ PackageReleaseModelResponse,
11178
11233
  z.object({
11179
11234
  baseUrl: z.string()
11180
11235
  })
11181
11236
  );
11237
+ var GetPackageArchiveSignedUrl = z.object({
11238
+ key: z.string(),
11239
+ url: z.string()
11240
+ });
11182
11241
 
11183
11242
  // src/Packages/params.ts
11184
11243
  var import_library_prisma5 = __toESM(require_dist());
@@ -11225,9 +11284,6 @@ var GetPackagesParamsFilter = z.object({
11225
11284
  id: InAndNotInFunc({
11226
11285
  type: z.string().trim().toLowerCase()
11227
11286
  }).optional(),
11228
- servingType: InAndNotInFunc({
11229
- type: z.string().trim().toUpperCase()
11230
- }).optional(),
11231
11287
  statusDetailsSystem: z.object({
11232
11288
  status: InAndNotInFunc({
11233
11289
  type: z.nativeEnum(import_library_prisma5.PackageStatusDetailsStatusEnum),
@@ -11259,10 +11315,16 @@ var GetPackagesParamsFilter = z.object({
11259
11315
  })
11260
11316
  }).optional().default({})
11261
11317
  });
11318
+ var GetPackagesParamsOrderByEnum = /* @__PURE__ */ ((GetPackagesParamsOrderByEnum2) => {
11319
+ GetPackagesParamsOrderByEnum2["label"] = "label";
11320
+ GetPackagesParamsOrderByEnum2["updatedAt"] = "updatedAt";
11321
+ GetPackagesParamsOrderByEnum2["createdAt"] = "createdAt";
11322
+ return GetPackagesParamsOrderByEnum2;
11323
+ })(GetPackagesParamsOrderByEnum || {});
11262
11324
  var GetPackagesParams = PaginationParamsFunc({
11263
- orderByEnum: ["label", "updatedAt", "createdAt", "versionInt"],
11264
- orderByDefault: "label",
11265
- orderDefault: "asc"
11325
+ orderByEnum: GetPackagesParamsOrderByEnum,
11326
+ orderByDefault: "label" /* label */,
11327
+ orderDefault: import_library_prisma5.Prisma.SortOrder.asc
11266
11328
  }).merge(
11267
11329
  z.object({
11268
11330
  filter: GetPackagesParamsFilter.optional().default({}),
@@ -11283,6 +11345,12 @@ var DeletePackageParams = z.object({
11283
11345
  schemaType: true
11284
11346
  })
11285
11347
  });
11348
+ var PackageDependencyDeleteParams = z.intersection(
11349
+ UniversalPackageParams.pick({ id: true, revisionId: true, type: true }),
11350
+ z.object({
11351
+ dependencyId: z.string()
11352
+ })
11353
+ );
11286
11354
  /*! Bundled license information:
11287
11355
 
11288
11356
  @prisma/client/runtime/index-browser.js: