UNPKG

sp-jsom-node

Version:

SharePoint JavaScript Object Model for Node.js

1,301 lines (1,107 loc) 244 kB
// JScript File Type.registerNamespace('SP.Publishing'); SP.Publishing.ChannelPermission = function() {} SP.Publishing.ChannelPermission.prototype = { contributor: 0, viewer: 1, owner: 2 } SP.Publishing.ChannelPermission.registerEnum('SP.Publishing.ChannelPermission', false); SP.Publishing.PortalPermission = function() {} SP.Publishing.PortalPermission.prototype = { hubContributor: 0, channelCreator: 1, hubViewer: 2 } SP.Publishing.PortalPermission.registerEnum('SP.Publishing.PortalPermission', false); SP.Publishing.VideoPlaybackOrigin = function() {} SP.Publishing.VideoPlaybackOrigin.prototype = { other: 0, videoPortal: 1, embeddedPlayer: 2 } SP.Publishing.VideoPlaybackOrigin.registerEnum('SP.Publishing.VideoPlaybackOrigin', false); SP.Publishing.VideoProcessingStatus = function() {} SP.Publishing.VideoProcessingStatus.prototype = { pendingProcessing: 0, processing: 1, readyForPlay: 2, errorOnUploading: 3, errorOnProcessing: 4, timeout: 5, unsupportedFormat: 6, corruptedFile: 7 } SP.Publishing.VideoProcessingStatus.registerEnum('SP.Publishing.VideoProcessingStatus', false); SP.Publishing.VideoStreamingFormat = function() {} SP.Publishing.VideoStreamingFormat.prototype = { HLS: 0, streaming: 1 } SP.Publishing.VideoStreamingFormat.registerEnum('SP.Publishing.VideoStreamingFormat', false); SP.Publishing.VideoThumbnailChoices = function() {} SP.Publishing.VideoThumbnailChoices.prototype = { custom: -1, first: 0, second: 1, third: 2, fourth: 3, fifth: 4 } SP.Publishing.VideoThumbnailChoices.registerEnum('SP.Publishing.VideoThumbnailChoices', false); SP.Publishing.ViewControlState = function() {} SP.Publishing.ViewControlState.prototype = { defaultState: 0, popular: 1, newest: 2, myVideos: 3 } SP.Publishing.ViewControlState.registerEnum('SP.Publishing.ViewControlState', false); SP.Publishing.AcronymInformation = function SP_Publishing_AcronymInformation() { SP.Publishing.AcronymInformation.initializeBase(this); } SP.Publishing.AcronymInformation.prototype = { $7_1: null, $I_1: null, $1_1: 0, $3_1: null, get_acronym: function SP_Publishing_AcronymInformation$get_acronym() { return this.$7_1; }, set_acronym: function SP_Publishing_AcronymInformation$set_acronym(value) { this.$7_1 = value; return value; }, get_color: function SP_Publishing_AcronymInformation$get_color() { return this.$I_1; }, set_color: function SP_Publishing_AcronymInformation$set_color(value) { this.$I_1 = value; return value; }, get_lcid: function SP_Publishing_AcronymInformation$get_lcid() { return this.$1_1; }, set_lcid: function SP_Publishing_AcronymInformation$set_lcid(value) { this.$1_1 = value; return value; }, get_text: function SP_Publishing_AcronymInformation$get_text() { return this.$3_1; }, set_text: function SP_Publishing_AcronymInformation$set_text(value) { this.$3_1 = value; return value; }, get_typeId: function SP_Publishing_AcronymInformation$get_typeId() { return '{df8f1d94-c876-4325-8584-95861846041c}'; }, writeToXml: function SP_Publishing_AcronymInformation$writeToXml(writer, serializationContext) { if (!writer) { throw Error.argumentNull('writer'); } if (!serializationContext) { throw Error.argumentNull('serializationContext'); } var $v_0 = [ 'Acronym', 'Color', 'Lcid', 'Text' ]; SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext); SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext); }, initPropertiesFromJson: function SP_Publishing_AcronymInformation$initPropertiesFromJson(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.Acronym; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$7_1 = ($v_0); delete parentNode.Acronym; } $v_0 = parentNode.Color; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$I_1 = ($v_0); delete parentNode.Color; } $v_0 = parentNode.Lcid; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$1_1 = ($v_0); delete parentNode.Lcid; } $v_0 = parentNode.Text; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$3_1 = ($v_0); delete parentNode.Text; } } } SP.Publishing.AddinPlugin = function SP_Publishing_AddinPlugin(context) { SP.Publishing.AddinPlugin.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{698097b9-bbe7-4c07-a37b-23e2f07bc9a4}', arguments) ]); } SP.Publishing.AddinPlugin.newObject = function SP_Publishing_AddinPlugin$newObject(context) { return new SP.Publishing.AddinPlugin(context, new SP.ObjectPathConstructor(context, '{698097b9-bbe7-4c07-a37b-23e2f07bc9a4}', null)); } SP.Publishing.AddinPlugin.prototype = { get_description: function SP_Publishing_AddinPlugin$get_description() { this.checkUninitializedProperty('Description'); return ((this.get_objectData().get_properties()['Description'])); }, set_description: function SP_Publishing_AddinPlugin$set_description(value) { this.get_objectData().get_properties()['Description'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Description', value)); } return value; }, get_markup: function SP_Publishing_AddinPlugin$get_markup() { this.checkUninitializedProperty('Markup'); return ((this.get_objectData().get_properties()['Markup'])); }, set_markup: function SP_Publishing_AddinPlugin$set_markup(value) { this.get_objectData().get_properties()['Markup'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Markup', value)); } return value; }, get_title: function SP_Publishing_AddinPlugin$get_title() { this.checkUninitializedProperty('Title'); return ((this.get_objectData().get_properties()['Title'])); }, set_title: function SP_Publishing_AddinPlugin$set_title(value) { this.get_objectData().get_properties()['Title'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Title', value)); } return value; }, initPropertiesFromJson: function SP_Publishing_AddinPlugin$initPropertiesFromJson(parentNode) { SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.Description; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['Description'] = ($v_0); delete parentNode.Description; } $v_0 = parentNode.Markup; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['Markup'] = ($v_0); delete parentNode.Markup; } $v_0 = parentNode.Title; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['Title'] = ($v_0); delete parentNode.Title; } } } SP.Publishing.AddinPluginPropertyNames = function SP_Publishing_AddinPluginPropertyNames() { } SP.Publishing.AddinSettings = function SP_Publishing_AddinSettings(context, id) { SP.Publishing.AddinSettings.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{7bc23bc0-cb63-4523-b967-a910c8b43668}', arguments) ]); } SP.Publishing.AddinSettings.newObject = function SP_Publishing_AddinSettings$newObject(context, id) { return new SP.Publishing.AddinSettings(context, new SP.ObjectPathConstructor(context, '{7bc23bc0-cb63-4523-b967-a910c8b43668}', [ id ])); } SP.Publishing.AddinSettings.prototype = { get_description: function SP_Publishing_AddinSettings$get_description() { this.checkUninitializedProperty('Description'); return ((this.get_objectData().get_properties()['Description'])); }, set_description: function SP_Publishing_AddinSettings$set_description(value) { this.get_objectData().get_properties()['Description'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Description', value)); } return value; }, get_enabled: function SP_Publishing_AddinSettings$get_enabled() { this.checkUninitializedProperty('Enabled'); return ((this.get_objectData().get_properties()['Enabled'])); }, set_enabled: function SP_Publishing_AddinSettings$set_enabled(value) { this.get_objectData().get_properties()['Enabled'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Enabled', value)); } return value; }, get_headScript: function SP_Publishing_AddinSettings$get_headScript() { this.checkUninitializedProperty('HeadScript'); return ((this.get_objectData().get_properties()['HeadScript'])); }, set_headScript: function SP_Publishing_AddinSettings$set_headScript(value) { this.get_objectData().get_properties()['HeadScript'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'HeadScript', value)); } return value; }, get_htmlEndBody: function SP_Publishing_AddinSettings$get_htmlEndBody() { this.checkUninitializedProperty('HtmlEndBody'); return ((this.get_objectData().get_properties()['HtmlEndBody'])); }, set_htmlEndBody: function SP_Publishing_AddinSettings$set_htmlEndBody(value) { this.get_objectData().get_properties()['HtmlEndBody'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'HtmlEndBody', value)); } return value; }, get_htmlStartBody: function SP_Publishing_AddinSettings$get_htmlStartBody() { this.checkUninitializedProperty('HtmlStartBody'); return ((this.get_objectData().get_properties()['HtmlStartBody'])); }, set_htmlStartBody: function SP_Publishing_AddinSettings$set_htmlStartBody(value) { this.get_objectData().get_properties()['HtmlStartBody'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'HtmlStartBody', value)); } return value; }, get_id: function SP_Publishing_AddinSettings$get_id() { this.checkUninitializedProperty('Id'); return ((this.get_objectData().get_properties()['Id'])); }, get_metaTagPagePropertyMappings: function SP_Publishing_AddinSettings$get_metaTagPagePropertyMappings() { this.checkUninitializedProperty('MetaTagPagePropertyMappings'); return ((this.get_objectData().get_properties()['MetaTagPagePropertyMappings'])); }, set_metaTagPagePropertyMappings: function SP_Publishing_AddinSettings$set_metaTagPagePropertyMappings(value) { this.get_objectData().get_properties()['MetaTagPagePropertyMappings'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'MetaTagPagePropertyMappings', value)); } return value; }, get_namespace: function SP_Publishing_AddinSettings$get_namespace() { this.checkUninitializedProperty('Namespace'); return ((this.get_objectData().get_properties()['Namespace'])); }, set_namespace: function SP_Publishing_AddinSettings$set_namespace(value) { this.get_objectData().get_properties()['Namespace'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Namespace', value)); } return value; }, get_title: function SP_Publishing_AddinSettings$get_title() { this.checkUninitializedProperty('Title'); return ((this.get_objectData().get_properties()['Title'])); }, set_title: function SP_Publishing_AddinSettings$set_title(value) { this.get_objectData().get_properties()['Title'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Title', value)); } return value; }, initPropertiesFromJson: function SP_Publishing_AddinSettings$initPropertiesFromJson(parentNode) { SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.Description; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['Description'] = ($v_0); delete parentNode.Description; } $v_0 = parentNode.Enabled; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['Enabled'] = ($v_0); delete parentNode.Enabled; } $v_0 = parentNode.HeadScript; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['HeadScript'] = ($v_0); delete parentNode.HeadScript; } $v_0 = parentNode.HtmlEndBody; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['HtmlEndBody'] = ($v_0); delete parentNode.HtmlEndBody; } $v_0 = parentNode.HtmlStartBody; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['HtmlStartBody'] = ($v_0); delete parentNode.HtmlStartBody; } $v_0 = parentNode.Id; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['Id'] = ($v_0); delete parentNode.Id; } $v_0 = parentNode.MetaTagPagePropertyMappings; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['MetaTagPagePropertyMappings'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0))); delete parentNode.MetaTagPagePropertyMappings; } $v_0 = parentNode.Namespace; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['Namespace'] = ($v_0); delete parentNode.Namespace; } $v_0 = parentNode.Title; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['Title'] = ($v_0); delete parentNode.Title; } } } SP.Publishing.AddinSettingsPropertyNames = function SP_Publishing_AddinSettingsPropertyNames() { } SP.Publishing.BoostFieldsData = function SP_Publishing_BoostFieldsData() { SP.Publishing.BoostFieldsData.initializeBase(this); } SP.Publishing.BoostFieldsData.prototype = { $D_1: null, $E_1: false, $S_1: null, $V_1: 0, $i_1: 0, $j_1: 0, $p_1: 0, $q_1: 0, get_boostOrderType: function SP_Publishing_BoostFieldsData$get_boostOrderType() { return this.$D_1; }, set_boostOrderType: function SP_Publishing_BoostFieldsData$set_boostOrderType(value) { this.$D_1 = value; return value; }, get_boostUntilSeen: function SP_Publishing_BoostFieldsData$get_boostUntilSeen() { return this.$E_1; }, set_boostUntilSeen: function SP_Publishing_BoostFieldsData$set_boostUntilSeen(value) { this.$E_1 = value; return value; }, get_expiry: function SP_Publishing_BoostFieldsData$get_expiry() { return this.$S_1; }, set_expiry: function SP_Publishing_BoostFieldsData$set_expiry(value) { this.$S_1 = value; return value; }, get_impressions: function SP_Publishing_BoostFieldsData$get_impressions() { return this.$V_1; }, set_impressions: function SP_Publishing_BoostFieldsData$set_impressions(value) { this.$V_1 = value; return value; }, get_nextItemId: function SP_Publishing_BoostFieldsData$get_nextItemId() { return this.$i_1; }, set_nextItemId: function SP_Publishing_BoostFieldsData$set_nextItemId(value) { this.$i_1 = value; return value; }, get_nextItemVersion: function SP_Publishing_BoostFieldsData$get_nextItemVersion() { return this.$j_1; }, set_nextItemVersion: function SP_Publishing_BoostFieldsData$set_nextItemVersion(value) { this.$j_1 = value; return value; }, get_previousItemId: function SP_Publishing_BoostFieldsData$get_previousItemId() { return this.$p_1; }, set_previousItemId: function SP_Publishing_BoostFieldsData$set_previousItemId(value) { this.$p_1 = value; return value; }, get_previousItemVersion: function SP_Publishing_BoostFieldsData$get_previousItemVersion() { return this.$q_1; }, set_previousItemVersion: function SP_Publishing_BoostFieldsData$set_previousItemVersion(value) { this.$q_1 = value; return value; }, get_typeId: function SP_Publishing_BoostFieldsData$get_typeId() { return '{90fb360a-8c0f-44e9-9dfa-487b5735c396}'; }, writeToXml: function SP_Publishing_BoostFieldsData$writeToXml(writer, serializationContext) { if (!writer) { throw Error.argumentNull('writer'); } if (!serializationContext) { throw Error.argumentNull('serializationContext'); } var $v_0 = [ 'BoostOrderType', 'BoostUntilSeen', 'Expiry', 'Impressions', 'NextItemId', 'NextItemVersion', 'PreviousItemId', 'PreviousItemVersion' ]; SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext); SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext); }, initPropertiesFromJson: function SP_Publishing_BoostFieldsData$initPropertiesFromJson(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.BoostOrderType; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$D_1 = ((SP.DataConvert.fixupType(null, $v_0))); delete parentNode.BoostOrderType; } $v_0 = parentNode.BoostUntilSeen; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$E_1 = ((SP.DataConvert.fixupType(null, $v_0))); delete parentNode.BoostUntilSeen; } $v_0 = parentNode.Expiry; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$S_1 = ((SP.DataConvert.fixupType(null, $v_0))); delete parentNode.Expiry; } $v_0 = parentNode.Impressions; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$V_1 = ((SP.DataConvert.fixupType(null, $v_0))); delete parentNode.Impressions; } $v_0 = parentNode.NextItemId; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$i_1 = ((SP.DataConvert.fixupType(null, $v_0))); delete parentNode.NextItemId; } $v_0 = parentNode.NextItemVersion; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$j_1 = ((SP.DataConvert.fixupType(null, $v_0))); delete parentNode.NextItemVersion; } $v_0 = parentNode.PreviousItemId; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$p_1 = ((SP.DataConvert.fixupType(null, $v_0))); delete parentNode.PreviousItemId; } $v_0 = parentNode.PreviousItemVersion; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$q_1 = ((SP.DataConvert.fixupType(null, $v_0))); delete parentNode.PreviousItemVersion; } } } SP.Publishing.CustomizableString = function SP_Publishing_CustomizableString(context, objectPath) { SP.Publishing.CustomizableString.initializeBase(this, [ context, objectPath ]); } SP.Publishing.CustomizableString.prototype = { get_defaultValue: function SP_Publishing_CustomizableString$get_defaultValue() { this.checkUninitializedProperty('DefaultValue'); return ((this.get_objectData().get_properties()['DefaultValue'])); }, get_usesDefaultValue: function SP_Publishing_CustomizableString$get_usesDefaultValue() { this.checkUninitializedProperty('UsesDefaultValue'); return ((this.get_objectData().get_properties()['UsesDefaultValue'])); }, set_usesDefaultValue: function SP_Publishing_CustomizableString$set_usesDefaultValue(value) { this.get_objectData().get_properties()['UsesDefaultValue'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'UsesDefaultValue', value)); } return value; }, get_value: function SP_Publishing_CustomizableString$get_value() { this.checkUninitializedProperty('Value'); return ((this.get_objectData().get_properties()['Value'])); }, set_value: function SP_Publishing_CustomizableString$set_value(value) { this.get_objectData().get_properties()['Value'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Value', value)); } return value; }, initPropertiesFromJson: function SP_Publishing_CustomizableString$initPropertiesFromJson(parentNode) { SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.DefaultValue; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['DefaultValue'] = ($v_0); delete parentNode.DefaultValue; } $v_0 = parentNode.UsesDefaultValue; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['UsesDefaultValue'] = ($v_0); delete parentNode.UsesDefaultValue; } $v_0 = parentNode.Value; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['Value'] = ($v_0); delete parentNode.Value; } } } SP.Publishing.CustomizableStringPropertyNames = function SP_Publishing_CustomizableStringPropertyNames() { } SP.Publishing.DesignPackage = function SP_Publishing_DesignPackage() { } SP.Publishing.DesignPackage.install = function SP_Publishing_DesignPackage$install(context, site, info, path) { if ((!context)) { throw Error.argumentNull('context'); } var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{d21214d9-63f5-488b-a665-2b7f9abc1604}', 'Install', [ site, info, path ]); context.addQuery($v_0); } SP.Publishing.DesignPackage.unInstall = function SP_Publishing_DesignPackage$unInstall(context, site, info) { if ((!context)) { throw Error.argumentNull('context'); } var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{d21214d9-63f5-488b-a665-2b7f9abc1604}', 'UnInstall', [ site, info ]); context.addQuery($v_0); } SP.Publishing.DesignPackage.apply = function SP_Publishing_DesignPackage$apply(context, site, info) { if ((!context)) { throw Error.argumentNull('context'); } var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{d21214d9-63f5-488b-a665-2b7f9abc1604}', 'Apply', [ site, info ]); context.addQuery($v_0); } SP.Publishing.DesignPackage.exportEnterprise = function SP_Publishing_DesignPackage$exportEnterprise(context, site, includeSearchConfiguration) { if ((!context)) { throw Error.argumentNull('context'); } var $v_0; var $v_1 = new SP.ClientActionInvokeStaticMethod(context, '{d21214d9-63f5-488b-a665-2b7f9abc1604}', 'ExportEnterprise', [ site, includeSearchConfiguration ]); context.addQuery($v_1); $v_0 = new SP.Publishing.DesignPackageInfo(); context.addQueryIdAndResultObject($v_1.get_id(), $v_0); return $v_0; } SP.Publishing.DesignPackage.exportSmallBusiness = function SP_Publishing_DesignPackage$exportSmallBusiness(context, site, packageName, includeSearchConfiguration) { if ((!context)) { throw Error.argumentNull('context'); } var $v_0; var $v_1 = new SP.ClientActionInvokeStaticMethod(context, '{d21214d9-63f5-488b-a665-2b7f9abc1604}', 'ExportSmallBusiness', [ site, packageName, includeSearchConfiguration ]); context.addQuery($v_1); $v_0 = new SP.Publishing.DesignPackageInfo(); context.addQueryIdAndResultObject($v_1.get_id(), $v_0); return $v_0; } SP.Publishing.DesignPackageInfo = function SP_Publishing_DesignPackageInfo() { SP.Publishing.DesignPackageInfo.initializeBase(this); } SP.Publishing.DesignPackageInfo.prototype = { $a_1: 0, $c_1: 0, $m_1: null, $n_1: null, get_majorVersion: function SP_Publishing_DesignPackageInfo$get_majorVersion() { return this.$a_1; }, set_majorVersion: function SP_Publishing_DesignPackageInfo$set_majorVersion(value) { this.$a_1 = value; return value; }, get_minorVersion: function SP_Publishing_DesignPackageInfo$get_minorVersion() { return this.$c_1; }, set_minorVersion: function SP_Publishing_DesignPackageInfo$set_minorVersion(value) { this.$c_1 = value; return value; }, get_packageGuid: function SP_Publishing_DesignPackageInfo$get_packageGuid() { return this.$m_1; }, set_packageGuid: function SP_Publishing_DesignPackageInfo$set_packageGuid(value) { this.$m_1 = value; return value; }, get_packageName: function SP_Publishing_DesignPackageInfo$get_packageName() { return this.$n_1; }, set_packageName: function SP_Publishing_DesignPackageInfo$set_packageName(value) { this.$n_1 = value; return value; }, get_typeId: function SP_Publishing_DesignPackageInfo$get_typeId() { return '{5332b37d-a6d1-4231-83cd-d7dd274540b7}'; }, writeToXml: function SP_Publishing_DesignPackageInfo$writeToXml(writer, serializationContext) { if (!writer) { throw Error.argumentNull('writer'); } if (!serializationContext) { throw Error.argumentNull('serializationContext'); } var $v_0 = [ 'MajorVersion', 'MinorVersion', 'PackageGuid', 'PackageName' ]; SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext); SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext); }, initPropertiesFromJson: function SP_Publishing_DesignPackageInfo$initPropertiesFromJson(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.MajorVersion; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$a_1 = ($v_0); delete parentNode.MajorVersion; } $v_0 = parentNode.MinorVersion; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$c_1 = ($v_0); delete parentNode.MinorVersion; } $v_0 = parentNode.PackageGuid; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$m_1 = ($v_0); delete parentNode.PackageGuid; } $v_0 = parentNode.PackageName; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$n_1 = ($v_0); delete parentNode.PackageName; } } } SP.Publishing.EnumerateOnlyVideoCollection = function SP_Publishing_EnumerateOnlyVideoCollection(context, objectPath) { SP.Publishing.EnumerateOnlyVideoCollection.initializeBase(this, [ context, objectPath ]); } SP.Publishing.EnumerateOnlyVideoCollection.prototype = { itemAt: function SP_Publishing_EnumerateOnlyVideoCollection$itemAt(index) { return this.getItemAtIndex(index); }, get_item: function SP_Publishing_EnumerateOnlyVideoCollection$get_item(index) { return this.getItemAtIndex(index); }, get_childItemType: function SP_Publishing_EnumerateOnlyVideoCollection$get_childItemType() { return SP.Publishing.VideoItem; } } SP.Publishing.FeedVideoPageFieldsData = function SP_Publishing_FeedVideoPageFieldsData() { SP.Publishing.FeedVideoPageFieldsData.initializeBase(this); } SP.Publishing.FeedVideoPageFieldsData.prototype = { get_typeId: function SP_Publishing_FeedVideoPageFieldsData$get_typeId() { return '{a4baabef-62f5-4456-b3ce-bb5a6b878952}'; }, writeToXml: function SP_Publishing_FeedVideoPageFieldsData$writeToXml(writer, serializationContext) { if (!writer) { throw Error.argumentNull('writer'); } if (!serializationContext) { throw Error.argumentNull('serializationContext'); } SP.Publishing.RepostPageFieldsData.prototype.writeToXml.call(this, writer, serializationContext); } } SP.Publishing.ImageRendition = function SP_Publishing_ImageRendition() { SP.Publishing.ImageRendition.initializeBase(this); } SP.Publishing.ImageRendition.prototype = { $T_1: null, $U_1: 0, $4_1: 0, $17_1: 0, $0_1: null, $1A_1: 0, $15_1: 0, get_group: function SP_Publishing_ImageRendition$get_group() { return this.$T_1; }, set_group: function SP_Publishing_ImageRendition$set_group(value) { this.$T_1 = value; return value; }, get_height: function SP_Publishing_ImageRendition$get_height() { return this.$U_1; }, set_height: function SP_Publishing_ImageRendition$set_height(value) { this.$U_1 = value; return value; }, get_id: function SP_Publishing_ImageRendition$get_id() { return this.$4_1; }, get_name: function SP_Publishing_ImageRendition$get_name() { return this.$0_1; }, set_name: function SP_Publishing_ImageRendition$set_name(value) { this.$0_1 = value; return value; }, get_version: function SP_Publishing_ImageRendition$get_version() { return this.$1A_1; }, get_width: function SP_Publishing_ImageRendition$get_width() { return this.$15_1; }, set_width: function SP_Publishing_ImageRendition$set_width(value) { this.$15_1 = value; return value; }, get_typeId: function SP_Publishing_ImageRendition$get_typeId() { return '{cb63161f-1f15-446f-9ba9-af89ae03cd45}'; }, writeToXml: function SP_Publishing_ImageRendition$writeToXml(writer, serializationContext) { if (!writer) { throw Error.argumentNull('writer'); } if (!serializationContext) { throw Error.argumentNull('serializationContext'); } var $v_0 = [ 'Group', 'Height', 'Id', 'Name', 'Version', 'Width' ]; SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext); writer.writeStartElement('Property'); writer.writeAttributeString('Name', 'IdCsom'); SP.DataConvert.writeValueToXmlElement(writer, this.$17_1, serializationContext); writer.writeEndElement(); SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext); }, initPropertiesFromJson: function SP_Publishing_ImageRendition$initPropertiesFromJson(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.Group; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$T_1 = ($v_0); delete parentNode.Group; } $v_0 = parentNode.Height; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$U_1 = ($v_0); delete parentNode.Height; } $v_0 = parentNode.Id; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$4_1 = ($v_0); delete parentNode.Id; } $v_0 = parentNode.IdCsom; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$17_1 = ($v_0); delete parentNode.IdCsom; } $v_0 = parentNode.Name; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$0_1 = ($v_0); delete parentNode.Name; } $v_0 = parentNode.Version; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$1A_1 = ($v_0); delete parentNode.Version; } $v_0 = parentNode.Width; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$15_1 = ($v_0); delete parentNode.Width; } } } SP.Publishing.PageLayoutCreationInformation = function SP_Publishing_PageLayoutCreationInformation() { SP.Publishing.PageLayoutCreationInformation.initializeBase(this); } SP.Publishing.PageLayoutCreationInformation.prototype = { $A_1: null, $b_1: null, $f_1: null, $g_1: null, $1B_1: null, get_associatedContentTypeId: function SP_Publishing_PageLayoutCreationInformation$get_associatedContentTypeId() { return this.$A_1; }, set_associatedContentTypeId: function SP_Publishing_PageLayoutCreationInformation$set_associatedContentTypeId(value) { this.$A_1 = value; return value; }, get_masterPageUrl: function SP_Publishing_PageLayoutCreationInformation$get_masterPageUrl() { return this.$b_1; }, set_masterPageUrl: function SP_Publishing_PageLayoutCreationInformation$set_masterPageUrl(value) { this.$b_1 = value; return value; }, get_newPageLayoutEditablePath: function SP_Publishing_PageLayoutCreationInformation$get_newPageLayoutEditablePath() { return this.$f_1; }, set_newPageLayoutEditablePath: function SP_Publishing_PageLayoutCreationInformation$set_newPageLayoutEditablePath(value) { this.$f_1 = value; return value; }, get_newPageLayoutNameWithoutExtension: function SP_Publishing_PageLayoutCreationInformation$get_newPageLayoutNameWithoutExtension() { return this.$g_1; }, set_newPageLayoutNameWithoutExtension: function SP_Publishing_PageLayoutCreationInformation$set_newPageLayoutNameWithoutExtension(value) { this.$g_1 = value; return value; }, get_web: function SP_Publishing_PageLayoutCreationInformation$get_web() { return this.$1B_1; }, set_web: function SP_Publishing_PageLayoutCreationInformation$set_web(value) { this.$1B_1 = value; return value; }, get_typeId: function SP_Publishing_PageLayoutCreationInformation$get_typeId() { return '{d36987c1-ddf0-4e73-8b1a-e7e444ef3d3f}'; }, writeToXml: function SP_Publishing_PageLayoutCreationInformation$writeToXml(writer, serializationContext) { if (!writer) { throw Error.argumentNull('writer'); } if (!serializationContext) { throw Error.argumentNull('serializationContext'); } var $v_0 = [ 'AssociatedContentTypeId', 'MasterPageUrl', 'NewPageLayoutEditablePath', 'NewPageLayoutNameWithoutExtension', 'Web' ]; SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext); SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext); }, initPropertiesFromJson: function SP_Publishing_PageLayoutCreationInformation$initPropertiesFromJson(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.AssociatedContentTypeId; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$A_1 = ($v_0); delete parentNode.AssociatedContentTypeId; } $v_0 = parentNode.MasterPageUrl; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$b_1 = ($v_0); delete parentNode.MasterPageUrl; } $v_0 = parentNode.NewPageLayoutEditablePath; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$f_1 = ($v_0); delete parentNode.NewPageLayoutEditablePath; } $v_0 = parentNode.NewPageLayoutNameWithoutExtension; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$g_1 = ($v_0); delete parentNode.NewPageLayoutNameWithoutExtension; } $v_0 = parentNode.Web; if (!SP.ScriptUtility.isUndefined($v_0)) { delete parentNode.Web; } } } SP.Publishing.PublishingPage = function SP_Publishing_PublishingPage(context, objectPath) { SP.Publishing.PublishingPage.initializeBase(this, [ context, objectPath ]); } SP.Publishing.PublishingPage.getPublishingPage = function SP_Publishing_PublishingPage$getPublishingPage(context, sourceListItem) { if ((!context)) { throw Error.argumentNull('context'); } var $v_0; $v_0 = new SP.Publishing.PublishingPage(context, new SP.ObjectPathStaticMethod(context, '{e361280d-01dc-431a-9823-4afacd06418b}', 'GetPublishingPage', [ sourceListItem ])); return $v_0; } SP.Publishing.PublishingPage.prototype = { addFriendlyUrl: function SP_Publishing_PublishingPage$addFriendlyUrl(friendlyUrlSegment, editableParent, doAddToNavigation) { var $v_0 = this.get_context(); var $v_1; var $v_2 = new SP.ClientActionInvokeMethod(this, 'AddFriendlyUrl', [ friendlyUrlSegment, editableParent, doAddToNavigation ]); $v_0.addQuery($v_2); $v_1 = new SP.StringResult(); $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1); return $v_1; } } SP.Publishing.PublishingPageInformation = function SP_Publishing_PublishingPageInformation() { SP.Publishing.PublishingPageInformation.initializeBase(this); } SP.Publishing.PublishingPageInformation.prototype = { $16_1: null, $0_1: null, $19_1: null, get_folder: function SP_Publishing_PublishingPageInformation$get_folder() { return this.$16_1; }, set_folder: function SP_Publishing_PublishingPageInformation$set_folder(value) { this.$16_1 = value; return value; }, get_name: function SP_Publishing_PublishingPageInformation$get_name() { return this.$0_1; }, set_name: function SP_Publishing_PublishingPageInformation$set_name(value) { this.$0_1 = value; return value; }, get_pageLayoutListItem: function SP_Publishing_PublishingPageInformation$get_pageLayoutListItem() { return this.$19_1; }, set_pageLayoutListItem: function SP_Publishing_PublishingPageInformation$set_pageLayoutListItem(value) { this.$19_1 = value; return value; }, get_typeId: function SP_Publishing_PublishingPageInformation$get_typeId() { return '{68f48886-1e99-4d5a-be5c-f0f0d53f371b}'; }, writeToXml: function SP_Publishing_PublishingPageInformation$writeToXml(writer, serializationContext) { if (!writer) { throw Error.argumentNull('writer'); } if (!serializationContext) { throw Error.argumentNull('serializationContext'); } var $v_0 = [ 'Folder', 'Name', 'PageLayoutListItem' ]; SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext); SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext); }, initPropertiesFromJson: function SP_Publishing_PublishingPageInformation$initPropertiesFromJson(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.Folder; if (!SP.ScriptUtility.isUndefined($v_0)) { delete parentNode.Folder; } $v_0 = parentNode.Name; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$0_1 = ($v_0); delete parentNode.Name; } $v_0 = parentNode.PageLayoutListItem; if (!SP.ScriptUtility.isUndefined($v_0)) { delete parentNode.PageLayoutListItem; } } } SP.Publishing.PublishingSite = function SP_Publishing_PublishingSite(context, objectPath) { SP.Publishing.PublishingSite.initializeBase(this, [ context, objectPath ]); } SP.Publishing.PublishingSite.createPageLayout = function SP_Publishing_PublishingSite$createPageLayout(context, parameters) { if ((!context)) { throw Error.argumentNull('context'); } var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{8a896237-0d29-4a38-a399-c8fde4b09d80}', 'CreatePageLayout', [ parameters ]); context.addQuery($v_0); } SP.Publishing.PublishingWeb = function SP_Publishing_PublishingWeb(context, objectPath) { SP.Publishing.PublishingWeb.initializeBase(this, [ context, objectPath ]); } SP.Publishing.PublishingWeb.getPublishingWeb = function SP_Publishing_PublishingWeb$getPublishingWeb(context, web) { if ((!context)) { throw Error.argumentNull('context'); } var $v_0; $v_0 = new SP.Publishing.PublishingWeb(context, new SP.ObjectPathStaticMethod(context, '{55927360-235b-4ace-9dcf-c574d6e517ea}', 'GetPublishingWeb', [ web ])); return $v_0; } SP.Publishing.PublishingWeb.prototype = { get_web: function SP_Publishing_PublishingWeb$get_web() { var $v_0 = ((this.get_objectData().get_clientObjectProperties()['Web'])); if (SP.ScriptUtility.isUndefined($v_0)) { $v_0 = new SP.Web(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Web')); this.get_objectData().get_clientObjectProperties()['Web'] = $v_0; } return $v_0; }, initPropertiesFromJson: function SP_Publishing_PublishingWeb$initPropertiesFromJson(parentNode) { SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.Web; if (!SP.ScriptUtility.isUndefined($v_0)) { this.updateClientObjectPropertyType('Web', this.get_web(), $v_0); this.get_web().fromJson($v_0); delete parentNode.Web; } }, addPublishingPage: function SP_Publishing_PublishingWeb$addPublishingPage(pageInformation) { var $v_0 = this.get_context(); var $v_1; $v_1 = new SP.Publishing.PublishingPage($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'AddPublishingPage', [ pageInformation ])); $v_1.get_path().setPendingReplace(); var $v_2 = new SP.ObjectIdentityQuery($v_1.get_path()); $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1); $v_0.addQuery($v_2); return $v_1; } } SP.Publishing.PublishingWebObjectPropertyNames = function SP_Publishing_PublishingWebObjectPropertyNames() { } SP.Publishing.RepostPageFieldsData = function SP_Publishing_RepostPageFieldsData() { SP.Publishing.RepostPageFieldsData.initializeBase(this); } SP.Publishing.RepostPageFieldsData.prototype = { get_typeId: function SP_Publishing_RepostPageFieldsData$get_typeId() { return '{1552a3a5-4954-417a-8568-2ca8b0495050}'; }, writeToXml: function SP_Publishing_RepostPageFieldsData$writeToXml(writer, serializationContext) { if (!writer) { throw Error.argumentNull('writer'); } if (!serializationContext) { throw Error.argumentNull('serializationContext'); } SP.Publishing.SitePageFieldsData.prototype.writeToXml.call(this, writer, serializationContext); } } SP.Publishing.ScheduledItem = function SP_Publishing_ScheduledItem(context, objectPath) { SP.Publishing.ScheduledItem.initializeBase(this, [ context, objectPath ]); } SP.Publishing.ScheduledItem.prototype = { get_endDate: function SP_Publishing_ScheduledItem$get_endDate() { this.checkUninitializedProperty('EndDate'); return ((this.get_objectData().get_properties()['EndDate'])); }, set_endDate: function SP_Publishing_ScheduledItem$set_endDate(value) { this.get_objectData().get_properties()['EndDate'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EndDate', value)); } return value; }, get_listItem: function SP_Publishing_ScheduledItem$get_listItem() { var $v_0 = ((this.get_objectData().get_clientObjectProperties()['ListItem'])); if (SP.ScriptUtility.isUndefined($v_0)) { $v_0 = new SP.ListItem(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'ListItem')); this.get_objectData().get_clientObjectProperties()['ListItem'] = $v_0; } return $v_0; }, get_startDate: function SP_Publishing_ScheduledItem$get_startDate() { this.checkUninitializedProperty('StartDate'); return ((this.get_objectData().get_properties()['StartDate'])); }, set_startDate: function SP_Publishing_ScheduledItem$set_startDate(value) { this.get_objectData().get_properties()['StartDate'] = value; if ((this.get_context())) { this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'StartDate', value)); } return value; }, initPropertiesFromJson: function SP_Publishing_ScheduledItem$initPropertiesFromJson(parentNode) { SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.EndDate; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['EndDate'] = ($v_0); delete parentNode.EndDate; } $v_0 = parentNode.ListItem; if (!SP.ScriptUtility.isUndefined($v_0)) { this.updateClientObjectPropertyType('ListItem', this.get_listItem(), $v_0); this.get_listItem().fromJson($v_0); delete parentNode.ListItem; } $v_0 = parentNode.StartDate; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['StartDate'] = ($v_0); delete parentNode.StartDate; } }, schedule: function SP_Publishing_ScheduledItem$schedule(approvalComment) { var $v_0 = this.get_context(); var $v_1 = new SP.ClientActionInvokeMethod(this, 'Schedule', [ approvalComment ]); $v_0.addQuery($v_1); } } SP.Publishing.ScheduledItemPropertyNames = function SP_Publishing_ScheduledItemPropertyNames() { } SP.Publishing.ScheduledItemObjectPropertyNames = function SP_Publishing_ScheduledItemObjectPropertyNames() { } SP.Publishing.Search = function SP_Publishing_Search(context, objectPath) { SP.Publishing.Search.initializeBase(this, [ context, objectPath ]); } SP.Publishing.Search.prototype = { get_queryLanguages: function SP_Publishing_Search$get_queryLanguages() { this.checkUninitializedProperty('QueryLanguages'); return ((this.get_objectData().get_properties()['QueryLanguages'])); }, initPropertiesFromJson: function SP_Publishing_Search$initPropertiesFromJson(parentNode) { SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.QueryLanguages; if (!SP.ScriptUtility.isUndefined($v_0)) { this.get_objectData().get_properties()['QueryLanguages'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0))); delete parentNode.QueryLanguages; } } } SP.Publishing.SearchPropertyNames = function SP_Publishing_SearchPropertyNames() { } SP.Publishing.SharePagePreviewByEmailFieldsData = function SP_Publishing_SharePagePreviewByEmailFieldsData() { SP.Publishing.SharePagePreviewByEmailFieldsData.initializeBase(this); } SP.Publ