@simonarcher/fika-types 1.0.91 → 1.0.93
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/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/stickers.d.ts +22 -0
- package/dist/stickers.js +2 -0
- package/dist/user.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -44,3 +44,5 @@ __exportStar(require("./shopAnalytics"), exports);
|
|
|
44
44
|
__exportStar(require("./shopCorrections"), exports);
|
|
45
45
|
// Export currency utilities
|
|
46
46
|
__exportStar(require("./currencyUtils"), exports);
|
|
47
|
+
// Export all stickers-related types
|
|
48
|
+
__exportStar(require("./stickers"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Timestamp } from "firebase-admin/firestore";
|
|
2
|
+
export type StickerRarity = 'common' | 'rare' | 'epic' | 'legendary';
|
|
3
|
+
export type StickerCategory = 'achievement' | 'activity' | 'social' | 'special' | 'fika' | 'shop' | 'sticker';
|
|
4
|
+
export interface Sticker {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
imageUrl?: string;
|
|
9
|
+
rarity: StickerRarity;
|
|
10
|
+
category: StickerCategory;
|
|
11
|
+
color?: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
iconFamily?: 'MaterialCommunityIcons' | 'Octicons' | 'FontAwesome5';
|
|
14
|
+
shape?: 'circle' | 'rounded-rect';
|
|
15
|
+
isDefault?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface UserSticker {
|
|
18
|
+
userId: string;
|
|
19
|
+
stickerId: string;
|
|
20
|
+
unlockedAt: Timestamp | Date;
|
|
21
|
+
metadata?: any;
|
|
22
|
+
}
|
package/dist/stickers.js
ADDED
package/dist/user.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface User {
|
|
|
20
20
|
[key: string]: any;
|
|
21
21
|
};
|
|
22
22
|
expoPushTokens?: string[];
|
|
23
|
+
featuredStickerIds?: string[];
|
|
23
24
|
notificationPreferences?: {
|
|
24
25
|
channels: {
|
|
25
26
|
[channelId: string]: {
|
|
@@ -45,6 +46,7 @@ export interface PublicUser {
|
|
|
45
46
|
phoneNumber?: string;
|
|
46
47
|
createdAt: Date;
|
|
47
48
|
shopLists?: string[];
|
|
49
|
+
featuredStickerIds?: string[];
|
|
48
50
|
}
|
|
49
51
|
export interface CreateUserAccountRequest {
|
|
50
52
|
email: string;
|