@uptime.app/contracts 1.0.13-rc.0 → 1.0.13
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/index.d.ts +0 -2
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +0 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/src/access-control/collection-access-control.ts +28 -28
- package/src/access-control/hack-access-control.ts +29 -29
- package/src/b2b-organisation/b2b-organisation-events.ts +21 -21
- package/src/b2b-organisation/b2b-organisation-member-events.ts +21 -21
- package/src/b2b-organisation/b2b-organisation-member.ts +8 -8
- package/src/b2b-organisation/b2b-organisation.ts +14 -14
- package/src/brand/brand-events.ts +21 -21
- package/src/brand/brand.ts +8 -8
- package/src/distribution/collection-distribution.ts +17 -17
- package/src/distribution/distribution-events.ts +61 -61
- package/src/distribution/hack-distribution.ts +18 -18
- package/src/draft-hack/draft-hack-events.ts +21 -21
- package/src/draft-hack/draft-hack.ts +184 -184
- package/src/enriched-hack/enriched-hack-events.ts +21 -21
- package/src/enriched-hack/enriched-hack.ts +101 -101
- package/src/hack/extracted-subject.ts +4 -4
- package/src/hack/hack-events.ts +21 -21
- package/src/hack/hack-with-voice-events.ts +20 -20
- package/src/hack/hack-with-voice.ts +33 -33
- package/src/hack/hack.ts +114 -114
- package/src/hack-metadata/hack-metadata-events.ts +21 -21
- package/src/hack-metadata/hack-metadata.ts +17 -17
- package/src/index.ts +61 -64
- package/src/knowledge-source/knowledge-source-events.ts +21 -21
- package/src/knowledge-source/knowledge-source.ts +43 -43
- package/src/localisation/live-locales.ts +32 -32
- package/src/localisation/locale-language.ts +4 -4
- package/src/localisation/supported-languages.ts +11 -11
- package/src/localisation/supported-locales.ts +42 -42
- package/src/pending-hack/pending-hack-events.ts +20 -20
- package/src/pending-hack/pending-hack-with-voice-events.ts +20 -20
- package/src/pending-hack/pending-hack-with-voice.ts +25 -25
- package/src/pending-hack/pending-hack.ts +75 -75
- package/src/profile/profile-events.ts +41 -41
- package/src/profile/profile.ts +27 -27
- package/src/profile/translated-profile.ts +13 -13
- package/src/segment/segment-commands.ts +70 -70
- package/src/segment/segment-with-voice.ts +8 -8
- package/src/segment/segment.ts +82 -82
- package/src/skin/skin-events.ts +21 -21
- package/src/skin/skin.ts +6 -6
- package/src/text-to-speech/create-speech-commands.ts +20 -20
- package/src/text-to-speech/speech-created-events.ts +11 -11
- package/src/text-to-speech/text-segment.ts +29 -29
- package/src/theme/theme-events.ts +21 -21
- package/src/theme/theme.ts +68 -68
- package/tsconfig.cjs.json +7 -7
- package/tsconfig.npm.json +21 -21
- package/dist/cjs/draft-hack-generation/draft-hack-generation-events.d.ts +0 -36
- package/dist/cjs/draft-hack-generation/draft-hack-generation-events.d.ts.map +0 -1
- package/dist/cjs/draft-hack-generation/draft-hack-generation-events.js +0 -3
- package/dist/cjs/draft-hack-generation/draft-hack-generation-events.js.map +0 -1
- package/dist/cjs/draft-hack-generation/draft-hack-generation.d.ts +0 -39
- package/dist/cjs/draft-hack-generation/draft-hack-generation.d.ts.map +0 -1
- package/dist/cjs/draft-hack-generation/draft-hack-generation.js +0 -3
- package/dist/cjs/draft-hack-generation/draft-hack-generation.js.map +0 -1
- package/dist/esm/draft-hack-generation/draft-hack-generation-events.d.ts +0 -36
- package/dist/esm/draft-hack-generation/draft-hack-generation-events.d.ts.map +0 -1
- package/dist/esm/draft-hack-generation/draft-hack-generation-events.js +0 -2
- package/dist/esm/draft-hack-generation/draft-hack-generation-events.js.map +0 -1
- package/dist/esm/draft-hack-generation/draft-hack-generation.d.ts +0 -39
- package/dist/esm/draft-hack-generation/draft-hack-generation.d.ts.map +0 -1
- package/dist/esm/draft-hack-generation/draft-hack-generation.js +0 -2
- package/dist/esm/draft-hack-generation/draft-hack-generation.js.map +0 -1
- package/src/draft-hack-generation/draft-hack-generation-events.ts +0 -42
- package/src/draft-hack-generation/draft-hack-generation.ts +0 -38
package/src/theme/theme.ts
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
export interface ThemeTemplate {
|
|
2
|
-
/** the url of the background video */
|
|
3
|
-
backgroundVideoUrl?: string;
|
|
4
|
-
/** the url of the background image */
|
|
5
|
-
backgroundImageUrl?: string;
|
|
6
|
-
/** the font color that will be used when rendering text in the foreground */
|
|
7
|
-
fontColor: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface SegmentThemeTemplates {
|
|
11
|
-
overview: {
|
|
12
|
-
a: ThemeTemplate;
|
|
13
|
-
b: ThemeTemplate;
|
|
14
|
-
},
|
|
15
|
-
insightOne: {
|
|
16
|
-
// one template is for the title card
|
|
17
|
-
// the other one for insight content
|
|
18
|
-
a: ThemeTemplate;
|
|
19
|
-
b: ThemeTemplate;
|
|
20
|
-
},
|
|
21
|
-
insightTwo: {
|
|
22
|
-
a: ThemeTemplate;
|
|
23
|
-
b: ThemeTemplate;
|
|
24
|
-
},
|
|
25
|
-
insightThree: {
|
|
26
|
-
a: ThemeTemplate;
|
|
27
|
-
b: ThemeTemplate;
|
|
28
|
-
},
|
|
29
|
-
dark: {
|
|
30
|
-
overview: {
|
|
31
|
-
a: ThemeTemplate;
|
|
32
|
-
b: ThemeTemplate;
|
|
33
|
-
},
|
|
34
|
-
insightOne: {
|
|
35
|
-
a: ThemeTemplate;
|
|
36
|
-
b: ThemeTemplate;
|
|
37
|
-
},
|
|
38
|
-
insightTwo: {
|
|
39
|
-
a: ThemeTemplate;
|
|
40
|
-
b: ThemeTemplate;
|
|
41
|
-
},
|
|
42
|
-
insightThree: {
|
|
43
|
-
a: ThemeTemplate;
|
|
44
|
-
b: ThemeTemplate;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface Theme {
|
|
50
|
-
id: string;
|
|
51
|
-
name: string;
|
|
52
|
-
fontFamily: string;
|
|
53
|
-
templates: SegmentThemeTemplates;
|
|
54
|
-
mood: 'neutral' | 'sombre' | 'vibrant';
|
|
55
|
-
isCustom: boolean;
|
|
56
|
-
/* properties of the story and audio player */
|
|
57
|
-
player?: {
|
|
58
|
-
light: {
|
|
59
|
-
backgroundColor: string;
|
|
60
|
-
},
|
|
61
|
-
dark: {
|
|
62
|
-
backgroundColor: string;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
updatedAt: string;
|
|
66
|
-
createdAt: string;
|
|
67
|
-
v: number;
|
|
68
|
-
}
|
|
1
|
+
export interface ThemeTemplate {
|
|
2
|
+
/** the url of the background video */
|
|
3
|
+
backgroundVideoUrl?: string;
|
|
4
|
+
/** the url of the background image */
|
|
5
|
+
backgroundImageUrl?: string;
|
|
6
|
+
/** the font color that will be used when rendering text in the foreground */
|
|
7
|
+
fontColor: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface SegmentThemeTemplates {
|
|
11
|
+
overview: {
|
|
12
|
+
a: ThemeTemplate;
|
|
13
|
+
b: ThemeTemplate;
|
|
14
|
+
},
|
|
15
|
+
insightOne: {
|
|
16
|
+
// one template is for the title card
|
|
17
|
+
// the other one for insight content
|
|
18
|
+
a: ThemeTemplate;
|
|
19
|
+
b: ThemeTemplate;
|
|
20
|
+
},
|
|
21
|
+
insightTwo: {
|
|
22
|
+
a: ThemeTemplate;
|
|
23
|
+
b: ThemeTemplate;
|
|
24
|
+
},
|
|
25
|
+
insightThree: {
|
|
26
|
+
a: ThemeTemplate;
|
|
27
|
+
b: ThemeTemplate;
|
|
28
|
+
},
|
|
29
|
+
dark: {
|
|
30
|
+
overview: {
|
|
31
|
+
a: ThemeTemplate;
|
|
32
|
+
b: ThemeTemplate;
|
|
33
|
+
},
|
|
34
|
+
insightOne: {
|
|
35
|
+
a: ThemeTemplate;
|
|
36
|
+
b: ThemeTemplate;
|
|
37
|
+
},
|
|
38
|
+
insightTwo: {
|
|
39
|
+
a: ThemeTemplate;
|
|
40
|
+
b: ThemeTemplate;
|
|
41
|
+
},
|
|
42
|
+
insightThree: {
|
|
43
|
+
a: ThemeTemplate;
|
|
44
|
+
b: ThemeTemplate;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface Theme {
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
fontFamily: string;
|
|
53
|
+
templates: SegmentThemeTemplates;
|
|
54
|
+
mood: 'neutral' | 'sombre' | 'vibrant';
|
|
55
|
+
isCustom: boolean;
|
|
56
|
+
/* properties of the story and audio player */
|
|
57
|
+
player?: {
|
|
58
|
+
light: {
|
|
59
|
+
backgroundColor: string;
|
|
60
|
+
},
|
|
61
|
+
dark: {
|
|
62
|
+
backgroundColor: string;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
v: number;
|
|
68
|
+
}
|
package/tsconfig.cjs.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.npm.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"module": "CommonJS",
|
|
5
|
-
"outDir": "./dist/cjs"
|
|
6
|
-
},
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.npm.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"module": "CommonJS",
|
|
5
|
+
"outDir": "./dist/cjs"
|
|
6
|
+
},
|
|
7
|
+
}
|
package/tsconfig.npm.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"build": true,
|
|
4
|
-
"target": "ES2020",
|
|
5
|
-
"module": "ES2020",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"emitDeclarationOnly": false,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
"outDir": "./dist/esm",
|
|
11
|
-
"noEmit": false,
|
|
12
|
-
"strict": true,
|
|
13
|
-
"noImplicitAny": true,
|
|
14
|
-
"strictNullChecks": true,
|
|
15
|
-
"esModuleInterop": true,
|
|
16
|
-
"moduleResolution": "node",
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"src/index.ts"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"build": true,
|
|
4
|
+
"target": "ES2020",
|
|
5
|
+
"module": "ES2020",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"emitDeclarationOnly": false,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"outDir": "./dist/esm",
|
|
11
|
+
"noEmit": false,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"noImplicitAny": true,
|
|
14
|
+
"strictNullChecks": true,
|
|
15
|
+
"esModuleInterop": true,
|
|
16
|
+
"moduleResolution": "node",
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"src/index.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { GeneratedDraftHackContent } from './draft-hack-generation';
|
|
2
|
-
export interface DraftHackGenerated {
|
|
3
|
-
id: string;
|
|
4
|
-
type: 'DraftHackGenerated';
|
|
5
|
-
payload: {
|
|
6
|
-
id: string;
|
|
7
|
-
v: number;
|
|
8
|
-
reference: string;
|
|
9
|
-
draftHackId: string;
|
|
10
|
-
draftHackContent: GeneratedDraftHackContent;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface DraftHackGenerationFailed {
|
|
14
|
-
id: string;
|
|
15
|
-
type: 'DraftHackGenerationFailed';
|
|
16
|
-
payload: {
|
|
17
|
-
reference: string;
|
|
18
|
-
errorMessage: string;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export interface GeneratedDraftHackSavedToGoogleDrive {
|
|
22
|
-
id: string;
|
|
23
|
-
type: 'GeneratedDraftHackSavedToGoogleDrive';
|
|
24
|
-
payload: {
|
|
25
|
-
id: string;
|
|
26
|
-
v: number;
|
|
27
|
-
reference: string;
|
|
28
|
-
draftHackId: string;
|
|
29
|
-
draftHackContent: GeneratedDraftHackContent;
|
|
30
|
-
driveFile: {
|
|
31
|
-
id: string;
|
|
32
|
-
parentId: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=draft-hack-generation-events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack-generation-events.d.ts","sourceRoot":"","sources":["../../../src/draft-hack-generation/draft-hack-generation-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,EAAE;QAEL,EAAE,EAAE,MAAM,CAAC;QAEX,CAAC,EAAE,MAAM,CAAC;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,yBAAyB,CAAC;KAC/C,CAAA;CACJ;AAED,MAAM,WAAW,yBAAyB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,2BAA2B,CAAC;IAClC,OAAO,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;KACxB,CAAA;CACJ;AAED,MAAM,WAAW,oCAAoC;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,sCAAsC,CAAC;IAC7C,OAAO,EAAE;QAEL,EAAE,EAAE,MAAM,CAAC;QAEX,CAAC,EAAE,MAAM,CAAC;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,yBAAyB,CAAC;QAC5C,SAAS,EAAE;YACP,EAAE,EAAE,MAAM,CAAC;YACX,QAAQ,EAAE,MAAM,CAAC;SACpB,CAAA;KACJ,CAAA;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack-generation-events.js","sourceRoot":"","sources":["../../../src/draft-hack-generation/draft-hack-generation-events.ts"],"names":[],"mappings":""}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export interface GeneratedDraftHackContent {
|
|
2
|
-
title: string;
|
|
3
|
-
segments: GeneratedDraftHackSegments;
|
|
4
|
-
coverUrl?: string;
|
|
5
|
-
topics: GeneratedDraftTopic[];
|
|
6
|
-
notification: GeneratedDraftHackNotification;
|
|
7
|
-
contributors: GeneratedDraftContributor[];
|
|
8
|
-
}
|
|
9
|
-
export interface GeneratedDraftHackSegments {
|
|
10
|
-
favouriteQuote: GeneratedDraftHackSegment;
|
|
11
|
-
inANutshell: GeneratedDraftHackSegment;
|
|
12
|
-
introduction: GeneratedDraftHackSegment;
|
|
13
|
-
insights: GeneratedDraftHackInsightSegment[];
|
|
14
|
-
conclusion: GeneratedDraftHackSegment;
|
|
15
|
-
}
|
|
16
|
-
export interface GeneratedDraftHackSegment {
|
|
17
|
-
paragraphCards: GeneratedDraftHackCard[][];
|
|
18
|
-
}
|
|
19
|
-
export interface GeneratedDraftHackCard {
|
|
20
|
-
markdown: string;
|
|
21
|
-
}
|
|
22
|
-
export interface GeneratedDraftHackInsightSegment extends GeneratedDraftHackSegment {
|
|
23
|
-
title: string;
|
|
24
|
-
actions: GeneratedDraftHackAction[];
|
|
25
|
-
}
|
|
26
|
-
export interface GeneratedDraftHackAction {
|
|
27
|
-
title: string;
|
|
28
|
-
markdown: string;
|
|
29
|
-
}
|
|
30
|
-
export interface GeneratedDraftTopic {
|
|
31
|
-
name: string;
|
|
32
|
-
}
|
|
33
|
-
export interface GeneratedDraftHackNotification {
|
|
34
|
-
aiGeneratedText: string;
|
|
35
|
-
}
|
|
36
|
-
export interface GeneratedDraftContributor {
|
|
37
|
-
name: string;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=draft-hack-generation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack-generation.d.ts","sourceRoot":"","sources":["../../../src/draft-hack-generation/draft-hack-generation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,0BAA0B,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,YAAY,EAAE,8BAA8B,CAAC;IAC7C,YAAY,EAAE,yBAAyB,EAAE,CAAC;CAC7C;AACD,MAAM,WAAW,0BAA0B;IACvC,cAAc,EAAE,yBAAyB,CAAC;IAC1C,WAAW,EAAE,yBAAyB,CAAC;IACvC,YAAY,EAAE,yBAAyB,CAAC;IACxC,QAAQ,EAAE,gCAAgC,EAAE,CAAC;IAC7C,UAAU,EAAE,yBAAyB,CAAC;CACzC;AACD,MAAM,WAAW,yBAAyB;IACtC,cAAc,EAAE,sBAAsB,EAAE,EAAE,CAAC;CAC9C;AACD,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,gCAAiC,SAAQ,yBAAyB;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,wBAAwB,EAAE,CAAC;CACvC;AACD,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,8BAA8B;IAC3C,eAAe,EAAE,MAAM,CAAC;CAC3B;AACD,MAAM,WAAW,yBAAyB;IACtC,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack-generation.js","sourceRoot":"","sources":["../../../src/draft-hack-generation/draft-hack-generation.ts"],"names":[],"mappings":""}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { GeneratedDraftHackContent } from './draft-hack-generation';
|
|
2
|
-
export interface DraftHackGenerated {
|
|
3
|
-
id: string;
|
|
4
|
-
type: 'DraftHackGenerated';
|
|
5
|
-
payload: {
|
|
6
|
-
id: string;
|
|
7
|
-
v: number;
|
|
8
|
-
reference: string;
|
|
9
|
-
draftHackId: string;
|
|
10
|
-
draftHackContent: GeneratedDraftHackContent;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface DraftHackGenerationFailed {
|
|
14
|
-
id: string;
|
|
15
|
-
type: 'DraftHackGenerationFailed';
|
|
16
|
-
payload: {
|
|
17
|
-
reference: string;
|
|
18
|
-
errorMessage: string;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export interface GeneratedDraftHackSavedToGoogleDrive {
|
|
22
|
-
id: string;
|
|
23
|
-
type: 'GeneratedDraftHackSavedToGoogleDrive';
|
|
24
|
-
payload: {
|
|
25
|
-
id: string;
|
|
26
|
-
v: number;
|
|
27
|
-
reference: string;
|
|
28
|
-
draftHackId: string;
|
|
29
|
-
draftHackContent: GeneratedDraftHackContent;
|
|
30
|
-
driveFile: {
|
|
31
|
-
id: string;
|
|
32
|
-
parentId: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=draft-hack-generation-events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack-generation-events.d.ts","sourceRoot":"","sources":["../../../src/draft-hack-generation/draft-hack-generation-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,EAAE;QAEL,EAAE,EAAE,MAAM,CAAC;QAEX,CAAC,EAAE,MAAM,CAAC;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,yBAAyB,CAAC;KAC/C,CAAA;CACJ;AAED,MAAM,WAAW,yBAAyB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,2BAA2B,CAAC;IAClC,OAAO,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;KACxB,CAAA;CACJ;AAED,MAAM,WAAW,oCAAoC;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,sCAAsC,CAAC;IAC7C,OAAO,EAAE;QAEL,EAAE,EAAE,MAAM,CAAC;QAEX,CAAC,EAAE,MAAM,CAAC;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,yBAAyB,CAAC;QAC5C,SAAS,EAAE;YACP,EAAE,EAAE,MAAM,CAAC;YACX,QAAQ,EAAE,MAAM,CAAC;SACpB,CAAA;KACJ,CAAA;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack-generation-events.js","sourceRoot":"","sources":["../../../src/draft-hack-generation/draft-hack-generation-events.ts"],"names":[],"mappings":""}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export interface GeneratedDraftHackContent {
|
|
2
|
-
title: string;
|
|
3
|
-
segments: GeneratedDraftHackSegments;
|
|
4
|
-
coverUrl?: string;
|
|
5
|
-
topics: GeneratedDraftTopic[];
|
|
6
|
-
notification: GeneratedDraftHackNotification;
|
|
7
|
-
contributors: GeneratedDraftContributor[];
|
|
8
|
-
}
|
|
9
|
-
export interface GeneratedDraftHackSegments {
|
|
10
|
-
favouriteQuote: GeneratedDraftHackSegment;
|
|
11
|
-
inANutshell: GeneratedDraftHackSegment;
|
|
12
|
-
introduction: GeneratedDraftHackSegment;
|
|
13
|
-
insights: GeneratedDraftHackInsightSegment[];
|
|
14
|
-
conclusion: GeneratedDraftHackSegment;
|
|
15
|
-
}
|
|
16
|
-
export interface GeneratedDraftHackSegment {
|
|
17
|
-
paragraphCards: GeneratedDraftHackCard[][];
|
|
18
|
-
}
|
|
19
|
-
export interface GeneratedDraftHackCard {
|
|
20
|
-
markdown: string;
|
|
21
|
-
}
|
|
22
|
-
export interface GeneratedDraftHackInsightSegment extends GeneratedDraftHackSegment {
|
|
23
|
-
title: string;
|
|
24
|
-
actions: GeneratedDraftHackAction[];
|
|
25
|
-
}
|
|
26
|
-
export interface GeneratedDraftHackAction {
|
|
27
|
-
title: string;
|
|
28
|
-
markdown: string;
|
|
29
|
-
}
|
|
30
|
-
export interface GeneratedDraftTopic {
|
|
31
|
-
name: string;
|
|
32
|
-
}
|
|
33
|
-
export interface GeneratedDraftHackNotification {
|
|
34
|
-
aiGeneratedText: string;
|
|
35
|
-
}
|
|
36
|
-
export interface GeneratedDraftContributor {
|
|
37
|
-
name: string;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=draft-hack-generation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack-generation.d.ts","sourceRoot":"","sources":["../../../src/draft-hack-generation/draft-hack-generation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,0BAA0B,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,YAAY,EAAE,8BAA8B,CAAC;IAC7C,YAAY,EAAE,yBAAyB,EAAE,CAAC;CAC7C;AACD,MAAM,WAAW,0BAA0B;IACvC,cAAc,EAAE,yBAAyB,CAAC;IAC1C,WAAW,EAAE,yBAAyB,CAAC;IACvC,YAAY,EAAE,yBAAyB,CAAC;IACxC,QAAQ,EAAE,gCAAgC,EAAE,CAAC;IAC7C,UAAU,EAAE,yBAAyB,CAAC;CACzC;AACD,MAAM,WAAW,yBAAyB;IACtC,cAAc,EAAE,sBAAsB,EAAE,EAAE,CAAC;CAC9C;AACD,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,gCAAiC,SAAQ,yBAAyB;IAC/E,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,wBAAwB,EAAE,CAAC;CACvC;AACD,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,8BAA8B;IAC3C,eAAe,EAAE,MAAM,CAAC;CAC3B;AACD,MAAM,WAAW,yBAAyB;IACtC,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft-hack-generation.js","sourceRoot":"","sources":["../../../src/draft-hack-generation/draft-hack-generation.ts"],"names":[],"mappings":""}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { GeneratedDraftHackContent } from './draft-hack-generation';
|
|
2
|
-
|
|
3
|
-
export interface DraftHackGenerated {
|
|
4
|
-
id: string;
|
|
5
|
-
type: 'DraftHackGenerated';
|
|
6
|
-
payload: {
|
|
7
|
-
// the draft hack id
|
|
8
|
-
id: string;
|
|
9
|
-
// the version
|
|
10
|
-
v: number;
|
|
11
|
-
reference: string;
|
|
12
|
-
draftHackId: string;
|
|
13
|
-
draftHackContent: GeneratedDraftHackContent;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface DraftHackGenerationFailed {
|
|
18
|
-
id: string;
|
|
19
|
-
type: 'DraftHackGenerationFailed';
|
|
20
|
-
payload: {
|
|
21
|
-
reference: string;
|
|
22
|
-
errorMessage: string;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface GeneratedDraftHackSavedToGoogleDrive {
|
|
27
|
-
id: string;
|
|
28
|
-
type: 'GeneratedDraftHackSavedToGoogleDrive';
|
|
29
|
-
payload: {
|
|
30
|
-
// the draft hack id
|
|
31
|
-
id: string;
|
|
32
|
-
// the version
|
|
33
|
-
v: number;
|
|
34
|
-
reference: string;
|
|
35
|
-
draftHackId: string;
|
|
36
|
-
draftHackContent: GeneratedDraftHackContent;
|
|
37
|
-
driveFile: {
|
|
38
|
-
id: string;
|
|
39
|
-
parentId: string;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export interface GeneratedDraftHackContent {
|
|
2
|
-
title: string;
|
|
3
|
-
segments: GeneratedDraftHackSegments;
|
|
4
|
-
coverUrl?: string;
|
|
5
|
-
topics: GeneratedDraftTopic[];
|
|
6
|
-
notification: GeneratedDraftHackNotification;
|
|
7
|
-
contributors: GeneratedDraftContributor[];
|
|
8
|
-
}
|
|
9
|
-
export interface GeneratedDraftHackSegments {
|
|
10
|
-
favouriteQuote: GeneratedDraftHackSegment;
|
|
11
|
-
inANutshell: GeneratedDraftHackSegment;
|
|
12
|
-
introduction: GeneratedDraftHackSegment;
|
|
13
|
-
insights: GeneratedDraftHackInsightSegment[];
|
|
14
|
-
conclusion: GeneratedDraftHackSegment;
|
|
15
|
-
}
|
|
16
|
-
export interface GeneratedDraftHackSegment {
|
|
17
|
-
paragraphCards: GeneratedDraftHackCard[][];
|
|
18
|
-
}
|
|
19
|
-
export interface GeneratedDraftHackCard {
|
|
20
|
-
markdown: string;
|
|
21
|
-
}
|
|
22
|
-
export interface GeneratedDraftHackInsightSegment extends GeneratedDraftHackSegment {
|
|
23
|
-
title: string;
|
|
24
|
-
actions: GeneratedDraftHackAction[];
|
|
25
|
-
}
|
|
26
|
-
export interface GeneratedDraftHackAction {
|
|
27
|
-
title: string;
|
|
28
|
-
markdown: string;
|
|
29
|
-
}
|
|
30
|
-
export interface GeneratedDraftTopic {
|
|
31
|
-
name: string;
|
|
32
|
-
}
|
|
33
|
-
export interface GeneratedDraftHackNotification {
|
|
34
|
-
aiGeneratedText: string;
|
|
35
|
-
}
|
|
36
|
-
export interface GeneratedDraftContributor {
|
|
37
|
-
name: string;
|
|
38
|
-
}
|