@stackedapp/types 1.9.10 → 1.9.11
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 +17 -6
- package/package.json +1 -1
package/dist/stacked-types.d.ts
CHANGED
|
@@ -729,10 +729,7 @@ type Nullable<T> = {
|
|
|
729
729
|
/** this is the Stacked platforms' copy of a user/entity's snapshot for the current app/game */
|
|
730
730
|
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'>>;
|
|
731
731
|
/** Currencies for this entity that is populated with name and image information */
|
|
732
|
-
type StackedEntityCurrencies = Record<string, IPlayerDataCurrency
|
|
733
|
-
name: string;
|
|
734
|
-
image?: string;
|
|
735
|
-
}>;
|
|
732
|
+
type StackedEntityCurrencies = Record<string, IPlayerDataCurrency>;
|
|
736
733
|
/** represents a stacked entity's snapshot's data within a specific app/game. This is scoped to the app/game!
|
|
737
734
|
* Has information about stacked currencies of this entity earned through this specific app/game
|
|
738
735
|
*/
|
|
@@ -843,15 +840,29 @@ interface StackedUserComplete {
|
|
|
843
840
|
};
|
|
844
841
|
}
|
|
845
842
|
|
|
843
|
+
/** Relevant assets like currencies with name image information so that the client
|
|
844
|
+
* can render name/image
|
|
845
|
+
*/
|
|
846
|
+
interface StackedAssets {
|
|
847
|
+
currencies: Record<string, {
|
|
848
|
+
name: string;
|
|
849
|
+
image: string;
|
|
850
|
+
}>;
|
|
851
|
+
}
|
|
852
|
+
|
|
846
853
|
/** Base campaigns response - shared fields between client and server */
|
|
847
854
|
interface StackedCampaignsBaseResponse extends StackedUserResponse {
|
|
848
855
|
/** List of offers/campaigns for the player */
|
|
849
856
|
offers: StackedOffer[];
|
|
850
857
|
/**
|
|
851
858
|
* @deprecated
|
|
852
|
-
* look at
|
|
853
|
-
*
|
|
859
|
+
* look at assets for currencies asset information name/image. The actually currencies on
|
|
860
|
+
* the player is in stackedUser.currencies */
|
|
854
861
|
currencies?: StackedEntityCurrencies;
|
|
862
|
+
/** Relevant assets like currencies with name image information so that the client
|
|
863
|
+
* can render name/image
|
|
864
|
+
*/
|
|
865
|
+
assets: StackedAssets;
|
|
855
866
|
}
|
|
856
867
|
/** Client-side campaigns response (from JWT-authenticated endpoints). Returns a list of offers plus
|
|
857
868
|
* user snapshot and stacked user-specific data.
|