@learncard/core 8.5.0 → 8.5.1

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.
@@ -2,6 +2,17 @@ import { UnsignedVC, VC, UnsignedVP } from '@learncard/types';
2
2
  import { DiscriminatedUnionize } from '../../../types/helpers';
3
3
  import { Plugin } from '../../../types/wallet';
4
4
  /** @group VC Templates Plugin */
5
+ export type BoostAttachment = {
6
+ type?: string;
7
+ title?: string;
8
+ url?: string;
9
+ };
10
+ /** @group VC Templates Plugin */
11
+ export type BoostDisplay = {
12
+ backgroundImage?: string;
13
+ backgroundColor?: string;
14
+ };
15
+ /** @group VC Templates Plugin */
5
16
  export type VcTemplates = {
6
17
  basic: {
7
18
  did?: string;
@@ -22,6 +33,23 @@ export type VcTemplates = {
22
33
  subject?: string;
23
34
  issuanceDate?: string;
24
35
  };
36
+ boost: {
37
+ did?: string;
38
+ subject?: string;
39
+ issuanceDate?: string;
40
+ expirationDate?: string;
41
+ boostId?: string;
42
+ boostName?: string;
43
+ boostImage?: string;
44
+ achievementId?: string;
45
+ achievementType?: string;
46
+ achievementName?: string;
47
+ achievementDescription?: string;
48
+ achievementNarrative?: string;
49
+ achievementImage?: string;
50
+ attachments?: BoostAttachment[];
51
+ display?: BoostDisplay;
52
+ };
25
53
  };
26
54
  /** @group VC Templates Plugin */
27
55
  export type NewCredentialFunction = (args?: DiscriminatedUnionize<VcTemplates>) => UnsignedVC;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@learncard/core",
3
- "version": "8.5.0",
3
+ "version": "8.5.1",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/core.esm.js",
@@ -34,7 +34,7 @@
34
34
  "ts-jest": "^29.0.3",
35
35
  "tsc-alias": "^1.6.9",
36
36
  "typescript": "^4.6.4",
37
- "@learncard/types": "5.2.0"
37
+ "@learncard/types": "5.2.1"
38
38
  },
39
39
  "types": "./dist/index.d.ts",
40
40
  "dependencies": {