@xapp/ovai-lib 1.44.2 → 1.44.8

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.
@@ -0,0 +1,15 @@
1
+ /*! Copyright (c) 2022, XAPPmedia */
2
+ export interface Contact {
3
+ /**
4
+ * Name of the contact
5
+ */
6
+ name: string;
7
+ /**
8
+ * Email of the contact
9
+ */
10
+ email?: string;
11
+ /**
12
+ * Phone number of the contact
13
+ */
14
+ phoneNumber?: string;
15
+ }
package/lib/Contact.js ADDED
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /*! Copyright (c) 2022, XAPPmedia */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=Contact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Contact.js","sourceRoot":"","sources":["../src/Contact.ts"],"names":[],"mappings":";AAAA,oCAAoC"}
package/lib/OVAIApp.d.ts CHANGED
@@ -2,7 +2,14 @@
2
2
  import { App, FullAppStatus } from "stentor-models";
3
3
  import { IPRights } from "./Organization";
4
4
  import { TemplateType } from "./Template";
5
+ /**
6
+ * Extension of Stentor App with necessary information for business operations.
7
+ */
5
8
  export interface OVAIApp extends App {
9
+ /**
10
+ * The ID of the app
11
+ */
12
+ appId: string;
6
13
  /**
7
14
  * The ID of the organization the app belongs to
8
15
  */
@@ -1,4 +1,5 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
+ import { Contact } from "../Contact";
2
3
  import { TemplateType } from "../Template";
3
4
  /**
4
5
  * A collection of accounts that are linked to the organization.
@@ -88,7 +89,24 @@ export interface AWSAccount {
88
89
  */
89
90
  date: string;
90
91
  }
91
- export type Tier = "FREE" | "STANDARD" | "TRIAL_STANDARD" | "PRO" | "BRONZE_LITE" | "BRONZE" | "SILVER" | "GOLD" | "PLATINUM";
92
+ export type Tier = "BRONZE_BUNDLE" | // chat & search
93
+ "BRONZE_CHAT" | // just chat
94
+ "BRONZE_LITE" | // old, just search
95
+ "BRONZE_SEARCH" | // search only
96
+ "BRONZE" | // old, no channel restrictions
97
+ "SILVER_BUNDLE" | // chat & search
98
+ "SILVER_CHAT" | // just chat
99
+ "SILVER_SEARCH" | // just search
100
+ "SILVER" | // old, no channel restrictions
101
+ "GOLD_BUNDLE" | // chat & search
102
+ "GOLD_CHAT" | // chat only
103
+ "GOLD_SEARCH" | // search only
104
+ "GOLD" | // old, no channel restrictions
105
+ "PLATINUM" | // No restrictions on anything
106
+ "FREE" | // Our default
107
+ "STANDARD" | // Has a few options
108
+ "PRO" | // Has a few more options
109
+ "TRIAL_STANDARD";
92
110
  export interface BaseStudioTier {
93
111
  tier: Tier;
94
112
  }
@@ -166,6 +184,14 @@ export interface Organization {
166
184
  * ContactPhone for the organization
167
185
  */
168
186
  contactPhone?: string;
187
+ /**
188
+ * Contact information for someone within the organization that can help with payment related inquiries
189
+ */
190
+ billingContact?: Contact;
191
+ /**
192
+ * Contact information for someone within the organization that can approve our usage of their brand.
193
+ */
194
+ brandContact?: Contact;
169
195
  /**
170
196
  * Contract date
171
197
  */
@@ -1,10 +1,35 @@
1
1
  /*! Copyright (c) 2019, XAPPmedia */
2
+ /** Podcast & RSS Feeds */
2
3
  export type OnDemandTemplateType = "PODCAST_TEMPLATE";
4
+ /** Radio Stations */
3
5
  export type RadioTemplateType = "RADIO_TEMPLATE";
6
+ /** Our generic starter */
4
7
  export type OCStudioStarterTemplateType = "OC_STUDIO_STARTER_TEMPLATE";
8
+ /** Plumbing (home services) */
9
+ export type PlumbingTemplateType = "PLUMBING_TEMPLATE";
10
+ /**
11
+ * HVAC (home services)
12
+ */
13
+ export type HVACTemplateType = "HVAC_TEMPLATE";
14
+ /**
15
+ * Exteriors (home services)
16
+ */
17
+ export type ExteriorsTemplateType = "EXTERIORS_TEMPLATE";
18
+ /**
19
+ * Remodelling (home services)
20
+ */
21
+ export type RemodelTemplateType = "REMODEL_TEMPLATE";
22
+ /**
23
+ * Legal
24
+ */
25
+ export type LegalTemplateType = "LEGAL_TEMPLATE";
26
+ /**
27
+ * Generic lead capture
28
+ */
29
+ export type GenericLeadCaptureTemplateType = "GENERIC_LEAD_CAPTURE_TEMPLATE";
5
30
  /**
6
31
  * Used to communicate the app is custom and does not adhere to a specific
7
32
  * predefined template.
8
33
  */
9
34
  export type CustomType = "CUSTOM";
10
- export type TemplateType = RadioTemplateType | OCStudioStarterTemplateType | OnDemandTemplateType | CustomType;
35
+ export type TemplateType = CustomType | ExteriorsTemplateType | GenericLeadCaptureTemplateType | HVACTemplateType | LegalTemplateType | OCStudioStarterTemplateType | OnDemandTemplateType | PlumbingTemplateType | RadioTemplateType | RemodelTemplateType;
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
+ /*! Copyright (c) 2019, XAPPmedia */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  //# sourceMappingURL=Types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Types.js","sourceRoot":"","sources":["../../src/Template/Types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Types.js","sourceRoot":"","sources":["../../src/Template/Types.ts"],"names":[],"mappings":";AAAA,oCAAoC"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.44.2",
7
+ "version": "1.44.8",
8
8
  "description": "Shared library for OVAI",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -17,15 +17,15 @@
17
17
  "devDependencies": {
18
18
  "@types/chai": "4.3.4",
19
19
  "chai": "4.3.7",
20
- "stentor-guards": "1.57.53",
21
- "stentor-media": "1.57.53",
22
- "stentor-models": "1.57.53",
20
+ "stentor-guards": "1.57.59",
21
+ "stentor-media": "1.57.59",
22
+ "stentor-models": "1.57.59",
23
23
  "ts-node": "10.9.1",
24
24
  "typescript": "4.9.4"
25
25
  },
26
26
  "dependencies": {
27
- "@xapp/stentor-handler-media": "1.44.2",
28
- "@xapp/stentor-media-manager": "1.44.2"
27
+ "@xapp/stentor-handler-media": "1.44.8",
28
+ "@xapp/stentor-media-manager": "1.44.8"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "stentor-guards": "1.x",
@@ -37,5 +37,5 @@
37
37
  "clean": "rm -rf ./lib/*",
38
38
  "test": "mocha --recursive -r ts-node/register \"./src/**/*.test.ts\""
39
39
  },
40
- "gitHead": "77c4abac4197bc0accb8ddce7872ab876ce5da69"
40
+ "gitHead": "6f02069380744db7b8e4007267458eeca08d6a6d"
41
41
  }