@sparted/shared-library 1.7.26 → 1.7.27

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.
@@ -1,4 +1,5 @@
1
1
  import { type MultilingualLabel } from '../multilingual';
2
+ import { type Points } from '../score';
2
3
  export type WikiCardDetails = {
3
4
  id: number;
4
5
  coverImage: string;
@@ -15,4 +16,14 @@ export type WikiCard = {
15
16
  activityDetails: WikiCardDetails;
16
17
  playerInteraction: WikiCardPlayerInteraction;
17
18
  };
19
+ export type WikiContentCardDetails = {
20
+ id: number;
21
+ coverImage: string;
22
+ title: MultilingualLabel;
23
+ session: number;
24
+ };
25
+ export type WikiContentCard = {
26
+ contentDetails: WikiContentCardDetails;
27
+ points: Points;
28
+ };
18
29
  export declare const isWikiCard: (item: unknown) => item is WikiCard;
@@ -1 +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
+ {"version":3,"file":"wiki.js","sources":["../../../../src/business/types/activity/wiki.ts"],"sourcesContent":["import { type MultilingualLabel } from '../multilingual';\nimport { type Points } from '../score';\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 type WikiContentCardDetails = {\n id: number;\n coverImage: string;\n title: MultilingualLabel;\n session: number;\n};\n\nexport type WikiContentCard = {\n contentDetails: WikiContentCardDetails;\n points: Points;\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":";;;;AAkCa,MAAA,UAAU,GAAG,CAAC,IAAa,KACtC,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,iBAAiB,IAAI,IAAI,IAAI,mBAAmB,IAAI;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sparted/shared-library",
3
- "version": "1.7.26",
3
+ "version": "1.7.27",
4
4
  "repository": "git@github.com:Sparted/shared-library.git",
5
5
  "author": {
6
6
  "name": "Sparted",