@sparted/shared-library 1.7.23 → 1.7.26
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/business/types/activity/wiki.d.ts +18 -0
- package/business/types/activity/wiki.js +8 -0
- package/business/types/activity/wiki.js.map +1 -0
- package/business/types/index.d.ts +6 -5
- package/business/types/index.js +5 -3
- package/business/types/index.js.map +1 -1
- package/package.json +1 -1
- package/types/search.d.ts +5 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type MultilingualLabel } from '../multilingual';
|
|
2
|
+
export type WikiCardDetails = {
|
|
3
|
+
id: number;
|
|
4
|
+
coverImage: string;
|
|
5
|
+
title: MultilingualLabel;
|
|
6
|
+
utcStartDate: string;
|
|
7
|
+
utcEndDate: string;
|
|
8
|
+
contentCount: number;
|
|
9
|
+
};
|
|
10
|
+
export type WikiCardPlayerInteraction = {
|
|
11
|
+
contentPlayedCount: number;
|
|
12
|
+
favorite: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type WikiCard = {
|
|
15
|
+
activityDetails: WikiCardDetails;
|
|
16
|
+
playerInteraction: WikiCardPlayerInteraction;
|
|
17
|
+
};
|
|
18
|
+
export declare const isWikiCard: (item: unknown) => item is WikiCard;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const isWikiCard = (item) => typeof item === 'object' && item !== null && 'activityDetails' in item && 'playerInteraction' in item;
|
|
6
|
+
|
|
7
|
+
exports.isWikiCard = isWikiCard;
|
|
8
|
+
//# sourceMappingURL=wiki.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wiki.js","sources":["../../../../src/business/types/activity/wiki.ts"],"sourcesContent":["import { type MultilingualLabel } from '../multilingual';\n\nexport type WikiCardDetails = {\n id: number;\n coverImage: string;\n title: MultilingualLabel;\n utcStartDate: string;\n utcEndDate: string;\n contentCount: number;\n};\n\nexport type WikiCardPlayerInteraction = {\n contentPlayedCount: number;\n favorite: boolean;\n};\n\nexport type WikiCard = {\n activityDetails: WikiCardDetails;\n playerInteraction: WikiCardPlayerInteraction;\n};\n\nexport const isWikiCard = (item: unknown): item is WikiCard =>\n typeof item === 'object' && item !== null && 'activityDetails' in item && 'playerInteraction' in item;\n"],"names":[],"mappings":";;;;AAqBa,MAAA,UAAU,GAAG,CAAC,IAAa,KACtC,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,iBAAiB,IAAI,IAAI,IAAI,mBAAmB,IAAI;;;;"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
export * from './achievement';
|
|
1
2
|
export * from './activity';
|
|
3
|
+
export * from './activity/wiki';
|
|
2
4
|
export * from './breaking-news';
|
|
5
|
+
export * from './campaign';
|
|
3
6
|
export * from './content';
|
|
7
|
+
export * from './document';
|
|
4
8
|
export * from './media';
|
|
5
|
-
export * from './thematic';
|
|
6
9
|
export * from './multilingual';
|
|
7
|
-
export * from './campaign';
|
|
8
|
-
export * from './document';
|
|
9
|
-
export * from './score';
|
|
10
10
|
export * from './player';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './score';
|
|
12
|
+
export * from './thematic';
|
package/business/types/index.js
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var activity = require('./activity.js');
|
|
6
|
+
var wiki = require('./activity/wiki.js');
|
|
7
|
+
var campaign = require('./campaign.js');
|
|
6
8
|
var content = require('./content.js');
|
|
7
9
|
var multilingual = require('./multilingual.js');
|
|
8
|
-
var campaign = require('./campaign.js');
|
|
9
10
|
var score = require('./score.js');
|
|
10
11
|
|
|
11
12
|
|
|
@@ -13,6 +14,9 @@ var score = require('./score.js');
|
|
|
13
14
|
exports.ACTIVITY_STATUS = activity.ACTIVITY_STATUS;
|
|
14
15
|
exports.isActivityBreakingNews = activity.isActivityBreakingNews;
|
|
15
16
|
exports.isActivityCampaign = activity.isActivityCampaign;
|
|
17
|
+
exports.isWikiCard = wiki.isWikiCard;
|
|
18
|
+
exports.isCampaignSchedulingManual = campaign.isCampaignSchedulingManual;
|
|
19
|
+
exports.isCampaignSchedulingRandom = campaign.isCampaignSchedulingRandom;
|
|
16
20
|
exports.GAME_TYPE = content.GAME_TYPE;
|
|
17
21
|
exports.extractExplanation = content.extractExplanation;
|
|
18
22
|
exports.isGameErrorText = content.isGameErrorText;
|
|
@@ -31,8 +35,6 @@ exports.isPartialGamePictureSpot = content.isPartialGamePictureSpot;
|
|
|
31
35
|
exports.isPartialGameSwipingCards = content.isPartialGameSwipingCards;
|
|
32
36
|
exports.Languages = multilingual.Languages;
|
|
33
37
|
exports.isLanguageCode = multilingual.isLanguageCode;
|
|
34
|
-
exports.isCampaignSchedulingManual = campaign.isCampaignSchedulingManual;
|
|
35
|
-
exports.isCampaignSchedulingRandom = campaign.isCampaignSchedulingRandom;
|
|
36
38
|
exports.isBattleScore = score.isBattleScore;
|
|
37
39
|
exports.isCampaignScore = score.isCampaignScore;
|
|
38
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
package/types/search.d.ts
CHANGED
|
@@ -8,9 +8,11 @@ export type SearchQueryValue = string;
|
|
|
8
8
|
export type SearchQuery = {
|
|
9
9
|
[property: SearchQueryProperty]: SearchQueryValue;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
12
|
-
offset
|
|
13
|
-
limit
|
|
11
|
+
export type PaginationOptions = {
|
|
12
|
+
offset: number;
|
|
13
|
+
limit: number;
|
|
14
|
+
};
|
|
15
|
+
export type SearchObject = Partial<PaginationOptions> & {
|
|
14
16
|
sort?: Record<string, SearchSortOrder>;
|
|
15
17
|
query?: SearchQuery;
|
|
16
18
|
};
|