@levrbet/shared 0.5.84 → 0.5.86

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.
@@ -15,4 +15,5 @@ export interface EnsureUserProfileInput {
15
15
  walletAddress: string;
16
16
  referrerCode?: string | null;
17
17
  timeZone?: string;
18
+ signupCampaign?: string | null;
18
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levrbet/shared",
3
- "version": "0.5.84",
3
+ "version": "0.5.86",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -16,6 +16,22 @@ model FreeBetCampaign {
16
16
  @@index([sourceRef])
17
17
  }
18
18
 
19
+ model PreparedCampaign {
20
+ objectId String @id @default(auto()) @map("_id") @db.ObjectId
21
+ sourceRef String @unique // "referrals:2026W28"
22
+ provider String // "referrals"
23
+ title String // "Referral Rewards 2026W28"
24
+ totalUsd Float
25
+ entryCount Int
26
+ entries Json // [{ ethAddress, amount }]
27
+ usedByMerkleRoot String? // set when a campaign is created from it
28
+
29
+ createdAt DateTime @default(now())
30
+ updatedAt DateTime @updatedAt
31
+
32
+ @@index([provider])
33
+ }
34
+
19
35
  model FreeBetCampaignEntry {
20
36
  objectId String @id @default(auto()) @map("_id") @db.ObjectId
21
37
  merkleRoot String
@@ -29,6 +29,7 @@ model User {
29
29
  email String?
30
30
  referralCode String? @unique
31
31
  referrerCode String?
32
+ signupCampaign String?
32
33
  timeZone String @default("UTC")
33
34
  preferredTimeZone String?
34
35
  userOddsPreference UserOddsPreference @default(American)
@@ -52,6 +53,8 @@ model User {
52
53
 
53
54
  createdAt DateTime @default(now())
54
55
  updatedAt DateTime @updatedAt
56
+
57
+ @@index([signupCampaign])
55
58
  }
56
59
 
57
60
  model TransactionHistory {