@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@learncard/types",
3
- "version": "5.18.2",
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