@simonarcher/fika-types 1.0.52 → 1.0.53

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/quest.d.ts +6 -11
  2. package/package.json +1 -1
package/dist/quest.d.ts CHANGED
@@ -7,8 +7,7 @@ export interface Quest {
7
7
  geographicScope: 'city' | 'country' | 'global';
8
8
  city?: string;
9
9
  countryCode?: string;
10
- shopIds: string[];
11
- steps: QuestStep[];
10
+ shopActions: QuestShopAction[];
12
11
  completionBonusPoints: number;
13
12
  rewards: QuestReward[];
14
13
  requirements: QuestRequirement[];
@@ -23,8 +22,7 @@ export interface Quest {
23
22
  totalParticipants: number;
24
23
  totalCompletions: number;
25
24
  }
26
- export interface QuestStep {
27
- stepNumber: number;
25
+ export interface QuestShopAction {
28
26
  shopId: string;
29
27
  requiredActions: QuestAction[];
30
28
  pointsReward: number;
@@ -47,17 +45,15 @@ export interface UserQuestProgress {
47
45
  questId: string;
48
46
  userId: string;
49
47
  status: 'not_started' | 'in_progress' | 'completed' | 'abandoned';
50
- currentStep: number;
51
- completedSteps: QuestStepProgress[];
48
+ completedShopActions: QuestShopActionProgress[];
52
49
  startedAt: Timestamp;
53
50
  completedAt?: Timestamp;
54
51
  totalPointsEarned: number;
55
52
  }
56
- export interface QuestStepProgress {
57
- stepNumber: number;
53
+ export interface QuestShopActionProgress {
58
54
  shopId: string;
59
55
  completedActions: CompletedAction[];
60
- completedAt: Timestamp;
56
+ completedAt?: Timestamp;
61
57
  pointsEarned: number;
62
58
  }
63
59
  export interface CompletedAction {
@@ -72,8 +68,7 @@ export interface QuestSubmissionData {
72
68
  geographicScope: 'city' | 'country' | 'global';
73
69
  city?: string;
74
70
  countryCode?: string;
75
- shopIds: string[];
76
- steps: Omit<QuestStep, 'stepNumber'>[];
71
+ shopActions: QuestShopAction[];
77
72
  completionBonusPoints: number;
78
73
  rewards: QuestReward[];
79
74
  requirements: QuestRequirement[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonarcher/fika-types",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "Shared TypeScript types for Fika projects",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",