@gbl-uzh/platform 0.4.5 → 0.4.6

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.js CHANGED
@@ -1811,6 +1811,9 @@ async function attemptLearningElement(args, ctx) {
1811
1811
  connect: {
1812
1812
  id: args.elementId
1813
1813
  }
1814
+ },
1815
+ completedLearningElementIds: {
1816
+ push: args.elementId
1814
1817
  }
1815
1818
  },
1816
1819
  include: {
@@ -1880,6 +1883,9 @@ async function markStoryElement(args, ctx) {
1880
1883
  connect: {
1881
1884
  id: args.elementId
1882
1885
  }
1886
+ },
1887
+ visitedStoryElementIds: {
1888
+ push: args.elementId
1883
1889
  }
1884
1890
  }
1885
1891
  });
package/dist/nexus.js CHANGED
@@ -193,11 +193,11 @@ var Player = (0, import_nexus3.objectType)({
193
193
  t.nonNull.list.nonNull.field("completedLearningElements", {
194
194
  type: LearningElement
195
195
  });
196
- t.nonNull.list.nonNull.int("completedLearningElementIds");
196
+ t.nonNull.list.nonNull.string("completedLearningElementIds");
197
197
  t.nonNull.list.nonNull.field("visitedStoryElements", {
198
198
  type: StoryElement
199
199
  });
200
- t.nonNull.list.nonNull.int("visitedStoryElementIds");
200
+ t.nonNull.list.nonNull.string("visitedStoryElementIds");
201
201
  }
202
202
  });
203
203
  var PlayerResult = (0, import_nexus3.objectType)({
@@ -2087,6 +2087,9 @@ async function attemptLearningElement(args, ctx) {
2087
2087
  connect: {
2088
2088
  id: args.elementId
2089
2089
  }
2090
+ },
2091
+ completedLearningElementIds: {
2092
+ push: args.elementId
2090
2093
  }
2091
2094
  },
2092
2095
  include: {
@@ -2156,6 +2159,9 @@ async function markStoryElement(args, ctx) {
2156
2159
  connect: {
2157
2160
  id: args.elementId
2158
2161
  }
2162
+ },
2163
+ visitedStoryElementIds: {
2164
+ push: args.elementId
2159
2165
  }
2160
2166
  }
2161
2167
  });
@@ -7,9 +7,11 @@ fragment SegmentData on PeriodSegment {
7
7
 
8
8
  learningElements {
9
9
  id
10
+ title
10
11
  }
11
12
 
12
13
  storyElements {
13
14
  id
15
+ title
14
16
  }
15
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gbl-uzh/platform",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "license": "LGPL-3.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",