@eventric/mastertour
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -1,2 +0,2 @@ | ||
import { Contact, Company, EmailData, PhoneData, UrlData } from "./types/mtDataTypes"; | ||
import { EmailData, PhoneData, UrlData, AtLeast, PhoneXML } from "./types/mtDataTypes"; | ||
declare type PhoneEmailUrl = { | ||
@@ -8,3 +8,5 @@ [key: string]: EmailData[] | PhoneData[] | UrlData[]; | ||
}; | ||
export declare function getPhoneEmailUrl(item: Contact | Company): PhoneEmailUrl; | ||
export declare function getPhoneEmailUrl(item: AtLeast<{ | ||
phoneXml: PhoneXML; | ||
}, "phoneXml">): PhoneEmailUrl; | ||
export default getPhoneEmailUrl; |
@@ -61,2 +61,8 @@ export interface MasterTourData { | ||
export declare type PhoneEmailUrlData = PhoneData | EmailData | UrlData | (PhoneData | EmailData | UrlData)[]; | ||
export declare type PhoneXML = string | { | ||
dataStore: { | ||
[key: string]: PhoneEmailUrlData; | ||
contact: PhoneEmailUrlData; | ||
}; | ||
}; | ||
export interface Company extends MasterTourData { | ||
@@ -84,8 +90,3 @@ venueId: string; | ||
customFieldsXml: null; | ||
phoneXml: string | { | ||
dataStore: { | ||
[key: string]: PhoneEmailUrlData; | ||
contact: PhoneEmailUrlData; | ||
}; | ||
}; | ||
phoneXml: PhoneXML; | ||
featuredStatus: number; | ||
@@ -123,8 +124,3 @@ featuredDetails: string; | ||
addressCountry: string; | ||
phoneXml: string | { | ||
dataStore: { | ||
[key: string]: PhoneEmailUrlData; | ||
contact: PhoneEmailUrlData; | ||
}; | ||
}; | ||
phoneXml: PhoneXML; | ||
emailXml: string; | ||
@@ -165,1 +161,2 @@ socialNetworkXml: string; | ||
export declare type ContactCompanyArray = (Contact | Company)[]; | ||
export declare type AtLeast<T, K extends keyof T> = Partial<T> & Pick<T, K>; |
{ | ||
"name": "@eventric/mastertour", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "A library for interacting programmatically with the Master Tour platform", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20069
538