@opfr/services 0.38.2 → 0.40.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.
Files changed (37) hide show
  1. package/dist/index.es.js +2806 -3047
  2. package/dist/index.umd.js +5 -5
  3. package/dist/quests/quest.d.ts +2 -7
  4. package/dist/quests/quest.d.ts.map +1 -1
  5. package/dist/quests/quests/index.d.ts +2 -3
  6. package/dist/quests/quests/index.d.ts.map +1 -1
  7. package/dist/services/index.d.ts +0 -1
  8. package/dist/services/index.d.ts.map +1 -1
  9. package/dist/services/user/definition/schema.d.ts.map +1 -1
  10. package/dist/services/user/process/populateUser.d.ts.map +1 -1
  11. package/dist/services/user/types.d.ts +0 -2
  12. package/dist/services/user/types.d.ts.map +1 -1
  13. package/package.json +6 -7
  14. package/dist/quests/middlewares/user-christmas.d.ts +0 -3
  15. package/dist/quests/middlewares/user-christmas.d.ts.map +0 -1
  16. package/dist/quests/quests/on-user-christmas-update/daily.d.ts +0 -68
  17. package/dist/quests/quests/on-user-christmas-update/daily.d.ts.map +0 -1
  18. package/dist/quests/quests/on-user-christmas-update/index.d.ts +0 -2
  19. package/dist/quests/quests/on-user-christmas-update/index.d.ts.map +0 -1
  20. package/dist/services/user-christmas/definition/model.d.ts +0 -29
  21. package/dist/services/user-christmas/definition/model.d.ts.map +0 -1
  22. package/dist/services/user-christmas/definition/schema.d.ts +0 -38
  23. package/dist/services/user-christmas/definition/schema.d.ts.map +0 -1
  24. package/dist/services/user-christmas/index.d.ts +0 -8
  25. package/dist/services/user-christmas/index.d.ts.map +0 -1
  26. package/dist/services/user-christmas/process/create.d.ts +0 -29
  27. package/dist/services/user-christmas/process/create.d.ts.map +0 -1
  28. package/dist/services/user-christmas/process/findOne.d.ts +0 -29
  29. package/dist/services/user-christmas/process/findOne.d.ts.map +0 -1
  30. package/dist/services/user-christmas/process/updateOne.d.ts +0 -29
  31. package/dist/services/user-christmas/process/updateOne.d.ts.map +0 -1
  32. package/dist/services/user-christmas/query/getters.d.ts +0 -36
  33. package/dist/services/user-christmas/query/getters.d.ts.map +0 -1
  34. package/dist/services/user-christmas/query/updates.d.ts +0 -41
  35. package/dist/services/user-christmas/query/updates.d.ts.map +0 -1
  36. package/dist/services/user-christmas/types.d.ts +0 -45
  37. package/dist/services/user-christmas/types.d.ts.map +0 -1
@@ -26,7 +26,7 @@
26
26
  import type { Types } from 'mongoose';
27
27
  import type { Badge, ProfileAssetId, QuestTitle } from '@opfr/ornaments';
28
28
  import type { Rank, RankId } from '@opfr/utils-type';
