@learncard/helpers 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -105,6 +105,9 @@ var require_types_cjs_development = __commonJS({
|
|
105
105
|
LCNNotificationTypeEnumValidator: () => LCNNotificationTypeEnumValidator,
|
106
106
|
LCNNotificationValidator: () => LCNNotificationValidator,
|
107
107
|
LCNProfileConnectionStatusEnum: () => LCNProfileConnectionStatusEnum,
|
108
|
+
LCNProfileDisplayValidator: () => LCNProfileDisplayValidator,
|
109
|
+
LCNProfileManagerQueryValidator: () => LCNProfileManagerQueryValidator,
|
110
|
+
LCNProfileManagerValidator: () => LCNProfileManagerValidator,
|
108
111
|
LCNProfileQueryValidator: () => LCNProfileQueryValidator,
|
109
112
|
LCNProfileValidator: () => LCNProfileValidator,
|
110
113
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator,
|
@@ -117,6 +120,8 @@ var require_types_cjs_development = __commonJS({
|
|
117
120
|
PaginatedConsentFlowTransactionsValidator: () => PaginatedConsentFlowTransactionsValidator,
|
118
121
|
PaginatedEncryptedCredentialRecordsValidator: () => PaginatedEncryptedCredentialRecordsValidator,
|
119
122
|
PaginatedEncryptedRecordsValidator: () => PaginatedEncryptedRecordsValidator,
|
123
|
+
PaginatedLCNProfileManagersValidator: () => PaginatedLCNProfileManagersValidator,
|
124
|
+
PaginatedLCNProfilesAndManagersValidator: () => PaginatedLCNProfilesAndManagersValidator,
|
120
125
|
PaginatedLCNProfilesValidator: () => PaginatedLCNProfilesValidator,
|
121
126
|
PaginationOptionsValidator: () => PaginationOptionsValidator,
|
122
127
|
PaginationResponseValidator: () => PaginationResponseValidator,
|
@@ -3910,6 +3915,19 @@ var require_types_cjs_development = __commonJS({
|
|
3910
3915
|
})
|
3911
3916
|
);
|
3912
3917
|
var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: RegExpValidator }));
|
3918
|
+
var LCNProfileDisplayValidator = mod.object({
|
3919
|
+
backgroundColor: mod.string().optional(),
|
3920
|
+
backgroundImage: mod.string().optional(),
|
3921
|
+
fadeBackgroundImage: mod.boolean().optional(),
|
3922
|
+
repeatBackgroundImage: mod.boolean().optional(),
|
3923
|
+
fontColor: mod.string().optional(),
|
3924
|
+
accentColor: mod.string().optional(),
|
3925
|
+
accentFontColor: mod.string().optional(),
|
3926
|
+
idBackgroundImage: mod.string().optional(),
|
3927
|
+
fadeIdBackgroundImage: mod.boolean().optional(),
|
3928
|
+
idBackgroundColor: mod.string().optional(),
|
3929
|
+
repeatIdBackgroundImage: mod.boolean().optional()
|
3930
|
+
});
|
3913
3931
|
var LCNProfileValidator = mod.object({
|
3914
3932
|
profileId: mod.string().min(3).max(40),
|
3915
3933
|
displayName: mod.string().default(""),
|
@@ -3922,7 +3940,8 @@ var require_types_cjs_development = __commonJS({
|
|
3922
3940
|
websiteLink: mod.string().optional(),
|
3923
3941
|
isServiceProfile: mod.boolean().default(false).optional(),
|
3924
3942
|
type: mod.string().optional(),
|
3925
|
-
notificationsWebhook: mod.string().url().startsWith("http").optional()
|
3943
|
+
notificationsWebhook: mod.string().url().startsWith("http").optional(),
|
3944
|
+
display: LCNProfileDisplayValidator.optional()
|
3926
3945
|
});
|
3927
3946
|
var LCNProfileQueryValidator = mod.object({
|
3928
3947
|
profileId: StringQuery,
|
@@ -3943,6 +3962,32 @@ var require_types_cjs_development = __commonJS({
|
|
3943
3962
|
"PENDING_REQUEST_RECEIVED",
|
3944
3963
|
"NOT_CONNECTED"
|
3945
3964
|
]);
|
3965
|
+
var LCNProfileManagerValidator = mod.object({
|
3966
|
+
id: mod.string(),
|
3967
|
+
created: mod.string(),
|
3968
|
+
displayName: mod.string().default("").optional(),
|
3969
|
+
shortBio: mod.string().default("").optional(),
|
3970
|
+
bio: mod.string().default("").optional(),
|
3971
|
+
email: mod.string().optional(),
|
3972
|
+
image: mod.string().optional(),
|
3973
|
+
heroImage: mod.string().optional()
|
3974
|
+
});
|
3975
|
+
var PaginatedLCNProfileManagersValidator = PaginationResponseValidator.extend({
|
3976
|
+
records: LCNProfileManagerValidator.extend({ did: mod.string() }).array()
|
3977
|
+
});
|
3978
|
+
var LCNProfileManagerQueryValidator = mod.object({
|
3979
|
+
id: StringQuery,
|
3980
|
+
displayName: StringQuery,
|
3981
|
+
shortBio: StringQuery,
|
3982
|
+
bio: StringQuery,
|
3983
|
+
email: StringQuery
|
3984
|
+
}).partial();
|
3985
|
+
var PaginatedLCNProfilesAndManagersValidator = PaginationResponseValidator.extend({
|
3986
|
+
records: mod.object({
|
3987
|
+
profile: LCNProfileValidator,
|
3988
|
+
manager: LCNProfileManagerValidator.extend({ did: mod.string() }).optional()
|
3989
|
+
}).array()
|
3990
|
+
});
|
3946
3991
|
var SentCredentialInfoValidator = mod.object({
|
3947
3992
|
uri: mod.string(),
|
3948
3993
|
to: mod.string(),
|
@@ -3961,6 +4006,7 @@ var require_types_cjs_development = __commonJS({
|
|
3961
4006
|
canEditChildren: mod.string(),
|
3962
4007
|
canRevokeChildren: mod.string(),
|
3963
4008
|
canManageChildrenPermissions: mod.string(),
|
4009
|
+
canManageChildrenProfiles: mod.boolean().default(false).optional(),
|
3964
4010
|
canViewAnalytics: mod.boolean()
|
3965
4011
|
});
|
3966
4012
|
var LCNBoostStatus = mod.enum(["DRAFT", "LIVE"]);
|