@opfr/services 0.44.0 → 0.46.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/index.es.js +2488 -2355
- package/dist/index.umd.js +5 -5
- package/dist/quests/quest.d.ts +8 -2
- package/dist/quests/quest.d.ts.map +1 -1
- package/dist/quests/quests/common/index.d.ts +2 -1
- package/dist/quests/quests/common/index.d.ts.map +1 -1
- package/dist/quests/quests/common/tournament.d.ts +57 -0
- package/dist/quests/quests/common/tournament.d.ts.map +1 -0
- package/dist/quests/quests/index.d.ts +3 -3
- package/dist/quests/quests/index.d.ts.map +1 -1
- package/dist/quests/utils.d.ts +1 -0
- package/dist/quests/utils.d.ts.map +1 -1
- package/dist/services/settings/definition/schema.d.ts.map +1 -1
- package/dist/services/settings/query/updates.d.ts +1 -0
- package/dist/services/settings/query/updates.d.ts.map +1 -1
- package/dist/services/settings/types.d.ts +6 -0
- package/dist/services/settings/types.d.ts.map +1 -1
- package/dist/services/user/query/getters.d.ts +1 -1
- package/dist/services/user-inventory/query/updates.d.ts +5 -0
- package/dist/services/user-inventory/query/updates.d.ts.map +1 -1
- package/dist/services/user-meta/definition/schema.d.ts.map +1 -1
- package/dist/services/user-meta/query/updates.d.ts +1 -0
- package/dist/services/user-meta/query/updates.d.ts.map +1 -1
- package/dist/services/user-meta/types.d.ts +1 -0
- package/dist/services/user-meta/types.d.ts.map +1 -1
- package/dist/services/user-quest/query/getters.d.ts +2 -0
- package/dist/services/user-quest/query/getters.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/quests/quest.d.ts
CHANGED
|
@@ -38,9 +38,14 @@ export default abstract class Quest {
|
|
|
38
38
|
abstract readonly badge: Badge | null;
|
|
39
39
|
abstract readonly isFactionBadge: boolean;
|
|
40
40
|
abstract readonly asset: ProfileAssetId | null;
|
|
41
|
+
readonly chest?: {
|
|
42
|
+
chest: 'chest_1' | 'chest_2' | 'chest_3';
|
|
43
|
+
size: number;
|
|
44
|
+
}[] | null;
|
|
41
45
|
abstract readonly secret: boolean;
|
|
42
46
|
abstract readonly daily: boolean;
|
|
43
47
|
abstract readonly crew: boolean;
|
|
48
|
+
readonly repeatable?: boolean;
|
|
44
49
|
readonly onUserMetaUpdate?: (userMeta: UserMeta) => boolean;
|
|
45
50
|
readonly onUserQuestUpdate?: (userQuest: UserQuest) => boolean;
|
|
46
51
|
readonly onUserQuestMetaUpdate?: (userQuestMeta: UserQuestMeta) => boolean;
|
|
@@ -48,15 +53,16 @@ export default abstract class Quest {
|
|
|
48
53
|
readonly onUserOrnamentsUpdate?: (userOrnaments: UserOrnaments) => boolean;
|
|
49
54
|
readonly onCrewUpdate?: (crew: Crew, userId: Types.ObjectId) => boolean;
|
|
50
55
|
readonly onCrewQuestUpdate?: (crew: CrewQuest, userCrew: UserCrewDocument) => boolean;
|
|
51
|
-
readonly complete: (userId: Types.ObjectId, { _userQuest, _userCrew, _userMeta, }: {
|
|
56
|
+
readonly complete: (userId: Types.ObjectId, { _userQuest, _userCrew, _userMeta, _userInventory, }: {
|
|
52
57
|
_userQuest?: UserQuestDocument | undefined;
|
|
53
58
|
_userMeta?: UserMetaDocument | undefined;
|
|
54
59
|
_userCrew?: UserCrewDocument | undefined;
|
|
60
|
+
_userInventory?: UserInventory | undefined;
|
|
55
61
|
}) => Promise<{
|
|
56
62
|
xp: number;
|
|
57
63
|
berry: number;
|
|
58
64
|
} | null>;
|
|
59
|
-
applyReward(userQuest: UserQuest, userMeta: UserMeta, userCrew: UserCrew | null): Promise<{
|
|
65
|
+
applyReward(userQuest: UserQuest, userMeta: UserMeta, userCrew: UserCrew | null, userInventory: UserInventory): Promise<{
|
|
60
66
|
xp: number;
|
|
61
67
|
berry: number;
|
|
62
68
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quest.d.ts","sourceRoot":"","sources":["../../src/quests/quest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,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AC;IAC3E,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,QAAQ,KAAK,OAAO,CAAC;IACxE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAC3B,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,gBAAgB,KACvB,OAAO,CAAC;IAEb,QAAQ,CAAC,QAAQ,WACP,MAAM,QAAQ;;;;;;;;cAuCtB;IAEI,WAAW,CACf,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAAG,IAAI,EACzB,aAAa,EAAE,aAAa;;;;IAyC9B,kBAAkB,aAAc,QAAQ,aAAa,SAAS;;;MAe5D;IAEI,uBAAuB,CAC3B,SAAS,EAAE,iBAAiB,EAC5B,QAAQ,EAAE,gBAAgB,GAAG,IAAI;IAyBnC,WAAW,CAAC,SAAS,EAAE,SAAS;IAO1B,eAAe,CAAC,SAAS,EAAE,iBAAiB;IAQ5C,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ;IAIxC,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,QAAQ;CAO5E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as CrewDailyQuests from './crew';
|
|
2
2
|
import * as UserDailyQuests from './daily';
|
|
3
|
-
|
|
3
|
+
import * as UserRepetableQuests from './tournament';
|
|
4
|
+
export { UserDailyQuests, CrewDailyQuests, UserRepetableQuests };
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,eAAe,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,eAAe,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,mBAAmB,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Quest } from '../../index';
|
|
2
|
+
export declare class Insistent extends Quest {
|
|
3
|
+
name: string;
|
|
4
|
+
id: string;
|
|
5
|
+
rank: import("@opfr/utils-type").Rank<import("@opfr/utils-type").RankId.EPIC>;
|
|
6
|
+
description: string;
|
|
7
|
+
berry: number;
|
|
8
|
+
xp: number;
|
|
9
|
+
secret: boolean;
|
|
10
|
+
asset: null;
|
|
11
|
+
title: null;
|
|
12
|
+
badge: null;
|
|
13
|
+
isFactionBadge: boolean;
|
|
14
|
+
daily: boolean;
|
|
15
|
+
crew: boolean;
|
|
16
|
+
repeatable: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare class Resurrection extends Quest {
|
|
19
|
+
name: string;
|
|
20
|
+
id: string;
|
|
21
|
+
rank: import("@opfr/utils-type").Rank<import("@opfr/utils-type").RankId.LEGENDARY>;
|
|
22
|
+
description: string;
|
|
23
|
+
berry: number;
|
|
24
|
+
xp: number;
|
|
25
|
+
secret: boolean;
|
|
26
|
+
asset: null;
|
|
27
|
+
title: null;
|
|
28
|
+
badge: null;
|
|
29
|
+
isFactionBadge: boolean;
|
|
30
|
+
daily: boolean;
|
|
31
|
+
crew: boolean;
|
|
32
|
+
repeatable: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare class Unstoppable extends Quest {
|
|
35
|
+
name: string;
|
|
36
|
+
id: string;
|
|
37
|
+
rank: import("@opfr/utils-type").Rank<import("@opfr/utils-type").RankId.MYTHIC>;
|
|
38
|
+
description: string;
|
|
39
|
+
berry: number;
|
|
40
|
+
xp: number;
|
|
41
|
+
chest: ({
|
|
42
|
+
chest: "chest_1";
|
|
43
|
+
size: number;
|
|
44
|
+
} | {
|
|
45
|
+
chest: "chest_2";
|
|
46
|
+
size: number;
|
|
47
|
+
})[];
|
|
48
|
+
secret: boolean;
|
|
49
|
+
asset: null;
|
|
50
|
+
title: null;
|
|
51
|
+
badge: null;
|
|
52
|
+
isFactionBadge: boolean;
|
|
53
|
+
daily: boolean;
|
|
54
|
+
crew: boolean;
|
|
55
|
+
repeatable: boolean;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=tournament.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tournament.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/common/tournament.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,qBAAa,SAAU,SAAQ,KAAK;IAClC,IAAI,SAAiB;IACrB,EAAE,SAAe;IACjB,IAAI,0EAAc;IAClB,WAAW,SAAuD;IAClE,KAAK,SAAa;IAClB,EAAE,SAAK;IACP,MAAM,UAAS;IAEf,KAAK,OAAQ;IACb,KAAK,OAAQ;IACb,KAAK,OAAQ;IACb,cAAc,UAAS;IACvB,KAAK,UAAS;IACd,IAAI,UAAS;IACb,UAAU,UAAQ;CACnB;AAED,qBAAa,YAAa,SAAQ,KAAK;IACrC,IAAI,SAAkB;IACtB,EAAE,SAAkB;IACpB,IAAI,+EAAmB;IACvB,WAAW,SAAoD;IAC/D,KAAK,SAAa;IAClB,EAAE,SAAK;IACP,MAAM,UAAS;IAEf,KAAK,OAAQ;IACb,KAAK,OAAQ;IACb,KAAK,OAAQ;IACb,cAAc,UAAS;IAEvB,KAAK,UAAS;IACd,IAAI,UAAS;IACb,UAAU,UAAQ;CACnB;AAED,qBAAa,WAAY,SAAQ,KAAK;IACpC,IAAI,SAAmB;IACvB,EAAE,SAAiB;IACnB,IAAI,4EAAgB;IACpB,WAAW,SAAoD;IAC/D,KAAK,SAAK;IACV,EAAE,SAAK;IACP,KAAK;;;;;;SASH;IACF,MAAM,UAAS;IAEf,KAAK,OAAQ;IACb,KAAK,OAAQ;IACb,KAAK,OAAQ;IACb,cAAc,UAAS;IAEvB,KAAK,UAAS;IACd,IAAI,UAAS;IACb,UAAU,UAAQ;CACnB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserDailyQuests } from './common';
|
|
1
|
+
import { UserDailyQuests, UserRepetableQuests } from './common';
|
|
2
2
|
import * as CrewQuestQuests from './on-crew-quest-update';
|
|
3
3
|
import * as CrewQuests from './on-crew-update';
|
|
4
4
|
import * as UserInventoryQuests from './on-user-inventory-update';
|
|
@@ -6,6 +6,6 @@ import * as UserMetaQuests from './on-user-meta-update';
|
|
|
6
6
|
import * as UserOrnamentsQuests from './on-user-ornaments-update';
|
|
7
7
|
import * as UserQuestMetaQuests from './on-user-quest-meta-update';
|
|
8
8
|
import * as UserQuestQuests from './on-user-quest-update';
|
|
9
|
-
export declare const ALL_QUESTS: readonly (typeof UserDailyQuests.DailySendMessage | typeof UserDailyQuests.DailyReadEdito | typeof UserDailyQuests.DailyAnswer | typeof UserDailyQuests.DailyCheckProfile | typeof UserDailyQuests.Almanax | typeof
|
|
10
|
-
export { UserQuestMetaQuests, UserOrnamentsQuests, UserInventoryQuests, UserMetaQuests, UserQuestQuests, CrewQuests, CrewQuestQuests, UserDailyQuests, };
|
|
9
|
+
export declare const ALL_QUESTS: readonly (typeof UserDailyQuests.DailySendMessage | typeof UserDailyQuests.DailyReadEdito | typeof UserDailyQuests.DailyAnswer | typeof UserDailyQuests.DailyCheckProfile | typeof UserDailyQuests.Almanax | typeof UserRepetableQuests.Insistent | typeof UserRepetableQuests.Resurrection | typeof UserRepetableQuests.Unstoppable | typeof UserMetaQuests.Have500kBerry | typeof UserMetaQuests.Have5mBerry | typeof UserMetaQuests.Have50mBerry | typeof UserMetaQuests.Have500mBerry | typeof UserMetaQuests.Have5mdBerry | typeof UserMetaQuests.Have25Strength | typeof UserMetaQuests.Have50Strength | typeof UserMetaQuests.Have100Strength | typeof UserMetaQuests.Have250Strength | typeof UserMetaQuests.Have500Strength | typeof UserMetaQuests.Have25Agility | typeof UserMetaQuests.Have50Agility | typeof UserMetaQuests.Have100Agility | typeof UserMetaQuests.Have250Agility | typeof UserMetaQuests.Have500Agility | typeof UserMetaQuests.Have25Intelligence | typeof UserMetaQuests.Have50Intelligence | typeof UserMetaQuests.Have100Intelligence | typeof UserMetaQuests.Have250Intelligence | typeof UserMetaQuests.Have500Intelligence | typeof UserMetaQuests.Have25Chance | typeof UserMetaQuests.Have50Chance | typeof UserMetaQuests.Have100Chance | typeof UserMetaQuests.Have250Chance | typeof UserMetaQuests.Have500Chance | typeof UserMetaQuests.Have25Vitality | typeof UserMetaQuests.Have50Vitality | typeof UserMetaQuests.Have100Vitality | typeof UserMetaQuests.Have250Vitality | typeof UserMetaQuests.Have500Vitality | typeof UserMetaQuests.Have25Wisdom | typeof UserMetaQuests.Have50Wisdom | typeof UserMetaQuests.Have100Wisdom | typeof UserMetaQuests.Have250Wisdom | typeof UserMetaQuests.Have500Wisdom | typeof UserMetaQuests.BeLevel10 | typeof UserMetaQuests.BeLevel20 | typeof UserMetaQuests.BeLevel30 | typeof UserMetaQuests.BeLevel40 | typeof UserMetaQuests.BeLevel50 | typeof UserMetaQuests.BeLevel60 | typeof UserMetaQuests.BeLevel70 | typeof UserMetaQuests.BeLevel80 | typeof UserMetaQuests.BeLevel90 | typeof UserMetaQuests.BeLevel120 | typeof UserMetaQuests.DailyVocal | typeof UserOrnamentsQuests.Have1Background | typeof UserOrnamentsQuests.Have25Background | typeof UserOrnamentsQuests.Have50Background | typeof UserOrnamentsQuests.Have10Title | typeof UserOrnamentsQuests.Have50Title | typeof UserOrnamentsQuests.Have100Title | typeof UserInventoryQuests.Have1Recipe | typeof UserInventoryQuests.Have5Recipe | typeof UserInventoryQuests.Have10Recipe | typeof UserInventoryQuests.Have25Recipe | typeof UserInventoryQuests.Have100Recipe | typeof UserQuestMetaQuests.BetMinValue | typeof UserQuestMetaQuests.LoseEverything | typeof UserQuestMetaQuests.Bet10M | typeof UserQuestMetaQuests.WinOn10MBet | typeof UserQuestMetaQuests.TotalBet10M | typeof UserQuestMetaQuests.TotalBet1Md | typeof UserQuestMetaQuests.Lose10M | typeof UserQuestMetaQuests.Birthday | typeof UserQuestMetaQuests.BotPing | typeof UserQuestMetaQuests.Drink100Today | typeof UserQuestMetaQuests.Drink200Quest | typeof UserQuestMetaQuests.Drink500Quest | typeof UserQuestMetaQuests.Drink1000Quest | typeof UserQuestMetaQuests.Drink2000Quest | typeof UserQuestMetaQuests.Drink5000Quest | typeof UserQuestMetaQuests.ChestOpen50Quest | typeof UserQuestMetaQuests.ChestOpen150Quest | typeof UserQuestMetaQuests.ChestOpen500Quest | typeof UserQuestMetaQuests.ChestOpen1000Quest | typeof UserQuestMetaQuests.ChestOpen2000Quest | typeof UserQuestMetaQuests.Craft20Times | typeof UserQuestMetaQuests.Craft50Times | typeof UserQuestMetaQuests.Craft200Times | typeof UserQuestMetaQuests.Craft500Times | typeof UserQuestMetaQuests.Craft1000Times | typeof UserQuestMetaQuests.Craft10CookedMeals | typeof UserQuestMetaQuests.Craft50CookedMeals | typeof UserQuestMetaQuests.Craft100CookedMeals | typeof UserQuestMetaQuests.Craft250CookedMeals | typeof UserQuestMetaQuests.Craft500CookedMeals | typeof UserQuestMetaQuests.Craft5Scrolls | typeof UserQuestMetaQuests.Craft10Scrolls | typeof UserQuestMetaQuests.Craft20Scrolls | typeof UserQuestMetaQuests.Craft50Scrolls | typeof UserQuestMetaQuests.Craft100Scrolls | typeof UserQuestMetaQuests.Crew10Percent | typeof UserQuestMetaQuests.Crew90Percent | typeof UserQuestMetaQuests.Draw100Quest | typeof UserQuestMetaQuests.Draw300Quest | typeof UserQuestMetaQuests.Draw1000Quest | typeof UserQuestMetaQuests.Draw2000Quest | typeof UserQuestMetaQuests.Draw5000Quest | typeof UserQuestMetaQuests.Edito | typeof UserQuestMetaQuests.Everyone | typeof UserQuestMetaQuests.DoubleSix | typeof UserQuestMetaQuests.DrawDoubleSix | typeof UserQuestMetaQuests.SevenQuitteOuDouble | typeof UserQuestMetaQuests.WinAll5GamesInRow | typeof UserQuestMetaQuests.LoseAll5GamesInRow | typeof UserQuestMetaQuests.TenBlackJack | typeof UserQuestMetaQuests.Paper100 | typeof UserQuestMetaQuests.Scissor100 | typeof UserQuestMetaQuests.Rock100 | typeof UserQuestMetaQuests.GuessInOne | typeof UserQuestMetaQuests.Bet666 | typeof UserQuestMetaQuests.WinLose10 | typeof UserQuestMetaQuests.Finish10Raids | typeof UserQuestMetaQuests.Finish25Raids | typeof UserQuestMetaQuests.Finish50Raids | typeof UserQuestMetaQuests.Finish100Raids | typeof UserQuestMetaQuests.Finish200Raids | typeof UserQuestMetaQuests.RandomMessage20Quest | typeof UserQuestMetaQuests.RandomMessage50Quest | typeof UserQuestMetaQuests.RandomMessage100Quest | typeof UserQuestMetaQuests.RandomMessage200Quest | typeof UserQuestMetaQuests.RandomMessage500Quest | typeof UserQuestMetaQuests.Report | typeof UserQuestMetaQuests.send100Messages | typeof UserQuestMetaQuests.send1000Messages | typeof UserQuestMetaQuests.send25000Messages | typeof UserQuestMetaQuests.send100000Messages | typeof UserQuestMetaQuests.send200000Messages | typeof UserQuestMetaQuests.SpendShop5M | typeof UserQuestMetaQuests.SpendShop50M | typeof UserQuestMetaQuests.SpendShop500M | typeof UserQuestMetaQuests.SpendShop5Ml | typeof UserQuestMetaQuests.SpendShop50Ml | typeof UserQuestMetaQuests.Voice10Hours | typeof UserQuestMetaQuests.Voice25Hours | typeof UserQuestMetaQuests.Voice250Hours | typeof UserQuestMetaQuests.Voice2500Hours | typeof UserQuestMetaQuests.Voice5000Hours | typeof UserQuestMetaQuests.Work100Quest | typeof UserQuestMetaQuests.Work300Quest | typeof UserQuestMetaQuests.Work1000Quest | typeof UserQuestMetaQuests.Work2000Quest | typeof UserQuestMetaQuests.Work5000Quest | typeof UserQuestMetaQuests.Write10Chats | typeof UserQuestMetaQuests.Write20Chats | typeof UserQuestMetaQuests.Write50Chats | typeof UserQuestMetaQuests.Write100Chats | typeof UserQuestMetaQuests.Write200Chats | typeof UserQuestMetaQuests.Drink50Alcohols | typeof UserQuestMetaQuests.Drink250Alcohols | typeof UserQuestMetaQuests.Drink500Alcohols | typeof UserQuestMetaQuests.Drink1000Alcohols | typeof UserQuestMetaQuests.Drink2000Alcohols | typeof UserQuestMetaQuests.Drink10Rhum | typeof UserQuestMetaQuests.Drink100Rhum | typeof UserQuestMetaQuests.Drink250Rhum | typeof UserQuestMetaQuests.Drink500Rhum | typeof UserQuestMetaQuests.Drink1000Rhum | typeof UserQuestMetaQuests.Drink10Beer | typeof UserQuestMetaQuests.Drink100Beer | typeof UserQuestMetaQuests.Drink250Beer | typeof UserQuestMetaQuests.Drink500Beer | typeof UserQuestMetaQuests.Drink1000Beer | typeof UserQuestMetaQuests.Drink10Wine | typeof UserQuestMetaQuests.Drink100Wine | typeof UserQuestMetaQuests.Drink250Wine | typeof UserQuestMetaQuests.Drink500Wine | typeof UserQuestMetaQuests.Drink1000Wine | typeof UserQuestQuests.DailyAll | typeof CrewQuests.CrewBreakShip | typeof CrewQuests.CrewBeLevel10 | typeof CrewQuests.CrewBeLevel25 | typeof CrewQuests.CrewBeLevel50 | typeof CrewQuests.CrewBeLevel75 | typeof CrewQuests.CrewBeLevel100 | typeof CrewQuests.CrewHave100MBerry | typeof CrewQuests.CrewHave500MBerry | typeof CrewQuests.CrewHave1MdBerry | typeof CrewQuests.CrewHave5MdBerry | typeof CrewQuests.CrewHave50MdBerry | typeof CrewQuests.CrewSize5 | typeof CrewQuests.CrewSize7 | typeof CrewQuests.CrewSize10 | typeof CrewQuests.CrewSize12 | typeof CrewQuests.CrewSize15 | typeof CrewQuests.CrewBring50kXp | typeof CrewQuests.CrewBring500kXp | typeof CrewQuests.CrewBring1mXp | typeof CrewQuests.CrewBring5mXp | typeof CrewQuests.CrewBring50mXp | typeof CrewQuestQuests.CrewCarpenter1Week | typeof CrewQuestQuests.CrewCarpenter1Month | typeof CrewQuestQuests.CrewCarpenter3Months | typeof CrewQuestQuests.CrewCarpenter6Months | typeof CrewQuestQuests.CrewCarpenter1Year | typeof CrewQuestQuests.CrewAllMembersDaily | typeof CrewQuestQuests.CrewVocal5 | typeof CrewQuestQuests.CrewVocal7 | typeof CrewQuestQuests.CrewVocal10 | typeof CrewQuestQuests.CrewVocal12 | typeof CrewQuestQuests.CrewVocal15)[];
|
|
10
|
+
export { UserQuestMetaQuests, UserOrnamentsQuests, UserInventoryQuests, UserRepetableQuests, UserMetaQuests, UserQuestQuests, CrewQuests, CrewQuestQuests, UserDailyQuests, };
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/quests/quests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/quests/quests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,mBAAmB,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,mBAAmB,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,eAAO,MAAM,UAAU,25QAUb,CAAC;AAEX,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,GAChB,CAAC"}
|
package/dist/quests/utils.d.ts
CHANGED
|
@@ -31,4 +31,5 @@ export declare const getQuestBadgeEmojis: (quest: Quest, faction: FactionId) =>
|
|
|
31
31
|
export declare const getBadgeEmojisFromId: (badgeId: Badge['id']) => string | undefined;
|
|
32
32
|
export declare const completeDailyQuest: (questId: 'daily_check_profile' | 'daily_answer' | 'daily_read_edito' | 'daily_send_message', userId: Types.ObjectId) => Promise<void>;
|
|
33
33
|
export declare const completeCrewQuest: (questId: 'crew_daily_click' | 'crew_create_or_join', userId: Types.ObjectId) => Promise<void>;
|
|
34
|
+
export declare const completeRepeatableQuest: (userId: Types.ObjectId, questId: string) => Promise<void>;
|
|
34
35
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/quests/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/quests/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAG7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAIjC,eAAO,MAAM,mBAAmB,UAAW,KAAK,WAAW,SAAS,WAYnE,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAAa,KAAK,CAAC,IAAI,CAAC,uBAOxD,CAAC;AAEF,eAAO,MAAM,kBAAkB,YAEzB,qBAAqB,GACrB,cAAc,GACd,kBAAkB,GAClB,oBAAoB,UAChB,MAAM,QAAQ,kBAcvB,CAAC;AAEF,eAAO,MAAM,iBAAiB,YACnB,kBAAkB,GAAG,qBAAqB,UAC3C,MAAM,QAAQ,kBAcvB,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAC1B,MAAM,QAAQ,WACb,MAAM,kBAgBhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/settings/definition/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,QAAA,MAAM,cAAc;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/settings/definition/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,QAAA,MAAM,cAAc;;;;;;;;EAmDlB,CAAC;AAIH,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -16,4 +16,5 @@ export declare const setReportBugChannelId: (guildId: string, channelId: string)
|
|
|
16
16
|
export declare const setCrewInfoChannelId: (guildId: string, channelId: string) => Promise<void>;
|
|
17
17
|
export declare const addCrewChannelId: (guildId: string, crewId: string, channelId: string) => Promise<void>;
|
|
18
18
|
export declare const updateRolesId: (guildId: string, roles: Partial<Settings['roles']>) => Promise<void>;
|
|
19
|
+
export declare const updateChannelId: (guildId: string, channel: Partial<Settings['channels']>) => Promise<void>;
|
|
19
20
|
//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AC;AAEF,eAAO,MAAM,gBAAgB,YAClB,MAAM,UACP,MAAM,aACH,MAAM,kBAKlB,CAAC;AAEF,eAAO,MAAM,aAAa,YACf,MAAM,SACR,QAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,kBAOlC,CAAC;AAEF,eAAO,MAAM,eAAe,YACjB,MAAM,WACN,QAAQ,QAAQ,CAAC,UAAU,CAAC,CAAC,kBAOvC,CAAC"}
|
|
@@ -41,6 +41,12 @@ export interface Settings {
|
|
|
41
41
|
roles: {
|
|
42
42
|
premium: string | null;
|
|
43
43
|
booster: string | null;
|
|
44
|
+
scam: string | null;
|
|
45
|
+
};
|
|
46
|
+
channels: {
|
|
47
|
+
gambling: string | null;
|
|
48
|
+
work: string | null;
|
|
49
|
+
raid: string | null;
|
|
44
50
|
};
|
|
45
51
|
edito: {
|
|
46
52
|
channelId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/settings/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAEhB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,SAAS,EAAE,MAA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AAM,CAAC;QACd,cAAc,EAAE,OAAO,CAAC;QACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B,CAAC;IAEF,IAAI,EAAE;QACJ,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,cAAc,EAAE;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACzD,CAAC;IAEF,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,gBAAiB,SAAQ,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ;CAAG"}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
import type { Types } from 'mongoose';
|
|
27
27
|
import type { FactionId } from '@opfr/utils-type';
|
|
28
28
|
import type { MergedUser, User, UserDocument } from '../types';
|
|
29
|
-
export declare const getNextBirthdays: () => import("mongoose").Aggregate<(Pick<User, "
|
|
29
|
+
export declare const getNextBirthdays: () => import("mongoose").Aggregate<(Pick<User, "birthday" | "userId"> & {
|
|
30
30
|
nextBirthday: Date;
|
|
31
31
|
})[]>;
|
|
32
32
|
export declare const getUserBirthday: (userId: string) => Promise<UserDocument>;
|
|
@@ -48,4 +48,9 @@ export declare const dismantleEntity: (id: Types.ObjectId, entity: Entity, disma
|
|
|
48
48
|
}[], size: number, seed: number) => Promise<void>;
|
|
49
49
|
export declare const enchantItem: (id: Types.ObjectId, itemId: ItemId, enchantResult: ItemId, size: number) => Promise<void>;
|
|
50
50
|
export declare const unlockRecipe: (id: Types.ObjectId, recipeId: string) => Promise<void>;
|
|
51
|
+
export declare const giveChest: (id: Types.ObjectId, chest: 'chest_1' | 'chest_2' | 'chest_3', size: number) => Promise<void>;
|
|
52
|
+
export declare const giveChests: (id: Types.ObjectId, chests: {
|
|
53
|
+
chest: 'chest_1' | 'chest_2' | 'chest_3';
|
|
54
|
+
size: number;
|
|
55
|
+
}[]) => Promise<void>;
|
|
51
56
|
//# sourceMappingURL=updates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../../src/services/user-inventory/query/updates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,EACV,WAAW,EACX,MAAM,EACN,QAAQ,EACR,WAAW,EACX,aAAa,EACb,MAAM,EACP,MAAM,aAAa,CAAC;AAQrB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,eAAO,MAAM,gBAAgB,OACvB,MAAM,QAAQ,UACV,MAAM,YACJ,MAAM,kBAKjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,OACxB,MAAM,QAAQ,SACX,QAAQ,OAAO,MAAM,EAAE,MAAM,CAAC,CAAC,kBAevC,CAAC;AAEF,eAAO,MAAM,mBAAmB,OAC1B,MAAM,QAAQ,UACV,MAAM,YACJ,MAAM,kBAcjB,CAAC;AAEF,eAAO,MAAM,eAAe,OACtB,MAAM,QAAQ,eACL,WAAW,iBACT,MAAM,kBAUtB,CAAC;AAEF,eAAO,MAAM,qBAAqB,OAC5B,MAAM,QAAQ,YACR,QAAQ,YACR,MAAM,QACV,MAAM,kBAWb,CAAC;AAEF,eAAO,MAAM,sBAAsB,OAC7B,MAAM,QAAQ,UACV,MAAM,kBAGf,CAAC;AAEF,eAAO,MAAM,aAAa,OACpB,MAAM,QAAQ,QACZ,aAAa,CAAC,eAAe,CAAC,kBAOrC,CAAC;AAEF,eAAO,MAAM,KAAK,OACZ,MAAM,QAAQ,QACZ,aAAa,aACR,WAAW,kBAUvB,CAAC;AAEF,eAAO,MAAM,OAAO,OAAc,MAAM,QAAQ,QAAQ,aAAa,kBASpE,CAAC;AAEF,eAAO,MAAM,SAAS,OAChB,MAAM,QAAQ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1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/user-meta/definition/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAMlC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AASjD,QAAA,MAAM,cAAc;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/user-meta/definition/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAMlC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AASjD,QAAA,MAAM,cAAc;;;;;;;;EAiFlB,CAAC;AAkBH,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -49,4 +49,5 @@ export declare const addMinutesInVoiceToday: (userId: Types.ObjectId, minutes: n
|
|
|
49
49
|
export declare const updateLastVoiceConnection: (userId: Types.ObjectId, date: Date) => Promise<void>;
|
|
50
50
|
export declare const incrementWorkUnluckyStreak: (userId: Types.ObjectId) => Promise<void>;
|
|
51
51
|
export declare const resetWorkUnluckyStreak: (userId: Types.ObjectId) => Promise<void>;
|
|
52
|
+
export declare const updateScam: (userId: Types.ObjectId, scam: boolean) => Promise<void>;
|
|
52
53
|
//# sourceMappingURL=updates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../../src/services/user-meta/query/updates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAIpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAA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F,OAAO,EAAE,qBAAqB,CAAC;CAChC;AAED,MAAM,WAAW,gBAAiB,SAAQ,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ;CAAG"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { FactionId } from '@opfr/utils-type';
|
|
2
2
|
import type { UserQuest } from '../types';
|
|
3
3
|
export declare const isQuestCompleted: (user: UserQuest, questId: string) => boolean;
|
|
4
|
+
export declare const isRepetableQuestExist: (questId: string) => boolean;
|
|
5
|
+
export declare const getQuestName: (questId: string) => string | null;
|
|
4
6
|
export declare const isDailyQuestCompleted: (user: UserQuest, questId: string) => boolean;
|
|
5
7
|
export declare const isStreaking: (user: UserQuest) => boolean;
|
|
6
8
|
export declare const getStreakMultiplier: (user: UserQuest) => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../src/services/user-quest/query/getters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../src/services/user-quest/query/getters.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,gBAAgB,SAAU,SAAS,WAAW,MAAM,YAEhE,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAa,MAAM,YASpD,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,MAAM,kBAS3C,CAAC;AAEF,eAAO,MAAM,qBAAqB,SAC1B,SAAS,WACN,MAAM,KACd,OAIF,CAAC;AAEF,eAAO,MAAM,WAAW,SAAU,SAAS,KAAG,OAE7C,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,SAAS,WAKlD,CAAC;AAEF,eAAO,MAAM,uBAAuB,SAAU,SAAS,WAKtD,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,SAAS,WAAW,SAAS,uDAMlE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opfr/services",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "OPFR services",
|
|
6
6
|
"author": "Matthieu VEIGA",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"node_modules",
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "94742ace1cdad2444ddc3883b849cb448d0e4acc"
|
|
40
40
|
}
|