@stackedapp/types 1.14.3 → 1.14.5
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 +6 -3
- package/package.json +1 -1
package/dist/stacked-types.d.ts
CHANGED
|
@@ -759,6 +759,7 @@ interface StackedSnapshotProgress {
|
|
|
759
759
|
completionTrackers?: ICompletionTrackers;
|
|
760
760
|
completionConditions?: ICompletionCondition;
|
|
761
761
|
snapshot?: StackedSnapshot;
|
|
762
|
+
trackers?: StackedOfferTrackers;
|
|
762
763
|
}
|
|
763
764
|
/** offer fields that define this offer's properties */
|
|
764
765
|
interface StackedBaseOffer extends Pick<IOffer, OfferPickFields> {
|
|
@@ -794,8 +795,10 @@ type ConditionDetail = {
|
|
|
794
795
|
text: string;
|
|
795
796
|
};
|
|
796
797
|
type ConditionResult = {
|
|
798
|
+
/** same as isComplete */
|
|
797
799
|
isValid: boolean;
|
|
798
|
-
|
|
800
|
+
/** same as isValid */
|
|
801
|
+
isComplete: boolean;
|
|
799
802
|
percentCompleted: number;
|
|
800
803
|
conditionData?: Array<ConditionDetail>;
|
|
801
804
|
availableClaimsNow: number;
|
|
@@ -805,13 +808,13 @@ type StackedOfferHelpers = {
|
|
|
805
808
|
getLinkedProgress?: () => Array<TeamProgress>;
|
|
806
809
|
getSiblingProgress?: () => Array<TeamProgress>;
|
|
807
810
|
getProgressPercent?: () => number;
|
|
808
|
-
|
|
811
|
+
isComplete?: () => boolean;
|
|
809
812
|
};
|
|
810
813
|
type TeamProgress = {
|
|
811
814
|
playerId: string;
|
|
812
815
|
username: string;
|
|
813
816
|
percentCompleted: number;
|
|
814
|
-
|
|
817
|
+
isComplete: boolean;
|
|
815
818
|
};
|
|
816
819
|
|
|
817
820
|
type StackedRewardKind = RewardKind;
|