@quesmed/types-rn 2.6.34 → 2.6.36

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,3 +1,4 @@
1
+ import { IEntitlement } from './Product';
1
2
  import { Id } from './Type';
2
3
  export interface IFeedback {
3
4
  id: Id;
@@ -6,4 +7,5 @@ export interface IFeedback {
6
7
  name: string;
7
8
  feedback: string;
8
9
  university: string;
10
+ product: IEntitlement;
9
11
  }
package/models/Promo.d.ts CHANGED
@@ -10,5 +10,5 @@ export interface IPromoReport {
10
10
  date: number | Date;
11
11
  couponId: Id;
12
12
  userId: Id;
13
- productId: Id;
13
+ subscriptionId: Id;
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.34",
3
+ "version": "2.6.36",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -140,6 +140,8 @@ exports.QUESTION_FIELDS = (0, client_1.gql) `
140
140
  ...QuestionCommentFields
141
141
  }
142
142
  concept {
143
+ # needed for daily stack
144
+ totalCards
143
145
  ...ConceptFields
144
146
  }
145
147
  pictures {
@@ -279,7 +279,7 @@ const updateQuestionCommentsRemove = (typeId) => (cache, result, options) => {
279
279
  });
280
280
  if (dataFragment) {
281
281
  const { comments = [] } = dataFragment;
282
- const createdAtDate = luxon_1.DateTime.fromJSDate(createdAt);
282
+ const createdAtDate = luxon_1.DateTime.fromSeconds(createdAt);
283
283
  const diffInHours = luxon_1.DateTime.now().diff(createdAtDate, 'hours').hours;
284
284
  let updatedComments = [];
285
285
  if (diffInHours >= 24) {
@@ -9,6 +9,10 @@ exports.FEEDBACK = (0, client_1.gql) `
9
9
  name
10
10
  feedback
11
11
  university
12
+ product {
13
+ id
14
+ name
15
+ }
12
16
  }
13
17
  }
14
18
  `;