sp-jsom-node
Version:
SharePoint JavaScript Object Model for Node.js
1,043 lines (901 loc) • 141 kB
JavaScript
// JScript File
Type.registerNamespace('Microsoft.SharePoint.Client.Search.Query');
Microsoft.SharePoint.Client.Search.Query.QueryPropertyValueType = function() {}
Microsoft.SharePoint.Client.Search.Query.QueryPropertyValueType.prototype = {
none: 0,
stringType: 1,
int32TYpe: 2,
booleanType: 3,
stringArrayType: 4,
unSupportedType: 5
}
Microsoft.SharePoint.Client.Search.Query.QueryPropertyValueType.registerEnum('Microsoft.SharePoint.Client.Search.Query.QueryPropertyValueType', false);
Microsoft.SharePoint.Client.Search.Query.ReorderingRuleMatchType = function() {}
Microsoft.SharePoint.Client.Search.Query.ReorderingRuleMatchType.prototype = {
resultContainsKeyword: 0,
titleContainsKeyword: 1,
titleMatchesKeyword: 2,
urlStartsWith: 3,
urlExactlyMatches: 4,
contentTypeIs: 5,
fileExtensionMatches: 6,
resultHasTag: 7,
manualCondition: 8
}
Microsoft.SharePoint.Client.Search.Query.ReorderingRuleMatchType.registerEnum('Microsoft.SharePoint.Client.Search.Query.ReorderingRuleMatchType', false);
Microsoft.SharePoint.Client.Search.Query.SortDirection = function() {}
Microsoft.SharePoint.Client.Search.Query.SortDirection.prototype = {
ascending: 0,
descending: 1,
fqlFormula: 2
}
Microsoft.SharePoint.Client.Search.Query.SortDirection.registerEnum('Microsoft.SharePoint.Client.Search.Query.SortDirection', false);
Microsoft.SharePoint.Client.Search.Query.KeywordQueryProperties = function Microsoft_SharePoint_Client_Search_Query_KeywordQueryProperties(context, objectPath) {
Microsoft.SharePoint.Client.Search.Query.KeywordQueryProperties.initializeBase(this, [ context, objectPath ]);
}
Microsoft.SharePoint.Client.Search.Query.KeywordQueryProperties.prototype = {
get_item: function Microsoft_SharePoint_Client_Search_Query_KeywordQueryProperties$get_item$in(key) {
return null;
},
set_item: function Microsoft_SharePoint_Client_Search_Query_KeywordQueryProperties$set_item$in(key, value) {
this.setQueryPropertyValue(key, Microsoft.SharePoint.Client.Search.Query.QueryUtility.create(key, value));
return value;
},
setQueryPropertyValue: function Microsoft_SharePoint_Client_Search_Query_KeywordQueryProperties$setQueryPropertyValue$in(name, val) {
var $v_0 = this.get_context();
var $v_1 = new SP.ClientActionInvokeMethod(this, 'SetQueryPropertyValue', [ name, val ]);
$v_0.addQuery($v_1);
},
getQueryPropertyValue: function Microsoft_SharePoint_Client_Search_Query_KeywordQueryProperties$getQueryPropertyValue$in(name) {
var $v_0 = this.get_context();
var $v_1;
var $v_2 = new SP.ClientActionInvokeMethod(this, 'GetQueryPropertyValue', [ name ]);
$v_0.addQuery($v_2);
$v_1 = new Microsoft.SharePoint.Client.Search.Query.QueryPropertyValue();
$v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);
return $v_1;
}
}
Microsoft.SharePoint.Client.Search.Query.QueryUtility = function Microsoft_SharePoint_Client_Search_Query_QueryUtility() {
}
Microsoft.SharePoint.Client.Search.Query.QueryUtility.create = function Microsoft_SharePoint_Client_Search_Query_QueryUtility$create$st(name, val) {
if (name && name.length > 0) {
var $v_0 = new Microsoft.SharePoint.Client.Search.Query.QueryPropertyValue();
if (val) {
var $v_1 = Object.getType(val);
switch (Array.indexOf(Microsoft.SharePoint.Client.Search.Query.QueryUtility.$10, $v_1)) {
case 1:
$v_0.$C_1 = val;
$v_0.$0_1 = 1;
break;
case 2:
$v_0.$8_1 = val;
$v_0.$0_1 = 2;
break;
case 3:
$v_0.$7_1 = val;
$v_0.$0_1 = 3;
break;
case 4:
$v_0.$B_1 = val;
$v_0.$0_1 = 4;
break;
default:
var $v_2 = 'Type ' + $v_1.toString() + 'is not valid. Only String, Int32, Boolean and String[] are supported.';
throw Error.argument($v_2);
}
}
return $v_0;
}
else {
throw Error.argumentNull('The name a of a property cannot be null or empty!');
}
}
Microsoft.SharePoint.Client.Search.Query.QueryUtility.queryPropertyValueToObject = function Microsoft_SharePoint_Client_Search_Query_QueryUtility$queryPropertyValueToObject$st(val) {
if (val && val.$0_1) {
switch (val.$0_1) {
case 1:
return val.$C_1;
case 2:
return val.$8_1;
case 3:
return val.$7_1;
case 4:
return val.$B_1;
default:
throw Error.argument('The Payload type is not valid. Only String, Int32, Boolean and String[] are supported.');
}
}
else {
return null;
}
}
Microsoft.SharePoint.Client.Search.Query.QueryUtility.getQueryPropertyValueType = function Microsoft_SharePoint_Client_Search_Query_QueryUtility$getQueryPropertyValueType$st(val) {
if (val) {
return val.$0_1;
}
else {
return 0;
}
}
Microsoft.SharePoint.Client.Search.Query.KeywordQuery = function Microsoft_SharePoint_Client_Search_Query_KeywordQuery(context) {
Microsoft.SharePoint.Client.Search.Query.KeywordQuery.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{80173281-fffd-47b6-9a49-312e06ff8428}', arguments) ]);
}
Microsoft.SharePoint.Client.Search.Query.KeywordQuery.newObject = function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$newObject$st(context) {
return new Microsoft.SharePoint.Client.Search.Query.KeywordQuery(context, new SP.ObjectPathConstructor(context, '{80173281-fffd-47b6-9a49-312e06ff8428}', null));
}
Microsoft.SharePoint.Client.Search.Query.KeywordQuery.prototype = {
get_collapseSpecification: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$get_collapseSpecification$in() {
this.checkUninitializedProperty('CollapseSpecification');
return (this.get_objectData().get_properties()['CollapseSpecification']);
},
set_collapseSpecification: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$set_collapseSpecification$in(value) {
this.get_objectData().get_properties()['CollapseSpecification'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CollapseSpecification', value));
}
return value;
},
get_enableSorting: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$get_enableSorting$in() {
this.checkUninitializedProperty('EnableSorting');
return (this.get_objectData().get_properties()['EnableSorting']);
},
set_enableSorting: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$set_enableSorting$in(value) {
this.get_objectData().get_properties()['EnableSorting'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EnableSorting', value));
}
return value;
},
get_hiddenConstraints: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$get_hiddenConstraints$in() {
this.checkUninitializedProperty('HiddenConstraints');
return (this.get_objectData().get_properties()['HiddenConstraints']);
},
set_hiddenConstraints: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$set_hiddenConstraints$in(value) {
this.get_objectData().get_properties()['HiddenConstraints'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'HiddenConstraints', value));
}
return value;
},
get_properties: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$get_properties$in() {
var $v_0 = ((this.get_objectData().get_clientObjectProperties()['Properties']));
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new Microsoft.SharePoint.Client.Search.Query.KeywordQueryProperties(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Properties'));
this.get_objectData().get_clientObjectProperties()['Properties'] = $v_0;
}
return $v_0;
},
get_refinementFilters: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$get_refinementFilters$in() {
var $v_0 = ((this.get_objectData().get_clientObjectProperties()['RefinementFilters']));
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new Microsoft.SharePoint.Client.Search.Query.StringCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'RefinementFilters'));
this.get_objectData().get_clientObjectProperties()['RefinementFilters'] = $v_0;
}
return $v_0;
},
set_refinementFilters: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$set_refinementFilters$in(value) {
this.get_objectData().get_clientObjectProperties()['RefinementFilters'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RefinementFilters', value));
}
return value;
},
get_refiners: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$get_refiners$in() {
this.checkUninitializedProperty('Refiners');
return (this.get_objectData().get_properties()['Refiners']);
},
set_refiners: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$set_refiners$in(value) {
this.get_objectData().get_properties()['Refiners'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Refiners', value));
}
return value;
},
get_reorderingRules: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$get_reorderingRules$in() {
var $v_0 = ((this.get_objectData().get_clientObjectProperties()['ReorderingRules']));
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new Microsoft.SharePoint.Client.Search.Query.ReorderingRuleCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'ReorderingRules'));
this.get_objectData().get_clientObjectProperties()['ReorderingRules'] = $v_0;
}
return $v_0;
},
set_reorderingRules: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$set_reorderingRules$in(value) {
this.get_objectData().get_clientObjectProperties()['ReorderingRules'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ReorderingRules', value));
}
return value;
},
get_selectProperties: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$get_selectProperties$in() {
var $v_0 = ((this.get_objectData().get_clientObjectProperties()['SelectProperties']));
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new Microsoft.SharePoint.Client.Search.Query.StringCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'SelectProperties'));
this.get_objectData().get_clientObjectProperties()['SelectProperties'] = $v_0;
}
return $v_0;
},
get_sortList: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$get_sortList$in() {
var $v_0 = ((this.get_objectData().get_clientObjectProperties()['SortList']));
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new Microsoft.SharePoint.Client.Search.Query.SortCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'SortList'));
this.get_objectData().get_clientObjectProperties()['SortList'] = $v_0;
}
return $v_0;
},
get_timeZoneId: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$get_timeZoneId$in() {
this.checkUninitializedProperty('TimeZoneId');
return (this.get_objectData().get_properties()['TimeZoneId']);
},
set_timeZoneId: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$set_timeZoneId$in(value) {
this.get_objectData().get_properties()['TimeZoneId'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'TimeZoneId', value));
}
return value;
},
get_trimDuplicatesIncludeId: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$get_trimDuplicatesIncludeId$in() {
this.checkUninitializedProperty('TrimDuplicatesIncludeId');
return (this.get_objectData().get_properties()['TrimDuplicatesIncludeId']);
},
set_trimDuplicatesIncludeId: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$set_trimDuplicatesIncludeId$in(value) {
this.get_objectData().get_properties()['TrimDuplicatesIncludeId'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'TrimDuplicatesIncludeId', value));
}
return value;
},
initPropertiesFromJson: function Microsoft_SharePoint_Client_Search_Query_KeywordQuery$initPropertiesFromJson$in(parentNode) {
Microsoft.SharePoint.Client.Search.Query.Query.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.CollapseSpecification;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['CollapseSpecification'] = ($v_0);
delete parentNode.CollapseSpecification;
}
$v_0 = parentNode.EnableSorting;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['EnableSorting'] = ($v_0);
delete parentNode.EnableSorting;
}
$v_0 = parentNode.HiddenConstraints;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['HiddenConstraints'] = ($v_0);
delete parentNode.HiddenConstraints;
}
$v_0 = parentNode.Properties;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.updateClientObjectPropertyType('Properties', this.get_properties(), $v_0);
this.get_properties().fromJson($v_0);
delete parentNode.Properties;
}
$v_0 = parentNode.RefinementFilters;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.updateClientObjectPropertyType('RefinementFilters', this.get_refinementFilters(), $v_0);
this.get_refinementFilters().fromJson($v_0);
delete parentNode.RefinementFilters;
}
$v_0 = parentNode.Refiners;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Refiners'] = ($v_0);
delete parentNode.Refiners;
}
$v_0 = parentNode.ReorderingRules;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.updateClientObjectPropertyType('ReorderingRules', this.get_reorderingRules(), $v_0);
this.get_reorderingRules().fromJson($v_0);
delete parentNode.ReorderingRules;
}
$v_0 = parentNode.SelectProperties;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.updateClientObjectPropertyType('SelectProperties', this.get_selectProperties(), $v_0);
this.get_selectProperties().fromJson($v_0);
delete parentNode.SelectProperties;
}
$v_0 = parentNode.SortList;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.updateClientObjectPropertyType('SortList', this.get_sortList(), $v_0);
this.get_sortList().fromJson($v_0);
delete parentNode.SortList;
}
$v_0 = parentNode.TimeZoneId;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['TimeZoneId'] = ($v_0);
delete parentNode.TimeZoneId;
}
$v_0 = parentNode.TrimDuplicatesIncludeId;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['TrimDuplicatesIncludeId'] = ($v_0);
delete parentNode.TrimDuplicatesIncludeId;
}
}
}
Microsoft.SharePoint.Client.Search.Query.KeywordQueryPropertyNames = function Microsoft_SharePoint_Client_Search_Query_KeywordQueryPropertyNames() {
}
Microsoft.SharePoint.Client.Search.Query.KeywordQueryObjectPropertyNames = function Microsoft_SharePoint_Client_Search_Query_KeywordQueryObjectPropertyNames() {
}
Microsoft.SharePoint.Client.Search.Query.PersonalResultSuggestion = function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion() {
Microsoft.SharePoint.Client.Search.Query.PersonalResultSuggestion.initializeBase(this);
}
Microsoft.SharePoint.Client.Search.Query.PersonalResultSuggestion.prototype = {
$M_1: null,
$N_1: false,
$Y_1: null,
$Z_1: null,
get_highlightedTitle: function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion$get_highlightedTitle$in() {
return this.$M_1;
},
set_highlightedTitle: function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion$set_highlightedTitle$in(value) {
this.$M_1 = value;
return value;
},
get_isBestBet: function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion$get_isBestBet$in() {
return this.$N_1;
},
set_isBestBet: function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion$set_isBestBet$in(value) {
this.$N_1 = value;
return value;
},
get_title: function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion$get_title$in() {
return this.$Y_1;
},
set_title: function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion$set_title$in(value) {
this.$Y_1 = value;
return value;
},
get_url: function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion$get_url$in() {
return this.$Z_1;
},
set_url: function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion$set_url$in(value) {
this.$Z_1 = value;
return value;
},
get_typeId: function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion$get_typeId$in() {
return '{aafd94af-525a-4759-8410-f571a26f04bc}';
},
writeToXml: function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion$writeToXml$in(writer, serializationContext) {
if (!writer) {
throw Error.argumentNull('writer');
}
if (!serializationContext) {
throw Error.argumentNull('serializationContext');
}
var $v_0 = [ 'HighlightedTitle', 'IsBestBet', 'Title', 'Url' ];
SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext);
SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext);
},
initPropertiesFromJson: function Microsoft_SharePoint_Client_Search_Query_PersonalResultSuggestion$initPropertiesFromJson$in(parentNode) {
SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.HighlightedTitle;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$M_1 = ($v_0);
delete parentNode.HighlightedTitle;
}
$v_0 = parentNode.IsBestBet;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$N_1 = ($v_0);
delete parentNode.IsBestBet;
}
$v_0 = parentNode.Title;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$Y_1 = ($v_0);
delete parentNode.Title;
}
$v_0 = parentNode.Url;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$Z_1 = ($v_0);
delete parentNode.Url;
}
}
}
Microsoft.SharePoint.Client.Search.Query.PopularQuery = function Microsoft_SharePoint_Client_Search_Query_PopularQuery() {
Microsoft.SharePoint.Client.Search.Query.PopularQuery.initializeBase(this);
}
Microsoft.SharePoint.Client.Search.Query.PopularQuery.prototype = {
$H_1: 0,
$Q_1: 0,
$U_1: 0,
$V_1: null,
get_clickCount: function Microsoft_SharePoint_Client_Search_Query_PopularQuery$get_clickCount$in() {
return this.$H_1;
},
set_clickCount: function Microsoft_SharePoint_Client_Search_Query_PopularQuery$set_clickCount$in(value) {
this.$H_1 = value;
return value;
},
get_LCID: function Microsoft_SharePoint_Client_Search_Query_PopularQuery$get_LCID$in() {
return this.$Q_1;
},
set_LCID: function Microsoft_SharePoint_Client_Search_Query_PopularQuery$set_LCID$in(value) {
this.$Q_1 = value;
return value;
},
get_queryCount: function Microsoft_SharePoint_Client_Search_Query_PopularQuery$get_queryCount$in() {
return this.$U_1;
},
set_queryCount: function Microsoft_SharePoint_Client_Search_Query_PopularQuery$set_queryCount$in(value) {
this.$U_1 = value;
return value;
},
get_queryText: function Microsoft_SharePoint_Client_Search_Query_PopularQuery$get_queryText$in() {
return this.$V_1;
},
set_queryText: function Microsoft_SharePoint_Client_Search_Query_PopularQuery$set_queryText$in(value) {
this.$V_1 = value;
return value;
},
get_typeId: function Microsoft_SharePoint_Client_Search_Query_PopularQuery$get_typeId$in() {
return '{cea115d6-87ec-4e1c-aa4a-b8d44d6cd10d}';
},
writeToXml: function Microsoft_SharePoint_Client_Search_Query_PopularQuery$writeToXml$in(writer, serializationContext) {
if (!writer) {
throw Error.argumentNull('writer');
}
if (!serializationContext) {
throw Error.argumentNull('serializationContext');
}
var $v_0 = [ 'ClickCount', 'LCID', 'QueryCount', 'QueryText' ];
SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext);
SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext);
},
initPropertiesFromJson: function Microsoft_SharePoint_Client_Search_Query_PopularQuery$initPropertiesFromJson$in(parentNode) {
SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.ClickCount;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$H_1 = ($v_0);
delete parentNode.ClickCount;
}
$v_0 = parentNode.LCID;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$Q_1 = ($v_0);
delete parentNode.LCID;
}
$v_0 = parentNode.QueryCount;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$U_1 = ($v_0);
delete parentNode.QueryCount;
}
$v_0 = parentNode.QueryText;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$V_1 = ($v_0);
delete parentNode.QueryText;
}
}
}
Microsoft.SharePoint.Client.Search.Query.Query = function Microsoft_SharePoint_Client_Search_Query_Query(context, objectPath) {
Microsoft.SharePoint.Client.Search.Query.Query.initializeBase(this, [ context, objectPath ]);
}
Microsoft.SharePoint.Client.Search.Query.Query.prototype = {
get_blockDedupeMode: function Microsoft_SharePoint_Client_Search_Query_Query$get_blockDedupeMode$in() {
this.checkUninitializedProperty('BlockDedupeMode');
return (this.get_objectData().get_properties()['BlockDedupeMode']);
},
set_blockDedupeMode: function Microsoft_SharePoint_Client_Search_Query_Query$set_blockDedupeMode$in(value) {
this.get_objectData().get_properties()['BlockDedupeMode'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'BlockDedupeMode', value));
}
return value;
},
get_bypassResultTypes: function Microsoft_SharePoint_Client_Search_Query_Query$get_bypassResultTypes$in() {
this.checkUninitializedProperty('BypassResultTypes');
return (this.get_objectData().get_properties()['BypassResultTypes']);
},
set_bypassResultTypes: function Microsoft_SharePoint_Client_Search_Query_Query$set_bypassResultTypes$in(value) {
this.get_objectData().get_properties()['BypassResultTypes'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'BypassResultTypes', value));
}
return value;
},
get_clientType: function Microsoft_SharePoint_Client_Search_Query_Query$get_clientType$in() {
this.checkUninitializedProperty('ClientType');
return (this.get_objectData().get_properties()['ClientType']);
},
set_clientType: function Microsoft_SharePoint_Client_Search_Query_Query$set_clientType$in(value) {
this.get_objectData().get_properties()['ClientType'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ClientType', value));
}
return value;
},
get_culture: function Microsoft_SharePoint_Client_Search_Query_Query$get_culture$in() {
this.checkUninitializedProperty('Culture');
return (this.get_objectData().get_properties()['Culture']);
},
set_culture: function Microsoft_SharePoint_Client_Search_Query_Query$set_culture$in(value) {
this.get_objectData().get_properties()['Culture'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Culture', value));
}
return value;
},
get_desiredSnippetLength: function Microsoft_SharePoint_Client_Search_Query_Query$get_desiredSnippetLength$in() {
this.checkUninitializedProperty('DesiredSnippetLength');
return (this.get_objectData().get_properties()['DesiredSnippetLength']);
},
set_desiredSnippetLength: function Microsoft_SharePoint_Client_Search_Query_Query$set_desiredSnippetLength$in(value) {
this.get_objectData().get_properties()['DesiredSnippetLength'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'DesiredSnippetLength', value));
}
return value;
},
get_enableInterleaving: function Microsoft_SharePoint_Client_Search_Query_Query$get_enableInterleaving$in() {
this.checkUninitializedProperty('EnableInterleaving');
return (this.get_objectData().get_properties()['EnableInterleaving']);
},
set_enableInterleaving: function Microsoft_SharePoint_Client_Search_Query_Query$set_enableInterleaving$in(value) {
this.get_objectData().get_properties()['EnableInterleaving'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EnableInterleaving', value));
}
return value;
},
get_enableNicknames: function Microsoft_SharePoint_Client_Search_Query_Query$get_enableNicknames$in() {
this.checkUninitializedProperty('EnableNicknames');
return (this.get_objectData().get_properties()['EnableNicknames']);
},
set_enableNicknames: function Microsoft_SharePoint_Client_Search_Query_Query$set_enableNicknames$in(value) {
this.get_objectData().get_properties()['EnableNicknames'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EnableNicknames', value));
}
return value;
},
get_enableOrderingHitHighlightedProperty: function Microsoft_SharePoint_Client_Search_Query_Query$get_enableOrderingHitHighlightedProperty$in() {
this.checkUninitializedProperty('EnableOrderingHitHighlightedProperty');
return (this.get_objectData().get_properties()['EnableOrderingHitHighlightedProperty']);
},
set_enableOrderingHitHighlightedProperty: function Microsoft_SharePoint_Client_Search_Query_Query$set_enableOrderingHitHighlightedProperty$in(value) {
this.get_objectData().get_properties()['EnableOrderingHitHighlightedProperty'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EnableOrderingHitHighlightedProperty', value));
}
return value;
},
get_enablePhonetic: function Microsoft_SharePoint_Client_Search_Query_Query$get_enablePhonetic$in() {
this.checkUninitializedProperty('EnablePhonetic');
return (this.get_objectData().get_properties()['EnablePhonetic']);
},
set_enablePhonetic: function Microsoft_SharePoint_Client_Search_Query_Query$set_enablePhonetic$in(value) {
this.get_objectData().get_properties()['EnablePhonetic'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EnablePhonetic', value));
}
return value;
},
get_enableQueryRules: function Microsoft_SharePoint_Client_Search_Query_Query$get_enableQueryRules$in() {
this.checkUninitializedProperty('EnableQueryRules');
return (this.get_objectData().get_properties()['EnableQueryRules']);
},
set_enableQueryRules: function Microsoft_SharePoint_Client_Search_Query_Query$set_enableQueryRules$in(value) {
this.get_objectData().get_properties()['EnableQueryRules'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EnableQueryRules', value));
}
return value;
},
get_enableStemming: function Microsoft_SharePoint_Client_Search_Query_Query$get_enableStemming$in() {
this.checkUninitializedProperty('EnableStemming');
return (this.get_objectData().get_properties()['EnableStemming']);
},
set_enableStemming: function Microsoft_SharePoint_Client_Search_Query_Query$set_enableStemming$in(value) {
this.get_objectData().get_properties()['EnableStemming'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EnableStemming', value));
}
return value;
},
get_generateBlockRankLog: function Microsoft_SharePoint_Client_Search_Query_Query$get_generateBlockRankLog$in() {
this.checkUninitializedProperty('GenerateBlockRankLog');
return (this.get_objectData().get_properties()['GenerateBlockRankLog']);
},
set_generateBlockRankLog: function Microsoft_SharePoint_Client_Search_Query_Query$set_generateBlockRankLog$in(value) {
this.get_objectData().get_properties()['GenerateBlockRankLog'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'GenerateBlockRankLog', value));
}
return value;
},
get_hitHighlightedMultivaluePropertyLimit: function Microsoft_SharePoint_Client_Search_Query_Query$get_hitHighlightedMultivaluePropertyLimit$in() {
this.checkUninitializedProperty('HitHighlightedMultivaluePropertyLimit');
return (this.get_objectData().get_properties()['HitHighlightedMultivaluePropertyLimit']);
},
set_hitHighlightedMultivaluePropertyLimit: function Microsoft_SharePoint_Client_Search_Query_Query$set_hitHighlightedMultivaluePropertyLimit$in(value) {
this.get_objectData().get_properties()['HitHighlightedMultivaluePropertyLimit'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'HitHighlightedMultivaluePropertyLimit', value));
}
return value;
},
get_hitHighlightedProperties: function Microsoft_SharePoint_Client_Search_Query_Query$get_hitHighlightedProperties$in() {
var $v_0 = ((this.get_objectData().get_clientObjectProperties()['HitHighlightedProperties']));
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new Microsoft.SharePoint.Client.Search.Query.StringCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'HitHighlightedProperties'));
this.get_objectData().get_clientObjectProperties()['HitHighlightedProperties'] = $v_0;
}
return $v_0;
},
get_ignoreSafeQueryPropertiesTemplateUrl: function Microsoft_SharePoint_Client_Search_Query_Query$get_ignoreSafeQueryPropertiesTemplateUrl$in() {
this.checkUninitializedProperty('IgnoreSafeQueryPropertiesTemplateUrl');
return (this.get_objectData().get_properties()['IgnoreSafeQueryPropertiesTemplateUrl']);
},
set_ignoreSafeQueryPropertiesTemplateUrl: function Microsoft_SharePoint_Client_Search_Query_Query$set_ignoreSafeQueryPropertiesTemplateUrl$in(value) {
this.get_objectData().get_properties()['IgnoreSafeQueryPropertiesTemplateUrl'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'IgnoreSafeQueryPropertiesTemplateUrl', value));
}
return value;
},
get_impressionID: function Microsoft_SharePoint_Client_Search_Query_Query$get_impressionID$in() {
this.checkUninitializedProperty('ImpressionID');
return (this.get_objectData().get_properties()['ImpressionID']);
},
set_impressionID: function Microsoft_SharePoint_Client_Search_Query_Query$set_impressionID$in(value) {
this.get_objectData().get_properties()['ImpressionID'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ImpressionID', value));
}
return value;
},
get_maxSnippetLength: function Microsoft_SharePoint_Client_Search_Query_Query$get_maxSnippetLength$in() {
this.checkUninitializedProperty('MaxSnippetLength');
return (this.get_objectData().get_properties()['MaxSnippetLength']);
},
set_maxSnippetLength: function Microsoft_SharePoint_Client_Search_Query_Query$set_maxSnippetLength$in(value) {
this.get_objectData().get_properties()['MaxSnippetLength'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'MaxSnippetLength', value));
}
return value;
},
get_personalizationData: function Microsoft_SharePoint_Client_Search_Query_Query$get_personalizationData$in() {
var $v_0 = ((this.get_objectData().get_clientObjectProperties()['PersonalizationData']));
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new Microsoft.SharePoint.Client.Search.Query.QueryPersonalizationData(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'PersonalizationData'));
this.get_objectData().get_clientObjectProperties()['PersonalizationData'] = $v_0;
}
return $v_0;
},
set_personalizationData: function Microsoft_SharePoint_Client_Search_Query_Query$set_personalizationData$in(value) {
this.get_objectData().get_clientObjectProperties()['PersonalizationData'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'PersonalizationData', value));
}
return value;
},
get_processBestBets: function Microsoft_SharePoint_Client_Search_Query_Query$get_processBestBets$in() {
this.checkUninitializedProperty('ProcessBestBets');
return (this.get_objectData().get_properties()['ProcessBestBets']);
},
set_processBestBets: function Microsoft_SharePoint_Client_Search_Query_Query$set_processBestBets$in(value) {
this.get_objectData().get_properties()['ProcessBestBets'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ProcessBestBets', value));
}
return value;
},
get_processPersonalFavorites: function Microsoft_SharePoint_Client_Search_Query_Query$get_processPersonalFavorites$in() {
this.checkUninitializedProperty('ProcessPersonalFavorites');
return (this.get_objectData().get_properties()['ProcessPersonalFavorites']);
},
set_processPersonalFavorites: function Microsoft_SharePoint_Client_Search_Query_Query$set_processPersonalFavorites$in(value) {
this.get_objectData().get_properties()['ProcessPersonalFavorites'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ProcessPersonalFavorites', value));
}
return value;
},
get_queryTag: function Microsoft_SharePoint_Client_Search_Query_Query$get_queryTag$in() {
this.checkUninitializedProperty('QueryTag');
return (this.get_objectData().get_properties()['QueryTag']);
},
set_queryTag: function Microsoft_SharePoint_Client_Search_Query_Query$set_queryTag$in(value) {
this.get_objectData().get_properties()['QueryTag'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'QueryTag', value));
}
return value;
},
get_queryTemplate: function Microsoft_SharePoint_Client_Search_Query_Query$get_queryTemplate$in() {
this.checkUninitializedProperty('QueryTemplate');
return (this.get_objectData().get_properties()['QueryTemplate']);
},
set_queryTemplate: function Microsoft_SharePoint_Client_Search_Query_Query$set_queryTemplate$in(value) {
this.get_objectData().get_properties()['QueryTemplate'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'QueryTemplate', value));
}
return value;
},
get_queryTemplateParameters: function Microsoft_SharePoint_Client_Search_Query_Query$get_queryTemplateParameters$in() {
this.checkUninitializedProperty('QueryTemplateParameters');
return (this.get_objectData().get_properties()['QueryTemplateParameters']);
},
get_queryText: function Microsoft_SharePoint_Client_Search_Query_Query$get_queryText$in() {
this.checkUninitializedProperty('QueryText');
return (this.get_objectData().get_properties()['QueryText']);
},
set_queryText: function Microsoft_SharePoint_Client_Search_Query_Query$set_queryText$in(value) {
this.get_objectData().get_properties()['QueryText'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'QueryText', value));
}
return value;
},
get_rankingModelId: function Microsoft_SharePoint_Client_Search_Query_Query$get_rankingModelId$in() {
this.checkUninitializedProperty('RankingModelId');
return (this.get_objectData().get_properties()['RankingModelId']);
},
set_rankingModelId: function Microsoft_SharePoint_Client_Search_Query_Query$set_rankingModelId$in(value) {
this.get_objectData().get_properties()['RankingModelId'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RankingModelId', value));
}
return value;
},
get_resultsUrl: function Microsoft_SharePoint_Client_Search_Query_Query$get_resultsUrl$in() {
this.checkUninitializedProperty('ResultsUrl');
return (this.get_objectData().get_properties()['ResultsUrl']);
},
set_resultsUrl: function Microsoft_SharePoint_Client_Search_Query_Query$set_resultsUrl$in(value) {
this.get_objectData().get_properties()['ResultsUrl'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ResultsUrl', value));
}
return value;
},
get_rowLimit: function Microsoft_SharePoint_Client_Search_Query_Query$get_rowLimit$in() {
this.checkUninitializedProperty('RowLimit');
return (this.get_objectData().get_properties()['RowLimit']);
},
set_rowLimit: function Microsoft_SharePoint_Client_Search_Query_Query$set_rowLimit$in(value) {
this.get_objectData().get_properties()['RowLimit'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RowLimit', value));
}
return value;
},
get_rowsPerPage: function Microsoft_SharePoint_Client_Search_Query_Query$get_rowsPerPage$in() {
this.checkUninitializedProperty('RowsPerPage');
return (this.get_objectData().get_properties()['RowsPerPage']);
},
set_rowsPerPage: function Microsoft_SharePoint_Client_Search_Query_Query$set_rowsPerPage$in(value) {
this.get_objectData().get_properties()['RowsPerPage'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RowsPerPage', value));
}
return value;
},
get_safeQueryPropertiesTemplateUrl: function Microsoft_SharePoint_Client_Search_Query_Query$get_safeQueryPropertiesTemplateUrl$in() {
this.checkUninitializedProperty('SafeQueryPropertiesTemplateUrl');
return (this.get_objectData().get_properties()['SafeQueryPropertiesTemplateUrl']);
},
set_safeQueryPropertiesTemplateUrl: function Microsoft_SharePoint_Client_Search_Query_Query$set_safeQueryPropertiesTemplateUrl$in(value) {
this.get_objectData().get_properties()['SafeQueryPropertiesTemplateUrl'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'SafeQueryPropertiesTemplateUrl', value));
}
return value;
},
get_showPeopleNameSuggestions: function Microsoft_SharePoint_Client_Search_Query_Query$get_showPeopleNameSuggestions$in() {
this.checkUninitializedProperty('ShowPeopleNameSuggestions');
return (this.get_objectData().get_properties()['ShowPeopleNameSuggestions']);
},
set_showPeopleNameSuggestions: function Microsoft_SharePoint_Client_Search_Query_Query$set_showPeopleNameSuggestions$in(value) {
this.get_objectData().get_properties()['ShowPeopleNameSuggestions'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ShowPeopleNameSuggestions', value));
}
return value;
},
get_sourceId: function Microsoft_SharePoint_Client_Search_Query_Query$get_sourceId$in() {
this.checkUninitializedProperty('SourceId');
return (this.get_objectData().get_properties()['SourceId']);
},
set_sourceId: function Microsoft_SharePoint_Client_Search_Query_Query$set_sourceId$in(value) {
this.get_objectData().get_properties()['SourceId'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'SourceId', value));
}
return value;
},
get_startRow: function Microsoft_SharePoint_Client_Search_Query_Query$get_startRow$in() {
this.checkUninitializedProperty('StartRow');
return (this.get_objectData().get_properties()['StartRow']);
},
set_startRow: function Microsoft_SharePoint_Client_Search_Query_Query$set_startRow$in(value) {
this.get_objectData().get_properties()['StartRow'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'StartRow', value));
}
return value;
},
get_summaryLength: function Microsoft_SharePoint_Client_Search_Query_Query$get_summaryLength$in() {
this.checkUninitializedProperty('SummaryLength');
return (this.get_objectData().get_properties()['SummaryLength']);
},
set_summaryLength: function Microsoft_SharePoint_Client_Search_Query_Query$set_summaryLength$in(value) {
this.get_objectData().get_properties()['SummaryLength'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'SummaryLength', value));
}
return value;
},
get_timeout: function Microsoft_SharePoint_Client_Search_Query_Query$get_timeout$in() {
this.checkUninitializedProperty('Timeout');
return (this.get_objectData().get_properties()['Timeout']);
},
set_timeout: function Microsoft_SharePoint_Client_Search_Query_Query$set_timeout$in(value) {
this.get_objectData().get_properties()['Timeout'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Timeout', value));
}
return value;
},
get_totalRowsExactMinimum: function Microsoft_SharePoint_Client_Search_Query_Query$get_totalRowsExactMinimum$in() {
this.checkUninitializedProperty('TotalRowsExactMinimum');
return (this.get_objectData().get_properties()['TotalRowsExactMinimum']);
},
set_totalRowsExactMinimum: function Microsoft_SharePoint_Client_Search_Query_Query$set_totalRowsExactMinimum$in(value) {
this.get_objectData().get_properties()['TotalRowsExactMinimum'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'TotalRowsExactMinimum', value));
}
return value;
},
get_trimDuplicates: function Microsoft_SharePoint_Client_Search_Query_Query$get_trimDuplicates$in() {
this.checkUninitializedProperty('TrimDuplicates');
return (this.get_objectData().get_properties()['TrimDuplicates']);
},
set_trimDuplicates: function Microsoft_SharePoint_Client_Search_Query_Query$set_trimDuplicates$in(value) {
this.get_objectData().get_properties()['TrimDuplicates'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'TrimDuplicates', value));
}
return value;
},
get_uiLanguage: function Microsoft_SharePoint_Client_Search_Query_Query$get_uiLanguage$in() {
this.checkUninitializedProperty('UILanguage');
return (this.get_objectData().get_properties()['UILanguage']);
},
set_uiLanguage: function Microsoft_SharePoint_Client_Search_Query_Query$set_uiLanguage$in(value) {
this.get_objectData().get_properties()['UILanguage'] = value;
if (this.get_context()) {
this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'UILanguage', value));
}
return value;
},
initPropertiesFromJson: function Microsoft_SharePoint_Client_Search_Query_Query$initPropertiesFromJson$in(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.BlockDedupeMode;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['BlockDedupeMode'] = ($v_0);
delete parentNode.BlockDedupeMode;
}
$v_0 = parentNode.BypassResultTypes;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['BypassResultTypes'] = ($v_0);
delete parentNode.BypassResultTypes;
}
$v_0 = parentNode.ClientType;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['ClientType'] = ($v_0);
delete parentNode.ClientType;
}
$v_0 = parentNode.Culture;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['Culture'] = ($v_0);
delete parentNode.Culture;
}
$v_0 = parentNode.DesiredSnippetLength;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.get_objectData().get_properties()['DesiredSnippetLength'] = ($v_0);
delete parentNode.DesiredSnippetLength;
}
$v_0 = parentNode.EnableInterleaving;
if (!SP.ScriptUtility.isUndefin