@uptime.app/contracts 1.0.9-rc.7 → 1.0.9-rc.9
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 +67 -0
- package/dist/cjs/draft-hack/draft-hack.d.ts.map +1 -1
- package/dist/cjs/draft-hack/draft-hack.js +0 -39
- package/dist/cjs/draft-hack/draft-hack.js.map +1 -1
- package/dist/esm/draft-hack/draft-hack.d.ts +67 -0
- package/dist/esm/draft-hack/draft-hack.d.ts.map +1 -1
- package/dist/esm/draft-hack/draft-hack.js +0 -39
- package/dist/esm/draft-hack/draft-hack.js.map +1 -1
- package/package.json +2 -2
- package/src/draft-hack/draft-hack.ts +67 -68
|
@@ -38,6 +38,24 @@ export interface DraftHackContent {
|
|
|
38
38
|
*/
|
|
39
39
|
themeId?: string;
|
|
40
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[];
|
|
55
|
+
sourceData?: DraftSourceData;
|
|
56
|
+
/** For creators only. We will tackle this validation once profiles are introduce*/
|
|
57
|
+
externalLink?: DraftHackExternalLink;
|
|
58
|
+
/** For recording purpose for now, we will use this value further in the future */
|
|
41
59
|
/**
|
|
42
60
|
* @maxItems 50
|
|
43
61
|
* @items.maxLength 150
|
|
@@ -45,6 +63,16 @@ export interface DraftHackContent {
|
|
|
45
63
|
tags?: string[];
|
|
46
64
|
isCopyrightFree?: boolean;
|
|
47
65
|
}
|
|
66
|
+
export interface DraftHackNotifications {
|
|
67
|
+
/**
|
|
68
|
+
* @maxLength 1000
|
|
69
|
+
*/
|
|
70
|
+
aiGeneratedText?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @maxLength 1000
|
|
73
|
+
*/
|
|
74
|
+
humanCuratedText?: string;
|
|
75
|
+
}
|
|
48
76
|
export interface DraftHackSegments {
|
|
49
77
|
favouriteQuote?: DraftHackSegment;
|
|
50
78
|
inANutshell?: DraftHackSegment;
|
|
@@ -93,4 +121,43 @@ export interface DraftHackAction {
|
|
|
93
121
|
*/
|
|
94
122
|
markdown: string;
|
|
95
123
|
}
|
|
124
|
+
export interface DraftContributor {
|
|
125
|
+
/**
|
|
126
|
+
* @maxLength 150
|
|
127
|
+
*/
|
|
128
|
+
name: string;
|
|
129
|
+
}
|
|
130
|
+
export interface DraftTopic {
|
|
131
|
+
/**
|
|
132
|
+
* @maxLength 150
|
|
133
|
+
*/
|
|
134
|
+
name: string;
|
|
135
|
+
}
|
|
136
|
+
export interface DraftAffiliate {
|
|
137
|
+
/**
|
|
138
|
+
* @maxLength 1000
|
|
139
|
+
*/
|
|
140
|
+
url?: string;
|
|
141
|
+
/**
|
|
142
|
+
* @maxLength 150
|
|
143
|
+
*/
|
|
144
|
+
name?: string;
|
|
145
|
+
}
|
|
146
|
+
export interface DraftSourceData {
|
|
147
|
+
/**
|
|
148
|
+
* @maxLength 150
|
|
149
|
+
*/
|
|
150
|
+
episodeTitle?: string;
|
|
151
|
+
/**
|
|
152
|
+
* @maxLength 50
|
|
153
|
+
*/
|
|
154
|
+
releaseDate?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface DraftHackExternalLink {
|
|
157
|
+
/**
|
|
158
|
+
* @maxLength 1000
|
|
159
|
+
*/
|
|
160
|
+
url: string;
|
|
161
|
+
type: 'Website' | 'Book' | 'Course' | 'Podcast' | 'Video' | 'Other';
|
|
162
|
+
}
|
|
96
163
|
//# 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,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,iBAAiB,CAAC;
|
|
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,MA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CACxB;AAED,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;CACvE"}
|
|
@@ -1,44 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// export interface DraftContributor {
|
|
4
|
-
// /**
|
|
5
|
-
// * @maxLength 150
|
|
6
|
-
// */
|
|
7
|
-
// name: string;
|
|
8
|
-
// }
|
|
9
|
-
// export interface DraftTopic {
|
|
10
|
-
// /**
|
|
11
|
-
// * @maxLength 150
|
|
12
|
-
// */
|
|
13
|
-
// name: string;
|
|
14
|
-
// }
|
|
15
|
-
// export interface DraftAffiliate {
|
|
16
|
-
// /**
|
|
17
|
-
// * @maxLength 1000
|
|
18
|
-
// */
|
|
19
|
-
// url?: string;
|
|
20
|
-
// /**
|
|
21
|
-
// * @maxLength 150
|
|
22
|
-
// */
|
|
23
|
-
// name?: string;
|
|
24
|
-
// }
|
|
25
|
-
// export interface DraftSourceData {
|
|
26
|
-
// /**
|
|
27
|
-
// * @maxLength 150
|
|
28
|
-
// */
|
|
29
|
-
// episodeTitle?: string;
|
|
30
|
-
// /**
|
|
31
|
-
// * @maxLength 50
|
|
32
|
-
// */
|
|
33
|
-
// releaseDate?: string;
|
|
34
|
-
// }
|
|
35
|
-
// export interface DraftHackExternalLink {
|
|
36
|
-
// /**
|
|
37
|
-
// * @maxLength 1000
|
|
38
|
-
// */
|
|
39
|
-
// url: string;
|
|
40
|
-
// type: 'Website' | 'Book' | 'Course' | 'Podcast' | 'Video' | 'Other';
|
|
41
|
-
// }
|
|
42
3
|
// // this status is currently used to present the draft in different columns in the airtable used by the content team
|
|
43
4
|
// export type DraftHackWorkflowStatus = 'publishing' | 'published';
|
|
44
5
|
// export type DraftHackType = 'book' | 'course' | 'documentary' | 'podcast' | 'original';
|
|
@@ -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":";;AAoLA,sHAAsH;AACtH,oEAAoE;AACpE,0FAA0F;AAC1F,0DAA0D"}
|
|
@@ -38,6 +38,24 @@ export interface DraftHackContent {
|
|
|
38
38
|
*/
|
|
39
39
|
themeId?: string;
|
|
40
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[];
|
|
55
|
+
sourceData?: DraftSourceData;
|
|
56
|
+
/** For creators only. We will tackle this validation once profiles are introduce*/
|
|
57
|
+
externalLink?: DraftHackExternalLink;
|
|
58
|
+
/** For recording purpose for now, we will use this value further in the future */
|
|
41
59
|
/**
|
|
42
60
|
* @maxItems 50
|
|
43
61
|
* @items.maxLength 150
|
|
@@ -45,6 +63,16 @@ export interface DraftHackContent {
|
|
|
45
63
|
tags?: string[];
|
|
46
64
|
isCopyrightFree?: boolean;
|
|
47
65
|
}
|
|
66
|
+
export interface DraftHackNotifications {
|
|
67
|
+
/**
|
|
68
|
+
* @maxLength 1000
|
|
69
|
+
*/
|
|
70
|
+
aiGeneratedText?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @maxLength 1000
|
|
73
|
+
*/
|
|
74
|
+
humanCuratedText?: string;
|
|
75
|
+
}
|
|
48
76
|
export interface DraftHackSegments {
|
|
49
77
|
favouriteQuote?: DraftHackSegment;
|
|
50
78
|
inANutshell?: DraftHackSegment;
|
|
@@ -93,4 +121,43 @@ export interface DraftHackAction {
|
|
|
93
121
|
*/
|
|
94
122
|
markdown: string;
|
|
95
123
|
}
|
|
124
|
+
export interface DraftContributor {
|
|
125
|
+
/**
|
|
126
|
+
* @maxLength 150
|
|
127
|
+
*/
|
|
128
|
+
name: string;
|
|
129
|
+
}
|
|
130
|
+
export interface DraftTopic {
|
|
131
|
+
/**
|
|
132
|
+
* @maxLength 150
|
|
133
|
+
*/
|
|
134
|
+
name: string;
|
|
135
|
+
}
|
|
136
|
+
export interface DraftAffiliate {
|
|
137
|
+
/**
|
|
138
|
+
* @maxLength 1000
|
|
139
|
+
*/
|
|
140
|
+
url?: string;
|
|
141
|
+
/**
|
|
142
|
+
* @maxLength 150
|
|
143
|
+
*/
|
|
144
|
+
name?: string;
|
|
145
|
+
}
|
|
146
|
+
export interface DraftSourceData {
|
|
147
|
+
/**
|
|
148
|
+
* @maxLength 150
|
|
149
|
+
*/
|
|
150
|
+
episodeTitle?: string;
|
|
151
|
+
/**
|
|
152
|
+
* @maxLength 50
|
|
153
|
+
*/
|
|
154
|
+
releaseDate?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface DraftHackExternalLink {
|
|
157
|
+
/**
|
|
158
|
+
* @maxLength 1000
|
|
159
|
+
*/
|
|
160
|
+
url: string;
|
|
161
|
+
type: 'Website' | 'Book' | 'Course' | 'Podcast' | 'Video' | 'Other';
|
|
162
|
+
}
|
|
96
163
|
//# 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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@@
|
|
|
1
1
|
export {};
|
|
2
|
-
// export interface DraftContributor {
|
|
3
|
-
// /**
|
|
4
|
-
// * @maxLength 150
|
|
5
|
-
// */
|
|
6
|
-
// name: string;
|
|
7
|
-
// }
|
|
8
|
-
// export interface DraftTopic {
|
|
9
|
-
// /**
|
|
10
|
-
// * @maxLength 150
|
|
11
|
-
// */
|
|
12
|
-
// name: string;
|
|
13
|
-
// }
|
|
14
|
-
// export interface DraftAffiliate {
|
|
15
|
-
// /**
|
|
16
|
-
// * @maxLength 1000
|
|
17
|
-
// */
|
|
18
|
-
// url?: string;
|
|
19
|
-
// /**
|
|
20
|
-
// * @maxLength 150
|
|
21
|
-
// */
|
|
22
|
-
// name?: string;
|
|
23
|
-
// }
|
|
24
|
-
// export interface DraftSourceData {
|
|
25
|
-
// /**
|
|
26
|
-
// * @maxLength 150
|
|
27
|
-
// */
|
|
28
|
-
// episodeTitle?: string;
|
|
29
|
-
// /**
|
|
30
|
-
// * @maxLength 50
|
|
31
|
-
// */
|
|
32
|
-
// releaseDate?: string;
|
|
33
|
-
// }
|
|
34
|
-
// export interface DraftHackExternalLink {
|
|
35
|
-
// /**
|
|
36
|
-
// * @maxLength 1000
|
|
37
|
-
// */
|
|
38
|
-
// url: string;
|
|
39
|
-
// type: 'Website' | 'Book' | 'Course' | 'Podcast' | 'Video' | 'Other';
|
|
40
|
-
// }
|
|
41
2
|
// // this status is currently used to present the draft in different columns in the airtable used by the content team
|
|
42
3
|
// export type DraftHackWorkflowStatus = 'publishing' | 'published';
|
|
43
4
|
// export type DraftHackType = 'book' | 'course' | 'documentary' | 'podcast' | 'original';
|
|
@@ -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":";AAoLA,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.9",
|
|
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": "17fec9e673dd8915490abca6109deed3a5c9b2b3"
|
|
17
17
|
}
|
|
@@ -42,24 +42,24 @@ export interface DraftHackContent {
|
|
|
42
42
|
*/
|
|
43
43
|
themeId?: string;
|
|
44
44
|
segments: DraftHackSegments;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
+
sourceData?: DraftSourceData;
|
|
60
|
+
/** For creators only. We will tackle this validation once profiles are introduce*/
|
|
61
|
+
externalLink?: DraftHackExternalLink;
|
|
62
|
+
/** For recording purpose for now, we will use this value further in the future */
|
|
63
63
|
// contentRating?: DraftHackRating;
|
|
64
64
|
/**
|
|
65
65
|
* @maxItems 50
|
|
@@ -70,17 +70,16 @@ export interface DraftHackContent {
|
|
|
70
70
|
isCopyrightFree?: boolean;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
// }
|
|
73
|
+
export interface DraftHackNotifications {
|
|
74
|
+
/**
|
|
75
|
+
* @maxLength 1000
|
|
76
|
+
*/
|
|
77
|
+
aiGeneratedText?: string;
|
|
78
|
+
/**
|
|
79
|
+
* @maxLength 1000
|
|
80
|
+
*/
|
|
81
|
+
humanCuratedText?: string;
|
|
82
|
+
}
|
|
84
83
|
|
|
85
84
|
export interface DraftHackSegments {
|
|
86
85
|
favouriteQuote?: DraftHackSegment;
|
|
@@ -135,49 +134,49 @@ export interface DraftHackAction {
|
|
|
135
134
|
markdown: string
|
|
136
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
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
162
|
+
export interface DraftSourceData {
|
|
163
|
+
/**
|
|
164
|
+
* @maxLength 150
|
|
165
|
+
*/
|
|
166
|
+
episodeTitle?: string;
|
|
167
|
+
/**
|
|
168
|
+
* @maxLength 50
|
|
169
|
+
*/
|
|
170
|
+
releaseDate?: string;
|
|
171
|
+
}
|
|
173
172
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
173
|
+
export interface DraftHackExternalLink {
|
|
174
|
+
/**
|
|
175
|
+
* @maxLength 1000
|
|
176
|
+
*/
|
|
177
|
+
url: string;
|
|
178
|
+
type: 'Website' | 'Book' | 'Course' | 'Podcast' | 'Video' | 'Other';
|
|
179
|
+
}
|
|
181
180
|
|
|
182
181
|
// // this status is currently used to present the draft in different columns in the airtable used by the content team
|
|
183
182
|
// export type DraftHackWorkflowStatus = 'publishing' | 'published';
|