@uptime.app/contracts 1.0.2 → 1.0.3

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 (186) hide show
  1. package/dist/cjs/hack/extracted-subject.d.ts +4 -0
  2. package/dist/cjs/hack/extracted-subject.d.ts.map +1 -0
  3. package/dist/cjs/hack/extracted-subject.js +3 -0
  4. package/dist/cjs/hack/extracted-subject.js.map +1 -0
  5. package/dist/cjs/hack/hack-events.d.ts +18 -0
  6. package/dist/cjs/hack/hack-events.d.ts.map +1 -0
  7. package/dist/cjs/hack/hack-events.js +3 -0
  8. package/dist/cjs/hack/hack-events.js.map +1 -0
  9. package/dist/cjs/hack/hack-with-voice-events.d.ts +18 -0
  10. package/dist/cjs/hack/hack-with-voice-events.d.ts.map +1 -0
  11. package/dist/cjs/hack/hack-with-voice-events.js +3 -0
  12. package/dist/cjs/hack/hack-with-voice-events.js.map +1 -0
  13. package/dist/cjs/hack/hack-with-voice.d.ts +31 -0
  14. package/dist/cjs/hack/hack-with-voice.d.ts.map +1 -0
  15. package/dist/cjs/hack/hack-with-voice.js +3 -0
  16. package/dist/cjs/hack/hack-with-voice.js.map +1 -0
  17. package/dist/cjs/hack/hack.d.ts +101 -0
  18. package/dist/cjs/hack/hack.d.ts.map +1 -0
  19. package/dist/{esm → cjs/hack}/hack.js.map +1 -1
  20. package/dist/cjs/index.d.ts +19 -1
  21. package/dist/cjs/index.d.ts.map +1 -1
  22. package/dist/cjs/index.js +19 -1
  23. package/dist/cjs/index.js.map +1 -1
  24. package/dist/cjs/localisation/live-locales.d.ts +8 -0
  25. package/dist/cjs/localisation/live-locales.d.ts.map +1 -0
  26. package/dist/cjs/localisation/live-locales.js +37 -0
  27. package/dist/cjs/localisation/live-locales.js.map +1 -0
  28. package/dist/cjs/localisation/locale-language.d.ts +2 -0
  29. package/dist/cjs/localisation/locale-language.d.ts.map +1 -0
  30. package/dist/cjs/localisation/locale-language.js +10 -0
  31. package/dist/cjs/localisation/locale-language.js.map +1 -0
  32. package/dist/cjs/localisation/supported-languages.d.ts +4 -0
  33. package/dist/cjs/localisation/supported-languages.d.ts.map +1 -0
  34. package/dist/cjs/localisation/supported-languages.js +13 -0
  35. package/dist/cjs/localisation/supported-languages.js.map +1 -0
  36. package/dist/cjs/localisation/supported-locales.d.ts +38 -0
  37. package/dist/cjs/localisation/supported-locales.d.ts.map +1 -0
  38. package/dist/cjs/localisation/supported-locales.js +45 -0
  39. package/dist/cjs/localisation/supported-locales.js.map +1 -0
  40. package/dist/cjs/pending-hack/pending-hack-events.d.ts +18 -0
  41. package/dist/cjs/pending-hack/pending-hack-events.d.ts.map +1 -0
  42. package/dist/cjs/pending-hack/pending-hack-events.js +3 -0
  43. package/dist/cjs/pending-hack/pending-hack-events.js.map +1 -0
  44. package/dist/cjs/pending-hack/pending-hack-with-voice-events.d.ts +18 -0
  45. package/dist/cjs/pending-hack/pending-hack-with-voice-events.d.ts.map +1 -0
  46. package/dist/cjs/pending-hack/pending-hack-with-voice-events.js +3 -0
  47. package/dist/cjs/pending-hack/pending-hack-with-voice-events.js.map +1 -0
  48. package/dist/cjs/pending-hack/pending-hack-with-voice.d.ts +22 -0
  49. package/dist/cjs/pending-hack/pending-hack-with-voice.d.ts.map +1 -0
  50. package/dist/cjs/pending-hack/pending-hack-with-voice.js +3 -0
  51. package/dist/cjs/pending-hack/pending-hack-with-voice.js.map +1 -0
  52. package/dist/cjs/pending-hack/pending-hack.d.ts +70 -0
  53. package/dist/cjs/pending-hack/pending-hack.d.ts.map +1 -0
  54. package/dist/cjs/pending-hack/pending-hack.js +3 -0
  55. package/dist/cjs/pending-hack/pending-hack.js.map +1 -0
  56. package/dist/cjs/segment/segment-commands.d.ts +62 -0
  57. package/dist/cjs/segment/segment-commands.d.ts.map +1 -0
  58. package/dist/cjs/segment/segment-commands.js +3 -0
  59. package/dist/cjs/segment/segment-commands.js.map +1 -0
  60. package/dist/cjs/segment/segment-with-voice.d.ts +5 -0
  61. package/dist/cjs/segment/segment-with-voice.d.ts.map +1 -0
  62. package/dist/cjs/segment/segment-with-voice.js +3 -0
  63. package/dist/cjs/segment/segment-with-voice.js.map +1 -0
  64. package/dist/cjs/segment/segment.d.ts +70 -0
  65. package/dist/cjs/segment/segment.d.ts.map +1 -0
  66. package/dist/cjs/segment/segment.js +3 -0
  67. package/dist/cjs/segment/segment.js.map +1 -0
  68. package/dist/cjs/text-to-speech/create-speech-commands.d.ts +19 -0
  69. package/dist/cjs/text-to-speech/create-speech-commands.d.ts.map +1 -0
  70. package/dist/cjs/text-to-speech/create-speech-commands.js +3 -0
  71. package/dist/cjs/text-to-speech/create-speech-commands.js.map +1 -0
  72. package/dist/cjs/text-to-speech/speech-created-events.d.ts +11 -0
  73. package/dist/cjs/text-to-speech/speech-created-events.d.ts.map +1 -0
  74. package/dist/cjs/text-to-speech/speech-created-events.js +3 -0
  75. package/dist/cjs/text-to-speech/speech-created-events.js.map +1 -0
  76. package/dist/cjs/text-to-speech/text-segment.d.ts +25 -0
  77. package/dist/cjs/text-to-speech/text-segment.d.ts.map +1 -0
  78. package/dist/cjs/text-to-speech/text-segment.js +8 -0
  79. package/dist/cjs/text-to-speech/text-segment.js.map +1 -0
  80. package/dist/esm/hack/extracted-subject.d.ts +4 -0
  81. package/dist/esm/hack/extracted-subject.d.ts.map +1 -0
  82. package/dist/esm/hack/extracted-subject.js +2 -0
  83. package/dist/esm/hack/extracted-subject.js.map +1 -0
  84. package/dist/esm/hack/hack-events.d.ts +18 -0
  85. package/dist/esm/hack/hack-events.d.ts.map +1 -0
  86. package/dist/esm/hack/hack-events.js +2 -0
  87. package/dist/esm/hack/hack-events.js.map +1 -0
  88. package/dist/esm/hack/hack-with-voice-events.d.ts +18 -0
  89. package/dist/esm/hack/hack-with-voice-events.d.ts.map +1 -0
  90. package/dist/esm/hack/hack-with-voice-events.js +2 -0
  91. package/dist/esm/hack/hack-with-voice-events.js.map +1 -0
  92. package/dist/esm/hack/hack-with-voice.d.ts +31 -0
  93. package/dist/esm/hack/hack-with-voice.d.ts.map +1 -0
  94. package/dist/esm/hack/hack-with-voice.js +2 -0
  95. package/dist/esm/hack/hack-with-voice.js.map +1 -0
  96. package/dist/esm/hack/hack.d.ts +101 -0
  97. package/dist/esm/hack/hack.d.ts.map +1 -0
  98. package/dist/{cjs → esm/hack}/hack.js.map +1 -1
  99. package/dist/esm/index.d.ts +19 -1
  100. package/dist/esm/index.d.ts.map +1 -1
  101. package/dist/esm/index.js +19 -1
  102. package/dist/esm/index.js.map +1 -1
  103. package/dist/esm/localisation/live-locales.d.ts +8 -0
  104. package/dist/esm/localisation/live-locales.d.ts.map +1 -0
  105. package/dist/esm/localisation/live-locales.js +31 -0
  106. package/dist/esm/localisation/live-locales.js.map +1 -0
  107. package/dist/esm/localisation/locale-language.d.ts +2 -0
  108. package/dist/esm/localisation/locale-language.d.ts.map +1 -0
  109. package/dist/esm/localisation/locale-language.js +6 -0
  110. package/dist/esm/localisation/locale-language.js.map +1 -0
  111. package/dist/esm/localisation/supported-languages.d.ts +4 -0
  112. package/dist/esm/localisation/supported-languages.d.ts.map +1 -0
  113. package/dist/esm/localisation/supported-languages.js +9 -0
  114. package/dist/esm/localisation/supported-languages.js.map +1 -0
  115. package/dist/esm/localisation/supported-locales.d.ts +38 -0
  116. package/dist/esm/localisation/supported-locales.d.ts.map +1 -0
  117. package/dist/esm/localisation/supported-locales.js +41 -0
  118. package/dist/esm/localisation/supported-locales.js.map +1 -0
  119. package/dist/esm/pending-hack/pending-hack-events.d.ts +18 -0
  120. package/dist/esm/pending-hack/pending-hack-events.d.ts.map +1 -0
  121. package/dist/esm/pending-hack/pending-hack-events.js +2 -0
  122. package/dist/esm/pending-hack/pending-hack-events.js.map +1 -0
  123. package/dist/esm/pending-hack/pending-hack-with-voice-events.d.ts +18 -0
  124. package/dist/esm/pending-hack/pending-hack-with-voice-events.d.ts.map +1 -0
  125. package/dist/esm/pending-hack/pending-hack-with-voice-events.js +2 -0
  126. package/dist/esm/pending-hack/pending-hack-with-voice-events.js.map +1 -0
  127. package/dist/esm/pending-hack/pending-hack-with-voice.d.ts +22 -0
  128. package/dist/esm/pending-hack/pending-hack-with-voice.d.ts.map +1 -0
  129. package/dist/esm/pending-hack/pending-hack-with-voice.js +2 -0
  130. package/dist/esm/pending-hack/pending-hack-with-voice.js.map +1 -0
  131. package/dist/esm/pending-hack/pending-hack.d.ts +70 -0
  132. package/dist/esm/pending-hack/pending-hack.d.ts.map +1 -0
  133. package/dist/esm/pending-hack/pending-hack.js +2 -0
  134. package/dist/esm/pending-hack/pending-hack.js.map +1 -0
  135. package/dist/esm/segment/segment-commands.d.ts +62 -0
  136. package/dist/esm/segment/segment-commands.d.ts.map +1 -0
  137. package/dist/esm/segment/segment-commands.js +2 -0
  138. package/dist/esm/segment/segment-commands.js.map +1 -0
  139. package/dist/esm/segment/segment-with-voice.d.ts +5 -0
  140. package/dist/esm/segment/segment-with-voice.d.ts.map +1 -0
  141. package/dist/esm/segment/segment-with-voice.js +2 -0
  142. package/dist/esm/segment/segment-with-voice.js.map +1 -0
  143. package/dist/esm/segment/segment.d.ts +70 -0
  144. package/dist/esm/segment/segment.d.ts.map +1 -0
  145. package/dist/esm/segment/segment.js +2 -0
  146. package/dist/esm/segment/segment.js.map +1 -0
  147. package/dist/esm/text-to-speech/create-speech-commands.d.ts +19 -0
  148. package/dist/esm/text-to-speech/create-speech-commands.d.ts.map +1 -0
  149. package/dist/esm/text-to-speech/create-speech-commands.js +2 -0
  150. package/dist/esm/text-to-speech/create-speech-commands.js.map +1 -0
  151. package/dist/esm/text-to-speech/speech-created-events.d.ts +11 -0
  152. package/dist/esm/text-to-speech/speech-created-events.d.ts.map +1 -0
  153. package/dist/esm/text-to-speech/speech-created-events.js +2 -0
  154. package/dist/esm/text-to-speech/speech-created-events.js.map +1 -0
  155. package/dist/esm/text-to-speech/text-segment.d.ts +25 -0
  156. package/dist/esm/text-to-speech/text-segment.d.ts.map +1 -0
  157. package/dist/esm/text-to-speech/text-segment.js +5 -0
  158. package/dist/esm/text-to-speech/text-segment.js.map +1 -0
  159. package/package.json +2 -2
  160. package/src/hack/extracted-subject.ts +5 -0
  161. package/src/hack/hack-events.ts +21 -0
  162. package/src/hack/hack-with-voice-events.ts +21 -0
  163. package/src/hack/hack-with-voice.ts +33 -0
  164. package/src/hack/hack.ts +114 -0
  165. package/src/index.ts +23 -1
  166. package/src/localisation/live-locales.ts +33 -0
  167. package/src/localisation/locale-language.ts +4 -0
  168. package/src/localisation/supported-languages.ts +11 -0
  169. package/src/localisation/supported-locales.ts +42 -0
  170. package/src/pending-hack/pending-hack-events.ts +21 -0
  171. package/src/pending-hack/pending-hack-with-voice-events.ts +21 -0
  172. package/src/pending-hack/pending-hack-with-voice.ts +25 -0
  173. package/src/pending-hack/pending-hack.ts +75 -0
  174. package/src/segment/segment-commands.ts +70 -0
  175. package/src/segment/segment-with-voice.ts +8 -0
  176. package/src/segment/segment.ts +82 -0
  177. package/src/text-to-speech/create-speech-commands.ts +20 -0
  178. package/src/text-to-speech/speech-created-events.ts +11 -0
  179. package/src/text-to-speech/text-segment.ts +29 -0
  180. package/dist/cjs/hack.d.ts +0 -8
  181. package/dist/cjs/hack.d.ts.map +0 -1
  182. package/dist/esm/hack.d.ts +0 -8
  183. package/dist/esm/hack.d.ts.map +0 -1
  184. package/src/hack.ts +0 -7
  185. /package/dist/cjs/{hack.js → hack/hack.js} +0 -0
  186. /package/dist/esm/{hack.js → hack/hack.js} +0 -0
