@uptime.app/contracts 1.0.9-rc.6 → 1.0.9-rc.8
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/cjs/draft-hack/draft-hack.d.ts +95 -0
- package/dist/cjs/draft-hack/draft-hack.d.ts.map +1 -1
- package/dist/cjs/draft-hack/draft-hack.js +0 -80
- package/dist/cjs/draft-hack/draft-hack.js.map +1 -1
- package/dist/esm/draft-hack/draft-hack.d.ts +95 -0
- package/dist/esm/draft-hack/draft-hack.d.ts.map +1 -1
- package/dist/esm/draft-hack/draft-hack.js +0 -80
- package/dist/esm/draft-hack/draft-hack.js.map +1 -1
- package/package.json +2 -2
- package/src/draft-hack/draft-hack.ts +95 -96
|
@@ -37,6 +37,21 @@ export interface DraftHackContent {
|
|
|
37
37
|
* @maxLength 50
|
|
38
38
|
*/
|
|
39
39
|
themeId?: string;
|
|
40
|
+
segments: DraftHackSegments;
|
|
41
|
+
/**
|
|
42
|
+
* @maxLength 1000
|
|
43
|
+
*/
|
|
44
|
+
coverUrl?: string;
|
|
45
|
+
notifications?: DraftHackNotifications;
|
|
46
|
+
affiliate?: DraftAffiliate;
|
|
47
|
+
/**
|
|
48
|
+
* @maxItems 50
|
|
49
|
+
*/
|
|
50
|
+
topics?: DraftTopic[];
|
|
51
|
+
/**
|
|
52
|
+
* @maxItems 10
|
|
53
|
+
*/
|
|
54
|
+
contributors?: DraftContributor[];
|
|
40
55
|
/**
|
|
41
56
|
* @maxItems 50
|
|
42
57
|
* @items.maxLength 150
|
|
@@ -44,4 +59,84 @@ export interface DraftHackContent {
|
|
|
44
59
|
tags?: string[];
|
|
45
60
|
isCopyrightFree?: boolean;
|
|
46
61
|
}
|
|
62
|
+
export interface DraftHackNotifications {
|
|
63
|
+
/**
|
|
64
|
+
* @maxLength 1000
|
|
65
|
+
*/
|
|
66
|
+
aiGeneratedText?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @maxLength 1000
|
|
69
|
+
*/
|
|
70
|
+
humanCuratedText?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface DraftHackSegments {
|
|
73
|
+
favouriteQuote?: DraftHackSegment;
|
|
74
|
+
inANutshell?: DraftHackSegment;
|
|
75
|
+
introduction?: DraftHackSegment;
|
|
76
|
+
/**
|
|
77
|
+
* @maxItems 10
|
|
78
|
+
*/
|
|
79
|
+
insights?: DraftHackInsightSegment[];
|
|
80
|
+
conclusion?: DraftHackSegment;
|
|
81
|
+
}
|
|
82
|
+
export interface DraftHackCard {
|
|
83
|
+
/**
|
|
84
|
+
* @maxLength 2000
|
|
85
|
+
*/
|
|
86
|
+
markdown: string;
|
|
87
|
+
}
|
|
88
|
+
export interface DraftHackSegment {
|
|
89
|
+
/**
|
|
90
|
+
* @maxItems 50
|
|
91
|
+
* @items.maxLength 150
|
|
92
|
+
*/
|
|
93
|
+
keywords: string[];
|
|
94
|
+
paragraphCards: DraftHackCard[][];
|
|
95
|
+
/**
|
|
96
|
+
* @maxLength 1000
|
|
97
|
+
*/
|
|
98
|
+
textSummary?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface DraftHackInsightSegment extends DraftHackSegment {
|
|
101
|
+
/**
|
|
102
|
+
* @maxLength 150
|
|
103
|
+
*/
|
|
104
|
+
title?: string;
|
|
105
|
+
/**
|
|
106
|
+
* @maxItems 50
|
|
107
|
+
*/
|
|
108
|
+
actions: DraftHackAction[];
|
|
109
|
+
}
|
|
110
|
+
export interface DraftHackAction {
|
|
111
|
+
/**
|
|
112
|
+
* @maxLength 150
|
|
113
|
+
*/
|
|
114
|
+
title: string;
|
|
115
|
+
/**
|
|
116
|
+
* @maxLength 1000
|
|
117
|
+
*/
|
|
118
|
+
markdown: string;
|
|
119
|
+
}
|
|
120
|
+
export interface DraftContributor {
|
|
121
|
+
/**
|
|
122
|
+
* @maxLength 150
|
|
123
|
+
*/
|
|
124
|
+
name: string;
|
|
125
|
+
}
|
|
126
|
+
export interface DraftTopic {
|
|
127
|
+
/**
|
|
128
|
+
* @maxLength 150
|
|
129
|
+
*/
|
|
130
|
+
name: string;
|
|
131
|
+
}
|
|
132
|
+
export interface DraftAffiliate {
|
|
133
|
+
/**
|
|
134
|
+
* @maxLength 1000
|
|
135
|
+
*/
|
|
136
|
+
url?: string;
|
|
137
|
+
/**
|
|
138
|
+
* @maxLength 150
|
|
139
|
+
*/
|
|
140
|
+
name?: string;
|
|
141
|
+
}
|
|
47
142
|
//# sourceMappingURL=draft-hack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack.d.ts","sourceRoot":"","sources":["../../../src/draft-hack/draft-hack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,WAAW,SAAU,SAAQ,gBAAgB;IAC/C,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,0GAA0G;IAC1G,MAAM,EAAE,eAAe,CAAC;IACxB,oJAAoJ;IACpJ,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,gBAAgB,EAAE,MAAM,CAAC;IAEzB,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wGAAwG;IAExG,oFAAoF;IACpF,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sFAAsF;IACtF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qOAAqO;IACrO,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACvC;AAED,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,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;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,85 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// export interface DraftHackNotifications {
|
|
4
|
-
// /**
|
|
5
|
-
// * @maxLength 1000
|
|
6
|
-
// */
|
|
7
|
-
// aiGeneratedText?: string;
|
|
8
|
-
// /**
|
|
9
|
-
// * @maxLength 1000
|
|
10
|
-
// */
|
|
11
|
-
// humanCuratedText?: string;
|
|
12
|
-
// }
|
|
13
|
-
// export interface DraftHackSegments {
|
|
14
|
-
// favouriteQuote?: DraftHackSegment;
|
|
15
|
-
// inANutshell?: DraftHackSegment;
|
|
16
|
-
// introduction?: DraftHackSegment;
|
|
17
|
-
// /**
|
|
18
|
-
// * @maxItems 10
|
|
19
|
-
// */
|
|
20
|
-
// insights?: DraftHackInsightSegment[];
|
|
21
|
-
// conclusion?: DraftHackSegment;
|
|
22
|
-
// }
|
|
23
|
-
// export interface DraftHackCard {
|
|
24
|
-
// /**
|
|
25
|
-
// * @maxLength 2000
|
|
26
|
-
// */
|
|
27
|
-
// markdown: string;
|
|
28
|
-
// }
|
|
29
|
-
// export interface DraftHackSegment {
|
|
30
|
-
// /**
|
|
31
|
-
// * @maxItems 50
|
|
32
|
-
// * @items.maxLength 150
|
|
33
|
-
// */
|
|
34
|
-
// keywords: string[];
|
|
35
|
-
// paragraphCards: DraftHackCard[][];
|
|
36
|
-
// /**
|
|
37
|
-
// * @maxLength 1000
|
|
38
|
-
// */
|
|
39
|
-
// textSummary?: string;
|
|
40
|
-
// }
|
|
41
|
-
// export interface DraftHackInsightSegment extends DraftHackSegment {
|
|
42
|
-
// /**
|
|
43
|
-
// * @maxLength 150
|
|
44
|
-
// */
|
|
45
|
-
// title?: string;
|
|
46
|
-
// /**
|
|
47
|
-
// * @maxItems 50
|
|
48
|
-
// */
|
|
49
|
-
// actions: DraftHackAction[];
|
|
50
|
-
// }
|
|
51
|
-
// export interface DraftHackAction {
|
|
52
|
-
// /**
|
|
53
|
-
// * @maxLength 150
|
|
54
|
-
// */
|
|
55
|
-
// title: string;
|
|
56
|
-
// /**
|
|
57
|
-
// * @maxLength 1000
|
|
58
|
-
// */
|
|
59
|
-
// markdown: string
|
|
60
|
-
// }
|
|
61
|
-
// export interface DraftContributor {
|
|
62
|
-
// /**
|
|
63
|
-
// * @maxLength 150
|
|
64
|
-
// */
|
|
65
|
-
// name: string;
|
|
66
|
-
// }
|
|
67
|
-
// export interface DraftTopic {
|
|
68
|
-
// /**
|
|
69
|
-
// * @maxLength 150
|
|
70
|
-
// */
|
|
71
|
-
// name: string;
|
|
72
|
-
// }
|
|
73
|
-
// export interface DraftAffiliate {
|
|
74
|
-
// /**
|
|
75
|
-
// * @maxLength 1000
|
|
76
|
-
// */
|
|
77
|
-
// url?: string;
|
|
78
|
-
// /**
|
|
79
|
-
// * @maxLength 150
|
|
80
|
-
// */
|
|
81
|
-
// name?: string;
|
|
82
|
-
// }
|
|
83
3
|
// export interface DraftSourceData {
|
|
84
4
|
// /**
|
|
85
5
|
// * @maxLength 150
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack.js","sourceRoot":"","sources":["../../../src/draft-hack/draft-hack.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"draft-hack.js","sourceRoot":"","sources":["../../../src/draft-hack/draft-hack.ts"],"names":[],"mappings":";;AAiKA,qCAAqC;AACrC,UAAU;AACV,wBAAwB;AACxB,UAAU;AACV,6BAA6B;AAC7B,UAAU;AACV,uBAAuB;AACvB,UAAU;AACV,4BAA4B;AAC5B,IAAI;AAEJ,2CAA2C;AAC3C,UAAU;AACV,yBAAyB;AACzB,UAAU;AACV,mBAAmB;AACnB,2EAA2E;AAC3E,IAAI;AAEJ,sHAAsH;AACtH,oEAAoE;AACpE,0FAA0F;AAC1F,0DAA0D"}
|
|
@@ -37,6 +37,21 @@ export interface DraftHackContent {
|
|
|
37
37
|
* @maxLength 50
|
|
38
38
|
*/
|
|
39
39
|
themeId?: string;
|
|
40
|
+
segments: DraftHackSegments;
|
|
41
|
+
/**
|
|
42
|
+
* @maxLength 1000
|
|
43
|
+
*/
|
|
44
|
+
coverUrl?: string;
|
|
45
|
+
notifications?: DraftHackNotifications;
|
|
46
|
+
affiliate?: DraftAffiliate;
|
|
47
|
+
/**
|
|
48
|
+
* @maxItems 50
|
|
49
|
+
*/
|
|
50
|
+
topics?: DraftTopic[];
|
|
51
|
+
/**
|
|
52
|
+
* @maxItems 10
|
|
53
|
+
*/
|
|
54
|
+
contributors?: DraftContributor[];
|
|
40
55
|
/**
|
|
41
56
|
* @maxItems 50
|
|
42
57
|
* @items.maxLength 150
|
|
@@ -44,4 +59,84 @@ export interface DraftHackContent {
|
|
|
44
59
|
tags?: string[];
|
|
45
60
|
isCopyrightFree?: boolean;
|
|
46
61
|
}
|
|
62
|
+
export interface DraftHackNotifications {
|
|
63
|
+
/**
|
|
64
|
+
* @maxLength 1000
|
|
65
|
+
*/
|
|
66
|
+
aiGeneratedText?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @maxLength 1000
|
|
69
|
+
*/
|
|
70
|
+
humanCuratedText?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface DraftHackSegments {
|
|
73
|
+
favouriteQuote?: DraftHackSegment;
|
|
74
|
+
inANutshell?: DraftHackSegment;
|
|
75
|
+
introduction?: DraftHackSegment;
|
|
76
|
+
/**
|
|
77
|
+
* @maxItems 10
|
|
78
|
+
*/
|
|
79
|
+
insights?: DraftHackInsightSegment[];
|
|
80
|
+
conclusion?: DraftHackSegment;
|
|
81
|
+
}
|
|
82
|
+
export interface DraftHackCard {
|
|
83
|
+
/**
|
|
84
|
+
* @maxLength 2000
|
|
85
|
+
*/
|
|
86
|
+
markdown: string;
|
|
87
|
+
}
|
|
88
|
+
export interface DraftHackSegment {
|
|
89
|
+
/**
|
|
90
|
+
* @maxItems 50
|
|
91
|
+
* @items.maxLength 150
|
|
92
|
+
*/
|
|
93
|
+
keywords: string[];
|
|
94
|
+
paragraphCards: DraftHackCard[][];
|
|
95
|
+
/**
|
|
96
|
+
* @maxLength 1000
|
|
97
|
+
*/
|
|
98
|
+
textSummary?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface DraftHackInsightSegment extends DraftHackSegment {
|
|
101
|
+
/**
|
|
102
|
+
* @maxLength 150
|
|
103
|
+
*/
|
|
104
|
+
title?: string;
|
|
105
|
+
/**
|
|
106
|
+
* @maxItems 50
|
|
107
|
+
*/
|
|
108
|
+
actions: DraftHackAction[];
|
|
109
|
+
}
|
|
110
|
+
export interface DraftHackAction {
|
|
111
|
+
/**
|
|
112
|
+
* @maxLength 150
|
|
113
|
+
*/
|
|
114
|
+
title: string;
|
|
115
|
+
/**
|
|
116
|
+
* @maxLength 1000
|
|
117
|
+
*/
|
|
118
|
+
markdown: string;
|
|
119
|
+
}
|
|
120
|
+
export interface DraftContributor {
|
|
121
|
+
/**
|
|
122
|
+
* @maxLength 150
|
|
123
|
+
*/
|
|
124
|
+
name: string;
|
|
125
|
+
}
|
|
126
|
+
export interface DraftTopic {
|
|
127
|
+
/**
|
|
128
|
+
* @maxLength 150
|
|
129
|
+
*/
|
|
130
|
+
name: string;
|
|
131
|
+
}
|
|
132
|
+
export interface DraftAffiliate {
|
|
133
|
+
/**
|
|
134
|
+
* @maxLength 1000
|
|
135
|
+
*/
|
|
136
|
+
url?: string;
|
|
137
|
+
/**
|
|
138
|
+
* @maxLength 150
|
|
139
|
+
*/
|
|
140
|
+
name?: string;
|
|
141
|
+
}
|
|
47
142
|
//# sourceMappingURL=draft-hack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack.d.ts","sourceRoot":"","sources":["../../../src/draft-hack/draft-hack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,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QAAQ,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACrC,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAED,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC7B;;;OAGG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,EAAE,aAAa,EAAE,EAAE,CAAC;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC7D;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,84 +1,4 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
// export interface DraftHackNotifications {
|
|
3
|
-
// /**
|
|
4
|
-
// * @maxLength 1000
|
|
5
|
-
// */
|
|
6
|
-
// aiGeneratedText?: string;
|
|
7
|
-
// /**
|
|
8
|
-
// * @maxLength 1000
|
|
9
|
-
// */
|
|
10
|
-
// humanCuratedText?: string;
|
|
11
|
-
// }
|
|
12
|
-
// export interface DraftHackSegments {
|
|
13
|
-
// favouriteQuote?: DraftHackSegment;
|
|
14
|
-
// inANutshell?: DraftHackSegment;
|
|
15
|
-
// introduction?: DraftHackSegment;
|
|
16
|
-
// /**
|
|
17
|
-
// * @maxItems 10
|
|
18
|
-
// */
|
|
19
|
-
// insights?: DraftHackInsightSegment[];
|
|
20
|
-
// conclusion?: DraftHackSegment;
|
|
21
|
-
// }
|
|
22
|
-
// export interface DraftHackCard {
|
|
23
|
-
// /**
|
|
24
|
-
// * @maxLength 2000
|
|
25
|
-
// */
|
|
26
|
-
// markdown: string;
|
|
27
|
-
// }
|
|
28
|
-
// export interface DraftHackSegment {
|
|
29
|
-
// /**
|
|
30
|
-
// * @maxItems 50
|
|
31
|
-
// * @items.maxLength 150
|
|
32
|
-
// */
|
|
33
|
-
// keywords: string[];
|
|
34
|
-
// paragraphCards: DraftHackCard[][];
|
|
35
|
-
// /**
|
|
36
|
-
// * @maxLength 1000
|
|
37
|
-
// */
|
|
38
|
-
// textSummary?: string;
|
|
39
|
-
// }
|
|
40
|
-
// export interface DraftHackInsightSegment extends DraftHackSegment {
|
|
41
|
-
// /**
|
|
42
|
-
// * @maxLength 150
|
|
43
|
-
// */
|
|
44
|
-
// title?: string;
|
|
45
|
-
// /**
|
|
46
|
-
// * @maxItems 50
|
|
47
|
-
// */
|
|
48
|
-
// actions: DraftHackAction[];
|
|
49
|
-
// }
|
|
50
|
-
// export interface DraftHackAction {
|
|
51
|
-
// /**
|
|
52
|
-
// * @maxLength 150
|
|
53
|
-
// */
|
|
54
|
-
// title: string;
|
|
55
|
-
// /**
|
|
56
|
-
// * @maxLength 1000
|
|
57
|
-
// */
|
|
58
|
-
// markdown: string
|
|
59
|
-
// }
|
|
60
|
-
// export interface DraftContributor {
|
|
61
|
-
// /**
|
|
62
|
-
// * @maxLength 150
|
|
63
|
-
// */
|
|
64
|
-
// name: string;
|
|
65
|
-
// }
|
|
66
|
-
// export interface DraftTopic {
|
|
67
|
-
// /**
|
|
68
|
-
// * @maxLength 150
|
|
69
|
-
// */
|
|
70
|
-
// name: string;
|
|
71
|
-
// }
|
|
72
|
-
// export interface DraftAffiliate {
|
|
73
|
-
// /**
|
|
74
|
-
// * @maxLength 1000
|
|
75
|
-
// */
|
|
76
|
-
// url?: string;
|
|
77
|
-
// /**
|
|
78
|
-
// * @maxLength 150
|
|
79
|
-
// */
|
|
80
|
-
// name?: string;
|
|
81
|
-
// }
|
|
82
2
|
// export interface DraftSourceData {
|
|
83
3
|
// /**
|
|
84
4
|
// * @maxLength 150
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack.js","sourceRoot":"","sources":["../../../src/draft-hack/draft-hack.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"draft-hack.js","sourceRoot":"","sources":["../../../src/draft-hack/draft-hack.ts"],"names":[],"mappings":";AAiKA,qCAAqC;AACrC,UAAU;AACV,wBAAwB;AACxB,UAAU;AACV,6BAA6B;AAC7B,UAAU;AACV,uBAAuB;AACvB,UAAU;AACV,4BAA4B;AAC5B,IAAI;AAEJ,2CAA2C;AAC3C,UAAU;AACV,yBAAyB;AACzB,UAAU;AACV,mBAAmB;AACnB,2EAA2E;AAC3E,IAAI;AAEJ,sHAAsH;AACtH,oEAAoE;AACpE,0FAA0F;AAC1F,0DAA0D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uptime.app/contracts",
|
|
3
|
-
"version": "1.0.9-rc.
|
|
3
|
+
"version": "1.0.9-rc.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"typescript": "^5.4.3"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "b1f35aa30b5451d7aee9ecc9e20a0b39c8d8123a"
|
|
17
17
|
}
|
|
@@ -41,21 +41,21 @@ export interface DraftHackContent {
|
|
|
41
41
|
* @maxLength 50
|
|
42
42
|
*/
|
|
43
43
|
themeId?: string;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
44
|
+
segments: DraftHackSegments;
|
|
45
|
+
/**
|
|
46
|
+
* @maxLength 1000
|
|
47
|
+
*/
|
|
48
|
+
coverUrl?: string;
|
|
49
|
+
notifications?: DraftHackNotifications;
|
|
50
|
+
affiliate?: DraftAffiliate;
|
|
51
|
+
/**
|
|
52
|
+
* @maxItems 50
|
|
53
|
+
*/
|
|
54
|
+
topics?: DraftTopic[];
|
|
55
|
+
/**
|
|
56
|
+
* @maxItems 10
|
|
57
|
+
*/
|
|
58
|
+
contributors?: DraftContributor[];
|
|
59
59
|
// sourceData?: DraftSourceData;
|
|
60
60
|
// /** For creators only. We will tackle this validation once profiles are introduce*/
|
|
61
61
|
// externalLink?: DraftHackExternalLink;
|
|
@@ -70,95 +70,94 @@ export interface DraftHackContent {
|
|
|
70
70
|
isCopyrightFree?: boolean;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
export interface DraftHackNotifications {
|
|
74
|
+
/**
|
|
75
|
+
* @maxLength 1000
|
|
76
|
+
*/
|
|
77
|
+
aiGeneratedText?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @maxLength 1000
|
|
80
|
+
*/
|
|
81
|
+
humanCuratedText?: string;
|
|
82
|
+
}
|
|
73
83
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
// export interface DraftHackSegments {
|
|
86
|
-
// favouriteQuote?: DraftHackSegment;
|
|
87
|
-
// inANutshell?: DraftHackSegment;
|
|
88
|
-
// introduction?: DraftHackSegment;
|
|
89
|
-
// /**
|
|
90
|
-
// * @maxItems 10
|
|
91
|
-
// */
|
|
92
|
-
// insights?: DraftHackInsightSegment[];
|
|
93
|
-
// conclusion?: DraftHackSegment;
|
|
94
|
-
// }
|
|
84
|
+
export interface DraftHackSegments {
|
|
85
|
+
favouriteQuote?: DraftHackSegment;
|
|
86
|
+
inANutshell?: DraftHackSegment;
|
|
87
|
+
introduction?: DraftHackSegment;
|
|
88
|
+
/**
|
|
89
|
+
* @maxItems 10
|
|
90
|
+
*/
|
|
91
|
+
insights?: DraftHackInsightSegment[];
|
|
92
|
+
conclusion?: DraftHackSegment;
|
|
93
|
+
}
|
|
95
94
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
export interface DraftHackCard {
|
|
96
|
+
/**
|
|
97
|
+
* @maxLength 2000
|
|
98
|
+
*/
|
|
99
|
+
markdown: string;
|
|
100
|
+
}
|
|
102
101
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
102
|
+
export interface DraftHackSegment {
|
|
103
|
+
/**
|
|
104
|
+
* @maxItems 50
|
|
105
|
+
* @items.maxLength 150
|
|
106
|
+
*/
|
|
107
|
+
keywords: string[];
|
|
108
|
+
paragraphCards: DraftHackCard[][];
|
|
109
|
+
/**
|
|
110
|
+
* @maxLength 1000
|
|
111
|
+
*/
|
|
112
|
+
textSummary?: string;
|
|
113
|
+
}
|
|
115
114
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
export interface DraftHackInsightSegment extends DraftHackSegment {
|
|
116
|
+
/**
|
|
117
|
+
* @maxLength 150
|
|
118
|
+
*/
|
|
119
|
+
title?: string;
|
|
120
|
+
/**
|
|
121
|
+
* @maxItems 50
|
|
122
|
+
*/
|
|
123
|
+
actions: DraftHackAction[];
|
|
124
|
+
}
|
|
126
125
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
126
|
+
export interface DraftHackAction {
|
|
127
|
+
/**
|
|
128
|
+
* @maxLength 150
|
|
129
|
+
*/
|
|
130
|
+
title: string;
|
|
131
|
+
/**
|
|
132
|
+
* @maxLength 1000
|
|
133
|
+
*/
|
|
134
|
+
markdown: string
|
|
135
|
+
}
|
|
137
136
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
137
|
+
export interface DraftContributor {
|
|
138
|
+
/**
|
|
139
|
+
* @maxLength 150
|
|
140
|
+
*/
|
|
141
|
+
name: string;
|
|
142
|
+
}
|
|
144
143
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
export interface DraftTopic {
|
|
145
|
+
/**
|
|
146
|
+
* @maxLength 150
|
|
147
|
+
*/
|
|
148
|
+
name: string;
|
|
149
|
+
}
|
|
151
150
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
151
|
+
export interface DraftAffiliate {
|
|
152
|
+
/**
|
|
153
|
+
* @maxLength 1000
|
|
154
|
+
*/
|
|
155
|
+
url?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @maxLength 150
|
|
158
|
+
*/
|
|
159
|
+
name?: string;
|
|
160
|
+
}
|
|
162
161
|
|
|
163
162
|
// export interface DraftSourceData {
|
|
164
163
|
// /**
|