@uptime.app/contracts 1.0.53 → 1.0.54-upm6374.0
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/package.json +2 -2
- package/src/cms-hack/cms-hack.ts +50 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uptime.app/contracts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.54-upm6374.0",
|
|
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": "01ea4169c5dd23b323bd7fa2a9bc7237413ad6dc"
|
|
17
17
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EnrichedHackSubjects } from '../enriched-hack/enriched-hack';
|
|
2
|
+
import { HackContributor, HackTopic, HackType } from '../hack/hack';
|
|
3
|
+
|
|
4
|
+
export interface CmsSearchableHack {
|
|
5
|
+
/** id of the hack, even if the hack is currently in draft state */
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
draftHackId: string;
|
|
9
|
+
hackId: string;
|
|
10
|
+
baseLocaleHackId: string;
|
|
11
|
+
locale: string;
|
|
12
|
+
language: string;
|
|
13
|
+
/** when the draft was created */
|
|
14
|
+
createdAt: string;
|
|
15
|
+
/** when the draft was last update. todo not sure what this should be */
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
publishedAt?: string;
|
|
18
|
+
owner: string;
|
|
19
|
+
// will be empty on draft
|
|
20
|
+
acl: string[];
|
|
21
|
+
|
|
22
|
+
description: string
|
|
23
|
+
|
|
24
|
+
sourceId?: string;
|
|
25
|
+
themeId?: string;
|
|
26
|
+
coverUrl?: string;
|
|
27
|
+
|
|
28
|
+
editorialTags: string[];
|
|
29
|
+
|
|
30
|
+
copyrightFreeCoverUrl?: string;
|
|
31
|
+
|
|
32
|
+
contributors: HackContributor[];
|
|
33
|
+
type?: HackType;
|
|
34
|
+
|
|
35
|
+
topics: HackTopic[];
|
|
36
|
+
keywords: string[];
|
|
37
|
+
// will be empty on draft
|
|
38
|
+
topicsExtracted: string[];
|
|
39
|
+
// will be empty on draft
|
|
40
|
+
keywordsExtracted: string[];
|
|
41
|
+
// will be empty on draft
|
|
42
|
+
hackSubjects: EnrichedHackSubjects;
|
|
43
|
+
|
|
44
|
+
// status of the latest publish. Note, 'failed' is not current supported
|
|
45
|
+
workflowStatus: 'unpublished' | 'failed' | 'published' | 'publishing';
|
|
46
|
+
isPublished: boolean;
|
|
47
|
+
hasUnpublishedChanges: boolean;
|
|
48
|
+
// todo - do we need this in the index?
|
|
49
|
+
isHidden: boolean;
|
|
50
|
+
}
|