UNPKG

sp-jsom-node

Version:

SharePoint JavaScript Object Model for Node.js

1,291 lines (1,114 loc) 130 kB
// JScript File Type.registerNamespace('SP.Publishing'); SP.Publishing.AcronymInformation = function SP_Publishing_AcronymInformation() { SP.Publishing.AcronymInformation.initializeBase(this); } SP.Publishing.AcronymInformation.prototype = { $4_1: null, $9_1: null, $0_1: 0, $3_1: null, get_acronym: function SP_Publishing_AcronymInformation$get_acronym$in() { return this.$4_1; }, set_acronym: function SP_Publishing_AcronymInformation$set_acronym$in(value) { this.$4_1 = value; return value; }, get_color: function SP_Publishing_AcronymInformation$get_color$in() { return this.$9_1; }, set_color: function SP_Publishing_AcronymInformation$set_color$in(value) { this.$9_1 = value; return value; }, get_lcid: function SP_Publishing_AcronymInformation$get_lcid$in() { return this.$0_1; }, set_lcid: function SP_Publishing_AcronymInformation$set_lcid$in(value) { this.$0_1 = value; return value; }, get_text: function SP_Publishing_AcronymInformation$get_text$in() { return this.$3_1; }, set_text: function SP_Publishing_AcronymInformation$set_text$in(value) { this.$3_1 = value; return value; }, get_typeId: function SP_Publishing_AcronymInformation$get_typeId$in() { return '{df8f1d94-c876-4325-8584-95861846041c}'; }, writeToXml: function SP_Publishing_AcronymInformation$writeToXml$in(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$in(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.Acronym; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$4_1 = ($v_0); delete parentNode.Acronym; } $v_0 = parentNode.Color; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$9_1 = ($v_0); delete parentNode.Color; } $v_0 = parentNode.Lcid; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$0_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$st(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$in() { this.checkUninitializedProperty('Description'); return (this.get_objectData().get_properties()['Description']); }, set_description: function SP_Publishing_AddinPlugin$set_description$in(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$in() { this.checkUninitializedProperty('Markup'); return (this.get_objectData().get_properties()['Markup']); }, set_markup: function SP_Publishing_AddinPlugin$set_markup$in(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$in() { this.checkUninitializedProperty('Title'); return (this.get_objectData().get_properties()['Title']); }, set_title: function SP_Publishing_AddinPlugin$set_title$in(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$in(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$st(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$in() { this.checkUninitializedProperty('Description'); return (this.get_objectData().get_properties()['Description']); }, set_description: function SP_Publishing_AddinSettings$set_description$in(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$in() { this.checkUninitializedProperty('Enabled'); return (this.get_objectData().get_properties()['Enabled']); }, set_enabled: function SP_Publishing_AddinSettings$set_enabled$in(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$in() { this.checkUninitializedProperty('HeadScript'); return (this.get_objectData().get_properties()['HeadScript']); }, set_headScript: function SP_Publishing_AddinSettings$set_headScript$in(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$in() { this.checkUninitializedProperty('HtmlEndBody'); return (this.get_objectData().get_properties()['HtmlEndBody']); }, set_htmlEndBody: function SP_Publishing_AddinSettings$set_htmlEndBody$in(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$in() { this.checkUninitializedProperty('HtmlStartBody'); return (this.get_objectData().get_properties()['HtmlStartBody']); }, set_htmlStartBody: function SP_Publishing_AddinSettings$set_htmlStartBody$in(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$in() { this.checkUninitializedProperty('Id'); return (this.get_objectData().get_properties()['Id']); }, get_metaTagPagePropertyMappings: function SP_Publishing_AddinSettings$get_metaTagPagePropertyMappings$in() { this.checkUninitializedProperty('MetaTagPagePropertyMappings'); return (this.get_objectData().get_properties()['MetaTagPagePropertyMappings']); }, set_metaTagPagePropertyMappings: function SP_Publishing_AddinSettings$set_metaTagPagePropertyMappings$in(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$in() { this.checkUninitializedProperty('Namespace'); return (this.get_objectData().get_properties()['Namespace']); }, set_namespace: function SP_Publishing_AddinSettings$set_namespace$in(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$in() { this.checkUninitializedProperty('Title'); return (this.get_objectData().get_properties()['Title']); }, set_title: function SP_Publishing_AddinSettings$set_title$in(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$in(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.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$in() { this.checkUninitializedProperty('DefaultValue'); return (this.get_objectData().get_properties()['DefaultValue']); }, get_usesDefaultValue: function SP_Publishing_CustomizableString$get_usesDefaultValue$in() { this.checkUninitializedProperty('UsesDefaultValue'); return (this.get_objectData().get_properties()['UsesDefaultValue']); }, set_usesDefaultValue: function SP_Publishing_CustomizableString$set_usesDefaultValue$in(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$in() { this.checkUninitializedProperty('Value'); return (this.get_objectData().get_properties()['Value']); }, set_value: function SP_Publishing_CustomizableString$set_value$in(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$in(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$st(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$st(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$st(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$st(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$st(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 = { $I_1: 0, $K_1: 0, $O_1: null, $P_1: null, get_majorVersion: function SP_Publishing_DesignPackageInfo$get_majorVersion$in() { return this.$I_1; }, set_majorVersion: function SP_Publishing_DesignPackageInfo$set_majorVersion$in(value) { this.$I_1 = value; return value; }, get_minorVersion: function SP_Publishing_DesignPackageInfo$get_minorVersion$in() { return this.$K_1; }, set_minorVersion: function SP_Publishing_DesignPackageInfo$set_minorVersion$in(value) { this.$K_1 = value; return value; }, get_packageGuid: function SP_Publishing_DesignPackageInfo$get_packageGuid$in() { return this.$O_1; }, set_packageGuid: function SP_Publishing_DesignPackageInfo$set_packageGuid$in(value) { this.$O_1 = value; return value; }, get_packageName: function SP_Publishing_DesignPackageInfo$get_packageName$in() { return this.$P_1; }, set_packageName: function SP_Publishing_DesignPackageInfo$set_packageName$in(value) { this.$P_1 = value; return value; }, get_typeId: function SP_Publishing_DesignPackageInfo$get_typeId$in() { return '{5332b37d-a6d1-4231-83cd-d7dd274540b7}'; }, writeToXml: function SP_Publishing_DesignPackageInfo$writeToXml$in(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$in(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.MajorVersion; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$I_1 = ($v_0); delete parentNode.MajorVersion; } $v_0 = parentNode.MinorVersion; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$K_1 = ($v_0); delete parentNode.MinorVersion; } $v_0 = parentNode.PackageGuid; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$O_1 = ($v_0); delete parentNode.PackageGuid; } $v_0 = parentNode.PackageName; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$P_1 = ($v_0); delete parentNode.PackageName; } } } SP.Publishing.ImageRendition = function SP_Publishing_ImageRendition() { SP.Publishing.ImageRendition.initializeBase(this); } SP.Publishing.ImageRendition.prototype = { $D_1: null, $E_1: 0, $V_1: 0, $W_1: 0, $2_1: null, $Y_1: 0, $T_1: 0, get_group: function SP_Publishing_ImageRendition$get_group$in() { return this.$D_1; }, set_group: function SP_Publishing_ImageRendition$set_group$in(value) { this.$D_1 = value; return value; }, get_height: function SP_Publishing_ImageRendition$get_height$in() { return this.$E_1; }, set_height: function SP_Publishing_ImageRendition$set_height$in(value) { this.$E_1 = value; return value; }, get_id: function SP_Publishing_ImageRendition$get_id$in() { return this.$V_1; }, get_name: function SP_Publishing_ImageRendition$get_name$in() { return this.$2_1; }, set_name: function SP_Publishing_ImageRendition$set_name$in(value) { this.$2_1 = value; return value; }, get_version: function SP_Publishing_ImageRendition$get_version$in() { return this.$Y_1; }, get_width: function SP_Publishing_ImageRendition$get_width$in() { return this.$T_1; }, set_width: function SP_Publishing_ImageRendition$set_width$in(value) { this.$T_1 = value; return value; }, get_typeId: function SP_Publishing_ImageRendition$get_typeId$in() { return '{cb63161f-1f15-446f-9ba9-af89ae03cd45}'; }, writeToXml: function SP_Publishing_ImageRendition$writeToXml$in(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.$W_1, serializationContext); writer.writeEndElement(); SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext); }, initPropertiesFromJson: function SP_Publishing_ImageRendition$initPropertiesFromJson$in(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.Group; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$D_1 = ($v_0); delete parentNode.Group; } $v_0 = parentNode.Height; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$E_1 = ($v_0); delete parentNode.Height; } $v_0 = parentNode.Id; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$V_1 = ($v_0); delete parentNode.Id; } $v_0 = parentNode.IdCsom; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$W_1 = ($v_0); delete parentNode.IdCsom; } $v_0 = parentNode.Name; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$2_1 = ($v_0); delete parentNode.Name; } $v_0 = parentNode.Version; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$Y_1 = ($v_0); delete parentNode.Version; } $v_0 = parentNode.Width; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$T_1 = ($v_0); delete parentNode.Width; } } } SP.Publishing.PageLayoutCreationInformation = function SP_Publishing_PageLayoutCreationInformation() { SP.Publishing.PageLayoutCreationInformation.initializeBase(this); } SP.Publishing.PageLayoutCreationInformation.prototype = { $5_1: null, $J_1: null, $M_1: null, $N_1: null, $Z_1: null, get_associatedContentTypeId: function SP_Publishing_PageLayoutCreationInformation$get_associatedContentTypeId$in() { return this.$5_1; }, set_associatedContentTypeId: function SP_Publishing_PageLayoutCreationInformation$set_associatedContentTypeId$in(value) { this.$5_1 = value; return value; }, get_masterPageUrl: function SP_Publishing_PageLayoutCreationInformation$get_masterPageUrl$in() { return this.$J_1; }, set_masterPageUrl: function SP_Publishing_PageLayoutCreationInformation$set_masterPageUrl$in(value) { this.$J_1 = value; return value; }, get_newPageLayoutEditablePath: function SP_Publishing_PageLayoutCreationInformation$get_newPageLayoutEditablePath$in() { return this.$M_1; }, set_newPageLayoutEditablePath: function SP_Publishing_PageLayoutCreationInformation$set_newPageLayoutEditablePath$in(value) { this.$M_1 = value; return value; }, get_newPageLayoutNameWithoutExtension: function SP_Publishing_PageLayoutCreationInformation$get_newPageLayoutNameWithoutExtension$in() { return this.$N_1; }, set_newPageLayoutNameWithoutExtension: function SP_Publishing_PageLayoutCreationInformation$set_newPageLayoutNameWithoutExtension$in(value) { this.$N_1 = value; return value; }, get_web: function SP_Publishing_PageLayoutCreationInformation$get_web$in() { return this.$Z_1; }, set_web: function SP_Publishing_PageLayoutCreationInformation$set_web$in(value) { this.$Z_1 = value; return value; }, get_typeId: function SP_Publishing_PageLayoutCreationInformation$get_typeId$in() { return '{d36987c1-ddf0-4e73-8b1a-e7e444ef3d3f}'; }, writeToXml: function SP_Publishing_PageLayoutCreationInformation$writeToXml$in(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$in(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.AssociatedContentTypeId; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$5_1 = ($v_0); delete parentNode.AssociatedContentTypeId; } $v_0 = parentNode.MasterPageUrl; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$J_1 = ($v_0); delete parentNode.MasterPageUrl; } $v_0 = parentNode.NewPageLayoutEditablePath; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$M_1 = ($v_0); delete parentNode.NewPageLayoutEditablePath; } $v_0 = parentNode.NewPageLayoutNameWithoutExtension; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$N_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$st(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$in(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 = { $U_1: null, $2_1: null, $X_1: null, get_folder: function SP_Publishing_PublishingPageInformation$get_folder$in() { return this.$U_1; }, set_folder: function SP_Publishing_PublishingPageInformation$set_folder$in(value) { this.$U_1 = value; return value; }, get_name: function SP_Publishing_PublishingPageInformation$get_name$in() { return this.$2_1; }, set_name: function SP_Publishing_PublishingPageInformation$set_name$in(value) { this.$2_1 = value; return value; }, get_pageLayoutListItem: function SP_Publishing_PublishingPageInformation$get_pageLayoutListItem$in() { return this.$X_1; }, set_pageLayoutListItem: function SP_Publishing_PublishingPageInformation$set_pageLayoutListItem$in(value) { this.$X_1 = value; return value; }, get_typeId: function SP_Publishing_PublishingPageInformation$get_typeId$in() { return '{68f48886-1e99-4d5a-be5c-f0f0d53f371b}'; }, writeToXml: function SP_Publishing_PublishingPageInformation$writeToXml$in(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$in(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.$2_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$st(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$st(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$in() { 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$in(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$in(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.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$in() { this.checkUninitializedProperty('EndDate'); return (this.get_objectData().get_properties()['EndDate']); }, set_endDate: function SP_Publishing_ScheduledItem$set_endDate$in(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$in() { 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$in() { this.checkUninitializedProperty('StartDate'); return (this.get_objectData().get_properties()['StartDate']); }, set_startDate: function SP_Publishing_ScheduledItem$set_startDate$in(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$in(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$in(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.SharePagePreviewByEmailFieldsData = function SP_Publishing_SharePagePreviewByEmailFieldsData() { SP.Publishing.SharePagePreviewByEmailFieldsData.initializeBase(this); } SP.Publishing.SharePagePreviewByEmailFieldsData.prototype = { $1_1: null, $Q_1: null, get_message: function SP_Publishing_SharePagePreviewByEmailFieldsData$get_message$in() { return this.$1_1; }, set_message: function SP_Publishing_SharePagePreviewByEmailFieldsData$set_message$in(value) { this.$1_1 = value; return value; }, get_recipientEmails: function SP_Publishing_SharePagePreviewByEmailFieldsData$get_recipientEmails$in() { return this.$Q_1; }, set_recipientEmails: function SP_Publishing_SharePagePreviewByEmailFieldsData$set_recipientEmails$in(value) { this.$Q_1 = value; return value; }, get_typeId: function SP_Publishing_SharePagePreviewByEmailFieldsData$get_typeId$in() { return '{848bcecf-dd16-4694-86a5-ac9abb70628d}'; }, writeToXml: function SP_Publishing_SharePagePreviewByEmailFieldsData$writeToXml$in(writer, serializationContext) { if (!writer) { throw Error.argumentNull('writer'); } if (!serializationContext) { throw Error.argumentNull('serializationContext'); } var $v_0 = [ 'message', 'recipientEmails' ]; SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext); SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext); }, initPropertiesFromJson: function SP_Publishing_SharePagePreviewByEmailFieldsData$initPropertiesFromJson$in(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.message; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$1_1 = ($v_0); delete parentNode.message; } $v_0 = parentNode.recipientEmails; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$Q_1 = ((SP.DataConvert.fixupType(null, $v_0))); delete parentNode.recipientEmails; } } } SP.Publishing.SiteImageRenditions = function SP_Publishing_SiteImageRenditions() { } SP.Publishing.SiteImageRenditions.getRenditions = function SP_Publishing_SiteImageRenditions$getRenditions$st(context) { if (!context) { throw Error.argumentNull('context'); } var $v_0; var $v_1 = new SP.ClientActionInvokeStaticMethod(context, '{324675a4-aa0d-47db-a937-c2e5dc53457e}', 'GetRenditions', null); context.addQuery($v_1); $v_0 = (([])); context.addQueryIdAndResultObject($v_1.get_id(), $v_0); return $v_0; } SP.Publishing.SiteImageRenditions.setRenditions = function SP_Publishing_SiteImageRenditions$setRenditions$st(context, renditions) { if (!context) { throw Error.argumentNull('context'); } var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{324675a4-aa0d-47db-a937-c2e5dc53457e}', 'SetRenditions', [ renditions ]); context.addQuery($v_0); } SP.Publishing.SitePageFieldsData = function SP_Publishing_SitePageFieldsData() { SP.Publishing.SitePageFieldsData.initializeBase(this); } SP.Publishing.SitePageFieldsData.prototype = { $6_1: null, $7_1: null, $8_1: null, $H_1: null, $L_1: null, $R_1: null, get_bannerImageUrl: function SP_Publishing_SitePageFieldsData$get_bannerImageUrl$in() { return this.$6_1; }, set_bannerImageUrl: function SP_Publishing_SitePageFieldsData$set_bannerImageUrl$in(value) { this.$6_1 = value; return value; }, get_canvasContent1: function SP_Publishing_SitePageFieldsData$get_canvasContent1$in() { return this.$7_1; }, set_canvasContent1: function SP_Publishing_SitePageFieldsData$set_canvasContent1$in(value) { this.$7_1 = value; return value; }, get_canvasJson1: function SP_Publishing_SitePageFieldsData$get_canvasJson1$in() { return this.$8_1; }, set_canvasJson1: function SP_Publishing_SitePageFieldsData$set_canvasJson1$in(value) { this.$8_1 = value; return value; }, get_layoutWebpartsContent: function SP_Publishing_SitePageFieldsData$get_layoutWebpartsContent$in() { return this.$H_1; }, set_layoutWebpartsContent: function SP_Publishing_SitePageFieldsData$set_layoutWebpartsContent$in(value) { this.$H_1 = value; return value; }, get_modified: function SP_Publishing_SitePageFieldsData$get_modified$in() { return this.$L_1; }, set_modified: function SP_Publishing_SitePageFieldsData$set_modified$in(value) { this.$L_1 = value; return value; }, get_title: function SP_Publishing_SitePageFieldsData$get_title$in() { return this.$R_1; }, set_title: function SP_Publishing_SitePageFieldsData$set_title$in(value) { this.$R_1 = value; return value; }, get_typeId: function SP_Publishing_SitePageFieldsData$get_typeId$in() { return '{1cd13100-0afe-4014-be26-fdcb2b10eba5}'; }, writeToXml: function SP_Publishing_SitePageFieldsData$writeToXml$in(writer, serializationContext) { if (!writer) { throw Error.argumentNull('writer'); } if (!serializationContext) { throw Error.argumentNull('serializationContext'); } var $v_0 = [ 'BannerImageUrl', 'CanvasContent1', 'CanvasJson1', 'LayoutWebpartsContent', 'Modified', 'Title' ]; SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext); SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext); }, initPropertiesFromJson: function SP_Publishing_SitePageFieldsData$initPropertiesFromJson$in(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.BannerImageUrl; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$6_1 = ($v_0); delete parentNode.BannerImageUrl; } $v_0 = parentNode.CanvasContent1; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$7_1 = ($v_0); delete parentNode.CanvasContent1; } $v_0 = parentNode.CanvasJson1; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$8_1 = ($v_0); delete parentNode.CanvasJson1; } $v_0 = parentNode.LayoutWebpartsContent; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$H_1 = ($v_0); delete parentNode.LayoutWebpartsContent; } $v_0 = parentNode.Modified; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$L_1 = ($v_0); delete parentNode.Modified; } $v_0 = parentNode.Title; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$R_1 = ($v_0); delete parentNode.Title; } } } SP.Publishing.SitePageVersionInfo = function SP_Publishing_SitePageVersionInfo() { SP.Publishing.SitePageVersionInfo.initializeBase(this); } SP.Publishing.SitePageVersionInfo.prototype = { $F_1: null, $G_1: null, get_lastVersionCreated: function SP_Publishing_SitePageVersionInfo$get_lastVersionCreated$in() { return this.$F_1; }, set_lastVersionCreated: function SP_Publishing_SitePageVersionInfo$set_lastVersionCreated$in(value) { this.$F_1 = value; return value; }, get_lastVersionCreatedBy: function SP_Publishing_SitePageVersionInfo$get_lastVersionCreatedBy$in() { return this.$G_1; }, set_lastVersionCreatedBy: function SP_Publishing_SitePageVersionInfo$set_lastVersionCreatedBy$in(value) { this.$G_1 = value; return value; }, get_typeId: function SP_Publishing_SitePageVersionInfo$get_typeId$in() { return '{a76110e2-0be3-4472-950b-f45d7efab716}'; }, writeToXml: function SP_Publishing_SitePageVersionInfo$writeToXml$in(writer, serializationContext) { if (!writer) { throw Error.argumentNull('writer'); } if (!serializationContext) { throw Error.argumentNull('serializationContext'); } var $v_0 = [ 'LastVersionCreated', 'LastVersionCreatedBy' ]; SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext); SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext); }, initPropertiesFromJson: function SP_Publishing_SitePageVersionInfo$initPropertiesFromJson$in(parentNode) { SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode); var $v_0; $v_0 = parentNode.LastVersionCreated; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$F_1 = ($v_0); delete parentNode.LastVersionCreated; } $v_0 = parentNode.LastVersionCreatedBy; if (!SP.ScriptUtility.isUndefined($v_0)) { this.$G_1 = ($v_0); delete parentNode.LastVersionCreatedBy; } } } SP.Publishing.SiteServicesAddins = function SP_Publishing_SiteServicesAddins() { } SP.Publishing.SiteServicesAddins.getSettings = function SP_Publishing_SiteServicesAddins$getSettings$st(context, addinId) { if (!context) { throw Error.argumentNull('context'); } var $v_0; $v_0 = new SP.Publishing.AddinSettings(context, new SP.ObjectPathStaticMethod(context, '{31738358-baad-400c-9678-b5528c432ab5}', 'GetSettings', [ addinId ])); return $v_0; } SP.Publishing.SiteServicesAddins.setSettings = function SP_Publishing_SiteServicesAddins$setSettings$st(context, addin) { if (!context) { throw Error.argumentNull('context'); } var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{31738358-baad-400c-9678-b5528c432ab5}', 'SetSettings', [ addin ]); context.addQuery($v_0); } SP.Publishing.SiteServicesAddins.deleteSettings = function SP_Publishing_SiteServicesAddins$deleteSettings$st(context, addinId) { if (!context) { throw Error.argumentNull('context'); } var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{31738358-baad-400c-9678-b5528c432ab5}', 'DeleteSettings', [ addinId ]); context.addQuery($v_0); } SP.Publishing.SiteServicesAddins.getPlugin = function SP_Publishing_SiteServicesAddins$getPlugin$st(context, pluginName) { if (!context) { throw Error.argumentNull('context'); } var $v_0; $v_0 = new SP.Publishing.AddinPlugin(context, new SP.ObjectPathStaticMethod(context, '{31738358-baad-400c-9678-b5528c432ab5}', 'GetPlugin', [ pluginName ])); return $v_0; } SP.Publishing.SiteServicesAddins.setPlugin = function SP_Publishing_SiteServicesAddins$setPlugin$st(context, plugin) { if (!context) { throw Error.argumentNull('context'); } var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{31738358-baad-400c-9678-b5528c432ab5}', 'SetPlugin', [ plugin ]); context.addQuery($v_0); } SP.Publishing.SiteServicesAddins.deletePlugin = function SP_Publishing_SiteServicesAddins$deletePlugin$st(context, pluginName) { if (!context) { throw Error.argumentNull('context'); } var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{31738358-baad-4