@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
|
@@ -4781,7 +4781,14 @@ var RegExpValidator = z.instanceof(RegExp).or(
|
|
|
4781
4781
|
}
|
|
4782
4782
|
})
|
|
4783
4783
|
);
|
|
4784
|
-
var
|
|
4784
|
+
var BaseStringQuery = z.string().or(z.object({ $in: z.string().array() })).or(z.object({ $regex: RegExpValidator }));
|
|
4785
|
+
var StringQuery = z.union([
|
|
4786
|
+
BaseStringQuery,
|
|
4787
|
+
z.object({
|
|
4788
|
+
$or: BaseStringQuery.array()
|
|
4789
|
+
})
|
|
4790
|
+
]);
|
|
4791
|
+
extendZodWithOpenApi(z);
|
|
4785
4792
|
var LCNProfileDisplayValidator = z.object({
|
|
4786
4793
|
backgroundColor: z.string().optional(),
|
|
4787
4794
|
backgroundImage: z.string().optional(),
|
|
@@ -4866,7 +4873,8 @@ z.object({
|
|
|
4866
4873
|
to: z.string(),
|
|
4867
4874
|
from: z.string(),
|
|
4868
4875
|
sent: z.string().datetime(),
|
|
4869
|
-
received: z.string().datetime().optional()
|
|
4876
|
+
received: z.string().datetime().optional(),
|
|
4877
|
+
metadata: z.record(z.unknown()).optional()
|
|
4870
4878
|
});
|
|
4871
4879
|
var BoostPermissionsValidator = z.object({
|
|
4872
4880
|
role: z.string(),
|
|
@@ -4939,7 +4947,7 @@ var BoostValidator = z.object({
|
|
|
4939
4947
|
claimPermissions: BoostPermissionsValidator.optional(),
|
|
4940
4948
|
allowAnyoneToCreateChildren: z.boolean().optional()
|
|
4941
4949
|
});
|
|
4942
|
-
z.object({
|
|
4950
|
+
var BaseBoostQueryValidator = z.object({
|
|
4943
4951
|
uri: StringQuery,
|
|
4944
4952
|
name: StringQuery,
|
|
4945
4953
|
type: StringQuery,
|
|
@@ -4948,6 +4956,12 @@ z.object({
|
|
|
4948
4956
|
status: LCNBoostStatus.or(z.object({ $in: LCNBoostStatus.array() })),
|
|
4949
4957
|
autoConnectRecipients: z.boolean()
|
|
4950
4958
|
}).partial();
|
|
4959
|
+
z.union([
|
|
4960
|
+
z.object({
|
|
4961
|
+
$or: BaseBoostQueryValidator.array()
|
|
4962
|
+
}),
|
|
4963
|
+
BaseBoostQueryValidator
|
|
4964
|
+
]);
|
|
4951
4965
|
PaginationResponseValidator.extend({
|
|
4952
4966
|
records: BoostValidator.array()
|
|
4953
4967
|
});
|
|
@@ -5003,11 +5017,25 @@ var ConsentFlowTermsStatusValidator = z.enum(["live", "stale", "withdrawn"]);
|
|
|
5003
5017
|
var ConsentFlowContractValidator = z.object({
|
|
5004
5018
|
read: z.object({
|
|
5005
5019
|
anonymize: z.boolean().optional(),
|
|
5006
|
-
credentials: z.object({
|
|
5020
|
+
credentials: z.object({
|
|
5021
|
+
categories: z.record(
|
|
5022
|
+
z.object({
|
|
5023
|
+
required: z.boolean(),
|
|
5024
|
+
defaultEnabled: z.boolean().optional()
|
|
5025
|
+
})
|
|
5026
|
+
).default({})
|
|
5027
|
+
}).default({}),
|
|
5007
5028
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
5008
5029
|
}).default({}),
|
|
5009
5030
|
write: z.object({
|
|
5010
|
-
credentials: z.object({
|
|
5031
|
+
credentials: z.object({
|
|
5032
|
+
categories: z.record(
|
|
5033
|
+
z.object({
|
|
5034
|
+
required: z.boolean(),
|
|
5035
|
+
defaultEnabled: z.boolean().optional()
|
|
5036
|
+
})
|
|
5037
|
+
).default({})
|
|
5038
|
+
}).default({}),
|
|
5011
5039
|
personal: z.record(z.object({ required: z.boolean(), defaultEnabled: z.boolean().optional() })).default({})
|
|
5012
5040
|
}).default({})
|
|
5013
5041
|
});
|
|
@@ -5150,6 +5178,17 @@ var ConsentFlowTransactionValidator = z.object({
|
|
|
5150
5178
|
PaginationResponseValidator.extend({
|
|
5151
5179
|
records: ConsentFlowTransactionValidator.array()
|
|
5152
5180
|
});
|
|
5181
|
+
var BaseSkillFrameworkQueryValidator = z.object({
|
|
5182
|
+
id: StringQuery,
|
|
5183
|
+
name: StringQuery,
|
|
5184
|
+
description: StringQuery,
|
|
5185
|
+
sourceURI: StringQuery,
|
|
5186
|
+
status: StringQuery
|
|
5187
|
+
}).partial();
|
|
5188
|
+
z.union([
|
|
5189
|
+
z.object({ $or: BaseSkillFrameworkQueryValidator.array() }),
|
|
5190
|
+
BaseSkillFrameworkQueryValidator
|
|
5191
|
+
]);
|
|
5153
5192
|
var ContractCredentialValidator = z.object({
|
|
5154
5193
|
credentialUri: z.string(),
|
|
5155
5194
|
termsUri: z.string(),
|
|
@@ -5204,8 +5243,9 @@ var LCNNotificationDataValidator = z.object({
|
|
|
5204
5243
|
vcUris: z.array(z.string()).optional(),
|
|
5205
5244
|
vpUris: z.array(z.string()).optional(),
|
|
5206
5245
|
transaction: ConsentFlowTransactionValidator.optional(),
|
|
5207
|
-
inbox: LCNNotificationInboxValidator.optional()
|
|
5208
|
-
|
|
5246
|
+
inbox: LCNNotificationInboxValidator.optional(),
|
|
5247
|
+
metadata: z.record(z.unknown()).optional()
|
|
5248
|
+
}).passthrough();
|
|
5209
5249
|
z.object({
|
|
5210
5250
|
type: LCNNotificationTypeEnumValidator,
|
|
5211
5251
|
to: LCNProfileValidator.partial().and(z.object({ did: z.string() })),
|
|
@@ -5328,31 +5368,55 @@ var IssueInboxSigningAuthorityValidator = z.object({
|
|
|
5328
5368
|
});
|
|
5329
5369
|
z.object({
|
|
5330
5370
|
recipient: ContactMethodQueryValidator.describe("The recipient of the credential"),
|
|
5331
|
-
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5371
|
+
credential: VCValidator.passthrough().or(VPValidator.passthrough()).or(UnsignedVCValidator.passthrough()).describe(
|
|
5372
|
+
"The credential to issue. If not signed, the users default signing authority will be used, or the specified signing authority in the configuration."
|
|
5373
|
+
),
|
|
5332
5374
|
configuration: z.object({
|
|
5333
|
-
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5375
|
+
signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
|
|
5376
|
+
"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."
|
|
5377
|
+
),
|
|
5334
5378
|
webhookUrl: z.string().url().optional().describe("The webhook URL to receive credential issuance events."),
|
|
5335
5379
|
expiresInDays: z.number().min(1).max(365).optional().describe("The number of days the credential will be valid for."),
|
|
5336
5380
|
delivery: z.object({
|
|
5337
|
-
suppress: z.boolean().optional().default(false).describe(
|
|
5381
|
+
suppress: z.boolean().optional().default(false).describe(
|
|
5382
|
+
"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."
|
|
5383
|
+
),
|
|
5338
5384
|
template: z.object({
|
|
5339
|
-
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5385
|
+
id: z.enum(["universal-inbox-claim"]).optional().describe(
|
|
5386
|
+
"The template ID to use for the credential delivery. If not provided, the default template will be used."
|
|
5387
|
+
),
|
|
5340
5388
|
model: z.object({
|
|
5341
5389
|
issuer: z.object({
|
|
5342
|
-
name: z.string().optional().describe(
|
|
5390
|
+
name: z.string().optional().describe(
|
|
5391
|
+
'The name of the organization (e.g., "State University").'
|
|
5392
|
+
),
|
|
5343
5393
|
logoUrl: z.string().url().optional().describe("The URL of the organization's logo.")
|
|
5344
5394
|
}).optional(),
|
|
5345
5395
|
credential: z.object({
|
|
5346
|
-
name: z.string().optional().describe(
|
|
5347
|
-
|
|
5396
|
+
name: z.string().optional().describe(
|
|
5397
|
+
'The name of the credential (e.g., "Bachelor of Science").'
|
|
5398
|
+
),
|
|
5399
|
+
type: z.string().optional().describe(
|
|
5400
|
+
'The type of the credential (e.g., "degree", "certificate").'
|
|
5401
|
+
)
|
|
5348
5402
|
}).optional(),
|
|
5349
5403
|
recipient: z.object({
|
|
5350
|
-
name: z.string().optional().describe(
|
|
5404
|
+
name: z.string().optional().describe(
|
|
5405
|
+
'The name of the recipient (e.g., "John Doe").'
|
|
5406
|
+
)
|
|
5351
5407
|
}).optional()
|
|
5352
|
-
}).describe(
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5408
|
+
}).describe(
|
|
5409
|
+
"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."
|
|
5410
|
+
)
|
|
5411
|
+
}).optional().describe(
|
|
5412
|
+
"The template to use for the credential delivery. If not provided, the default template will be used."
|
|
5413
|
+
)
|
|
5414
|
+
}).optional().describe(
|
|
5415
|
+
"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."
|
|
5416
|
+
)
|
|
5417
|
+
}).optional().describe(
|
|
5418
|
+
"Configuration for the credential issuance. If not provided, the default configuration will be used."
|
|
5419
|
+
)
|
|
5356
5420
|
});
|
|
5357
5421
|
z.object({
|
|
5358
5422
|
issuanceId: z.string(),
|
|
@@ -5414,6 +5478,191 @@ z.object({
|
|
|
5414
5478
|
expiresAt: z.string(),
|
|
5415
5479
|
used: z.boolean()
|
|
5416
5480
|
});
|
|
5481
|
+
z.object({
|
|
5482
|
+
id: z.string(),
|
|
5483
|
+
name: z.string().min(1),
|
|
5484
|
+
slug: z.string().min(1),
|
|
5485
|
+
createdAt: z.string().optional(),
|
|
5486
|
+
updatedAt: z.string().optional()
|
|
5487
|
+
});
|
|
5488
|
+
var SkillStatusEnum = z.enum(["active", "archived"]);
|
|
5489
|
+
var SkillValidator = z.object({
|
|
5490
|
+
id: z.string(),
|
|
5491
|
+
statement: z.string(),
|
|
5492
|
+
description: z.string().optional(),
|
|
5493
|
+
code: z.string().optional(),
|
|
5494
|
+
icon: z.string().optional(),
|
|
5495
|
+
type: z.string().default("skill"),
|
|
5496
|
+
status: SkillStatusEnum.default("active"),
|
|
5497
|
+
frameworkId: z.string().optional(),
|
|
5498
|
+
createdAt: z.string().optional(),
|
|
5499
|
+
updatedAt: z.string().optional()
|
|
5500
|
+
});
|
|
5501
|
+
var BaseSkillQueryValidator = z.object({
|
|
5502
|
+
id: StringQuery,
|
|
5503
|
+
statement: StringQuery,
|
|
5504
|
+
description: StringQuery,
|
|
5505
|
+
code: StringQuery,
|
|
5506
|
+
type: StringQuery,
|
|
5507
|
+
status: SkillStatusEnum.or(z.object({ $in: SkillStatusEnum.array() }))
|
|
5508
|
+
}).partial();
|
|
5509
|
+
z.union([
|
|
5510
|
+
z.object({
|
|
5511
|
+
$or: BaseSkillQueryValidator.array()
|
|
5512
|
+
}),
|
|
5513
|
+
BaseSkillQueryValidator
|
|
5514
|
+
]);
|
|
5515
|
+
var SkillFrameworkStatusEnum = z.enum(["active", "archived"]);
|
|
5516
|
+
var SkillFrameworkValidator = z.object({
|
|
5517
|
+
id: z.string(),
|
|
5518
|
+
name: z.string(),
|
|
5519
|
+
description: z.string().optional(),
|
|
5520
|
+
image: z.string().optional(),
|
|
5521
|
+
sourceURI: z.string().url().optional(),
|
|
5522
|
+
status: SkillFrameworkStatusEnum.default("active"),
|
|
5523
|
+
createdAt: z.string().optional(),
|
|
5524
|
+
updatedAt: z.string().optional()
|
|
5525
|
+
});
|
|
5526
|
+
PaginationResponseValidator.extend({
|
|
5527
|
+
records: SkillFrameworkValidator.array()
|
|
5528
|
+
});
|
|
5529
|
+
var SkillTreeNodeValidator = SkillValidator.extend({
|
|
5530
|
+
children: z.array(z.lazy(() => SkillTreeNodeValidator)),
|
|
5531
|
+
hasChildren: z.boolean(),
|
|
5532
|
+
childrenCursor: z.string().nullable().optional()
|
|
5533
|
+
}).openapi({ ref: "SkillTreeNode" });
|
|
5534
|
+
var PaginatedSkillTreeValidator = z.object({
|
|
5535
|
+
hasMore: z.boolean(),
|
|
5536
|
+
cursor: z.string().nullable(),
|
|
5537
|
+
records: z.array(SkillTreeNodeValidator)
|
|
5538
|
+
});
|
|
5539
|
+
var SkillTreeNodeInputValidator = z.lazy(
|
|
5540
|
+
() => z.object({
|
|
5541
|
+
id: z.string().optional(),
|
|
5542
|
+
statement: z.string(),
|
|
5543
|
+
description: z.string().optional(),
|
|
5544
|
+
code: z.string().optional(),
|
|
5545
|
+
icon: z.string().optional(),
|
|
5546
|
+
type: z.string().optional(),
|
|
5547
|
+
status: SkillStatusEnum.optional(),
|
|
5548
|
+
children: z.array(SkillTreeNodeInputValidator).optional()
|
|
5549
|
+
})
|
|
5550
|
+
).openapi({ ref: "SkillTreeNodeInput" });
|
|
5551
|
+
z.object({
|
|
5552
|
+
frameworkId: z.string()
|
|
5553
|
+
});
|
|
5554
|
+
var CreateManagedFrameworkInputValidator = z.object({
|
|
5555
|
+
id: z.string().optional(),
|
|
5556
|
+
name: z.string().min(1),
|
|
5557
|
+
description: z.string().optional(),
|
|
5558
|
+
image: z.string().optional(),
|
|
5559
|
+
sourceURI: z.string().url().optional(),
|
|
5560
|
+
status: SkillFrameworkStatusEnum.optional(),
|
|
5561
|
+
skills: z.array(SkillTreeNodeInputValidator).optional(),
|
|
5562
|
+
boostUris: z.array(z.string()).optional()
|
|
5563
|
+
});
|
|
5564
|
+
z.object({
|
|
5565
|
+
id: z.string(),
|
|
5566
|
+
name: z.string().min(1).optional(),
|
|
5567
|
+
description: z.string().optional(),
|
|
5568
|
+
image: z.string().optional(),
|
|
5569
|
+
sourceURI: z.string().url().optional(),
|
|
5570
|
+
status: SkillFrameworkStatusEnum.optional()
|
|
5571
|
+
}).refine(
|
|
5572
|
+
(data) => data.name !== void 0 || data.description !== void 0 || data.image !== void 0 || data.sourceURI !== void 0 || data.status !== void 0,
|
|
5573
|
+
{
|
|
5574
|
+
message: "At least one field must be provided to update",
|
|
5575
|
+
path: ["name"]
|
|
5576
|
+
}
|
|
5577
|
+
);
|
|
5578
|
+
z.object({ id: z.string() });
|
|
5579
|
+
z.object({
|
|
5580
|
+
frameworks: z.array(
|
|
5581
|
+
CreateManagedFrameworkInputValidator.extend({
|
|
5582
|
+
skills: z.array(SkillTreeNodeInputValidator).optional()
|
|
5583
|
+
})
|
|
5584
|
+
).min(1)
|
|
5585
|
+
});
|
|
5586
|
+
z.object({
|
|
5587
|
+
frameworkId: z.string(),
|
|
5588
|
+
profileId: z.string()
|
|
5589
|
+
});
|
|
5590
|
+
z.object({ frameworkId: z.string() });
|
|
5591
|
+
LCNProfileValidator.array();
|
|
5592
|
+
z.object({ id: z.string() });
|
|
5593
|
+
z.object({
|
|
5594
|
+
slug: z.string().min(1),
|
|
5595
|
+
name: z.string().min(1)
|
|
5596
|
+
});
|
|
5597
|
+
z.object({
|
|
5598
|
+
frameworkId: z.string(),
|
|
5599
|
+
skill: SkillTreeNodeInputValidator,
|
|
5600
|
+
parentId: z.string().nullable().optional()
|
|
5601
|
+
});
|
|
5602
|
+
z.object({
|
|
5603
|
+
frameworkId: z.string(),
|
|
5604
|
+
id: z.string(),
|
|
5605
|
+
statement: z.string().optional(),
|
|
5606
|
+
description: z.string().optional(),
|
|
5607
|
+
code: z.string().optional(),
|
|
5608
|
+
icon: z.string().optional(),
|
|
5609
|
+
type: z.string().optional(),
|
|
5610
|
+
status: SkillStatusEnum.optional()
|
|
5611
|
+
}).refine(
|
|
5612
|
+
(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,
|
|
5613
|
+
{
|
|
5614
|
+
message: "At least one field must be provided to update a skill",
|
|
5615
|
+
path: ["statement"]
|
|
5616
|
+
}
|
|
5617
|
+
);
|
|
5618
|
+
var SkillDeletionStrategyValidator = z.enum(["recursive", "reparent"]);
|
|
5619
|
+
z.object({
|
|
5620
|
+
frameworkId: z.string(),
|
|
5621
|
+
id: z.string(),
|
|
5622
|
+
strategy: SkillDeletionStrategyValidator.optional().default("reparent")
|
|
5623
|
+
});
|
|
5624
|
+
z.object({
|
|
5625
|
+
frameworkId: z.string(),
|
|
5626
|
+
skills: z.array(SkillTreeNodeInputValidator).min(1),
|
|
5627
|
+
parentId: z.string().nullable().optional()
|
|
5628
|
+
});
|
|
5629
|
+
z.object({
|
|
5630
|
+
frameworkId: z.string(),
|
|
5631
|
+
skills: z.array(SkillTreeNodeInputValidator).min(0)
|
|
5632
|
+
});
|
|
5633
|
+
z.object({
|
|
5634
|
+
created: z.number().int().min(0),
|
|
5635
|
+
updated: z.number().int().min(0),
|
|
5636
|
+
deleted: z.number().int().min(0),
|
|
5637
|
+
unchanged: z.number().int().min(0),
|
|
5638
|
+
total: z.number().int().min(0)
|
|
5639
|
+
});
|
|
5640
|
+
z.object({
|
|
5641
|
+
frameworkId: z.string(),
|
|
5642
|
+
skillId: z.string().optional(),
|
|
5643
|
+
recursive: z.boolean().optional().default(false),
|
|
5644
|
+
onlyCountCompetencies: z.boolean().optional().default(false)
|
|
5645
|
+
});
|
|
5646
|
+
z.object({
|
|
5647
|
+
count: z.number().int().min(0)
|
|
5648
|
+
});
|
|
5649
|
+
z.object({
|
|
5650
|
+
frameworkId: z.string()
|
|
5651
|
+
});
|
|
5652
|
+
z.object({
|
|
5653
|
+
skills: z.array(SkillTreeNodeValidator)
|
|
5654
|
+
});
|
|
5655
|
+
z.object({
|
|
5656
|
+
frameworkId: z.string(),
|
|
5657
|
+
skillId: z.string()
|
|
5658
|
+
});
|
|
5659
|
+
z.object({
|
|
5660
|
+
path: z.array(SkillValidator)
|
|
5661
|
+
});
|
|
5662
|
+
z.object({
|
|
5663
|
+
framework: SkillFrameworkValidator,
|
|
5664
|
+
skills: PaginatedSkillTreeValidator
|
|
5665
|
+
});
|
|
5417
5666
|
|
|
5418
5667
|
exports.VerificationStatusEnum = VerificationStatusEnum;
|
|
5419
|
-
//# sourceMappingURL=types.esm-
|
|
5668
|
+
//# sourceMappingURL=types.esm-5908b63f.js.map
|