@misternooblet/squara-types 1.0.11 → 1.0.13
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.
|
@@ -13,8 +13,8 @@ export interface SplitDetail {
|
|
|
13
13
|
ratio: number;
|
|
14
14
|
amount: number;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
17
|
-
|
|
16
|
+
export interface Expense {
|
|
17
|
+
_id: string;
|
|
18
18
|
groupId: string;
|
|
19
19
|
title: string;
|
|
20
20
|
amount: number;
|
|
@@ -22,12 +22,12 @@ export interface ExpenseDocument {
|
|
|
22
22
|
paidBy: string;
|
|
23
23
|
splitDetails: Record<string, SplitDetail>;
|
|
24
24
|
category: ExpenseCategory;
|
|
25
|
-
date:
|
|
25
|
+
date: string;
|
|
26
26
|
notes?: string;
|
|
27
27
|
receiptURL?: string;
|
|
28
28
|
createdBy: string;
|
|
29
|
-
createdAt:
|
|
30
|
-
updatedAt:
|
|
29
|
+
createdAt: string;
|
|
30
|
+
updatedAt: string;
|
|
31
31
|
}
|
|
32
32
|
export interface CreateExpenseInput {
|
|
33
33
|
groupId: string;
|
|
@@ -35,7 +35,7 @@ export interface CreateExpenseInput {
|
|
|
35
35
|
amount: number;
|
|
36
36
|
paidBy: string;
|
|
37
37
|
category: ExpenseCategory;
|
|
38
|
-
date:
|
|
38
|
+
date: string;
|
|
39
39
|
notes?: string;
|
|
40
40
|
}
|
|
41
41
|
export interface EditExpenseInput {
|
|
@@ -45,6 +45,6 @@ export interface EditExpenseInput {
|
|
|
45
45
|
amount: number;
|
|
46
46
|
paidBy: string;
|
|
47
47
|
category: ExpenseCategory;
|
|
48
|
-
date:
|
|
48
|
+
date: string;
|
|
49
49
|
notes?: string;
|
|
50
50
|
}
|
package/dist/expense/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ExpenseCategory, SplitDetail,
|
|
1
|
+
export { ExpenseCategory, SplitDetail, Expense, CreateExpenseInput, EditExpenseInput } from './expense';
|
package/dist/group/group.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface GroupMember {
|
|
|
13
13
|
displayName: string;
|
|
14
14
|
photoURL?: string;
|
|
15
15
|
role: GroupMemberRole;
|
|
16
|
-
joinedAt:
|
|
16
|
+
joinedAt: string;
|
|
17
17
|
splitRatio: number;
|
|
18
18
|
}
|
|
19
19
|
export interface Group {
|
|
@@ -27,10 +27,10 @@ export interface Group {
|
|
|
27
27
|
currency: string;
|
|
28
28
|
isSettled: boolean;
|
|
29
29
|
isArchived: boolean;
|
|
30
|
-
tripStartDate?:
|
|
31
|
-
tripEndDate?:
|
|
30
|
+
tripStartDate?: string;
|
|
31
|
+
tripEndDate?: string;
|
|
32
32
|
inviteToken?: string;
|
|
33
|
-
createdAt:
|
|
34
|
-
updatedAt:
|
|
35
|
-
lastExpenseAt?:
|
|
33
|
+
createdAt: string;
|
|
34
|
+
updatedAt: string;
|
|
35
|
+
lastExpenseAt?: string;
|
|
36
36
|
}
|
package/dist/user/user.d.ts
CHANGED
|
@@ -5,15 +5,15 @@ export interface User {
|
|
|
5
5
|
displayName: string;
|
|
6
6
|
photoURL?: string;
|
|
7
7
|
plan: SubscriptionPlan;
|
|
8
|
-
planExpiresAt?:
|
|
8
|
+
planExpiresAt?: string;
|
|
9
9
|
revenueCatId?: string;
|
|
10
10
|
scanCount: number;
|
|
11
|
-
scanResetDate:
|
|
11
|
+
scanResetDate: string;
|
|
12
12
|
ownedGroupCount: number;
|
|
13
13
|
currency: string;
|
|
14
|
-
createdAt:
|
|
15
|
-
updatedAt:
|
|
16
|
-
lastActiveAt:
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
lastActiveAt: string;
|
|
17
17
|
}
|
|
18
18
|
export declare const DEFAULT_USER_DOCUMENT: {
|
|
19
19
|
plan: SubscriptionPlan;
|