@or-sdk/library-types-v2 6.0.9 → 6.0.11
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 +109 -75
- package/dist/cjs/index.js.map +4 -4
- package/dist/esm/index.js +113 -75
- package/dist/esm/index.js.map +4 -4
- package/dist/types/List.d.ts +9 -4
- package/dist/types/Packages/params.d.ts +42 -3
- package/dist/types/Packages/response.d.ts +10 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.public.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @or-sdk/library-types
|
|
2
2
|
|
|
3
|
+
## 6.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 520fa49e: add PackageTypeEnum, PackageSchemaTypeEnum, PackageStatusDetailsStatusEnum, PackageStatusDetailsLevelEnum
|
|
8
|
+
|
|
9
|
+
## 6.0.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 8645c036: update types for v2 sdk
|
|
14
|
+
|
|
3
15
|
## 6.0.9
|
|
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
|
|
1162
|
-
exports.Prisma =
|
|
1161
|
+
var Prisma3 = {};
|
|
1162
|
+
exports.Prisma = Prisma3;
|
|
1163
1163
|
exports.$Enums = {};
|
|
1164
|
-
|
|
1164
|
+
Prisma3.prismaVersion = {
|
|
1165
1165
|
client: "5.4.2",
|
|
1166
1166
|
engine: "ac9d7041ed77bcc8a8dbd2ab6616b39013829574"
|
|
1167
1167
|
};
|
|
1168
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1205
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1230
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
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:
|
|
1392
|
-
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:
|
|
1423
|
-
JsonNull:
|
|
1424
|
-
AnyNull:
|
|
1422
|
+
DbNull: Prisma3.DbNull,
|
|
1423
|
+
JsonNull: Prisma3.JsonNull,
|
|
1424
|
+
AnyNull: Prisma3.AnyNull
|
|
1425
1425
|
};
|
|
1426
1426
|
exports.Prisma.PackageReleaseOrderByRelevanceFieldEnum = {
|
|
1427
1427
|
revisionId: "revisionId",
|
|
@@ -1556,7 +1556,7 @@ If this is unexpected, please open an issue: https://github.com/prisma/prisma/is
|
|
|
1556
1556
|
}
|
|
1557
1557
|
};
|
|
1558
1558
|
exports.PrismaClient = PrismaClient;
|
|
1559
|
-
Object.assign(exports,
|
|
1559
|
+
Object.assign(exports, Prisma3);
|
|
1560
1560
|
}
|
|
1561
1561
|
});
|
|
1562
1562
|
|
|
@@ -5818,48 +5818,48 @@ var require_enums = __commonJS({
|
|
|
5818
5818
|
MigrationStatus2["SUCCESS"] = "SUCCESS";
|
|
5819
5819
|
MigrationStatus2["FAILURE"] = "FAILURE";
|
|
5820
5820
|
})(MigrationStatus || (exports.MigrationStatus = MigrationStatus = {}));
|
|
5821
|
-
var
|
|
5822
|
-
(function(
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
})(
|
|
5837
|
-
var
|
|
5838
|
-
(function(
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
})(
|
|
5846
|
-
var
|
|
5847
|
-
(function(
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
})(
|
|
5857
|
-
var
|
|
5858
|
-
(function(
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
})(
|
|
5821
|
+
var PackageTypeEnum5;
|
|
5822
|
+
(function(PackageTypeEnum6) {
|
|
5823
|
+
PackageTypeEnum6["BOT_TEMPLATE"] = "BOT_TEMPLATE";
|
|
5824
|
+
PackageTypeEnum6["CONTENT"] = "CONTENT";
|
|
5825
|
+
PackageTypeEnum6["CONTENT_INPUT"] = "CONTENT_INPUT";
|
|
5826
|
+
PackageTypeEnum6["FLOW_TEMPLATE"] = "FLOW_TEMPLATE";
|
|
5827
|
+
PackageTypeEnum6["NPM_UNPACKED"] = "NPM_UNPACKED";
|
|
5828
|
+
PackageTypeEnum6["RWC_INPUT"] = "RWC_INPUT";
|
|
5829
|
+
PackageTypeEnum6["S3_BUCKET"] = "S3_BUCKET";
|
|
5830
|
+
PackageTypeEnum6["STEP"] = "STEP";
|
|
5831
|
+
PackageTypeEnum6["STEP_INPUT"] = "STEP_INPUT";
|
|
5832
|
+
PackageTypeEnum6["STEP_TEMPLATE"] = "STEP_TEMPLATE";
|
|
5833
|
+
PackageTypeEnum6["TEST_ONLY"] = "TEST_ONLY";
|
|
5834
|
+
PackageTypeEnum6["TICKET_INPUT"] = "TICKET_INPUT";
|
|
5835
|
+
PackageTypeEnum6["UNKNOWN"] = "UNKNOWN";
|
|
5836
|
+
})(PackageTypeEnum5 || (exports.PackageTypeEnum = PackageTypeEnum5 = {}));
|
|
5837
|
+
var PackageSchemaTypeEnum4;
|
|
5838
|
+
(function(PackageSchemaTypeEnum5) {
|
|
5839
|
+
PackageSchemaTypeEnum5["LEGACY"] = "LEGACY";
|
|
5840
|
+
PackageSchemaTypeEnum5["LEGACY_MULTI"] = "LEGACY_MULTI";
|
|
5841
|
+
PackageSchemaTypeEnum5["EXTERNAL"] = "EXTERNAL";
|
|
5842
|
+
PackageSchemaTypeEnum5["VUE2_V1"] = "VUE2_V1";
|
|
5843
|
+
PackageSchemaTypeEnum5["VUE3_V1"] = "VUE3_V1";
|
|
5844
|
+
PackageSchemaTypeEnum5["UNKNOWN"] = "UNKNOWN";
|
|
5845
|
+
})(PackageSchemaTypeEnum4 || (exports.PackageSchemaTypeEnum = PackageSchemaTypeEnum4 = {}));
|
|
5846
|
+
var PackageStatusDetailsStatusEnum3;
|
|
5847
|
+
(function(PackageStatusDetailsStatusEnum4) {
|
|
5848
|
+
PackageStatusDetailsStatusEnum4["TEST_ONLY"] = "TEST_ONLY";
|
|
5849
|
+
PackageStatusDetailsStatusEnum4["PENDING"] = "PENDING";
|
|
5850
|
+
PackageStatusDetailsStatusEnum4["EXTRACTING"] = "EXTRACTING";
|
|
5851
|
+
PackageStatusDetailsStatusEnum4["UPLOADED"] = "UPLOADED";
|
|
5852
|
+
PackageStatusDetailsStatusEnum4["BETA"] = "BETA";
|
|
5853
|
+
PackageStatusDetailsStatusEnum4["RELEASED"] = "RELEASED";
|
|
5854
|
+
PackageStatusDetailsStatusEnum4["ACCOUNT_BETA"] = "ACCOUNT_BETA";
|
|
5855
|
+
PackageStatusDetailsStatusEnum4["DEPRECATED"] = "DEPRECATED";
|
|
5856
|
+
})(PackageStatusDetailsStatusEnum3 || (exports.PackageStatusDetailsStatusEnum = PackageStatusDetailsStatusEnum3 = {}));
|
|
5857
|
+
var PackageStatusDetailsLevelEnum3;
|
|
5858
|
+
(function(PackageStatusDetailsLevelEnum4) {
|
|
5859
|
+
PackageStatusDetailsLevelEnum4["USER"] = "USER";
|
|
5860
|
+
PackageStatusDetailsLevelEnum4["ACCOUNT"] = "ACCOUNT";
|
|
5861
|
+
PackageStatusDetailsLevelEnum4["PDE"] = "PDE";
|
|
5862
|
+
})(PackageStatusDetailsLevelEnum3 || (exports.PackageStatusDetailsLevelEnum = PackageStatusDetailsLevelEnum3 = {}));
|
|
5863
5863
|
}
|
|
5864
5864
|
});
|
|
5865
5865
|
|
|
@@ -7269,17 +7269,25 @@ __export(src_exports, {
|
|
|
7269
7269
|
AddPackageResponse: () => AddPackageResponse,
|
|
7270
7270
|
CreatedBy: () => CreatedBy,
|
|
7271
7271
|
DeletePackageParams: () => DeletePackageParams,
|
|
7272
|
+
GetPackageArchiveSignedUrl: () => GetPackageArchiveSignedUrl,
|
|
7272
7273
|
GetPackageParams: () => GetPackageParams,
|
|
7273
7274
|
GetPackageReleaseResponse: () => GetPackageReleaseResponse,
|
|
7274
7275
|
GetPackageResponse: () => GetPackageResponse,
|
|
7275
7276
|
GetPackagesListResponse: () => GetPackagesListResponse,
|
|
7276
7277
|
GetPackagesParams: () => GetPackagesParams,
|
|
7277
7278
|
GetPackagesParamsFilter: () => GetPackagesParamsFilter,
|
|
7279
|
+
GetPackagesParamsOrderByEnum: () => GetPackagesParamsOrderByEnum,
|
|
7278
7280
|
InAndNotInFunc: () => InAndNotInFunc,
|
|
7279
7281
|
ListView: () => ListView,
|
|
7282
|
+
OrderByEnum: () => OrderByEnum,
|
|
7283
|
+
PackageDependencyDeleteParams: () => PackageDependencyDeleteParams,
|
|
7280
7284
|
PackageMeta: () => PackageMeta,
|
|
7281
7285
|
PackageSchemaServingType: () => PackageSchemaServingType,
|
|
7286
|
+
PackageSchemaTypeEnum: () => import_library_prisma6.PackageSchemaTypeEnum,
|
|
7282
7287
|
PackageSchemaVersion: () => PackageSchemaVersion,
|
|
7288
|
+
PackageStatusDetailsLevelEnum: () => import_library_prisma6.PackageStatusDetailsLevelEnum,
|
|
7289
|
+
PackageStatusDetailsStatusEnum: () => import_library_prisma6.PackageStatusDetailsStatusEnum,
|
|
7290
|
+
PackageTypeEnum: () => import_library_prisma6.PackageTypeEnum,
|
|
7283
7291
|
PaginationParamsFunc: () => PaginationParamsFunc,
|
|
7284
7292
|
UniversalPackageParams: () => UniversalPackageParams,
|
|
7285
7293
|
UpdatePackageByRevisionBody: () => UpdatePackageByRevisionBody
|
|
@@ -11072,7 +11080,8 @@ var UpdatePackageByRevisionBody = AddPackageBody.pick({
|
|
|
11072
11080
|
meta: true,
|
|
11073
11081
|
label: true,
|
|
11074
11082
|
description: true,
|
|
11075
|
-
releaseNotesMarkdown: true
|
|
11083
|
+
releaseNotesMarkdown: true,
|
|
11084
|
+
categories: true
|
|
11076
11085
|
}).partial();
|
|
11077
11086
|
var AddPackageDependenciesBody = z.object({
|
|
11078
11087
|
type: z.nativeEnum(import_library_prisma.PackageTypeEnum),
|
|
@@ -11096,12 +11105,18 @@ var ListView = z.object({
|
|
|
11096
11105
|
filter: z.any().optional(),
|
|
11097
11106
|
scope: z.any().optional()
|
|
11098
11107
|
});
|
|
11108
|
+
var OrderByEnum = /* @__PURE__ */ ((OrderByEnum2) => {
|
|
11109
|
+
OrderByEnum2["createdAt"] = "createdAt";
|
|
11110
|
+
OrderByEnum2["updatedAt"] = "updatedAt";
|
|
11111
|
+
OrderByEnum2["label"] = "label";
|
|
11112
|
+
return OrderByEnum2;
|
|
11113
|
+
})(OrderByEnum || {});
|
|
11099
11114
|
var PaginationParamsFunc = ({
|
|
11100
|
-
orderByEnum =
|
|
11115
|
+
orderByEnum = OrderByEnum,
|
|
11101
11116
|
orderByDefault,
|
|
11102
11117
|
orderDefault = import_library_prisma2.Prisma.SortOrder.desc
|
|
11103
11118
|
}) => z.object({
|
|
11104
|
-
orderBy: z.
|
|
11119
|
+
orderBy: z.nativeEnum(orderByEnum).default(orderByDefault || orderByEnum[0]),
|
|
11105
11120
|
order: z.nativeEnum(import_library_prisma2.Prisma.SortOrder).default(orderDefault),
|
|
11106
11121
|
skip: z.any().transform((n) => parseInt(n, 10)).default(0),
|
|
11107
11122
|
take: z.any().transform((n) => parseInt(n, 10)).default(10)
|
|
@@ -11223,6 +11238,10 @@ var GetPackageReleaseResponse = z.intersection(
|
|
|
11223
11238
|
baseUrl: z.string()
|
|
11224
11239
|
})
|
|
11225
11240
|
);
|
|
11241
|
+
var GetPackageArchiveSignedUrl = z.object({
|
|
11242
|
+
key: z.string(),
|
|
11243
|
+
url: z.string()
|
|
11244
|
+
});
|
|
11226
11245
|
|
|
11227
11246
|
// src/Packages/params.ts
|
|
11228
11247
|
var import_library_prisma5 = __toESM(require_dist());
|
|
@@ -11300,10 +11319,16 @@ var GetPackagesParamsFilter = z.object({
|
|
|
11300
11319
|
})
|
|
11301
11320
|
}).optional().default({})
|
|
11302
11321
|
});
|
|
11322
|
+
var GetPackagesParamsOrderByEnum = /* @__PURE__ */ ((GetPackagesParamsOrderByEnum2) => {
|
|
11323
|
+
GetPackagesParamsOrderByEnum2["label"] = "label";
|
|
11324
|
+
GetPackagesParamsOrderByEnum2["updatedAt"] = "updatedAt";
|
|
11325
|
+
GetPackagesParamsOrderByEnum2["createdAt"] = "createdAt";
|
|
11326
|
+
return GetPackagesParamsOrderByEnum2;
|
|
11327
|
+
})(GetPackagesParamsOrderByEnum || {});
|
|
11303
11328
|
var GetPackagesParams = PaginationParamsFunc({
|
|
11304
|
-
orderByEnum:
|
|
11305
|
-
orderByDefault: "label"
|
|
11306
|
-
orderDefault:
|
|
11329
|
+
orderByEnum: GetPackagesParamsOrderByEnum,
|
|
11330
|
+
orderByDefault: "label" /* label */,
|
|
11331
|
+
orderDefault: import_library_prisma5.Prisma.SortOrder.asc
|
|
11307
11332
|
}).merge(
|
|
11308
11333
|
z.object({
|
|
11309
11334
|
filter: GetPackagesParamsFilter.optional().default({}),
|
|
@@ -11324,6 +11349,15 @@ var DeletePackageParams = z.object({
|
|
|
11324
11349
|
schemaType: true
|
|
11325
11350
|
})
|
|
11326
11351
|
});
|
|
11352
|
+
var PackageDependencyDeleteParams = z.intersection(
|
|
11353
|
+
UniversalPackageParams.pick({ id: true, revisionId: true, type: true }),
|
|
11354
|
+
z.object({
|
|
11355
|
+
dependencyId: z.string()
|
|
11356
|
+
})
|
|
11357
|
+
);
|
|
11358
|
+
|
|
11359
|
+
// src/index.public.ts
|
|
11360
|
+
var import_library_prisma6 = __toESM(require_dist());
|
|
11327
11361
|
/*! Bundled license information:
|
|
11328
11362
|
|
|
11329
11363
|
@prisma/client/runtime/index-browser.js:
|