@@ -0,0 +1,4 @@
1
+ export interface ExtractedSubject {
2
+ name: string;
3
+ }
4
+ //# sourceMappingURL=extracted-subject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extracted-subject.d.ts","sourceRoot":"","sources":["../../../src/hack/extracted-subject.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=extracted-subject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extracted-subject.js","sourceRoot":"","sources":["../../../src/hack/extracted-subject.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { Hack } from './hack';
2
+ export interface HackCreatedEvent {
3
+ id: string;
4
+ type: 'HackCreated';
5
+ payload: Hack;
6
+ }
7
+ export interface HackUpdatedEvent {
8
+ id: string;
9
+ type: 'HackUpdated';
10
+ payload: Hack;
11
+ }
12
+ export interface HackDeletedEvent {
13
+ id: string;
14
+ type: 'HackDeleted';
15
+ payload: Hack;
16
+ }
17
+ export type HackChangedEvent = HackCreatedEvent | HackUpdatedEvent | HackDeletedEvent;
18
+ //# sourceMappingURL=hack-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hack-events.d.ts","sourceRoot":"","sources":["../../../src/hack/hack-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=hack-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hack-events.js","sourceRoot":"","sources":["../../../src/hack/hack-events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { HackWithVoice } from './hack-with-voice';
2
+ export interface HackWithVoiceCreatedEvent {
3
+ id: string;
4
+ type: 'HackWithVoiceCreated';
5
+ payload: HackWithVoice;
6
+ }
7
+ export interface HackWithVoiceUpdatedEvent {
8
+ id: string;
9
+ type: 'HackWithVoiceUpdated';
10
+ payload: HackWithVoice;
11
+ }
12
+ export interface HackWithVoiceDeletedEvent {
13
+ id: string;
14
+ type: 'HackWithVoiceDeleted';
15
+ payload: HackWithVoice;
16
+ }
17
+ export type HackWithVoiceChangedEvent = HackWithVoiceCreatedEvent | HackWithVoiceUpdatedEvent | HackWithVoiceDeletedEvent;
18
+ //# sourceMappingURL=hack-with-voice-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hack-with-voice-events.d.ts","sourceRoot":"","sources":["../../../src/hack/hack-with-voice-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,WAAW,yBAAyB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,WAAW,yBAAyB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,WAAW,yBAAyB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,aAAa,CAAC;CAC1B;AAED,MAAM,MAAM,yBAAyB,GAAG,yBAAyB,GAAG,yBAAyB,GAAG,yBAAyB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=hack-with-voice-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hack-with-voice-events.js","sourceRoot":"","sources":["../../../src/hack/hack-with-voice-events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ import { Segment } from '../segment/segment';
2
+ /**
3
+ * HackWithVoice contains the Hack segments a a few basic Hack fields, it does not contain other Hack information.
4
+ * This decision was made due to the complexity of editorialTags and updating them.
5
+ */
6
+ export interface HackWithVoice {
7
+ /** NOT the id of the hack. Use hackId. The id cannot be the hackId as otherwise id would be duplicated for each voice which would break message replay */
8
+ id: string;
9
+ /** The id of the hack */
10
+ hackId: string;
11
+ baseLocaleHackId: string;
12
+ /** The id of voice used to generate the audio */
13
+ voiceId: string;
14
+ /** True if this is the default voice */
15
+ isDefaultVoice: boolean;
16
+ v: number;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ segments: {
20
+ favouriteQuote: Segment;
21
+ inANutshell: Segment;
22
+ introduction: Segment;
23
+ insights: Segment[];
24
+ conclusion: Segment;
25
+ overview: Segment;
26
+ shareableOverview: Segment;
27
+ hereAreTheInsights: Segment;
28
+ putInAction?: Segment;
29
+ };
30
+ }
31
+ //# sourceMappingURL=hack-with-voice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hack-with-voice.d.ts","sourceRoot":"","sources":["../../../src/hack/hack-with-voice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,0JAA0J;IAC1J,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,cAAc,EAAE,OAAO,CAAC;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE;QACN,cAAc,EAAE,OAAO,CAAC;QACxB,WAAW,EAAE,OAAO,CAAC;QACrB,YAAY,EAAE,OAAO,CAAC;QACtB,QAAQ,EAAE,OAAO,EAAE,CAAC;QACpB,UAAU,EAAE,OAAO,CAAC;QAEpB,QAAQ,EAAE,OAAO,CAAC;QAClB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,kBAAkB,EAAE,OAAO,CAAC;QAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;KACzB,CAAA;CACJ"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=hack-with-voice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hack-with-voice.js","sourceRoot":"","sources":["../../../src/hack/hack-with-voice.ts"],"names":[],"mappings":""}
@@ -0,0 +1,101 @@
1
+ import { ExtractedSubject } from './extracted-subject';
2
+ export interface Hack {
3
+ /** The unique id of the hack. */
4
+ id: string;
5
+ /** The locale (language and region) of the hack e.g. fr-FR. Use @uptime.app/localisation-contracts Mandatory property since 12/01/2023. */
6
+ locale: string;
7
+ /** The id of the hack in its original locale. Mandatory property since 12/01/2023. */
8
+ baseLocaleHackId: string;
9
+ v: number;
10
+ createdAt: string;
11
+ updatedAt: string;
12
+ owner: string;
13
+ sourceId?: string;
14
+ title: string;
15
+ themeId: string;
16
+ /** introduced Oct 2023 **/
17
+ draftHackId: string;
18
+ draftHackVersion: number;
19
+ isHidden?: boolean;
20
+ editorialTags?: string[];
21
+ coverUrl?: string;
22
+ notifications?: {
23
+ aiGeneratedText?: string;
24
+ humanCuratedText?: string;
25
+ };
26
+ segments: {
27
+ favouriteQuote: {
28
+ id: string;
29
+ /** added 04/2023 */
30
+ v?: number;
31
+ };
32
+ inANutshell: {
33
+ id: string;
34
+ /** added 04/2023 */
35
+ v?: number;
36
+ };
37
+ introduction: {
38
+ id: string;
39
+ /** added 04/2023 */
40
+ v?: number;
41
+ };
42
+ insights: {
43
+ id: string;
44
+ /** added 04/2023 */
45
+ v?: number;
46
+ }[];
47
+ conclusion: {
48
+ id: string;
49
+ /** added 04/2023 */
50
+ v?: number;
51
+ };
52
+ overview: {
53
+ id: string;
54
+ /** added 04/2023 */
55
+ v?: number;
56
+ };
57
+ shareableOverview: {
58
+ id: string;
59
+ /** added 04/2023 */
60
+ v?: number;
61
+ };
62
+ hereAreTheInsights: {
63
+ id: string;
64
+ /** added 04/2023 */
65
+ v?: number;
66
+ };
67
+ putInAction?: {
68
+ id: string;
69
+ /** added 04/2023 */
70
+ v?: number;
71
+ };
72
+ };
73
+ affiliate?: HackAffiliate;
74
+ topics: HackTopic[];
75
+ contributors?: HackContributor[];
76
+ type: HackType;
77
+ sourceData?: HackSourceData;
78
+ externalLink?: HackExternalLink;
79
+ /** added Mar 2024 */
80
+ subjects?: ExtractedSubject[];
81
+ }
82
+ export interface HackContributor {
83
+ name: string;
84
+ }
85
+ export interface HackTopic {
86
+ name: string;
87
+ }
88
+ export interface HackAffiliate {
89
+ url: string;
90
+ name: string;
91
+ }
92
+ export declare type HackType = 'book' | 'course' | 'documentary' | 'podcast' | 'original';
93
+ export interface HackSourceData {
94
+ episodeTitle?: string;
95
+ releaseDate?: string;
96
+ }
97
+ export interface HackExternalLink {
98
+ url: string;
99
+ type: 'Website' | 'Book' | 'Course' | 'Podcast' | 'Video' | 'Other';
100
+ }
101
+ //# sourceMappingURL=hack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hack.d.ts","sourceRoot":"","sources":["../../../src/hack/hack.ts"],"names":[],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"hack.js","sourceRoot":"","sources":["../../src/hack.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"hack.js","sourceRoot":"","sources":["../../../src/hack/hack.ts"],"names":[],"mappings":""}
@@ -1,2 +1,20 @@
1
- export * from './hack';
1
+ export * from './hack/extracted-subject';
2
+ export * from './hack/hack';
3
+ export * from './hack/hack-with-voice';
4
+ export * from './hack/hack-events';
5
+ export * from './hack/hack-with-voice-events';
6
+ export * from './localisation/live-locales';
7
+ export * from './localisation/locale-language';
8
+ export * from './localisation/supported-languages';
9
+ export * from './localisation/supported-locales';
10
+ export * from './pending-hack/pending-hack';
11
+ export * from './pending-hack/pending-hack-events';
12
+ export * from './pending-hack/pending-hack-with-voice';
13
+ export * from './pending-hack/pending-hack-with-voice-events';
14
+ export * from './segment/segment-with-voice';
15
+ export * from './segment/segment-commands';
16
+ export * from './segment/segment';
17
+ export * from './text-to-speech/create-speech-commands';
18
+ export * from './text-to-speech/speech-created-events';
19
+ export * from './text-to-speech/text-segment';
2
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
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,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,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -14,5 +14,23 @@ 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("./hack"), exports);
17
+ __exportStar(require("./hack/extracted-subject"), exports);
18
+ __exportStar(require("./hack/hack"), exports);
19
+ __exportStar(require("./hack/hack-with-voice"), exports);
20
+ __exportStar(require("./hack/hack-events"), exports);
21
+ __exportStar(require("./hack/hack-with-voice-events"), exports);
22
+ __exportStar(require("./localisation/live-locales"), exports);
23
+ __exportStar(require("./localisation/locale-language"), exports);
24
+ __exportStar(require("./localisation/supported-languages"), exports);
25
+ __exportStar(require("./localisation/supported-locales"), exports);
26
+ __exportStar(require("./pending-hack/pending-hack"), exports);
27
+ __exportStar(require("./pending-hack/pending-hack-events"), exports);
28
+ __exportStar(require("./pending-hack/pending-hack-with-voice"), exports);
29
+ __exportStar(require("./pending-hack/pending-hack-with-voice-events"), exports);
30
+ __exportStar(require("./segment/segment-with-voice"), exports);
31
+ __exportStar(require("./segment/segment-commands"), exports);
32
+ __exportStar(require("./segment/segment"), exports);
33
+ __exportStar(require("./text-to-speech/create-speech-commands"), exports);
34
+ __exportStar(require("./text-to-speech/speech-created-events"), exports);
35
+ __exportStar(require("./text-to-speech/text-segment"), exports);
18
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,8CAA4B;AAC5B,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAE9C,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"}
@@ -0,0 +1,8 @@
1
+ import { SupportedLocale } from './supported-locales';
2
+ /**
3
+ * All locale codes that are live and in use in the app
4
+ */
5
+ export declare function allLiveLocaleCodes(): SupportedLocale[];
6
+ export declare function localeCodeIsLive(localeCode: string): boolean;
7
+ export declare function liveLocaleFrom(localeCode?: string): SupportedLocale;
8
+ //# sourceMappingURL=live-locales.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"live-locales.d.ts","sourceRoot":"","sources":["../../../src/localisation/live-locales.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtE;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,EAAE,CAetD;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,WAElD;AAED,wBAAgB,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,eAAe,CAMnE"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.liveLocaleFrom = exports.localeCodeIsLive = exports.allLiveLocaleCodes = void 0;
4
+ const supported_locales_1 = require("./supported-locales");
5
+ /**
6
+ * All locale codes that are live and in use in the app
7
+ */
8
+ function allLiveLocaleCodes() {
9
+ return [
10
+ supported_locales_1.SupportedLocale.enGB,
11
+ supported_locales_1.SupportedLocale.enUS,
12
+ supported_locales_1.SupportedLocale.ptBR,
13
+ supported_locales_1.SupportedLocale.es,
14
+ supported_locales_1.SupportedLocale.frFR,
15
+ supported_locales_1.SupportedLocale.itIT,
16
+ supported_locales_1.SupportedLocale.nlNL,
17
+ supported_locales_1.SupportedLocale.deDE,
18
+ supported_locales_1.SupportedLocale.frCA,
19
+ supported_locales_1.SupportedLocale.plPL,
20
+ supported_locales_1.SupportedLocale.svSE,
21
+ supported_locales_1.SupportedLocale.trTR
22
+ ];
23
+ }
24
+ exports.allLiveLocaleCodes = allLiveLocaleCodes;
25
+ function localeCodeIsLive(localeCode) {
26
+ return allLiveLocaleCodes().includes(localeCode);
27
+ }
28
+ exports.localeCodeIsLive = localeCodeIsLive;
29
+ function liveLocaleFrom(localeCode) {
30
+ const locale = allLiveLocaleCodes().find(liveLocale => liveLocale == localeCode);
31
+ if (!locale) {
32
+ return supported_locales_1.DEFAULT_LOCALE;
33
+ }
34
+ return locale;
35
+ }
36
+ exports.liveLocaleFrom = liveLocaleFrom;
37
+ //# sourceMappingURL=live-locales.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"live-locales.js","sourceRoot":"","sources":["../../../src/localisation/live-locales.ts"],"names":[],"mappings":";;;AAAA,2DAAsE;AAEtE;;GAEG;AACH,SAAgB,kBAAkB;IAC9B,OAAO;QACH,mCAAe,CAAC,IAAI;QACpB,mCAAe,CAAC,IAAI;QACpB,mCAAe,CAAC,IAAI;QACpB,mCAAe,CAAC,EAAE;QAClB,mCAAe,CAAC,IAAI;QACpB,mCAAe,CAAC,IAAI;QACpB,mCAAe,CAAC,IAAI;QACpB,mCAAe,CAAC,IAAI;QACpB,mCAAe,CAAC,IAAI;QACpB,mCAAe,CAAC,IAAI;QACpB,mCAAe,CAAC,IAAI;QACpB,mCAAe,CAAC,IAAI;KACvB,CAAC;AACN,CAAC;AAfD,gDAeC;AAED,SAAgB,gBAAgB,CAAC,UAAkB;IAC/C,OAAO,kBAAkB,EAAE,CAAC,QAAQ,CAAC,UAA6B,CAAC,CAAC;AACxE,CAAC;AAFD,4CAEC;AAED,SAAgB,cAAc,CAAC,UAAmB;IAC9C,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,IAAK,UAAU,CAAC,CAAC;IAClF,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,OAAO,kCAAc,CAAC;IAC1B,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAND,wCAMC"}
@@ -0,0 +1,2 @@
1
+ export declare function languageOf(locale: string): string;
2
+ //# sourceMappingURL=locale-language.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale-language.d.ts","sourceRoot":"","sources":["../../../src/localisation/locale-language.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAGjD"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.languageOf = void 0;
4
+ function languageOf(locale) {
5
+ if (!locale)
6
+ return ''; // temp: defend against an undefined locale
7
+ return locale.split('-')[0];
8
+ }
9
+ exports.languageOf = languageOf;
10
+ //# sourceMappingURL=locale-language.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locale-language.js","sourceRoot":"","sources":["../../../src/localisation/locale-language.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CAAC,MAAc;IACrC,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC,CAAC,2CAA2C;IACnE,OAAO,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAChC,CAAC;AAHD,gCAGC"}
@@ -0,0 +1,4 @@
1
+ export declare function allSupportedLanguageCodes(): string[];
2
+ export declare const ENGLISH_LANGUAGE = "en";
3
+ export declare const DEFAULT_LANGUAGE = "en";
4
+ //# sourceMappingURL=supported-languages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supported-languages.d.ts","sourceRoot":"","sources":["../../../src/localisation/supported-languages.ts"],"names":[],"mappings":"AAEA,wBAAgB,yBAAyB,IAAI,MAAM,EAAE,CAKpD;AAED,eAAO,MAAM,gBAAgB,OAAO,CAAC;AACrC,eAAO,MAAM,gBAAgB,OAAmB,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_LANGUAGE = exports.ENGLISH_LANGUAGE = exports.allSupportedLanguageCodes = void 0;
4
+ const supported_locales_1 = require("./supported-locales");
5
+ function allSupportedLanguageCodes() {
6
+ const languageCodes = (0, supported_locales_1.allSupportedLocaleCodes)().map(locale => locale.split('-')[0]);
7
+ const uniqueLanguageCodes = [...new Set(languageCodes)];
8
+ return uniqueLanguageCodes;
9
+ }
10
+ exports.allSupportedLanguageCodes = allSupportedLanguageCodes;
11
+ exports.ENGLISH_LANGUAGE = 'en';
12
+ exports.DEFAULT_LANGUAGE = exports.ENGLISH_LANGUAGE;
13
+ //# sourceMappingURL=supported-languages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supported-languages.js","sourceRoot":"","sources":["../../../src/localisation/supported-languages.ts"],"names":[],"mappings":";;;AAAA,2DAA8D;AAE9D,SAAgB,yBAAyB;IACrC,MAAM,aAAa,GAAG,IAAA,2CAAuB,GAAE,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpF,MAAM,mBAAmB,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC;IAExD,OAAO,mBAAmB,CAAC;AAC/B,CAAC;AALD,8DAKC;AAEY,QAAA,gBAAgB,GAAG,IAAI,CAAC;AACxB,QAAA,gBAAgB,GAAG,wBAAgB,CAAC"}
@@ -0,0 +1,38 @@
1
+ export declare 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
+ * All supported locale codes. Use allLiveLocaleCodes() instead when checking for locale codes supported by the app
35
+ */
36
+ export declare function allSupportedLocaleCodes(): string[];
37
+ export declare const DEFAULT_LOCALE = SupportedLocale.enUS;
38
+ //# sourceMappingURL=supported-locales.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supported-locales.d.ts","sourceRoot":"","sources":["../../../src/localisation/supported-locales.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACvB,+BAA+B;IAC/B,IAAI,UAAU;IACd,8BAA8B;IAC9B,IAAI,UAAU;IACd,0BAA0B;IAC1B,IAAI,UAAU;IACd,8BAA8B;IAC9B,EAAE,OAAO;IACT,sBAAsB;IACtB,IAAI,UAAU;IACd,cAAc;IACd,IAAI,UAAU;IACd,YAAY;IACZ,IAAI,UAAU;IACd,aAAa;IACb,IAAI,UAAU;IACd,aAAa;IACb,IAAI,UAAU;IACd,cAAc;IACd,IAAI,UAAU;IACd,cAAc;IACd,IAAI,UAAU;IACd,sBAAsB;IACtB,IAAI,UAAU;IACd,0BAA0B;IAC1B,IAAI,UAAU;IACd,yBAAyB;IACzB,IAAI,UAAU;IACd,sBAAsB;IACtB,IAAI,UAAU;CAEjB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,EAAE,CAElD;AAED,eAAO,MAAM,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_LOCALE = exports.allSupportedLocaleCodes = exports.SupportedLocale = void 0;
4
+ var SupportedLocale;
5
+ (function (SupportedLocale) {
6
+ /** English (United Kingdom) */
7
+ SupportedLocale["enGB"] = "en-GB";
8
+ /** English (United States) */
9
+ SupportedLocale["enUS"] = "en-US";
10
+ /** Portuguese (Brazil) */
11
+ SupportedLocale["ptBR"] = "pt-BR";
12
+ /** Spanish (International) */
13
+ SupportedLocale["es"] = "es";
14
+ /** French (France) */
15
+ SupportedLocale["frFR"] = "fr-FR";
16
+ /** Italian */
17
+ SupportedLocale["itIT"] = "it-IT";
18
+ /** Dutch */
19
+ SupportedLocale["nlNL"] = "nl-NL";
20
+ /** German */
21
+ SupportedLocale["deDE"] = "de-DE";
22
+ /** Polish */
23
+ SupportedLocale["plPL"] = "pl-PL";
24
+ /** Swedish */
25
+ SupportedLocale["svSE"] = "sv-SE";
26
+ /** Turkish */
27
+ SupportedLocale["trTR"] = "tr-TR";
28
+ /** Canadian French */
29
+ SupportedLocale["frCA"] = "fr-CA";
30
+ /** Traditional Chinese */
31
+ SupportedLocale["zhTW"] = "zh-TW";
32
+ /** Simplified Chinese */
33
+ SupportedLocale["zhCN"] = "zh-CN";
34
+ /** Malaysian Malay */
35
+ SupportedLocale["msMY"] = "ms-MY";
36
+ })(SupportedLocale || (exports.SupportedLocale = SupportedLocale = {}));
37
+ /**
38
+ * All supported locale codes. Use allLiveLocaleCodes() instead when checking for locale codes supported by the app
39
+ */
40
+ function allSupportedLocaleCodes() {
41
+ return Object.values(SupportedLocale);
42
+ }
43
+ exports.allSupportedLocaleCodes = allSupportedLocaleCodes;
44
+ exports.DEFAULT_LOCALE = SupportedLocale.enUS;
45
+ //# sourceMappingURL=supported-locales.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supported-locales.js","sourceRoot":"","sources":["../../../src/localisation/supported-locales.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAgCX;AAhCD,WAAY,eAAe;IACvB,+BAA+B;IAC/B,iCAAc,CAAA;IACd,8BAA8B;IAC9B,iCAAc,CAAA;IACd,0BAA0B;IAC1B,iCAAc,CAAA;IACd,8BAA8B;IAC9B,4BAAS,CAAA;IACT,sBAAsB;IACtB,iCAAc,CAAA;IACd,cAAc;IACd,iCAAc,CAAA;IACd,YAAY;IACZ,iCAAc,CAAA;IACd,aAAa;IACb,iCAAc,CAAA;IACd,aAAa;IACb,iCAAc,CAAA;IACd,cAAc;IACd,iCAAc,CAAA;IACd,cAAc;IACd,iCAAc,CAAA;IACd,sBAAsB;IACtB,iCAAc,CAAA;IACd,0BAA0B;IAC1B,iCAAc,CAAA;IACd,yBAAyB;IACzB,iCAAc,CAAA;IACd,sBAAsB;IACtB,iCAAc,CAAA;AAElB,CAAC,EAhCW,eAAe,+BAAf,eAAe,QAgC1B;AAED;;GAEG;AACH,SAAgB,uBAAuB;IACnC,OAAO,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAC1C,CAAC;AAFD,0DAEC;AAEY,QAAA,cAAc,GAAG,eAAe,CAAC,IAAI,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { PendingHack } from './pending-hack';
2
+ export interface PendingHackCreatedEvent {
3
+ id: string;
4
+ type: 'PendingHackCreated';
5
+ payload: PendingHack;
6
+ }
7
+ export interface PendingHackUpdatedEvent {
8
+ id: string;
9
+ type: 'PendingHackUpdated';
10
+ payload: PendingHack;
11
+ }
12
+ export interface PendingHackDeletedEvent {
13
+ id: string;
14
+ type: 'PendingHackDeleted';
15
+ payload: PendingHack;
16
+ }
17
+ export type PendingHackChangedEvent = PendingHackCreatedEvent | PendingHackUpdatedEvent | PendingHackDeletedEvent;
18
+ //# sourceMappingURL=pending-hack-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-hack-events.d.ts","sourceRoot":"","sources":["../../../src/pending-hack/pending-hack-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;CACxB;AAED,MAAM,MAAM,uBAAuB,GAAG,uBAAuB,GAAG,uBAAuB,GAAG,uBAAuB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pending-hack-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-hack-events.js","sourceRoot":"","sources":["../../../src/pending-hack/pending-hack-events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { PendingHackWithVoice } from './pending-hack-with-voice';
2
+ export interface PendingHackWithVoiceCreatedEvent {
3
+ id: string;
4
+ type: 'PendingHackWithVoiceCreated';
5
+ payload: PendingHackWithVoice;
6
+ }
7
+ export interface PendingHackWithVoiceUpdatedEvent {
8
+ id: string;
9
+ type: 'PendingHackWithVoiceUpdated';
10
+ payload: PendingHackWithVoice;
11
+ }
12
+ export interface PendingHackWithVoiceDeletedEvent {
13
+ id: string;
14
+ type: 'PendingHackWithVoiceDeleted';
15
+ payload: PendingHackWithVoice;
16
+ }
17
+ export type PendingHackWithVoiceChangedEvent = PendingHackWithVoiceCreatedEvent | PendingHackWithVoiceUpdatedEvent | PendingHackWithVoiceDeletedEvent;
18
+ //# sourceMappingURL=pending-hack-with-voice-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-hack-with-voice-events.d.ts","sourceRoot":"","sources":["../../../src/pending-hack/pending-hack-with-voice-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,WAAW,gCAAgC;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE,oBAAoB,CAAC;CACjC;AAED,MAAM,WAAW,gCAAgC;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE,oBAAoB,CAAC;CACjC;AAED,MAAM,WAAW,gCAAgC;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE,oBAAoB,CAAC;CACjC;AAED,MAAM,MAAM,gCAAgC,GAAG,gCAAgC,GAAG,gCAAgC,GAAG,gCAAgC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pending-hack-with-voice-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-hack-with-voice-events.js","sourceRoot":"","sources":["../../../src/pending-hack/pending-hack-with-voice-events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ import { Segment } from '../segment/segment';
2
+ import { CompletePendingHack, PendingHack } from './pending-hack';
3
+ export interface PendingHackWithVoice {
4
+ id: string;
5
+ v: number;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ voiceId: string;
9
+ isDefaultVoice: boolean;
10
+ hackId: string;
11
+ baseLocaleHackId: string;
12
+ segments: PendingHack['segments'];
13
+ }
14
+ export interface CompletePendingHackWithVoice extends PendingHackWithVoice {
15
+ segments: CompletePendingHack['segments'];
16
+ }
17
+ export type CompletePendingHackWithVoiceWithPutInAction = CompletePendingHackWithVoice & {
18
+ segments: {
19
+ putInAction: Segment;
20
+ };
21
+ };
22
+ //# sourceMappingURL=pending-hack-with-voice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-hack-with-voice.d.ts","sourceRoot":"","sources":["../../../src/pending-hack/pending-hack-with-voice.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElE,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,4BAA6B,SAAQ,oBAAoB;IACtE,QAAQ,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAC;CAC7C;AAED,MAAM,MAAM,2CAA2C,GAAG,4BAA4B,GAAG;IACrF,QAAQ,EAAE;QACN,WAAW,EAAE,OAAO,CAAC;KACxB,CAAA;CACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pending-hack-with-voice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-hack-with-voice.js","sourceRoot":"","sources":["../../../src/pending-hack/pending-hack-with-voice.ts"],"names":[],"mappings":""}