@stackedapp/types 1.5.5 → 1.5.7
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/stacked-types.d.ts +4 -1
- package/package.json +1 -1
package/dist/stacked-types.d.ts
CHANGED
|
@@ -720,8 +720,11 @@ interface IPlayerIpInfo {
|
|
|
720
720
|
continentCode?: string;
|
|
721
721
|
}
|
|
722
722
|
|
|
723
|
+
type Nullable<T> = {
|
|
724
|
+
[K in keyof T]?: T[K] | null;
|
|
725
|
+
};
|
|
723
726
|
/** this is the Stacked platforms' copy of a user/entity's snapshot for the current app/game */
|
|
724
|
-
type StackedSnapshot = Pick<IPlayerSnapshot, '_id' | 'gameId' | 'playerId' | 'unifiedUserLinkedAt' | 'unifiedUserUnlinkedAt' | 'referredById' | 'username' | 'snapshotLastUpdated' | 'offersLastChecked' | 'daysInGame' | 'loginStreak' | 'daysInGameLastUpdated' | 'dateSignedUp' | 'dynamic' | 'stakedTokens' | 'currencies' | 'levels' | 'quests' | 'trustScore' | 'trustLastUpdated' | 'achievements' | 'memberships' | 'identifiers' | 'entityKind' | 'entityLinks'
|
|
727
|
+
type StackedSnapshot = Nullable<Pick<IPlayerSnapshot, '_id' | 'gameId' | 'playerId' | 'unifiedUserLinkedAt' | 'unifiedUserUnlinkedAt' | 'referredById' | 'username' | 'snapshotLastUpdated' | 'offersLastChecked' | 'daysInGame' | 'loginStreak' | 'daysInGameLastUpdated' | 'dateSignedUp' | 'dynamic' | 'stakedTokens' | 'currencies' | 'levels' | 'quests' | 'trustScore' | 'trustLastUpdated' | 'achievements' | 'memberships' | 'cryptoWallets' | 'identifiers' | 'entityKind' | 'entityLinks'>>;
|
|
725
728
|
/** represents a stacked snapshot's data within a specific app/game. This is scoped to the app/game! */
|
|
726
729
|
type StackedSnapshotData = Pick<IPlayerData, 'gameId' | 'playerId' | 'currencies'>;
|
|
727
730
|
|