29
- import type { Crew, CrewQuest, UserChristmas, UserCrew, UserCrewDocument, UserInventory, UserMeta, UserMetaDocument, UserOrnaments, UserQuest, UserQuestDocument, UserQuestMeta } from '../';
29
+ import type { Crew, CrewQuest, UserCrew, UserCrewDocument, UserInventory, UserMeta, UserMetaDocument, UserOrnaments, UserQuest, UserQuestDocument, UserQuestMeta } from '../';
30
30
  export default abstract class Quest {
31
31
  abstract readonly name: string;
32
32
  abstract readonly description: string;
@@ -46,14 +46,12 @@ export default abstract class Quest {
46
46
  readonly onUserQuestMetaUpdate?: (userQuestMeta: UserQuestMeta) => boolean;
47
47
  readonly onUserInventoryUpdate?: (userInventory: UserInventory) => boolean;
48
48
  readonly onUserOrnamentsUpdate?: (userOrnaments: UserOrnaments) => boolean;
49
- readonly onUserChristmasUpdate?: (userChristmas: UserChristmas) => boolean;
50
49
  readonly onCrewUpdate?: (crew: Crew, userId: Types.ObjectId) => boolean;
51
50
  readonly onCrewQuestUpdate?: (crew: CrewQuest, userCrew: UserCrewDocument) => boolean;
52
- readonly complete: (userId: Types.ObjectId, { _userQuest, _userCrew, _userMeta, _userChristmas, }: {
51
+ readonly complete: (userId: Types.ObjectId, { _userQuest, _userCrew, _userMeta, }: {
53
52
  _userQuest?: UserQuestDocument | undefined;
54
53
  _userMeta?: UserMetaDocument | undefined;
55
54
  _userCrew?: UserCrewDocument | undefined;
56
- _userChristmas?: UserChristmas | undefined;
57
55
  }) => Promise<{
58
56
  xp: number;
59
57
  berry: number;
@@ -68,11 +66,8 @@ export default abstract class Quest {
68
66
  };
69
67
  specificQuestCompletion(userQuest: UserQuestDocument, userCrew: UserCrewDocument | null): Promise<void>;
70
68
  isCompleted(userQuest: UserQuest): boolean;
71
- isCompletedChristmas(userChristmas: UserChristmas): boolean;
72
- isChristmasQuest(): boolean;
73
69
  markAsCompleted(userQuest: UserQuestDocument): Promise<void>;
74
70
  markCrewAsCompleted(crew: Types.ObjectId): Promise<void>;
75
- markChristmasAsCompleted(userChristmas: Types.ObjectId): Promise<void>;
76
71
  markCrewDailyAsCompleted(crew: Types.ObjectId, userId: Types.ObjectId): Promise<void>;
77
72
  }
78
73
  //# sourceMappingURL=quest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"quest.d.ts","sourceRoot":"","sources":["../../src/quests/quest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EACV,IAAI,EACJ,SAAS,EACT,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,aAAa,EACd,MAAM,KAAK,CAAC;AAkBb,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,KAAK;IACjC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAE7B,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,M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,CAAC,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,OAAO,CAAC;IAC/D,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,OAAO,CAAC;IAC3E,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,OAAO,CAAC;IAC3E,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,OAAO,CAAC;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;;;;;;;cAoCtB;IAEI,WAAW,CACf,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAAG,IAAI;;;;IAsC3B,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,12 +1,11 @@
1
1
  import { UserDailyQuests } from './common';
2
2
  import * as CrewQuestQuests from './on-crew-quest-update';
3
3
  import * as CrewQuests from './on-crew-update';
4
- import * as UserChristmasQuests from './on-user-christmas-update';
5
4
  import * as UserInventoryQuests from './on-user-inventory-update';
6
5
  import * as UserMetaQuests from './on-user-meta-update';
7
6
  import * as UserOrnamentsQuests from './on-user-ornaments-update';
8
7
  import * as UserQuestMetaQuests from './on-user-quest-meta-update';
9
8
  import * as UserQuestQuests from './on-user-quest-update';
10
- export declare const ALL_QUESTS: readonly (typeof UserDailyQuests.DailySendMessage | typeof UserDailyQuests.DailyReadEdito | typeof UserDailyQuests.DailyAnswer | typeof UserDailyQuests.DailyCheckProfile | typeof UserDailyQuests.Almanax | 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 | typeof UserChristmasQuests.DailyChristmas3Activity | typeof UserChristmasQuests.DailyChristmasSugarCanes | typeof UserChristmasQuests.DailyChristmasRaid | typeof UserChristmasQuests.DailyChristmasAll | 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 UserMetaQuests.DailyVocal | 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.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)[];
11
- export { UserQuestMetaQuests, UserOrnamentsQuests, UserInventoryQuests, UserChristmasQuests, 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 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 | 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 UserMetaQuests.DailyVocal | 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.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)[];
10
+ export { UserQuestMetaQuests, UserOrnamentsQuests, UserInventoryQuests, UserMetaQuests, UserQuestQuests, CrewQuests, CrewQuestQuests, UserDailyQuests, };
12
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;AAC3C,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,mBAAmB,MAAM,4BAA4B,CAAC;AAClE,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,2+QAUb,CAAC;AAEX,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,GAChB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/quests/quests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,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,iyQASb,CAAC;AAEX,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,GAChB,CAAC"}
@@ -18,7 +18,6 @@ export * from './user-quest-meta';
18
18
  export * from './user-raid';
19
19
  export * from './user-shop';
20
20
  export * from './user-encyclopedia';
21
- export * from './user-christmas';
22
21
  export * from './crew';
23
22
  export * from './crew-quest';
24
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AAEtB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AAEtB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/user/definition/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAgBlC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAQ7C,QAAA,MAAM,UAAU;;;;;;;;EAgCd,CAAC;AA6DH,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/user/definition/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAelC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAQ7C,QAAA,MAAM,UAAU;;;;;;;;EAgCd,CAAC;AAwDH,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"populateUser.d.ts","sourceRoot":"","sources":["../../../../src/services/user/process/populateUser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAsC1E,eAAO,MAAM,YAAY,6CACjB,YAAY,SACX,MAAM,GAAG,MAAM,EAAE,WACf,MAAM,GAAG,MAAM,8EAgCzB,CAAC"}
1
+ {"version":3,"file":"populateUser.d.ts","sourceRoot":"","sources":["../../../../src/services/user/process/populateUser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAoC1E,eAAO,MAAM,YAAY,6CACjB,YAAY,SACX,MAAM,GAAG,MAAM,EAAE,WACf,MAAM,GAAG,MAAM,8EAgCzB,CAAC"}
@@ -26,7 +26,6 @@
26
26
  import type { Document, MergeType, Types } from 'mongoose';
27
27
  import type { FactionId, SortValue } from '@opfr/utils-type';
28
28
  import type { ReminderDocument } from '../reminder';
29
- import type { UserChristmasDocument } from '../user-christmas';
30
29
  import type { CooldownCommand, UserCooldownDocument } from '../user-cooldown';
31
30
  import type { UserCrewDocument } from '../user-crew';
32
31
  import type { UserDailyReportDocument } from '../user-daily-report';
@@ -87,7 +86,6 @@ export type PopulatedUser = {
87
86
  cooldown: UserCooldownDocument;
88
87
  reminder: ReminderDocument[];
89
88
  encyclopedia: UserEncyclopediaDocument;
90
- christmas: UserChristmasDocument;
91
89
  };
92
90
  export type PopulateUser<T extends keyof PopulatedUser> = Pick<PopulatedUser, T>;
93
91
  export type MergedUser<T extends keyof PopulatedUser> = MergeType<UserDocument, PopulateUser<T>>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/user/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,MAAM,WAAW,IAAI;IAC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a,EACb,CAAC,CACF,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,aAAa,IAAI,SAAS,CAC/D,YAAY,EACZ,YAAY,CAAC,CAAC,CAAC,CAChB,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI;CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opfr/services",
3
- "version": "0.38.2",
3
+ "version": "0.40.0",
4
4
  "private": false,
5
5
  "description": "OPFR services",
6
6
  "author": "Matthieu VEIGA",
@@ -10,12 +10,11 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@opfr/canvas": "^0.8.0",
13
- "@opfr/items": "^0.33.6",
14
- "@opfr/ornaments": "^0.16.2",
15
- "@opfr/raids": "^0.13.9",
16
- "@opfr/translate": "^0.2.0",
13
+ "@opfr/items": "^0.34.0",
14
+ "@opfr/ornaments": "^0.16.3",
15
+ "@opfr/raids": "^0.15.0",
17
16
  "@opfr/utils-lang": "^0.13.0",
18
- "@opfr/utils-type": "^0.17.1",
17
+ "@opfr/utils-type": "^0.17.2",
19
18
  "mongoose": "8.7.3"
20
19
  },
21
20
  "main": "dist/index.umd.js",
@@ -37,5 +36,5 @@
37
36
  "node_modules",
38
37
  "dist"
39
38
  ],
40
- "gitHead": "ad33ac3e8a5e993f8359da9374af1ef73ee99cde"
39
+ "gitHead": "c77aa891418e799631db03dc9b4ec402f98c3fd4"
41
40
  }
@@ -1,3 +0,0 @@
1
- import type { UserChristmasDocument } from '../../services';
2
- export declare const userChristmasMiddleware: (userChristmas: UserChristmasDocument) => Promise<void>;
3
- //# sourceMappingURL=user-christmas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-christmas.d.ts","sourceRoot":"","sources":["../../../src/quests/middlewares/user-christmas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAK5D,eAAO,MAAM,uBAAuB,kBACnB,qBAAqB,kBAmBrC,CAAC"}
@@ -1,68 +0,0 @@
1
- import type { UserChristmas } from '../../../services';
2
- import Quest from '../../quest';
3
- export declare class DailyChristmas3Activity extends Quest {
4
- name: string;
5
- id: string;
6
- rank: import("@opfr/utils-type").Rank<import("@opfr/utils-type").RankId.COMMON>;
7
- description: string;
8
- berry: number;
9
- xp: number;
10
- items: null;
11
- daily: boolean;
12
- secret: boolean;
13
- crew: boolean;
14
- isFactionBadge: boolean;
15
- badge: null;
16
- asset: null;
17
- title: null;
18
- readonly onUserChristmasUpdate: (user: UserChristmas) => boolean;
19
- }
20
- export declare class DailyChristmasSugarCanes extends Quest {
21
- name: string;
22
- id: string;
23
- rank: import("@opfr/utils-type").Rank<import("@opfr/utils-type").RankId.COMMON>;
24
- description: string;
25
- berry: number;
26
- xp: number;
27
- daily: boolean;
28
- secret: boolean;
29
- crew: boolean;
30
- isFactionBadge: boolean;
31
- badge: null;
32
- asset: null;
33
- title: null;
34
- readonly onUserChristmasUpdate: (user: UserChristmas) => boolean;
35
- }
36
- export declare class DailyChristmasRaid extends Quest {
37
- name: string;
38
- id: string;
39
- rank: import("@opfr/utils-type").Rank<import("@opfr/utils-type").RankId.COMMON>;
40
- description: string;
41
- berry: number;
42
- xp: number;
43
- daily: boolean;
44
- secret: boolean;
45
- crew: boolean;
46
- isFactionBadge: boolean;
47
- badge: null;
48
- asset: null;
49
- title: null;
50
- readonly onUserChristmasUpdate: (user: UserChristmas) => boolean;
51
- }
52
- export declare class DailyChristmasAll extends Quest {
53
- name: string;
54
- id: string;
55
- rank: import("@opfr/utils-type").Rank<import("@opfr/utils-type").RankId.RARE>;
56
- description: string;
57
- berry: number;
58
- xp: number;
59
- daily: boolean;
60
- secret: boolean;
61
- crew: boolean;
62
- isFactionBadge: boolean;
63
- badge: null;
64
- asset: null;
65
- title: null;
66
- readonly onUserChristmasUpdate: (user: UserChristmas) => boolean;
67
- }
68
- //# sourceMappingURL=daily.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"daily.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/on-user-christmas-update/daily.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,MAAM,aAAa,CAAC;AAEhC,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,IAAI,SAAqB;IAEzB,EAAE,SAAgC;IAClC,IAAI,4EAAgB;IACpB,WAAW,SAAuB;IAClC,KAAK,SAAK;IACV,EAAE,SAAK;IACP,KAAK,OAAQ;IACb,KAAK,UAAQ;IAEb,MAAM,UAAS;IACf,IAAI,UAAS;IACb,cAAc,UAAS;IACvB,KAAK,OAAQ;IACb,KAAK,OAAQ;IACb,KAAK,OAAQ;IAEb,QAAQ,CAAC,qBAAqB,SAAU,aAAa,aACqB;CAC3E;AAED,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,IAAI,SAAmB;IACvB,EAAE,SAAiC;IACnC,IAAI,4EAAgB;IACpB,WAAW,SAAiC;IAC5C,KAAK,SAAK;IACV,EAAE,SAAK;IACP,KAAK,UAAQ;IAEb,MAAM,UAAS;IACf,IAAI,UAAS;IACb,cAAc,UAAS;IACvB,KAAK,OAAQ;IACb,KAAK,OAAQ;IACb,KAAK,OAAQ;IAEb,QAAQ,CAAC,qBAAqB,SAAU,aAAa,aACyB;CAC/E;AAED,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,IAAI,SAAwC;IAC5C,EAAE,SAA0B;IAC5B,IAAI,4EAAgB;IACpB,WAAW,SAAmC;IAC9C,KAAK,SAAK;IACV,EAAE,SAAK;IACP,KAAK,UAAQ;IAEb,MAAM,UAAS;IACf,IAAI,UAAS;IACb,cAAc,UAAS;IACvB,KAAK,OAAQ;IACb,KAAK,OAAQ;IACb,KAAK,OAAQ;IAEb,QAAQ,CAAC,qBAAqB,SAAU,aAAa,aACQ;CAC9D;AAED,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,IAAI,SAAsB;IAC1B,EAAE,SAAyB;IAC3B,IAAI,0EAAc;IAClB,WAAW,SAAqD;IAChE,KAAK,SAAK;IACV,EAAE,SAAK;IACP,KAAK,UAAQ;IAEb,MAAM,UAAS;IACf,IAAI,UAAS;IACb,cAAc,UAAS;IACvB,KAAK,OAAQ;IACb,KAAK,OAAQ;IACb,KAAK,OAAQ;IAEb,QAAQ,CAAC,qBAAqB,SAAU,aAAa,aAWnD;CACH"}
@@ -1,2 +0,0 @@
1
- export * from './daily';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/on-user-christmas-update/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -1,29 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- /// <reference types="mongoose/types/inferrawdoctype" />
26
- import { type Model } from 'mongoose';
27
- import type { UserChristmasDocument } from '../types';
28
- export declare const userChristmasModel: Model<UserChristmasDocument>;
29
- //# sourceMappingURL=model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../src/services/user-christmas/definition/model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,KAAK,EAAiB,MAAM,UAAU,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGtD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,qBAAqB,CAEQ,CAAC"}
@@ -1,38 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- /// <reference types="mongoose/types/inferrawdoctype" />
26
- import { Schema } from 'mongoose';
27
- import type { UserChristmasDocument } from '../types';
28
- declare const userChristmasSchema: Schema<UserChristmasDocument, import("mongoose").Model<UserChristmasDocument, any, any, any, import("mongoose").Document<unknown, any, UserChristmasDocument> & UserChristmasDocument & Required<{
29
- _id: unknown;
30
- }> & {
31
- __v?: number | undefined;
32
- }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, UserChristmasDocument, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<UserChristmasDocument>> & import("mongoose").FlatRecord<UserChristmasDocument> & Required<{
33
- _id: unknown;
34
- }> & {
35
- __v?: number | undefined;
36
- }>;
37
- export { userChristmasSchema };
38
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/user-christmas/definition/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD,QAAA,MAAM,mBAAmB;;;;;;;;EA2BxB,CAAC;AAQF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,8 +0,0 @@
1
- import * as userChristmasGetters from './query/getters';
2
- import * as userChristmasUpdates from './query/updates';
3
- export type * from './types';
4
- export { userChristmasModel } from './definition/model';
5
- export * from './process/findOne';
6
- export * from './process/updateOne';
7
- export { userChristmasGetters, userChristmasUpdates };
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/user-christmas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,oBAAoB,MAAM,iBAAiB,CAAC;AAExD,mBAAmB,SAAS,CAAC;AAE7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,29 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- /// <reference types="mongoose/types/inferrawdoctype" />
26
- import type { Types } from 'mongoose';
27
- import type { UserChristmasDocument } from '../types';
28
- export declare const createUserChristmas: (user: Types.ObjectId) => Promise<UserChristmasDocument>;
29
- //# sourceMappingURL=create.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/services/user-christmas/process/create.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD,eAAO,MAAM,mBAAmB,SACxB,MAAM,QAAQ,KACnB,QAAQ,qBAAqB,CAI/B,CAAC"}
@@ -1,29 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- /// <reference types="mongoose/types/inferrawdoctype" />
26
- import type { Types } from 'mongoose';
27
- import type { UserChristmasDocument } from '../types';
28
- export declare const findUserChristmas: (user: Types.ObjectId) => Promise<UserChristmasDocument>;
29
- //# sourceMappingURL=findOne.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"findOne.d.ts","sourceRoot":"","sources":["../../../../src/services/user-christmas/process/findOne.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAGtD,eAAO,MAAM,iBAAiB,SACtB,MAAM,QAAQ,KACnB,QAAQ,qBAAqB,CAO/B,CAAC"}
@@ -1,29 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- /// <reference types="mongoose/types/inferrawdoctype" />
26
- import type { Types, UpdateQuery, UpdateWithAggregationPipeline } from 'mongoose';
27
- import type { UserChristmasDocument } from '../types';
28
- export declare const updateUserChristmas: (user: Types.ObjectId, update: UpdateQuery<UserChristmasDocument> | UpdateWithAggregationPipeline) => Promise<void>;
29
- //# sourceMappingURL=updateOne.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"updateOne.d.ts","sourceRoot":"","sources":["../../../../src/services/user-christmas/process/updateOne.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EACV,KAAK,EACL,WAAW,EACX,6BAA6B,EAC9B,MAAM,UAAU,CAAC;AAGlB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD,eAAO,MAAM,mBAAmB,SACxB,MAAM,QAAQ,UACZ,YAAY,qBAAqB,CAAC,GAAG,6BAA6B,kBAM3E,CAAC"}
@@ -1,36 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- /// <reference types="mongoose/types/inferrawdoctype" />
26
- import type { Types } from 'mongoose';
27
- import type { UserChristmas } from '../types';
28
- export declare const hasCompleteCalendar: (user: UserChristmas) => boolean;
29
- export declare const isDailyCaseComplete: (user: UserChristmas) => boolean;
30
- export declare const isBoxOpen: (user: UserChristmas, date: Date) => Date | undefined;
31
- export declare const isBoxUnlocked: (user: UserChristmas, date: Date) => boolean;
32
- export declare const isChristmasQuestCompleted: (user: UserChristmas, questId: string) => boolean;
33
- export declare const isAllDailyQuestCompleted: (user: UserChristmas) => boolean;
34
- export declare const isRewardGiven: (user: UserChristmas, size: number) => boolean;
35
- export declare const canGive: (user: UserChristmas, target: Types.ObjectId) => boolean;
36
- //# sourceMappingURL=getters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getters.d.ts","sourceRoot":"","sources":["../../../../src/services/user-christmas/query/getters.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAItC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,eAAO,MAAM,mBAAmB,SAAU,aAAa,YAEtD,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,aAAa,YAItD,CAAC;AAEF,eAAO,MAAM,SAAS,SAAU,aAAa,QAAQ,IAAI,qBAExD,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,aAAa,QAAQ,IAAI,YAE5D,CAAC;AAEF,eAAO,MAAM,yBAAyB,SAC9B,aAAa,WACV,MAAM,KACd,OAIF,CAAC;AAEF,eAAO,MAAM,wBAAwB,SAAU,aAAa,KAAG,OAa9D,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,aAAa,QAAQ,MAAM,KAAG,OAEjE,CAAC;AAEF,eAAO,MAAM,OAAO,SACZ,aAAa,UACX,MAAM,QAAQ,KACrB,OAIF,CAAC"}
@@ -1,41 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
- /// <reference types="mongoose/types/inferrawdoctype" />
26
- import type { Types } from 'mongoose';
27
- export declare const openCase: (id: Types.ObjectId, caseDate: Date) => Promise<void>;
28
- export declare const updateLastActivity: (id: Types.ObjectId) => Promise<void>;
29
- export declare const updateLastSugarCane: (id: Types.ObjectId) => Promise<void>;
30
- export declare const updateLastRaid: (id: Types.ObjectId) => Promise<void>;
31
- export declare const resetActivity: (id: Types.ObjectId) => Promise<void>;
32
- export declare const resetSugarCane: (id: Types.ObjectId) => Promise<void>;
33
- export declare const resetRaid: (id: Types.ObjectId) => Promise<void>;
34
- export declare const incrActivityQuest: (id: Types.ObjectId) => Promise<void>;
35
- export declare const completeRaid: (id: Types.ObjectId) => Promise<void>;
36
- export declare const incrSugarCane: (id: Types.ObjectId, size: number) => Promise<void>;
37
- export declare const completeChristmasQuest: (id: Types.ObjectId, questId: string) => Promise<void>;
38
- export declare const unlockCase: (id: Types.ObjectId, caseId: Date) => Promise<void>;
39
- export declare const addReward: (id: Types.ObjectId, size: number) => Promise<void>;
40
- export declare const incrPresentGiven: (id: Types.ObjectId, user: Types.ObjectId) => Promise<void>;
41
- //# sourceMappingURL=updates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"updates.d.ts","sourceRoot":"","sources":["../../../../src/services/user-christmas/query/updates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAOtC,eAAO,MAAM,QAAQ,OAAc,MAAM,QAAQ,YAAY,IAAI,kBAEhE,CAAC;AAEF,eAAO,MAAM,kBAAkB,OAAc,MAAM,QAAQ,kBAE1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,OAAc,MAAM,QAAQ,kBAE3D,CAAC;AAEF,eAAO,MAAM,cAAc,OAAc,MAAM,QAAQ,kBAEtD,CAAC;AAEF,eAAO,MAAM,aAAa,OAAc,MAAM,QAAQ,kBAErD,CAAC;AAEF,eAAO,MAAM,cAAc,OAAc,MAAM,QAAQ,kBAEtD,CAAC;AAEF,eAAO,MAAM,SAAS,OAAc,MAAM,QAAQ,kBAEjD,CAAC;AAEF,eAAO,MAAM,iBAAiB,OAAc,MAAM,QAAQ,kBASzD,CAAC;AAEF,eAAO,MAAM,YAAY,OAAc,MAAM,QAAQ,kBAGpD,CAAC;AAEF,eAAO,MAAM,aAAa,OAAc,MAAM,QAAQ,QAAQ,MAAM,kBASnE,CAAC;AAEF,eAAO,MAAM,sBAAsB,OAC7B,MAAM,QAAQ,WACT,MAAM,kBAKhB,CAAC;AAEF,eAAO,MAAM,UAAU,OAAc,MAAM,QAAQ,UAAU,IAAI,kBAEhE,CAAC;AAEF,eAAO,MAAM,SAAS,OAAc,MAAM,QAAQ,QAAQ,MAAM,kBAE/D,CAAC;AAEF,eAAO,MAAM,gBAAgB,OACvB,MAAM,QAAQ,QACZ,MAAM,QAAQ,kBAKrB,CAAC"}