@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 +12 -0
- package/dist/cjs/index.js +140 -72
- package/dist/cjs/index.js.map +3 -3
- package/dist/esm/index.js +140 -72
- package/dist/esm/index.js.map +3 -3
- package/dist/types/List.d.ts +9 -4
- package/dist/types/Packages/params.d.ts +75 -110
- package/dist/types/Packages/response.d.ts +391 -38
- package/dist/types/index.d.ts +3 -0
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -1153,91 +1153,91 @@ var require_index_browser2 = __commonJS({
|
|
|
1153
1153
|
Public: Public2,
|
|
1154
1154
|
detectRuntime: detectRuntime2
|
|
1155
1155
|
} = require_index_browser();
|
|
1156
|
-
var
|
|
1157
|
-
exports.Prisma =
|
|
1156
|
+
var Prisma3 = {};
|
|
1157
|
+
exports.Prisma = Prisma3;
|
|
1158
1158
|
exports.$Enums = {};
|
|
1159
|
-
|
|
1159
|
+
Prisma3.prismaVersion = {
|
|
1160
1160
|
client: "5.4.2",
|
|
1161
1161
|
engine: "ac9d7041ed77bcc8a8dbd2ab6616b39013829574"
|
|
1162
1162
|
};
|
|
1163
|
-
|
|
1163
|
+
Prisma3.PrismaClientKnownRequestError = () => {
|
|
1164
1164
|
throw new Error(
|
|
1165
1165
|
`PrismaClientKnownRequestError is unable to be run ${runtimeDescription}.
|
|
1166
1166
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1167
1167
|
);
|
|
1168
1168
|
};
|
|
1169
|
-
|
|
1169
|
+
Prisma3.PrismaClientUnknownRequestError = () => {
|
|
1170
1170
|
throw new Error(
|
|
1171
1171
|
`PrismaClientUnknownRequestError is unable to be run ${runtimeDescription}.
|
|
1172
1172
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1173
1173
|
);
|
|
1174
1174
|
};
|
|
1175
|
-
|
|
1175
|
+
Prisma3.PrismaClientRustPanicError = () => {
|
|
1176
1176
|
throw new Error(
|
|
1177
1177
|
`PrismaClientRustPanicError is unable to be run ${runtimeDescription}.
|
|
1178
1178
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1179
1179
|
);
|
|
1180
1180
|
};
|
|
1181
|
-
|
|
1181
|
+
Prisma3.PrismaClientInitializationError = () => {
|
|
1182
1182
|
throw new Error(
|
|
1183
1183
|
`PrismaClientInitializationError is unable to be run ${runtimeDescription}.
|
|
1184
1184
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1185
1185
|
);
|
|
1186
1186
|
};
|
|
1187
|
-
|
|
1187
|
+
Prisma3.PrismaClientValidationError = () => {
|
|
1188
1188
|
throw new Error(
|
|
1189
1189
|
`PrismaClientValidationError is unable to be run ${runtimeDescription}.
|
|
1190
1190
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1191
1191
|
);
|
|
1192
1192
|
};
|
|
1193
|
-
|
|
1193
|
+
Prisma3.NotFoundError = () => {
|
|
1194
1194
|
throw new Error(
|
|
1195
1195
|
`NotFoundError is unable to be run ${runtimeDescription}.
|
|
1196
1196
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1197
1197
|
);
|
|
1198
1198
|
};
|
|
1199
|
-
|
|
1200
|
-
|
|
1199
|
+
Prisma3.Decimal = Decimal2;
|
|
1200
|
+
Prisma3.sql = () => {
|
|
1201
1201
|
throw new Error(
|
|
1202
1202
|
`sqltag is unable to be run ${runtimeDescription}.
|
|
1203
1203
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1204
1204
|
);
|
|
1205
1205
|
};
|
|
1206
|
-
|
|
1206
|
+
Prisma3.empty = () => {
|
|
1207
1207
|
throw new Error(
|
|
1208
1208
|
`empty is unable to be run ${runtimeDescription}.
|
|
1209
1209
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1210
1210
|
);
|
|
1211
1211
|
};
|
|
1212
|
-
|
|
1212
|
+
Prisma3.join = () => {
|
|
1213
1213
|
throw new Error(
|
|
1214
1214
|
`join is unable to be run ${runtimeDescription}.
|
|
1215
1215
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1216
1216
|
);
|
|
1217
1217
|
};
|
|
1218
|
-
|
|
1218
|
+
Prisma3.raw = () => {
|
|
1219
1219
|
throw new Error(
|
|
1220
1220
|
`raw is unable to be run ${runtimeDescription}.
|
|
1221
1221
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1222
1222
|
);
|
|
1223
1223
|
};
|
|
1224
|
-
|
|
1225
|
-
|
|
1224
|
+
Prisma3.validator = Public2.validator;
|
|
1225
|
+
Prisma3.getExtensionContext = () => {
|
|
1226
1226
|
throw new Error(
|
|
1227
1227
|
`Extensions.getExtensionContext is unable to be run ${runtimeDescription}.
|
|
1228
1228
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1229
1229
|
);
|
|
1230
1230
|
};
|
|
1231
|
-
|
|
1231
|
+
Prisma3.defineExtension = () => {
|
|
1232
1232
|
throw new Error(
|
|
1233
1233
|
`Extensions.defineExtension is unable to be run ${runtimeDescription}.
|
|
1234
1234
|
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`
|
|
1235
1235
|
);
|
|
1236
1236
|
};
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1237
|
+
Prisma3.DbNull = objectEnumValues2.instances.DbNull;
|
|
1238
|
+
Prisma3.JsonNull = objectEnumValues2.instances.JsonNull;
|
|
1239
|
+
Prisma3.AnyNull = objectEnumValues2.instances.AnyNull;
|
|
1240
|
+
Prisma3.NullTypes = {
|
|
1241
1241
|
DbNull: objectEnumValues2.classes.DbNull,
|
|
1242
1242
|
JsonNull: objectEnumValues2.classes.JsonNull,
|
|
1243
1243
|
AnyNull: objectEnumValues2.classes.AnyNull
|
|
@@ -1383,8 +1383,8 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1383
1383
|
desc: "desc"
|
|
1384
1384
|
};
|
|
1385
1385
|
exports.Prisma.NullableJsonNullValueInput = {
|
|
1386
|
-
DbNull:
|
|
1387
|
-
JsonNull:
|
|
1386
|
+
DbNull: Prisma3.DbNull,
|
|
1387
|
+
JsonNull: Prisma3.JsonNull
|
|
1388
1388
|
};
|
|
1389
1389
|
exports.Prisma.QueryMode = {
|
|
1390
1390
|
default: "default",
|
|
@@ -1414,9 +1414,9 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1414
1414
|
id: "id"
|
|
1415
1415
|
};
|
|
1416
1416
|
exports.Prisma.JsonNullValueFilter = {
|
|
1417
|
-
DbNull:
|
|
1418
|
-
JsonNull:
|
|
1419
|
-
AnyNull:
|
|
1417
|
+
DbNull: Prisma3.DbNull,
|
|
1418
|
+
JsonNull: Prisma3.JsonNull,
|
|
1419
|
+
AnyNull: Prisma3.AnyNull
|
|
1420
1420
|
};
|
|
1421
1421
|
exports.Prisma.PackageReleaseOrderByRelevanceFieldEnum = {
|
|
1422
1422
|
revisionId: "revisionId",
|
|
@@ -1473,23 +1473,26 @@ In case this error is unexpected for you, please report it in https://github.com
|
|
|
1473
1473
|
FAILURE: "FAILURE"
|
|
1474
1474
|
};
|
|
1475
1475
|
exports.PackageTypeEnum = exports.$Enums.PackageTypeEnum = {
|
|
1476
|
-
TEST_ONLY: "TEST_ONLY",
|
|
1477
|
-
UNKNOWN: "UNKNOWN",
|
|
1478
|
-
STEP: "STEP",
|
|
1479
|
-
STEP_INPUT: "STEP_INPUT",
|
|
1480
|
-
STEP_TEMPLATE: "STEP_TEMPLATE",
|
|
1481
|
-
FLOW_TEMPLATE: "FLOW_TEMPLATE",
|
|
1482
1476
|
BOT_TEMPLATE: "BOT_TEMPLATE",
|
|
1483
|
-
TICKET_INPUT: "TICKET_INPUT",
|
|
1484
|
-
CONTENT_INPUT: "CONTENT_INPUT",
|
|
1485
1477
|
CONTENT: "CONTENT",
|
|
1478
|
+
CONTENT_INPUT: "CONTENT_INPUT",
|
|
1479
|
+
FLOW_TEMPLATE: "FLOW_TEMPLATE",
|
|
1486
1480
|
NPM_UNPACKED: "NPM_UNPACKED",
|
|
1481
|
+
RWC_INPUT: "RWC_INPUT",
|
|
1487
1482
|
S3_BUCKET: "S3_BUCKET",
|
|
1488
|
-
|
|
1483
|
+
STEP: "STEP",
|
|
1484
|
+
STEP_INPUT: "STEP_INPUT",
|
|
1485
|
+
STEP_TEMPLATE: "STEP_TEMPLATE",
|
|
1486
|
+
TEST_ONLY: "TEST_ONLY",
|
|
1487
|
+
TICKET_INPUT: "TICKET_INPUT",
|
|
1488
|
+
UNKNOWN: "UNKNOWN"
|
|
1489
1489
|
};
|
|
1490
1490
|
exports.PackageSchemaTypeEnum = exports.$Enums.PackageSchemaTypeEnum = {
|
|
1491
1491
|
LEGACY: "LEGACY",
|
|
1492
|
+
LEGACY_MULTI: "LEGACY_MULTI",
|
|
1492
1493
|
EXTERNAL: "EXTERNAL",
|
|
1494
|
+
VUE2_V1: "VUE2_V1",
|
|
1495
|
+
VUE3_V1: "VUE3_V1",
|
|
1493
1496
|
UNKNOWN: "UNKNOWN"
|
|
1494
1497
|
};
|
|
1495
1498
|
exports.PackageStatusDetailsStatusEnum = exports.$Enums.PackageStatusDetailsStatusEnum = {
|
|
@@ -1548,7 +1551,7 @@ If this is unexpected, please open an issue: https://github.com/prisma/prisma/is
|
|
|
1548
1551
|
}
|
|
1549
1552
|
};
|
|
1550
1553
|
exports.PrismaClient = PrismaClient;
|
|
1551
|
-
Object.assign(exports,
|
|
1554
|
+
Object.assign(exports, Prisma3);
|
|
1552
1555
|
}
|
|
1553
1556
|
});
|
|
1554
1557
|
|
|
@@ -5810,28 +5813,31 @@ var require_enums = __commonJS({
|
|
|
5810
5813
|
MigrationStatus2["SUCCESS"] = "SUCCESS";
|
|
5811
5814
|
MigrationStatus2["FAILURE"] = "FAILURE";
|
|
5812
5815
|
})(MigrationStatus || (exports.MigrationStatus = MigrationStatus = {}));
|
|
5813
|
-
var
|
|
5814
|
-
(function(
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
})(
|
|
5829
|
-
var
|
|
5830
|
-
(function(
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5816
|
+
var PackageTypeEnum4;
|
|
5817
|
+
(function(PackageTypeEnum5) {
|
|
5818
|
+
PackageTypeEnum5["BOT_TEMPLATE"] = "BOT_TEMPLATE";
|
|
5819
|
+
PackageTypeEnum5["CONTENT"] = "CONTENT";
|
|
5820
|
+
PackageTypeEnum5["CONTENT_INPUT"] = "CONTENT_INPUT";
|
|
5821
|
+
PackageTypeEnum5["FLOW_TEMPLATE"] = "FLOW_TEMPLATE";
|
|
5822
|
+
PackageTypeEnum5["NPM_UNPACKED"] = "NPM_UNPACKED";
|
|
5823
|
+
PackageTypeEnum5["RWC_INPUT"] = "RWC_INPUT";
|
|
5824
|
+
PackageTypeEnum5["S3_BUCKET"] = "S3_BUCKET";
|
|
5825
|
+
PackageTypeEnum5["STEP"] = "STEP";
|
|
5826
|
+
PackageTypeEnum5["STEP_INPUT"] = "STEP_INPUT";
|
|
5827
|
+
PackageTypeEnum5["STEP_TEMPLATE"] = "STEP_TEMPLATE";
|
|
5828
|
+
PackageTypeEnum5["TEST_ONLY"] = "TEST_ONLY";
|
|
5829
|
+
PackageTypeEnum5["TICKET_INPUT"] = "TICKET_INPUT";
|
|
5830
|
+
PackageTypeEnum5["UNKNOWN"] = "UNKNOWN";
|
|
5831
|
+
})(PackageTypeEnum4 || (exports.PackageTypeEnum = PackageTypeEnum4 = {}));
|
|
5832
|
+
var PackageSchemaTypeEnum3;
|
|
5833
|
+
(function(PackageSchemaTypeEnum4) {
|
|
5834
|
+
PackageSchemaTypeEnum4["LEGACY"] = "LEGACY";
|
|
5835
|
+
PackageSchemaTypeEnum4["LEGACY_MULTI"] = "LEGACY_MULTI";
|
|
5836
|
+
PackageSchemaTypeEnum4["EXTERNAL"] = "EXTERNAL";
|
|
5837
|
+
PackageSchemaTypeEnum4["VUE2_V1"] = "VUE2_V1";
|
|
5838
|
+
PackageSchemaTypeEnum4["VUE3_V1"] = "VUE3_V1";
|
|
5839
|
+
PackageSchemaTypeEnum4["UNKNOWN"] = "UNKNOWN";
|
|
5840
|
+
})(PackageSchemaTypeEnum3 || (exports.PackageSchemaTypeEnum = PackageSchemaTypeEnum3 = {}));
|
|
5835
5841
|
var PackageStatusDetailsStatusEnum2;
|
|
5836
5842
|
(function(PackageStatusDetailsStatusEnum3) {
|
|
5837
5843
|
PackageStatusDetailsStatusEnum3["TEST_ONLY"] = "TEST_ONLY";
|
|
@@ -11010,7 +11016,6 @@ var AddPackageBody = import_library_prisma.prismaZodGenerated._PackageModel.pick
|
|
|
11010
11016
|
revisionId: true,
|
|
11011
11017
|
schemaType: true,
|
|
11012
11018
|
type: true,
|
|
11013
|
-
servingType: true,
|
|
11014
11019
|
label: true,
|
|
11015
11020
|
description: true
|
|
11016
11021
|
}).merge(
|
|
@@ -11035,8 +11040,8 @@ var UpdatePackageByRevisionBody = AddPackageBody.pick({
|
|
|
11035
11040
|
meta: true,
|
|
11036
11041
|
label: true,
|
|
11037
11042
|
description: true,
|
|
11038
|
-
|
|
11039
|
-
|
|
11043
|
+
releaseNotesMarkdown: true,
|
|
11044
|
+
categories: true
|
|
11040
11045
|
}).partial();
|
|
11041
11046
|
var AddPackageDependenciesBody = z.object({
|
|
11042
11047
|
type: z.nativeEnum(import_library_prisma.PackageTypeEnum),
|
|
@@ -11060,12 +11065,18 @@ var ListView = z.object({
|
|
|
11060
11065
|
filter: z.any().optional(),
|
|
11061
11066
|
scope: z.any().optional()
|
|
11062
11067
|
});
|
|
11068
|
+
var OrderByEnum = /* @__PURE__ */ ((OrderByEnum2) => {
|
|
11069
|
+
OrderByEnum2["createdAt"] = "createdAt";
|
|
11070
|
+
OrderByEnum2["updatedAt"] = "updatedAt";
|
|
11071
|
+
OrderByEnum2["label"] = "label";
|
|
11072
|
+
return OrderByEnum2;
|
|
11073
|
+
})(OrderByEnum || {});
|
|
11063
11074
|
var PaginationParamsFunc = ({
|
|
11064
|
-
orderByEnum =
|
|
11075
|
+
orderByEnum = OrderByEnum,
|
|
11065
11076
|
orderByDefault,
|
|
11066
11077
|
orderDefault = import_library_prisma2.Prisma.SortOrder.desc
|
|
11067
11078
|
}) => z.object({
|
|
11068
|
-
orderBy: z.
|
|
11079
|
+
orderBy: z.nativeEnum(orderByEnum).default(orderByDefault || orderByEnum[0]),
|
|
11069
11080
|
order: z.nativeEnum(import_library_prisma2.Prisma.SortOrder).default(orderDefault),
|
|
11070
11081
|
skip: z.any().transform((n) => parseInt(n, 10)).default(0),
|
|
11071
11082
|
take: z.any().transform((n) => parseInt(n, 10)).default(10)
|
|
@@ -11079,6 +11090,16 @@ var CreatedBy = import_library_prisma3.prismaZodGenerated._CreatedByModel.pick({
|
|
|
11079
11090
|
}).or(z.any().nullable());
|
|
11080
11091
|
|
|
11081
11092
|
// src/Packages/response.ts
|
|
11093
|
+
var PackageSchemaServingType = /* @__PURE__ */ ((PackageSchemaServingType2) => {
|
|
11094
|
+
PackageSchemaServingType2["JSON"] = "JSON";
|
|
11095
|
+
PackageSchemaServingType2["STATIC"] = "STATIC";
|
|
11096
|
+
return PackageSchemaServingType2;
|
|
11097
|
+
})(PackageSchemaServingType || {});
|
|
11098
|
+
var PackageSchemaVersion = /* @__PURE__ */ ((PackageSchemaVersion2) => {
|
|
11099
|
+
PackageSchemaVersion2["MULTI"] = "MULTI";
|
|
11100
|
+
PackageSchemaVersion2["SINGLE"] = "SINGLE";
|
|
11101
|
+
return PackageSchemaVersion2;
|
|
11102
|
+
})(PackageSchemaVersion || {});
|
|
11082
11103
|
var PackageModelResponse = import_library_prisma4.prismaZodGenerated._PackageModel.omit({
|
|
11083
11104
|
createdById: true,
|
|
11084
11105
|
modifiedById: true,
|
|
@@ -11112,9 +11133,36 @@ var PackageReleaseModelResponse = import_library_prisma4.prismaZodGenerated._Pac
|
|
|
11112
11133
|
level: true,
|
|
11113
11134
|
createdAt: true,
|
|
11114
11135
|
updatedAt: true
|
|
11115
|
-
}).merge(z.object({ createdBy: CreatedBy.optional() })).array().optional()
|
|
11136
|
+
}).merge(z.object({ createdBy: CreatedBy.optional() })).array().optional(),
|
|
11137
|
+
schemaServingType: z.nativeEnum(PackageSchemaServingType).optional().describe(
|
|
11138
|
+
"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)"
|
|
11139
|
+
),
|
|
11140
|
+
schemaVersion: z.nativeEnum(PackageSchemaVersion).optional().describe(
|
|
11141
|
+
"SINGLE - only latest version, MULTI - multiple versions will be able for package"
|
|
11142
|
+
)
|
|
11116
11143
|
})
|
|
11117
|
-
)
|
|
11144
|
+
).transform((data) => {
|
|
11145
|
+
const { schemaType, type } = data;
|
|
11146
|
+
switch (true) {
|
|
11147
|
+
case (schemaType === import_library_prisma4.PackageSchemaTypeEnum.LEGACY_MULTI && type === import_library_prisma4.PackageTypeEnum.STEP):
|
|
11148
|
+
data.schemaServingType = "JSON" /* JSON */;
|
|
11149
|
+
data.schemaVersion = "MULTI" /* MULTI */;
|
|
11150
|
+
break;
|
|
11151
|
+
case (schemaType === import_library_prisma4.PackageSchemaTypeEnum.LEGACY && type === import_library_prisma4.PackageTypeEnum.STEP):
|
|
11152
|
+
data.schemaServingType = "JSON" /* JSON */;
|
|
11153
|
+
data.schemaVersion = "SINGLE" /* SINGLE */;
|
|
11154
|
+
break;
|
|
11155
|
+
case (schemaType === import_library_prisma4.PackageSchemaTypeEnum.EXTERNAL && type === import_library_prisma4.PackageTypeEnum.STEP):
|
|
11156
|
+
case (schemaType === import_library_prisma4.PackageSchemaTypeEnum.EXTERNAL && type === import_library_prisma4.PackageTypeEnum.STEP_INPUT):
|
|
11157
|
+
data.schemaServingType = "STATIC" /* STATIC */;
|
|
11158
|
+
data.schemaVersion = "MULTI" /* MULTI */;
|
|
11159
|
+
break;
|
|
11160
|
+
default:
|
|
11161
|
+
data.schemaServingType = "STATIC" /* STATIC */;
|
|
11162
|
+
data.schemaVersion = "MULTI" /* MULTI */;
|
|
11163
|
+
}
|
|
11164
|
+
return data;
|
|
11165
|
+
});
|
|
11118
11166
|
var AddPackageResponse = z.object({
|
|
11119
11167
|
packageRelease: PackageReleaseModelResponse,
|
|
11120
11168
|
package: PackageModelResponse,
|
|
@@ -11144,11 +11192,16 @@ var GetPackageResponse = PackageModelResponse.merge(
|
|
|
11144
11192
|
releases: PackageReleaseModelResponse.array()
|
|
11145
11193
|
})
|
|
11146
11194
|
);
|
|
11147
|
-
var GetPackageReleaseResponse =
|
|
11195
|
+
var GetPackageReleaseResponse = z.intersection(
|
|
11196
|
+
PackageReleaseModelResponse,
|
|
11148
11197
|
z.object({
|
|
11149
11198
|
baseUrl: z.string()
|
|
11150
11199
|
})
|
|
11151
11200
|
);
|
|
11201
|
+
var GetPackageArchiveSignedUrl = z.object({
|
|
11202
|
+
key: z.string(),
|
|
11203
|
+
url: z.string()
|
|
11204
|
+
});
|
|
11152
11205
|
|
|
11153
11206
|
// src/Packages/params.ts
|
|
11154
11207
|
var import_library_prisma5 = __toESM(require_dist());
|
|
@@ -11195,9 +11248,6 @@ var GetPackagesParamsFilter = z.object({
|
|
|
11195
11248
|
id: InAndNotInFunc({
|
|
11196
11249
|
type: z.string().trim().toLowerCase()
|
|
11197
11250
|
}).optional(),
|
|
11198
|
-
servingType: InAndNotInFunc({
|
|
11199
|
-
type: z.string().trim().toUpperCase()
|
|
11200
|
-
}).optional(),
|
|
11201
11251
|
statusDetailsSystem: z.object({
|
|
11202
11252
|
status: InAndNotInFunc({
|
|
11203
11253
|
type: z.nativeEnum(import_library_prisma5.PackageStatusDetailsStatusEnum),
|
|
@@ -11229,10 +11279,16 @@ var GetPackagesParamsFilter = z.object({
|
|
|
11229
11279
|
})
|
|
11230
11280
|
}).optional().default({})
|
|
11231
11281
|
});
|
|
11282
|
+
var GetPackagesParamsOrderByEnum = /* @__PURE__ */ ((GetPackagesParamsOrderByEnum2) => {
|
|
11283
|
+
GetPackagesParamsOrderByEnum2["label"] = "label";
|
|
11284
|
+
GetPackagesParamsOrderByEnum2["updatedAt"] = "updatedAt";
|
|
11285
|
+
GetPackagesParamsOrderByEnum2["createdAt"] = "createdAt";
|
|
11286
|
+
return GetPackagesParamsOrderByEnum2;
|
|
11287
|
+
})(GetPackagesParamsOrderByEnum || {});
|
|
11232
11288
|
var GetPackagesParams = PaginationParamsFunc({
|
|
11233
|
-
orderByEnum:
|
|
11234
|
-
orderByDefault: "label"
|
|
11235
|
-
orderDefault:
|
|
11289
|
+
orderByEnum: GetPackagesParamsOrderByEnum,
|
|
11290
|
+
orderByDefault: "label" /* label */,
|
|
11291
|
+
orderDefault: import_library_prisma5.Prisma.SortOrder.asc
|
|
11236
11292
|
}).merge(
|
|
11237
11293
|
z.object({
|
|
11238
11294
|
filter: GetPackagesParamsFilter.optional().default({}),
|
|
@@ -11253,6 +11309,12 @@ var DeletePackageParams = z.object({
|
|
|
11253
11309
|
schemaType: true
|
|
11254
11310
|
})
|
|
11255
11311
|
});
|
|
11312
|
+
var PackageDependencyDeleteParams = z.intersection(
|
|
11313
|
+
UniversalPackageParams.pick({ id: true, revisionId: true, type: true }),
|
|
11314
|
+
z.object({
|
|
11315
|
+
dependencyId: z.string()
|
|
11316
|
+
})
|
|
11317
|
+
);
|
|
11256
11318
|
export {
|
|
11257
11319
|
AddPackageBody,
|
|
11258
11320
|
AddPackageDependenciesBody,
|
|
@@ -11261,15 +11323,21 @@ export {
|
|
|
11261
11323
|
AddPackageResponse,
|
|
11262
11324
|
CreatedBy,
|
|
11263
11325
|
DeletePackageParams,
|
|
11326
|
+
GetPackageArchiveSignedUrl,
|
|
11264
11327
|
GetPackageParams,
|
|
11265
11328
|
GetPackageReleaseResponse,
|
|
11266
11329
|
GetPackageResponse,
|
|
11267
11330
|
GetPackagesListResponse,
|
|
11268
11331
|
GetPackagesParams,
|
|
11269
11332
|
GetPackagesParamsFilter,
|
|
11333
|
+
GetPackagesParamsOrderByEnum,
|
|
11270
11334
|
InAndNotInFunc,
|
|
11271
11335
|
ListView,
|
|
11336
|
+
OrderByEnum,
|
|
11337
|
+
PackageDependencyDeleteParams,
|
|
11272
11338
|
PackageMeta,
|
|
11339
|
+
PackageSchemaServingType,
|
|
11340
|
+
PackageSchemaVersion,
|
|
11273
11341
|
PaginationParamsFunc,
|
|
11274
11342
|
UniversalPackageParams,
|
|
11275
11343
|
UpdatePackageByRevisionBody
|