@learncard/types 5.18.2 → 5.18.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/credential-format.d.ts.map +1 -1
- package/dist/inAppMessages.d.ts.map +1 -1
- package/dist/lcn.d.ts +7 -0
- package/dist/lcn.d.ts.map +1 -1
- package/dist/types.cjs.development.cjs +2 -1
- package/dist/types.cjs.development.cjs.map +2 -2
- package/dist/types.cjs.production.min.cjs +1 -1
- package/dist/types.cjs.production.min.cjs.map +2 -2
- package/dist/types.esm.js +2 -1
- package/dist/types.esm.js.map +2 -2
- package/package.json +2 -1
- package/src/lcn.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learncard/types",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.3",
|
|
4
4
|
"description": "Shared types for learn card",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.cjs && tsc --p tsconfig.json && shx cp ./dist/index.d.ts ./dist/index.d.cts",
|
|
27
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
27
28
|
"start": "aqu watch"
|
|
28
29
|
},
|
|
29
30
|
"author": "Learning Economy Foundation (www.learningeconomy.io)",
|
package/src/lcn.ts
CHANGED
|
@@ -154,6 +154,10 @@ export type LCNAuthedProfile = z.infer<typeof LCNAuthedProfileValidator>;
|
|
|
154
154
|
|
|
155
155
|
export const LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
|
|
156
156
|
email: LCNProfileValidator.shape.email,
|
|
157
|
+
connectedAt: z.iso
|
|
158
|
+
.datetime()
|
|
159
|
+
.optional()
|
|
160
|
+
.describe('When the viewer and this profile became connected.'),
|
|
157
161
|
});
|
|
158
162
|
export type LCNConnectionProfile = z.infer<typeof LCNConnectionProfileValidator>;
|
|
159
163
|
|