@uptime.app/contracts 1.0.9-rc.10 → 1.0.9-rc.11

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 (50) hide show
  1. package/dist/cjs/index.d.ts +5 -0
  2. package/dist/cjs/index.d.ts.map +1 -1
  3. package/dist/cjs/index.js +5 -5
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/profile/profile-events.d.ts +35 -0
  6. package/dist/cjs/profile/profile-events.d.ts.map +1 -0
  7. package/dist/cjs/profile/profile-events.js +3 -0
  8. package/dist/cjs/profile/profile-events.js.map +1 -0
  9. package/dist/cjs/profile/profile.d.ts +25 -0
  10. package/dist/cjs/profile/profile.d.ts.map +1 -0
  11. package/dist/cjs/profile/profile.js +3 -0
  12. package/dist/cjs/profile/profile.js.map +1 -0
  13. package/dist/cjs/profile/translated-profile.d.ts +13 -0
  14. package/dist/cjs/profile/translated-profile.d.ts.map +1 -0
  15. package/dist/cjs/profile/translated-profile.js +3 -0
  16. package/dist/cjs/profile/translated-profile.js.map +1 -0
  17. package/dist/cjs/theme/theme-events.d.ts +18 -0
  18. package/dist/cjs/theme/theme-events.d.ts.map +1 -0
  19. package/dist/cjs/theme/theme-events.js +3 -0
  20. package/dist/cjs/theme/theme-events.js.map +1 -0
  21. package/dist/cjs/theme/theme.d.ts +64 -0
  22. package/dist/cjs/theme/theme.d.ts.map +1 -0
  23. package/dist/cjs/theme/theme.js +3 -0
  24. package/dist/cjs/theme/theme.js.map +1 -0
  25. package/dist/esm/index.d.ts +5 -0
  26. package/dist/esm/index.d.ts.map +1 -1
  27. package/dist/esm/index.js +5 -5
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/profile/profile-events.d.ts +35 -0
  30. package/dist/esm/profile/profile-events.d.ts.map +1 -0
  31. package/dist/esm/profile/profile-events.js +2 -0
  32. package/dist/esm/profile/profile-events.js.map +1 -0
  33. package/dist/esm/profile/profile.d.ts +25 -0
  34. package/dist/esm/profile/profile.d.ts.map +1 -0
  35. package/dist/esm/profile/profile.js +2 -0
  36. package/dist/esm/profile/profile.js.map +1 -0
  37. package/dist/esm/profile/translated-profile.d.ts +13 -0
  38. package/dist/esm/profile/translated-profile.d.ts.map +1 -0
  39. package/dist/esm/profile/translated-profile.js +2 -0
  40. package/dist/esm/profile/translated-profile.js.map +1 -0
  41. package/dist/esm/theme/theme-events.d.ts +18 -0
  42. package/dist/esm/theme/theme-events.d.ts.map +1 -0
  43. package/dist/esm/theme/theme-events.js +2 -0
  44. package/dist/esm/theme/theme-events.js.map +1 -0
  45. package/dist/esm/theme/theme.d.ts +64 -0
  46. package/dist/esm/theme/theme.d.ts.map +1 -0
  47. package/dist/esm/theme/theme.js +2 -0
  48. package/dist/esm/theme/theme.js.map +1 -0
  49. package/package.json +2 -2
  50. package/src/index.ts +5 -5
@@ -19,6 +19,9 @@ export * from './pending-hack/pending-hack';
19
19
  export * from './pending-hack/pending-hack-events';
20
20
  export * from './pending-hack/pending-hack-with-voice';
21
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';
22
25
  export * from './segment/segment-with-voice';
23
26
  export * from './segment/segment-commands';
24
27
  export * from './segment/segment';
@@ -27,4 +30,6 @@ export * from './skin/skin-events';
27
30
  export * from './text-to-speech/create-speech-commands';
28
31
  export * from './text-to-speech/speech-created-events';
29
32
  export * from './text-to-speech/text-segment';
33
+ export * from './theme/theme';
34
+ export * from './theme/theme-events';
30
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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;AAM9D,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"}
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
@@ -35,9 +35,9 @@ __exportStar(require("./pending-hack/pending-hack"), exports);
35
35
  __exportStar(require("./pending-hack/pending-hack-events"), exports);
36
36
  __exportStar(require("./pending-hack/pending-hack-with-voice"), exports);
37
37
  __exportStar(require("./pending-hack/pending-hack-with-voice-events"), exports);
38
- // export * from './profile/profile';
39
- // export * from './profile/translated-profile';
40
- // export * from './profile/profile-events';
38
+ __exportStar(require("./profile/profile"), exports);
39
+ __exportStar(require("./profile/translated-profile"), exports);
40
+ __exportStar(require("./profile/profile-events"), exports);
41
41
  __exportStar(require("./segment/segment-with-voice"), exports);
