@uptime.app/contracts 1.0.7 → 1.0.9-rc.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/dist/cjs/draft-hack/draft-hack-events.d.ts +18 -0
- package/dist/cjs/draft-hack/draft-hack-events.d.ts.map +1 -0
- package/dist/cjs/draft-hack/draft-hack-events.js +3 -0
- package/dist/cjs/draft-hack/draft-hack-events.js.map +1 -0
- package/dist/cjs/draft-hack/draft-hack.d.ts +171 -0
- package/dist/cjs/draft-hack/draft-hack.d.ts.map +1 -0
- package/dist/cjs/draft-hack/draft-hack.js +23 -0
- package/dist/cjs/draft-hack/draft-hack.js.map +1 -0
- package/dist/cjs/index.d.ts +13 -4
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +13 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/knowledge-source/knowledge-source-events.d.ts +18 -0
- package/dist/cjs/knowledge-source/knowledge-source-events.d.ts.map +1 -0
- package/dist/cjs/knowledge-source/knowledge-source-events.js +3 -0
- package/dist/cjs/knowledge-source/knowledge-source-events.js.map +1 -0
- package/dist/cjs/knowledge-source/knowledge-source.d.ts +38 -0
- package/dist/cjs/knowledge-source/knowledge-source.d.ts.map +1 -0
- package/dist/cjs/knowledge-source/knowledge-source.js +3 -0
- package/dist/cjs/knowledge-source/knowledge-source.js.map +1 -0
- package/dist/cjs/profile/profile-events.d.ts +35 -0
- package/dist/cjs/profile/profile-events.d.ts.map +1 -0
- package/dist/cjs/profile/profile-events.js +3 -0
- package/dist/cjs/profile/profile-events.js.map +1 -0
- package/dist/cjs/profile/profile.d.ts +25 -0
- package/dist/cjs/profile/profile.d.ts.map +1 -0
- package/dist/cjs/profile/profile.js +3 -0
- package/dist/cjs/profile/profile.js.map +1 -0
- package/dist/cjs/profile/translated-profile.d.ts +13 -0
- package/dist/cjs/profile/translated-profile.d.ts.map +1 -0
- package/dist/cjs/profile/translated-profile.js +3 -0
- package/dist/cjs/profile/translated-profile.js.map +1 -0
- package/dist/cjs/theme/theme-events.d.ts +18 -0
- package/dist/cjs/theme/theme-events.d.ts.map +1 -0
- package/dist/cjs/theme/theme-events.js +3 -0
- package/dist/cjs/theme/theme-events.js.map +1 -0
- package/dist/cjs/theme/theme.d.ts +64 -0
- package/dist/cjs/theme/theme.d.ts.map +1 -0
- package/dist/cjs/theme/theme.js +3 -0
- package/dist/cjs/theme/theme.js.map +1 -0
- package/dist/esm/draft-hack/draft-hack-events.d.ts +18 -0
- package/dist/esm/draft-hack/draft-hack-events.d.ts.map +1 -0
- package/dist/esm/draft-hack/draft-hack-events.js +2 -0
- package/dist/esm/draft-hack/draft-hack-events.js.map +1 -0
- package/dist/esm/draft-hack/draft-hack.d.ts +171 -0
- package/dist/esm/draft-hack/draft-hack.d.ts.map +1 -0
- package/dist/esm/draft-hack/draft-hack.js +20 -0
- package/dist/esm/draft-hack/draft-hack.js.map +1 -0
- package/dist/esm/index.d.ts +13 -4
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +13 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/knowledge-source/knowledge-source-events.d.ts +18 -0
- package/dist/esm/knowledge-source/knowledge-source-events.d.ts.map +1 -0
- package/dist/esm/knowledge-source/knowledge-source-events.js +2 -0
- package/dist/esm/knowledge-source/knowledge-source-events.js.map +1 -0
- package/dist/esm/knowledge-source/knowledge-source.d.ts +38 -0
- package/dist/esm/knowledge-source/knowledge-source.d.ts.map +1 -0
- package/dist/esm/knowledge-source/knowledge-source.js +2 -0
- package/dist/esm/knowledge-source/knowledge-source.js.map +1 -0
- package/dist/esm/profile/profile-events.d.ts +35 -0
- package/dist/esm/profile/profile-events.d.ts.map +1 -0
- package/dist/esm/profile/profile-events.js +2 -0
- package/dist/esm/profile/profile-events.js.map +1 -0
- package/dist/esm/profile/profile.d.ts +25 -0
- package/dist/esm/profile/profile.d.ts.map +1 -0
- package/dist/esm/profile/profile.js +2 -0
- package/dist/esm/profile/profile.js.map +1 -0
- package/dist/esm/profile/translated-profile.d.ts +13 -0
- package/dist/esm/profile/translated-profile.d.ts.map +1 -0
- package/dist/esm/profile/translated-profile.js +2 -0
- package/dist/esm/profile/translated-profile.js.map +1 -0
- package/dist/esm/theme/theme-events.d.ts +18 -0
- package/dist/esm/theme/theme-events.d.ts.map +1 -0
- package/dist/esm/theme/theme-events.js +2 -0
- package/dist/esm/theme/theme-events.js.map +1 -0
- package/dist/esm/theme/theme.d.ts +64 -0
- package/dist/esm/theme/theme.d.ts.map +1 -0
- package/dist/esm/theme/theme.js +2 -0
- package/dist/esm/theme/theme.js.map +1 -0
- package/package.json +2 -2
- package/src/brand/brand-events.ts +21 -21
- package/src/brand/brand.ts +8 -8
- package/src/draft-hack/draft-hack-events.ts +21 -0
- package/src/draft-hack/draft-hack.ts +208 -0
- 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 +45 -32
- package/src/knowledge-source/knowledge-source-events.ts +21 -0
- package/src/knowledge-source/knowledge-source.ts +43 -0
- 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 -0
- package/src/profile/profile.ts +27 -0
- package/src/profile/translated-profile.ts +13 -0
- 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 -0
- package/src/theme/theme.ts +68 -0
- package/tsconfig.cjs.json +7 -7
- package/tsconfig.npm.json +21 -21
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DraftHack } from './draft-hack';
|
|
2
|
+
export interface DraftHackCreatedEvent {
|
|
3
|
+
id: string;
|
|
4
|
+
type: 'DraftHackCreated';
|
|
5
|
+
payload: DraftHack;
|
|
6
|
+
}
|
|
7
|
+
export interface DraftHackUpdatedEvent {
|
|
8
|
+
id: string;
|
|
9
|
+
type: 'DraftHackUpdated';
|
|
10
|
+
payload: DraftHack;
|
|
11
|
+
}
|
|
12
|
+
export interface DraftHackDeletedEvent {
|
|
13
|
+
id: string;
|
|
14
|
+
type: 'DraftHackDeleted';
|
|
15
|
+
payload: DraftHack;
|
|
16
|
+
}
|
|
17
|
+
export type DraftHackChangedEvent = DraftHackCreatedEvent | DraftHackUpdatedEvent | DraftHackDeletedEvent;
|
|
18
|
+
//# sourceMappingURL=draft-hack-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft-hack-events.d.ts","sourceRoot":"","sources":["../../../src/draft-hack/draft-hack-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,GAAG,qBAAqB,GAAG,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft-hack-events.js","sourceRoot":"","sources":["../../../src/draft-hack/draft-hack-events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { SupportedLocale } from '../localisation/supported-locales';
|
|
2
|
+
export interface DraftHack extends DraftHackContent {
|
|
3
|
+
/** The unique id of the draft hack. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** The locale (language and region) of the draft hack e.g. fr-FR. Mandatory property since 12/01/2023. */
|
|
6
|
+
locale: SupportedLocale;
|
|
7
|
+
/** @deprecated Temporarily added in 12/01/2023. Should not be used under any circumstance as only a handful of drafts will contain this property */
|
|
8
|
+
baseLocaleDraftHackId?: string;
|
|
9
|
+
/** The id of the hack. Mandatory property since Dec 2022. */
|
|
10
|
+
hackId: string;
|
|
11
|
+
/** The id of the hack in its original locale. Mandatory property since 01/02/2023. */
|
|
12
|
+
baseLocaleHackId: string;
|
|
13
|
+
v: number;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
publishedAt?: string;
|
|
17
|
+
publishedVersion?: number;
|
|
18
|
+
owner?: string;
|
|
19
|
+
/** workflowStatus was added in May 2022 as we move toward UGC. Older drafts have not been backfilled */
|
|
20
|
+
workflowStatus?: DraftHackWorkflowStatus;
|
|
21
|
+
/** added in Nov 2022. Set to true whenever content changes are made to the draft */
|
|
22
|
+
hasUnpublishedChanges?: boolean;
|
|
23
|
+
/** added in March 2023. Must be set whenever content changes are made to the draft */
|
|
24
|
+
contentUpdatedAt?: string;
|
|
25
|
+
/** added in late April 2023. Only set on translations. Set to the value of contentUpdatedAt of the base locale draft that was translated. Can be used to determine if the translated draft is out of sync with the original draft */
|
|
26
|
+
baseLocaleContentUpdatedAt?: string;
|
|
27
|
+
}
|
|
28
|
+
export type DraftHackWorkflowStatus = 'publishing' | 'published';
|
|
29
|
+
export interface DraftHackContent {
|
|
30
|
+
/**
|
|
31
|
+
* @maxLength 150
|
|
32
|
+
*/
|
|
33
|
+
title: string;
|
|
34
|
+
/**
|
|
35
|
+
* @maxLength 50
|
|
36
|
+
*/
|
|
37
|
+
sourceId?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @maxLength 50
|
|
40
|
+
*/
|
|
41
|
+
themeId?: string;
|
|
42
|
+
segments: DraftHackSegments;
|
|
43
|
+
/**
|
|
44
|
+
* @maxLength 1000
|
|
45
|
+
*/
|
|
46
|
+
coverUrl?: string;
|
|
47
|
+
notifications?: DraftHackNotifications;
|
|
48
|
+
affiliate?: DraftAffiliate;
|
|
49
|
+
/**
|
|
50
|
+
* @maxItems 50
|
|
51
|
+
*/
|
|
52
|
+
topics?: DraftTopic[];
|
|
53
|
+
/**
|
|
54
|
+
* @maxItems 10
|
|
55
|
+
*/
|
|
56
|
+
contributors?: DraftContributor[];
|
|
57
|
+
sourceData?: DraftSourceData;
|
|
58
|
+
/** For creators only. We will tackle this validation once profiles are introduce*/
|
|
59
|
+
externalLink?: DraftHackExternalLink;
|
|
60
|
+
/** For recording purpose for now, we will use this value further in the future */
|
|
61
|
+
contentRating?: DraftHackRating;
|
|
62
|
+
/**
|
|
63
|
+
* @maxItems 50
|
|
64
|
+
* @items.maxLength 150
|
|
65
|
+
*/
|
|
66
|
+
tags?: string[];
|
|
67
|
+
type?: DraftHackType;
|
|
68
|
+
isCopyrightFree?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export type DraftHackRating = 'mature' | 'appropriate';
|
|
71
|
+
export interface DraftHackNotifications {
|
|
72
|
+
/**
|
|
73
|
+
* @maxLength 1000
|
|
74
|
+
*/
|
|
75
|
+
aiGeneratedText?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @maxLength 1000
|
|
78
|
+
*/
|
|
79
|
+
humanCuratedText?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface DraftHackSegments {
|
|
82
|
+
favouriteQuote?: DraftHackSegment;
|
|
83
|
+
inANutshell?: DraftHackSegment;
|
|
84
|
+
introduction?: DraftHackSegment;
|
|
85
|
+
/**
|
|
86
|
+
* @maxItems 10
|
|
87
|
+
*/
|
|
88
|
+
insights?: DraftHackInsightSegment[];
|
|
89
|
+
conclusion?: DraftHackSegment;
|
|
90
|
+
}
|
|
91
|
+
export interface DraftHackCard {
|
|
92
|
+
/**
|
|
93
|
+
* @maxLength 2000
|
|
94
|
+
*/
|
|
95
|
+
markdown: string;
|
|
96
|
+
}
|
|
97
|
+
export interface DraftHackSegment {
|
|
98
|
+
/**
|
|
99
|
+
* @maxItems 50
|
|
100
|
+
* @items.maxLength 150
|
|
101
|
+
*/
|
|
102
|
+
keywords: string[];
|
|
103
|
+
paragraphCards: DraftHackCard[][];
|
|
104
|
+
/**
|
|
105
|
+
* @maxLength 1000
|
|
106
|
+
*/
|
|
107
|
+
textSummary?: string;
|
|
108
|
+
}
|
|
109
|
+
export interface DraftHackInsightSegment extends DraftHackSegment {
|
|
110
|
+
/**
|
|
111
|
+
* @maxLength 150
|
|
112
|
+
*/
|
|
113
|
+
title?: string;
|
|
114
|
+
/**
|
|
115
|
+
* @maxItems 50
|
|
116
|
+
*/
|
|
117
|
+
actions: DraftHackAction[];
|
|
118
|
+
}
|
|
119
|
+
export interface DraftHackAction {
|
|
120
|
+
/**
|
|
121
|
+
* @maxLength 150
|
|
122
|
+
*/
|
|
123
|
+
title: string;
|
|
124
|
+
/**
|
|
125
|
+
* @maxLength 1000
|
|
126
|
+
*/
|
|
127
|
+
markdown: string;
|
|
128
|
+
}
|
|
129
|
+
export interface DraftContributor {
|
|
130
|
+
/**
|
|
131
|
+
* @maxLength 150
|
|
132
|
+
*/
|
|
133
|
+
name: string;
|
|
134
|
+
}
|
|
135
|
+
export interface DraftTopic {
|
|
136
|
+
/**
|
|
137
|
+
* @maxLength 150
|
|
138
|
+
*/
|
|
139
|
+
name: string;
|
|
140
|
+
}
|
|
141
|
+
export interface DraftAffiliate {
|
|
142
|
+
/**
|
|
143
|
+
* @maxLength 1000
|
|
144
|
+
*/
|
|
145
|
+
url?: string;
|
|
146
|
+
/**
|
|
147
|
+
* @maxLength 150
|
|
148
|
+
*/
|
|
149
|
+
name?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface DraftSourceData {
|
|
152
|
+
/**
|
|
153
|
+
* @maxLength 150
|
|
154
|
+
*/
|
|
155
|
+
episodeTitle?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @maxLength 50
|
|
158
|
+
*/
|
|
159
|
+
releaseDate?: string;
|
|
160
|
+
}
|
|
161
|
+
export declare const draftHackListModelProperties: readonly ["id", "v", "owner", "createdAt", "updatedAt", "publishedAt", "publishedVersion", "title", "coverUrl", "type", "workflowStatus", "hasUnpublishedChanges", "tags", "locale", "hackId", "baseLocaleHackId"];
|
|
162
|
+
export interface DraftHackExternalLink {
|
|
163
|
+
/**
|
|
164
|
+
* @maxLength 1000
|
|
165
|
+
*/
|
|
166
|
+
url: string;
|
|
167
|
+
type: 'Website' | 'Book' | 'Course' | 'Podcast' | 'Video' | 'Other';
|
|
168
|
+
}
|
|
169
|
+
export declare type DraftHackType = 'book' | 'course' | 'documentary' | 'podcast' | 'original';
|
|
170
|
+
export type DraftHackListModel = Pick<DraftHack, typeof draftHackListModelProperties[number]>;
|
|
171
|
+
//# sourceMappingURL=draft-hack.d.ts.map
|
|
@@ -0,0 +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,CA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ACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAGD,eAAO,MAAM,4BAA4B,oNAiB/B,CAAC;AAEX,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;AAED,MAAM,CAAC,OAAO,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC;AAE/F,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.draftHackListModelProperties = void 0;
|
|
4
|
+
// this is a neat way to select a subset of properties to create a new interface, and have the property names available in code
|
|
5
|
+
exports.draftHackListModelProperties = [
|
|
6
|
+
'id',
|
|
7
|
+
'v',
|
|
8
|
+
'owner',
|
|
9
|
+
'createdAt',
|
|
10
|
+
'updatedAt',
|
|
11
|
+
'publishedAt',
|
|
12
|
+
'publishedVersion',
|
|
13
|
+
'title',
|
|
14
|
+
'coverUrl',
|
|
15
|
+
'type',
|
|
16
|
+
'workflowStatus',
|
|
17
|
+
'hasUnpublishedChanges',
|
|
18
|
+
'tags',
|
|
19
|
+
'locale',
|
|
20
|
+
'hackId',
|
|
21
|
+
'baseLocaleHackId'
|
|
22
|
+
];
|
|
23
|
+
//# sourceMappingURL=draft-hack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft-hack.js","sourceRoot":"","sources":["../../../src/draft-hack/draft-hack.ts"],"names":[],"mappings":";;;AAiLA,+HAA+H;AAClH,QAAA,4BAA4B,GAAG;IACxC,IAAI;IACJ,GAAG;IACH,OAAO;IACP,WAAW;IACX,WAAW;IACX,aAAa;IACb,kBAAkB;IAClB,OAAO;IACP,UAAU;IACV,MAAM;IACN,gBAAgB;IAChB,uBAAuB;IACvB,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,kBAAkB;CACZ,CAAC"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export * from './brand/brand';
|
|
2
|
+
export * from './brand/brand-events';
|
|
3
|
+
export * from './draft-hack/draft-hack';
|
|
4
|
+
export * from './draft-hack/draft-hack-events';
|
|
1
5
|
export * from './hack/extracted-subject';
|
|
2
6
|
export * from './hack/hack';
|
|
3
7
|
export * from './hack/hack-with-voice';
|
|
@@ -5,6 +9,8 @@ export * from './hack/hack-events';
|
|
|
5
9
|
export * from './hack/hack-with-voice-events';
|
|
6
10
|
export * from './hack-metadata/hack-metadata';
|
|
7
11
|
export * from './hack-metadata/hack-metadata-events';
|
|
12
|
+
export * from './knowledge-source/knowledge-source';
|
|
13
|
+
export * from './knowledge-source/knowledge-source-events';
|
|
8
14
|
export * from './localisation/live-locales';
|
|
9
15
|
export * from './localisation/locale-language';
|
|
10
16
|
export * from './localisation/supported-languages';
|
|
@@ -13,14 +19,17 @@ export * from './pending-hack/pending-hack';
|
|
|
13
19
|
export * from './pending-hack/pending-hack-events';
|
|
14
20
|
export * from './pending-hack/pending-hack-with-voice';
|
|
15
21
|
export * from './pending-hack/pending-hack-with-voice-events';
|
|
22
|
+
export * from './profile/profile';
|
|
23
|
+
export * from './profile/translated-profile';
|
|
24
|
+
export * from './profile/profile-events';
|
|
16
25
|
export * from './segment/segment-with-voice';
|
|
17
26
|
export * from './segment/segment-commands';
|
|
18
27
|
export * from './segment/segment';
|
|
28
|
+
export * from './skin/skin';
|
|
29
|
+
export * from './skin/skin-events';
|
|
19
30
|
export * from './text-to-speech/create-speech-commands';
|
|
20
31
|
export * from './text-to-speech/speech-created-events';
|
|
21
32
|
export * from './text-to-speech/text-segment';
|
|
22
|
-
export * from './
|
|
23
|
-
export * from './
|
|
24
|
-
export * from './brand/brand';
|
|
25
|
-
export * from './brand/brand-events';
|
|
33
|
+
export * from './theme/theme';
|
|
34
|
+
export * from './theme/theme-events';
|
|
26
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAE9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AAErD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAE9D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAElC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AAErC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAE/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAE9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AAErD,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAE3D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAE9D,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAElC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAE9C,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,6 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./brand/brand"), exports);
|
|
18
|
+
__exportStar(require("./brand/brand-events"), exports);
|
|
19
|
+
__exportStar(require("./draft-hack/draft-hack"), exports);
|
|
20
|
+
__exportStar(require("./draft-hack/draft-hack-events"), exports);
|
|
17
21
|
__exportStar(require("./hack/extracted-subject"), exports);
|
|
18
22
|
__exportStar(require("./hack/hack"), exports);
|
|
19
23
|
__exportStar(require("./hack/hack-with-voice"), exports);
|
|
@@ -21,6 +25,8 @@ __exportStar(require("./hack/hack-events"), exports);
|
|
|
21
25
|
__exportStar(require("./hack/hack-with-voice-events"), exports);
|
|
22
26
|
__exportStar(require("./hack-metadata/hack-metadata"), exports);
|
|
23
27
|
__exportStar(require("./hack-metadata/hack-metadata-events"), exports);
|
|
28
|
+
__exportStar(require("./knowledge-source/knowledge-source"), exports);
|
|
29
|
+
__exportStar(require("./knowledge-source/knowledge-source-events"), exports);
|
|
24
30
|
__exportStar(require("./localisation/live-locales"), exports);
|
|
25
31
|
__exportStar(require("./localisation/locale-language"), exports);
|
|
26
32
|
__exportStar(require("./localisation/supported-languages"), exports);
|
|
@@ -29,14 +35,17 @@ __exportStar(require("./pending-hack/pending-hack"), exports);
|
|
|
29
35
|
__exportStar(require("./pending-hack/pending-hack-events"), exports);
|
|
30
36
|
__exportStar(require("./pending-hack/pending-hack-with-voice"), exports);
|
|
31
37
|
__exportStar(require("./pending-hack/pending-hack-with-voice-events"), exports);
|
|
38
|
+
__exportStar(require("./profile/profile"), exports);
|
|
39
|
+
__exportStar(require("./profile/translated-profile"), exports);
|
|
40
|
+
__exportStar(require("./profile/profile-events"), exports);
|
|
32
41
|
__exportStar(require("./segment/segment-with-voice"), exports);
|
|
33
42
|
__exportStar(require("./segment/segment-commands"), exports);
|
|
34
43
|
__exportStar(require("./segment/segment"), exports);
|
|
44
|
+
__exportStar(require("./skin/skin"), exports);
|
|
45
|
+
__exportStar(require("./skin/skin-events"), exports);
|
|
35
46
|
__exportStar(require("./text-to-speech/create-speech-commands"), exports);
|
|
36
47
|
__exportStar(require("./text-to-speech/speech-created-events"), exports);
|
|
37
48
|
__exportStar(require("./text-to-speech/text-segment"), exports);
|
|
38
|
-
__exportStar(require("./
|
|
39
|
-
__exportStar(require("./
|
|
40
|
-
__exportStar(require("./brand/brand"), exports);
|
|
41
|
-
__exportStar(require("./brand/brand-events"), exports);
|
|
49
|
+
__exportStar(require("./theme/theme"), exports);
|
|
50
|
+
__exportStar(require("./theme/theme-events"), exports);
|
|
42
51
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,8CAA4B;AAC5B,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAE9C,gEAA8C;AAC9C,uEAAqD;AAErD,8DAA4C;AAC5C,iEAA+C;AAC/C,qEAAmD;AACnD,mEAAiD;AAEjD,8DAA4C;AAC5C,qEAAmD;AACnD,yEAAuD;AACvD,gFAA8D;AAE9D,+DAA6C;AAC7C,6DAA2C;AAC3C,oDAAkC;AAElC,0EAAwD;AACxD,yEAAuD;AACvD,gEAA8C;AAE9C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,uDAAqC;AAErC,0DAAwC;AACxC,iEAA+C;AAE/C,2DAAyC;AACzC,8CAA4B;AAC5B,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAE9C,gEAA8C;AAC9C,uEAAqD;AAErD,sEAAoD;AACpD,6EAA2D;AAE3D,8DAA4C;AAC5C,iEAA+C;AAC/C,qEAAmD;AACnD,mEAAiD;AAEjD,8DAA4C;AAC5C,qEAAmD;AACnD,yEAAuD;AACvD,gFAA8D;AAE9D,oDAAkC;AAClC,+DAA6C;AAC7C,2DAAyC;AAEzC,+DAA6C;AAC7C,6DAA2C;AAC3C,oDAAkC;AAElC,8CAA4B;AAC5B,qDAAmC;AAEnC,0EAAwD;AACxD,yEAAuD;AACvD,gEAA8C;AAE9C,gDAA8B;AAC9B,uDAAqC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { KnowledgeSource } from './knowledge-source';
|
|
2
|
+
export interface KnowledgeSourceCreatedEvent {
|
|
3
|
+
id: string;
|
|
4
|
+
type: 'KnowledgeSourceCreated';
|
|
5
|
+
payload: KnowledgeSource;
|
|
6
|
+
}
|
|
7
|
+
export interface KnowledgeSourceUpdatedEvent {
|
|
8
|
+
id: string;
|
|
9
|
+
type: 'KnowledgeSourceUpdated';
|
|
10
|
+
payload: KnowledgeSource;
|
|
11
|
+
}
|
|
12
|
+
export interface KnowledgeSourceDeletedEvent {
|
|
13
|
+
id: string;
|
|
14
|
+
type: 'KnowledgeSourceDeleted';
|
|
15
|
+
payload: KnowledgeSource;
|
|
16
|
+
}
|
|
17
|
+
export type KnowledgeSourceChangedEvent = KnowledgeSourceCreatedEvent | KnowledgeSourceUpdatedEvent | KnowledgeSourceDeletedEvent;
|
|
18
|
+
//# sourceMappingURL=knowledge-source-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-source-events.d.ts","sourceRoot":"","sources":["../../../src/knowledge-source/knowledge-source-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,wBAAwB,CAAC;IAC/B,OAAO,EAAE,eAAe,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,wBAAwB,CAAC;IAC/B,OAAO,EAAE,eAAe,CAAC;CAC5B;AAED,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,wBAAwB,CAAC;IAC/B,OAAO,EAAE,eAAe,CAAC;CAC5B;AAED,MAAM,MAAM,2BAA2B,GAAG,2BAA2B,GAAG,2BAA2B,GAAG,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-source-events.js","sourceRoot":"","sources":["../../../src/knowledge-source/knowledge-source-events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface KnowledgeSource {
|
|
2
|
+
id: string;
|
|
3
|
+
/** @deprecated - use affiliate.url instead */
|
|
4
|
+
affiliateLink?: string;
|
|
5
|
+
affiliate: Affiliate;
|
|
6
|
+
categories: Category[];
|
|
7
|
+
topics: Topic[];
|
|
8
|
+
coverUrl?: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
contributors: Contributor[];
|
|
12
|
+
title: string;
|
|
13
|
+
type: KnowledgeSourceType;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
v: number;
|
|
16
|
+
metadata?: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
/** Number of pages in the book. only set for books. May be undefined */
|
|
20
|
+
pageCount?: number;
|
|
21
|
+
/** Set for courses, documentaries and podcasts. May be undefined */
|
|
22
|
+
durationInMinutes?: number;
|
|
23
|
+
}
|
|
24
|
+
export type KnowledgeSourceType = 'book' | 'course' | 'documentary' | 'podcast';
|
|
25
|
+
export interface Affiliate {
|
|
26
|
+
url?: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface Contributor {
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
export interface Category {
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
export interface Topic {
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=knowledge-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-source.d.ts","sourceRoot":"","sources":["../../../src/knowledge-source/knowledge-source.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,8CAA8C;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,mBAAmB,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;IACF,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,CAAC;AAEhF,MAAM,WAAW,SAAS;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,QAAQ;IACrB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,KAAK;IAClB,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge-source.js","sourceRoot":"","sources":["../../../src/knowledge-source/knowledge-source.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Profile } from './profile';
|
|
2
|
+
import { TranslatedProfile } from './translated-profile';
|
|
3
|
+
export interface ProfileCreatedEvent {
|
|
4
|
+
id: string;
|
|
5
|
+
type: 'ProfileCreated';
|
|
6
|
+
payload: Profile;
|
|
7
|
+
}
|
|
8
|
+
export interface ProfileUpdatedEvent {
|
|
9
|
+
id: string;
|
|
10
|
+
type: 'ProfileUpdated';
|
|
11
|
+
payload: Profile;
|
|
12
|
+
}
|
|
13
|
+
export interface ProfileDeletedEvent {
|
|
14
|
+
id: string;
|
|
15
|
+
type: 'ProfileDeleted';
|
|
16
|
+
payload: Profile;
|
|
17
|
+
}
|
|
18
|
+
export interface TranslatedProfileCreatedEvent {
|
|
19
|
+
id: string;
|
|
20
|
+
type: 'TranslatedProfileCreated';
|
|
21
|
+
payload: TranslatedProfile;
|
|
22
|
+
}
|
|
23
|
+
export interface TranslatedProfileUpdatedEvent {
|
|
24
|
+
id: string;
|
|
25
|
+
type: 'TranslatedProfileUpdated';
|
|
26
|
+
payload: TranslatedProfile;
|
|
27
|
+
}
|
|
28
|
+
export interface TranslatedProfileDeletedEvent {
|
|
29
|
+
id: string;
|
|
30
|
+
type: 'TranslatedProfileDeleted';
|
|
31
|
+
payload: TranslatedProfile;
|
|
32
|
+
}
|
|
33
|
+
export type ProfileChangedEvent = ProfileCreatedEvent | ProfileUpdatedEvent | ProfileDeletedEvent;
|
|
34
|
+
export type TranslatedProfileChangedEvent = TranslatedProfileCreatedEvent | TranslatedProfileUpdatedEvent | TranslatedProfileDeletedEvent;
|
|
35
|
+
//# sourceMappingURL=profile-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-events.d.ts","sourceRoot":"","sources":["../../../src/profile/profile-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,WAAW,6BAA6B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,0BAA0B,CAAC;IACjC,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,mBAAmB,CAAC;AAClG,MAAM,MAAM,6BAA6B,GAAG,6BAA6B,GAAG,6BAA6B,GAAG,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-events.js","sourceRoot":"","sources":["../../../src/profile/profile-events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SupportedLocale } from '../localisation/supported-locales';
|
|
2
|
+
export interface StoredProfile {
|
|
3
|
+
id: string;
|
|
4
|
+
v: number;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
avatarUrl: string;
|
|
8
|
+
name: string;
|
|
9
|
+
owner: string;
|
|
10
|
+
handle: string;
|
|
11
|
+
_sanitisedHandle?: string;
|
|
12
|
+
headerImageUrl?: string;
|
|
13
|
+
tags?: string[];
|
|
14
|
+
links?: ProfileLink[];
|
|
15
|
+
tagline: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
/** The locale (language and region) of the draft hack e.g. fr-FR. Mandatory property since 12/05/2023. */
|
|
18
|
+
locale: SupportedLocale;
|
|
19
|
+
}
|
|
20
|
+
export type Profile = Omit<StoredProfile, '_sanitisedHandle'>;
|
|
21
|
+
export interface ProfileLink {
|
|
22
|
+
type: 'Other' | 'Twitter' | 'Facebook' | 'Youtube' | 'Medium' | 'Instagram' | 'Patreon' | 'TikTok' | 'LinkedIn' | 'LinkTree';
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/profile/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0GAA0G;IAC1G,MAAM,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;AAE9D,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;IAC7H,GAAG,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/profile/profile.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SupportedLocale } from '../localisation/supported-locales';
|
|
2
|
+
export interface TranslatedProfile {
|
|
3
|
+
id: string;
|
|
4
|
+
v: number;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
profileId: string;
|
|
8
|
+
locale: SupportedLocale;
|
|
9
|
+
tagline: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
tags?: string[];
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=translated-profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translated-profile.d.ts","sourceRoot":"","sources":["../../../src/profile/translated-profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translated-profile.js","sourceRoot":"","sources":["../../../src/profile/translated-profile.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Theme } from './theme';
|
|
2
|
+
export interface ThemeCreatedEvent {
|
|
3
|
+
id: string;
|
|
4
|
+
type: 'ThemeCreated';
|
|
5
|
+
payload: Theme;
|
|
6
|
+
}
|
|
7
|
+
export interface ThemeUpdatedEvent {
|
|
8
|
+
id: string;
|
|
9
|
+
type: 'ThemeUpdated';
|
|
10
|
+
payload: Theme;
|
|
11
|
+
}
|
|
12
|
+
export interface ThemeDeletedEvent {
|
|
13
|
+
id: string;
|
|
14
|
+
type: 'ThemeDeleted';
|
|
15
|
+
payload: Theme;
|
|
16
|
+
}
|
|
17
|
+
export type ThemeChangedEvent = ThemeCreatedEvent | ThemeUpdatedEvent | ThemeDeletedEvent;
|
|
18
|
+
//# sourceMappingURL=theme-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-events.d.ts","sourceRoot":"","sources":["../../../src/theme/theme-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-events.js","sourceRoot":"","sources":["../../../src/theme/theme-events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
export interface SegmentThemeTemplates {
|
|
10
|
+
overview: {
|
|
11
|
+
a: ThemeTemplate;
|
|
12
|
+
b: ThemeTemplate;
|
|
13
|
+
};
|
|
14
|
+
insightOne: {
|
|
15
|
+
a: ThemeTemplate;
|
|
16
|
+
b: ThemeTemplate;
|
|
17
|
+
};
|
|
18
|
+
insightTwo: {
|
|
19
|
+
a: ThemeTemplate;
|
|
20
|
+
b: ThemeTemplate;
|
|
21
|
+
};
|
|
22
|
+
insightThree: {
|
|
23
|
+
a: ThemeTemplate;
|
|
24
|
+
b: ThemeTemplate;
|
|
25
|
+
};
|
|
26
|
+
dark: {
|
|
27
|
+
overview: {
|
|
28
|
+
a: ThemeTemplate;
|
|
29
|
+
b: ThemeTemplate;
|
|
30
|
+
};
|
|
31
|
+
insightOne: {
|
|
32
|
+
a: ThemeTemplate;
|
|
33
|
+
b: ThemeTemplate;
|
|
34
|
+
};
|
|
35
|
+
insightTwo: {
|
|
36
|
+
a: ThemeTemplate;
|
|
37
|
+
b: ThemeTemplate;
|
|
38
|
+
};
|
|
39
|
+
insightThree: {
|
|
40
|
+
a: ThemeTemplate;
|
|
41
|
+
b: ThemeTemplate;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export interface Theme {
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
fontFamily: string;
|
|
49
|
+
templates: SegmentThemeTemplates;
|
|
50
|
+
mood: 'neutral' | 'sombre' | 'vibrant';
|
|
51
|
+
isCustom: boolean;
|
|
52
|
+
player?: {
|
|
53
|
+
light: {
|
|
54
|
+
backgroundColor: string;
|
|
55
|
+
};
|
|
56
|
+
dark: {
|
|
57
|
+
backgroundColor: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
createdAt: string;
|
|
62
|
+
v: number;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=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