@xapp/ovai-lib 1.18.112 → 1.18.114

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 (111) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/Contentable.d.ts +17 -0
  3. package/lib/Contentable.js +3 -0
  4. package/lib/Contentable.js.map +1 -0
  5. package/lib/Handler/AudioHandler/Data.d.ts +4 -0
  6. package/lib/Handler/AudioHandler/Data.js +3 -0
  7. package/lib/Handler/AudioHandler/Data.js.map +1 -0
  8. package/lib/Handler/AudioHandler/Guards.d.ts +27 -0
  9. package/lib/Handler/AudioHandler/Guards.js +55 -0
  10. package/lib/Handler/AudioHandler/Guards.js.map +1 -0
  11. package/lib/Handler/AudioHandler/Props.d.ts +5 -0
  12. package/lib/Handler/AudioHandler/Props.js +3 -0
  13. package/lib/Handler/AudioHandler/Props.js.map +1 -0
  14. package/lib/Handler/AudioHandler/Storage.d.ts +12 -0
  15. package/lib/Handler/AudioHandler/Storage.js +3 -0
  16. package/lib/Handler/AudioHandler/Storage.js.map +1 -0
  17. package/lib/Handler/AudioHandler/index.d.ts +5 -0
  18. package/lib/Handler/AudioHandler/index.js +7 -0
  19. package/lib/Handler/AudioHandler/index.js.map +1 -0
  20. package/lib/Handler/Constants.d.ts +10 -0
  21. package/lib/Handler/Constants.js +11 -0
  22. package/lib/Handler/Constants.js.map +1 -0
  23. package/lib/Handler/EmailHandler/Data.d.ts +21 -0
  24. package/lib/Handler/EmailHandler/Data.js +3 -0
  25. package/lib/Handler/EmailHandler/Data.js.map +1 -0
  26. package/lib/Handler/EmailHandler/Storage.d.ts +5 -0
  27. package/lib/Handler/EmailHandler/Storage.js +3 -0
  28. package/lib/Handler/EmailHandler/Storage.js.map +1 -0
  29. package/lib/Handler/EmailHandler/index.d.ts +3 -0
  30. package/lib/Handler/EmailHandler/index.js +3 -0
  31. package/lib/Handler/EmailHandler/index.js.map +1 -0
  32. package/lib/Handler/MultimediaHandler/Data.d.ts +38 -0
  33. package/lib/Handler/MultimediaHandler/Data.js +3 -0
  34. package/lib/Handler/MultimediaHandler/Data.js.map +1 -0
  35. package/lib/Handler/MultimediaHandler/Storage.d.ts +4 -0
  36. package/lib/Handler/MultimediaHandler/Storage.js +3 -0
  37. package/lib/Handler/MultimediaHandler/Storage.js.map +1 -0
  38. package/lib/Handler/MultimediaHandler/index.d.ts +3 -0
  39. package/lib/Handler/MultimediaHandler/index.js +3 -0
  40. package/lib/Handler/MultimediaHandler/index.js.map +1 -0
  41. package/lib/Handler/PlayLiveStreamHandler/Data.d.ts +31 -0
  42. package/lib/Handler/PlayLiveStreamHandler/Data.js +3 -0
  43. package/lib/Handler/PlayLiveStreamHandler/Data.js.map +1 -0
  44. package/lib/Handler/PlayLiveStreamHandler/index.d.ts +2 -0
  45. package/lib/Handler/PlayLiveStreamHandler/index.js +3 -0
  46. package/lib/Handler/PlayLiveStreamHandler/index.js.map +1 -0
  47. package/lib/Handler/PlayMediaHandler/Data.d.ts +7 -0
  48. package/lib/Handler/PlayMediaHandler/Data.js +3 -0
  49. package/lib/Handler/PlayMediaHandler/Data.js.map +1 -0
  50. package/lib/Handler/PlayMediaHandler/index.d.ts +2 -0
  51. package/lib/Handler/PlayMediaHandler/index.js +3 -0
  52. package/lib/Handler/PlayMediaHandler/index.js.map +1 -0
  53. package/lib/Handler/PlayPodcastHandler/Data.d.ts +111 -0
  54. package/lib/Handler/PlayPodcastHandler/Data.js +3 -0
  55. package/lib/Handler/PlayPodcastHandler/Data.js.map +1 -0
  56. package/lib/Handler/PlayPodcastHandler/Guards.d.ts +8 -0
  57. package/lib/Handler/PlayPodcastHandler/Guards.js +12 -0
  58. package/lib/Handler/PlayPodcastHandler/Guards.js.map +1 -0
  59. package/lib/Handler/PlayPodcastHandler/Props.d.ts +11 -0
  60. package/lib/Handler/PlayPodcastHandler/Props.js +3 -0
  61. package/lib/Handler/PlayPodcastHandler/Props.js.map +1 -0
  62. package/lib/Handler/PlayPodcastHandler/Storage.d.ts +31 -0
  63. package/lib/Handler/PlayPodcastHandler/Storage.js +3 -0
  64. package/lib/Handler/PlayPodcastHandler/Storage.js.map +1 -0
  65. package/lib/Handler/PlayPodcastHandler/index.d.ts +5 -0
  66. package/lib/Handler/PlayPodcastHandler/index.js +7 -0
  67. package/lib/Handler/PlayPodcastHandler/index.js.map +1 -0
  68. package/lib/Handler/SmsHandler/Data.d.ts +13 -0
  69. package/lib/Handler/SmsHandler/Data.js +3 -0
  70. package/lib/Handler/SmsHandler/Data.js.map +1 -0
  71. package/lib/Handler/SmsHandler/Storage.d.ts +6 -0
  72. package/lib/Handler/SmsHandler/Storage.js +3 -0
  73. package/lib/Handler/SmsHandler/Storage.js.map +1 -0
  74. package/lib/Handler/SmsHandler/index.d.ts +3 -0
  75. package/lib/Handler/SmsHandler/index.js +3 -0
  76. package/lib/Handler/SmsHandler/index.js.map +1 -0
  77. package/lib/Handler/SocialRadioHandler/Data.d.ts +33 -0
  78. package/lib/Handler/SocialRadioHandler/Data.js +3 -0
  79. package/lib/Handler/SocialRadioHandler/Data.js.map +1 -0
  80. package/lib/Handler/SocialRadioHandler/index.d.ts +2 -0
  81. package/lib/Handler/SocialRadioHandler/index.js +3 -0
  82. package/lib/Handler/SocialRadioHandler/index.js.map +1 -0
  83. package/lib/Handler/Types.d.ts +10 -0
  84. package/lib/Handler/Types.js +4 -0
  85. package/lib/Handler/Types.js.map +1 -0
  86. package/lib/Handler/index.d.ts +11 -0
  87. package/lib/Handler/index.js +10 -0
  88. package/lib/Handler/index.js.map +1 -0
  89. package/lib/OVAIApp.d.ts +19 -1
  90. package/lib/Organization/Organization.d.ts +135 -0
  91. package/lib/Organization/Organization.js +3 -0
  92. package/lib/Organization/Organization.js.map +1 -0
  93. package/lib/Organization/index.d.ts +2 -0
  94. package/lib/Organization/index.js +3 -0
  95. package/lib/Organization/index.js.map +1 -0
  96. package/lib/Template/Template.d.ts +13 -0
  97. package/lib/Template/Template.js +3 -0
  98. package/lib/Template/Template.js.map +1 -0
  99. package/lib/Template/Types.d.ts +9 -0
  100. package/lib/Template/Types.js +3 -0
  101. package/lib/Template/Types.js.map +1 -0
  102. package/lib/Template/index.d.ts +3 -0
  103. package/lib/Template/index.js +3 -0
  104. package/lib/Template/index.js.map +1 -0
  105. package/lib/index.d.ts +5 -0
  106. package/lib/index.js +2 -0
  107. package/lib/index.js.map +1 -1
  108. package/lib/isContentable.d.ts +6 -0
  109. package/lib/isContentable.js +10 -0
  110. package/lib/isContentable.js.map +1 -0
  111. package/package.json +9 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.18.114](https://github.com/XappMedia/stentor-core/compare/v1.18.113...v1.18.114) (2020-03-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Decoupling handler for Client ([#1608](https://github.com/XappMedia/stentor-core/issues/1608)) ([2176a07](https://github.com/XappMedia/stentor-core/commit/2176a0763d184d08a208b4f5eec19c240c19f2fc))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.18.112](https://github.com/XappMedia/stentor-core/compare/v1.18.111...v1.18.112) (2020-03-19)
7
18
 
8
19
 
@@ -0,0 +1,17 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ /**
3
+ * Interface that can be applied to an object if it has content associated with it.
4
+ *
5
+ * @export
6
+ * @interface Contentable
7
+ */
8
+ export interface Contentable {
9
+ /**
10
+ * The key of the content
11
+ *
12
+ * @type {string}
13
+ * @memberof Contentable
14
+ */
15
+ content: string;
16
+ }
17
+ export declare type Contented<T> = T & Contentable;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Contentable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Contentable.js","sourceRoot":"","sources":["../src/Contentable.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { Data } from "stentor-models";
3
+ export interface AudioData extends Data {
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/AudioHandler/Data.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import { Handler, Intent, Storage } from "stentor-models";
2
+ import { AudioHandlerType } from "../Types";
3
+ import { AudioStorage } from "./Storage";
4
+ /**
5
+ * Determine if the Storage object is AudioStorage
6
+ *
7
+ * @export
8
+ * @param {Storage} storage
9
+ * @returns {storage is AudioStorage}
10
+ */
11
+ export declare function isAudioStorage(storage: Storage): storage is AudioStorage;
12
+ /**
13
+ * Determines if the handler type is for an AudioHandler
14
+ *
15
+ * @export
16
+ * @param {HandlerType} type
17
+ * @returns {type is AudioHandlerType}
18
+ */
19
+ export declare function isAudioHandlerType(type: string): type is AudioHandlerType;
20
+ /**
21
+ * Determines if the array of handlers have an AudioHandler type.
22
+ *
23
+ * @export
24
+ * @param {((Intent | Handler)[])} data
25
+ * @returns
26
+ */
27
+ export declare function hasAudioPlayerHandlerProps(data: (Intent | Handler)[]): boolean;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*! Copyright (c) 2019, XAPPmedia */
4
+ const stentor_guards_1 = require("stentor-guards");
5
+ /**
6
+ * Determine if the Storage object is AudioStorage
7
+ *
8
+ * @export
9
+ * @param {Storage} storage
10
+ * @returns {storage is AudioStorage}
11
+ */
12
+ function isAudioStorage(storage) {
13
+ return storage.audioManager !== undefined;
14
+ }
15
+ exports.isAudioStorage = isAudioStorage;
16
+ /**
17
+ * Determines if the handler type is for an AudioHandler
18
+ *
19
+ * @export
20
+ * @param {HandlerType} type
21
+ * @returns {type is AudioHandlerType}
22
+ */
23
+ function isAudioHandlerType(type) {
24
+ switch (type) {
25
+ // TODO: Had an error where i played around with this to figure out, need to fix it, put it back carefully
26
+ case "MultimediaHandlerType":
27
+ case "PlayMediaIntent":
28
+ case "PlayLiveStreamIntent":
29
+ case "PlayOnDemandIntent":
30
+ case "PlayPodcastIntent":
31
+ return true;
32
+ default:
33
+ return false;
34
+ }
35
+ }
36
+ exports.isAudioHandlerType = isAudioHandlerType;
37
+ /**
38
+ * Determines if the array of handlers have an AudioHandler type.
39
+ *
40
+ * @export
41
+ * @param {((Intent | Handler)[])} data
42
+ * @returns
43
+ */
44
+ function hasAudioPlayerHandlerProps(data) {
45
+ for (const handler of data) {
46
+ if (stentor_guards_1.isHandler(handler)) {
47
+ if (isAudioHandlerType(handler.type)) {
48
+ return true;
49
+ }
50
+ }
51
+ }
52
+ return false;
53
+ }
54
+ exports.hasAudioPlayerHandlerProps = hasAudioPlayerHandlerProps;
55
+ //# sourceMappingURL=Guards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Guards.js","sourceRoot":"","sources":["../../../src/Handler/AudioHandler/Guards.ts"],"names":[],"mappings":";;AAAA,oCAAoC;AACpC,mDAA2C;AAK3C;;;;;;GAMG;AACH,SAAgB,cAAc,CAAC,OAAgB;IAC3C,OAAsB,OAAQ,CAAC,YAAY,KAAK,SAAS,CAAC;AAC9D,CAAC;AAFD,wCAEC;AAED;;;;;;GAMG;AACH,SAAgB,kBAAkB,CAAC,IAAY;IAC3C,QAAQ,IAAI,EAAE;QACV,0GAA0G;QAC1G,KAAK,uBAAuB,CAAC;QAC7B,KAAK,iBAAiB,CAAC;QACvB,KAAK,sBAAsB,CAAC;QAC5B,KAAK,oBAAoB,CAAC;QAC1B,KAAK,mBAAmB;YACpB,OAAO,IAAI,CAAC;QAChB;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC;AAZD,gDAYC;AAED;;;;;;GAMG;AACH,SAAgB,0BAA0B,CAAC,IAA0B;IACjE,KAAK,MAAM,OAAO,IAAI,IAAI,EAAE;QACxB,IAAI,0BAAS,CAAC,OAAO,CAAC,EAAE;YACpB,IAAI,kBAAkB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;gBAClC,OAAO,IAAI,CAAC;aACf;SACJ;KACJ;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAVD,gEAUC"}
@@ -0,0 +1,5 @@
1
+ /*! Copyright (c) 2020, XAPPmedia */
2
+ import { Content, Handler } from "stentor-models";
3
+ import { AudioData } from "./Data";
4
+ export interface AudioHandlerProps<C extends Content = Content, D extends AudioData = AudioData> extends Handler<C, D> {
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Props.js","sourceRoot":"","sources":["../../../src/Handler/AudioHandler/Props.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { MediaManagerProps, OnDemandManagerProps, RSSFeedManagerProps, VideoLiveStreamManagerProps } from "@xapp/stentor-media-manager";
3
+ import { Storage } from "stentor-models";
4
+ export interface AudioStorage extends Storage {
5
+ /**
6
+ * Manages Audio Player State
7
+ *
8
+ * @type {(MediaManagerProps | RSSFeedManagerProps | OnDemandManagerProps)}
9
+ * @memberof AudioStorage
10
+ */
11
+ audioManager?: MediaManagerProps | RSSFeedManagerProps | OnDemandManagerProps | VideoLiveStreamManagerProps;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Storage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/Handler/AudioHandler/Storage.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /*! Copyright (c) 2020, XAPPmedia */
2
+ export * from "./Data";
3
+ export * from "./Guards";
4
+ export * from "./Props";
5
+ export * from "./Storage";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ function __export(m) {
3
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
+ }
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ __export(require("./Guards"));
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/AudioHandler/index.ts"],"names":[],"mappings":";;;;;AAEA,8BAAyB"}
@@ -0,0 +1,10 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { EmailHandlerType, LogicHandlerType, MultimediaHandlerType, PlayLivestreamHandlerType, PlayMediaHandlerType, PlayPodcastHandlerType, PlayOnDemandHandlerType, SmsHandlerType } from "./Types";
3
+ export declare const EMAIL_HANDLER_TYPE: EmailHandlerType;
4
+ export declare const LOGIC_HANDLER_TYPE: LogicHandlerType;
5
+ export declare const MULTIMEDIA_HANDLER_TYPE: MultimediaHandlerType;
6
+ export declare const PLAY_LIVE_STREAM_HANDLER_TYPE: PlayLivestreamHandlerType;
7
+ export declare const PLAY_MEDIA_HANDLER_TYPE: PlayMediaHandlerType;
8
+ export declare const PLAY_ON_DEMAND_HANDLER_TYPE: PlayOnDemandHandlerType;
9
+ export declare const PLAY_PODCAST_HANDLER_TYPE: PlayPodcastHandlerType;
10
+ export declare const SMS_HANDLER_TYPE: SmsHandlerType;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EMAIL_HANDLER_TYPE = "EmailHandlerType";
4
+ exports.LOGIC_HANDLER_TYPE = "LogicHandlerType";
5
+ exports.MULTIMEDIA_HANDLER_TYPE = "MultimediaHandlerType";
6
+ exports.PLAY_LIVE_STREAM_HANDLER_TYPE = "PlayLiveStreamIntent";
7
+ exports.PLAY_MEDIA_HANDLER_TYPE = "PlayMediaIntent";
8
+ exports.PLAY_ON_DEMAND_HANDLER_TYPE = "PlayOnDemandIntent";
9
+ exports.PLAY_PODCAST_HANDLER_TYPE = "PlayPodcastIntent";
10
+ exports.SMS_HANDLER_TYPE = "SmsHandlerType";
11
+ //# sourceMappingURL=Constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../src/Handler/Constants.ts"],"names":[],"mappings":";;AAYa,QAAA,kBAAkB,GAAqB,kBAAkB,CAAC;AAC1D,QAAA,kBAAkB,GAAqB,kBAAkB,CAAC;AAC1D,QAAA,uBAAuB,GAA0B,uBAAuB,CAAC;AACzE,QAAA,6BAA6B,GAA8B,sBAAsB,CAAC;AAClF,QAAA,uBAAuB,GAAyB,iBAAiB,CAAC;AAClE,QAAA,2BAA2B,GAA4B,oBAAoB,CAAC;AAC5E,QAAA,yBAAyB,GAA2B,mBAAmB,CAAC;AACxE,QAAA,gBAAgB,GAAmB,gBAAgB,CAAC"}
@@ -0,0 +1,21 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { Data, EmailDescription } from "stentor-models";
3
+ /**
4
+ * Data required for the EmailHandler
5
+ */
6
+ export interface EmailData extends Data {
7
+ emailTypeKey: string;
8
+ successContentKey: string;
9
+ failureContentKey: string;
10
+ /**
11
+ * Set to true if you only want to gather the email but not send
12
+ * one.
13
+ *
14
+ * @type {boolean}
15
+ * @memberof EmailData
16
+ */
17
+ solicitEmailOnly?: boolean;
18
+ emails: {
19
+ [emailType: string]: EmailDescription;
20
+ };
21
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/EmailHandler/Data.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { Storage } from "stentor-models";
3
+ export interface EmailStorage extends Storage {
4
+ unsuccessfulEmailSend?: boolean;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Storage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/Handler/EmailHandler/Storage.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ /*! Copyright (c) 2020, XAPPmedia */
2
+ export * from "./Data";
3
+ export * from "./Storage";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/EmailHandler/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { Multimedia } from "stentor-media";
3
+ import { AudioData } from "../AudioHandler";
4
+ export interface MultimediaData extends AudioData {
5
+ /**
6
+ * The media for the handler.
7
+ *
8
+ * @type {Multimedia[]}
9
+ * @memberof MultimediaData
10
+ */
11
+ multimedia: Multimedia[];
12
+ /**
13
+ * If the media is a playlist, this is a key to content that will be used
14
+ * if there are no more items in the playlist after a "next" request from the user.
15
+ *
16
+ * @type {string}
17
+ * @memberof MultimediaData
18
+ */
19
+ noMoreNextContent?: string;
20
+ /**
21
+ * If the media is a playlist, this is a key to content that will be used
22
+ * if there are no more items in the playlist after a "previous" request from the user.
23
+ *
24
+ * @type {string}
25
+ * @memberof MultimediaData
26
+ */
27
+ noMorePreviousContent?: string;
28
+ /**
29
+ * If set to true, it ignores the history for the media and starts over at a zero offset when it is revisited.
30
+ *
31
+ * The case where this could occur is if the media is skipped halfway through, then the user goes back to the media that
32
+ * was skipped at a later date. Instead of starting at the saved offset, it starts it over from the beginning.
33
+ *
34
+ * @type {boolean}
35
+ * @memberof MultimediaData
36
+ */
37
+ restartOnRevisit?: boolean;
38
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/MultimediaHandler/Data.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { AudioStorage } from "../AudioHandler";
3
+ export interface MultimediaStorage extends AudioStorage {
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Storage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/Handler/MultimediaHandler/Storage.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ /*! Copyright (c) 2020, XAPPmedia */
2
+ export * from "./Data";
3
+ export * from "./Storage";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/MultimediaHandler/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { AudioLiveStream, Response, Scheduled } from "stentor-models";
3
+ import { AudioData } from "../AudioHandler";
4
+ export interface PlayLiveStreamSlotData {
5
+ url: string;
6
+ responseData?: Response[];
7
+ }
8
+ export interface PlayLivestreamData extends AudioData {
9
+ /**
10
+ * The URL for the live stream.
11
+ *
12
+ * @deprecated
13
+ * @type {string}
14
+ * @memberof PlayLivestreamData
15
+ */
16
+ url?: string;
17
+ /**
18
+ * The livestream.
19
+ *
20
+ * @type {AudioLiveStream}
21
+ * @memberof PlayLivestreamData
22
+ */
23
+ source?: AudioLiveStream;
24
+ /**
25
+ * Playlist of possible live streams.
26
+ *
27
+ * @type {((AudioLiveStream | Scheduled<AudioLiveStream>)[])}
28
+ * @memberof PlayLivestreamData
29
+ */
30
+ playlist?: (AudioLiveStream | Scheduled<AudioLiveStream>)[];
31
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/PlayLiveStreamHandler/Data.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ /*! Copyright (c) 2020, XAPPmedia */
2
+ export * from "./Data";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/PlayLiveStreamHandler/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { PlayableMedia } from "stentor-models";
3
+ import { AudioData } from "../AudioHandler";
4
+ export interface PlayMediaData extends AudioData {
5
+ url?: string;
6
+ playlist?: PlayableMedia[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/PlayMediaHandler/Data.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ /*! Copyright (c) 2020, XAPPmedia */
2
+ export * from "./Data";
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/PlayMediaHandler/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,111 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { SimpleResponse } from "stentor-models";
3
+ import { AudioData } from "../AudioHandler";
4
+ export interface PlayPodcastSlotTypeValueData {
5
+ url: string;
6
+ responseData?: SimpleResponse[];
7
+ }
8
+ export interface StartAt {
9
+ id?: string;
10
+ token?: string;
11
+ offset?: number;
12
+ }
13
+ export interface PlayPodcastData extends AudioData {
14
+ /**
15
+ * The URL of the podcast RSS feed.
16
+ *
17
+ * Only used when you are playing a single podcast
18
+ *
19
+ * @type {string}
20
+ * @memberof PlayPodcastData
21
+ */
22
+ url?: string;
23
+ /**
24
+ * The token of the episode to start at.
25
+ *
26
+ * @type {string}
27
+ * @memberof PlayPodcastData
28
+ */
29
+ startAt?: string | StartAt;
30
+ /**
31
+ * Limit the playlist to a certain amount.
32
+ *
33
+ * This prevents users from getting more content in the feed
34
+ * that isn't necessarily relevant.
35
+ *
36
+ * @type {number}
37
+ * @memberof PlayPodcastData
38
+ */
39
+ onlyPlayLatest?: number;
40
+ /**
41
+ * Only play the list of provided IDs (guids).
42
+ *
43
+ * @type {string[]}
44
+ * @memberof PlayPodcastData
45
+ */
46
+ onlyPlay?: string[];
47
+ /**
48
+ * Switches the direction of "next" to go back in time
49
+ * instead of forward in time.
50
+ *
51
+ * @type {boolean}
52
+ * @memberof PlayPodcastData
53
+ */
54
+ nextIsOlder?: boolean;
55
+ /**
56
+ * Always play the latest episode if it is available, without
57
+ * asking the user.
58
+ *
59
+ * This is used for content that is categorized as replaceable,
60
+ * once a new one is out the old one is no longer relevant.
61
+ *
62
+ * @type {boolean}
63
+ * @memberof PlayPodcastData
64
+ */
65
+ alwaysPlayLatest?: boolean;
66
+ /**
67
+ * If a newer episode is available, offer to play it.
68
+ *
69
+ * @type {boolean}
70
+ * @memberof PlayPodcastData
71
+ */
72
+ offerToPlayLatest?: boolean;
73
+ /**
74
+ * When true, response output will not be played.
75
+ *
76
+ * @type {boolean}
77
+ * @memberof PlayPodcastData
78
+ */
79
+ suppressResponse?: boolean;
80
+ /**
81
+ * The key to find the templated response to use to formulate the
82
+ * segue between episodes.
83
+ *
84
+ * Available variables:
85
+ * VERB - Playing or Resuming
86
+ * episode.title
87
+ * episode.feedTitle
88
+ * episode.pubDate
89
+ *
90
+ * For example "${VERB} the episode from ${episode.pubDate}" will be
91
+ * translated to "Playing/Resuming the episode from July 19th, 1986"
92
+ * where the VERB is determined by if they have already started the
93
+ * episode previously.
94
+ *
95
+ * @type {string}
96
+ * @memberof PlayPodcastData
97
+ */
98
+ segueContentKey?: string;
99
+ /**
100
+ * The origin timezone of the podcast. Primarily used
101
+ * when reading off the published date in a time
102
+ * that makes sense to the listener.
103
+ *
104
+ * The string must use a proper timezone identifier.
105
+ *
106
+ * @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
107
+ * @type {string}
108
+ * @memberof PlayPodcastData
109
+ */
110
+ timezone?: string;
111
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/PlayPodcastHandler/Data.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /*! Copyright (c) 2019, XAPPmedia */
2
+ import { Handler, Intent } from "stentor-models";
3
+ import { PlayPodcastHandlerProps } from "./Props";
4
+ /**
5
+ * Determine if the props are for a PlayPodcastHandler
6
+ *
7
+ */
8
+ export declare function isPlayPodcastHandlerProps(props: Handler | Intent): props is PlayPodcastHandlerProps;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Constants_1 = require("../Constants");
4
+ /**
5
+ * Determine if the props are for a PlayPodcastHandler
6
+ *
7
+ */
8
+ function isPlayPodcastHandlerProps(props) {
9
+ return !!props && props.type === Constants_1.PLAY_PODCAST_HANDLER_TYPE;
10
+ }
11
+ exports.isPlayPodcastHandlerProps = isPlayPodcastHandlerProps;
12
+ //# sourceMappingURL=Guards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Guards.js","sourceRoot":"","sources":["../../../src/Handler/PlayPodcastHandler/Guards.ts"],"names":[],"mappings":";;AAEA,4CAAyD;AAGzD;;;GAGG;AACH,SAAgB,yBAAyB,CAAC,KAAuB;IAC7D,OAAO,CAAC,CAAC,KAAK,IAA8B,KAAM,CAAC,IAAI,KAAK,qCAAyB,CAAC;AAC1F,CAAC;AAFD,8DAEC"}
@@ -0,0 +1,11 @@
1
+ /*! Copyright (c) 2020, XAPPmedia */
2
+ import { SearchService } from "@xapp/stentor-service-search";
3
+ import { Content, SlotTypeMap } from "stentor-models";
4
+ import { AudioHandlerProps } from "../AudioHandler";
5
+ import { PlayPodcastHandlerType } from "../Types";
6
+ import { PlayPodcastData, PlayPodcastSlotTypeValueData } from "./Data";
7
+ export interface PlayPodcastHandlerProps extends AudioHandlerProps<Content, PlayPodcastData> {
8
+ type: PlayPodcastHandlerType;
9
+ slotTypes?: SlotTypeMap<PlayPodcastSlotTypeValueData>;
10
+ service?: SearchService;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Props.js","sourceRoot":"","sources":["../../../src/Handler/PlayPodcastHandler/Props.ts"],"names":[],"mappings":""}