sp-jsom-node
Version:
SharePoint JavaScript Object Model for Node.js
1,205 lines (1,042 loc) • 115 kB
JavaScript
// JScript File
Type.registerNamespace('SP.Publishing');
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 = {
$4_1: 0,
$6_1: 0,
$9_1: null,
$A_1: null,
get_majorVersion: function SP_Publishing_DesignPackageInfo$get_majorVersion$in() {
return this.$4_1;
},
set_majorVersion: function SP_Publishing_DesignPackageInfo$set_majorVersion$in(value) {
this.$4_1 = value;
return value;
},
get_minorVersion: function SP_Publishing_DesignPackageInfo$get_minorVersion$in() {
return this.$6_1;
},
set_minorVersion: function SP_Publishing_DesignPackageInfo$set_minorVersion$in(value) {
this.$6_1 = value;
return value;
},
get_packageGuid: function SP_Publishing_DesignPackageInfo$get_packageGuid$in() {
return this.$9_1;
},
set_packageGuid: function SP_Publishing_DesignPackageInfo$set_packageGuid$in(value) {
this.$9_1 = value;
return value;
},
get_packageName: function SP_Publishing_DesignPackageInfo$get_packageName$in() {
return this.$A_1;
},
set_packageName: function SP_Publishing_DesignPackageInfo$set_packageName$in(value) {
this.$A_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.$4_1 = ($v_0);
delete parentNode.MajorVersion;
}
$v_0 = parentNode.MinorVersion;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$6_1 = ($v_0);
delete parentNode.MinorVersion;
}
$v_0 = parentNode.PackageGuid;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$9_1 = ($v_0);
delete parentNode.PackageGuid;
}
$v_0 = parentNode.PackageName;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$A_1 = ($v_0);
delete parentNode.PackageName;
}
}
}
SP.Publishing.ImageRendition = function SP_Publishing_ImageRendition() {
SP.Publishing.ImageRendition.initializeBase(this);
}
SP.Publishing.ImageRendition.prototype = {
$2_1: null,
$3_1: 0,
$D_1: 0,
$E_1: 0,
$0_1: null,
$G_1: 0,
$B_1: 0,
get_group: function SP_Publishing_ImageRendition$get_group$in() {
return this.$2_1;
},
set_group: function SP_Publishing_ImageRendition$set_group$in(value) {
this.$2_1 = value;
return value;
},
get_height: function SP_Publishing_ImageRendition$get_height$in() {
return this.$3_1;
},
set_height: function SP_Publishing_ImageRendition$set_height$in(value) {
this.$3_1 = value;
return value;
},
get_id: function SP_Publishing_ImageRendition$get_id$in() {
return this.$D_1;
},
get_name: function SP_Publishing_ImageRendition$get_name$in() {
return this.$0_1;
},
set_name: function SP_Publishing_ImageRendition$set_name$in(value) {
this.$0_1 = value;
return value;
},
get_version: function SP_Publishing_ImageRendition$get_version$in() {
return this.$G_1;
},
get_width: function SP_Publishing_ImageRendition$get_width$in() {
return this.$B_1;
},
set_width: function SP_Publishing_ImageRendition$set_width$in(value) {
this.$B_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.$E_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.$2_1 = ($v_0);
delete parentNode.Group;
}
$v_0 = parentNode.Height;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$3_1 = ($v_0);
delete parentNode.Height;
}
$v_0 = parentNode.Id;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$D_1 = ($v_0);
delete parentNode.Id;
}
$v_0 = parentNode.IdCsom;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$E_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.$G_1 = ($v_0);
delete parentNode.Version;
}
$v_0 = parentNode.Width;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$B_1 = ($v_0);
delete parentNode.Width;
}
}
}
SP.Publishing.PageLayoutCreationInformation = function SP_Publishing_PageLayoutCreationInformation() {
SP.Publishing.PageLayoutCreationInformation.initializeBase(this);
}
SP.Publishing.PageLayoutCreationInformation.prototype = {
$1_1: null,
$5_1: null,
$7_1: null,
$8_1: null,
$H_1: null,
get_associatedContentTypeId: function SP_Publishing_PageLayoutCreationInformation$get_associatedContentTypeId$in() {
return this.$1_1;
},
set_associatedContentTypeId: function SP_Publishing_PageLayoutCreationInformation$set_associatedContentTypeId$in(value) {
this.$1_1 = value;
return value;
},
get_masterPageUrl: function SP_Publishing_PageLayoutCreationInformation$get_masterPageUrl$in() {
return this.$5_1;
},
set_masterPageUrl: function SP_Publishing_PageLayoutCreationInformation$set_masterPageUrl$in(value) {
this.$5_1 = value;
return value;
},
get_newPageLayoutEditablePath: function SP_Publishing_PageLayoutCreationInformation$get_newPageLayoutEditablePath$in() {
return this.$7_1;
},
set_newPageLayoutEditablePath: function SP_Publishing_PageLayoutCreationInformation$set_newPageLayoutEditablePath$in(value) {
this.$7_1 = value;
return value;
},
get_newPageLayoutNameWithoutExtension: function SP_Publishing_PageLayoutCreationInformation$get_newPageLayoutNameWithoutExtension$in() {
return this.$8_1;
},
set_newPageLayoutNameWithoutExtension: function SP_Publishing_PageLayoutCreationInformation$set_newPageLayoutNameWithoutExtension$in(value) {
this.$8_1 = value;
return value;
},
get_web: function SP_Publishing_PageLayoutCreationInformation$get_web$in() {
return this.$H_1;
},
set_web: function SP_Publishing_PageLayoutCreationInformation$set_web$in(value) {
this.$H_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.$1_1 = ($v_0);
delete parentNode.AssociatedContentTypeId;
}
$v_0 = parentNode.MasterPageUrl;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$5_1 = ($v_0);
delete parentNode.MasterPageUrl;
}
$v_0 = parentNode.NewPageLayoutEditablePath;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$7_1 = ($v_0);
delete parentNode.NewPageLayoutEditablePath;
}
$v_0 = parentNode.NewPageLayoutNameWithoutExtension;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$8_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 = {
$C_1: null,
$0_1: null,
$F_1: null,
get_folder: function SP_Publishing_PublishingPageInformation$get_folder$in() {
return this.$C_1;
},
set_folder: function SP_Publishing_PublishingPageInformation$set_folder$in(value) {
this.$C_1 = value;
return value;
},
get_name: function SP_Publishing_PublishingPageInformation$get_name$in() {
return this.$0_1;
},
set_name: function SP_Publishing_PublishingPageInformation$set_name$in(value) {
this.$0_1 = value;
return value;
},
get_pageLayoutListItem: function SP_Publishing_PublishingPageInformation$get_pageLayoutListItem$in() {
return this.$F_1;
},
set_pageLayoutListItem: function SP_Publishing_PublishingPageInformation$set_pageLayoutListItem$in(value) {
this.$F_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.$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$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.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.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-400c-9678-b5528c432ab5}', 'DeletePlugin', [ pluginName ]);
context.addQuery($v_0);
}
SP.Publishing.VariationLabel = function SP_Publishing_VariationLabel(context, objectPath) {
SP.Publishing.VariationLabel.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.VariationLabel.prototype = {
get_displayName: function SP_Publishing_VariationLabel$get_displayName$in() {
this.checkUninitializedProperty('DisplayName');
return (this.get_objectData().get_properties()['DisplayName']);
},
get_isSource: function SP_Publishing_VariationLabel$get_isSource$in() {
this.checkUninitializedProperty('IsSource');
return (this.get_objectData().get_properties()['IsSource']);
},
get_language: function SP_Publishing_VariationLabel$get_language$in() {
this.checkUninitializedProperty('Language');
return (this.get_objectData().get_properties()['Language']);
},
get_locale: function SP_Publishing_VariationLabel$get_locale$in() {
this.checkUninitializedProperty('Locale');
return (this.get_objectData().get_properties()['Locale']);
},
get_title: function SP_Publishing_VariationLabel$get_title$in() {
this.checkUninitializedProperty('Title');
return (this.get_objectData().get_properties()['Title']);
},
get_topWebUrl: function SP_Publishing_VariationLabel$get_topWebUrl$in() {
this.checkUninitializedProperty('TopWebUrl');
return (this.get_objectData().get_properties()['TopWebUrl']);
},
initPropertiesFromJson: function SP_Publishing_VariationLabel$initPropertiesFromJson$in(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.DisplayName;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['DisplayName'] = ($v_0);
delete parentNode.DisplayName;
}
$v_0 = parentNode.IsSource;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['IsSource'] = ($v_0);
delete parentNode.IsSource;
}
$v_0 = parentNode.Language;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Language'] = ($v_0);
delete parentNode.Language;
}
$v_0 = parentNode.Locale;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Locale'] = ($v_0);
delete parentNode.Locale;
}
$v_0 = parentNode.Title;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Title'] = ($v_0);
delete parentNode.Title;
}
$v_0 = parentNode.TopWebUrl;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['TopWebUrl'] = ($v_0);
delete parentNode.TopWebUrl;
}
}
}
SP.Publishing.VariationLabelPropertyNames = function SP_Publishing_VariationLabelPropertyNames() {
}
SP.Publishing.Variations = function SP_Publishing_Variations(context, objectPath) {
SP.Publishing.Variations.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.Variations.getLabels = function SP_Publishing_Variations$getLabels$st(context) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.ClientObjectList(context, new SP.ObjectPathStaticMethod(context, '{1339cd8a-5dc8-4932-9bb3-32a5bc2c0d48}', 'GetLabels', null), SP.Publishing.VariationLabel);
return $v_0;
}
SP.Publishing.Variations.getPeerUrl = function SP_Publishing_Variations$getPeerUrl$st(context, currentUrl, labelTitle) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
var $v_1 = new SP.ClientActionInvokeStaticMethod(context, '{1339cd8a-5dc8-4932-9bb3-32a5bc2c0d48}', 'GetPeerUrl', [ currentUrl, labelTitle ]);
context.addQuery($v_1);
$v_0 = new SP.StringResult();
context.addQueryIdAndResultObject($v_1.get_id(), $v_0);
return $v_0;
}
SP.Publishing.Variations.updateListItems = function SP_Publishing_Variations$updateListItems$st(context, listId, itemIds) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{1339cd8a-5dc8-4932-9bb3-32a5bc2c0d48}', 'UpdateListItems', [ listId, itemIds ]);
context.addQuery($v_0);
}
Type.registerNamespace('SP.Publishing.Navigation');
SP.Publishing.Navigation.NavigationLinkType = function() {}
SP.Publishing.Navigation.NavigationLinkType.prototype = {
root: 0,
friendlyUrl: 1,
simpleLink: 2
}
SP.Publishing.Navigation.NavigationLinkType.registerEnum('SP.Publishing.Navigation.NavigationLinkType', false);
SP.Publishing.Navigation.StandardNavigationSource = function() {}
SP.Publishing.Navigation.StandardNavigationSource.prototype = {
unknown: 0,
portalProvider: 1,
taxonomyProvider: 2,
inheritFromParentWeb: 3
}
SP.Publishing.Navigation.StandardNavigationSource.registerEnum('SP.Publishing.Navigation.StandardNavigationSource', false);
SP.Publishing.Navigation.NavigationTermProviderNameCollection = function SP_Publishing_Navigation_NavigationTermProviderNameCollection(context, objectPath) {
SP.Publishing.Navigation.NavigationTermProviderNameCollection.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.Navigation.NavigationTermProviderNameCollection.prototype = {
$I_2: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$$I_2$in($p0) {
Array.add(this.get_data(), $p0);
},
$J_2: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$$J_2$in() {
var $v_0 = this.get_data();
while ($v_0.length > 0) {
Array.removeAt($v_0, $v_0.length - 1);
}
},
$K_2: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$$K_2$in($p0) {
Array.remove(this.get_data(), $p0);
},
itemAt: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$itemAt$in(index) {
return this.getItemAtIndex(index);
},
get_item: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$get_item$in(index) {
return this.getItemAtIndex(index);
},
get_childItemType: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$get_childItemType$in() {
return String;
},
add: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$add$in(item) {
var $v_0 = this.get_context();
var $v_1 = new SP.ClientActionInvokeMethod(this, 'Add', [ item ]);
$v_0.addQuery($v_1);
this.$I_2(item);
},
clear: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$clear$in() {
var $v_0 = this.get_context();
var $v_1 = new SP.ClientActionInvokeMethod(this, 'Clear', null);
$v_0.addQuery($v_1);
this.$J_2();
},
remove: function SP_Publishing_Navigation_NavigationTermProviderNameCollection$remove$in(item) {
var $v_0 = this.get_context();
var $v_1;
var $v_2 = new SP.ClientActionInvokeMethod(this, 'Remove', [ item ]);
$v_0.addQuery($v_2);
$v_1 = new SP.BooleanResult();
$v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);
this.$K_2(item);
return $v_1;
}
}
SP.Publishing.Navigation.NavigationTerm = function SP_Publishing_Navigation_NavigationTerm(context, objectPath) {
SP.Publishing.Navigation.NavigationTerm.initializeBase(this, [ context, objectPath ]);
}
SP.Publishing.Navigation.NavigationTerm.getAsResolvedByWeb = function SP_Publishing_Navigation_NavigationTerm$getAsResolvedByWeb$st(context, term, web, siteMapProviderName) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.Publishing.Navigation.NavigationTerm(context, new SP.ObjectPathStaticMethod(context, '{74b7367a-e303-43e8-891e-dac764c96e53}', 'GetAsResolvedByWeb', [ term, web, siteMapProviderName ]));
$v_0.get_path().setPendingReplace();
var $v_1 = new SP.ObjectIdentityQuery($v_0.get_path());
context.addQueryIdAndResultObject($v_1.get_id(), $v_0);
context.addQuery($v_1);
return $v_0;
}
SP.Publishing.Navigation.NavigationTerm.getAsResolvedByView = function SP_Publishing_Navigation_NavigationTerm$getAsResolvedByView$st(context, term, view) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.Publishing.Navigation.NavigationTerm(context, new SP.ObjectPathStaticMethod(context, '{74b7367a-e303-43e8-891e-dac764c96e53}', 'GetAsResolvedByView', [ term, view ]));
$v_0.get_path().setPendingReplace();
var $v_1 = new SP.ObjectIdentityQuery($v_0.get_path());
context.addQueryIdAndResultObject($v_1.get_id(), $v_0);
context.addQuery($v_1);
return $v_0;
}
SP.Publishing.Navigation.NavigationTerm.prototype = {
get_associatedFolderUrl: function SP_Publishing_Navigation_NavigationTerm$get_associatedFolderUrl$in() {
this.checkUninitializedProperty('AssociatedFolderUrl');
return (this.get_objectData().get_properties()['AssociatedFolderUrl']);
},
set_associatedFolderUrl: function SP_Publishing_Navigation_NavigationTerm$set_associatedFolderUrl$in(value) {
this.get_objectData().get_properties()['AssociatedFolderUrl'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'AssociatedFolderUrl', value));
}
return value;
},
get_catalogTargetUrl: function SP_Publishing_Navigation_NavigationTerm$get_catalogTargetUrl$in() {
var $v_0 = ((this.get_objectData().get_clientObjectProperties()['CatalogTargetUrl']));
if (SP.ScriptUtility.isUndefined($v