@opfr/services 0.8.3 → 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 +7174 -6224
- package/dist/index.umd.js +9 -9
- package/dist/quests/canvas.d.ts +27 -4
- package/dist/quests/canvas.d.ts.map +1 -1
- package/dist/quests/constants.d.ts +1 -0
- package/dist/quests/constants.d.ts.map +1 -1
- package/dist/quests/event.d.ts +39 -0
- package/dist/quests/event.d.ts.map +1 -0
- package/dist/quests/index.d.ts +1 -0
- package/dist/quests/index.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/middlewares/user-inventory.d.ts +3 -0
- package/dist/quests/middlewares/user-inventory.d.ts.map +1 -0
- package/dist/quests/middlewares/user-meta.d.ts.map +1 -1
- package/dist/quests/middlewares/user-ornaments.d.ts +3 -0
- package/dist/quests/middlewares/user-ornaments.d.ts.map +1 -0
- package/dist/quests/middlewares/user-quest-meta.d.ts.map +1 -1
- package/dist/quests/quest.d.ts +4 -2
- package/dist/quests/quest.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 +5 -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/on-user-inventory-update/index.d.ts +2 -0
- package/dist/quests/quests/on-user-inventory-update/index.d.ts.map +1 -0
- package/dist/quests/quests/on-user-ornaments-update/index.d.ts +3 -0
- package/dist/quests/quests/on-user-ornaments-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/dist/services/user-inventory/definition/schema.d.ts.map +1 -1
- package/dist/services/user-ornaments/definition/schema.d.ts.map +1 -1
- package/dist/services/user-quest/types.d.ts +2 -1
- package/dist/services/user-quest/types.d.ts.map +1 -1
- package/dist/services/user-quest-meta/definition/schema.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/quests/quests/common/edito.d.ts.map +0 -1
package/dist/quests/canvas.d.ts
CHANGED
|
@@ -1,10 +1,33 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
3
|
+
/// <reference types="mongoose/types/callback" />
|
|
4
|
+
/// <reference types="mongoose/types/collection" />
|
|
5
|
+
/// <reference types="mongoose/types/connection" />
|
|
6
|
+
/// <reference types="mongoose/types/cursor" />
|
|
7
|
+
/// <reference types="mongoose/types/document" />
|
|
8
|
+
/// <reference types="mongoose/types/error" />
|
|
9
|
+
/// <reference types="mongoose/types/expressions" />
|
|
10
|
+
/// <reference types="mongoose/types/helpers" />
|
|
11
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
12
|
+
/// <reference types="mongoose/types/indexes" />
|
|
13
|
+
/// <reference types="mongoose/types/models" />
|
|
14
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
15
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
16
|
+
/// <reference types="mongoose/types/populate" />
|
|
17
|
+
/// <reference types="mongoose/types/query" />
|
|
18
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
19
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
20
|
+
/// <reference types="mongoose/types/session" />
|
|
21
|
+
/// <reference types="mongoose/types/types" />
|
|
22
|
+
/// <reference types="mongoose/types/utility" />
|
|
23
|
+
/// <reference types="mongoose/types/validation" />
|
|
24
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
25
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
26
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
27
|
+
import type { Types } from 'mongoose';
|
|
2
28
|
import type { CanvasInstance } from '@opfr/canvas';
|
|
3
|
-
import type { BadgeCanvasName } from '@opfr/ornaments';
|
|
4
|
-
import type { UserQuestDocument } from '../services';
|
|
5
29
|
import type Quest from './quest';
|
|
6
|
-
|
|
7
|
-
export declare const questCanvas: <T extends Quest>(quest: T, userQuest: UserQuestDocument, canvas: CanvasInstance<string, QuestAssetId | BadgeCanvasName>, { berry, xp }: {
|
|
30
|
+
export declare const questCanvas: <T extends Quest>(quest: T, userId: Types.ObjectId, canvas: CanvasInstance<string, string>, { berry, xp }: {
|
|
8
31
|
berry: number;
|
|
9
32
|
xp: number;
|
|
10
33
|
}) => Promise<Buffer>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../../src/quests/canvas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../../src/quests/canvas.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAOnD,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,eAAO,MAAM,WAAW,2BACf,CAAC,UACA,MAAM,QAAQ,UACd,eAAe,MAAM,EAAE,MAAM,CAAC;WACd,MAAM;QAAM,MAAM;qBAoI3C,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const BET_MIN_VALUE: 10;
|
|
2
2
|
export declare const BET_MAX_VALUE: 10000000;
|
|
3
3
|
export declare const EDITO_READ: 100;
|
|
4
|
+
export declare const QUEST_ASSET_IMAGES: readonly ["berry", "success_COMMON", "success_RARE", "success_EPIC", "success_LEGENDARY", "success_MYTHIC", "xp"];
|
|
4
5
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/quests/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,IAAc,CAAC;AACzC,eAAO,MAAM,aAAa,UAAsB,CAAC;AAEjD,eAAO,MAAM,UAAU,KAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/quests/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,IAAc,CAAC;AACzC,eAAO,MAAM,aAAa,UAAsB,CAAC;AAEjD,eAAO,MAAM,UAAU,KAAe,CAAC;AAEvC,eAAO,MAAM,kBAAkB,mHAQrB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 Quest from './quest';
|
|
28
|
+
declare const QUEST_EVENT_NAMES: readonly ["crewUpdate", "userMetaUpdate", "userQuestMetaUpdate", "userInventoryUpdate", "userOrnamentsUpdate"];
|
|
29
|
+
type QuestEventName = (typeof QUEST_EVENT_NAMES)[number];
|
|
30
|
+
export declare const emitQuestEvent: (name: QuestEventName, quest: Quest, userId: Types.ObjectId, rewards: {
|
|
31
|
+
xp: number;
|
|
32
|
+
berry: number;
|
|
33
|
+
}) => void;
|
|
34
|
+
export declare const onQuestEvent: (callback: (quest: Quest, userId: Types.ObjectId, rewards: {
|
|
35
|
+
xp: number;
|
|
36
|
+
berry: number;
|
|
37
|
+
}) => void) => void;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=event.d.ts.map
|
|
@@ -0,0 +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,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"}
|
package/dist/quests/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/quests/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AAExB,mBAAmB,SAAS,CAAC;AAE7B,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/quests/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AAExB,mBAAmB,SAAS,CAAC;AAE7B,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-inventory.d.ts","sourceRoot":"","sources":["../../../src/quests/middlewares/user-inventory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAI5D,eAAO,MAAM,uBAAuB,kBACnB,qBAAqB,kBAiBrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-meta.d.ts","sourceRoot":"","sources":["../../../src/quests/middlewares/user-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"user-meta.d.ts","sourceRoot":"","sources":["../../../src/quests/middlewares/user-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIvD,eAAO,MAAM,kBAAkB,aAAoB,gBAAgB,kBAalE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-ornaments.d.ts","sourceRoot":"","sources":["../../../src/quests/middlewares/user-ornaments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIpD,eAAO,MAAM,uBAAuB,kBAAyB,aAAa,kBAgBzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-quest-meta.d.ts","sourceRoot":"","sources":["../../../src/quests/middlewares/user-quest-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"user-quest-meta.d.ts","sourceRoot":"","sources":["../../../src/quests/middlewares/user-quest-meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAI5D,eAAO,MAAM,uBAAuB,kBACnB,qBAAqB,kBAiBrC,CAAC"}
|
package/dist/quests/quest.d.ts
CHANGED
|
@@ -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, UserCrew, UserCrewDocument, UserMeta, UserMetaDocument, UserQuest, UserQuestDocument, UserQuestMeta } from '../';
|
|
29
|
+
import type { Crew, 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;
|
|
@@ -43,6 +43,8 @@ export default abstract class Quest {
|
|
|
43
43
|
abstract readonly crew: boolean;
|
|
44
44
|
readonly onUserMetaUpdate?: (userMeta: UserMeta) => boolean;
|
|
45
45
|
readonly onUserQuestMetaUpdate?: (userQuestMeta: UserQuestMeta) => boolean;
|
|
46
|
+
readonly onUserInventoryUpdate?: (userInventory: UserInventory) => boolean;
|
|
47
|
+
readonly onUserOrnamentsUpdate?: (userOrnaments: UserOrnaments) => boolean;
|
|
46
48
|
readonly onCrewUpdate?: (crew: Crew) => boolean;
|
|
47
49
|
readonly complete: (userId: Types.ObjectId, { _userQuest, _userCrew, _userMeta, }: {
|
|
48
50
|
_userQuest?: UserQuestDocument | undefined;
|
|
@@ -56,7 +58,7 @@ export default abstract class Quest {
|
|
|
56
58
|
xp: number;
|
|
57
59
|
berry: number;
|
|
58
60
|
}>;
|
|
59
|
-
getComputedRewards: (userMeta: UserMeta) => {
|
|
61
|
+
getComputedRewards: (userMeta: UserMeta, userQuest: UserQuest) => {
|
|
60
62
|
xp: number;
|
|
61
63
|
berry: number;
|
|
62
64
|
};
|
|
@@ -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,O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,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAAG,IAAI;;;;IAsC3B,kBAAkB,aAAc,QAAQ,aAAa,SAAS;;;MAe5D;IAEI,uBAAuB,CAAC,SAAS,EAAE,iBAAiB;IAe1D,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;CAG5E"}
|
|
@@ -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,5 +1,8 @@
|
|
|
1
|
+
import * as CrewQuests from './on-crew-update';
|
|
2
|
+
import * as UserInventoryQuests from './on-user-inventory-update';
|
|
1
3
|
import * as UserMetaQuests from './on-user-meta-update';
|
|
4
|
+
import * as UserOrnamentsQuests from './on-user-ornaments-update';
|
|
2
5
|
import * as UserQuestMetaQuests from './on-user-quest-meta-update';
|
|
3
|
-
export declare const ALL_QUESTS: readonly (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 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)[];
|
|
4
|
-
export { UserQuestMetaQuests, 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, };
|
|
5
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,cAAc,MAAM,uBAAuB,CAAC;AACxD,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/on-user-inventory-update/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/quests/quests/on-user-ornaments-update/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/user-inventory/definition/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/user-inventory/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;;;;;;;;EAevB,CAAC;AAQH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/user-ornaments/definition/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/user-ornaments/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;;;;;;;;EAkBvB,CAAC;AAQH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -24,8 +24,9 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import type { Document, Types } from 'mongoose';
|
|
27
|
+
import type { UserDocument } from '../user';
|
|
27
28
|
export interface UserQuest {
|
|
28
|
-
user: Types.ObjectId;
|
|
29
|
+
user: Types.ObjectId | UserDocument;
|
|
29
30
|
completed: string[];
|
|
30
31
|
daily: Record<string, Date>;
|
|
31
32
|
streak: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/user-quest/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/services/user-quest/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,KAAK,CAAC,QAAQ,GAAG,YAAY,CAAC;IAEpC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,iBAAkB,SAAQ,QAAQ,EAAE,SAAS;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/user-quest-meta/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;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/services/user-quest-meta/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;;;;;;;;EAkEvB,CAAC;AAQH,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
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"}
|