@quesmed/types 1.4.5 → 1.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.
@@ -1,8 +1,8 @@
1
1
  import { Id } from './Type';
2
2
  export interface IAuthor {
3
3
  id: Id;
4
- createdAt: string | Date;
5
- updatedAt: string | Date;
4
+ createdAt: number;
5
+ updatedAt: number;
6
6
  name: string;
7
7
  qualifications: string | null;
8
8
  title: string;
package/models/Book.d.ts CHANGED
@@ -2,11 +2,11 @@ import { IAuthor } from './Author';
2
2
  import { Id } from './Type';
3
3
  export interface IBook {
4
4
  id: Id;
5
- createdAt: string | Date;
6
- updatedAt: string | Date;
5
+ createdAt: number;
6
+ updatedAt: number;
7
7
  name: string;
8
8
  publisher: string;
9
- publishDate: string | Date;
9
+ publishDate: number;
10
10
  pages: number;
11
11
  format: string;
12
12
  language: string;
@@ -4,8 +4,8 @@ import { ETopicType } from './Topic';
4
4
  import { Id } from './Type';
5
5
  export interface IChapter {
6
6
  id: Id;
7
- createdAt: string | Date;
8
- updatedAt: string | Date;
7
+ createdAt: number;
8
+ updatedAt: number;
9
9
  explanation: string | null;
10
10
  typeId: ETopicType | null;
11
11
  pictures: IChapterPicture[];
@@ -4,8 +4,8 @@ import { Id } from './Type';
4
4
  import { IVideo } from './Video';
5
5
  export interface IConcept {
6
6
  id: Id;
7
- createdAt: string | Date;
8
- updatedAt: string | Date;
7
+ createdAt: number;
8
+ updatedAt: number;
9
9
  name: string;
10
10
  chapterId: Id;
11
11
  chapter: IChapter;
@@ -1,7 +1,7 @@
1
1
  import { Id } from './Type';
2
2
  export interface IFeedback {
3
3
  id: Id;
4
- createdAt: string | Date;
4
+ createdAt: number;
5
5
  name: string;
6
6
  feedback: string;
7
7
  university: string;
package/models/File.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Id } from './Type';
2
2
  export interface IFile {
3
3
  id: Id;
4
- createdAt: string | Date;
5
- updatedAt: string | Date;
4
+ createdAt: number;
5
+ updatedAt: number;
6
6
  title: string;
7
7
  url: string;
8
8
  videoId?: number;
@@ -2,8 +2,8 @@ import { ITopic } from './Topic';
2
2
  import { Id } from './Type';
3
3
  export interface IPicture {
4
4
  id: Id;
5
- createdAt: string | Date;
6
- updatedAt: string | Date;
5
+ createdAt: number;
6
+ updatedAt: number;
7
7
  name: string;
8
8
  caption: string;
9
9
  path: string;
package/models/Picture.js CHANGED
@@ -1,6 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- ;
4
- ;
5
- ;
6
- ;
@@ -1,5 +1 @@
1
- ;
2
- ;
3
- ;
4
- ;
5
1
  export {};
package/models/Promo.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { Id } from './Type';
2
2
  export interface ICoupon {
3
3
  id: Id;
4
- createdAt: string | Date;
4
+ createdAt: number;
5
5
  name: string;
6
6
  affiliateId: Id;
7
7
  }
8
8
  export interface IPromoReport {
9
9
  id: Id;
10
- date: string | Date;
10
+ date: number;
11
11
  couponId: Id;
12
12
  userId: Id;
13
13
  subscriptionId: Id;
@@ -1,7 +1,7 @@
1
1
  import { Id } from './Type';
2
2
  export interface ISubscription {
3
3
  id: Id;
4
- createdAt: string | Date;
4
+ createdAt: number;
5
5
  name: string;
6
6
  description: string | null;
7
7
  price: number;
package/models/Video.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { IConcept } from "./Concept";
2
- import { IFile } from "./File";
3
- import { Id } from "./Type";
1
+ import { IConcept } from './Concept';
2
+ import { IFile } from './File';
3
+ import { Id } from './Type';
4
4
  export interface IVideo {
5
5
  id: Id;
6
- createdAt: string | Date;
7
- updatedAt: string | Date;
8
- startTime: string | Date;
9
- endTime: string | Date;
6
+ createdAt: number;
7
+ updatedAt: number;
8
+ startTime: number;
9
+ endTime: number;
10
10
  title: string;
11
11
  museId: string;
12
12
  thumbnail: string;
@@ -16,8 +16,8 @@ export interface IVideo {
16
16
  duration: number;
17
17
  concepts: IConcept[];
18
18
  files: IFile[];
19
- send1hrPushAt: string | Date | null;
20
- sent1hrPushAt: string | Date | null;
21
- send24hrPushAt: string | Date | null;
22
- sent24hrPushAt: string | Date | null;
19
+ send1hrPushAt: number | null;
20
+ sent1hrPushAt: number | null;
21
+ send24hrPushAt: number | null;
22
+ sent24hrPushAt: number | null;
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",