@stackedapp/types 1.9.13 → 1.9.15
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 +21 -6
- package/package.json +1 -1
package/dist/stacked-types.d.ts
CHANGED
|
@@ -803,22 +803,37 @@ type StackedAppConnection = {
|
|
|
803
803
|
/** represents a stacked entity's snapshot's data within a specific app/game. This is scoped to the app/game!
|
|
804
804
|
* Has information about stacked currencies of this entity earned through this specific app/game
|
|
805
805
|
*/
|
|
806
|
-
|
|
806
|
+
stacked: StackedEntityData;
|
|
807
807
|
};
|
|
808
808
|
/** Returned alongside offers when fetching a specific user/player's offers */
|
|
809
809
|
type StackedUserResponse = {
|
|
810
810
|
/** @deprecated use stackedData instead for stacked-scoped data (like currencies) */
|
|
811
811
|
data?: IClientPlayerData | null;
|
|
812
|
+
/**
|
|
813
|
+
* @deprecated
|
|
814
|
+
* old way of represent a unified user plus unified user extra plus apps
|
|
815
|
+
*/
|
|
816
|
+
gameData?: StackedSnapshot;
|
|
817
|
+
/**
|
|
818
|
+
* @deprecated
|
|
819
|
+
* old way of represent a StackedUser plus StackedUserExtra plus apps
|
|
820
|
+
*/
|
|
821
|
+
stackedData?: StackedUser & {
|
|
822
|
+
apps: {
|
|
823
|
+
[appId: string]: StackedEntityData;
|
|
824
|
+
};
|
|
825
|
+
};
|
|
812
826
|
user?: StackedUser;
|
|
813
827
|
} & StackedAppConnection;
|
|
814
828
|
/** @deprecated - old way of getting a specific game player's currencies in stacked */
|
|
815
829
|
type IClientPlayerData = StackedEntityData;
|
|
816
|
-
|
|
817
|
-
interface StackedUserComplete {
|
|
818
|
-
user: StackedUser;
|
|
830
|
+
type StackedUserWithApps = StackedUser & {
|
|
819
831
|
apps: {
|
|
820
832
|
[appId: string]: StackedAppConnection;
|
|
821
833
|
};
|
|
834
|
+
};
|
|
835
|
+
/** Stacked mobile/web app's initialize user response */
|
|
836
|
+
type StackedUserComplete = StackedUserWithApps & {
|
|
822
837
|
authMethods: {
|
|
823
838
|
wallets: Array<{
|
|
824
839
|
address: string;
|
|
@@ -838,7 +853,7 @@ interface StackedUserComplete {
|
|
|
838
853
|
providerUserId?: string;
|
|
839
854
|
}>;
|
|
840
855
|
};
|
|
841
|
-
}
|
|
856
|
+
};
|
|
842
857
|
|
|
843
858
|
type StackedAsset = {
|
|
844
859
|
name: string;
|
|
@@ -884,4 +899,4 @@ interface StackedCampaignsServerResponse extends StackedCampaignsBaseResponse {
|
|
|
884
899
|
|
|
885
900
|
type StackedEnv = IEnv;
|
|
886
901
|
|
|
887
|
-
export type { IClientPlayerData, StackedAppConnection, StackedBaseConditions, StackedBaseOffer, StackedBaseUser, StackedBaseUserExtra, StackedCampaignsResponse, StackedCampaignsServerResponse, StackedClaimableConditions, StackedClaimableTrackers, StackedCompletionConditions, StackedCompletionDynamicTracker, StackedCompletionTrackers, StackedDynamicCondition, StackedDynamicGroup, StackedEntityCurrencies, StackedEntityData, StackedEnv, StackedOffer, StackedOfferTrackers, StackedReward, StackedRewardKind, StackedSnapshot, StackedSnapshotProgress, StackedSocialTrackerAccumulate, StackedSocialTrackerAttach, StackedUser, StackedUserComplete, StackedUserOffer, StackedUserResponse, UserOfferStatus };
|
|
902
|
+
export type { IClientPlayerData, StackedAppConnection, StackedBaseConditions, StackedBaseOffer, StackedBaseUser, StackedBaseUserExtra, StackedCampaignsResponse, StackedCampaignsServerResponse, StackedClaimableConditions, StackedClaimableTrackers, StackedCompletionConditions, StackedCompletionDynamicTracker, StackedCompletionTrackers, StackedDynamicCondition, StackedDynamicGroup, StackedEntityCurrencies, StackedEntityData, StackedEnv, StackedOffer, StackedOfferTrackers, StackedReward, StackedRewardKind, StackedSnapshot, StackedSnapshotProgress, StackedSocialTrackerAccumulate, StackedSocialTrackerAttach, StackedUser, StackedUserComplete, StackedUserOffer, StackedUserResponse, StackedUserWithApps, UserOfferStatus };
|