@nexeraprotocol/nexera-id-schemas
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -100,2 +100,20 @@ 'use strict'; | ||
}); | ||
var topicToHumanReadable = function topicToHumanReadable(topic) { | ||
switch (topic) { | ||
case "KYC_JOURNEY_GBG_STARTED": | ||
return "KYC started"; | ||
case "KYC_JOURNEY_GBG_END": | ||
return "KYC ended"; | ||
case "KYC_JOURNEY_GBG_IDSCAN_COMPLETED": | ||
return "ID scan completed"; | ||
case "KYC_JOURNEY_GBG_ID3_COMPLETED": | ||
return "ID3 completed"; | ||
case "KYC_JOURNEY_DATA_SUBMITTED": | ||
return "Data submitted"; | ||
case "KYC_AUTH_ACCESS_TOKEN": | ||
return "SDK opened"; | ||
default: | ||
return topic; | ||
} | ||
}; | ||
@@ -108,1 +126,2 @@ exports.ApiSessionDataSchema = ApiSessionDataSchema; | ||
exports.RequestLoggerSchema = RequestLoggerSchema; | ||
exports.topicToHumanReadable = topicToHumanReadable; |
@@ -100,2 +100,20 @@ 'use strict'; | ||
}); | ||
var topicToHumanReadable = function topicToHumanReadable(topic) { | ||
switch (topic) { | ||
case "KYC_JOURNEY_GBG_STARTED": | ||
return "KYC started"; | ||
case "KYC_JOURNEY_GBG_END": | ||
return "KYC ended"; | ||
case "KYC_JOURNEY_GBG_IDSCAN_COMPLETED": | ||
return "ID scan completed"; | ||
case "KYC_JOURNEY_GBG_ID3_COMPLETED": | ||
return "ID3 completed"; | ||
case "KYC_JOURNEY_DATA_SUBMITTED": | ||
return "Data submitted"; | ||
case "KYC_AUTH_ACCESS_TOKEN": | ||
return "SDK opened"; | ||
default: | ||
return topic; | ||
} | ||
}; | ||
@@ -108,1 +126,2 @@ exports.ApiSessionDataSchema = ApiSessionDataSchema; | ||
exports.RequestLoggerSchema = RequestLoggerSchema; | ||
exports.topicToHumanReadable = topicToHumanReadable; |
@@ -96,3 +96,21 @@ import { z } from 'zod'; | ||
}); | ||
var topicToHumanReadable = function topicToHumanReadable(topic) { | ||
switch (topic) { | ||
case "KYC_JOURNEY_GBG_STARTED": | ||
return "KYC started"; | ||
case "KYC_JOURNEY_GBG_END": | ||
return "KYC ended"; | ||
case "KYC_JOURNEY_GBG_IDSCAN_COMPLETED": | ||
return "ID scan completed"; | ||
case "KYC_JOURNEY_GBG_ID3_COMPLETED": | ||
return "ID3 completed"; | ||
case "KYC_JOURNEY_DATA_SUBMITTED": | ||
return "Data submitted"; | ||
case "KYC_AUTH_ACCESS_TOKEN": | ||
return "SDK opened"; | ||
default: | ||
return topic; | ||
} | ||
}; | ||
export { ApiSessionDataSchema, CmsSessionDataSchema, LogDataSchema, LogDataTopic, LogDataTopics, RequestLoggerSchema }; | ||
export { ApiSessionDataSchema, CmsSessionDataSchema, LogDataSchema, LogDataTopic, LogDataTopics, RequestLoggerSchema, topicToHumanReadable }; |
@@ -366,2 +366,3 @@ import { z } from "zod"; | ||
export type RequestLogger = z.infer<typeof RequestLoggerSchema>; | ||
export declare const topicToHumanReadable: (topic: LogDataTopic) => string; | ||
//# sourceMappingURL=api.d.ts.map |
@@ -25,11 +25,11 @@ import { z } from "zod"; | ||
topic: z.ZodOptional<z.ZodNullable<z.ZodEnum<["KYC_AUTH_ACCESS_TOKEN", "KYC_JOURNEY_GBG_END", "KYC_JOURNEY_GBG_STARTED", "KYC_JOURNEY_GBG_IDSCAN_COMPLETED", "KYC_JOURNEY_GBG_ID3_COMPLETED", "KYC_JOURNEY_DATA_SUBMITTED"]>>>; | ||
createdAt: z.ZodString; | ||
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
count: number; | ||
createdAt: string; | ||
topic?: "KYC_AUTH_ACCESS_TOKEN" | "KYC_JOURNEY_GBG_END" | "KYC_JOURNEY_GBG_STARTED" | "KYC_JOURNEY_GBG_IDSCAN_COMPLETED" | "KYC_JOURNEY_GBG_ID3_COMPLETED" | "KYC_JOURNEY_DATA_SUBMITTED" | null | undefined; | ||
createdAt?: string | null | undefined; | ||
}, { | ||
count: number; | ||
createdAt: string; | ||
topic?: "KYC_AUTH_ACCESS_TOKEN" | "KYC_JOURNEY_GBG_END" | "KYC_JOURNEY_GBG_STARTED" | "KYC_JOURNEY_GBG_IDSCAN_COMPLETED" | "KYC_JOURNEY_GBG_ID3_COMPLETED" | "KYC_JOURNEY_DATA_SUBMITTED" | null | undefined; | ||
createdAt?: string | null | undefined; | ||
}>, "many">; | ||
@@ -63,11 +63,11 @@ export type GetKycCountsOutput = z.infer<typeof GetKycCountsOutput>; | ||
status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>; | ||
createdAt: z.ZodDate; | ||
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
status: "valid" | "error" | "unknown" | "not-valid"; | ||
count: number; | ||
createdAt: Date; | ||
createdAt?: string | null | undefined; | ||
}, { | ||
status: "valid" | "error" | "unknown" | "not-valid"; | ||
count: number; | ||
createdAt: Date; | ||
createdAt?: string | null | undefined; | ||
}>, "many">; | ||
@@ -103,3 +103,3 @@ export type GetRuleCountsOutput = z.infer<typeof GetRuleCountsOutput>; | ||
createdAt: z.ZodDate; | ||
data: z.ZodString; | ||
data: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
walletAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; | ||
@@ -109,3 +109,2 @@ did: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
id: number; | ||
data: string; | ||
sessionId: string; | ||
@@ -118,6 +117,6 @@ createdAt: Date; | ||
scenarioId?: string | null | undefined; | ||
data?: string | null | undefined; | ||
did?: string | null | undefined; | ||
}, { | ||
id: number; | ||
data: string; | ||
sessionId: string; | ||
@@ -130,2 +129,3 @@ createdAt: Date; | ||
scenarioId?: string | null | undefined; | ||
data?: string | null | undefined; | ||
did?: string | null | undefined; | ||
@@ -142,3 +142,3 @@ }>; | ||
createdAt: z.ZodDate; | ||
data: z.ZodString; | ||
data: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
walletAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>; | ||
@@ -148,3 +148,2 @@ did: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
id: number; | ||
data: string; | ||
sessionId: string; | ||
@@ -157,6 +156,6 @@ createdAt: Date; | ||
scenarioId?: string | null | undefined; | ||
data?: string | null | undefined; | ||
did?: string | null | undefined; | ||
}, { | ||
id: number; | ||
data: string; | ||
sessionId: string; | ||
@@ -169,2 +168,3 @@ createdAt: Date; | ||
scenarioId?: string | null | undefined; | ||
data?: string | null | undefined; | ||
did?: string | null | undefined; | ||
@@ -171,0 +171,0 @@ }>, "many">; |
{ | ||
"name": "@nexeraprotocol/nexera-id-schemas", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/nexeraprotocol-nexera-id-schemas.cjs.js", |
{ | ||
"name": "@nexeraprotocol/nexera-id-schemas", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/nexeraprotocol-nexera-id-schemas.cjs.js", |
@@ -24,3 +24,3 @@ 'use strict'; | ||
topic: api_dist_nexeraprotocolNexeraIdSchemasApi.LogDataTopic.nullish(), | ||
createdAt: zod.z.string() | ||
createdAt: zod.z.string().nullish() | ||
})); | ||
@@ -38,3 +38,3 @@ var GetRuleCountsParams = zod.z.object({ | ||
status: compliance_executeScenario_dist_nexeraprotocolNexeraIdSchemasComplianceExecuteScenario.RuleResultStatus, | ||
createdAt: zod.z.date() | ||
createdAt: zod.z.string().nullish() | ||
})); | ||
@@ -56,3 +56,3 @@ var GetRulesExecutionsParams = zod.z.object({ | ||
createdAt: zod.z.coerce.date(), | ||
data: zod.z.string(), | ||
data: zod.z.string().nullish(), | ||
// z.union([IDScanCredentialSubjectSchema, ID3CredentialSubjectSchema]), | ||
@@ -59,0 +59,0 @@ /*dataTyped: z.union([ |
@@ -24,3 +24,3 @@ 'use strict'; | ||
topic: api_dist_nexeraprotocolNexeraIdSchemasApi.LogDataTopic.nullish(), | ||
createdAt: zod.z.string() | ||
createdAt: zod.z.string().nullish() | ||
})); | ||
@@ -38,3 +38,3 @@ var GetRuleCountsParams = zod.z.object({ | ||
status: compliance_executeScenario_dist_nexeraprotocolNexeraIdSchemasComplianceExecuteScenario.RuleResultStatus, | ||
createdAt: zod.z.date() | ||
createdAt: zod.z.string().nullish() | ||
})); | ||
@@ -56,3 +56,3 @@ var GetRulesExecutionsParams = zod.z.object({ | ||
createdAt: zod.z.coerce.date(), | ||
data: zod.z.string(), | ||
data: zod.z.string().nullish(), | ||
// z.union([IDScanCredentialSubjectSchema, ID3CredentialSubjectSchema]), | ||
@@ -59,0 +59,0 @@ /*dataTyped: z.union([ |
@@ -20,3 +20,3 @@ import { z } from 'zod'; | ||
topic: LogDataTopic.nullish(), | ||
createdAt: z.string() | ||
createdAt: z.string().nullish() | ||
})); | ||
@@ -34,3 +34,3 @@ var GetRuleCountsParams = z.object({ | ||
status: RuleResultStatus, | ||
createdAt: z.date() | ||
createdAt: z.string().nullish() | ||
})); | ||
@@ -52,3 +52,3 @@ var GetRulesExecutionsParams = z.object({ | ||
createdAt: z.coerce.date(), | ||
data: z.string(), | ||
data: z.string().nullish(), | ||
// z.union([IDScanCredentialSubjectSchema, ID3CredentialSubjectSchema]), | ||
@@ -55,0 +55,0 @@ /*dataTyped: z.union([ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1535207
31344