@simonarcher/fika-types 1.0.91 → 1.0.92

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 CHANGED
@@ -13,3 +13,4 @@ export * from './rewards';
13
13
  export * from './shopAnalytics';
14
14
  export * from './shopCorrections';
15
15
  export * from './currencyUtils';
16
+ export * from './stickers';
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,21 @@
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';
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
+ }
16
+ export interface UserSticker {
17
+ userId: string;
18
+ stickerId: string;
19
+ unlockedAt: Timestamp | Date;
20
+ metadata?: any;
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonarcher/fika-types",
3
- "version": "1.0.91",
3
+ "version": "1.0.92",
4
4
  "description": "Shared TypeScript types for Fika projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",