@uptime.app/contracts 1.0.13 → 1.0.15-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.
Files changed (102) hide show
  1. package/dist/cjs/app-hack/app-full-hack.d.ts +9 -0
  2. package/dist/cjs/app-hack/app-full-hack.d.ts.map +1 -0
  3. package/dist/cjs/app-hack/app-full-hack.js +3 -0
  4. package/dist/cjs/app-hack/app-full-hack.js.map +1 -0
  5. package/dist/cjs/app-hack/app-hack-metadata.d.ts +58 -0
  6. package/dist/cjs/app-hack/app-hack-metadata.d.ts.map +1 -0
  7. package/dist/cjs/app-hack/app-hack-metadata.js +3 -0
  8. package/dist/cjs/app-hack/app-hack-metadata.js.map +1 -0
  9. package/dist/cjs/app-hack/app-restricted-hack.d.ts +21 -0
  10. package/dist/cjs/app-hack/app-restricted-hack.d.ts.map +1 -0
  11. package/dist/cjs/app-hack/app-restricted-hack.js +3 -0
  12. package/dist/cjs/app-hack/app-restricted-hack.js.map +1 -0
  13. package/dist/cjs/draft-hack-generation/draft-hack-generation-events.d.ts +36 -0
  14. package/dist/cjs/draft-hack-generation/draft-hack-generation-events.d.ts.map +1 -0
  15. package/dist/cjs/draft-hack-generation/draft-hack-generation-events.js +3 -0
  16. package/dist/cjs/draft-hack-generation/draft-hack-generation-events.js.map +1 -0
  17. package/dist/cjs/draft-hack-generation/draft-hack-generation.d.ts +39 -0
  18. package/dist/cjs/draft-hack-generation/draft-hack-generation.d.ts.map +1 -0
  19. package/dist/cjs/draft-hack-generation/draft-hack-generation.js +3 -0
  20. package/dist/cjs/draft-hack-generation/draft-hack-generation.js.map +1 -0
  21. package/dist/cjs/index.d.ts +5 -0
  22. package/dist/cjs/index.d.ts.map +1 -1
  23. package/dist/cjs/index.js +5 -0
  24. package/dist/cjs/index.js.map +1 -1
  25. package/dist/esm/app-hack/app-full-hack.d.ts +9 -0
  26. package/dist/esm/app-hack/app-full-hack.d.ts.map +1 -0
  27. package/dist/esm/app-hack/app-full-hack.js +2 -0
  28. package/dist/esm/app-hack/app-full-hack.js.map +1 -0
  29. package/dist/esm/app-hack/app-hack-metadata.d.ts +58 -0
  30. package/dist/esm/app-hack/app-hack-metadata.d.ts.map +1 -0
  31. package/dist/esm/app-hack/app-hack-metadata.js +2 -0
  32. package/dist/esm/app-hack/app-hack-metadata.js.map +1 -0
  33. package/dist/esm/app-hack/app-restricted-hack.d.ts +21 -0
  34. package/dist/esm/app-hack/app-restricted-hack.d.ts.map +1 -0
  35. package/dist/esm/app-hack/app-restricted-hack.js +2 -0
  36. package/dist/esm/app-hack/app-restricted-hack.js.map +1 -0
  37. package/dist/esm/draft-hack-generation/draft-hack-generation-events.d.ts +36 -0
  38. package/dist/esm/draft-hack-generation/draft-hack-generation-events.d.ts.map +1 -0
  39. package/dist/esm/draft-hack-generation/draft-hack-generation-events.js +2 -0
  40. package/dist/esm/draft-hack-generation/draft-hack-generation-events.js.map +1 -0
  41. package/dist/esm/draft-hack-generation/draft-hack-generation.d.ts +39 -0
  42. package/dist/esm/draft-hack-generation/draft-hack-generation.d.ts.map +1 -0
  43. package/dist/esm/draft-hack-generation/draft-hack-generation.js +2 -0
  44. package/dist/esm/draft-hack-generation/draft-hack-generation.js.map +1 -0
  45. package/dist/esm/index.d.ts +5 -0
  46. package/dist/esm/index.d.ts.map +1 -1
  47. package/dist/esm/index.js +5 -0
  48. package/dist/esm/index.js.map +1 -1
  49. package/package.json +2 -2
  50. package/src/access-control/collection-access-control.ts +28 -28
  51. package/src/access-control/hack-access-control.ts +29 -29
  52. package/src/app-hack/app-full-hack.ts +9 -0
  53. package/src/app-hack/app-hack-metadata.ts +56 -0
  54. package/src/app-hack/app-restricted-hack.ts +22 -0
  55. package/src/b2b-organisation/b2b-organisation-events.ts +21 -21
  56. package/src/b2b-organisation/b2b-organisation-member-events.ts +21 -21
  57. package/src/b2b-organisation/b2b-organisation-member.ts +8 -8
  58. package/src/b2b-organisation/b2b-organisation.ts +14 -14
  59. package/src/brand/brand-events.ts +21 -21
  60. package/src/brand/brand.ts +8 -8
  61. package/src/distribution/collection-distribution.ts +17 -17
  62. package/src/distribution/distribution-events.ts +61 -61
  63. package/src/distribution/hack-distribution.ts +18 -18
  64. package/src/draft-hack/draft-hack-events.ts +21 -21
  65. package/src/draft-hack/draft-hack.ts +184 -184
  66. package/src/draft-hack-generation/draft-hack-generation-events.ts +42 -0
  67. package/src/draft-hack-generation/draft-hack-generation.ts +38 -0
  68. package/src/enriched-hack/enriched-hack-events.ts +21 -21
  69. package/src/enriched-hack/enriched-hack.ts +101 -101
  70. package/src/hack/extracted-subject.ts +4 -4
  71. package/src/hack/hack-events.ts +21 -21
  72. package/src/hack/hack-with-voice-events.ts +20 -20
  73. package/src/hack/hack-with-voice.ts +33 -33
  74. package/src/hack/hack.ts +114 -114
  75. package/src/hack-metadata/hack-metadata-events.ts +21 -21
  76. package/src/hack-metadata/hack-metadata.ts +17 -17
  77. package/src/index.ts +68 -61
  78. package/src/knowledge-source/knowledge-source-events.ts +21 -21
  79. package/src/knowledge-source/knowledge-source.ts +43 -43
  80. package/src/localisation/live-locales.ts +32 -32
  81. package/src/localisation/locale-language.ts +4 -4
  82. package/src/localisation/supported-languages.ts +11 -11
  83. package/src/localisation/supported-locales.ts +42 -42
  84. package/src/pending-hack/pending-hack-events.ts +20 -20
  85. package/src/pending-hack/pending-hack-with-voice-events.ts +20 -20
  86. package/src/pending-hack/pending-hack-with-voice.ts +25 -25
  87. package/src/pending-hack/pending-hack.ts +75 -75
  88. package/src/profile/profile-events.ts +41 -41
  89. package/src/profile/profile.ts +27 -27
  90. package/src/profile/translated-profile.ts +13 -13
  91. package/src/segment/segment-commands.ts +70 -70
  92. package/src/segment/segment-with-voice.ts +8 -8
  93. package/src/segment/segment.ts +82 -82
  94. package/src/skin/skin-events.ts +21 -21
  95. package/src/skin/skin.ts +6 -6
  96. package/src/text-to-speech/create-speech-commands.ts +20 -20
  97. package/src/text-to-speech/speech-created-events.ts +11 -11
  98. package/src/text-to-speech/text-segment.ts +29 -29
  99. package/src/theme/theme-events.ts +21 -21
  100. package/src/theme/theme.ts +68 -68
  101. package/tsconfig.cjs.json +7 -7
  102. package/tsconfig.npm.json +21 -21
