UNPKG

@nodert-win10/windows.phone.personalinformation

Version:

Use the Windows.Phone.PersonalInformation UWP API directly from Node.js

485 lines (381 loc) 13.8 kB
_ContactStoreSystemAccessMode = function () { this.readOnly = 0; this.readWrite = 1; } exports.ContactStoreSystemAccessMode = new _ContactStoreSystemAccessMode(); _ContactStoreApplicationAccessMode = function () { this.limitedReadOnly = 0; this.readOnly = 1; } exports.ContactStoreApplicationAccessMode = new _ContactStoreApplicationAccessMode(); _ContactChangeType = function () { this.created = 0; this.modified = 1; this.deleted = 2; } exports.ContactChangeType = new _ContactChangeType(); _ContactQueryResultOrdering = function () { this.systemDefault = 0; this.givenNameFamilyName = 1; this.familyNameGivenName = 2; } exports.ContactQueryResultOrdering = new _ContactQueryResultOrdering(); _VCardFormat = function () { this.version2_1 = 0; this.version3 = 1; } exports.VCardFormat = new _VCardFormat(); ContactAddress = (function () { var cls = function ContactAddress() { this.streetAddress = new String(); this.region = new String(); this.postalCode = new String(); this.locality = new String(); this.country = new String(); }; return cls; }) (); exports.ContactAddress = ContactAddress; IContactInformation = (function () { var cls = function IContactInformation() { this.displayName = new String(); this.displayPicture = new Object(); this.familyName = new String(); this.givenName = new String(); this.honorificPrefix = new String(); this.honorificSuffix = new String(); }; cls.prototype.getDisplayPictureAsync = function getDisplayPictureAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.setDisplayPictureAsync = function setDisplayPictureAsync(stream, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="stream" type="Object">A param.</param> /// </signature> } cls.prototype.getPropertiesAsync = function getPropertiesAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.toVcardAsync = function toVcardAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.toVcardAsync = function toVcardAsync(format, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="format" type="VCardFormat">A param.</param> /// </signature> } return cls; }) (); exports.IContactInformation = IContactInformation; IContactInformation2 = (function () { var cls = function IContactInformation2() { this.displayPictureDate = new Date(); }; return cls; }) (); exports.IContactInformation2 = IContactInformation2; ContactInformation = (function () { var cls = function ContactInformation() { this.honorificSuffix = new String(); this.honorificPrefix = new String(); this.givenName = new String(); this.familyName = new String(); this.displayName = new String(); this.displayPicture = new Object(); }; cls.prototype.getDisplayPictureAsync = function getDisplayPictureAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.setDisplayPictureAsync = function setDisplayPictureAsync(stream, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="stream" type="Object">A param.</param> /// </signature> } cls.prototype.getPropertiesAsync = function getPropertiesAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.toVcardAsync = function toVcardAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.toVcardAsync = function toVcardAsync(format, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="format" type="VCardFormat">A param.</param> /// </signature> } cls.parseVcardAsync = function parseVcardAsync(vcard, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="vcard" type="Object">A param.</param> /// </signature> } return cls; }) (); exports.ContactInformation = ContactInformation; ContactStore = (function () { var cls = function ContactStore() { this.revisionNumber = new Number(); }; cls.prototype.findContactByRemoteIdAsync = function findContactByRemoteIdAsync(id, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="id" type="String">A param.</param> /// </signature> } cls.prototype.findContactByIdAsync = function findContactByIdAsync(id, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="id" type="String">A param.</param> /// </signature> } cls.prototype.deleteContactAsync = function deleteContactAsync(id, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="id" type="String">A param.</param> /// </signature> } cls.prototype.deleteAsync = function deleteAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.getChangesAsync = function getChangesAsync(baseRevisionNumber, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="baseRevisionNumber" type="Number">A param.</param> /// </signature> } cls.prototype.loadExtendedPropertiesAsync = function loadExtendedPropertiesAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.saveExtendedPropertiesAsync = function saveExtendedPropertiesAsync(data, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="data" type="Object">A param.</param> /// </signature> } cls.prototype.createMeContactAsync = function createMeContactAsync(id, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="id" type="String">A param.</param> /// </signature> } cls.prototype.createContactQuery = function createContactQuery() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="ContactQueryResult" /> /// </signature> return new ContactQueryResult(); } cls.prototype.createContactQuery = function createContactQuery(options) { /// <signature> /// <summary>Function summary.</summary> /// <param name="options" type="ContactQueryOptions">A param.</param> /// <returns type="ContactQueryResult" /> /// </signature> return new ContactQueryResult(); } cls.createOrOpenAsync = function createOrOpenAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.createOrOpenAsync = function createOrOpenAsync(access, sharing, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="access" type="ContactStoreSystemAccessMode">A param.</param> /// <param name="sharing" type="ContactStoreApplicationAccessMode">A param.</param> /// </signature> } return cls; }) (); exports.ContactStore = ContactStore; StoredContact = (function () { var cls = function StoredContact() { this.honorificSuffix = new String(); this.honorificPrefix = new String(); this.givenName = new String(); this.familyName = new String(); this.displayName = new String(); this.displayPicture = new Object(); this.displayPictureDate = new Date(); this.remoteId = new String(); this.id = new String(); this.store = new ContactStore(); }; var cls = function StoredContact(store) { this.honorificSuffix = new String(); this.honorificPrefix = new String(); this.givenName = new String(); this.familyName = new String(); this.displayName = new String(); this.displayPicture = new Object(); this.displayPictureDate = new Date(); this.remoteId = new String(); this.id = new String(); this.store = new ContactStore(); }; var cls = function StoredContact(store, contact) { this.honorificSuffix = new String(); this.honorificPrefix = new String(); this.givenName = new String(); this.familyName = new String(); this.displayName = new String(); this.displayPicture = new Object(); this.displayPictureDate = new Date(); this.remoteId = new String(); this.id = new String(); this.store = new ContactStore(); }; cls.prototype.getExtendedPropertiesAsync = function getExtendedPropertiesAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.saveAsync = function saveAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.replaceExistingContactAsync = function replaceExistingContactAsync(id, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="id" type="String">A param.</param> /// </signature> } cls.prototype.getDisplayPictureAsync = function getDisplayPictureAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.setDisplayPictureAsync = function setDisplayPictureAsync(stream, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="stream" type="Object">A param.</param> /// </signature> } cls.prototype.getPropertiesAsync = function getPropertiesAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.toVcardAsync = function toVcardAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.toVcardAsync = function toVcardAsync(format, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="format" type="VCardFormat">A param.</param> /// </signature> } return cls; }) (); exports.StoredContact = StoredContact; KnownContactProperties = (function () { var cls = function KnownContactProperties() { }; cls.additionalName = new String(); cls.address = new String(); cls.alternateMobileTelephone = new String(); cls.alternateTelephone = new String(); cls.alternateWorkTelephone = new String(); cls.anniversary = new String(); cls.birthdate = new String(); cls.children = new String(); cls.companyName = new String(); cls.companyTelephone = new String(); cls.displayName = new String(); cls.email = new String(); cls.familyName = new String(); cls.givenName = new String(); cls.homeFax = new String(); cls.honorificPrefix = new String(); cls.honorificSuffix = new String(); cls.jobTitle = new String(); cls.manager = new String(); cls.mobileTelephone = new String(); cls.nickname = new String(); cls.notes = new String(); cls.officeLocation = new String(); cls.otherAddress = new String(); cls.otherEmail = new String(); cls.significantOther = new String(); cls.telephone = new String(); cls.url = new String(); cls.workAddress = new String(); cls.workEmail = new String(); cls.workFax = new String(); cls.workTelephone = new String(); cls.yomiCompanyName = new String(); cls.yomiFamilyName = new String(); cls.yomiGivenName = new String(); return cls; }) (); exports.KnownContactProperties = KnownContactProperties; ContactQueryOptions = (function () { var cls = function ContactQueryOptions() { this.orderBy = new ContactQueryResultOrdering(); this.desiredFields = new Object(); }; return cls; }) (); exports.ContactQueryOptions = ContactQueryOptions; ContactQueryResult = (function () { var cls = function ContactQueryResult() { }; cls.prototype.getContactCountAsync = function getContactCountAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.getContactsAsync = function getContactsAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.getContactsAsync = function getContactsAsync(startIndex, maxNumberOfItems, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="startIndex" type="Number">A param.</param> /// <param name="maxNumberOfItems" type="Number">A param.</param> /// </signature> } cls.prototype.getCurrentQueryOptions = function getCurrentQueryOptions() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="ContactQueryOptions" /> /// </signature> return new ContactQueryOptions(); } return cls; }) (); exports.ContactQueryResult = ContactQueryResult; ContactChangeRecord = (function () { var cls = function ContactChangeRecord() { this.changeType = new ContactChangeType(); this.id = new String(); this.remoteId = new String(); this.revisionNumber = new Number(); }; return cls; }) (); exports.ContactChangeRecord = ContactChangeRecord;