@hy-capital/api-habit-tracker-types 1.0.84 → 1.0.86

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,29 @@
1
+ import { TopicType } from './user-topic';
2
+ export interface Article {
3
+ title: string;
4
+ description: string;
5
+ topic_type: TopicType;
6
+ min_read: number;
7
+ published_at: string;
8
+ image_url: string;
9
+ sections: Section[];
10
+ }
11
+ export interface Section {
12
+ section_title: string | null;
13
+ paragraphs: Paragraph[];
14
+ }
15
+ export type Paragraph = ParagraphText | ParagraphList | ParagraphImage;
16
+ export interface ParagraphText {
17
+ paragraph_title: string | null;
18
+ type: 'text';
19
+ content: string;
20
+ }
21
+ export interface ParagraphList {
22
+ paragraph_title: string;
23
+ type: 'orderedList' | 'unorderedList';
24
+ content: string[];
25
+ }
26
+ export interface ParagraphImage {
27
+ type: 'image';
28
+ image_url: string;
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from './user-match-rate';
8
8
  export * from './user-topic';
9
9
  export * from './user-xp';
10
10
  export * from './analytics';
11
+ export * from './article';
package/dist/index.js CHANGED
@@ -24,3 +24,4 @@ __exportStar(require("./user-match-rate"), exports);
24
24
  __exportStar(require("./user-topic"), exports);
25
25
  __exportStar(require("./user-xp"), exports);
26
26
  __exportStar(require("./analytics"), exports);
27
+ __exportStar(require("./article"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hy-capital/api-habit-tracker-types",
3
- "version": "1.0.84",
3
+ "version": "1.0.86",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "types": "dist/index.d.ts",
package/src/article.ts ADDED
@@ -0,0 +1,35 @@
1
+ import {TopicType} from './user-topic';
2
+
3
+ export interface Article {
4
+ title: string;
5
+ description: string;
6
+ topic_type: TopicType;
7
+ min_read: number;
8
+ published_at: string;
9
+ image_url: string;
10
+ sections: Section[];
11
+ }
12
+
13
+ export interface Section {
14
+ section_title: string | null;
15
+ paragraphs: Paragraph[];
16
+ }
17
+
18
+ export type Paragraph = ParagraphText | ParagraphList | ParagraphImage;
19
+
20
+ export interface ParagraphText {
21
+ paragraph_title: string | null;
22
+ type: 'text';
23
+ content: string;
24
+ }
25
+
26
+ export interface ParagraphList {
27
+ paragraph_title: string;
28
+ type: 'orderedList' | 'unorderedList';
29
+ content: string[];
30
+ }
31
+
32
+ export interface ParagraphImage {
33
+ type: 'image';
34
+ image_url: string;
35
+ }
package/src/index.ts CHANGED
@@ -8,3 +8,4 @@ export * from './user-match-rate';
8
8
  export * from './user-topic';
9
9
  export * from './user-xp';
10
10
  export * from './analytics';
11
+ export * from './article';