@xapp/ovai-lib 1.18.111 → 1.18.115
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.
- package/CHANGELOG.md +30 -0
- package/lib/Contentable.d.ts +17 -0
- package/lib/Contentable.js +3 -0
- package/lib/Contentable.js.map +1 -0
- package/lib/Handler/AudioHandler/Data.d.ts +4 -0
- package/lib/Handler/AudioHandler/Data.js +3 -0
- package/lib/Handler/AudioHandler/Data.js.map +1 -0
- package/lib/Handler/AudioHandler/Guards.d.ts +27 -0
- package/lib/Handler/AudioHandler/Guards.js +55 -0
- package/lib/Handler/AudioHandler/Guards.js.map +1 -0
- package/lib/Handler/AudioHandler/Props.d.ts +5 -0
- package/lib/Handler/AudioHandler/Props.js +3 -0
- package/lib/Handler/AudioHandler/Props.js.map +1 -0
- package/lib/Handler/AudioHandler/Storage.d.ts +12 -0
- package/lib/Handler/AudioHandler/Storage.js +3 -0
- package/lib/Handler/AudioHandler/Storage.js.map +1 -0
- package/lib/Handler/AudioHandler/index.d.ts +5 -0
- package/lib/Handler/AudioHandler/index.js +7 -0
- package/lib/Handler/AudioHandler/index.js.map +1 -0
- package/lib/Handler/Constants.d.ts +10 -0
- package/lib/Handler/Constants.js +11 -0
- package/lib/Handler/Constants.js.map +1 -0
- package/lib/Handler/EmailHandler/Data.d.ts +21 -0
- package/lib/Handler/EmailHandler/Data.js +3 -0
- package/lib/Handler/EmailHandler/Data.js.map +1 -0
- package/lib/Handler/EmailHandler/Storage.d.ts +5 -0
- package/lib/Handler/EmailHandler/Storage.js +3 -0
- package/lib/Handler/EmailHandler/Storage.js.map +1 -0
- package/lib/Handler/EmailHandler/index.d.ts +3 -0
- package/lib/Handler/EmailHandler/index.js +3 -0
- package/lib/Handler/EmailHandler/index.js.map +1 -0
- package/lib/Handler/MultimediaHandler/Data.d.ts +38 -0
- package/lib/Handler/MultimediaHandler/Data.js +3 -0
- package/lib/Handler/MultimediaHandler/Data.js.map +1 -0
- package/lib/Handler/MultimediaHandler/Storage.d.ts +4 -0
- package/lib/Handler/MultimediaHandler/Storage.js +3 -0
- package/lib/Handler/MultimediaHandler/Storage.js.map +1 -0
- package/lib/Handler/MultimediaHandler/index.d.ts +3 -0
- package/lib/Handler/MultimediaHandler/index.js +3 -0
- package/lib/Handler/MultimediaHandler/index.js.map +1 -0
- package/lib/Handler/PlayLiveStreamHandler/Data.d.ts +31 -0
- package/lib/Handler/PlayLiveStreamHandler/Data.js +3 -0
- package/lib/Handler/PlayLiveStreamHandler/Data.js.map +1 -0
- package/lib/Handler/PlayLiveStreamHandler/index.d.ts +2 -0
- package/lib/Handler/PlayLiveStreamHandler/index.js +3 -0
- package/lib/Handler/PlayLiveStreamHandler/index.js.map +1 -0
- package/lib/Handler/PlayMediaHandler/Data.d.ts +7 -0
- package/lib/Handler/PlayMediaHandler/Data.js +3 -0
- package/lib/Handler/PlayMediaHandler/Data.js.map +1 -0
- package/lib/Handler/PlayMediaHandler/index.d.ts +2 -0
- package/lib/Handler/PlayMediaHandler/index.js +3 -0
- package/lib/Handler/PlayMediaHandler/index.js.map +1 -0
- package/lib/Handler/PlayPodcastHandler/Data.d.ts +111 -0
- package/lib/Handler/PlayPodcastHandler/Data.js +3 -0
- package/lib/Handler/PlayPodcastHandler/Data.js.map +1 -0
- package/lib/Handler/PlayPodcastHandler/Guards.d.ts +8 -0
- package/lib/Handler/PlayPodcastHandler/Guards.js +12 -0
- package/lib/Handler/PlayPodcastHandler/Guards.js.map +1 -0
- package/lib/Handler/PlayPodcastHandler/Props.d.ts +11 -0
- package/lib/Handler/PlayPodcastHandler/Props.js +3 -0
- package/lib/Handler/PlayPodcastHandler/Props.js.map +1 -0
- package/lib/Handler/PlayPodcastHandler/Storage.d.ts +31 -0
- package/lib/Handler/PlayPodcastHandler/Storage.js +3 -0
- package/lib/Handler/PlayPodcastHandler/Storage.js.map +1 -0
- package/lib/Handler/PlayPodcastHandler/index.d.ts +5 -0
- package/lib/Handler/PlayPodcastHandler/index.js +7 -0
- package/lib/Handler/PlayPodcastHandler/index.js.map +1 -0
- package/lib/Handler/SmsHandler/Data.d.ts +13 -0
- package/lib/Handler/SmsHandler/Data.js +3 -0
- package/lib/Handler/SmsHandler/Data.js.map +1 -0
- package/lib/Handler/SmsHandler/Storage.d.ts +6 -0
- package/lib/Handler/SmsHandler/Storage.js +3 -0
- package/lib/Handler/SmsHandler/Storage.js.map +1 -0
- package/lib/Handler/SmsHandler/index.d.ts +3 -0
- package/lib/Handler/SmsHandler/index.js +3 -0
- package/lib/Handler/SmsHandler/index.js.map +1 -0
- package/lib/Handler/SocialRadioHandler/Data.d.ts +33 -0
- package/lib/Handler/SocialRadioHandler/Data.js +3 -0
- package/lib/Handler/SocialRadioHandler/Data.js.map +1 -0
- package/lib/Handler/SocialRadioHandler/index.d.ts +2 -0
- package/lib/Handler/SocialRadioHandler/index.js +3 -0
- package/lib/Handler/SocialRadioHandler/index.js.map +1 -0
- package/lib/Handler/Types.d.ts +10 -0
- package/lib/Handler/Types.js +4 -0
- package/lib/Handler/Types.js.map +1 -0
- package/lib/Handler/index.d.ts +11 -0
- package/lib/Handler/index.js +10 -0
- package/lib/Handler/index.js.map +1 -0
- package/lib/OVAIApp.d.ts +19 -1
- package/lib/Organization/Organization.d.ts +135 -0
- package/lib/Organization/Organization.js +3 -0
- package/lib/Organization/Organization.js.map +1 -0
- package/lib/Organization/index.d.ts +2 -0
- package/lib/Organization/index.js +3 -0
- package/lib/Organization/index.js.map +1 -0
- package/lib/Template/Template.d.ts +13 -0
- package/lib/Template/Template.js +3 -0
- package/lib/Template/Template.js.map +1 -0
- package/lib/Template/Types.d.ts +9 -0
- package/lib/Template/Types.js +3 -0
- package/lib/Template/Types.js.map +1 -0
- package/lib/Template/index.d.ts +3 -0
- package/lib/Template/index.js +3 -0
- package/lib/Template/index.js.map +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/isContentable.d.ts +6 -0
- package/lib/isContentable.js +10 -0
- package/lib/isContentable.js.map +1 -0
- package/package.json +9 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Props.js","sourceRoot":"","sources":["../../../src/Handler/PlayPodcastHandler/Props.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/Handler/PlayPodcastHandler/Storage.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/PlayPodcastHandler/index.ts"],"names":[],"mappings":";;;;;AAEA,8BAAyB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
+
import { Data, SmsDescription } from "stentor-models";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export interface SmsData extends Data {
|
|
7
|
+
smsTypeKey: string;
|
|
8
|
+
successContentName: string;
|
|
9
|
+
failureContentName: string;
|
|
10
|
+
sms: {
|
|
11
|
+
[smsType: string]: SmsDescription;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/SmsHandler/Data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/Handler/SmsHandler/Storage.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/SmsHandler/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
+
import { AudioData } from "../AudioHandler";
|
|
3
|
+
export interface PlayOnDemandData extends AudioData {
|
|
4
|
+
/**
|
|
5
|
+
* Type of on demand service, only "SocialRadio" is supported at this point.
|
|
6
|
+
*
|
|
7
|
+
* @type {"SocialRadio"}
|
|
8
|
+
* @memberof PlayOnDemandData
|
|
9
|
+
*/
|
|
10
|
+
type: "SocialRadio";
|
|
11
|
+
/**
|
|
12
|
+
* API token specific for SocialRadio
|
|
13
|
+
*
|
|
14
|
+
* @deprecated Use apiToken instead
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof PlayOnDemandData
|
|
17
|
+
*/
|
|
18
|
+
stationToken?: string;
|
|
19
|
+
/**
|
|
20
|
+
* API token for accessing the on demand API.
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PlayOnDemandData
|
|
24
|
+
*/
|
|
25
|
+
apiToken?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Channel to play
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof PlayOnDemandData
|
|
31
|
+
*/
|
|
32
|
+
channel?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Data.js","sourceRoot":"","sources":["../../../src/Handler/SocialRadioHandler/Data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Handler/SocialRadioHandler/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
+
export declare type EmailHandlerType = "EmailHandlerType";
|
|
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
|
+
export declare type SmsHandlerType = "SmsHandlerType";
|
|
9
|
+
export declare type PlayOnDemandHandlerType = "PlayOnDemandIntent";
|
|
10
|
+
export declare type AudioHandlerType = MultimediaHandlerType | PlayLivestreamHandlerType | PlayMediaHandlerType | PlayPodcastHandlerType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Types.js","sourceRoot":"","sources":["../../src/Handler/Types.ts"],"names":[],"mappings":";AAAA,oCAAoC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*! Copyright (c) 2020, XAPPmedia */
|
|
2
|
+
export * from "./AudioHandler";
|
|
3
|
+
export * from "./Constants";
|
|
4
|
+
export * from "./EmailHandler";
|
|
5
|
+
export * from "./MultimediaHandler";
|
|
6
|
+
export * from "./PlayLiveStreamHandler";
|
|
7
|
+
export * from "./PlayMediaHandler";
|
|
8
|
+
export * from "./PlayPodcastHandler";
|
|
9
|
+
export * from "./SmsHandler";
|
|
10
|
+
export * from "./SocialRadioHandler";
|
|
11
|
+
export * from "./Types";
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
/*! Copyright (c) 2020, XAPPmedia */
|
|
7
|
+
__export(require("./AudioHandler"));
|
|
8
|
+
__export(require("./Constants"));
|
|
9
|
+
__export(require("./PlayPodcastHandler"));
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Handler/index.ts"],"names":[],"mappings":";;;;;AAAA,oCAAoC;AACpC,oCAA+B;AAC/B,iCAA4B;AAK5B,0CAAqC"}
|
package/lib/OVAIApp.d.ts
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
/*! Copyright (c) 2020, XAPPmedia */
|
|
2
|
-
import { App,
|
|
2
|
+
import { App, FullAppStatus } from "stentor-models";
|
|
3
|
+
import { IPRights } from "./Organization";
|
|
4
|
+
import { TemplateType } from "./Template";
|
|
3
5
|
export interface OVAIApp extends App {
|
|
6
|
+
/**
|
|
7
|
+
* The ID of the organization the app belongs to
|
|
8
|
+
*/
|
|
9
|
+
organizationId: string;
|
|
4
10
|
/**
|
|
5
11
|
* Type of App
|
|
6
12
|
*/
|
|
7
13
|
templateType?: TemplateType;
|
|
14
|
+
/**
|
|
15
|
+
* Current status of the app
|
|
16
|
+
*/
|
|
17
|
+
status?: FullAppStatus;
|
|
18
|
+
/**
|
|
19
|
+
* Allows stentor_admins to view and add notes to apps for internal use
|
|
20
|
+
*/
|
|
21
|
+
internalNotes?: string;
|
|
8
22
|
/**
|
|
9
23
|
* The subscription ID linked to the App
|
|
10
24
|
*/
|
|
11
25
|
stripeSubscriptionId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Allows app-specific overriding of IPRights
|
|
28
|
+
*/
|
|
29
|
+
ipRights?: IPRights;
|
|
12
30
|
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
+
import { TemplateType } from "../Template";
|
|
3
|
+
/**
|
|
4
|
+
* A collection of accounts that are linked to the organization.
|
|
5
|
+
* The name is the type of account that is linked.
|
|
6
|
+
* The object linked is unique to the account type, so it's up to the
|
|
7
|
+
* client to know what that is.
|
|
8
|
+
*/
|
|
9
|
+
export interface Accounts {
|
|
10
|
+
[accountName: string]: any;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The IP rights documents that exist for the various platforms.
|
|
14
|
+
*/
|
|
15
|
+
export interface IPRights {
|
|
16
|
+
alexa?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A Stripe account is a payment account associated with the user.
|
|
20
|
+
*/
|
|
21
|
+
export interface StripeAccount {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the customer in stripe that this organization is linked to.
|
|
24
|
+
*/
|
|
25
|
+
customerId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ServiceOrderAccount {
|
|
28
|
+
/**
|
|
29
|
+
* The style of payment that the service order is a part of.
|
|
30
|
+
*/
|
|
31
|
+
paymentType: string;
|
|
32
|
+
/**
|
|
33
|
+
* The number of apps that the service order allows.
|
|
34
|
+
*/
|
|
35
|
+
numberOfApps?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The date with which the service order was created.
|
|
38
|
+
*/
|
|
39
|
+
date: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The new form of `ServiceOrderAccount#numberOfApps`. The key is the type of template
|
|
43
|
+
* which can be found at `templates/Types`.
|
|
44
|
+
*/
|
|
45
|
+
export declare type ServiceOrderTemplate = Partial<Record<TemplateType, ServiceOrderAccount>>;
|
|
46
|
+
/**
|
|
47
|
+
* The type for number of apps in a `ServiceOrderAccount`.
|
|
48
|
+
*
|
|
49
|
+
* The legacy parameter is a ServiceOrderAccount which represents Radio/Live stream templates only.
|
|
50
|
+
*
|
|
51
|
+
* The New Parameter is a ServiceOrderTemplate object in which the key is the service order
|
|
52
|
+
* and the object returned is the service order supplied.
|
|
53
|
+
*/
|
|
54
|
+
export declare type ServiceOrders = ServiceOrderAccount | ServiceOrderTemplate;
|
|
55
|
+
/**
|
|
56
|
+
* A collection of accounts associated with the payment on the stentor platform.
|
|
57
|
+
*/
|
|
58
|
+
export interface PaymentAccounts {
|
|
59
|
+
/**
|
|
60
|
+
* The stripe account that is linked to this organization.
|
|
61
|
+
*/
|
|
62
|
+
stripe?: StripeAccount;
|
|
63
|
+
/**
|
|
64
|
+
* The Service order account that is linked to this organization.
|
|
65
|
+
*/
|
|
66
|
+
so?: ServiceOrders;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* An organization is the name of organization contains a collection of groups.
|
|
70
|
+
*/
|
|
71
|
+
export interface Organization {
|
|
72
|
+
/**
|
|
73
|
+
* The unique identifier of the organization.
|
|
74
|
+
*/
|
|
75
|
+
organizationId: string;
|
|
76
|
+
/**
|
|
77
|
+
* The public facing name of this organization.
|
|
78
|
+
*/
|
|
79
|
+
name: string;
|
|
80
|
+
/**
|
|
81
|
+
* The public facing description of the group.
|
|
82
|
+
*/
|
|
83
|
+
description: string;
|
|
84
|
+
/**
|
|
85
|
+
* Contact email for the organization.
|
|
86
|
+
*/
|
|
87
|
+
contact?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Contact name for the organization.
|
|
90
|
+
*/
|
|
91
|
+
contactName?: string;
|
|
92
|
+
/**
|
|
93
|
+
* ContactPhone for the organization
|
|
94
|
+
*/
|
|
95
|
+
contactPhone?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Contract date
|
|
98
|
+
*/
|
|
99
|
+
contractDate?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Internally maintained notes for the organization
|
|
102
|
+
*/
|
|
103
|
+
notes?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Accounts that are linked to the organization that involve financial transactions.
|
|
106
|
+
*/
|
|
107
|
+
paymentAccounts?: PaymentAccounts;
|
|
108
|
+
/**
|
|
109
|
+
* The group ID as it is in auth0. This can be used to retrieve the permissions, roles, and nested groups that
|
|
110
|
+
* the group may contain.
|
|
111
|
+
*/
|
|
112
|
+
auth0GroupId?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The remote location for the organization's image.
|
|
115
|
+
*/
|
|
116
|
+
logoUrl?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The main website that the organization owns.
|
|
119
|
+
*/
|
|
120
|
+
website?: string;
|
|
121
|
+
/**
|
|
122
|
+
* The vendorId that is used for publishing.
|
|
123
|
+
* For example, the accounts under "Smapi" will have a vendorId or
|
|
124
|
+
* other metadata needed for publishing.
|
|
125
|
+
*/
|
|
126
|
+
publishingAccounts?: Accounts;
|
|
127
|
+
/**
|
|
128
|
+
* IP Rights documents that are attached to this organization.
|
|
129
|
+
*/
|
|
130
|
+
ipRights?: IPRights;
|
|
131
|
+
/**
|
|
132
|
+
* Internal SME/POC
|
|
133
|
+
*/
|
|
134
|
+
XAPPLead?: string;
|
|
135
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Organization.js","sourceRoot":"","sources":["../../src/Organization/Organization.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Organization/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
+
import { OVAIApp } from "../OVAIApp";
|
|
3
|
+
import { TemplateType } from "./Types";
|
|
4
|
+
export interface Template extends Partial<OVAIApp> {
|
|
5
|
+
/**
|
|
6
|
+
* Template type.
|
|
7
|
+
*/
|
|
8
|
+
templateType: TemplateType;
|
|
9
|
+
/**
|
|
10
|
+
* The collaboration agreement between the app and XAPP.
|
|
11
|
+
*/
|
|
12
|
+
collaborationAgreementUrl?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Template.js","sourceRoot":"","sources":["../../src/Template/Template.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*! Copyright (c) 2019, XAPPmedia */
|
|
2
|
+
export declare type OnDemandTemplateType = "PODCAST_TEMPLATE";
|
|
3
|
+
export declare type RadioTemplateType = "RADIO_TEMPLATE";
|
|
4
|
+
/**
|
|
5
|
+
* Used to communicate the app is custom and does not adhere to a specific
|
|
6
|
+
* predefined template.
|
|
7
|
+
*/
|
|
8
|
+
export declare type CustomType = "CUSTOM";
|
|
9
|
+
export declare type TemplateType = RadioTemplateType | OnDemandTemplateType | CustomType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Types.js","sourceRoot":"","sources":["../../src/Template/Types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Template/index.ts"],"names":[],"mappings":""}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -3,5 +3,7 @@ function __export(m) {
|
|
|
3
3
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
4
|
}
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
__export(require("./Handler"));
|
|
7
|
+
__export(require("./isContentable"));
|
|
6
8
|
__export(require("./RadioApp"));
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAEA,gCAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAEA,+BAA0B;AAC1B,qCAAgC;AAGhC,gCAA2B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Guard to check if the provided object is Contentable, it has a content key.
|
|
5
|
+
*/
|
|
6
|
+
function isContentable(item) {
|
|
7
|
+
return !!item && item.content !== undefined;
|
|
8
|
+
}
|
|
9
|
+
exports.isContentable = isContentable;
|
|
10
|
+
//# sourceMappingURL=isContentable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "restricted"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.18.
|
|
7
|
+
"version": "1.18.115",
|
|
8
8
|
"description": "Shared library for OVAI",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -17,10 +17,16 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/chai": "4.2.11",
|
|
19
19
|
"chai": "4.2.0",
|
|
20
|
-
"stentor-models": "1.23.
|
|
20
|
+
"stentor-models": "1.23.37",
|
|
21
21
|
"ts-node": "8.7.0",
|
|
22
22
|
"typescript": "3.8.3"
|
|
23
23
|
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@xapp/stentor-media-manager": "1.18.112",
|
|
26
|
+
"@xapp/stentor-service-search": "1.18.115",
|
|
27
|
+
"stentor-guards": "1.23.36",
|
|
28
|
+
"stentor-media": "1.23.36"
|
|
29
|
+
},
|
|
24
30
|
"peerDependencies": {
|
|
25
31
|
"stentor-models": "1.x"
|
|
26
32
|
},
|
|
@@ -29,5 +35,5 @@
|
|
|
29
35
|
"clean": "rm -rf ./lib/*",
|
|
30
36
|
"test": "mocha --recursive -r ts-node/register \"./src/**/*.test.ts\""
|
|
31
37
|
},
|
|
32
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "3fb7af769207cba16cb7dac959e839ee0f20c964"
|
|
33
39
|
}
|