@misternooblet/squara-types 1.0.6 → 1.0.8
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/expense/expense.d.ts +4 -4
- package/dist/group/group.d.ts +5 -4
- package/dist/user/user.d.ts +5 -5
- package/dist/user/user.js +2 -2
- package/package.json +1 -1
|
@@ -23,8 +23,8 @@ export interface ExpenseDocument {
|
|
|
23
23
|
splitDetails: Record<string, SplitDetail>;
|
|
24
24
|
category: ExpenseCategory;
|
|
25
25
|
date: Date;
|
|
26
|
-
notes
|
|
27
|
-
receiptURL
|
|
26
|
+
notes?: string;
|
|
27
|
+
receiptURL?: string;
|
|
28
28
|
createdBy: string;
|
|
29
29
|
createdAt: Date;
|
|
30
30
|
updatedAt: Date;
|
|
@@ -36,7 +36,7 @@ export interface CreateExpenseInput {
|
|
|
36
36
|
paidBy: string;
|
|
37
37
|
category: ExpenseCategory;
|
|
38
38
|
date: Date;
|
|
39
|
-
notes?: string
|
|
39
|
+
notes?: string;
|
|
40
40
|
}
|
|
41
41
|
export interface EditExpenseInput {
|
|
42
42
|
groupId: string;
|
|
@@ -46,5 +46,5 @@ export interface EditExpenseInput {
|
|
|
46
46
|
paidBy: string;
|
|
47
47
|
category: ExpenseCategory;
|
|
48
48
|
date: Date;
|
|
49
|
-
notes?: string
|
|
49
|
+
notes?: string;
|
|
50
50
|
}
|
package/dist/group/group.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare enum GroupMemberRole {
|
|
|
11
11
|
export interface GroupMember {
|
|
12
12
|
uid: string;
|
|
13
13
|
displayName: string;
|
|
14
|
-
photoURL
|
|
14
|
+
photoURL?: string;
|
|
15
15
|
role: GroupMemberRole;
|
|
16
16
|
joinedAt: Date;
|
|
17
17
|
splitRatio: number;
|
|
@@ -27,9 +27,10 @@ export interface Group {
|
|
|
27
27
|
currency: string;
|
|
28
28
|
isSettled: boolean;
|
|
29
29
|
isArchived: boolean;
|
|
30
|
-
tripStartDate
|
|
31
|
-
tripEndDate
|
|
30
|
+
tripStartDate?: Date;
|
|
31
|
+
tripEndDate?: Date;
|
|
32
|
+
inviteToken?: string;
|
|
32
33
|
createdAt: Date;
|
|
33
34
|
updatedAt: Date;
|
|
34
|
-
lastExpenseAt
|
|
35
|
+
lastExpenseAt?: Date;
|
|
35
36
|
}
|
package/dist/user/user.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export interface User {
|
|
|
3
3
|
uid: string;
|
|
4
4
|
email: string;
|
|
5
5
|
displayName: string;
|
|
6
|
-
photoURL
|
|
6
|
+
photoURL?: string;
|
|
7
7
|
plan: SubscriptionPlan;
|
|
8
|
-
planExpiresAt
|
|
9
|
-
revenueCatId
|
|
8
|
+
planExpiresAt?: Date;
|
|
9
|
+
revenueCatId?: string;
|
|
10
10
|
scanCount: number;
|
|
11
11
|
scanResetDate: Date;
|
|
12
12
|
groupCount: number;
|
|
@@ -17,8 +17,8 @@ export interface User {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const DEFAULT_USER_DOCUMENT: {
|
|
19
19
|
plan: SubscriptionPlan;
|
|
20
|
-
planExpiresAt:
|
|
21
|
-
revenueCatId:
|
|
20
|
+
planExpiresAt: undefined;
|
|
21
|
+
revenueCatId: undefined;
|
|
22
22
|
scanCount: number;
|
|
23
23
|
groupCount: number;
|
|
24
24
|
currency: string;
|
package/dist/user/user.js
CHANGED
|
@@ -4,8 +4,8 @@ exports.DEFAULT_USER_DOCUMENT = void 0;
|
|
|
4
4
|
const user_subscription_1 = require("../user-subscription");
|
|
5
5
|
exports.DEFAULT_USER_DOCUMENT = {
|
|
6
6
|
plan: user_subscription_1.SubscriptionPlan.Free,
|
|
7
|
-
planExpiresAt:
|
|
8
|
-
revenueCatId:
|
|
7
|
+
planExpiresAt: undefined,
|
|
8
|
+
revenueCatId: undefined,
|
|
9
9
|
scanCount: 0,
|
|
10
10
|
groupCount: 0,
|
|
11
11
|
currency: 'USD',
|