@xapp/ovai-lib 1.31.41 → 1.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/lib/Handler/Constants.d.ts +1 -5
  3. package/lib/Handler/Constants.js +1 -5
  4. package/lib/Handler/Constants.js.map +1 -1
  5. package/lib/Handler/SocialRadioHandler/Data.d.ts +1 -1
  6. package/lib/Handler/Types.d.ts +0 -5
  7. package/lib/Handler/index.d.ts +0 -5
  8. package/lib/Handler/index.js +0 -5
  9. package/lib/Handler/index.js.map +1 -1
  10. package/lib/index.d.ts +0 -2
  11. package/lib/index.js +0 -2
  12. package/lib/index.js.map +1 -1
  13. package/package.json +8 -7
  14. package/lib/Contentable.d.ts +0 -17
  15. package/lib/Contentable.js +0 -3
  16. package/lib/Contentable.js.map +0 -1
  17. package/lib/Handler/AudioHandler/Data.d.ts +0 -4
  18. package/lib/Handler/AudioHandler/Data.js +0 -3
  19. package/lib/Handler/AudioHandler/Data.js.map +0 -1
  20. package/lib/Handler/AudioHandler/Guards.d.ts +0 -27
  21. package/lib/Handler/AudioHandler/Guards.js +0 -56
  22. package/lib/Handler/AudioHandler/Guards.js.map +0 -1
  23. package/lib/Handler/AudioHandler/Props.d.ts +0 -5
  24. package/lib/Handler/AudioHandler/Props.js +0 -3
  25. package/lib/Handler/AudioHandler/Props.js.map +0 -1
  26. package/lib/Handler/AudioHandler/Storage.d.ts +0 -12
  27. package/lib/Handler/AudioHandler/Storage.js +0 -3
  28. package/lib/Handler/AudioHandler/Storage.js.map +0 -1
  29. package/lib/Handler/AudioHandler/index.d.ts +0 -5
  30. package/lib/Handler/AudioHandler/index.js +0 -18
  31. package/lib/Handler/AudioHandler/index.js.map +0 -1
  32. package/lib/Handler/MultimediaHandler/Data.d.ts +0 -38
  33. package/lib/Handler/MultimediaHandler/Data.js +0 -3
  34. package/lib/Handler/MultimediaHandler/Data.js.map +0 -1
  35. package/lib/Handler/MultimediaHandler/Storage.d.ts +0 -4
  36. package/lib/Handler/MultimediaHandler/Storage.js +0 -3
  37. package/lib/Handler/MultimediaHandler/Storage.js.map +0 -1
  38. package/lib/Handler/MultimediaHandler/index.d.ts +0 -3
  39. package/lib/Handler/MultimediaHandler/index.js +0 -16
  40. package/lib/Handler/MultimediaHandler/index.js.map +0 -1
  41. package/lib/Handler/PlayLiveStreamHandler/Data.d.ts +0 -31
  42. package/lib/Handler/PlayLiveStreamHandler/Data.js +0 -3
  43. package/lib/Handler/PlayLiveStreamHandler/Data.js.map +0 -1
  44. package/lib/Handler/PlayLiveStreamHandler/index.d.ts +0 -2
  45. package/lib/Handler/PlayLiveStreamHandler/index.js +0 -15
  46. package/lib/Handler/PlayLiveStreamHandler/index.js.map +0 -1
  47. package/lib/Handler/PlayMediaHandler/Data.d.ts +0 -7
  48. package/lib/Handler/PlayMediaHandler/Data.js +0 -3
  49. package/lib/Handler/PlayMediaHandler/Data.js.map +0 -1
  50. package/lib/Handler/PlayMediaHandler/index.d.ts +0 -2
  51. package/lib/Handler/PlayMediaHandler/index.js +0 -15
  52. package/lib/Handler/PlayMediaHandler/index.js.map +0 -1
  53. package/lib/Handler/PlayPodcastHandler/Data.d.ts +0 -111
  54. package/lib/Handler/PlayPodcastHandler/Data.js +0 -3
  55. package/lib/Handler/PlayPodcastHandler/Data.js.map +0 -1
  56. package/lib/Handler/PlayPodcastHandler/Guards.d.ts +0 -8
  57. package/lib/Handler/PlayPodcastHandler/Guards.js +0 -13
  58. package/lib/Handler/PlayPodcastHandler/Guards.js.map +0 -1
  59. package/lib/Handler/PlayPodcastHandler/Props.d.ts +0 -11
  60. package/lib/Handler/PlayPodcastHandler/Props.js +0 -3
  61. package/lib/Handler/PlayPodcastHandler/Props.js.map +0 -1
  62. package/lib/Handler/PlayPodcastHandler/Storage.d.ts +0 -31
  63. package/lib/Handler/PlayPodcastHandler/Storage.js +0 -3
  64. package/lib/Handler/PlayPodcastHandler/Storage.js.map +0 -1
  65. package/lib/Handler/PlayPodcastHandler/index.d.ts +0 -5
  66. package/lib/Handler/PlayPodcastHandler/index.js +0 -18
  67. package/lib/Handler/PlayPodcastHandler/index.js.map +0 -1
  68. package/lib/isContentable.d.ts +0 -6
  69. package/lib/isContentable.js +0 -11
  70. package/lib/isContentable.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
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.32.2](https://github.com/XappMedia/stentor-core/compare/v1.32.1...v1.32.2) (2021-02-26)
7
+
8
+ **Note:** Version bump only for package @xapp/ovai-lib
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.32.1](https://github.com/XappMedia/stentor-core/compare/v1.32.0...v1.32.1) (2021-02-26)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **deps:** update stentor to v1.38.0 ([db61bf5](https://github.com/XappMedia/stentor-core/commit/db61bf52aceda38d72729662becc4257c66274cd))
20
+
21
+
22
+
23
+
24
+
25
+ ## [1.31.43](https://github.com/XappMedia/stentor-core/compare/v1.31.42...v1.31.43) (2021-02-26)
26
+
27
+ **Note:** Version bump only for package @xapp/ovai-lib
28
+
29
+
30
+
31
+
32
+
6
33
  ## [1.31.41](https://github.com/XappMedia/stentor-core/compare/v1.31.40...v1.31.41) (2021-02-24)
7
34
 
8
35
 
@@ -1,10 +1,6 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- import { EmailHandlerType, LogicHandlerType, MultimediaHandlerType, PlayLivestreamHandlerType, PlayMediaHandlerType, PlayPodcastHandlerType, PlayOnDemandHandlerType, SmsHandlerType } from "./Types";
2
+ import { EmailHandlerType, LogicHandlerType, PlayOnDemandHandlerType, SmsHandlerType } from "./Types";
3
3
  export declare const EMAIL_HANDLER_TYPE: EmailHandlerType;
4
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
5
  export declare const PLAY_ON_DEMAND_HANDLER_TYPE: PlayOnDemandHandlerType;
9
- export declare const PLAY_PODCAST_HANDLER_TYPE: PlayPodcastHandlerType;
10
6
  export declare const SMS_HANDLER_TYPE: SmsHandlerType;
@@ -1,12 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SMS_HANDLER_TYPE = exports.PLAY_PODCAST_HANDLER_TYPE = exports.PLAY_ON_DEMAND_HANDLER_TYPE = exports.PLAY_MEDIA_HANDLER_TYPE = exports.PLAY_LIVE_STREAM_HANDLER_TYPE = exports.MULTIMEDIA_HANDLER_TYPE = exports.LOGIC_HANDLER_TYPE = exports.EMAIL_HANDLER_TYPE = void 0;
3
+ exports.SMS_HANDLER_TYPE = exports.PLAY_ON_DEMAND_HANDLER_TYPE = exports.LOGIC_HANDLER_TYPE = exports.EMAIL_HANDLER_TYPE = void 0;
4
4
  exports.EMAIL_HANDLER_TYPE = "EmailHandlerType";
5
5
  exports.LOGIC_HANDLER_TYPE = "LogicHandlerType";
6
- exports.MULTIMEDIA_HANDLER_TYPE = "MultimediaHandlerType";
7
- exports.PLAY_LIVE_STREAM_HANDLER_TYPE = "PlayLiveStreamIntent";
8
- exports.PLAY_MEDIA_HANDLER_TYPE = "PlayMediaIntent";
9
6
  exports.PLAY_ON_DEMAND_HANDLER_TYPE = "PlayOnDemandIntent";
10
- exports.PLAY_PODCAST_HANDLER_TYPE = "PlayPodcastIntent";
11
7
  exports.SMS_HANDLER_TYPE = "SmsHandlerType";
12
8
  //# sourceMappingURL=Constants.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"Constants.js","sourceRoot":"","sources":["../../src/Handler/Constants.ts"],"names":[],"mappings":";;;AAQa,QAAA,kBAAkB,GAAqB,kBAAkB,CAAC;AAC1D,QAAA,kBAAkB,GAAqB,kBAAkB,CAAC;AAC1D,QAAA,2BAA2B,GAA4B,oBAAoB,CAAC;AAC5E,QAAA,gBAAgB,GAAmB,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
- import { AudioData } from "../AudioHandler";
2
+ import { AudioData } from "@xapp/stentor-handler-media";
3
3
  export interface PlayOnDemandData extends AudioData {
4
4
  /**
5
5
  * Type of on demand service, only "SocialRadio" is supported at this point.
@@ -1,10 +1,5 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
2
  export declare type EmailHandlerType = "EmailHandlerType";
3
3
  export declare type LogicHandlerType = "LogicHandlerType";
4
- export declare type MultimediaHandlerType = "MultimediaHandlerType";
5
- export declare type PlayLivestreamHandlerType = "PlayLiveStreamIntent";
6
- export declare type PlayMediaHandlerType = "PlayMediaIntent";
7
- export declare type PlayPodcastHandlerType = "PlayPodcastIntent";
8
4
  export declare type SmsHandlerType = "SmsHandlerType";
9
5
  export declare type PlayOnDemandHandlerType = "PlayOnDemandIntent";
10
- export declare type AudioHandlerType = MultimediaHandlerType | PlayLivestreamHandlerType | PlayMediaHandlerType | PlayPodcastHandlerType;
@@ -1,11 +1,6 @@
1
1
  /*! Copyright (c) 2020, XAPPmedia */
2
- export * from "./AudioHandler";
3
2
  export * from "./Constants";
4
3
  export * from "./EmailHandler";
5
- export * from "./MultimediaHandler";
6
- export * from "./PlayLiveStreamHandler";
7
- export * from "./PlayMediaHandler";
8
- export * from "./PlayPodcastHandler";
9
4
  export * from "./SmsHandler";
10
5
  export * from "./SocialRadioHandler";
11
6
  export * from "./Types";
@@ -11,13 +11,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  /*! Copyright (c) 2020, XAPPmedia */
14
- __exportStar(require("./AudioHandler"), exports);
15
14
  __exportStar(require("./Constants"), exports);
16
15
  __exportStar(require("./EmailHandler"), exports);
17
- __exportStar(require("./MultimediaHandler"), exports);
18
- __exportStar(require("./PlayLiveStreamHandler"), exports);
19
- __exportStar(require("./PlayMediaHandler"), exports);
20
- __exportStar(require("./PlayPodcastHandler"), exports);
21
16
  __exportStar(require("./SmsHandler"), exports);
22
17
  __exportStar(require("./SocialRadioHandler"), exports);
23
18
  __exportStar(require("./Types"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Handler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAoC;AACpC,iDAA+B;AAC/B,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC;AACpC,0DAAwC;AACxC,qDAAmC;AACnC,uDAAqC;AACrC,+CAA6B;AAC7B,uDAAqC;AACrC,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Handler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAoC;AACpC,8CAA4B;AAC5B,iDAA+B;AAC/B,+CAA6B;AAC7B,uDAAqC;AACrC,0CAAwB"}
package/lib/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  /*! Copyright (c) 2020, XAPPmedia */
2
- export * from "./Contentable";
3
2
  export * from "./Handler";
4
- export * from "./isContentable";
5
3
  export * from "./Organization";
6
4
  export * from "./OVAIApp";
7
5
  export * from "./RadioApp";
package/lib/index.js CHANGED
@@ -11,9 +11,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  /*! Copyright (c) 2020, XAPPmedia */
14
- __exportStar(require("./Contentable"), exports);
15
14
  __exportStar(require("./Handler"), exports);
16
- __exportStar(require("./isContentable"), exports);
17
15
  __exportStar(require("./Organization"), exports);
18
16
  __exportStar(require("./OVAIApp"), exports);
19
17
  __exportStar(require("./RadioApp"), exports);
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAoC;AACpC,gDAA8B;AAC9B,4CAA0B;AAC1B,kDAAgC;AAChC,iDAA+B;AAC/B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "restricted"
6
6
  },
7
- "version": "1.31.41",
7
+ "version": "1.32.2",
8
8
  "description": "Shared library for OVAI",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -17,15 +17,16 @@
17
17
  "devDependencies": {
18
18
  "@types/chai": "4.2.15",
19
19
  "chai": "4.3.0",
20
- "stentor-models": "1.37.41",
20
+ "stentor-models": "1.38.0",
21
21
  "ts-node": "9.1.1",
22
22
  "typescript": "4.0.5"
23
23
  },
24
24
  "dependencies": {
25
- "@xapp/stentor-media-manager": "1.31.41",
26
- "@xapp/stentor-service-search": "1.31.41",
27
- "stentor-guards": "1.37.41",
28
- "stentor-media": "1.37.41"
25
+ "@xapp/stentor-handler-media": "1.32.2",
26
+ "@xapp/stentor-media-manager": "1.32.1",
27
+ "@xapp/stentor-service-search": "1.32.1",
28
+ "stentor-guards": "1.38.0",
29
+ "stentor-media": "1.38.0"
29
30
  },
30
31
  "peerDependencies": {
31
32
  "stentor-models": "1.x"
@@ -35,5 +36,5 @@
35
36
  "clean": "rm -rf ./lib/*",
36
37
  "test": "mocha --recursive -r ts-node/register \"./src/**/*.test.ts\""
37
38
  },
38
- "gitHead": "fd9444992d363bc911e00b6fc888f563a6af1c57"
39
+ "gitHead": "f49cf4c99dcae47e728b929fff4207ca69702b83"
39
40
  }
@@ -1,17 +0,0 @@
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;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Contentable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Contentable.js","sourceRoot":"","sources":["../src/Contentable.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- /*! Copyright (c) 2019, XAPPmedia */
2
- import { Data } from "stentor-models";
3
- export interface AudioData extends Data {
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/AudioHandler/Data.ts"],"names":[],"mappings":""}
@@ -1,27 +0,0 @@
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;
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hasAudioPlayerHandlerProps = exports.isAudioHandlerType = exports.isAudioStorage = void 0;
4
- /*! Copyright (c) 2019, XAPPmedia */
5
- const stentor_guards_1 = require("stentor-guards");
6
- /**
7
- * Determine if the Storage object is AudioStorage
8
- *
9
- * @export
10
- * @param {Storage} storage
11
- * @returns {storage is AudioStorage}
12
- */
13
- function isAudioStorage(storage) {
14
- return storage.audioManager !== undefined;
15
- }
16
- exports.isAudioStorage = isAudioStorage;
17
- /**
18
- * Determines if the handler type is for an AudioHandler
19
- *
20
- * @export
21
- * @param {HandlerType} type
22
- * @returns {type is AudioHandlerType}
23
- */
24
- function isAudioHandlerType(type) {
25
- switch (type) {
26
- // TODO: Had an error where i played around with this to figure out, need to fix it, put it back carefully
27
- case "MultimediaHandlerType":
28
- case "PlayMediaIntent":
29
- case "PlayLiveStreamIntent":
30
- case "PlayOnDemandIntent":
31
- case "PlayPodcastIntent":
32
- return true;
33
- default:
34
- return false;
35
- }
36
- }
37
- exports.isAudioHandlerType = isAudioHandlerType;
38
- /**
39
- * Determines if the array of handlers have an AudioHandler type.
40
- *
41
- * @export
42
- * @param {((Intent | Handler)[])} data
43
- * @returns
44
- */
45
- function hasAudioPlayerHandlerProps(data) {
46
- for (const handler of data) {
47
- if (stentor_guards_1.isHandler(handler)) {
48
- if (isAudioHandlerType(handler.type)) {
49
- return true;
50
- }
51
- }
52
- }
53
- return false;
54
- }
55
- exports.hasAudioPlayerHandlerProps = hasAudioPlayerHandlerProps;
56
- //# sourceMappingURL=Guards.js.map
@@ -1 +0,0 @@
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"}
@@ -1,5 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Props.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Props.js","sourceRoot":"","sources":["../../../src/Handler/AudioHandler/Props.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Storage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/Handler/AudioHandler/Storage.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- /*! Copyright (c) 2020, XAPPmedia */
2
- export * from "./Data";
3
- export * from "./Guards";
4
- export * from "./Props";
5
- export * from "./Storage";
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- /*! Copyright (c) 2020, XAPPmedia */
14
- __exportStar(require("./Data"), exports);
15
- __exportStar(require("./Guards"), exports);
16
- __exportStar(require("./Props"), exports);
17
- __exportStar(require("./Storage"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/AudioHandler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAoC;AACpC,yCAAuB;AACvB,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B"}
@@ -1,38 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/MultimediaHandler/Data.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- /*! Copyright (c) 2019, XAPPmedia */
2
- import { AudioStorage } from "../AudioHandler";
3
- export interface MultimediaStorage extends AudioStorage {
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Storage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/Handler/MultimediaHandler/Storage.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- /*! Copyright (c) 2020, XAPPmedia */
2
- export * from "./Data";
3
- export * from "./Storage";
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- /*! Copyright (c) 2020, XAPPmedia */
14
- __exportStar(require("./Data"), exports);
15
- __exportStar(require("./Storage"), exports);
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/MultimediaHandler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAoC;AACpC,yCAAuB;AACvB,4CAA0B"}
@@ -1,31 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/PlayLiveStreamHandler/Data.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- /*! Copyright (c) 2020, XAPPmedia */
2
- export * from "./Data";
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- /*! Copyright (c) 2020, XAPPmedia */
14
- __exportStar(require("./Data"), exports);
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/PlayLiveStreamHandler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAoC;AACpC,yCAAuB"}
@@ -1,7 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/PlayMediaHandler/Data.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- /*! Copyright (c) 2020, XAPPmedia */
2
- export * from "./Data";
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- /*! Copyright (c) 2020, XAPPmedia */
14
- __exportStar(require("./Data"), exports);
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/PlayMediaHandler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAoC;AACpC,yCAAuB"}
@@ -1,111 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/PlayPodcastHandler/Data.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
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;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPlayPodcastHandlerProps = void 0;
4
- const Constants_1 = require("../Constants");
5
- /**
6
- * Determine if the props are for a PlayPodcastHandler
7
- *
8
- */
9
- function isPlayPodcastHandlerProps(props) {
10
- return !!props && props.type === Constants_1.PLAY_PODCAST_HANDLER_TYPE;
11
- }
12
- exports.isPlayPodcastHandlerProps = isPlayPodcastHandlerProps;
13
- //# sourceMappingURL=Guards.js.map
@@ -1 +0,0 @@
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"}
@@ -1,11 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Props.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Props.js","sourceRoot":"","sources":["../../../src/Handler/PlayPodcastHandler/Props.ts"],"names":[],"mappings":""}
@@ -1,31 +0,0 @@
1
- /*! Copyright (c) 2019, XAPPmedia */
2
- import { AudioStorage } from "../AudioHandler";
3
- export interface PlayPodcastStorage extends AudioStorage {
4
- /**
5
- * Flag to remember if we asked them to play the latest.
6
- *
7
- * This is a candidate for session storage.
8
- *
9
- * @type {boolean}
10
- * @memberof PlayPodcastStorage
11
- */
12
- askedToPlayLatest?: boolean;
13
- /**
14
- * Flag to remember if they are currently searching for an episode.
15
- *
16
- * This is a candidate for session storage.
17
- *
18
- * @type {boolean}
19
- * @memberof PlayPodcastStorage
20
- */
21
- searchingForEpisode?: boolean;
22
- /**
23
- * The number of unsuccessful searches the user has
24
- *
25
- * This is a candidate for session storage.
26
- *
27
- * @type {number}
28
- * @memberof PlayPodcastStorage
29
- */
30
- unsuccessfulSearches?: number;
31
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Storage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/Handler/PlayPodcastHandler/Storage.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- /*! Copyright (c) 2020, XAPPmedia */
2
- export * from "./Data";
3
- export * from "./Guards";
4
- export * from "./Props";
5
- export * from "./Storage";
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- /*! Copyright (c) 2020, XAPPmedia */
14
- __exportStar(require("./Data"), exports);
15
- __exportStar(require("./Guards"), exports);
16
- __exportStar(require("./Props"), exports);
17
- __exportStar(require("./Storage"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/PlayPodcastHandler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAoC;AACpC,yCAAuB;AACvB,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B"}
@@ -1,6 +0,0 @@
1
- /*! Copyright (c) 2019, XAPPmedia */
2
- import { Contentable } from "./Contentable";
3
- /**
4
- * Guard to check if the provided object is Contentable, it has a content key.
5
- */
6
- export declare function isContentable(item: object): item is Contentable;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isContentable = void 0;
4
- /**
5
- * Guard to check if the provided object is Contentable, it has a content key.
6
- */
7
- function isContentable(item) {
8
- return !!item && item.content !== undefined;
9
- }
10
- exports.isContentable = isContentable;
11
- //# sourceMappingURL=isContentable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isContentable.js","sourceRoot":"","sources":["../src/isContentable.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AACH,SAAgB,aAAa,CAAC,IAAY;IACtC,OAAO,CAAC,CAAC,IAAI,IAAK,IAAoB,CAAC,OAAO,KAAK,SAAS,CAAC;AACjE,CAAC;AAFD,sCAEC"}