@sparted/shared-library 1.7.23 → 1.7.25

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.
@@ -0,0 +1,17 @@
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
+ };
@@ -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 './achievement';
11
+ export * from './score';
12
+ export * from './thematic';
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var activity = require('./activity.js');
6
+ var campaign = require('./campaign.js');
6
7
  var content = require('./content.js');
7
8
  var multilingual = require('./multilingual.js');
8
- var campaign = require('./campaign.js');
9
9
  var score = require('./score.js');
10
10
 
11
11
 
@@ -13,6 +13,8 @@ var score = require('./score.js');
13
13
  exports.ACTIVITY_STATUS = activity.ACTIVITY_STATUS;
14
14
  exports.isActivityBreakingNews = activity.isActivityBreakingNews;
15
15
  exports.isActivityCampaign = activity.isActivityCampaign;
16
+ exports.isCampaignSchedulingManual = campaign.isCampaignSchedulingManual;
17
+ exports.isCampaignSchedulingRandom = campaign.isCampaignSchedulingRandom;
16
18
  exports.GAME_TYPE = content.GAME_TYPE;
17
19
  exports.extractExplanation = content.extractExplanation;
18
20
  exports.isGameErrorText = content.isGameErrorText;
@@ -31,8 +33,6 @@ exports.isPartialGamePictureSpot = content.isPartialGamePictureSpot;
31
33
  exports.isPartialGameSwipingCards = content.isPartialGameSwipingCards;
32
34
  exports.Languages = multilingual.Languages;
33
35
  exports.isLanguageCode = multilingual.isLanguageCode;
34
- exports.isCampaignSchedulingManual = campaign.isCampaignSchedulingManual;
35
- exports.isCampaignSchedulingRandom = campaign.isCampaignSchedulingRandom;
36
36
  exports.isBattleScore = score.isBattleScore;
37
37
  exports.isCampaignScore = score.isCampaignScore;
38
38
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparted/shared-library",
3
- "version": "1.7.23",
3
+ "version": "1.7.25",
4
4
  "repository": "git@github.com:Sparted/shared-library.git",
5
5
  "author": {
6
6
  "name": "Sparted",
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 SearchObject = {
12
- offset?: number;
13
- limit?: number;
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
  };