@learncard/types 5.12.1 → 5.12.3
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/dist/lcn.d.ts +59 -0
- package/dist/lcn.d.ts.map +1 -1
- package/dist/types.cjs.development.js +11 -3
- package/dist/types.cjs.development.js.map +2 -2
- package/dist/types.cjs.production.min.js +4 -4
- package/dist/types.cjs.production.min.js.map +3 -3
- package/dist/types.esm.js +11 -3
- package/dist/types.esm.js.map +2 -2
- package/package.json +1 -1
package/dist/types.esm.js
CHANGED
|
@@ -1350,6 +1350,7 @@ var SkillFrameworkValidator = z9.object({
|
|
|
1350
1350
|
description: z9.string().optional(),
|
|
1351
1351
|
image: z9.string().optional(),
|
|
1352
1352
|
sourceURI: z9.string().url().optional(),
|
|
1353
|
+
isPublic: z9.boolean().default(false),
|
|
1353
1354
|
status: SkillFrameworkStatusEnum.default("active"),
|
|
1354
1355
|
createdAt: z9.string().optional(),
|
|
1355
1356
|
updatedAt: z9.string().optional()
|
|
@@ -1388,6 +1389,7 @@ var CreateManagedFrameworkInputValidator = z9.object({
|
|
|
1388
1389
|
description: z9.string().optional(),
|
|
1389
1390
|
image: z9.string().optional(),
|
|
1390
1391
|
sourceURI: z9.string().url().optional(),
|
|
1392
|
+
isPublic: z9.boolean().optional(),
|
|
1391
1393
|
status: SkillFrameworkStatusEnum.optional(),
|
|
1392
1394
|
skills: z9.array(SkillTreeNodeInputValidator).optional(),
|
|
1393
1395
|
boostUris: z9.array(z9.string()).optional()
|
|
@@ -1398,9 +1400,10 @@ var UpdateFrameworkInputValidator = z9.object({
|
|
|
1398
1400
|
description: z9.string().optional(),
|
|
1399
1401
|
image: z9.string().optional(),
|
|
1400
1402
|
sourceURI: z9.string().url().optional(),
|
|
1403
|
+
isPublic: z9.boolean().optional(),
|
|
1401
1404
|
status: SkillFrameworkStatusEnum.optional()
|
|
1402
1405
|
}).refine(
|
|
1403
|
-
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
1406
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.isPublic !== void 0 || data.status !== void 0,
|
|
1404
1407
|
{
|
|
1405
1408
|
message: "At least one field must be provided to update",
|
|
1406
1409
|
path: ["name"]
|
|
@@ -1509,6 +1512,7 @@ var PromotionLevelValidator = z9.enum([
|
|
|
1509
1512
|
"STANDARD",
|
|
1510
1513
|
"DEMOTED"
|
|
1511
1514
|
]);
|
|
1515
|
+
var AgeRatingValidator = z9.enum(["4+", "9+", "12+", "17+"]);
|
|
1512
1516
|
var AppStoreListingValidator = z9.object({
|
|
1513
1517
|
listing_id: z9.string(),
|
|
1514
1518
|
slug: z9.string().optional(),
|
|
@@ -1528,7 +1532,9 @@ var AppStoreListingValidator = z9.object({
|
|
|
1528
1532
|
terms_url: z9.string().optional(),
|
|
1529
1533
|
highlights: z9.array(z9.string()).optional(),
|
|
1530
1534
|
screenshots: z9.array(z9.string()).optional(),
|
|
1531
|
-
hero_background_color: z9.string().optional()
|
|
1535
|
+
hero_background_color: z9.string().optional(),
|
|
1536
|
+
min_age: z9.number().int().min(0).max(18).optional(),
|
|
1537
|
+
age_rating: AgeRatingValidator.optional()
|
|
1532
1538
|
});
|
|
1533
1539
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
1534
1540
|
listing_id: true,
|
|
@@ -1580,7 +1586,8 @@ var CredentialActivitySourceTypeValidator = z9.enum([
|
|
|
1580
1586
|
"claim",
|
|
1581
1587
|
"inbox",
|
|
1582
1588
|
"claimLink",
|
|
1583
|
-
"acceptCredential"
|
|
1589
|
+
"acceptCredential",
|
|
1590
|
+
"appEvent"
|
|
1584
1591
|
]);
|
|
1585
1592
|
var CredentialActivityValidator = z9.object({
|
|
1586
1593
|
id: z9.string(),
|
|
@@ -1629,6 +1636,7 @@ export {
|
|
|
1629
1636
|
AchievementValidator,
|
|
1630
1637
|
AddTagInputValidator,
|
|
1631
1638
|
AddressValidator,
|
|
1639
|
+
AgeRatingValidator,
|
|
1632
1640
|
AlignmentTargetTypeValidator,
|
|
1633
1641
|
AlignmentValidator,
|
|
1634
1642
|
AppBoostValidator,
|