package/src/index.ts CHANGED
@@ -1,61 +1,68 @@
1
- export * from './access-control/collection-access-control';
2
- export * from './access-control/hack-access-control';
3
-
4
- export * from './b2b-organisation/b2b-organisation';
5
- export * from './b2b-organisation/b2b-organisation-events';
6
-
7
- export * from './b2b-organisation/b2b-organisation-member';
8
- export * from './b2b-organisation/b2b-organisation-member-events';
9
-
10
- export * from './brand/brand';
11
- export * from './brand/brand-events';
12
-
13
- export * from './distribution/distribution-events';
14
- export * from './distribution/hack-distribution';
15
- export * from './distribution/collection-distribution';
16
-
17
- export * from './draft-hack/draft-hack';
18
- export * from './draft-hack/draft-hack-events';
19
-
20
- export * from './enriched-hack/enriched-hack';
21
- export * from './enriched-hack/enriched-hack-events';
22
-
23
- export * from './hack/extracted-subject';
24
- export * from './hack/hack';
25
- export * from './hack/hack-with-voice';
26
- export * from './hack/hack-events';
27
- export * from './hack/hack-with-voice-events';
28
-
29
- export * from './hack-metadata/hack-metadata';
30
- export * from './hack-metadata/hack-metadata-events';
31
-
32
- export * from './knowledge-source/knowledge-source';
33
- export * from './knowledge-source/knowledge-source-events';
34
-
35
- export * from './localisation/live-locales';
36
- export * from './localisation/locale-language';
37
- export * from './localisation/supported-languages';
38
- export * from './localisation/supported-locales';
39
-
40
- export * from './pending-hack/pending-hack';
41
- export * from './pending-hack/pending-hack-events';
42
- export * from './pending-hack/pending-hack-with-voice';
43
- export * from './pending-hack/pending-hack-with-voice-events';
44
-
45
- export * from './profile/profile';
46
- export * from './profile/translated-profile';
47
- export * from './profile/profile-events';
48
-
49
- export * from './segment/segment-with-voice';
50
- export * from './segment/segment-commands';
51
- export * from './segment/segment';
52
-
53
- export * from './skin/skin';
54
- export * from './skin/skin-events';
55
-
56
- export * from './text-to-speech/create-speech-commands';
57
- export * from './text-to-speech/speech-created-events';
58
- export * from './text-to-speech/text-segment';
59
-
60
- export * from './theme/theme';
61
- export * from './theme/theme-events';
1
+ export * from './access-control/collection-access-control';
2
+ export * from './access-control/hack-access-control';
3
+
4
+ export * from './app-hack/app-full-hack';
5
+ export * from './app-hack/app-hack-metadata';
6
+ export * from './app-hack/app-restricted-hack';
7
+
8
+ export * from './b2b-organisation/b2b-organisation';
9
+ export * from './b2b-organisation/b2b-organisation-events';
10
+
11
+ export * from './b2b-organisation/b2b-organisation-member';
12
+ export * from './b2b-organisation/b2b-organisation-member-events';
13
+
14
+ export * from './brand/brand';
15
+ export * from './brand/brand-events';
16
+
17
+ export * from './distribution/distribution-events';
18
+ export * from './distribution/hack-distribution';
19
+ export * from './distribution/collection-distribution';
20
+
21
+ export * from './draft-hack/draft-hack';
22
+ export * from './draft-hack/draft-hack-events';
23
+
24
+ export * from './draft-hack-generation/draft-hack-generation';
25
+ export * from './draft-hack-generation/draft-hack-generation-events';
26
+
27
+ export * from './enriched-hack/enriched-hack';
28
+ export * from './enriched-hack/enriched-hack-events';
29
+
30
+ export * from './hack/extracted-subject';
31
+ export * from './hack/hack';
32
+ export * from './hack/hack-with-voice';
33
+ export * from './hack/hack-events';
34
+ export * from './hack/hack-with-voice-events';
35
+
36
+ export * from './hack-metadata/hack-metadata';
37
+ export * from './hack-metadata/hack-metadata-events';
38
+
39
+ export * from './knowledge-source/knowledge-source';
40
+ export * from './knowledge-source/knowledge-source-events';
41
+
42
+ export * from './localisation/live-locales';
43
+ export * from './localisation/locale-language';
44
+ export * from './localisation/supported-languages';
45
+ export * from './localisation/supported-locales';
46
+
47
+ export * from './pending-hack/pending-hack';
48
+ export * from './pending-hack/pending-hack-events';
49
+ export * from './pending-hack/pending-hack-with-voice';
50
+ export * from './pending-hack/pending-hack-with-voice-events';
51
+
52
+ export * from './profile/profile';
53
+ export * from './profile/translated-profile';
54
+ export * from './profile/profile-events';
55
+
56
+ export * from './segment/segment-with-voice';
57
+ export * from './segment/segment-commands';
58
+ export * from './segment/segment';
59
+
60
+ export * from './skin/skin';
61
+ export * from './skin/skin-events';
62
+
63
+ export * from './text-to-speech/create-speech-commands';
64
+ export * from './text-to-speech/speech-created-events';
65
+ export * from './text-to-speech/text-segment';
66
+
67
+ export * from './theme/theme';
68
+ export * from './theme/theme-events';
@@ -1,21 +1,21 @@
1
- import { KnowledgeSource } from './knowledge-source';
2
-
3
- export interface KnowledgeSourceCreatedEvent {
4
- id: string;
5
- type: 'KnowledgeSourceCreated';
6
- payload: KnowledgeSource;
7
- }
8
-
9
- export interface KnowledgeSourceUpdatedEvent {
10
- id: string;
11
- type: 'KnowledgeSourceUpdated';
12
- payload: KnowledgeSource;
13
- }
14
-
15
- export interface KnowledgeSourceDeletedEvent {
16
- id: string;
17
- type: 'KnowledgeSourceDeleted';
18
- payload: KnowledgeSource;
19
- }
20
-
21
- export type KnowledgeSourceChangedEvent = KnowledgeSourceCreatedEvent | KnowledgeSourceUpdatedEvent | KnowledgeSourceDeletedEvent;
1
+ import { KnowledgeSource } from './knowledge-source';
2
+
3
+ export interface KnowledgeSourceCreatedEvent {
4
+ id: string;
5
+ type: 'KnowledgeSourceCreated';
6
+ payload: KnowledgeSource;
7
+ }
8
+
9
+ export interface KnowledgeSourceUpdatedEvent {
10
+ id: string;
11
+ type: 'KnowledgeSourceUpdated';
12
+ payload: KnowledgeSource;
13
+ }
14
+
15
+ export interface KnowledgeSourceDeletedEvent {
16
+ id: string;
17
+ type: 'KnowledgeSourceDeleted';
18
+ payload: KnowledgeSource;
19
+ }
20
+
21
+ export type KnowledgeSourceChangedEvent = KnowledgeSourceCreatedEvent | KnowledgeSourceUpdatedEvent | KnowledgeSourceDeletedEvent;
@@ -1,43 +1,43 @@
1
- export interface KnowledgeSource {
2
- id: string;
3
- /** @deprecated - use affiliate.url instead */
4
- affiliateLink?: string;
5
- // introduced Feb 2021. May be undefined in previous events
6
- affiliate: Affiliate;
7
- categories: Category[];
8
- topics: Topic[];
9
- coverUrl?: string;
10
- createdAt: string;
11
- description?: string;
12
- contributors: Contributor[];
13
- title: string;
14
- type: KnowledgeSourceType;
15
- updatedAt: string;
16
- v: number;
17
- metadata?: {
18
- [key: string]: any;
19
- };
20
- /** Number of pages in the book. only set for books. May be undefined */
21
- pageCount?: number;
22
- /** Set for courses, documentaries and podcasts. May be undefined */
23
- durationInMinutes?: number;
24
- }
25
-
26
- export type KnowledgeSourceType = 'book' | 'course' | 'documentary' | 'podcast';
27
-
28
- export interface Affiliate {
29
- url?: string;
30
- name?: string;
31
- }
32
-
33
- export interface Contributor {
34
- name: string;
35
- }
36
-
37
- export interface Category {
38
- name: string;
39
- }
40
-
41
- export interface Topic {
42
- name: string;
43
- }
1
+ export interface KnowledgeSource {
2
+ id: string;
3
+ /** @deprecated - use affiliate.url instead */
4
+ affiliateLink?: string;
5
+ // introduced Feb 2021. May be undefined in previous events
6
+ affiliate: Affiliate;
7
+ categories: Category[];
8
+ topics: Topic[];
9
+ coverUrl?: string;
10
+ createdAt: string;
11
+ description?: string;
12
+ contributors: Contributor[];
13
+ title: string;
14
+ type: KnowledgeSourceType;
15
+ updatedAt: string;
16
+ v: number;
17
+ metadata?: {
18
+ [key: string]: any;
19
+ };
20
+ /** Number of pages in the book. only set for books. May be undefined */
21
+ pageCount?: number;
22
+ /** Set for courses, documentaries and podcasts. May be undefined */
23
+ durationInMinutes?: number;
24
+ }
25
+
26
+ export type KnowledgeSourceType = 'book' | 'course' | 'documentary' | 'podcast';
27
+
28
+ export interface Affiliate {
29
+ url?: string;
30
+ name?: string;
31
+ }
32
+
33
+ export interface Contributor {
34
+ name: string;
35
+ }
36
+
37
+ export interface Category {
38
+ name: string;
39
+ }
40
+
41
+ export interface Topic {
42
+ name: string;
43
+ }
@@ -1,33 +1,33 @@
1
- import { DEFAULT_LOCALE, SupportedLocale } from './supported-locales';
2
-
3
- /**
4
- * All locale codes that are live and in use in the app
5
- */
6
- export function allLiveLocaleCodes(): SupportedLocale[] {
7
- return [
8
- SupportedLocale.enGB,
9
- SupportedLocale.enUS,
10
- SupportedLocale.ptBR,
11
- SupportedLocale.es,
12
- SupportedLocale.frFR,
13
- SupportedLocale.itIT,
14
- SupportedLocale.nlNL,
15
- SupportedLocale.deDE,
16
- SupportedLocale.frCA,
17
- SupportedLocale.plPL,
18
- SupportedLocale.svSE,
19
- SupportedLocale.trTR
20
- ];
21
- }
22
-
23
- export function localeCodeIsLive(localeCode: string) {
24
- return allLiveLocaleCodes().includes(localeCode as SupportedLocale);
25
- }
26
-
27
- export function liveLocaleFrom(localeCode?: string): SupportedLocale {
28
- const locale = allLiveLocaleCodes().find(liveLocale => liveLocale == localeCode);
29
- if (!locale) {
30
- return DEFAULT_LOCALE;
31
- }
32
- return locale;
1
+ import { DEFAULT_LOCALE, SupportedLocale } from './supported-locales';
2
+
3
+ /**
4
+ * All locale codes that are live and in use in the app
5
+ */
6
+ export function allLiveLocaleCodes(): SupportedLocale[] {
7
+ return [
8
+ SupportedLocale.enGB,
9
+ SupportedLocale.enUS,
10
+ SupportedLocale.ptBR,
11
+ SupportedLocale.es,
12
+ SupportedLocale.frFR,
13
+ SupportedLocale.itIT,
14
+ SupportedLocale.nlNL,
15
+ SupportedLocale.deDE,
16
+ SupportedLocale.frCA,
17
+ SupportedLocale.plPL,
18
+ SupportedLocale.svSE,
19
+ SupportedLocale.trTR
20
+ ];
21
+ }
22
+
23
+ export function localeCodeIsLive(localeCode: string) {
24
+ return allLiveLocaleCodes().includes(localeCode as SupportedLocale);
25
+ }
26
+
27
+ export function liveLocaleFrom(localeCode?: string): SupportedLocale {
28
+ const locale = allLiveLocaleCodes().find(liveLocale => liveLocale == localeCode);
29
+ if (!locale) {
30
+ return DEFAULT_LOCALE;
31
+ }
32
+ return locale;
33
33
  }
@@ -1,4 +1,4 @@
1
- export function languageOf(locale: string): string {
2
- if (!locale) return ''; // temp: defend against an undefined locale
3
- return locale.split('-')[0];
4
- }
1
+ export function languageOf(locale: string): string {
2
+ if (!locale) return ''; // temp: defend against an undefined locale
3
+ return locale.split('-')[0];
4
+ }
@@ -1,11 +1,11 @@
1
- import { allSupportedLocaleCodes } from './supported-locales';
2
-
3
- export function allSupportedLanguageCodes(): string[] {
4
- const languageCodes = allSupportedLocaleCodes().map(locale => locale.split('-')[0]);
5
- const uniqueLanguageCodes = [...new Set(languageCodes)];
6
-
7
- return uniqueLanguageCodes;
8
- }
9
-
10
- export const ENGLISH_LANGUAGE = 'en';
11
- export const DEFAULT_LANGUAGE = ENGLISH_LANGUAGE;
1
+ import { allSupportedLocaleCodes } from './supported-locales';
2
+
3
+ export function allSupportedLanguageCodes(): string[] {
4
+ const languageCodes = allSupportedLocaleCodes().map(locale => locale.split('-')[0]);
5
+ const uniqueLanguageCodes = [...new Set(languageCodes)];
6
+
7
+ return uniqueLanguageCodes;
8
+ }
9
+
10
+ export const ENGLISH_LANGUAGE = 'en';
11
+ export const DEFAULT_LANGUAGE = ENGLISH_LANGUAGE;
@@ -1,42 +1,42 @@
1
- export enum SupportedLocale {
2
- /** English (United Kingdom) */
3
- enGB = 'en-GB',
4
- /** English (United States) */
5
- enUS = 'en-US',
6
- /** Portuguese (Brazil) */
7
- ptBR = 'pt-BR',
8
- /** Spanish (International) */
9
- es = 'es',
10
- /** French (France) */
11
- frFR = 'fr-FR',
12
- /** Italian */
13
- itIT = 'it-IT',
14
- /** Dutch */
15
- nlNL = 'nl-NL',
16
- /** German */
17
- deDE = 'de-DE',
18
- /** Polish */
19
- plPL = 'pl-PL',
20
- /** Swedish */
21
- svSE = 'sv-SE',
22
- /** Turkish */
23
- trTR = 'tr-TR',
24
- /** Canadian French */
25
- frCA = 'fr-CA',
26
- /** Traditional Chinese */
27
- zhTW = 'zh-TW',
28
- /** Simplified Chinese */
29
- zhCN = 'zh-CN',
30
- /** Malaysian Malay */
31
- msMY = 'ms-MY'
32
-
33
- }
34
-
35
- /**
36
- * All supported locale codes. Use allLiveLocaleCodes() instead when checking for locale codes supported by the app
37
- */
38
- export function allSupportedLocaleCodes(): string[] {
39
- return Object.values(SupportedLocale);
40
- }
41
-
42
- export const DEFAULT_LOCALE = SupportedLocale.enUS;
1
+ export enum SupportedLocale {
2
+ /** English (United Kingdom) */
3
+ enGB = 'en-GB',
4
+ /** English (United States) */
5
+ enUS = 'en-US',
6
+ /** Portuguese (Brazil) */
7
+ ptBR = 'pt-BR',
8
+ /** Spanish (International) */
9
+ es = 'es',
10
+ /** French (France) */
11
+ frFR = 'fr-FR',
12
+ /** Italian */
13
+ itIT = 'it-IT',
14
+ /** Dutch */
15
+ nlNL = 'nl-NL',
16
+ /** German */
17
+ deDE = 'de-DE',
18
+ /** Polish */
19
+ plPL = 'pl-PL',
20
+ /** Swedish */
21
+ svSE = 'sv-SE',
22
+ /** Turkish */
23
+ trTR = 'tr-TR',
24
+ /** Canadian French */
25
+ frCA = 'fr-CA',
26
+ /** Traditional Chinese */
27
+ zhTW = 'zh-TW',
28
+ /** Simplified Chinese */
29
+ zhCN = 'zh-CN',
30
+ /** Malaysian Malay */
31
+ msMY = 'ms-MY'
32
+
33
+ }
34
+
35
+ /**
36
+ * All supported locale codes. Use allLiveLocaleCodes() instead when checking for locale codes supported by the app
37
+ */
38
+ export function allSupportedLocaleCodes(): string[] {
39
+ return Object.values(SupportedLocale);
40
+ }
41
+
42
+ export const DEFAULT_LOCALE = SupportedLocale.enUS;
@@ -1,21 +1,21 @@
1
- import { PendingHack } from './pending-hack';
2
-
3
- export interface PendingHackCreatedEvent {
4
- id: string;
5
- type: 'PendingHackCreated';
6
- payload: PendingHack;
7
- }
8
-
9
- export interface PendingHackUpdatedEvent {
10
- id: string;
11
- type: 'PendingHackUpdated';
12
- payload: PendingHack;
13
- }
14
-
15
- export interface PendingHackDeletedEvent {
16
- id: string;
17
- type: 'PendingHackDeleted';
18
- payload: PendingHack;
19
- }
20
-
1
+ import { PendingHack } from './pending-hack';
2
+
3
+ export interface PendingHackCreatedEvent {
4
+ id: string;
5
+ type: 'PendingHackCreated';
6
+ payload: PendingHack;
7
+ }
8
+
9
+ export interface PendingHackUpdatedEvent {
10
+ id: string;
11
+ type: 'PendingHackUpdated';
12
+ payload: PendingHack;
13
+ }
14
+
15
+ export interface PendingHackDeletedEvent {
16
+ id: string;
17
+ type: 'PendingHackDeleted';
18
+ payload: PendingHack;
19
+ }
20
+
21
21
  export type PendingHackChangedEvent = PendingHackCreatedEvent | PendingHackUpdatedEvent | PendingHackDeletedEvent;
@@ -1,21 +1,21 @@
1
- import { PendingHackWithVoice } from './pending-hack-with-voice';
2
-
3
- export interface PendingHackWithVoiceCreatedEvent {
4
- id: string;
5
- type: 'PendingHackWithVoiceCreated';
6
- payload: PendingHackWithVoice;
7
- }
8
-
9
- export interface PendingHackWithVoiceUpdatedEvent {
10
- id: string;
11
- type: 'PendingHackWithVoiceUpdated';
12
- payload: PendingHackWithVoice;
13
- }
14
-
15
- export interface PendingHackWithVoiceDeletedEvent {
16
- id: string;
17
- type: 'PendingHackWithVoiceDeleted';
18
- payload: PendingHackWithVoice;
19
- }
20
-
1
+ import { PendingHackWithVoice } from './pending-hack-with-voice';
2
+
3
+ export interface PendingHackWithVoiceCreatedEvent {
4
+ id: string;
5
+ type: 'PendingHackWithVoiceCreated';
6
+ payload: PendingHackWithVoice;
7
+ }
8
+
9
+ export interface PendingHackWithVoiceUpdatedEvent {
10
+ id: string;
11
+ type: 'PendingHackWithVoiceUpdated';
12
+ payload: PendingHackWithVoice;
13
+ }
14
+
15
+ export interface PendingHackWithVoiceDeletedEvent {
16
+ id: string;
17
+ type: 'PendingHackWithVoiceDeleted';
18
+ payload: PendingHackWithVoice;
19
+ }
20
+
21
21
  export type PendingHackWithVoiceChangedEvent = PendingHackWithVoiceCreatedEvent | PendingHackWithVoiceUpdatedEvent | PendingHackWithVoiceDeletedEvent;
@@ -1,25 +1,25 @@
1
- /* eslint-disable @typescript-eslint/ban-types */
2
- import { Segment } from '../segment/segment';
3
- import { CompletePendingHack, PendingHack } from './pending-hack';
4
-
5
- export interface PendingHackWithVoice {
6
- id: string;
7
- v: number;
8
- createdAt: string;
9
- updatedAt: string;
10
- voiceId: string;
11
- isDefaultVoice: boolean;
12
- hackId: string;
13
- baseLocaleHackId: string;
14
- segments: PendingHack['segments'];
15
- }
16
-
17
- export interface CompletePendingHackWithVoice extends PendingHackWithVoice {
18
- segments: CompletePendingHack['segments'];
19
- }
20
-
21
- export type CompletePendingHackWithVoiceWithPutInAction = CompletePendingHackWithVoice & {
22
- segments: {
23
- putInAction: Segment;
24
- }
25
- };
1
+ /* eslint-disable @typescript-eslint/ban-types */
2
+ import { Segment } from '../segment/segment';
3
+ import { CompletePendingHack, PendingHack } from './pending-hack';
4
+
5
+ export interface PendingHackWithVoice {
6
+ id: string;
7
+ v: number;
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ voiceId: string;
11
+ isDefaultVoice: boolean;
12
+ hackId: string;
13
+ baseLocaleHackId: string;
14
+ segments: PendingHack['segments'];
15
+ }
16
+
17
+ export interface CompletePendingHackWithVoice extends PendingHackWithVoice {
18
+ segments: CompletePendingHack['segments'];
19
+ }
20
+
21
+ export type CompletePendingHackWithVoiceWithPutInAction = CompletePendingHackWithVoice & {
22
+ segments: {
23
+ putInAction: Segment;
24
+ }
25
+ };