mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 19:07:58 +03:00
milestoneimportinfo
This commit is contained in:
Vendored
+10
-2
@@ -433,6 +433,7 @@ export interface ImportDocument extends MongoDBDocument {
|
||||
importType: ImportTypes;
|
||||
classDeltas: ClassDelta[];
|
||||
goalInfo: GoalImportInfo[];
|
||||
milestoneInfo: MilestoneImportInfo[];
|
||||
/**
|
||||
* Whether the user deliberately imported this through an action (i.e. uploaded a file personally) [true]
|
||||
* or was imported on their behalf through a service (i.e. fervidex)
|
||||
@@ -445,6 +446,12 @@ export interface GoalImportInfo {
|
||||
old: GoalImportStat;
|
||||
new: GoalImportStat;
|
||||
}
|
||||
export declare type MilestoneImportStat = Pick<UserMilestoneDocument, "progress" | "achieved">;
|
||||
export interface MilestoneImportInfo {
|
||||
milestoneID: string;
|
||||
old: GoalImportStat;
|
||||
new: GoalImportStat;
|
||||
}
|
||||
export interface UserGoalDocument extends MongoDBDocument {
|
||||
goalID: string;
|
||||
userID: integer;
|
||||
@@ -473,8 +480,9 @@ export interface MilestoneDocument extends MongoDBDocument {
|
||||
playtype: Playtypes[Game];
|
||||
criteria: {
|
||||
/**
|
||||
* All: All goals must be achieved in order for the milestone to be complete
|
||||
* Count: Goals achieved must be greater than or equal to criteria.value.
|
||||
* all: All goals must be achieved in order for the milestone to be complete
|
||||
* abs: Goals achieved must be greater than or equal to criteria.value.
|
||||
* proportion: Goals achieved must be greater than or equal to criteria.value * total_goals.
|
||||
*/
|
||||
type: "all" | "abs" | "proportion";
|
||||
value: number | null;
|
||||
|
||||
+12
-2
@@ -600,6 +600,7 @@ export interface ImportDocument extends MongoDBDocument {
|
||||
importType: ImportTypes;
|
||||
classDeltas: ClassDelta[];
|
||||
goalInfo: GoalImportInfo[];
|
||||
milestoneInfo: MilestoneImportInfo[];
|
||||
/**
|
||||
* Whether the user deliberately imported this through an action (i.e. uploaded a file personally) [true]
|
||||
* or was imported on their behalf through a service (i.e. fervidex)
|
||||
@@ -618,6 +619,14 @@ export interface GoalImportInfo {
|
||||
new: GoalImportStat;
|
||||
}
|
||||
|
||||
export type MilestoneImportStat = Pick<UserMilestoneDocument, "progress" | "achieved">;
|
||||
|
||||
export interface MilestoneImportInfo {
|
||||
milestoneID: string;
|
||||
old: GoalImportStat;
|
||||
new: GoalImportStat;
|
||||
}
|
||||
|
||||
export interface UserGoalDocument extends MongoDBDocument {
|
||||
goalID: string;
|
||||
userID: integer;
|
||||
@@ -649,8 +658,9 @@ export interface MilestoneDocument extends MongoDBDocument {
|
||||
playtype: Playtypes[Game];
|
||||
criteria: {
|
||||
/**
|
||||
* All: All goals must be achieved in order for the milestone to be complete
|
||||
* Count: Goals achieved must be greater than or equal to criteria.value.
|
||||
* all: All goals must be achieved in order for the milestone to be complete
|
||||
* abs: Goals achieved must be greater than or equal to criteria.value.
|
||||
* proportion: Goals achieved must be greater than or equal to criteria.value * total_goals.
|
||||
*/
|
||||
type: "all" | "abs" | "proportion";
|
||||
value: number | null;
|
||||
|
||||
Reference in New Issue
Block a user