@opfr/services 0.9.0 → 0.10.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 +6569 -5930
- package/dist/index.umd.js +9 -9
- package/dist/quests/event.d.ts +1 -1
- package/dist/quests/event.d.ts.map +1 -1
- package/dist/quests/middlewares/crew.d.ts +2 -0
- package/dist/quests/middlewares/crew.d.ts.map +1 -1
- package/dist/quests/quests/common/index.d.ts +1 -1
- package/dist/quests/quests/common/index.d.ts.map +1 -1
- package/dist/quests/quests/index.d.ts +3 -2
- package/dist/quests/quests/index.d.ts.map +1 -1
- package/dist/quests/quests/on-crew-update/index.d.ts +7 -0
- package/dist/quests/quests/on-crew-update/index.d.ts.map +1 -0
- package/dist/quests/quests/{common → on-user-quest-meta-update}/edito.d.ts +2 -0
- package/dist/quests/quests/on-user-quest-meta-update/edito.d.ts.map +1 -0
- package/dist/quests/quests/on-user-quest-meta-update/index.d.ts +1 -0
- package/dist/quests/quests/on-user-quest-meta-update/index.d.ts.map +1 -1
- package/dist/services/crew/definition/schema.d.ts.map +1 -1
- package/dist/services/user/process/populateUser.d.ts +1 -1
- package/dist/services/user/query/getters.d.ts +3 -3
- package/package.json +2 -2
- package/dist/quests/quests/common/edito.d.ts.map +0 -1
package/dist/quests/event.d.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import type { Types } from 'mongoose';
|
|
27
27
|
import type Quest from './quest';
|
|
28
|
-
declare const QUEST_EVENT_NAMES: readonly ["userMetaUpdate", "userQuestMetaUpdate", "userInventoryUpdate", "userOrnamentsUpdate"];
|
|
28
|
+
declare const QUEST_EVENT_NAMES: readonly ["crewUpdate", "userMetaUpdate", "userQuestMetaUpdate", "userInventoryUpdate", "userOrnamentsUpdate"];
|
|
29
29
|
type QuestEventName = (typeof QUEST_EVENT_NAMES)[number];
|
|
30
30
|
export declare const emitQuestEvent: (name: QuestEventName, quest: Quest, userId: Types.ObjectId, rewards: {
|
|
31
31
|
xp: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/quests/event.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,QAAA,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/quests/event.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,QAAA,MAAM,iBAAiB,gHAMb,CAAC;AAEX,KAAK,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAIzD,eAAO,MAAM,cAAc,SACnB,cAAc,SACb,KAAK,UACJ,MAAM,QAAQ,WACb;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,SAGvC,CAAC;AAEF,eAAO,MAAM,YAAY,qBAEd,KAAK,UACJ,MAAM,QAAQ,WACb;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,KACnC,IAAI,SAOV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crew.d.ts","sourceRoot":"","sources":["../../../src/quests/middlewares/crew.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"crew.d.ts","sourceRoot":"","sources":["../../../src/quests/middlewares/crew.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAKnD,eAAO,MAAM,cAAc,SAAgB,YAAY,kBActD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from '../on-user-quest-meta-update/birthday';
|
|
2
2
|
export * from './daily';
|
|
3
|
-
export * from '
|
|
3
|
+
export * from '../on-user-quest-meta-update/edito';
|
|
4
4
|
export * from '../on-user-meta-update/premium';
|
|
5
5
|
export * from '../on-user-quest-meta-update/randomMessage';
|
|
6
6
|
export * from '../on-user-quest-meta-update/report';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,SAAS,CAAC;AACxB,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as CrewQuests from './on-crew-update';
|
|
1
2
|
import * as UserInventoryQuests from './on-user-inventory-update';
|
|
2
3
|
import * as UserMetaQuests from './on-user-meta-update';
|
|
3
4
|
import * as UserOrnamentsQuests from './on-user-ornaments-update';
|
|
4
5
|
import * as UserQuestMetaQuests from './on-user-quest-meta-update';
|
|
5
|
-
export declare const ALL_QUESTS: readonly (typeof UserInventoryQuests.Have1Recipe | typeof UserInventoryQuests.Have5Recipe | typeof UserInventoryQuests.Have10Recipe | typeof UserInventoryQuests.Have25Recipe | typeof UserInventoryQuests.Have100Recipe | 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 UserOrnamentsQuests.Have1Background | typeof UserOrnamentsQuests.Have25Background | typeof UserOrnamentsQuests.Have50Background | typeof UserOrnamentsQuests.Have10Title | typeof UserOrnamentsQuests.Have50Title | typeof UserOrnamentsQuests.Have100Title | 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.Draw100Quest | typeof UserQuestMetaQuests.Draw300Quest | typeof UserQuestMetaQuests.Draw1000Quest | typeof UserQuestMetaQuests.Draw2000Quest | typeof UserQuestMetaQuests.Draw5000Quest | 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)[];
|
|
6
|
-
export { UserQuestMetaQuests, UserOrnamentsQuests, UserInventoryQuests, UserMetaQuests, };
|
|
6
|
+
export declare const ALL_QUESTS: readonly (typeof CrewQuests.CrewCarpenter1Week | typeof CrewQuests.CrewCarpenter1Month | typeof CrewQuests.CrewCarpenter3Months | typeof CrewQuests.CrewCarpenter6Months | typeof CrewQuests.CrewCarpenter1Year | 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.CrewVocal5 | typeof CrewQuests.CrewVocal7 | typeof CrewQuests.CrewVocal10 | typeof CrewQuests.CrewVocal12 | typeof CrewQuests.CrewVocal15 | typeof CrewQuests.CrewBring50kXp | typeof CrewQuests.CrewBring500kXp | typeof CrewQuests.CrewBring1mXp | typeof CrewQuests.CrewBring5mXp | typeof CrewQuests.CrewBring50mXp | typeof UserInventoryQuests.Have1Recipe | typeof UserInventoryQuests.Have5Recipe | typeof UserInventoryQuests.Have10Recipe | typeof UserInventoryQuests.Have25Recipe | typeof UserInventoryQuests.Have100Recipe | 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 UserOrnamentsQuests.Have1Background | typeof UserOrnamentsQuests.Have25Background | typeof UserOrnamentsQuests.Have50Background | typeof UserOrnamentsQuests.Have10Title | typeof UserOrnamentsQuests.Have50Title | typeof UserOrnamentsQuests.Have100Title | 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.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)[];
|
|
7
|
+
export { UserQuestMetaQuests, UserOrnamentsQuests, UserInventoryQuests, UserMetaQuests, CrewQuests, };
|
|
7
8
|
//# 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,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;AAEnE,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/quests/quests/index.ts"],"names":[],"mappings":"AAAA,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;AAEnE,eAAO,MAAM,UAAU,shNAMb,CAAC;AAEX,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,UAAU,GACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/on-crew-update/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { UserQuestMeta } from '../../../services';
|
|
1
2
|
import Quest from '../../quest';
|
|
2
3
|
export declare class Edito extends Quest {
|
|
3
4
|
name: string;
|
|
@@ -13,5 +14,6 @@ export declare class Edito extends Quest {
|
|
|
13
14
|
badge: null;
|
|
14
15
|
asset: "idiot" | "satan" | "edito" | "toy";
|
|
15
16
|
isFactionBadge: boolean;
|
|
17
|
+
readonly onUserQuestMetaUpdate: (userQuestMeta: UserQuestMeta) => boolean;
|
|
16
18
|
}
|
|
17
19
|
//# sourceMappingURL=edito.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edito.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/on-user-quest-meta-update/edito.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,MAAM,aAAa,CAAC;AAEhC,qBAAa,KAAM,SAAQ,KAAK;IAC9B,IAAI,SAAwC;IAC5C,EAAE,SAAoB;IACtB,IAAI,0EAAc;IAClB,WAAW,SAA0C;IACrD,KAAK,SAAW;IAChB,EAAE,SAAU;IACZ,MAAM,UAAQ;IACd,IAAI,UAAS;IACb,KAAK,UAAS;IAEd,KAAK,uCAAuB;IAC5B,KAAK,OAAQ;IACb,KAAK,sCAAuB;IAC5B,cAAc,UAAS;IAEvB,QAAQ,CAAC,qBAAqB,kBAAmB,aAAa,aACvB;CACxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/on-user-quest-meta-update/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/on-user-quest-meta-update/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/crew/definition/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/crew/definition/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,QAAA,MAAM,UAAU;;;;;;;;EAsCf,CAAC;AAQF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
/// <reference types="mongoose/types/inferschematype" />
|
|
26
26
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
27
27
|
import type { PopulateUser, UserDocument } from '../types';
|
|
28
|
-
export declare const populateUser: <TPaths extends "
|
|
28
|
+
export declare const populateUser: <TPaths extends "inventory" | "raid" | "games" | "ornaments" | "dailyReport" | "shop" | "meta" | "quest" | "questMeta">(user: UserDocument, paths: TPaths | TPaths[], select?: string | Object) => Promise<import("mongoose").MergeType<UserDocument, PopulateUser<TPaths>>>;
|
|
29
29
|
//# sourceMappingURL=populateUser.d.ts.map
|
|
@@ -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>;
|
|
@@ -45,8 +45,8 @@ export declare const getDailyReport: (user: MergedUser<'ornaments' | 'meta' | 'd
|
|
|
45
45
|
quest: string[];
|
|
46
46
|
badge: string[];
|
|
47
47
|
title: import("@opfr/ornaments").TitleId[];
|
|
48
|
-
background: ("default" | "map" | "amazon_lily" | "amazon_lily_2" | "baltigo" | "baratie" | "bar_de_makino" | "base_g1" | "bataille" | "
|
|
48
|
+
background: ("default" | "map" | "casino" | "amazon_lily" | "amazon_lily_2" | "baltigo" | "baratie" | "bar_de_makino" | "base_g1" | "bataille" | "ceglok" | "cimetiere" | "dressrosa" | "dressrosa_2" | "epave" | "epave_foret" | "falaise" | "foret" | "grotte_cristaux" | "grotte_tresor" | "ile_bonbon" | "ile_des_hommes_poissons" | "ile_des_hommes_poissons_2" | "ile_urouge" | "ile_volante" | "impel_down" | "japon" | "kokoyashi" | "laboon" | "little_garden" | "maison_enfance_luffy" | "marche" | "marche_2" | "marie-joie" | "marine-ford" | "mer_calme" | "nuit_plage" | "plage_soleil" | "punk_hazard" | "ringo" | "road_poneglyph_zoo" | "royaume_kedetrav" | "ruche" | "sabaody" | "sabaody_park" | "skypiea_1" | "skypiea_2" | "sunny" | "trone_de_im" | "village_sirop" | "wano" | "water_7" | "weatheria" | "zoo")[];
|
|
49
49
|
};
|
|
50
50
|
export declare const getTodayAllBirthday: () => import("mongoose").Aggregate<UserDocument[]>;
|
|
51
|
-
export declare const getAllDailyReport: () => Promise<MergedUser<"
|
|
51
|
+
export declare const getAllDailyReport: () => Promise<MergedUser<"dailyReport" | "meta">[]>;
|
|
52
52
|
//# sourceMappingURL=getters.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opfr/services",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.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": "08f4dc7d4dfbce1c38e870d763faacf55b1bad77"
|
|
40
40
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"edito.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/common/edito.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,aAAa,CAAC;AAEhC,qBAAa,KAAM,SAAQ,KAAK;IAC9B,IAAI,SAAwC;IAC5C,EAAE,SAAoB;IACtB,IAAI,0EAAc;IAClB,WAAW,SAA0C;IACrD,KAAK,SAAW;IAChB,EAAE,SAAU;IACZ,MAAM,UAAQ;IACd,IAAI,UAAS;IACb,KAAK,UAAS;IAEd,KAAK,uCAAuB;IAC5B,KAAK,OAAQ;IACb,KAAK,sCAAuB;IAC5B,cAAc,UAAS;CACxB"}
|