@stackedapp/types 1.15.12 → 1.16.0
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 -2
- package/package.json +1 -1
package/dist/stacked-types.d.ts
CHANGED
|
@@ -130,6 +130,16 @@ interface IBaseCondition {
|
|
|
130
130
|
/** Maximum total balance allowed */
|
|
131
131
|
max?: number;
|
|
132
132
|
}>;
|
|
133
|
+
/** Stacked account conditions */
|
|
134
|
+
stackedAccount?: {
|
|
135
|
+
/** Has a linked stacked account */
|
|
136
|
+
hasLinkedAccount?: boolean;
|
|
137
|
+
/** Number of linked crypto wallets */
|
|
138
|
+
cryptoWallets?: {
|
|
139
|
+
min?: number;
|
|
140
|
+
max?: number;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
133
143
|
}
|
|
134
144
|
|
|
135
145
|
/** conditions that must be met for an already surfaced offer to be claimable */
|
|
@@ -774,6 +784,10 @@ type StackedSocialTrackerAccumulate = ISocialTrackerAccumulate;
|
|
|
774
784
|
type StackedSocialTrackerAttach = ISocialTrackerAttach;
|
|
775
785
|
type StackedDynamicGroup = IDynamicGroup;
|
|
776
786
|
type StackedClaimableConditions = IOffer['claimableConditions'];
|
|
787
|
+
/** Keys for nested stackedAccount conditions (e.g., 'stackedAccount.cryptoWallets') */
|
|
788
|
+
type StackedAccountConditionKeys = `stackedAccount.${keyof NonNullable<StackedBaseConditions['stackedAccount']>}`;
|
|
789
|
+
/** All possible condition kind values for base + completion conditions */
|
|
790
|
+
type StackedConditionKind = keyof StackedCompletionConditions | StackedAccountConditionKeys | 'context';
|
|
777
791
|
type StackedClaimableTrackers = IPlayerOffer['claimableTrackers'];
|
|
778
792
|
/** Stripped sibling offer data for client rendering */
|
|
779
793
|
interface StackedSnapshotProgress {
|
|
@@ -808,7 +822,7 @@ type StackedOffer = StackedBaseOffer & StackedUserOffer & {
|
|
|
808
822
|
} & StackedOfferHelpers;
|
|
809
823
|
type ConditionDetail = {
|
|
810
824
|
isMet: boolean;
|
|
811
|
-
kind?:
|
|
825
|
+
kind?: StackedConditionKind;
|
|
812
826
|
/** @deprecated Use percentCompleted instead */
|
|
813
827
|
trackerAmount?: number;
|
|
814
828
|
/** @deprecated Use percentCompleted instead */
|
|
@@ -851,6 +865,7 @@ interface StackedBaseUserExtra {
|
|
|
851
865
|
cryptoWallets?: Array<IUserCryptoWallet & {
|
|
852
866
|
balances?: Record<string, number>;
|
|
853
867
|
}>;
|
|
868
|
+
hasStackedAccount: boolean;
|
|
854
869
|
}
|
|
855
870
|
/** Base stacked user that includes their id, app connections connected to their stacked account, crypto wallets
|
|
856
871
|
* information
|
|
@@ -1463,4 +1478,4 @@ type StackedCurrencyPrice = ILibraryCurrencyPrice;
|
|
|
1463
1478
|
|
|
1464
1479
|
type StackedEnv = IEnv;
|
|
1465
1480
|
|
|
1466
|
-
export type { CompleteCryptoAuthResponse, CompleteOAuthResponse, CompleteOneTimeAuthResponse, ConditionDetail, ConditionResult, CurrencyUnit, DeleteAccountResponse, ExchangeOneTimeTokenForSessionTokenResponse, ExchangeStackedLinkTokenResponse, GenerateStackedLinkTokenResponse, GetOneTimeAuthTokenResponse, IClientPlayerData, InitializeUnifiedUserResponse, LinkExternalGameToUnifiedAccountResponse, RemoveAuthMethodResponse, RemoveOAuthProviderResponse, SignOutUnifiedUserResponse, StackedAppConnection, StackedAppState, StackedBaseConditions, StackedBaseOffer, StackedBaseUser, StackedBaseUserExtra, StackedCampaignsResponse, StackedCampaignsServerResponse, StackedClaimableConditions, StackedClaimableTrackers, StackedCompletionConditions, StackedCompletionDynamicTracker, StackedCompletionTrackers, StackedContentItem, StackedContentResponse, StackedContentStats, StackedCurrency, StackedCurrencyPrice, StackedDynamicCondition, StackedDynamicGroup, StackedEntityCurrencies, StackedEntityData, StackedEnv, StackedOffer, StackedOfferHelpers, StackedOfferTrackers, StackedPlayerDelta, StackedReward, StackedRewardKind, StackedSnapshot, StackedSnapshotProgress, StackedSocialTrackerAccumulate, StackedSocialTrackerAttach, StackedSupportedNetwork, StackedThirdPartyApp, StackedUser, StackedUserComplete, StackedUserOffer, StackedUserResponse, StackedUserWithApps, StartCryptoAuthResponse, StartOAuthAttachResponse, StartOAuthResponse, StartOneTimeAuthResponse, TeamProgress, UnlinkExternalGameFromUnifiedAccountResponse, UserOfferStatus };
|
|
1481
|
+
export type { CompleteCryptoAuthResponse, CompleteOAuthResponse, CompleteOneTimeAuthResponse, ConditionDetail, ConditionResult, CurrencyUnit, DeleteAccountResponse, ExchangeOneTimeTokenForSessionTokenResponse, ExchangeStackedLinkTokenResponse, GenerateStackedLinkTokenResponse, GetOneTimeAuthTokenResponse, IClientPlayerData, InitializeUnifiedUserResponse, LinkExternalGameToUnifiedAccountResponse, RemoveAuthMethodResponse, RemoveOAuthProviderResponse, SignOutUnifiedUserResponse, StackedAccountConditionKeys, StackedAppConnection, StackedAppState, StackedBaseConditions, StackedBaseOffer, StackedBaseUser, StackedBaseUserExtra, StackedCampaignsResponse, StackedCampaignsServerResponse, StackedClaimableConditions, StackedClaimableTrackers, StackedCompletionConditions, StackedCompletionDynamicTracker, StackedCompletionTrackers, StackedConditionKind, StackedContentItem, StackedContentResponse, StackedContentStats, StackedCurrency, StackedCurrencyPrice, StackedDynamicCondition, StackedDynamicGroup, StackedEntityCurrencies, StackedEntityData, StackedEnv, StackedOffer, StackedOfferHelpers, StackedOfferTrackers, StackedPlayerDelta, StackedReward, StackedRewardKind, StackedSnapshot, StackedSnapshotProgress, StackedSocialTrackerAccumulate, StackedSocialTrackerAttach, StackedSupportedNetwork, StackedThirdPartyApp, StackedUser, StackedUserComplete, StackedUserOffer, StackedUserResponse, StackedUserWithApps, StartCryptoAuthResponse, StartOAuthAttachResponse, StartOAuthResponse, StartOneTimeAuthResponse, TeamProgress, UnlinkExternalGameFromUnifiedAccountResponse, UserOfferStatus };
|