@vestcards/shared 0.1.0 → 0.3.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +21 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,3 +1,11 @@
1
+ export declare interface ArchivedLibraryItem {
2
+ deckId: string;
3
+ subject: string;
4
+ topic: string;
5
+ title: string;
6
+ ownerId?: string;
7
+ }
8
+
1
9
  export declare type BillingType = 'PIX' | 'CREDIT_CARD' | 'BOLETO';
2
10
 
3
11
  export declare type CardState = 'New' | 'Learning' | 'Review' | 'Relearning';
@@ -24,11 +32,21 @@ export declare interface GradeCardInput {
24
32
  reviewDurationInSeconds: number;
25
33
  }
26
34
 
35
+ export declare type GroupedLibraryData = GroupedLibraryItem[];
36
+
37
+ export declare interface GroupedLibraryItem {
38
+ name: string;
39
+ id: string;
40
+ ownerId?: string;
41
+ type: StudyType;
42
+ stats: SessionStats;
43
+ subRows?: GroupedLibraryItem[];
44
+ }
45
+
27
46
  export declare interface ICard {
28
47
  id: string;
29
48
  question: string;
30
49
  answer: string | null;
31
- order: number;
32
50
  frontImage?: {
33
51
  id: string;
34
52
  url: string;
@@ -94,6 +112,8 @@ export declare interface SessionStats {
94
112
  total: number;
95
113
  }
96
114
 
115
+ export declare type StudyStatus = 'not-started' | 'suspended' | 'has-cards' | 'no-cards';
116
+
97
117
  export declare type StudyType = 'ALL' | 'DECK' | 'TOPIC' | 'SUBJECT';
98
118
 
99
119
  export declare type Subject = (typeof SUBJECTS)[number];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vestcards/shared",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {