@learncard/react 2.8.54 → 2.8.58
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/cjs/{BoostGenericCard-1b528dd6.js → BoostGenericCard-d1263210.js} +3 -3
- package/dist/cjs/{BoostGenericCard-1b528dd6.js.map → BoostGenericCard-d1263210.js.map} +1 -1
- package/dist/cjs/{BoostSmallCard-f3415f10.js → BoostSmallCard-dd1cbd51.js} +2 -2
- package/dist/cjs/{BoostSmallCard-f3415f10.js.map → BoostSmallCard-dd1cbd51.js.map} +1 -1
- package/dist/cjs/{CertDisplayCardSkillsCount-d5650805.js → CertDisplayCardSkillsCount-3278a389.js} +2 -2
- package/dist/cjs/{CertDisplayCardSkillsCount-d5650805.js.map → CertDisplayCardSkillsCount-3278a389.js.map} +1 -1
- package/dist/cjs/{CertificateDisplayCard-84615efb.js → CertificateDisplayCard-4db351f6.js} +15 -9
- package/dist/cjs/CertificateDisplayCard-4db351f6.js.map +1 -0
- package/dist/cjs/{MeritBadgeDisplayCard-0509fdf9.js → MeritBadgeDisplayCard-98c7abba.js} +14 -8
- package/dist/cjs/MeritBadgeDisplayCard-98c7abba.js.map +1 -0
- package/dist/cjs/{MeritBadgeSkillsCount-11d1a1f1.js → MeritBadgeSkillsCount-8c62d182.js} +2 -2
- package/dist/cjs/{MeritBadgeSkillsCount-11d1a1f1.js.map → MeritBadgeSkillsCount-8c62d182.js.map} +1 -1
- package/dist/cjs/{ThreeDotVertical-e39ac5df.js → ThreeDotVertical-1d221fc8.js} +10 -10
- package/dist/cjs/ThreeDotVertical-1d221fc8.js.map +1 -0
- package/dist/cjs/{VCCard-eca5f8c0.js → VCCard-9a22f195.js} +3 -3
- package/dist/cjs/{VCCard-eca5f8c0.js.map → VCCard-9a22f195.js.map} +1 -1
- package/dist/cjs/{VCDisplayBackFace-bcc73ae7.js → VCDisplayBackFace-8cb54bca.js} +3 -3
- package/dist/cjs/{VCDisplayBackFace-bcc73ae7.js.map → VCDisplayBackFace-8cb54bca.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard-f54d8a34.js → VCDisplayCard-ee6af62e.js} +3 -3
- package/dist/cjs/{VCDisplayCard-f54d8a34.js.map → VCDisplayCard-ee6af62e.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard2-9e48ec39.js → VCDisplayCard2-f714e009.js} +17 -11
- package/dist/cjs/VCDisplayCard2-f714e009.js.map +1 -0
- package/dist/cjs/{VCVerificationPill-add1229a.js → VCVerificationPill-5916fe9d.js} +2 -2
- package/dist/cjs/{VCVerificationPill-add1229a.js.map → VCVerificationPill-5916fe9d.js.map} +1 -1
- package/dist/cjs/{credential.helpers-46ca268a.js → credential.helpers-ab78cefb.js} +2 -2
- package/dist/cjs/{credential.helpers-46ca268a.js.map → credential.helpers-ab78cefb.js.map} +1 -1
- package/dist/cjs/index.js +14 -14
- package/dist/cjs/index13.js +14 -14
- package/dist/cjs/index21.js +4 -4
- package/dist/cjs/index3.js +5 -5
- package/dist/cjs/index36.js +1 -1
- package/dist/cjs/index38.js +10 -10
- package/dist/cjs/index39.js +4 -4
- package/dist/cjs/index4.js +2 -2
- package/dist/cjs/index40.js +5 -5
- package/dist/cjs/index41.js +6 -6
- package/dist/cjs/index42.js +1 -1
- package/dist/cjs/index45.js +2 -2
- package/dist/cjs/index6.js +4 -4
- package/dist/cjs/{types.esm-be352c42.js → types.esm-5908b63f.js} +269 -20
- package/dist/cjs/types.esm-5908b63f.js.map +1 -0
- package/dist/esm/{BoostGenericCard-7524a298.js → BoostGenericCard-1ba03755.js} +3 -3
- package/dist/esm/{BoostGenericCard-7524a298.js.map → BoostGenericCard-1ba03755.js.map} +1 -1
- package/dist/esm/{BoostSmallCard-e0afec44.js → BoostSmallCard-42980ebc.js} +2 -2
- package/dist/esm/{BoostSmallCard-e0afec44.js.map → BoostSmallCard-42980ebc.js.map} +1 -1
- package/dist/esm/{CertDisplayCardSkillsCount-7ddcd120.js → CertDisplayCardSkillsCount-b48d509c.js} +2 -2
- package/dist/esm/{CertDisplayCardSkillsCount-7ddcd120.js.map → CertDisplayCardSkillsCount-b48d509c.js.map} +1 -1
- package/dist/esm/{CertificateDisplayCard-3215eccc.js → CertificateDisplayCard-5fcc4b05.js} +15 -9
- package/dist/esm/CertificateDisplayCard-5fcc4b05.js.map +1 -0
- package/dist/esm/{MeritBadgeDisplayCard-4a34119e.js → MeritBadgeDisplayCard-17973557.js} +14 -8
- package/dist/esm/MeritBadgeDisplayCard-17973557.js.map +1 -0
- package/dist/esm/{MeritBadgeSkillsCount-2b4409a3.js → MeritBadgeSkillsCount-a96a4a93.js} +2 -2
- package/dist/esm/{MeritBadgeSkillsCount-2b4409a3.js.map → MeritBadgeSkillsCount-a96a4a93.js.map} +1 -1
- package/dist/esm/{ThreeDotVertical-e3144ad0.js → ThreeDotVertical-08294477.js} +10 -10
- package/dist/esm/ThreeDotVertical-08294477.js.map +1 -0
- package/dist/esm/{VCCard-8b9e1fe8.js → VCCard-89f3e46d.js} +3 -3
- package/dist/esm/{VCCard-8b9e1fe8.js.map → VCCard-89f3e46d.js.map} +1 -1
- package/dist/esm/{VCDisplayBackFace-60ca7b99.js → VCDisplayBackFace-f8834916.js} +3 -3
- package/dist/esm/{VCDisplayBackFace-60ca7b99.js.map → VCDisplayBackFace-f8834916.js.map} +1 -1
- package/dist/esm/{VCDisplayCard-43f2fa7d.js → VCDisplayCard-8f1de79c.js} +3 -3
- package/dist/esm/{VCDisplayCard-43f2fa7d.js.map → VCDisplayCard-8f1de79c.js.map} +1 -1
- package/dist/esm/{VCDisplayCard2-1d4957d9.js → VCDisplayCard2-7849ba2b.js} +17 -11
- package/dist/esm/VCDisplayCard2-7849ba2b.js.map +1 -0
- package/dist/esm/{VCVerificationPill-52974d83.js → VCVerificationPill-d8305814.js} +2 -2
- package/dist/esm/{VCVerificationPill-52974d83.js.map → VCVerificationPill-d8305814.js.map} +1 -1
- package/dist/esm/{credential.helpers-251e3960.js → credential.helpers-f0555631.js} +2 -2
- package/dist/esm/{credential.helpers-251e3960.js.map → credential.helpers-f0555631.js.map} +1 -1
- package/dist/esm/index.js +14 -14
- package/dist/esm/index13.js +14 -14
- package/dist/esm/index21.js +4 -4
- package/dist/esm/index3.js +5 -5
- package/dist/esm/index36.js +1 -1
- package/dist/esm/index38.js +10 -10
- package/dist/esm/index39.js +4 -4
- package/dist/esm/index4.js +2 -2
- package/dist/esm/index40.js +5 -5
- package/dist/esm/index41.js +6 -6
- package/dist/esm/index42.js +1 -1
- package/dist/esm/index45.js +2 -2
- package/dist/esm/index6.js +4 -4
- package/dist/esm/{types.esm-923eb477.js → types.esm-d6b9a11e.js} +269 -20
- package/dist/esm/types.esm-d6b9a11e.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/package.json +3 -3
- package/dist/cjs/CertificateDisplayCard-84615efb.js.map +0 -1
- package/dist/cjs/MeritBadgeDisplayCard-0509fdf9.js.map +0 -1
- package/dist/cjs/ThreeDotVertical-e39ac5df.js.map +0 -1
- package/dist/cjs/VCDisplayCard2-9e48ec39.js.map +0 -1
- package/dist/cjs/types.esm-be352c42.js.map +0 -1
- package/dist/esm/CertificateDisplayCard-3215eccc.js.map +0 -1
- package/dist/esm/MeritBadgeDisplayCard-4a34119e.js.map +0 -1
- package/dist/esm/ThreeDotVertical-e3144ad0.js.map +0 -1
- package/dist/esm/VCDisplayCard2-1d4957d9.js.map +0 -1
- package/dist/esm/types.esm-923eb477.js.map +0 -1
|
@@ -4779,7 +4779,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
|
|
|
4779
4779
|
}
|
|
4780
4780
|
})
|
|
4781
4781
|
);
|
|
4782
|
-
var
|
|
4782
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
4783
|
+
var StringQuery = z.union([
|
|
4784
|
+
BaseStringQuery,
|
|
4785
|
+
z.object({
|
|
4786
|
+
$or: BaseStringQuery.array()
|
|
4787
|
+
})
|
|
4788
|
+
]);
|
|
4789
|
+
extendZodWithOpenApi(z);
|
|
4783
4790
|
var LCNProfileDisplayValidator = z.object({
|
|
4784
4791
|
backgroundColor: z.string().optional(),
|
|
4785
4792
|
backgroundImage: z.string().optional(),
|
|
@@ -4864,7 +4871,8 @@ z.object({
|
|
|
4864
4871
|
to: z.string(),
|
|
4865
4872
|
from: z.string(),
|
|
4866
4873
|
sent: z.string().datetime(),
|
|
4867
|
-
received: z.string().datetime().optional()
|
|
4874
|
+
received: z.string().datetime().optional(),
|
|
4875
|
+
metadata: z.record(z.unknown()).optional()
|
|
4868
4876
|
});
|
|
4869
4877
|
var BoostPermissionsValidator = z.object({
|
|
4870
4878
|
role: z.string(),
|
|
@@ -4937,7 +4945,7 @@ var BoostValidator = z.object({
|
|
|
4937
4945
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
4938
4946
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
4939
4947
|
});
|
|
4940
|
-
z.object({
|
|
4948
|
+
var BaseBoostQueryValidator = z.object({
|
|
4941
4949
|
uri: StringQuery,
|
|
4942
4950
|
name: StringQuery,
|
|
4943
4951
|
type: StringQuery,
|
|
@@ -4946,6 +4954,12 @@ z.object({
|
|
|
4946
4954
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
4947
4955
|
autoConnectRecipients: z.boolean()
|
|
4948
4956
|
}).partial();
|
|
4957
|
+
z.union([
|
|
4958
|
+
z.object({
|
|
4959
|
+
$or: BaseBoostQueryValidator.array()
|
|
4960
|
+
}),
|
|
4961
|
+
BaseBoostQueryValidator
|
|
4962
|
+
]);
|
|
4949
4963
|
PaginationResponseValidator.extend({
|
|
4950
4964
|
records: BoostValidator.array()
|
|
4951
4965
|
});
|
|
@@ -5001,11 +5015,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
|
|
|
5001
5015
|
var ConsentFlowContractValidator = z.object({
|
|
5002
5016
|
read: z.object({
|
|
5003
5017
|
anonymize: z.boolean().optional(),
|
|
5004
|
-
credentials: z.object({
|
|
5018
|
+
credentials: z.object({
|
|
5019
|
+
categories: z.record(
|
|
5020
|
+
z.object({
|
|
5021
|
+
required: z.boolean(),
|
|
5022
|
+
defaultEnabled: z.boolean().optional()
|
|
5023
|
+
})
|
|
5024
|
+
).default({})
|
|
5025
|
+
}).default({}),
|
|
5005
5026
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
5006
5027
|
}).default({}),
|
|
5007
5028
|
write: z.object({
|
|
5008
|
-
credentials: z.object({
|
|
5029
|
+
credentials: z.object({
|
|
5030
|
+
categories: z.record(
|
|
5031
|
+
z.object({
|
|
5032
|
+
required: z.boolean(),
|
|
5033
|
+
defaultEnabled: z.boolean().optional()
|
|
5034
|
+
})
|
|
5035
|
+
).default({})
|
|
5036
|
+
}).default({}),
|
|
5009
5037
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
5010
5038
|
}).default({})
|
|
5011
5039
|
});
|
|
@@ -5148,6 +5176,17 @@ var ConsentFlowTransactionValidator = z.object({
|
|
|
5148
5176
|
PaginationResponseValidator.extend({
|
|
5149
5177
|
records: ConsentFlowTransactionValidator.array()
|
|
5150
5178
|
});
|
|
5179
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
5180
|
+
id: StringQuery,
|
|
5181
|
+
name: StringQuery,
|
|
5182
|
+
description: StringQuery,
|
|
5183
|
+
sourceURI: StringQuery,
|
|
5184
|
+
status: StringQuery
|
|
5185
|
+
}).partial();
|
|
5186
|
+
z.union([
|
|
5187
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
5188
|
+
BaseSkillFrameworkQueryValidator
|
|
5189
|
+
]);
|
|
5151
5190
|
var ContractCredentialValidator = z.object({
|
|
5152
5191
|
credentialUri: z.string(),
|
|
5153
5192
|
termsUri: z.string(),
|
|
@@ -5202,8 +5241,9 @@ var LCNNotificationDataValidator = z.object({
|
|
|
5202
5241
|
vcUris: z.array(z.string()).optional(),
|
|
5203
5242
|
vpUris: z.array(z.string()).optional(),
|
|
5204
5243
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
5205
|
-
inbox: LCNNotificationInboxValidator.optional()
|
|
5206
|
-
|
|
5244
|
+
inbox: LCNNotificationInboxValidator.optional(),
|
|
5245
|
+
metadata: z.record(z.unknown()).optional()
|
|
5246
|
+
}).passthrough();
|
|
5207
5247
|
z.object({
|
|
5208
5248
|
type: LCNNotificationTypeEnumValidator,
|
|
5209
5249
|
to: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
|
|
@@ -5326,31 +5366,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
|
|
|
5326
5366
|
});
|
|
5327
5367
|
z.object({
|
|
5328
5368
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
5329
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5369
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5370
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
5371
|
+
),
|
|
5330
5372
|
configuration: z.object({
|
|
5331
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5373
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5374
|
+
"The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
|
|
5375
|
+
),
|
|
5332
5376
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
5333
5377
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
5334
5378
|
delivery: z.object({
|
|
5335
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
5379
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
5380
|
+
"Whether to suppress delivery of the credential to the recipient. If true, the email/sms will not be sent to the recipient. Useful if you would like to manually send claim link to your users."
|
|
5381
|
+
),
|
|
5336
5382
|
template: z.object({
|
|
5337
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5383
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5384
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
5385
|
+
),
|
|
5338
5386
|
model: z.object({
|
|
5339
5387
|
issuer: z.object({
|
|
5340
|
-
name: z.string().optional().describe(
|
|
5388
|
+
name: z.string().optional().describe(
|
|
5389
|
+
'The name of the organization (e.g., "State University").'
|
|
5390
|
+
),
|
|
5341
5391
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
5342
5392
|
}).optional(),
|
|
5343
5393
|
credential: z.object({
|
|
5344
|
-
name: z.string().optional().describe(
|
|
5345
|
-
|
|
5394
|
+
name: z.string().optional().describe(
|
|
5395
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
5396
|
+
),
|
|
5397
|
+
type: z.string().optional().describe(
|
|
5398
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
5399
|
+
)
|
|
5346
5400
|
}).optional(),
|
|
5347
5401
|
recipient: z.object({
|
|
5348
|
-
name: z.string().optional().describe(
|
|
5402
|
+
name: z.string().optional().describe(
|
|
5403
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
5404
|
+
)
|
|
5349
5405
|
}).optional()
|
|
5350
|
-
}).describe(
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5406
|
+
}).describe(
|
|
5407
|
+
"The template model to use for the credential delivery. Injects via template variables into email/sms templates. If not provided, the default template will be used."
|
|
5408
|
+
)
|
|
5409
|
+
}).optional().describe(
|
|
5410
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
5411
|
+
)
|
|
5412
|
+
}).optional().describe(
|
|
5413
|
+
"Configuration for the credential delivery i.e. email or SMS. When credentials are sent to a user who has a verified email or phone associated with their account, delivery is skipped, and the credential will be sent using in-app notifications. If not provided, the default configuration will be used."
|
|
5414
|
+
)
|
|
5415
|
+
}).optional().describe(
|
|
5416
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
5417
|
+
)
|
|
5354
5418
|
});
|
|
5355
5419
|
z.object({
|
|
5356
5420
|
issuanceId: z.string(),
|
|
@@ -5412,6 +5476,191 @@ z.object({
|
|
|
5412
5476
|
expiresAt: z.string(),
|
|
5413
5477
|
used: z.boolean()
|
|
5414
5478
|
});
|
|
5479
|
+
z.object({
|
|
5480
|
+
id: z.string(),
|
|
5481
|
+
name: z.string().min(1),
|
|
5482
|
+
slug: z.string().min(1),
|
|
5483
|
+
createdAt: z.string().optional(),
|
|
5484
|
+
updatedAt: z.string().optional()
|
|
5485
|
+
});
|
|
5486
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
5487
|
+
var SkillValidator = z.object({
|
|
5488
|
+
id: z.string(),
|
|
5489
|
+
statement: z.string(),
|
|
5490
|
+
description: z.string().optional(),
|
|
5491
|
+
code: z.string().optional(),
|
|
5492
|
+
icon: z.string().optional(),
|
|
5493
|
+
type: z.string().default("skill"),
|
|
5494
|
+
status: SkillStatusEnum.default("active"),
|
|
5495
|
+
frameworkId: z.string().optional(),
|
|
5496
|
+
createdAt: z.string().optional(),
|
|
5497
|
+
updatedAt: z.string().optional()
|
|
5498
|
+
});
|
|
5499
|
+
var BaseSkillQueryValidator = z.object({
|
|
5500
|
+
id: StringQuery,
|
|
5501
|
+
statement: StringQuery,
|
|
5502
|
+
description: StringQuery,
|
|
5503
|
+
code: StringQuery,
|
|
5504
|
+
type: StringQuery,
|
|
5505
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
5506
|
+
}).partial();
|
|
5507
|
+
z.union([
|
|
5508
|
+
z.object({
|
|
5509
|
+
$or: BaseSkillQueryValidator.array()
|
|
5510
|
+
}),
|
|
5511
|
+
BaseSkillQueryValidator
|
|
5512
|
+
]);
|
|
5513
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
5514
|
+
var SkillFrameworkValidator = z.object({
|
|
5515
|
+
id: z.string(),
|
|
5516
|
+
name: z.string(),
|
|
5517
|
+
description: z.string().optional(),
|
|
5518
|
+
image: z.string().optional(),
|
|
5519
|
+
sourceURI: z.string().url().optional(),
|
|
5520
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
5521
|
+
createdAt: z.string().optional(),
|
|
5522
|
+
updatedAt: z.string().optional()
|
|
5523
|
+
});
|
|
5524
|
+
PaginationResponseValidator.extend({
|
|
5525
|
+
records: SkillFrameworkValidator.array()
|
|
5526
|
+
});
|
|
5527
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
5528
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
5529
|
+
hasChildren: z.boolean(),
|
|
5530
|
+
childrenCursor: z.string().nullable().optional()
|
|
5531
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
5532
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
5533
|
+
hasMore: z.boolean(),
|
|
5534
|
+
cursor: z.string().nullable(),
|
|
5535
|
+
records: z.array(SkillTreeNodeValidator)
|
|
5536
|
+
});
|
|
5537
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
5538
|
+
() => z.object({
|
|
5539
|
+
id: z.string().optional(),
|
|
5540
|
+
statement: z.string(),
|
|
5541
|
+
description: z.string().optional(),
|
|
5542
|
+
code: z.string().optional(),
|
|
5543
|
+
icon: z.string().optional(),
|
|
5544
|
+
type: z.string().optional(),
|
|
5545
|
+
status: SkillStatusEnum.optional(),
|
|
5546
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
5547
|
+
})
|
|
5548
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
5549
|
+
z.object({
|
|
5550
|
+
frameworkId: z.string()
|
|
5551
|
+
});
|
|
5552
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
5553
|
+
id: z.string().optional(),
|
|
5554
|
+
name: z.string().min(1),
|
|
5555
|
+
description: z.string().optional(),
|
|
5556
|
+
image: z.string().optional(),
|
|
5557
|
+
sourceURI: z.string().url().optional(),
|
|
5558
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
5559
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
5560
|
+
boostUris: z.array(z.string()).optional()
|
|
5561
|
+
});
|
|
5562
|
+
z.object({
|
|
5563
|
+
id: z.string(),
|
|
5564
|
+
name: z.string().min(1).optional(),
|
|
5565
|
+
description: z.string().optional(),
|
|
5566
|
+
image: z.string().optional(),
|
|
5567
|
+
sourceURI: z.string().url().optional(),
|
|
5568
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
5569
|
+
}).refine(
|
|
5570
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
5571
|
+
{
|
|
5572
|
+
message: "At least one field must be provided to update",
|
|
5573
|
+
path: ["name"]
|
|
5574
|
+
}
|
|
5575
|
+
);
|
|
5576
|
+
z.object({ id: z.string() });
|
|
5577
|
+
z.object({
|
|
5578
|
+
frameworks: z.array(
|
|
5579
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
5580
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
5581
|
+
})
|
|
5582
|
+
).min(1)
|
|
5583
|
+
});
|
|
5584
|
+
z.object({
|
|
5585
|
+
frameworkId: z.string(),
|
|
5586
|
+
profileId: z.string()
|
|
5587
|
+
});
|
|
5588
|
+
z.object({ frameworkId: z.string() });
|
|
5589
|
+
LCNProfileValidator.array();
|
|
5590
|
+
z.object({ id: z.string() });
|
|
5591
|
+
z.object({
|
|
5592
|
+
slug: z.string().min(1),
|
|
5593
|
+
name: z.string().min(1)
|
|
5594
|
+
});
|
|
5595
|
+
z.object({
|
|
5596
|
+
frameworkId: z.string(),
|
|
5597
|
+
skill: SkillTreeNodeInputValidator,
|
|
5598
|
+
parentId: z.string().nullable().optional()
|
|
5599
|
+
});
|
|
5600
|
+
z.object({
|
|
5601
|
+
frameworkId: z.string(),
|
|
5602
|
+
id: z.string(),
|
|
5603
|
+
statement: z.string().optional(),
|
|
5604
|
+
description: z.string().optional(),
|
|
5605
|
+
code: z.string().optional(),
|
|
5606
|
+
icon: z.string().optional(),
|
|
5607
|
+
type: z.string().optional(),
|
|
5608
|
+
status: SkillStatusEnum.optional()
|
|
5609
|
+
}).refine(
|
|
5610
|
+
(data) => data.statement !== void 0 || data.description !== void 0 || data.code !== void 0 || data.icon !== void 0 || data.type !== void 0 || data.status !== void 0,
|
|
5611
|
+
{
|
|
5612
|
+
message: "At least one field must be provided to update a skill",
|
|
5613
|
+
path: ["statement"]
|
|
5614
|
+
}
|
|
5615
|
+
);
|
|
5616
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
5617
|
+
z.object({
|
|
5618
|
+
frameworkId: z.string(),
|
|
5619
|
+
id: z.string(),
|
|
5620
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
5621
|
+
});
|
|
5622
|
+
z.object({
|
|
5623
|
+
frameworkId: z.string(),
|
|
5624
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
5625
|
+
parentId: z.string().nullable().optional()
|
|
5626
|
+
});
|
|
5627
|
+
z.object({
|
|
5628
|
+
frameworkId: z.string(),
|
|
5629
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
5630
|
+
});
|
|
5631
|
+
z.object({
|
|
5632
|
+
created: z.number().int().min(0),
|
|
5633
|
+
updated: z.number().int().min(0),
|
|
5634
|
+
deleted: z.number().int().min(0),
|
|
5635
|
+
unchanged: z.number().int().min(0),
|
|
5636
|
+
total: z.number().int().min(0)
|
|
5637
|
+
});
|
|
5638
|
+
z.object({
|
|
5639
|
+
frameworkId: z.string(),
|
|
5640
|
+
skillId: z.string().optional(),
|
|
5641
|
+
recursive: z.boolean().optional().default(false),
|
|
5642
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
5643
|
+
});
|
|
5644
|
+
z.object({
|
|
5645
|
+
count: z.number().int().min(0)
|
|
5646
|
+
});
|
|
5647
|
+
z.object({
|
|
5648
|
+
frameworkId: z.string()
|
|
5649
|
+
});
|
|
5650
|
+
z.object({
|
|
5651
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
5652
|
+
});
|
|
5653
|
+
z.object({
|
|
5654
|
+
frameworkId: z.string(),
|
|
5655
|
+
skillId: z.string()
|
|
5656
|
+
});
|
|
5657
|
+
z.object({
|
|
5658
|
+
path: z.array(SkillValidator)
|
|
5659
|
+
});
|
|
5660
|
+
z.object({
|
|
5661
|
+
framework: SkillFrameworkValidator,
|
|
5662
|
+
skills: PaginatedSkillTreeValidator
|
|
5663
|
+
});
|
|
5415
5664
|
|
|
5416
5665
|
export { VerificationStatusEnum as V };
|
|
5417
|
-
//# sourceMappingURL=types.esm-
|
|
5666
|
+
//# sourceMappingURL=types.esm-d6b9a11e.js.map
|