42
42
  __exportStar(require("./segment/segment-commands"), exports);
43
43
  __exportStar(require("./segment/segment"), exports);
@@ -46,6 +46,6 @@ __exportStar(require("./skin/skin-events"), exports);
46
46
  __exportStar(require("./text-to-speech/create-speech-commands"), exports);
47
47
  __exportStar(require("./text-to-speech/speech-created-events"), exports);
48
48
  __exportStar(require("./text-to-speech/text-segment"), exports);
49
- // export * from './theme/theme';
50
- // export * from './theme/theme-events';
49
+ __exportStar(require("./theme/theme"), exports);
50
+ __exportStar(require("./theme/theme-events"), exports);
51
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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,qCAAqC;AACrC,gDAAgD;AAChD,4CAA4C;AAE5C,+DAA6C;AAC7C,6DAA2C;AAC3C,oDAAkC;AAElC,8CAA4B;AAC5B,qDAAmC;AAEnC,0EAAwD;AACxD,yEAAuD;AACvD,gEAA8C;AAE9C,iCAAiC;AACjC,wCAAwC"}
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,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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=profile-events.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=profile.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=translated-profile.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=theme-events.js.map
@@ -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=theme.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":""}
@@ -19,6 +19,9 @@ export * from './pending-hack/pending-hack';
19
19
  export * from './pending-hack/pending-hack-events';
20
20
  export * from './pending-hack/pending-hack-with-voice';
21
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';
22
25
  export * from './segment/segment-with-voice';
23
26
  export * from './segment/segment-commands';
24
27
  export * from './segment/segment';
@@ -27,4 +30,6 @@ export * from './skin/skin-events';
27
30
  export * from './text-to-speech/create-speech-commands';
28
31
  export * from './text-to-speech/speech-created-events';
29
32
  export * from './text-to-speech/text-segment';
33
+ export * from './theme/theme';
34
+ export * from './theme/theme-events';
30
35
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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;AAM9D,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"}
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/esm/index.js CHANGED
@@ -19,9 +19,9 @@ export * from './pending-hack/pending-hack';
19
19
  export * from './pending-hack/pending-hack-events';
20
20
  export * from './pending-hack/pending-hack-with-voice';
21
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';
22
+ export * from './profile/profile';
23
+ export * from './profile/translated-profile';
24
+ export * from './profile/profile-events';
25
25
  export * from './segment/segment-with-voice';
26
26
  export * from './segment/segment-commands';
27
27
  export * from './segment/segment';
@@ -30,6 +30,6 @@ export * from './skin/skin-events';
30
30
  export * from './text-to-speech/create-speech-commands';
31
31
  export * from './text-to-speech/speech-created-events';
32
32
  export * from './text-to-speech/text-segment';
33
- // export * from './theme/theme';
34
- // export * from './theme/theme-events';
33
+ export * from './theme/theme';
34
+ export * from './theme/theme-events';
35
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","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,qCAAqC;AACrC,gDAAgD;AAChD,4CAA4C;AAE5C,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,iCAAiC;AACjC,wCAAwC"}
1
+ {"version":3,"file":"index.js","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"}
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=profile-events.js.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=profile.js.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=translated-profile.js.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=theme-events.js.map
@@ -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=theme.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/theme/theme.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uptime.app/contracts",
3
- "version": "1.0.9-rc.10",
3
+ "version": "1.0.9-rc.11",
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": "8c1e9f9990bbd753117928facb45685bcc5739bc"
16
+ "gitHead": "a812b3151685fece6b3481ea3bcc01f05c7ddd78"
17
17
  }
package/src/index.ts CHANGED
@@ -26,9 +26,9 @@ export * from './pending-hack/pending-hack-events';
26
26
  export * from './pending-hack/pending-hack-with-voice';
27
27
  export * from './pending-hack/pending-hack-with-voice-events';
28
28
 
29
- // export * from './profile/profile';
30
- // export * from './profile/translated-profile';
31
- // export * from './profile/profile-events';
29
+ export * from './profile/profile';
30
+ export * from './profile/translated-profile';
31
+ export * from './profile/profile-events';
32
32
 
33
33
  export * from './segment/segment-with-voice';
34
34
  export * from './segment/segment-commands';
@@ -41,5 +41,5 @@ export * from './text-to-speech/create-speech-commands';
41
41
  export * from './text-to-speech/speech-created-events';
42
42
  export * from './text-to-speech/text-segment';
43
43
 
44
- // export * from './theme/theme';
45
- // export * from './theme/theme-events';
44
+ export * from './theme/theme';
45
+ export * from './theme/theme-events';