@uptime.app/contracts 1.0.9-rc.13 → 1.0.9-rc.2

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.
Files changed (72) hide show
  1. package/dist/cjs/hack/hack.d.ts +1 -1
  2. package/dist/cjs/hack/hack.d.ts.map +1 -1
  3. package/dist/cjs/index.d.ts +0 -7
  4. package/dist/cjs/index.d.ts.map +1 -1
  5. package/dist/cjs/index.js +7 -7
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/esm/hack/hack.d.ts +1 -1
  8. package/dist/esm/hack/hack.d.ts.map +1 -1
  9. package/dist/esm/index.d.ts +0 -7
  10. package/dist/esm/index.d.ts.map +1 -1
  11. package/dist/esm/index.js +7 -7
  12. package/dist/esm/index.js.map +1 -1
  13. package/package.json +2 -2
  14. package/src/draft-hack/draft-hack.ts +29 -5
  15. package/src/hack/hack.ts +1 -1
  16. package/src/index.ts +7 -7
  17. package/dist/cjs/draft-hack/draft-hack-events.d.ts +0 -18
  18. package/dist/cjs/draft-hack/draft-hack-events.d.ts.map +0 -1
  19. package/dist/cjs/draft-hack/draft-hack-events.js +0 -3
  20. package/dist/cjs/draft-hack/draft-hack-events.js.map +0 -1
  21. package/dist/cjs/draft-hack/draft-hack.d.ts +0 -169
  22. package/dist/cjs/draft-hack/draft-hack.d.ts.map +0 -1
  23. package/dist/cjs/draft-hack/draft-hack.js +0 -3
  24. package/dist/cjs/draft-hack/draft-hack.js.map +0 -1
  25. package/dist/cjs/profile/profile-events.d.ts +0 -35
  26. package/dist/cjs/profile/profile-events.d.ts.map +0 -1
  27. package/dist/cjs/profile/profile-events.js +0 -3
  28. package/dist/cjs/profile/profile-events.js.map +0 -1
  29. package/dist/cjs/profile/profile.d.ts +0 -25
  30. package/dist/cjs/profile/profile.d.ts.map +0 -1
  31. package/dist/cjs/profile/profile.js +0 -3
  32. package/dist/cjs/profile/profile.js.map +0 -1
  33. package/dist/cjs/profile/translated-profile.d.ts +0 -13
  34. package/dist/cjs/profile/translated-profile.d.ts.map +0 -1
  35. package/dist/cjs/profile/translated-profile.js +0 -3
  36. package/dist/cjs/profile/translated-profile.js.map +0 -1
  37. package/dist/cjs/theme/theme-events.d.ts +0 -18
  38. package/dist/cjs/theme/theme-events.d.ts.map +0 -1
  39. package/dist/cjs/theme/theme-events.js +0 -3
  40. package/dist/cjs/theme/theme-events.js.map +0 -1
  41. package/dist/cjs/theme/theme.d.ts +0 -64
  42. package/dist/cjs/theme/theme.d.ts.map +0 -1
  43. package/dist/cjs/theme/theme.js +0 -3
  44. package/dist/cjs/theme/theme.js.map +0 -1
  45. package/dist/esm/draft-hack/draft-hack-events.d.ts +0 -18
  46. package/dist/esm/draft-hack/draft-hack-events.d.ts.map +0 -1
  47. package/dist/esm/draft-hack/draft-hack-events.js +0 -2
  48. package/dist/esm/draft-hack/draft-hack-events.js.map +0 -1
  49. package/dist/esm/draft-hack/draft-hack.d.ts +0 -169
  50. package/dist/esm/draft-hack/draft-hack.d.ts.map +0 -1
  51. package/dist/esm/draft-hack/draft-hack.js +0 -2
  52. package/dist/esm/draft-hack/draft-hack.js.map +0 -1
  53. package/dist/esm/profile/profile-events.d.ts +0 -35
  54. package/dist/esm/profile/profile-events.d.ts.map +0 -1
  55. package/dist/esm/profile/profile-events.js +0 -2
  56. package/dist/esm/profile/profile-events.js.map +0 -1
  57. package/dist/esm/profile/profile.d.ts +0 -25
  58. package/dist/esm/profile/profile.d.ts.map +0 -1
  59. package/dist/esm/profile/profile.js +0 -2
  60. package/dist/esm/profile/profile.js.map +0 -1
  61. package/dist/esm/profile/translated-profile.d.ts +0 -13
  62. package/dist/esm/profile/translated-profile.d.ts.map +0 -1
  63. package/dist/esm/profile/translated-profile.js +0 -2
  64. package/dist/esm/profile/translated-profile.js.map +0 -1
  65. package/dist/esm/theme/theme-events.d.ts +0 -18
  66. package/dist/esm/theme/theme-events.d.ts.map +0 -1
  67. package/dist/esm/theme/theme-events.js +0 -2
  68. package/dist/esm/theme/theme-events.js.map +0 -1
  69. package/dist/esm/theme/theme.d.ts +0 -64
  70. package/dist/esm/theme/theme.d.ts.map +0 -1
  71. package/dist/esm/theme/theme.js +0 -2
  72. package/dist/esm/theme/theme.js.map +0 -1
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=translated-profile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translated-profile.js","sourceRoot":"","sources":["../../../src/profile/translated-profile.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=theme-events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-events.js","sourceRoot":"","sources":["../../../src/theme/theme-events.ts"],"names":[],"mappings":""}
@@ -1,64 +0,0 @@
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=theme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE;QACN,CAAC,EAAE,aAAa,CAAC;QACjB,CAAC,EAAE,aAAa,CAAC;KACpB,CAAC;IACF,UAAU,EAAE;QAGR,CAAC,EAAE,aAAa,CAAC;QACjB,CAAC,EAAE,aAAa,CAAC;KACpB,CAAC;IACF,UAAU,EAAE;QACR,CAAC,EAAE,aAAa,CAAC;QACjB,CAAC,EAAE,aAAa,CAAC;KACpB,CAAC;IACF,YAAY,EAAE;QACV,CAAC,EAAE,aAAa,CAAC;QACjB,CAAC,EAAE,aAAa,CAAC;KACpB,CAAC;IACF,IAAI,EAAE;QACF,QAAQ,EAAE;YACN,CAAC,EAAE,aAAa,CAAC;YACjB,CAAC,EAAE,aAAa,CAAC;SACpB,CAAC;QACF,UAAU,EAAE;YACR,CAAC,EAAE,aAAa,CAAC;YACjB,CAAC,EAAE,aAAa,CAAC;SACpB,CAAC;QACF,UAAU,EAAE;YACR,CAAC,EAAE,aAAa,CAAC;YACjB,CAAC,EAAE,aAAa,CAAC;SACpB,CAAC;QACF,YAAY,EAAE;YACV,CAAC,EAAE,aAAa,CAAC;YACjB,CAAC,EAAE,aAAa,CAAC;SACpB,CAAA;KACJ,CAAA;CACJ;AAED,MAAM,WAAW,KAAK;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,qBAAqB,CAAC;IACjC,IAAI,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAElB,MAAM,CAAC,EAAE;QACL,KAAK,EAAE;YACH,eAAe,EAAE,MAAM,CAAC;SAC3B,CAAC;QACF,IAAI,EAAE;YACF,eAAe,EAAE,MAAM,CAAC;SAC3B,CAAA;KACJ,CAAA;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=theme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=draft-hack-events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draft-hack-events.js","sourceRoot":"","sources":["../../../src/draft-hack/draft-hack-events.ts"],"names":[],"mappings":""}
@@ -1,169 +0,0 @@
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 interface DraftHackContent {
29
- /**
30
- * @maxLength 150
31
- */
32
- title: string;
33
- /**
34
- * @maxLength 50
35
- */
36
- sourceId?: string;
37
- /**
38
- * @maxLength 50
39
- */
40
- themeId?: string;
41
- segments: DraftHackSegments;
42
- /**
43
- * @maxLength 1000
44
- */
45
- coverUrl?: string;
46
- notifications?: DraftHackNotifications;
47
- affiliate?: DraftAffiliate;
48
- /**
49
- * @maxItems 50
50
- */
51
- topics?: DraftTopic[];
52
- /**
53
- * @maxItems 10
54
- */
55
- contributors?: DraftContributor[];
56
- sourceData?: DraftSourceData;
57
- /** For creators only. We will tackle this validation once profiles are introduce*/
58
- externalLink?: DraftHackExternalLink;
59
- /** For recording purpose for now, we will use this value further in the future */
60
- contentRating?: DraftHackRating;
61
- /**
62
- * @maxItems 50
63
- * @items.maxLength 150
64
- */
65
- tags?: string[];
66
- type?: DraftHackType;
67
- isCopyrightFree?: boolean;
68
- }
69
- export interface DraftHackNotifications {
70
- /**
71
- * @maxLength 1000
72
- */
73
- aiGeneratedText?: string;
74
- /**
75
- * @maxLength 1000
76
- */
77
- humanCuratedText?: string;
78
- }
79
- export interface DraftHackSegments {
80
- favouriteQuote?: DraftHackSegment;
81
- inANutshell?: DraftHackSegment;
82
- introduction?: DraftHackSegment;
83
- /**
84
- * @maxItems 10
85
- */
86
- insights?: DraftHackInsightSegment[];
87
- conclusion?: DraftHackSegment;
88
- }
89
- export interface DraftHackCard {
90
- /**
91
- * @maxLength 2000
92
- */
93
- markdown: string;
94
- }
95
- export interface DraftHackSegment {
96
- /**
97
- * @maxItems 50
98
- * @items.maxLength 150
99
- */
100
- keywords: string[];
101
- paragraphCards: DraftHackCard[][];
102
- /**
103
- * @maxLength 1000
104
- */
105
- textSummary?: string;
106
- }
107
- export interface DraftHackInsightSegment extends DraftHackSegment {
108
- /**
109
- * @maxLength 150
110
- */
111
- title?: string;
112
- /**
113
- * @maxItems 50
114
- */
115
- actions: DraftHackAction[];
116
- }
117
- export interface DraftHackAction {
118
- /**
119
- * @maxLength 150
120
- */
121
- title: string;
122
- /**
123
- * @maxLength 1000
124
- */
125
- markdown: string;
126
- }
127
- export interface DraftContributor {
128
- /**
129
- * @maxLength 150
130
- */
131
- name: string;
132
- }
133
- export interface DraftTopic {
134
- /**
135
- * @maxLength 150
136
- */
137
- name: string;
138
- }
139
- export interface DraftAffiliate {
140
- /**
141
- * @maxLength 1000
142
- */
143
- url?: string;
144
- /**
145
- * @maxLength 150
146
- */
147
- name?: string;
148
- }
149
- export interface DraftSourceData {
150
- /**
151
- * @maxLength 150
152
- */
153
- episodeTitle?: string;
154
- /**
155
- * @maxLength 50
156
- */
157
- releaseDate?: string;
158
- }
159
- export interface DraftHackExternalLink {
160
- /**
161
- * @maxLength 1000
162
- */
163
- url: string;
164
- type: 'Website' | 'Book' | 'Course' | 'Podcast' | 'Video' | 'Other';
165
- }
166
- export type DraftHackWorkflowStatus = 'publishing' | 'published';
167
- export type DraftHackType = 'book' | 'course' | 'documentary' | 'podcast' | 'original';
168
- export type DraftHackRating = 'mature' | 'appropriate';
169
- //# sourceMappingURL=draft-hack.d.ts.map
@@ -1 +0,0 @@
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;IA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,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;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;AAGD,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG,WAAW,CAAC;AACjE,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=draft-hack.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"draft-hack.js","sourceRoot":"","sources":["../../../src/draft-hack/draft-hack.ts"],"names":[],"mappings":""}
@@ -1,35 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=profile-events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profile-events.js","sourceRoot":"","sources":["../../../src/profile/profile-events.ts"],"names":[],"mappings":""}
@@ -1,25 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=profile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/profile/profile.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=translated-profile.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"translated-profile.js","sourceRoot":"","sources":["../../../src/profile/translated-profile.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=theme-events.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-events.js","sourceRoot":"","sources":["../../../src/theme/theme-events.ts"],"names":[],"mappings":""}
@@ -1,64 +0,0 @@
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=theme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sCAAsC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;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+0,0 @@
1
- export {};
2
- //# sourceMappingURL=theme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":""}