How to use get_context method in wpt

Best JavaScript code snippet using wpt

sp.workmanagement.debug.js

Source:sp.workmanagement.debug.js Github

copy

Full Screen

...138}139SP.WorkManagement.OM.BaseSession.prototype = {140 141 createTask: function SP_WorkManagement_OM_BaseSession$createTask(taskName, description, localizedStartDate, localizedDueDate, completed, pinned, locationKey, editUrl) {ULS0Qc:;142 var $v_0 = this.get_context();143 var $v_1;144 $v_1 = new SP.WorkManagement.OM.TaskWriteResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'CreateTask', [ taskName, description, localizedStartDate, localizedDueDate, completed, pinned, locationKey, editUrl ]));145 return $v_1;146 },147 148 createPersonalTaskAndPromoteToProviderTask: function SP_WorkManagement_OM_BaseSession$createPersonalTaskAndPromoteToProviderTask(taskName, description, localizedStartDate, localizedDueDate, completed, pinned, locationKey) {ULS0Qc:;149 var $v_0 = this.get_context();150 var $v_1;151 $v_1 = new SP.WorkManagement.OM.TaskWriteResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'CreatePersonalTaskAndPromoteToProviderTask', [ taskName, description, localizedStartDate, localizedDueDate, completed, pinned, locationKey ]));152 return $v_1;153 },154 155 deleteTask: function SP_WorkManagement_OM_BaseSession$deleteTask(taskKey) {ULS0Qc:;156 var $v_0 = this.get_context();157 var $v_1;158 $v_1 = new SP.WorkManagement.OM.TaskWriteResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'DeleteTask', [ taskKey ]));159 return $v_1;160 },161 162 pinTask: function SP_WorkManagement_OM_BaseSession$pinTask(taskKey) {ULS0Qc:;163 var $v_0 = this.get_context();164 var $v_1;165 $v_1 = new SP.WorkManagement.OM.TaskWriteResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'PinTask', [ taskKey ]));166 return $v_1;167 },168 169 promotePersonalTaskToProviderTaskInLocation: function SP_WorkManagement_OM_BaseSession$promotePersonalTaskToProviderTaskInLocation(taskKey, locationId) {ULS0Qc:;170 var $v_0 = this.get_context();171 var $v_1;172 $v_1 = new SP.WorkManagement.OM.TaskWriteResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'PromotePersonalTaskToProviderTaskInLocation', [ taskKey, locationId ]));173 return $v_1;174 },175 176 removePinOnTask: function SP_WorkManagement_OM_BaseSession$removePinOnTask(taskKey) {ULS0Qc:;177 var $v_0 = this.get_context();178 var $v_1;179 $v_1 = new SP.WorkManagement.OM.TaskWriteResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'RemovePinOnTask', [ taskKey ]));180 return $v_1;181 },182 183 readAllNonTaskData: function SP_WorkManagement_OM_BaseSession$readAllNonTaskData() {ULS0Qc:;184 var $v_0 = this.get_context();185 var $v_1;186 $v_1 = new SP.WorkManagement.OM.NonTaskDataReadResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'ReadAllNonTaskData', null));187 return $v_1;188 },189 190 beginCacheRefresh: function SP_WorkManagement_OM_BaseSession$beginCacheRefresh() {ULS0Qc:;191 var $v_0 = this.get_context();192 var $v_1;193 $v_1 = new SP.WorkManagement.OM.CreateRefreshJobResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'BeginCacheRefresh', null));194 return $v_1;195 },196 197 updateTaskWithLocalizedValue: function SP_WorkManagement_OM_BaseSession$updateTaskWithLocalizedValue(taskKey, field, value) {ULS0Qc:;198 var $v_0 = this.get_context();199 var $v_1;200 $v_1 = new SP.WorkManagement.OM.TaskWriteResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'UpdateTaskWithLocalizedValue', [ taskKey, field, value ]));201 return $v_1;202 },203 204 getCalloutInfo: function SP_WorkManagement_OM_BaseSession$getCalloutInfo(taskKey) {ULS0Qc:;205 var $v_0 = this.get_context();206 var $v_1;207 $v_1 = new SP.WorkManagement.OM.CalloutInfo($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetCalloutInfo', [ taskKey ]));208 return $v_1;209 },210 211 refreshSingleTask: function SP_WorkManagement_OM_BaseSession$refreshSingleTask(taskKey) {ULS0Qc:;212 var $v_0 = this.get_context();213 var $v_1;214 $v_1 = new SP.WorkManagement.OM.TaskRefreshResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'RefreshSingleTask', [ taskKey ]));215 return $v_1;216 },217 218 getRefreshStatus: function SP_WorkManagement_OM_BaseSession$getRefreshStatus(refreshId) {ULS0Qc:;219 var $v_0 = this.get_context();220 var $v_1;221 $v_1 = new SP.WorkManagement.OM.RefreshResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetRefreshStatus', [ refreshId ]));222 return $v_1;223 },224 225 addAttributeToTask: function SP_WorkManagement_OM_BaseSession$addAttributeToTask(taskKey, attribute) {ULS0Qc:;226 var $v_0 = this.get_context();227 var $v_1;228 $v_1 = new SP.WorkManagement.OM.TaskWriteResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'AddAttributeToTask', [ taskKey, attribute ]));229 return $v_1;230 },231 232 removeAttributeFromTask: function SP_WorkManagement_OM_BaseSession$removeAttributeFromTask(taskKey, attribute) {ULS0Qc:;233 var $v_0 = this.get_context();234 var $v_1;235 $v_1 = new SP.WorkManagement.OM.TaskWriteResult($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'RemoveAttributeFromTask', [ taskKey, attribute ]));236 return $v_1;237 },238 239 beginExchangeSync: function SP_WorkManagement_OM_BaseSession$beginExchangeSync() {ULS0Qc:;240 var $v_0 = this.get_context();241 var $v_1;242 var $v_2 = new SP.ClientActionInvokeMethod(this, 'BeginExchangeSync', null);243 $v_0.addQuery($v_2);244 $v_1 = new SP.BooleanResult();245 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);246 return $v_1;247 },248 249 isExchangeJobPending: function SP_WorkManagement_OM_BaseSession$isExchangeJobPending() {ULS0Qc:;250 var $v_0 = this.get_context();251 var $v_1;252 var $v_2 = new SP.ClientActionInvokeMethod(this, 'IsExchangeJobPending', null);253 $v_0.addQuery($v_2);254 $v_1 = new SP.BooleanResult();255 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);256 return $v_1;257 },258 259 getRefreshHealthInfo: function SP_WorkManagement_OM_BaseSession$getRefreshHealthInfo() {ULS0Qc:;260 var $v_0 = this.get_context();261 var $v_1;262 $v_1 = new SP.WorkManagement.OM.RefreshHealthInfo($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetRefreshHealthInfo', null));263 return $v_1;264 },265 266 getRefreshHistory: function SP_WorkManagement_OM_BaseSession$getRefreshHistory(since) {ULS0Qc:;267 var $v_0 = this.get_context();268 var $v_1;269 $v_1 = new SP.WorkManagement.OM.RefreshHistory($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetRefreshHistory', [ since ]));270 return $v_1;271 }272}273SP.WorkManagement.OM.BooleanCriterion = function SP_WorkManagement_OM_BooleanCriterion(context) {ULS0Qc:;274 SP.WorkManagement.OM.BooleanCriterion.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{16d379b2-e752-405e-a05f-a8fe05aa0d07}', arguments) ]);275}276SP.WorkManagement.OM.BooleanCriterion.newObject = function SP_WorkManagement_OM_BooleanCriterion$newObject(context) {ULS0Qc:;277 return new SP.WorkManagement.OM.BooleanCriterion(context, new SP.ObjectPathConstructor(context, '{16d379b2-e752-405e-a05f-a8fe05aa0d07}', null));278}279SP.WorkManagement.OM.BooleanCriterion.prototype = {280 281 get_compareType: function SP_WorkManagement_OM_BooleanCriterion$get_compareType() {ULS0Qc:;282 this.checkUninitializedProperty('CompareType');283 return ((this.get_objectData().get_properties()['CompareType']));284 },285 set_compareType: function SP_WorkManagement_OM_BooleanCriterion$set_compareType(value) {ULS0Qc:;286 this.get_objectData().get_properties()['CompareType'] = value;287 if ((this.get_context())) {288 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CompareType', value));289 }290 return value;291 },292 293 initPropertiesFromJson: function SP_WorkManagement_OM_BooleanCriterion$initPropertiesFromJson(parentNode) {ULS0Qc:;294 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);295 var $v_0;296 $v_0 = parentNode.CompareType;297 if (!SP.ScriptUtility.isUndefined($v_0)) {298 this.get_objectData().get_properties()['CompareType'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));299 delete parentNode.CompareType;300 }301 }302}303SP.WorkManagement.OM.BooleanCriterionPropertyNames = function SP_WorkManagement_OM_BooleanCriterionPropertyNames() {304}305SP.WorkManagement.OM.CalloutInfo = function SP_WorkManagement_OM_CalloutInfo(context, objectPath) {ULS0Qc:;306 SP.WorkManagement.OM.CalloutInfo.initializeBase(this, [ context, objectPath ]);307}308SP.WorkManagement.OM.CalloutInfo.prototype = {309 310 get_contacts: function SP_WorkManagement_OM_CalloutInfo$get_contacts() {ULS0Qc:;311 this.checkUninitializedProperty('Contacts');312 return ((this.get_objectData().get_properties()['Contacts']));313 },314 set_contacts: function SP_WorkManagement_OM_CalloutInfo$set_contacts(value) {ULS0Qc:;315 this.get_objectData().get_properties()['Contacts'] = value;316 if ((this.get_context())) {317 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Contacts', value));318 }319 return value;320 },321 322 get_directLinkTitle: function SP_WorkManagement_OM_CalloutInfo$get_directLinkTitle() {ULS0Qc:;323 this.checkUninitializedProperty('DirectLinkTitle');324 return ((this.get_objectData().get_properties()['DirectLinkTitle']));325 },326 set_directLinkTitle: function SP_WorkManagement_OM_CalloutInfo$set_directLinkTitle(value) {ULS0Qc:;327 this.get_objectData().get_properties()['DirectLinkTitle'] = value;328 if ((this.get_context())) {329 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'DirectLinkTitle', value));330 }331 return value;332 },333 334 get_directLinkUrl: function SP_WorkManagement_OM_CalloutInfo$get_directLinkUrl() {ULS0Qc:;335 this.checkUninitializedProperty('DirectLinkUrl');336 return ((this.get_objectData().get_properties()['DirectLinkUrl']));337 },338 set_directLinkUrl: function SP_WorkManagement_OM_CalloutInfo$set_directLinkUrl(value) {ULS0Qc:;339 this.get_objectData().get_properties()['DirectLinkUrl'] = value;340 if ((this.get_context())) {341 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'DirectLinkUrl', value));342 }343 return value;344 },345 346 get_hierarchy: function SP_WorkManagement_OM_CalloutInfo$get_hierarchy() {ULS0Qc:;347 this.checkUninitializedProperty('Hierarchy');348 return ((this.get_objectData().get_properties()['Hierarchy']));349 },350 set_hierarchy: function SP_WorkManagement_OM_CalloutInfo$set_hierarchy(value) {ULS0Qc:;351 this.get_objectData().get_properties()['Hierarchy'] = value;352 if ((this.get_context())) {353 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Hierarchy', value));354 }355 return value;356 },357 358 get_predecessors: function SP_WorkManagement_OM_CalloutInfo$get_predecessors() {ULS0Qc:;359 this.checkUninitializedProperty('Predecessors');360 return ((this.get_objectData().get_properties()['Predecessors']));361 },362 set_predecessors: function SP_WorkManagement_OM_CalloutInfo$set_predecessors(value) {ULS0Qc:;363 this.get_objectData().get_properties()['Predecessors'] = value;364 if ((this.get_context())) {365 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Predecessors', value));366 }367 return value;368 },369 370 get_successors: function SP_WorkManagement_OM_CalloutInfo$get_successors() {ULS0Qc:;371 this.checkUninitializedProperty('Successors');372 return ((this.get_objectData().get_properties()['Successors']));373 },374 set_successors: function SP_WorkManagement_OM_CalloutInfo$set_successors(value) {ULS0Qc:;375 this.get_objectData().get_properties()['Successors'] = value;376 if ((this.get_context())) {377 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Successors', value));378 }379 return value;380 },381 382 get_title: function SP_WorkManagement_OM_CalloutInfo$get_title() {ULS0Qc:;383 this.checkUninitializedProperty('Title');384 return ((this.get_objectData().get_properties()['Title']));385 },386 set_title: function SP_WorkManagement_OM_CalloutInfo$set_title(value) {ULS0Qc:;387 this.get_objectData().get_properties()['Title'] = value;388 if ((this.get_context())) {389 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Title', value));390 }391 return value;392 },393 394 get_url: function SP_WorkManagement_OM_CalloutInfo$get_url() {ULS0Qc:;395 this.checkUninitializedProperty('Url');396 return ((this.get_objectData().get_properties()['Url']));397 },398 set_url: function SP_WorkManagement_OM_CalloutInfo$set_url(value) {ULS0Qc:;399 this.get_objectData().get_properties()['Url'] = value;400 if ((this.get_context())) {401 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Url', value));402 }403 return value;404 },405 406 initPropertiesFromJson: function SP_WorkManagement_OM_CalloutInfo$initPropertiesFromJson(parentNode) {ULS0Qc:;407 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);408 var $v_0;409 $v_0 = parentNode.Contacts;410 if (!SP.ScriptUtility.isUndefined($v_0)) {411 this.get_objectData().get_properties()['Contacts'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));412 delete parentNode.Contacts;413 }414 $v_0 = parentNode.DirectLinkTitle;415 if (!SP.ScriptUtility.isUndefined($v_0)) {416 this.get_objectData().get_properties()['DirectLinkTitle'] = ($v_0);417 delete parentNode.DirectLinkTitle;418 }419 $v_0 = parentNode.DirectLinkUrl;420 if (!SP.ScriptUtility.isUndefined($v_0)) {421 this.get_objectData().get_properties()['DirectLinkUrl'] = ($v_0);422 delete parentNode.DirectLinkUrl;423 }424 $v_0 = parentNode.Hierarchy;425 if (!SP.ScriptUtility.isUndefined($v_0)) {426 this.get_objectData().get_properties()['Hierarchy'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));427 delete parentNode.Hierarchy;428 }429 $v_0 = parentNode.Predecessors;430 if (!SP.ScriptUtility.isUndefined($v_0)) {431 this.get_objectData().get_properties()['Predecessors'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));432 delete parentNode.Predecessors;433 }434 $v_0 = parentNode.Successors;435 if (!SP.ScriptUtility.isUndefined($v_0)) {436 this.get_objectData().get_properties()['Successors'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));437 delete parentNode.Successors;438 }439 $v_0 = parentNode.Title;440 if (!SP.ScriptUtility.isUndefined($v_0)) {441 this.get_objectData().get_properties()['Title'] = ($v_0);442 delete parentNode.Title;443 }444 $v_0 = parentNode.Url;445 if (!SP.ScriptUtility.isUndefined($v_0)) {446 this.get_objectData().get_properties()['Url'] = ($v_0);447 delete parentNode.Url;448 }449 }450}451SP.WorkManagement.OM.CalloutInfoPropertyNames = function SP_WorkManagement_OM_CalloutInfoPropertyNames() {452}453SP.WorkManagement.OM.CreateRefreshJobResult = function SP_WorkManagement_OM_CreateRefreshJobResult(context, objectPath) {ULS0Qc:;454 SP.WorkManagement.OM.CreateRefreshJobResult.initializeBase(this, [ context, objectPath ]);455}456SP.WorkManagement.OM.CreateRefreshJobResult.prototype = {457 458 get_createdJob: function SP_WorkManagement_OM_CreateRefreshJobResult$get_createdJob() {ULS0Qc:;459 this.checkUninitializedProperty('CreatedJob');460 return ((this.get_objectData().get_properties()['CreatedJob']));461 },462 set_createdJob: function SP_WorkManagement_OM_CreateRefreshJobResult$set_createdJob(value) {ULS0Qc:;463 this.get_objectData().get_properties()['CreatedJob'] = value;464 if ((this.get_context())) {465 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CreatedJob', value));466 }467 return value;468 },469 470 get_currentJobId: function SP_WorkManagement_OM_CreateRefreshJobResult$get_currentJobId() {ULS0Qc:;471 this.checkUninitializedProperty('CurrentJobId');472 return ((this.get_objectData().get_properties()['CurrentJobId']));473 },474 set_currentJobId: function SP_WorkManagement_OM_CreateRefreshJobResult$set_currentJobId(value) {ULS0Qc:;475 this.get_objectData().get_properties()['CurrentJobId'] = value;476 if ((this.get_context())) {477 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CurrentJobId', value));478 }479 return value;480 },481 482 get_encounteredError: function SP_WorkManagement_OM_CreateRefreshJobResult$get_encounteredError() {ULS0Qc:;483 this.checkUninitializedProperty('EncounteredError');484 return ((this.get_objectData().get_properties()['EncounteredError']));485 },486 set_encounteredError: function SP_WorkManagement_OM_CreateRefreshJobResult$set_encounteredError(value) {ULS0Qc:;487 this.get_objectData().get_properties()['EncounteredError'] = value;488 if ((this.get_context())) {489 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EncounteredError', value));490 }491 return value;492 },493 494 initPropertiesFromJson: function SP_WorkManagement_OM_CreateRefreshJobResult$initPropertiesFromJson(parentNode) {ULS0Qc:;495 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);496 var $v_0;497 $v_0 = parentNode.CreatedJob;498 if (!SP.ScriptUtility.isUndefined($v_0)) {499 this.get_objectData().get_properties()['CreatedJob'] = ($v_0);500 delete parentNode.CreatedJob;501 }502 $v_0 = parentNode.CurrentJobId;503 if (!SP.ScriptUtility.isUndefined($v_0)) {504 this.get_objectData().get_properties()['CurrentJobId'] = ($v_0);505 delete parentNode.CurrentJobId;506 }507 $v_0 = parentNode.EncounteredError;508 if (!SP.ScriptUtility.isUndefined($v_0)) {509 this.get_objectData().get_properties()['EncounteredError'] = ($v_0);510 delete parentNode.EncounteredError;511 }512 }513}514SP.WorkManagement.OM.CreateRefreshJobResultPropertyNames = function SP_WorkManagement_OM_CreateRefreshJobResultPropertyNames() {515}516SP.WorkManagement.OM.CustomAttributeFilter = function SP_WorkManagement_OM_CustomAttributeFilter(context) {ULS0Qc:;517 SP.WorkManagement.OM.CustomAttributeFilter.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{0e21bb74-7473-48b1-9f7b-d1185ba1ca71}', arguments) ]);518}519SP.WorkManagement.OM.CustomAttributeFilter.newObject = function SP_WorkManagement_OM_CustomAttributeFilter$newObject(context) {ULS0Qc:;520 return new SP.WorkManagement.OM.CustomAttributeFilter(context, new SP.ObjectPathConstructor(context, '{0e21bb74-7473-48b1-9f7b-d1185ba1ca71}', null));521}522SP.WorkManagement.OM.CustomAttributeFilter.prototype = {523 524 get_attributes: function SP_WorkManagement_OM_CustomAttributeFilter$get_attributes() {ULS0Qc:;525 this.checkUninitializedProperty('Attributes');526 return ((this.get_objectData().get_properties()['Attributes']));527 },528 set_attributes: function SP_WorkManagement_OM_CustomAttributeFilter$set_attributes(value) {ULS0Qc:;529 this.get_objectData().get_properties()['Attributes'] = value;530 if ((this.get_context())) {531 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Attributes', value));532 }533 return value;534 },535 536 get_concatType: function SP_WorkManagement_OM_CustomAttributeFilter$get_concatType() {ULS0Qc:;537 this.checkUninitializedProperty('ConcatType');538 return ((this.get_objectData().get_properties()['ConcatType']));539 },540 set_concatType: function SP_WorkManagement_OM_CustomAttributeFilter$set_concatType(value) {ULS0Qc:;541 this.get_objectData().get_properties()['ConcatType'] = value;542 if ((this.get_context())) {543 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ConcatType', value));544 }545 return value;546 },547 548 initPropertiesFromJson: function SP_WorkManagement_OM_CustomAttributeFilter$initPropertiesFromJson(parentNode) {ULS0Qc:;549 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);550 var $v_0;551 $v_0 = parentNode.Attributes;552 if (!SP.ScriptUtility.isUndefined($v_0)) {553 this.get_objectData().get_properties()['Attributes'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));554 delete parentNode.Attributes;555 }556 $v_0 = parentNode.ConcatType;557 if (!SP.ScriptUtility.isUndefined($v_0)) {558 this.get_objectData().get_properties()['ConcatType'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));559 delete parentNode.ConcatType;560 }561 }562}563SP.WorkManagement.OM.CustomAttributeFilterPropertyNames = function SP_WorkManagement_OM_CustomAttributeFilterPropertyNames() {564}565SP.WorkManagement.OM.DashboardScriptExtensionInfo = function SP_WorkManagement_OM_DashboardScriptExtensionInfo(context, objectPath) {ULS0Qc:;566 SP.WorkManagement.OM.DashboardScriptExtensionInfo.initializeBase(this, [ context, objectPath ]);567}568SP.WorkManagement.OM.DashboardScriptExtensionInfo.prototype = {569 570 get_providerKey: function SP_WorkManagement_OM_DashboardScriptExtensionInfo$get_providerKey() {ULS0Qc:;571 this.checkUninitializedProperty('ProviderKey');572 return ((this.get_objectData().get_properties()['ProviderKey']));573 },574 set_providerKey: function SP_WorkManagement_OM_DashboardScriptExtensionInfo$set_providerKey(value) {ULS0Qc:;575 this.get_objectData().get_properties()['ProviderKey'] = value;576 if ((this.get_context())) {577 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ProviderKey', value));578 }579 return value;580 },581 582 get_scriptClass: function SP_WorkManagement_OM_DashboardScriptExtensionInfo$get_scriptClass() {ULS0Qc:;583 this.checkUninitializedProperty('ScriptClass');584 return ((this.get_objectData().get_properties()['ScriptClass']));585 },586 set_scriptClass: function SP_WorkManagement_OM_DashboardScriptExtensionInfo$set_scriptClass(value) {ULS0Qc:;587 this.get_objectData().get_properties()['ScriptClass'] = value;588 if ((this.get_context())) {589 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ScriptClass', value));590 }591 return value;592 },593 594 get_scriptData: function SP_WorkManagement_OM_DashboardScriptExtensionInfo$get_scriptData() {ULS0Qc:;595 this.checkUninitializedProperty('ScriptData');596 return ((this.get_objectData().get_properties()['ScriptData']));597 },598 set_scriptData: function SP_WorkManagement_OM_DashboardScriptExtensionInfo$set_scriptData(value) {ULS0Qc:;599 this.get_objectData().get_properties()['ScriptData'] = value;600 if ((this.get_context())) {601 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ScriptData', value));602 }603 return value;604 },605 606 get_scriptFiles: function SP_WorkManagement_OM_DashboardScriptExtensionInfo$get_scriptFiles() {ULS0Qc:;607 this.checkUninitializedProperty('ScriptFiles');608 return ((this.get_objectData().get_properties()['ScriptFiles']));609 },610 set_scriptFiles: function SP_WorkManagement_OM_DashboardScriptExtensionInfo$set_scriptFiles(value) {ULS0Qc:;611 this.get_objectData().get_properties()['ScriptFiles'] = value;612 if ((this.get_context())) {613 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ScriptFiles', value));614 }615 return value;616 },617 618 initPropertiesFromJson: function SP_WorkManagement_OM_DashboardScriptExtensionInfo$initPropertiesFromJson(parentNode) {ULS0Qc:;619 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);620 var $v_0;621 $v_0 = parentNode.ProviderKey;622 if (!SP.ScriptUtility.isUndefined($v_0)) {623 this.get_objectData().get_properties()['ProviderKey'] = ($v_0);624 delete parentNode.ProviderKey;625 }626 $v_0 = parentNode.ScriptClass;627 if (!SP.ScriptUtility.isUndefined($v_0)) {628 this.get_objectData().get_properties()['ScriptClass'] = ($v_0);629 delete parentNode.ScriptClass;630 }631 $v_0 = parentNode.ScriptData;632 if (!SP.ScriptUtility.isUndefined($v_0)) {633 this.get_objectData().get_properties()['ScriptData'] = ($v_0);634 delete parentNode.ScriptData;635 }636 $v_0 = parentNode.ScriptFiles;637 if (!SP.ScriptUtility.isUndefined($v_0)) {638 this.get_objectData().get_properties()['ScriptFiles'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));639 delete parentNode.ScriptFiles;640 }641 }642}643SP.WorkManagement.OM.DashboardScriptExtensionInfoPropertyNames = function SP_WorkManagement_OM_DashboardScriptExtensionInfoPropertyNames() {644}645SP.WorkManagement.OM.DashboardScriptExtensionInfoClientCollection = function SP_WorkManagement_OM_DashboardScriptExtensionInfoClientCollection(context, objectPath) {ULS0Qc:;646 SP.WorkManagement.OM.DashboardScriptExtensionInfoClientCollection.initializeBase(this, [ context, objectPath ]);647}648SP.WorkManagement.OM.DashboardScriptExtensionInfoClientCollection.prototype = {649 650 itemAt: function SP_WorkManagement_OM_DashboardScriptExtensionInfoClientCollection$itemAt(index) {ULS0Qc:;651 return this.getItemAtIndex(index);652 },653 654 get_item: function SP_WorkManagement_OM_DashboardScriptExtensionInfoClientCollection$get_item(index) {ULS0Qc:;655 return this.getItemAtIndex(index);656 },657 658 get_childItemType: function SP_WorkManagement_OM_DashboardScriptExtensionInfoClientCollection$get_childItemType() {ULS0Qc:;659 return SP.WorkManagement.OM.DashboardScriptExtensionInfo;660 }661}662SP.WorkManagement.OM.DateRangeCriterion = function SP_WorkManagement_OM_DateRangeCriterion(context) {ULS0Qc:;663 SP.WorkManagement.OM.DateRangeCriterion.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{c9c79001-8e9d-4f24-860b-55bd22c13eae}', arguments) ]);664}665SP.WorkManagement.OM.DateRangeCriterion.newObject = function SP_WorkManagement_OM_DateRangeCriterion$newObject(context) {ULS0Qc:;666 return new SP.WorkManagement.OM.DateRangeCriterion(context, new SP.ObjectPathConstructor(context, '{c9c79001-8e9d-4f24-860b-55bd22c13eae}', null));667}668SP.WorkManagement.OM.DateRangeCriterion.prototype = {669 670 get_rangeEndValue: function SP_WorkManagement_OM_DateRangeCriterion$get_rangeEndValue() {ULS0Qc:;671 this.checkUninitializedProperty('RangeEndValue');672 return ((this.get_objectData().get_properties()['RangeEndValue']));673 },674 set_rangeEndValue: function SP_WorkManagement_OM_DateRangeCriterion$set_rangeEndValue(value) {ULS0Qc:;675 this.get_objectData().get_properties()['RangeEndValue'] = value;676 if ((this.get_context())) {677 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RangeEndValue', value));678 }679 return value;680 },681 682 get_rangeStartValue: function SP_WorkManagement_OM_DateRangeCriterion$get_rangeStartValue() {ULS0Qc:;683 this.checkUninitializedProperty('RangeStartValue');684 return ((this.get_objectData().get_properties()['RangeStartValue']));685 },686 set_rangeStartValue: function SP_WorkManagement_OM_DateRangeCriterion$set_rangeStartValue(value) {ULS0Qc:;687 this.get_objectData().get_properties()['RangeStartValue'] = value;688 if ((this.get_context())) {689 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RangeStartValue', value));690 }691 return value;692 },693 694 initPropertiesFromJson: function SP_WorkManagement_OM_DateRangeCriterion$initPropertiesFromJson(parentNode) {ULS0Qc:;695 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);696 var $v_0;697 $v_0 = parentNode.RangeEndValue;698 if (!SP.ScriptUtility.isUndefined($v_0)) {699 this.get_objectData().get_properties()['RangeEndValue'] = ($v_0);700 delete parentNode.RangeEndValue;701 }702 $v_0 = parentNode.RangeStartValue;703 if (!SP.ScriptUtility.isUndefined($v_0)) {704 this.get_objectData().get_properties()['RangeStartValue'] = ($v_0);705 delete parentNode.RangeStartValue;706 }707 }708}709SP.WorkManagement.OM.DateRangeCriterionPropertyNames = function SP_WorkManagement_OM_DateRangeCriterionPropertyNames() {710}711SP.WorkManagement.OM.ExchangeUserSyncState = function SP_WorkManagement_OM_ExchangeUserSyncState(context, objectPath) {ULS0Qc:;712 SP.WorkManagement.OM.ExchangeUserSyncState.initializeBase(this, [ context, objectPath ]);713}714SP.WorkManagement.OM.ExchangeUserSyncState.prototype = {715 716 get_isOptedIn: function SP_WorkManagement_OM_ExchangeUserSyncState$get_isOptedIn() {ULS0Qc:;717 this.checkUninitializedProperty('IsOptedIn');718 return ((this.get_objectData().get_properties()['IsOptedIn']));719 },720 721 get_lastEndTime: function SP_WorkManagement_OM_ExchangeUserSyncState$get_lastEndTime() {ULS0Qc:;722 this.checkUninitializedProperty('LastEndTime');723 return ((this.get_objectData().get_properties()['LastEndTime']));724 },725 726 get_lastSyncResult: function SP_WorkManagement_OM_ExchangeUserSyncState$get_lastSyncResult() {ULS0Qc:;727 this.checkUninitializedProperty('LastSyncResult');728 return ((this.get_objectData().get_properties()['LastSyncResult']));729 },730 731 initPropertiesFromJson: function SP_WorkManagement_OM_ExchangeUserSyncState$initPropertiesFromJson(parentNode) {ULS0Qc:;732 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);733 var $v_0;734 $v_0 = parentNode.IsOptedIn;735 if (!SP.ScriptUtility.isUndefined($v_0)) {736 this.get_objectData().get_properties()['IsOptedIn'] = ($v_0);737 delete parentNode.IsOptedIn;738 }739 $v_0 = parentNode.LastEndTime;740 if (!SP.ScriptUtility.isUndefined($v_0)) {741 this.get_objectData().get_properties()['LastEndTime'] = ($v_0);742 delete parentNode.LastEndTime;743 }744 $v_0 = parentNode.LastSyncResult;745 if (!SP.ScriptUtility.isUndefined($v_0)) {746 this.get_objectData().get_properties()['LastSyncResult'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));747 delete parentNode.LastSyncResult;748 }749 }750}751SP.WorkManagement.OM.ExchangeUserSyncStatePropertyNames = function SP_WorkManagement_OM_ExchangeUserSyncStatePropertyNames() {752}753SP.WorkManagement.OM.Location = function SP_WorkManagement_OM_Location(context) {ULS0Qc:;754 SP.WorkManagement.OM.Location.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{0280ffca-96c5-4c96-bbbb-759887950afd}', arguments) ]);755}756SP.WorkManagement.OM.Location.newObject = function SP_WorkManagement_OM_Location$newObject(context) {ULS0Qc:;757 return new SP.WorkManagement.OM.Location(context, new SP.ObjectPathConstructor(context, '{0280ffca-96c5-4c96-bbbb-759887950afd}', null));758}759SP.WorkManagement.OM.Location.prototype = {760 761 get_color: function SP_WorkManagement_OM_Location$get_color() {ULS0Qc:;762 this.checkUninitializedProperty('Color');763 return ((this.get_objectData().get_properties()['Color']));764 },765 set_color: function SP_WorkManagement_OM_Location$set_color(value) {ULS0Qc:;766 this.get_objectData().get_properties()['Color'] = value;767 if ((this.get_context())) {768 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Color', value));769 }770 return value;771 },772 773 get_id: function SP_WorkManagement_OM_Location$get_id() {ULS0Qc:;774 this.checkUninitializedProperty('Id');775 return ((this.get_objectData().get_properties()['Id']));776 },777 set_id: function SP_WorkManagement_OM_Location$set_id(value) {ULS0Qc:;778 this.get_objectData().get_properties()['Id'] = value;779 if ((this.get_context())) {780 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Id', value));781 }782 return value;783 },784 785 get_important: function SP_WorkManagement_OM_Location$get_important() {ULS0Qc:;786 this.checkUninitializedProperty('Important');787 return ((this.get_objectData().get_properties()['Important']));788 },789 set_important: function SP_WorkManagement_OM_Location$set_important(value) {ULS0Qc:;790 this.get_objectData().get_properties()['Important'] = value;791 if ((this.get_context())) {792 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Important', value));793 }794 return value;795 },796 797 get_name: function SP_WorkManagement_OM_Location$get_name() {ULS0Qc:;798 this.checkUninitializedProperty('Name');799 return ((this.get_objectData().get_properties()['Name']));800 },801 set_name: function SP_WorkManagement_OM_Location$set_name(value) {ULS0Qc:;802 this.get_objectData().get_properties()['Name'] = value;803 if ((this.get_context())) {804 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Name', value));805 }806 return value;807 },808 809 get_parentId: function SP_WorkManagement_OM_Location$get_parentId() {ULS0Qc:;810 this.checkUninitializedProperty('ParentId');811 return ((this.get_objectData().get_properties()['ParentId']));812 },813 set_parentId: function SP_WorkManagement_OM_Location$set_parentId(value) {ULS0Qc:;814 this.get_objectData().get_properties()['ParentId'] = value;815 if ((this.get_context())) {816 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ParentId', value));817 }818 return value;819 },820 821 get_rootProviderKey: function SP_WorkManagement_OM_Location$get_rootProviderKey() {ULS0Qc:;822 this.checkUninitializedProperty('RootProviderKey');823 return ((this.get_objectData().get_properties()['RootProviderKey']));824 },825 set_rootProviderKey: function SP_WorkManagement_OM_Location$set_rootProviderKey(value) {ULS0Qc:;826 this.get_objectData().get_properties()['RootProviderKey'] = value;827 if ((this.get_context())) {828 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RootProviderKey', value));829 }830 return value;831 },832 833 get_url: function SP_WorkManagement_OM_Location$get_url() {ULS0Qc:;834 this.checkUninitializedProperty('Url');835 return ((this.get_objectData().get_properties()['Url']));836 },837 set_url: function SP_WorkManagement_OM_Location$set_url(value) {ULS0Qc:;838 this.get_objectData().get_properties()['Url'] = value;839 if ((this.get_context())) {840 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Url', value));841 }842 return value;843 },844 845 initPropertiesFromJson: function SP_WorkManagement_OM_Location$initPropertiesFromJson(parentNode) {ULS0Qc:;846 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);847 var $v_0;848 $v_0 = parentNode.Color;849 if (!SP.ScriptUtility.isUndefined($v_0)) {850 this.get_objectData().get_properties()['Color'] = ($v_0);851 delete parentNode.Color;852 }853 $v_0 = parentNode.Id;854 if (!SP.ScriptUtility.isUndefined($v_0)) {855 this.get_objectData().get_properties()['Id'] = ($v_0);856 delete parentNode.Id;857 }858 $v_0 = parentNode.Important;859 if (!SP.ScriptUtility.isUndefined($v_0)) {860 this.get_objectData().get_properties()['Important'] = ($v_0);861 delete parentNode.Important;862 }863 $v_0 = parentNode.Name;864 if (!SP.ScriptUtility.isUndefined($v_0)) {865 this.get_objectData().get_properties()['Name'] = ($v_0);866 delete parentNode.Name;867 }868 $v_0 = parentNode.ParentId;869 if (!SP.ScriptUtility.isUndefined($v_0)) {870 this.get_objectData().get_properties()['ParentId'] = ($v_0);871 delete parentNode.ParentId;872 }873 $v_0 = parentNode.RootProviderKey;874 if (!SP.ScriptUtility.isUndefined($v_0)) {875 this.get_objectData().get_properties()['RootProviderKey'] = ($v_0);876 delete parentNode.RootProviderKey;877 }878 $v_0 = parentNode.Url;879 if (!SP.ScriptUtility.isUndefined($v_0)) {880 this.get_objectData().get_properties()['Url'] = ($v_0);881 delete parentNode.Url;882 }883 }884}885SP.WorkManagement.OM.LocationPropertyNames = function SP_WorkManagement_OM_LocationPropertyNames() {886}887SP.WorkManagement.OM.LocationClientCollection = function SP_WorkManagement_OM_LocationClientCollection(context, objectPath) {ULS0Qc:;888 SP.WorkManagement.OM.LocationClientCollection.initializeBase(this, [ context, objectPath ]);889}890SP.WorkManagement.OM.LocationClientCollection.prototype = {891 892 itemAt: function SP_WorkManagement_OM_LocationClientCollection$itemAt(index) {ULS0Qc:;893 return this.getItemAtIndex(index);894 },895 896 get_item: function SP_WorkManagement_OM_LocationClientCollection$get_item(index) {ULS0Qc:;897 return this.getItemAtIndex(index);898 },899 900 get_childItemType: function SP_WorkManagement_OM_LocationClientCollection$get_childItemType() {ULS0Qc:;901 return SP.WorkManagement.OM.Location;902 }903}904SP.WorkManagement.OM.LocationDisplaySetting = function SP_WorkManagement_OM_LocationDisplaySetting(context, objectPath) {ULS0Qc:;905 SP.WorkManagement.OM.LocationDisplaySetting.initializeBase(this, [ context, objectPath ]);906}907SP.WorkManagement.OM.LocationDisplaySetting.prototype = {908 909 get_color: function SP_WorkManagement_OM_LocationDisplaySetting$get_color() {ULS0Qc:;910 this.checkUninitializedProperty('Color');911 return ((this.get_objectData().get_properties()['Color']));912 },913 set_color: function SP_WorkManagement_OM_LocationDisplaySetting$set_color(value) {ULS0Qc:;914 this.get_objectData().get_properties()['Color'] = value;915 if ((this.get_context())) {916 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Color', value));917 }918 return value;919 },920 921 get_id: function SP_WorkManagement_OM_LocationDisplaySetting$get_id() {ULS0Qc:;922 this.checkUninitializedProperty('Id');923 return ((this.get_objectData().get_properties()['Id']));924 },925 set_id: function SP_WorkManagement_OM_LocationDisplaySetting$set_id(value) {ULS0Qc:;926 this.get_objectData().get_properties()['Id'] = value;927 if ((this.get_context())) {928 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Id', value));929 }930 return value;931 },932 933 initPropertiesFromJson: function SP_WorkManagement_OM_LocationDisplaySetting$initPropertiesFromJson(parentNode) {ULS0Qc:;934 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);935 var $v_0;936 $v_0 = parentNode.Color;937 if (!SP.ScriptUtility.isUndefined($v_0)) {938 this.get_objectData().get_properties()['Color'] = ($v_0);939 delete parentNode.Color;940 }941 $v_0 = parentNode.Id;942 if (!SP.ScriptUtility.isUndefined($v_0)) {943 this.get_objectData().get_properties()['Id'] = ($v_0);944 delete parentNode.Id;945 }946 }947}948SP.WorkManagement.OM.LocationDisplaySettingPropertyNames = function SP_WorkManagement_OM_LocationDisplaySettingPropertyNames() {949}950SP.WorkManagement.OM.LocationFilter = function SP_WorkManagement_OM_LocationFilter(context) {ULS0Qc:;951 SP.WorkManagement.OM.LocationFilter.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{d9ce752e-01ed-4872-b4da-fc362038fbf0}', arguments) ]);952}953SP.WorkManagement.OM.LocationFilter.newObject = function SP_WorkManagement_OM_LocationFilter$newObject(context) {ULS0Qc:;954 return new SP.WorkManagement.OM.LocationFilter(context, new SP.ObjectPathConstructor(context, '{d9ce752e-01ed-4872-b4da-fc362038fbf0}', null));955}956SP.WorkManagement.OM.LocationFilter.prototype = {957 958 get_includeUncategorizedTasks: function SP_WorkManagement_OM_LocationFilter$get_includeUncategorizedTasks() {ULS0Qc:;959 this.checkUninitializedProperty('IncludeUncategorizedTasks');960 return ((this.get_objectData().get_properties()['IncludeUncategorizedTasks']));961 },962 set_includeUncategorizedTasks: function SP_WorkManagement_OM_LocationFilter$set_includeUncategorizedTasks(value) {ULS0Qc:;963 this.get_objectData().get_properties()['IncludeUncategorizedTasks'] = value;964 if ((this.get_context())) {965 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'IncludeUncategorizedTasks', value));966 }967 return value;968 },969 970 get_locationKeys: function SP_WorkManagement_OM_LocationFilter$get_locationKeys() {ULS0Qc:;971 this.checkUninitializedProperty('LocationKeys');972 return ((this.get_objectData().get_properties()['LocationKeys']));973 },974 set_locationKeys: function SP_WorkManagement_OM_LocationFilter$set_locationKeys(value) {ULS0Qc:;975 this.get_objectData().get_properties()['LocationKeys'] = value;976 if ((this.get_context())) {977 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'LocationKeys', value));978 }979 return value;980 },981 982 initPropertiesFromJson: function SP_WorkManagement_OM_LocationFilter$initPropertiesFromJson(parentNode) {ULS0Qc:;983 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);984 var $v_0;985 $v_0 = parentNode.IncludeUncategorizedTasks;986 if (!SP.ScriptUtility.isUndefined($v_0)) {987 this.get_objectData().get_properties()['IncludeUncategorizedTasks'] = ($v_0);988 delete parentNode.IncludeUncategorizedTasks;989 }990 $v_0 = parentNode.LocationKeys;991 if (!SP.ScriptUtility.isUndefined($v_0)) {992 this.get_objectData().get_properties()['LocationKeys'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));993 delete parentNode.LocationKeys;994 }995 }996}997SP.WorkManagement.OM.LocationFilterPropertyNames = function SP_WorkManagement_OM_LocationFilterPropertyNames() {998}999SP.WorkManagement.OM.LocationGroupClientCollection = function SP_WorkManagement_OM_LocationGroupClientCollection(context) {ULS0Qc:;1000 SP.WorkManagement.OM.LocationGroupClientCollection.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{25acd8c5-c100-45da-b4c5-2bf698f65649}', arguments) ]);1001}1002SP.WorkManagement.OM.LocationGroupClientCollection.newObject = function SP_WorkManagement_OM_LocationGroupClientCollection$newObject(context) {ULS0Qc:;1003 return new SP.WorkManagement.OM.LocationGroupClientCollection(context, new SP.ObjectPathConstructor(context, '{25acd8c5-c100-45da-b4c5-2bf698f65649}', null));1004}1005SP.WorkManagement.OM.LocationGroupClientCollection.prototype = {1006 1007 itemAt: function SP_WorkManagement_OM_LocationGroupClientCollection$itemAt(index) {ULS0Qc:;1008 return this.getItemAtIndex(index);1009 },1010 1011 get_item: function SP_WorkManagement_OM_LocationGroupClientCollection$get_item(index) {ULS0Qc:;1012 return this.getItemAtIndex(index);1013 },1014 1015 get_childItemType: function SP_WorkManagement_OM_LocationGroupClientCollection$get_childItemType() {ULS0Qc:;1016 return SP.WorkManagement.OM.Task;1017 }1018}1019SP.WorkManagement.OM.LocationOrientedSortableSession = function SP_WorkManagement_OM_LocationOrientedSortableSession(context, objectPath) {ULS0Qc:;1020 SP.WorkManagement.OM.LocationOrientedSortableSession.initializeBase(this, [ context, objectPath ]);1021}1022SP.WorkManagement.OM.LocationOrientedSortableSession.prototype = {1023 1024 movePersonalTaskToLocation: function SP_WorkManagement_OM_LocationOrientedSortableSession$movePersonalTaskToLocation(taskKey, newLocationKey) {ULS0Qc:;1025 var $v_0 = this.get_context();1026 var $v_1;1027 var $v_2 = new SP.ClientActionInvokeMethod(this, 'MovePersonalTaskToLocation', [ taskKey, newLocationKey ]);1028 $v_0.addQuery($v_2);1029 $v_1 = new SP.BooleanResult();1030 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);1031 return $v_1;1032 },1033 1034 readTasks: function SP_WorkManagement_OM_LocationOrientedSortableSession$readTasks(query) {ULS0Qc:;1035 var $v_0 = this.get_context();1036 var $v_1;1037 $v_1 = new SP.WorkManagement.OM.LocationGroupClientCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'ReadTasks', [ query ]));1038 return $v_1;1039 }1040}1041SP.WorkManagement.OM.LocationOrientedUserOrderedSession = function SP_WorkManagement_OM_LocationOrientedUserOrderedSession(context, objectPath) {ULS0Qc:;1042 SP.WorkManagement.OM.LocationOrientedUserOrderedSession.initializeBase(this, [ context, objectPath ]);1043}1044SP.WorkManagement.OM.LocationOrientedUserOrderedSession.prototype = {1045 1046 reorderTask: function SP_WorkManagement_OM_LocationOrientedUserOrderedSession$reorderTask(taskKey, newAfterTaskKey) {ULS0Qc:;1047 var $v_0 = this.get_context();1048 var $v_1 = new SP.ClientActionInvokeMethod(this, 'ReorderTask', [ taskKey, newAfterTaskKey ]);1049 $v_0.addQuery($v_1);1050 },1051 1052 movePersonalTaskToLocation: function SP_WorkManagement_OM_LocationOrientedUserOrderedSession$movePersonalTaskToLocation(taskKey, newLocationKey) {ULS0Qc:;1053 var $v_0 = this.get_context();1054 var $v_1;1055 var $v_2 = new SP.ClientActionInvokeMethod(this, 'MovePersonalTaskToLocation', [ taskKey, newLocationKey ]);1056 $v_0.addQuery($v_2);1057 $v_1 = new SP.BooleanResult();1058 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);1059 return $v_1;1060 },1061 1062 readTasks: function SP_WorkManagement_OM_LocationOrientedUserOrderedSession$readTasks(query) {ULS0Qc:;1063 var $v_0 = this.get_context();1064 var $v_1;1065 $v_1 = new SP.WorkManagement.OM.LocationGroupClientCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'ReadTasks', [ query ]));1066 return $v_1;1067 }1068}1069SP.WorkManagement.OM.LocationUpdateResult = function SP_WorkManagement_OM_LocationUpdateResult(context, objectPath) {ULS0Qc:;1070 SP.WorkManagement.OM.LocationUpdateResult.initializeBase(this, [ context, objectPath ]);1071}1072SP.WorkManagement.OM.LocationUpdateResult.prototype = {1073 1074 get_activeAddedCount: function SP_WorkManagement_OM_LocationUpdateResult$get_activeAddedCount() {ULS0Qc:;1075 this.checkUninitializedProperty('ActiveAddedCount');1076 return ((this.get_objectData().get_properties()['ActiveAddedCount']));1077 },1078 set_activeAddedCount: function SP_WorkManagement_OM_LocationUpdateResult$set_activeAddedCount(value) {ULS0Qc:;1079 this.get_objectData().get_properties()['ActiveAddedCount'] = value;1080 if ((this.get_context())) {1081 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ActiveAddedCount', value));1082 }1083 return value;1084 },1085 1086 get_addedCount: function SP_WorkManagement_OM_LocationUpdateResult$get_addedCount() {ULS0Qc:;1087 this.checkUninitializedProperty('AddedCount');1088 return ((this.get_objectData().get_properties()['AddedCount']));1089 },1090 set_addedCount: function SP_WorkManagement_OM_LocationUpdateResult$set_addedCount(value) {ULS0Qc:;1091 this.get_objectData().get_properties()['AddedCount'] = value;1092 if ((this.get_context())) {1093 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'AddedCount', value));1094 }1095 return value;1096 },1097 1098 get_removedCount: function SP_WorkManagement_OM_LocationUpdateResult$get_removedCount() {ULS0Qc:;1099 this.checkUninitializedProperty('RemovedCount');1100 return ((this.get_objectData().get_properties()['RemovedCount']));1101 },1102 set_removedCount: function SP_WorkManagement_OM_LocationUpdateResult$set_removedCount(value) {ULS0Qc:;1103 this.get_objectData().get_properties()['RemovedCount'] = value;1104 if ((this.get_context())) {1105 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RemovedCount', value));1106 }1107 return value;1108 },1109 1110 get_rootLocationId: function SP_WorkManagement_OM_LocationUpdateResult$get_rootLocationId() {ULS0Qc:;1111 this.checkUninitializedProperty('RootLocationId');1112 return ((this.get_objectData().get_properties()['RootLocationId']));1113 },1114 set_rootLocationId: function SP_WorkManagement_OM_LocationUpdateResult$set_rootLocationId(value) {ULS0Qc:;1115 this.get_objectData().get_properties()['RootLocationId'] = value;1116 if ((this.get_context())) {1117 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RootLocationId', value));1118 }1119 return value;1120 },1121 1122 get_updatedCount: function SP_WorkManagement_OM_LocationUpdateResult$get_updatedCount() {ULS0Qc:;1123 this.checkUninitializedProperty('UpdatedCount');1124 return ((this.get_objectData().get_properties()['UpdatedCount']));1125 },1126 set_updatedCount: function SP_WorkManagement_OM_LocationUpdateResult$set_updatedCount(value) {ULS0Qc:;1127 this.get_objectData().get_properties()['UpdatedCount'] = value;1128 if ((this.get_context())) {1129 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'UpdatedCount', value));1130 }1131 return value;1132 },1133 1134 initPropertiesFromJson: function SP_WorkManagement_OM_LocationUpdateResult$initPropertiesFromJson(parentNode) {ULS0Qc:;1135 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);1136 var $v_0;1137 $v_0 = parentNode.ActiveAddedCount;1138 if (!SP.ScriptUtility.isUndefined($v_0)) {1139 this.get_objectData().get_properties()['ActiveAddedCount'] = ($v_0);1140 delete parentNode.ActiveAddedCount;1141 }1142 $v_0 = parentNode.AddedCount;1143 if (!SP.ScriptUtility.isUndefined($v_0)) {1144 this.get_objectData().get_properties()['AddedCount'] = ($v_0);1145 delete parentNode.AddedCount;1146 }1147 $v_0 = parentNode.RemovedCount;1148 if (!SP.ScriptUtility.isUndefined($v_0)) {1149 this.get_objectData().get_properties()['RemovedCount'] = ($v_0);1150 delete parentNode.RemovedCount;1151 }1152 $v_0 = parentNode.RootLocationId;1153 if (!SP.ScriptUtility.isUndefined($v_0)) {1154 this.get_objectData().get_properties()['RootLocationId'] = ($v_0);1155 delete parentNode.RootLocationId;1156 }1157 $v_0 = parentNode.UpdatedCount;1158 if (!SP.ScriptUtility.isUndefined($v_0)) {1159 this.get_objectData().get_properties()['UpdatedCount'] = ($v_0);1160 delete parentNode.UpdatedCount;1161 }1162 }1163}1164SP.WorkManagement.OM.LocationUpdateResultPropertyNames = function SP_WorkManagement_OM_LocationUpdateResultPropertyNames() {1165}1166SP.WorkManagement.OM.LocationUpdateResultClientCollection = function SP_WorkManagement_OM_LocationUpdateResultClientCollection(context, objectPath) {ULS0Qc:;1167 SP.WorkManagement.OM.LocationUpdateResultClientCollection.initializeBase(this, [ context, objectPath ]);1168}1169SP.WorkManagement.OM.LocationUpdateResultClientCollection.prototype = {1170 1171 itemAt: function SP_WorkManagement_OM_LocationUpdateResultClientCollection$itemAt(index) {ULS0Qc:;1172 return this.getItemAtIndex(index);1173 },1174 1175 get_item: function SP_WorkManagement_OM_LocationUpdateResultClientCollection$get_item(index) {ULS0Qc:;1176 return this.getItemAtIndex(index);1177 },1178 1179 get_childItemType: function SP_WorkManagement_OM_LocationUpdateResultClientCollection$get_childItemType() {ULS0Qc:;1180 return SP.WorkManagement.OM.LocationUpdateResult;1181 }1182}1183SP.WorkManagement.OM.NameCriterion = function SP_WorkManagement_OM_NameCriterion(context) {ULS0Qc:;1184 SP.WorkManagement.OM.NameCriterion.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{1c2a7a53-2cdd-4c21-8dd6-1673656eca45}', arguments) ]);1185}1186SP.WorkManagement.OM.NameCriterion.newObject = function SP_WorkManagement_OM_NameCriterion$newObject(context) {ULS0Qc:;1187 return new SP.WorkManagement.OM.NameCriterion(context, new SP.ObjectPathConstructor(context, '{1c2a7a53-2cdd-4c21-8dd6-1673656eca45}', null));1188}1189SP.WorkManagement.OM.NameCriterion.prototype = {1190 1191 get_compareType: function SP_WorkManagement_OM_NameCriterion$get_compareType() {ULS0Qc:;1192 this.checkUninitializedProperty('CompareType');1193 return ((this.get_objectData().get_properties()['CompareType']));1194 },1195 set_compareType: function SP_WorkManagement_OM_NameCriterion$set_compareType(value) {ULS0Qc:;1196 this.get_objectData().get_properties()['CompareType'] = value;1197 if ((this.get_context())) {1198 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CompareType', value));1199 }1200 return value;1201 },1202 1203 get_compareValue: function SP_WorkManagement_OM_NameCriterion$get_compareValue() {ULS0Qc:;1204 this.checkUninitializedProperty('CompareValue');1205 return ((this.get_objectData().get_properties()['CompareValue']));1206 },1207 set_compareValue: function SP_WorkManagement_OM_NameCriterion$set_compareValue(value) {ULS0Qc:;1208 this.get_objectData().get_properties()['CompareValue'] = value;1209 if ((this.get_context())) {1210 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CompareValue', value));1211 }1212 return value;1213 },1214 1215 initPropertiesFromJson: function SP_WorkManagement_OM_NameCriterion$initPropertiesFromJson(parentNode) {ULS0Qc:;1216 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);1217 var $v_0;1218 $v_0 = parentNode.CompareType;1219 if (!SP.ScriptUtility.isUndefined($v_0)) {1220 this.get_objectData().get_properties()['CompareType'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));1221 delete parentNode.CompareType;1222 }1223 $v_0 = parentNode.CompareValue;1224 if (!SP.ScriptUtility.isUndefined($v_0)) {1225 this.get_objectData().get_properties()['CompareValue'] = ($v_0);1226 delete parentNode.CompareValue;1227 }1228 }1229}1230SP.WorkManagement.OM.NameCriterionPropertyNames = function SP_WorkManagement_OM_NameCriterionPropertyNames() {1231}1232SP.WorkManagement.OM.NonTaskDataReadResult = function SP_WorkManagement_OM_NonTaskDataReadResult(context, objectPath) {ULS0Qc:;1233 SP.WorkManagement.OM.NonTaskDataReadResult.initializeBase(this, [ context, objectPath ]);1234}1235SP.WorkManagement.OM.NonTaskDataReadResult.prototype = {1236 1237 get_allLocatons: function SP_WorkManagement_OM_NonTaskDataReadResult$get_allLocatons() {ULS0Qc:;1238 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['AllLocatons']));1239 if (SP.ScriptUtility.isUndefined($v_0)) {1240 $v_0 = new SP.WorkManagement.OM.LocationClientCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'AllLocatons'));1241 this.get_objectData().get_clientObjectProperties()['AllLocatons'] = $v_0;1242 }1243 return $v_0;1244 },1245 1246 get_persistedProperties: function SP_WorkManagement_OM_NonTaskDataReadResult$get_persistedProperties() {ULS0Qc:;1247 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['PersistedProperties']));1248 if (SP.ScriptUtility.isUndefined($v_0)) {1249 $v_0 = new SP.WorkManagement.OM.PersistedProperties(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'PersistedProperties'));1250 this.get_objectData().get_clientObjectProperties()['PersistedProperties'] = $v_0;1251 }1252 return $v_0;1253 },1254 1255 get_refreshHistory: function SP_WorkManagement_OM_NonTaskDataReadResult$get_refreshHistory() {ULS0Qc:;1256 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['RefreshHistory']));1257 if (SP.ScriptUtility.isUndefined($v_0)) {1258 $v_0 = new SP.WorkManagement.OM.RefreshHistory(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'RefreshHistory'));1259 this.get_objectData().get_clientObjectProperties()['RefreshHistory'] = $v_0;1260 }1261 return $v_0;1262 },1263 1264 get_scriptExtensions: function SP_WorkManagement_OM_NonTaskDataReadResult$get_scriptExtensions() {ULS0Qc:;1265 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['ScriptExtensions']));1266 if (SP.ScriptUtility.isUndefined($v_0)) {1267 $v_0 = new SP.WorkManagement.OM.DashboardScriptExtensionInfoClientCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'ScriptExtensions'));1268 this.get_objectData().get_clientObjectProperties()['ScriptExtensions'] = $v_0;1269 }1270 return $v_0;1271 },1272 1273 get_userSettings: function SP_WorkManagement_OM_NonTaskDataReadResult$get_userSettings() {ULS0Qc:;1274 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['UserSettings']));1275 if (SP.ScriptUtility.isUndefined($v_0)) {1276 $v_0 = new SP.WorkManagement.OM.UserSettings(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'UserSettings'));1277 this.get_objectData().get_clientObjectProperties()['UserSettings'] = $v_0;1278 }1279 return $v_0;1280 },1281 1282 initPropertiesFromJson: function SP_WorkManagement_OM_NonTaskDataReadResult$initPropertiesFromJson(parentNode) {ULS0Qc:;1283 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);1284 var $v_0;1285 $v_0 = parentNode.AllLocatons;1286 if (!SP.ScriptUtility.isUndefined($v_0)) {1287 this.updateClientObjectPropertyType('AllLocatons', this.get_allLocatons(), $v_0);1288 this.get_allLocatons().fromJson($v_0);1289 delete parentNode.AllLocatons;1290 }1291 $v_0 = parentNode.PersistedProperties;1292 if (!SP.ScriptUtility.isUndefined($v_0)) {1293 this.updateClientObjectPropertyType('PersistedProperties', this.get_persistedProperties(), $v_0);1294 this.get_persistedProperties().fromJson($v_0);1295 delete parentNode.PersistedProperties;1296 }1297 $v_0 = parentNode.RefreshHistory;1298 if (!SP.ScriptUtility.isUndefined($v_0)) {1299 this.updateClientObjectPropertyType('RefreshHistory', this.get_refreshHistory(), $v_0);1300 this.get_refreshHistory().fromJson($v_0);1301 delete parentNode.RefreshHistory;1302 }1303 $v_0 = parentNode.ScriptExtensions;1304 if (!SP.ScriptUtility.isUndefined($v_0)) {1305 this.updateClientObjectPropertyType('ScriptExtensions', this.get_scriptExtensions(), $v_0);1306 this.get_scriptExtensions().fromJson($v_0);1307 delete parentNode.ScriptExtensions;1308 }1309 $v_0 = parentNode.UserSettings;1310 if (!SP.ScriptUtility.isUndefined($v_0)) {1311 this.updateClientObjectPropertyType('UserSettings', this.get_userSettings(), $v_0);1312 this.get_userSettings().fromJson($v_0);1313 delete parentNode.UserSettings;1314 }1315 }1316}1317SP.WorkManagement.OM.NonTaskDataReadResultObjectPropertyNames = function SP_WorkManagement_OM_NonTaskDataReadResultObjectPropertyNames() {1318}1319SP.WorkManagement.OM.OrderInfo = function SP_WorkManagement_OM_OrderInfo(context) {ULS0Qc:;1320 SP.WorkManagement.OM.OrderInfo.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{8c385903-1e43-4256-8037-f7ff442154ec}', arguments) ]);1321}1322SP.WorkManagement.OM.OrderInfo.newObject = function SP_WorkManagement_OM_OrderInfo$newObject(context) {ULS0Qc:;1323 return new SP.WorkManagement.OM.OrderInfo(context, new SP.ObjectPathConstructor(context, '{8c385903-1e43-4256-8037-f7ff442154ec}', null));1324}1325SP.WorkManagement.OM.OrderInfo.prototype = {1326 1327 get_field: function SP_WorkManagement_OM_OrderInfo$get_field() {ULS0Qc:;1328 this.checkUninitializedProperty('Field');1329 return ((this.get_objectData().get_properties()['Field']));1330 },1331 set_field: function SP_WorkManagement_OM_OrderInfo$set_field(value) {ULS0Qc:;1332 this.get_objectData().get_properties()['Field'] = value;1333 if ((this.get_context())) {1334 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Field', value));1335 }1336 return value;1337 },1338 1339 get_isDescending: function SP_WorkManagement_OM_OrderInfo$get_isDescending() {ULS0Qc:;1340 this.checkUninitializedProperty('IsDescending');1341 return ((this.get_objectData().get_properties()['IsDescending']));1342 },1343 set_isDescending: function SP_WorkManagement_OM_OrderInfo$set_isDescending(value) {ULS0Qc:;1344 this.get_objectData().get_properties()['IsDescending'] = value;1345 if ((this.get_context())) {1346 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'IsDescending', value));1347 }1348 return value;1349 },1350 1351 initPropertiesFromJson: function SP_WorkManagement_OM_OrderInfo$initPropertiesFromJson(parentNode) {ULS0Qc:;1352 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);1353 var $v_0;1354 $v_0 = parentNode.Field;1355 if (!SP.ScriptUtility.isUndefined($v_0)) {1356 this.get_objectData().get_properties()['Field'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));1357 delete parentNode.Field;1358 }1359 $v_0 = parentNode.IsDescending;1360 if (!SP.ScriptUtility.isUndefined($v_0)) {1361 this.get_objectData().get_properties()['IsDescending'] = ($v_0);1362 delete parentNode.IsDescending;1363 }1364 }1365}1366SP.WorkManagement.OM.OrderInfoPropertyNames = function SP_WorkManagement_OM_OrderInfoPropertyNames() {1367}1368SP.WorkManagement.OM.PersistedProperties = function SP_WorkManagement_OM_PersistedProperties(context) {ULS0Qc:;1369 SP.WorkManagement.OM.PersistedProperties.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{c05ebf4c-f2c5-4167-9043-f21c4e1b682d}', arguments) ]);1370}1371SP.WorkManagement.OM.PersistedProperties.newObject = function SP_WorkManagement_OM_PersistedProperties$newObject(context) {ULS0Qc:;1372 return new SP.WorkManagement.OM.PersistedProperties(context, new SP.ObjectPathConstructor(context, '{c05ebf4c-f2c5-4167-9043-f21c4e1b682d}', null));1373}1374SP.WorkManagement.OM.PersistedProperties.prototype = {1375 1376 get_filteredLocationIds: function SP_WorkManagement_OM_PersistedProperties$get_filteredLocationIds() {ULS0Qc:;1377 this.checkUninitializedProperty('FilteredLocationIds');1378 return ((this.get_objectData().get_properties()['FilteredLocationIds']));1379 },1380 set_filteredLocationIds: function SP_WorkManagement_OM_PersistedProperties$set_filteredLocationIds(value) {ULS0Qc:;1381 this.get_objectData().get_properties()['FilteredLocationIds'] = value;1382 if ((this.get_context())) {1383 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'FilteredLocationIds', value));1384 }1385 return value;1386 },1387 1388 get_groupByProjects: function SP_WorkManagement_OM_PersistedProperties$get_groupByProjects() {ULS0Qc:;1389 this.checkUninitializedProperty('GroupByProjects');1390 return ((this.get_objectData().get_properties()['GroupByProjects']));1391 },1392 set_groupByProjects: function SP_WorkManagement_OM_PersistedProperties$set_groupByProjects(value) {ULS0Qc:;1393 this.get_objectData().get_properties()['GroupByProjects'] = value;1394 if ((this.get_context())) {1395 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'GroupByProjects', value));1396 }1397 return value;1398 },1399 1400 get_hasShownMarkAsImportantCallout: function SP_WorkManagement_OM_PersistedProperties$get_hasShownMarkAsImportantCallout() {ULS0Qc:;1401 this.checkUninitializedProperty('HasShownMarkAsImportantCallout');1402 return ((this.get_objectData().get_properties()['HasShownMarkAsImportantCallout']));1403 },1404 set_hasShownMarkAsImportantCallout: function SP_WorkManagement_OM_PersistedProperties$set_hasShownMarkAsImportantCallout(value) {ULS0Qc:;1405 this.get_objectData().get_properties()['HasShownMarkAsImportantCallout'] = value;1406 if ((this.get_context())) {1407 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'HasShownMarkAsImportantCallout', value));1408 }1409 return value;1410 },1411 1412 get_hasShownTaskListTooLongNotification: function SP_WorkManagement_OM_PersistedProperties$get_hasShownTaskListTooLongNotification() {ULS0Qc:;1413 this.checkUninitializedProperty('HasShownTaskListTooLongNotification');1414 return ((this.get_objectData().get_properties()['HasShownTaskListTooLongNotification']));1415 },1416 set_hasShownTaskListTooLongNotification: function SP_WorkManagement_OM_PersistedProperties$set_hasShownTaskListTooLongNotification(value) {ULS0Qc:;1417 this.get_objectData().get_properties()['HasShownTaskListTooLongNotification'] = value;1418 if ((this.get_context())) {1419 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'HasShownTaskListTooLongNotification', value));1420 }1421 return value;1422 },1423 1424 get_quickLaunchLandingPage: function SP_WorkManagement_OM_PersistedProperties$get_quickLaunchLandingPage() {ULS0Qc:;1425 this.checkUninitializedProperty('QuickLaunchLandingPage');1426 return ((this.get_objectData().get_properties()['QuickLaunchLandingPage']));1427 },1428 set_quickLaunchLandingPage: function SP_WorkManagement_OM_PersistedProperties$set_quickLaunchLandingPage(value) {ULS0Qc:;1429 this.get_objectData().get_properties()['QuickLaunchLandingPage'] = value;1430 if ((this.get_context())) {1431 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'QuickLaunchLandingPage', value));1432 }1433 return value;1434 },1435 1436 initPropertiesFromJson: function SP_WorkManagement_OM_PersistedProperties$initPropertiesFromJson(parentNode) {ULS0Qc:;1437 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);1438 var $v_0;1439 $v_0 = parentNode.FilteredLocationIds;1440 if (!SP.ScriptUtility.isUndefined($v_0)) {1441 this.get_objectData().get_properties()['FilteredLocationIds'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));1442 delete parentNode.FilteredLocationIds;1443 }1444 $v_0 = parentNode.GroupByProjects;1445 if (!SP.ScriptUtility.isUndefined($v_0)) {1446 this.get_objectData().get_properties()['GroupByProjects'] = ($v_0);1447 delete parentNode.GroupByProjects;1448 }1449 $v_0 = parentNode.HasShownMarkAsImportantCallout;1450 if (!SP.ScriptUtility.isUndefined($v_0)) {1451 this.get_objectData().get_properties()['HasShownMarkAsImportantCallout'] = ($v_0);1452 delete parentNode.HasShownMarkAsImportantCallout;1453 }1454 $v_0 = parentNode.HasShownTaskListTooLongNotification;1455 if (!SP.ScriptUtility.isUndefined($v_0)) {1456 this.get_objectData().get_properties()['HasShownTaskListTooLongNotification'] = ($v_0);1457 delete parentNode.HasShownTaskListTooLongNotification;1458 }1459 $v_0 = parentNode.QuickLaunchLandingPage;1460 if (!SP.ScriptUtility.isUndefined($v_0)) {1461 this.get_objectData().get_properties()['QuickLaunchLandingPage'] = ($v_0);1462 delete parentNode.QuickLaunchLandingPage;1463 }1464 }1465}1466SP.WorkManagement.OM.PersistedPropertiesPropertyNames = function SP_WorkManagement_OM_PersistedPropertiesPropertyNames() {1467}1468SP.WorkManagement.OM.ProviderErrorInfo = function SP_WorkManagement_OM_ProviderErrorInfo(context, objectPath) {ULS0Qc:;1469 SP.WorkManagement.OM.ProviderErrorInfo.initializeBase(this, [ context, objectPath ]);1470}1471SP.WorkManagement.OM.ProviderErrorInfo.prototype = {1472 1473 get_correlationId: function SP_WorkManagement_OM_ProviderErrorInfo$get_correlationId() {ULS0Qc:;1474 this.checkUninitializedProperty('CorrelationId');1475 return ((this.get_objectData().get_properties()['CorrelationId']));1476 },1477 set_correlationId: function SP_WorkManagement_OM_ProviderErrorInfo$set_correlationId(value) {ULS0Qc:;1478 this.get_objectData().get_properties()['CorrelationId'] = value;1479 if ((this.get_context())) {1480 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CorrelationId', value));1481 }1482 return value;1483 },1484 1485 get_lastSuccessfulRefresh: function SP_WorkManagement_OM_ProviderErrorInfo$get_lastSuccessfulRefresh() {ULS0Qc:;1486 this.checkUninitializedProperty('LastSuccessfulRefresh');1487 return ((this.get_objectData().get_properties()['LastSuccessfulRefresh']));1488 },1489 set_lastSuccessfulRefresh: function SP_WorkManagement_OM_ProviderErrorInfo$set_lastSuccessfulRefresh(value) {ULS0Qc:;1490 this.get_objectData().get_properties()['LastSuccessfulRefresh'] = value;1491 if ((this.get_context())) {1492 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'LastSuccessfulRefresh', value));1493 }1494 return value;1495 },1496 1497 get_localizedName: function SP_WorkManagement_OM_ProviderErrorInfo$get_localizedName() {ULS0Qc:;1498 this.checkUninitializedProperty('LocalizedName');1499 return ((this.get_objectData().get_properties()['LocalizedName']));1500 },1501 set_localizedName: function SP_WorkManagement_OM_ProviderErrorInfo$set_localizedName(value) {ULS0Qc:;1502 this.get_objectData().get_properties()['LocalizedName'] = value;1503 if ((this.get_context())) {1504 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'LocalizedName', value));1505 }1506 return value;1507 },1508 1509 initPropertiesFromJson: function SP_WorkManagement_OM_ProviderErrorInfo$initPropertiesFromJson(parentNode) {ULS0Qc:;1510 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);1511 var $v_0;1512 $v_0 = parentNode.CorrelationId;1513 if (!SP.ScriptUtility.isUndefined($v_0)) {1514 this.get_objectData().get_properties()['CorrelationId'] = ($v_0);1515 delete parentNode.CorrelationId;1516 }1517 $v_0 = parentNode.LastSuccessfulRefresh;1518 if (!SP.ScriptUtility.isUndefined($v_0)) {1519 this.get_objectData().get_properties()['LastSuccessfulRefresh'] = ($v_0);1520 delete parentNode.LastSuccessfulRefresh;1521 }1522 $v_0 = parentNode.LocalizedName;1523 if (!SP.ScriptUtility.isUndefined($v_0)) {1524 this.get_objectData().get_properties()['LocalizedName'] = ($v_0);1525 delete parentNode.LocalizedName;1526 }1527 }1528}1529SP.WorkManagement.OM.ProviderErrorInfoPropertyNames = function SP_WorkManagement_OM_ProviderErrorInfoPropertyNames() {1530}1531SP.WorkManagement.OM.ProviderErrorInfoClientCollection = function SP_WorkManagement_OM_ProviderErrorInfoClientCollection(context, objectPath) {ULS0Qc:;1532 SP.WorkManagement.OM.ProviderErrorInfoClientCollection.initializeBase(this, [ context, objectPath ]);1533}1534SP.WorkManagement.OM.ProviderErrorInfoClientCollection.prototype = {1535 1536 itemAt: function SP_WorkManagement_OM_ProviderErrorInfoClientCollection$itemAt(index) {ULS0Qc:;1537 return this.getItemAtIndex(index);1538 },1539 1540 get_item: function SP_WorkManagement_OM_ProviderErrorInfoClientCollection$get_item(index) {ULS0Qc:;1541 return this.getItemAtIndex(index);1542 },1543 1544 get_childItemType: function SP_WorkManagement_OM_ProviderErrorInfoClientCollection$get_childItemType() {ULS0Qc:;1545 return SP.WorkManagement.OM.ProviderErrorInfo;1546 }1547}1548SP.WorkManagement.OM.ProviderRefreshStatus = function SP_WorkManagement_OM_ProviderRefreshStatus(context, objectPath) {ULS0Qc:;1549 SP.WorkManagement.OM.ProviderRefreshStatus.initializeBase(this, [ context, objectPath ]);1550}1551SP.WorkManagement.OM.ProviderRefreshStatus.prototype = {1552 1553 get_providerKey: function SP_WorkManagement_OM_ProviderRefreshStatus$get_providerKey() {ULS0Qc:;1554 this.checkUninitializedProperty('ProviderKey');1555 return ((this.get_objectData().get_properties()['ProviderKey']));1556 },1557 set_providerKey: function SP_WorkManagement_OM_ProviderRefreshStatus$set_providerKey(value) {ULS0Qc:;1558 this.get_objectData().get_properties()['ProviderKey'] = value;1559 if ((this.get_context())) {1560 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ProviderKey', value));1561 }1562 return value;1563 },1564 1565 get_providerLocalizedName: function SP_WorkManagement_OM_ProviderRefreshStatus$get_providerLocalizedName() {ULS0Qc:;1566 this.checkUninitializedProperty('ProviderLocalizedName');1567 return ((this.get_objectData().get_properties()['ProviderLocalizedName']));1568 },1569 set_providerLocalizedName: function SP_WorkManagement_OM_ProviderRefreshStatus$set_providerLocalizedName(value) {ULS0Qc:;1570 this.get_objectData().get_properties()['ProviderLocalizedName'] = value;1571 if ((this.get_context())) {1572 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ProviderLocalizedName', value));1573 }1574 return value;1575 },1576 1577 get_refreshFinished: function SP_WorkManagement_OM_ProviderRefreshStatus$get_refreshFinished() {ULS0Qc:;1578 this.checkUninitializedProperty('RefreshFinished');1579 return ((this.get_objectData().get_properties()['RefreshFinished']));1580 },1581 set_refreshFinished: function SP_WorkManagement_OM_ProviderRefreshStatus$set_refreshFinished(value) {ULS0Qc:;1582 this.get_objectData().get_properties()['RefreshFinished'] = value;1583 if ((this.get_context())) {1584 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RefreshFinished', value));1585 }1586 return value;1587 },1588 1589 get_refreshStarted: function SP_WorkManagement_OM_ProviderRefreshStatus$get_refreshStarted() {ULS0Qc:;1590 this.checkUninitializedProperty('RefreshStarted');1591 return ((this.get_objectData().get_properties()['RefreshStarted']));1592 },1593 set_refreshStarted: function SP_WorkManagement_OM_ProviderRefreshStatus$set_refreshStarted(value) {ULS0Qc:;1594 this.get_objectData().get_properties()['RefreshStarted'] = value;1595 if ((this.get_context())) {1596 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RefreshStarted', value));1597 }1598 return value;1599 },1600 1601 get_rootLocationId: function SP_WorkManagement_OM_ProviderRefreshStatus$get_rootLocationId() {ULS0Qc:;1602 this.checkUninitializedProperty('RootLocationId');1603 return ((this.get_objectData().get_properties()['RootLocationId']));1604 },1605 set_rootLocationId: function SP_WorkManagement_OM_ProviderRefreshStatus$set_rootLocationId(value) {ULS0Qc:;1606 this.get_objectData().get_properties()['RootLocationId'] = value;1607 if ((this.get_context())) {1608 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RootLocationId', value));1609 }1610 return value;1611 },1612 1613 initPropertiesFromJson: function SP_WorkManagement_OM_ProviderRefreshStatus$initPropertiesFromJson(parentNode) {ULS0Qc:;1614 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);1615 var $v_0;1616 $v_0 = parentNode.ProviderKey;1617 if (!SP.ScriptUtility.isUndefined($v_0)) {1618 this.get_objectData().get_properties()['ProviderKey'] = ($v_0);1619 delete parentNode.ProviderKey;1620 }1621 $v_0 = parentNode.ProviderLocalizedName;1622 if (!SP.ScriptUtility.isUndefined($v_0)) {1623 this.get_objectData().get_properties()['ProviderLocalizedName'] = ($v_0);1624 delete parentNode.ProviderLocalizedName;1625 }1626 $v_0 = parentNode.RefreshFinished;1627 if (!SP.ScriptUtility.isUndefined($v_0)) {1628 this.get_objectData().get_properties()['RefreshFinished'] = ($v_0);1629 delete parentNode.RefreshFinished;1630 }1631 $v_0 = parentNode.RefreshStarted;1632 if (!SP.ScriptUtility.isUndefined($v_0)) {1633 this.get_objectData().get_properties()['RefreshStarted'] = ($v_0);1634 delete parentNode.RefreshStarted;1635 }1636 $v_0 = parentNode.RootLocationId;1637 if (!SP.ScriptUtility.isUndefined($v_0)) {1638 this.get_objectData().get_properties()['RootLocationId'] = ($v_0);1639 delete parentNode.RootLocationId;1640 }1641 }1642}1643SP.WorkManagement.OM.ProviderRefreshStatusPropertyNames = function SP_WorkManagement_OM_ProviderRefreshStatusPropertyNames() {1644}1645SP.WorkManagement.OM.ProviderRefreshStatusClientCollection = function SP_WorkManagement_OM_ProviderRefreshStatusClientCollection(context, objectPath) {ULS0Qc:;1646 SP.WorkManagement.OM.ProviderRefreshStatusClientCollection.initializeBase(this, [ context, objectPath ]);1647}1648SP.WorkManagement.OM.ProviderRefreshStatusClientCollection.prototype = {1649 1650 itemAt: function SP_WorkManagement_OM_ProviderRefreshStatusClientCollection$itemAt(index) {ULS0Qc:;1651 return this.getItemAtIndex(index);1652 },1653 1654 get_item: function SP_WorkManagement_OM_ProviderRefreshStatusClientCollection$get_item(index) {ULS0Qc:;1655 return this.getItemAtIndex(index);1656 },1657 1658 get_childItemType: function SP_WorkManagement_OM_ProviderRefreshStatusClientCollection$get_childItemType() {ULS0Qc:;1659 return SP.WorkManagement.OM.ProviderRefreshStatus;1660 }1661}1662SP.WorkManagement.OM.RefreshEventInfoClientCollection = function SP_WorkManagement_OM_RefreshEventInfoClientCollection(context, objectPath) {ULS0Qc:;1663 SP.WorkManagement.OM.RefreshEventInfoClientCollection.initializeBase(this, [ context, objectPath ]);1664}1665SP.WorkManagement.OM.RefreshEventInfoClientCollection.prototype = {1666 1667 itemAt: function SP_WorkManagement_OM_RefreshEventInfoClientCollection$itemAt(index) {ULS0Qc:;1668 return this.getItemAtIndex(index);1669 },1670 1671 get_item: function SP_WorkManagement_OM_RefreshEventInfoClientCollection$get_item(index) {ULS0Qc:;1672 return this.getItemAtIndex(index);1673 },1674 1675 get_childItemType: function SP_WorkManagement_OM_RefreshEventInfoClientCollection$get_childItemType() {ULS0Qc:;1676 return SP.WorkManagement.OM.RefreshResult;1677 }1678}1679SP.WorkManagement.OM.RefreshHealthInfo = function SP_WorkManagement_OM_RefreshHealthInfo(context, objectPath) {ULS0Qc:;1680 SP.WorkManagement.OM.RefreshHealthInfo.initializeBase(this, [ context, objectPath ]);1681}1682SP.WorkManagement.OM.RefreshHealthInfo.prototype = {1683 1684 get_latestRefreshTime: function SP_WorkManagement_OM_RefreshHealthInfo$get_latestRefreshTime() {ULS0Qc:;1685 this.checkUninitializedProperty('LatestRefreshTime');1686 return ((this.get_objectData().get_properties()['LatestRefreshTime']));1687 },1688 set_latestRefreshTime: function SP_WorkManagement_OM_RefreshHealthInfo$set_latestRefreshTime(value) {ULS0Qc:;1689 this.get_objectData().get_properties()['LatestRefreshTime'] = value;1690 if ((this.get_context())) {1691 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'LatestRefreshTime', value));1692 }1693 return value;1694 },1695 1696 get_newTasks: function SP_WorkManagement_OM_RefreshHealthInfo$get_newTasks() {ULS0Qc:;1697 this.checkUninitializedProperty('NewTasks');1698 return ((this.get_objectData().get_properties()['NewTasks']));1699 },1700 set_newTasks: function SP_WorkManagement_OM_RefreshHealthInfo$set_newTasks(value) {ULS0Qc:;1701 this.get_objectData().get_properties()['NewTasks'] = value;1702 if ((this.get_context())) {1703 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'NewTasks', value));1704 }1705 return value;1706 },1707 1708 get_providerErrors: function SP_WorkManagement_OM_RefreshHealthInfo$get_providerErrors() {ULS0Qc:;1709 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['ProviderErrors']));1710 if (SP.ScriptUtility.isUndefined($v_0)) {1711 $v_0 = new SP.WorkManagement.OM.ProviderErrorInfoClientCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'ProviderErrors'));1712 this.get_objectData().get_clientObjectProperties()['ProviderErrors'] = $v_0;1713 }1714 return $v_0;1715 },1716 set_providerErrors: function SP_WorkManagement_OM_RefreshHealthInfo$set_providerErrors(value) {ULS0Qc:;1717 this.get_objectData().get_clientObjectProperties()['ProviderErrors'] = value;1718 if ((this.get_context())) {1719 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ProviderErrors', value));1720 }1721 return value;1722 },1723 1724 get_succeeded: function SP_WorkManagement_OM_RefreshHealthInfo$get_succeeded() {ULS0Qc:;1725 this.checkUninitializedProperty('Succeeded');1726 return ((this.get_objectData().get_properties()['Succeeded']));1727 },1728 set_succeeded: function SP_WorkManagement_OM_RefreshHealthInfo$set_succeeded(value) {ULS0Qc:;1729 this.get_objectData().get_properties()['Succeeded'] = value;1730 if ((this.get_context())) {1731 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Succeeded', value));1732 }1733 return value;1734 },1735 1736 initPropertiesFromJson: function SP_WorkManagement_OM_RefreshHealthInfo$initPropertiesFromJson(parentNode) {ULS0Qc:;1737 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);1738 var $v_0;1739 $v_0 = parentNode.LatestRefreshTime;1740 if (!SP.ScriptUtility.isUndefined($v_0)) {1741 this.get_objectData().get_properties()['LatestRefreshTime'] = ($v_0);1742 delete parentNode.LatestRefreshTime;1743 }1744 $v_0 = parentNode.NewTasks;1745 if (!SP.ScriptUtility.isUndefined($v_0)) {1746 this.get_objectData().get_properties()['NewTasks'] = ($v_0);1747 delete parentNode.NewTasks;1748 }1749 $v_0 = parentNode.ProviderErrors;1750 if (!SP.ScriptUtility.isUndefined($v_0)) {1751 this.updateClientObjectPropertyType('ProviderErrors', this.get_providerErrors(), $v_0);1752 this.get_providerErrors().fromJson($v_0);1753 delete parentNode.ProviderErrors;1754 }1755 $v_0 = parentNode.Succeeded;1756 if (!SP.ScriptUtility.isUndefined($v_0)) {1757 this.get_objectData().get_properties()['Succeeded'] = ($v_0);1758 delete parentNode.Succeeded;1759 }1760 }1761}1762SP.WorkManagement.OM.RefreshHealthInfoPropertyNames = function SP_WorkManagement_OM_RefreshHealthInfoPropertyNames() {1763}1764SP.WorkManagement.OM.RefreshHealthInfoObjectPropertyNames = function SP_WorkManagement_OM_RefreshHealthInfoObjectPropertyNames() {1765}1766SP.WorkManagement.OM.RefreshHistory = function SP_WorkManagement_OM_RefreshHistory(context, objectPath) {ULS0Qc:;1767 SP.WorkManagement.OM.RefreshHistory.initializeBase(this, [ context, objectPath ]);1768}1769SP.WorkManagement.OM.RefreshHistory.prototype = {1770 1771 get_refreshes: function SP_WorkManagement_OM_RefreshHistory$get_refreshes() {ULS0Qc:;1772 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['Refreshes']));1773 if (SP.ScriptUtility.isUndefined($v_0)) {1774 $v_0 = new SP.WorkManagement.OM.RefreshEventInfoClientCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Refreshes'));1775 this.get_objectData().get_clientObjectProperties()['Refreshes'] = $v_0;1776 }1777 return $v_0;1778 },1779 set_refreshes: function SP_WorkManagement_OM_RefreshHistory$set_refreshes(value) {ULS0Qc:;1780 this.get_objectData().get_clientObjectProperties()['Refreshes'] = value;1781 if ((this.get_context())) {1782 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Refreshes', value));1783 }1784 return value;1785 },1786 1787 initPropertiesFromJson: function SP_WorkManagement_OM_RefreshHistory$initPropertiesFromJson(parentNode) {ULS0Qc:;1788 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);1789 var $v_0;1790 $v_0 = parentNode.Refreshes;1791 if (!SP.ScriptUtility.isUndefined($v_0)) {1792 this.updateClientObjectPropertyType('Refreshes', this.get_refreshes(), $v_0);1793 this.get_refreshes().fromJson($v_0);1794 delete parentNode.Refreshes;1795 }1796 }1797}1798SP.WorkManagement.OM.RefreshHistoryObjectPropertyNames = function SP_WorkManagement_OM_RefreshHistoryObjectPropertyNames() {1799}1800SP.WorkManagement.OM.RefreshResult = function SP_WorkManagement_OM_RefreshResult(context, objectPath) {ULS0Qc:;1801 SP.WorkManagement.OM.RefreshResult.initializeBase(this, [ context, objectPath ]);1802}1803SP.WorkManagement.OM.RefreshResult.prototype = {1804 1805 get_aggregatorRefreshState: function SP_WorkManagement_OM_RefreshResult$get_aggregatorRefreshState() {ULS0Qc:;1806 this.checkUninitializedProperty('AggregatorRefreshState');1807 return ((this.get_objectData().get_properties()['AggregatorRefreshState']));1808 },1809 set_aggregatorRefreshState: function SP_WorkManagement_OM_RefreshResult$set_aggregatorRefreshState(value) {ULS0Qc:;1810 this.get_objectData().get_properties()['AggregatorRefreshState'] = value;1811 if ((this.get_context())) {1812 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'AggregatorRefreshState', value));1813 }1814 return value;1815 },1816 1817 get_correlationId: function SP_WorkManagement_OM_RefreshResult$get_correlationId() {ULS0Qc:;1818 this.checkUninitializedProperty('CorrelationId');1819 return ((this.get_objectData().get_properties()['CorrelationId']));1820 },1821 set_correlationId: function SP_WorkManagement_OM_RefreshResult$set_correlationId(value) {ULS0Qc:;1822 this.get_objectData().get_properties()['CorrelationId'] = value;1823 if ((this.get_context())) {1824 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CorrelationId', value));1825 }1826 return value;1827 },1828 1829 get_providerStatuses: function SP_WorkManagement_OM_RefreshResult$get_providerStatuses() {ULS0Qc:;1830 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['ProviderStatuses']));1831 if (SP.ScriptUtility.isUndefined($v_0)) {1832 $v_0 = new SP.WorkManagement.OM.ProviderRefreshStatusClientCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'ProviderStatuses'));1833 this.get_objectData().get_clientObjectProperties()['ProviderStatuses'] = $v_0;1834 }1835 return $v_0;1836 },1837 set_providerStatuses: function SP_WorkManagement_OM_RefreshResult$set_providerStatuses(value) {ULS0Qc:;1838 this.get_objectData().get_clientObjectProperties()['ProviderStatuses'] = value;1839 if ((this.get_context())) {1840 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ProviderStatuses', value));1841 }1842 return value;1843 },1844 1845 get_refreshFinished: function SP_WorkManagement_OM_RefreshResult$get_refreshFinished() {ULS0Qc:;1846 this.checkUninitializedProperty('RefreshFinished');1847 return ((this.get_objectData().get_properties()['RefreshFinished']));1848 },1849 set_refreshFinished: function SP_WorkManagement_OM_RefreshResult$set_refreshFinished(value) {ULS0Qc:;1850 this.get_objectData().get_properties()['RefreshFinished'] = value;1851 if ((this.get_context())) {1852 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RefreshFinished', value));1853 }1854 return value;1855 },1856 1857 get_refreshId: function SP_WorkManagement_OM_RefreshResult$get_refreshId() {ULS0Qc:;1858 this.checkUninitializedProperty('RefreshId');1859 return ((this.get_objectData().get_properties()['RefreshId']));1860 },1861 set_refreshId: function SP_WorkManagement_OM_RefreshResult$set_refreshId(value) {ULS0Qc:;1862 this.get_objectData().get_properties()['RefreshId'] = value;1863 if ((this.get_context())) {1864 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RefreshId', value));1865 }1866 return value;1867 },1868 1869 get_taskChangesByLocation: function SP_WorkManagement_OM_RefreshResult$get_taskChangesByLocation() {ULS0Qc:;1870 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['TaskChangesByLocation']));1871 if (SP.ScriptUtility.isUndefined($v_0)) {1872 $v_0 = new SP.WorkManagement.OM.LocationUpdateResultClientCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'TaskChangesByLocation'));1873 this.get_objectData().get_clientObjectProperties()['TaskChangesByLocation'] = $v_0;1874 }1875 return $v_0;1876 },1877 set_taskChangesByLocation: function SP_WorkManagement_OM_RefreshResult$set_taskChangesByLocation(value) {ULS0Qc:;1878 this.get_objectData().get_clientObjectProperties()['TaskChangesByLocation'] = value;1879 if ((this.get_context())) {1880 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'TaskChangesByLocation', value));1881 }1882 return value;1883 },1884 1885 initPropertiesFromJson: function SP_WorkManagement_OM_RefreshResult$initPropertiesFromJson(parentNode) {ULS0Qc:;1886 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);1887 var $v_0;1888 $v_0 = parentNode.AggregatorRefreshState;1889 if (!SP.ScriptUtility.isUndefined($v_0)) {1890 this.get_objectData().get_properties()['AggregatorRefreshState'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));1891 delete parentNode.AggregatorRefreshState;1892 }1893 $v_0 = parentNode.CorrelationId;1894 if (!SP.ScriptUtility.isUndefined($v_0)) {1895 this.get_objectData().get_properties()['CorrelationId'] = ($v_0);1896 delete parentNode.CorrelationId;1897 }1898 $v_0 = parentNode.ProviderStatuses;1899 if (!SP.ScriptUtility.isUndefined($v_0)) {1900 this.updateClientObjectPropertyType('ProviderStatuses', this.get_providerStatuses(), $v_0);1901 this.get_providerStatuses().fromJson($v_0);1902 delete parentNode.ProviderStatuses;1903 }1904 $v_0 = parentNode.RefreshFinished;1905 if (!SP.ScriptUtility.isUndefined($v_0)) {1906 this.get_objectData().get_properties()['RefreshFinished'] = ($v_0);1907 delete parentNode.RefreshFinished;1908 }1909 $v_0 = parentNode.RefreshId;1910 if (!SP.ScriptUtility.isUndefined($v_0)) {1911 this.get_objectData().get_properties()['RefreshId'] = ($v_0);1912 delete parentNode.RefreshId;1913 }1914 $v_0 = parentNode.TaskChangesByLocation;1915 if (!SP.ScriptUtility.isUndefined($v_0)) {1916 this.updateClientObjectPropertyType('TaskChangesByLocation', this.get_taskChangesByLocation(), $v_0);1917 this.get_taskChangesByLocation().fromJson($v_0);1918 delete parentNode.TaskChangesByLocation;1919 }1920 }1921}1922SP.WorkManagement.OM.RefreshResultPropertyNames = function SP_WorkManagement_OM_RefreshResultPropertyNames() {1923}1924SP.WorkManagement.OM.RefreshResultObjectPropertyNames = function SP_WorkManagement_OM_RefreshResultObjectPropertyNames() {1925}1926SP.WorkManagement.OM.SortableSession = function SP_WorkManagement_OM_SortableSession(context, objectPath) {ULS0Qc:;1927 SP.WorkManagement.OM.SortableSession.initializeBase(this, [ context, objectPath ]);1928}1929SP.WorkManagement.OM.SortableSession.prototype = {1930 1931 readTasks: function SP_WorkManagement_OM_SortableSession$readTasks(query) {ULS0Qc:;1932 var $v_0 = this.get_context();1933 var $v_1;1934 $v_1 = new SP.WorkManagement.OM.TaskClientCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'ReadTasks', [ query ]));1935 return $v_1;1936 }1937}1938SP.WorkManagement.OM.SortableSessionManager = function SP_WorkManagement_OM_SortableSessionManager(context) {ULS0Qc:;1939 SP.WorkManagement.OM.SortableSessionManager.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{924b1779-998e-4c60-a291-78edebc3c202}', arguments) ]);1940}1941SP.WorkManagement.OM.SortableSessionManager.newObject = function SP_WorkManagement_OM_SortableSessionManager$newObject(context) {ULS0Qc:;1942 return new SP.WorkManagement.OM.SortableSessionManager(context, new SP.ObjectPathConstructor(context, '{924b1779-998e-4c60-a291-78edebc3c202}', null));1943}1944SP.WorkManagement.OM.SortableSessionManager.prototype = {1945 1946 createLocationOrientedSession: function SP_WorkManagement_OM_SortableSessionManager$createLocationOrientedSession() {ULS0Qc:;1947 var $v_0 = this.get_context();1948 var $v_1;1949 $v_1 = new SP.WorkManagement.OM.LocationOrientedSortableSession($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'CreateLocationOrientedSession', null));1950 return $v_1;1951 },1952 1953 createSession: function SP_WorkManagement_OM_SortableSessionManager$createSession() {ULS0Qc:;1954 var $v_0 = this.get_context();1955 var $v_1;1956 $v_1 = new SP.WorkManagement.OM.SortableSession($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'CreateSession', null));1957 return $v_1;1958 }1959}1960SP.WorkManagement.OM.SortableTaskQuery = function SP_WorkManagement_OM_SortableTaskQuery(context) {ULS0Qc:;1961 SP.WorkManagement.OM.SortableTaskQuery.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{f43ab2f6-b0e1-46f7-8ff6-a96540f7f595}', arguments) ]);1962}1963SP.WorkManagement.OM.SortableTaskQuery.newObject = function SP_WorkManagement_OM_SortableTaskQuery$newObject(context) {ULS0Qc:;1964 return new SP.WorkManagement.OM.SortableTaskQuery(context, new SP.ObjectPathConstructor(context, '{f43ab2f6-b0e1-46f7-8ff6-a96540f7f595}', null));1965}1966SP.WorkManagement.OM.SortableTaskQuery.prototype = {1967 1968 get_coreQuery: function SP_WorkManagement_OM_SortableTaskQuery$get_coreQuery() {ULS0Qc:;1969 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['CoreQuery']));1970 if (SP.ScriptUtility.isUndefined($v_0)) {1971 $v_0 = new SP.WorkManagement.OM.TaskQuery(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'CoreQuery'));1972 this.get_objectData().get_clientObjectProperties()['CoreQuery'] = $v_0;1973 }1974 return $v_0;1975 },1976 set_coreQuery: function SP_WorkManagement_OM_SortableTaskQuery$set_coreQuery(value) {ULS0Qc:;1977 this.get_objectData().get_clientObjectProperties()['CoreQuery'] = value;1978 if ((this.get_context())) {1979 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CoreQuery', value));1980 }1981 return value;1982 },1983 1984 get_order: function SP_WorkManagement_OM_SortableTaskQuery$get_order() {ULS0Qc:;1985 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['Order']));1986 if (SP.ScriptUtility.isUndefined($v_0)) {1987 $v_0 = new SP.WorkManagement.OM.OrderInfo(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Order'));1988 this.get_objectData().get_clientObjectProperties()['Order'] = $v_0;1989 }1990 return $v_0;1991 },1992 set_order: function SP_WorkManagement_OM_SortableTaskQuery$set_order(value) {ULS0Qc:;1993 this.get_objectData().get_clientObjectProperties()['Order'] = value;1994 if ((this.get_context())) {1995 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Order', value));1996 }1997 return value;1998 },1999 2000 initPropertiesFromJson: function SP_WorkManagement_OM_SortableTaskQuery$initPropertiesFromJson(parentNode) {ULS0Qc:;2001 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);2002 var $v_0;2003 $v_0 = parentNode.CoreQuery;2004 if (!SP.ScriptUtility.isUndefined($v_0)) {2005 this.updateClientObjectPropertyType('CoreQuery', this.get_coreQuery(), $v_0);2006 this.get_coreQuery().fromJson($v_0);2007 delete parentNode.CoreQuery;2008 }2009 $v_0 = parentNode.Order;2010 if (!SP.ScriptUtility.isUndefined($v_0)) {2011 this.updateClientObjectPropertyType('Order', this.get_order(), $v_0);2012 this.get_order().fromJson($v_0);2013 delete parentNode.Order;2014 }2015 }2016}2017SP.WorkManagement.OM.SortableTaskQueryObjectPropertyNames = function SP_WorkManagement_OM_SortableTaskQueryObjectPropertyNames() {2018}2019SP.WorkManagement.OM.Task = function SP_WorkManagement_OM_Task(context) {ULS0Qc:;2020 SP.WorkManagement.OM.Task.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{af0507b6-ef4f-4029-a48a-943afe14aea6}', arguments) ]);2021}2022SP.WorkManagement.OM.Task.newObject = function SP_WorkManagement_OM_Task$newObject(context) {ULS0Qc:;2023 return new SP.WorkManagement.OM.Task(context, new SP.ObjectPathConstructor(context, '{af0507b6-ef4f-4029-a48a-943afe14aea6}', null));2024}2025SP.WorkManagement.OM.Task.prototype = {2026 2027 get_customAttributes: function SP_WorkManagement_OM_Task$get_customAttributes() {ULS0Qc:;2028 this.checkUninitializedProperty('CustomAttributes');2029 return ((this.get_objectData().get_properties()['CustomAttributes']));2030 },2031 set_customAttributes: function SP_WorkManagement_OM_Task$set_customAttributes(value) {ULS0Qc:;2032 this.get_objectData().get_properties()['CustomAttributes'] = value;2033 if ((this.get_context())) {2034 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CustomAttributes', value));2035 }2036 return value;2037 },2038 2039 get_description: function SP_WorkManagement_OM_Task$get_description() {ULS0Qc:;2040 this.checkUninitializedProperty('Description');2041 return ((this.get_objectData().get_properties()['Description']));2042 },2043 set_description: function SP_WorkManagement_OM_Task$set_description(value) {ULS0Qc:;2044 this.get_objectData().get_properties()['Description'] = value;2045 if ((this.get_context())) {2046 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Description', value));2047 }2048 return value;2049 },2050 2051 get_dueDate: function SP_WorkManagement_OM_Task$get_dueDate() {ULS0Qc:;2052 this.checkUninitializedProperty('DueDate');2053 return ((this.get_objectData().get_properties()['DueDate']));2054 },2055 set_dueDate: function SP_WorkManagement_OM_Task$set_dueDate(value) {ULS0Qc:;2056 this.get_objectData().get_properties()['DueDate'] = value;2057 if ((this.get_context())) {2058 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'DueDate', value));2059 }2060 return value;2061 },2062 2063 get_editUrl: function SP_WorkManagement_OM_Task$get_editUrl() {ULS0Qc:;2064 this.checkUninitializedProperty('EditUrl');2065 return ((this.get_objectData().get_properties()['EditUrl']));2066 },2067 set_editUrl: function SP_WorkManagement_OM_Task$set_editUrl(value) {ULS0Qc:;2068 this.get_objectData().get_properties()['EditUrl'] = value;2069 if ((this.get_context())) {2070 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EditUrl', value));2071 }2072 return value;2073 },2074 2075 get_id: function SP_WorkManagement_OM_Task$get_id() {ULS0Qc:;2076 this.checkUninitializedProperty('Id');2077 return ((this.get_objectData().get_properties()['Id']));2078 },2079 set_id: function SP_WorkManagement_OM_Task$set_id(value) {ULS0Qc:;2080 this.get_objectData().get_properties()['Id'] = value;2081 if ((this.get_context())) {2082 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Id', value));2083 }2084 return value;2085 },2086 2087 get_isCompleted: function SP_WorkManagement_OM_Task$get_isCompleted() {ULS0Qc:;2088 this.checkUninitializedProperty('IsCompleted');2089 return ((this.get_objectData().get_properties()['IsCompleted']));2090 },2091 set_isCompleted: function SP_WorkManagement_OM_Task$set_isCompleted(value) {ULS0Qc:;2092 this.get_objectData().get_properties()['IsCompleted'] = value;2093 if ((this.get_context())) {2094 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'IsCompleted', value));2095 }2096 return value;2097 },2098 2099 get_isPersonal: function SP_WorkManagement_OM_Task$get_isPersonal() {ULS0Qc:;2100 this.checkUninitializedProperty('IsPersonal');2101 return ((this.get_objectData().get_properties()['IsPersonal']));2102 },2103 set_isPersonal: function SP_WorkManagement_OM_Task$set_isPersonal(value) {ULS0Qc:;2104 this.get_objectData().get_properties()['IsPersonal'] = value;2105 if ((this.get_context())) {2106 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'IsPersonal', value));2107 }2108 return value;2109 },2110 2111 get_isReadOnly: function SP_WorkManagement_OM_Task$get_isReadOnly() {ULS0Qc:;2112 this.checkUninitializedProperty('IsReadOnly');2113 return ((this.get_objectData().get_properties()['IsReadOnly']));2114 },2115 set_isReadOnly: function SP_WorkManagement_OM_Task$set_isReadOnly(value) {ULS0Qc:;2116 this.get_objectData().get_properties()['IsReadOnly'] = value;2117 if ((this.get_context())) {2118 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'IsReadOnly', value));2119 }2120 return value;2121 },2122 2123 get_lastModified: function SP_WorkManagement_OM_Task$get_lastModified() {ULS0Qc:;2124 this.checkUninitializedProperty('LastModified');2125 return ((this.get_objectData().get_properties()['LastModified']));2126 },2127 set_lastModified: function SP_WorkManagement_OM_Task$set_lastModified(value) {ULS0Qc:;2128 this.get_objectData().get_properties()['LastModified'] = value;2129 if ((this.get_context())) {2130 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'LastModified', value));2131 }2132 return value;2133 },2134 2135 get_locationId: function SP_WorkManagement_OM_Task$get_locationId() {ULS0Qc:;2136 this.checkUninitializedProperty('LocationId');2137 return ((this.get_objectData().get_properties()['LocationId']));2138 },2139 set_locationId: function SP_WorkManagement_OM_Task$set_locationId(value) {ULS0Qc:;2140 this.get_objectData().get_properties()['LocationId'] = value;2141 if ((this.get_context())) {2142 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'LocationId', value));2143 }2144 return value;2145 },2146 2147 get_name: function SP_WorkManagement_OM_Task$get_name() {ULS0Qc:;2148 this.checkUninitializedProperty('Name');2149 return ((this.get_objectData().get_properties()['Name']));2150 },2151 set_name: function SP_WorkManagement_OM_Task$set_name(value) {ULS0Qc:;2152 this.get_objectData().get_properties()['Name'] = value;2153 if ((this.get_context())) {2154 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Name', value));2155 }2156 return value;2157 },2158 2159 get_pinAge: function SP_WorkManagement_OM_Task$get_pinAge() {ULS0Qc:;2160 this.checkUninitializedProperty('PinAge');2161 return ((this.get_objectData().get_properties()['PinAge']));2162 },2163 set_pinAge: function SP_WorkManagement_OM_Task$set_pinAge(value) {ULS0Qc:;2164 this.get_objectData().get_properties()['PinAge'] = value;2165 if ((this.get_context())) {2166 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'PinAge', value));2167 }2168 return value;2169 },2170 2171 get_serializedCustomDataForClient: function SP_WorkManagement_OM_Task$get_serializedCustomDataForClient() {ULS0Qc:;2172 this.checkUninitializedProperty('SerializedCustomDataForClient');2173 return ((this.get_objectData().get_properties()['SerializedCustomDataForClient']));2174 },2175 set_serializedCustomDataForClient: function SP_WorkManagement_OM_Task$set_serializedCustomDataForClient(value) {ULS0Qc:;2176 this.get_objectData().get_properties()['SerializedCustomDataForClient'] = value;2177 if ((this.get_context())) {2178 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'SerializedCustomDataForClient', value));2179 }2180 return value;2181 },2182 2183 get_startDate: function SP_WorkManagement_OM_Task$get_startDate() {ULS0Qc:;2184 this.checkUninitializedProperty('StartDate');2185 return ((this.get_objectData().get_properties()['StartDate']));2186 },2187 set_startDate: function SP_WorkManagement_OM_Task$set_startDate(value) {ULS0Qc:;2188 this.get_objectData().get_properties()['StartDate'] = value;2189 if ((this.get_context())) {2190 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'StartDate', value));2191 }2192 return value;2193 },2194 2195 initPropertiesFromJson: function SP_WorkManagement_OM_Task$initPropertiesFromJson(parentNode) {ULS0Qc:;2196 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);2197 var $v_0;2198 $v_0 = parentNode.CustomAttributes;2199 if (!SP.ScriptUtility.isUndefined($v_0)) {2200 this.get_objectData().get_properties()['CustomAttributes'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));2201 delete parentNode.CustomAttributes;2202 }2203 $v_0 = parentNode.Description;2204 if (!SP.ScriptUtility.isUndefined($v_0)) {2205 this.get_objectData().get_properties()['Description'] = ($v_0);2206 delete parentNode.Description;2207 }2208 $v_0 = parentNode.DueDate;2209 if (!SP.ScriptUtility.isUndefined($v_0)) {2210 this.get_objectData().get_properties()['DueDate'] = ($v_0);2211 delete parentNode.DueDate;2212 }2213 $v_0 = parentNode.EditUrl;2214 if (!SP.ScriptUtility.isUndefined($v_0)) {2215 this.get_objectData().get_properties()['EditUrl'] = ($v_0);2216 delete parentNode.EditUrl;2217 }2218 $v_0 = parentNode.Id;2219 if (!SP.ScriptUtility.isUndefined($v_0)) {2220 this.get_objectData().get_properties()['Id'] = ($v_0);2221 delete parentNode.Id;2222 }2223 $v_0 = parentNode.IsCompleted;2224 if (!SP.ScriptUtility.isUndefined($v_0)) {2225 this.get_objectData().get_properties()['IsCompleted'] = ($v_0);2226 delete parentNode.IsCompleted;2227 }2228 $v_0 = parentNode.IsPersonal;2229 if (!SP.ScriptUtility.isUndefined($v_0)) {2230 this.get_objectData().get_properties()['IsPersonal'] = ($v_0);2231 delete parentNode.IsPersonal;2232 }2233 $v_0 = parentNode.IsReadOnly;2234 if (!SP.ScriptUtility.isUndefined($v_0)) {2235 this.get_objectData().get_properties()['IsReadOnly'] = ($v_0);2236 delete parentNode.IsReadOnly;2237 }2238 $v_0 = parentNode.LastModified;2239 if (!SP.ScriptUtility.isUndefined($v_0)) {2240 this.get_objectData().get_properties()['LastModified'] = ($v_0);2241 delete parentNode.LastModified;2242 }2243 $v_0 = parentNode.LocationId;2244 if (!SP.ScriptUtility.isUndefined($v_0)) {2245 this.get_objectData().get_properties()['LocationId'] = ($v_0);2246 delete parentNode.LocationId;2247 }2248 $v_0 = parentNode.Name;2249 if (!SP.ScriptUtility.isUndefined($v_0)) {2250 this.get_objectData().get_properties()['Name'] = ($v_0);2251 delete parentNode.Name;2252 }2253 $v_0 = parentNode.PinAge;2254 if (!SP.ScriptUtility.isUndefined($v_0)) {2255 this.get_objectData().get_properties()['PinAge'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));2256 delete parentNode.PinAge;2257 }2258 $v_0 = parentNode.SerializedCustomDataForClient;2259 if (!SP.ScriptUtility.isUndefined($v_0)) {2260 this.get_objectData().get_properties()['SerializedCustomDataForClient'] = ($v_0);2261 delete parentNode.SerializedCustomDataForClient;2262 }2263 $v_0 = parentNode.StartDate;2264 if (!SP.ScriptUtility.isUndefined($v_0)) {2265 this.get_objectData().get_properties()['StartDate'] = ($v_0);2266 delete parentNode.StartDate;2267 }2268 }2269}2270SP.WorkManagement.OM.TaskPropertyNames = function SP_WorkManagement_OM_TaskPropertyNames() {2271}2272SP.WorkManagement.OM.TaskClientCollection = function SP_WorkManagement_OM_TaskClientCollection(context) {ULS0Qc:;2273 SP.WorkManagement.OM.TaskClientCollection.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{1a855a95-ee52-4a94-b0ab-7020dda6972a}', arguments) ]);2274}2275SP.WorkManagement.OM.TaskClientCollection.newObject = function SP_WorkManagement_OM_TaskClientCollection$newObject(context) {ULS0Qc:;2276 return new SP.WorkManagement.OM.TaskClientCollection(context, new SP.ObjectPathConstructor(context, '{1a855a95-ee52-4a94-b0ab-7020dda6972a}', null));2277}2278SP.WorkManagement.OM.TaskClientCollection.prototype = {2279 2280 itemAt: function SP_WorkManagement_OM_TaskClientCollection$itemAt(index) {ULS0Qc:;2281 return this.getItemAtIndex(index);2282 },2283 2284 get_item: function SP_WorkManagement_OM_TaskClientCollection$get_item(index) {ULS0Qc:;2285 return this.getItemAtIndex(index);2286 },2287 2288 get_childItemType: function SP_WorkManagement_OM_TaskClientCollection$get_childItemType() {ULS0Qc:;2289 return SP.WorkManagement.OM.Task;2290 }2291}2292SP.WorkManagement.OM.TaskFilter = function SP_WorkManagement_OM_TaskFilter(context) {ULS0Qc:;2293 SP.WorkManagement.OM.TaskFilter.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{3188516d-d569-40f8-8c01-1d48fbf5243c}', arguments) ]);2294}2295SP.WorkManagement.OM.TaskFilter.newObject = function SP_WorkManagement_OM_TaskFilter$newObject(context) {ULS0Qc:;2296 return new SP.WorkManagement.OM.TaskFilter(context, new SP.ObjectPathConstructor(context, '{3188516d-d569-40f8-8c01-1d48fbf5243c}', null));2297}2298SP.WorkManagement.OM.TaskFilter.prototype = {2299 2300 get_completedCriterion: function SP_WorkManagement_OM_TaskFilter$get_completedCriterion() {ULS0Qc:;2301 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['CompletedCriterion']));2302 if (SP.ScriptUtility.isUndefined($v_0)) {2303 $v_0 = new SP.WorkManagement.OM.BooleanCriterion(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'CompletedCriterion'));2304 this.get_objectData().get_clientObjectProperties()['CompletedCriterion'] = $v_0;2305 }2306 return $v_0;2307 },2308 set_completedCriterion: function SP_WorkManagement_OM_TaskFilter$set_completedCriterion(value) {ULS0Qc:;2309 this.get_objectData().get_clientObjectProperties()['CompletedCriterion'] = value;2310 if ((this.get_context())) {2311 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CompletedCriterion', value));2312 }2313 return value;2314 },2315 2316 get_criterionConcatType: function SP_WorkManagement_OM_TaskFilter$get_criterionConcatType() {ULS0Qc:;2317 this.checkUninitializedProperty('CriterionConcatType');2318 return ((this.get_objectData().get_properties()['CriterionConcatType']));2319 },2320 set_criterionConcatType: function SP_WorkManagement_OM_TaskFilter$set_criterionConcatType(value) {ULS0Qc:;2321 this.get_objectData().get_properties()['CriterionConcatType'] = value;2322 if ((this.get_context())) {2323 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CriterionConcatType', value));2324 }2325 return value;2326 },2327 2328 get_dueDateRangeCriterion: function SP_WorkManagement_OM_TaskFilter$get_dueDateRangeCriterion() {ULS0Qc:;2329 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['DueDateRangeCriterion']));2330 if (SP.ScriptUtility.isUndefined($v_0)) {2331 $v_0 = new SP.WorkManagement.OM.DateRangeCriterion(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'DueDateRangeCriterion'));2332 this.get_objectData().get_clientObjectProperties()['DueDateRangeCriterion'] = $v_0;2333 }2334 return $v_0;2335 },2336 set_dueDateRangeCriterion: function SP_WorkManagement_OM_TaskFilter$set_dueDateRangeCriterion(value) {ULS0Qc:;2337 this.get_objectData().get_clientObjectProperties()['DueDateRangeCriterion'] = value;2338 if ((this.get_context())) {2339 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'DueDateRangeCriterion', value));2340 }2341 return value;2342 },2343 2344 get_idsToFilterBy: function SP_WorkManagement_OM_TaskFilter$get_idsToFilterBy() {ULS0Qc:;2345 this.checkUninitializedProperty('IdsToFilterBy');2346 return ((this.get_objectData().get_properties()['IdsToFilterBy']));2347 },2348 set_idsToFilterBy: function SP_WorkManagement_OM_TaskFilter$set_idsToFilterBy(value) {ULS0Qc:;2349 this.get_objectData().get_properties()['IdsToFilterBy'] = value;2350 if ((this.get_context())) {2351 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'IdsToFilterBy', value));2352 }2353 return value;2354 },2355 2356 get_isNewCriterion: function SP_WorkManagement_OM_TaskFilter$get_isNewCriterion() {ULS0Qc:;2357 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['IsNewCriterion']));2358 if (SP.ScriptUtility.isUndefined($v_0)) {2359 $v_0 = new SP.WorkManagement.OM.BooleanCriterion(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'IsNewCriterion'));2360 this.get_objectData().get_clientObjectProperties()['IsNewCriterion'] = $v_0;2361 }2362 return $v_0;2363 },2364 set_isNewCriterion: function SP_WorkManagement_OM_TaskFilter$set_isNewCriterion(value) {ULS0Qc:;2365 this.get_objectData().get_clientObjectProperties()['IsNewCriterion'] = value;2366 if ((this.get_context())) {2367 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'IsNewCriterion', value));2368 }2369 return value;2370 },2371 2372 get_nameCriterion: function SP_WorkManagement_OM_TaskFilter$get_nameCriterion() {ULS0Qc:;2373 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['NameCriterion']));2374 if (SP.ScriptUtility.isUndefined($v_0)) {2375 $v_0 = new SP.WorkManagement.OM.NameCriterion(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'NameCriterion'));2376 this.get_objectData().get_clientObjectProperties()['NameCriterion'] = $v_0;2377 }2378 return $v_0;2379 },2380 set_nameCriterion: function SP_WorkManagement_OM_TaskFilter$set_nameCriterion(value) {ULS0Qc:;2381 this.get_objectData().get_clientObjectProperties()['NameCriterion'] = value;2382 if ((this.get_context())) {2383 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'NameCriterion', value));2384 }2385 return value;2386 },2387 2388 get_startDateRangeCriterion: function SP_WorkManagement_OM_TaskFilter$get_startDateRangeCriterion() {ULS0Qc:;2389 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['StartDateRangeCriterion']));2390 if (SP.ScriptUtility.isUndefined($v_0)) {2391 $v_0 = new SP.WorkManagement.OM.DateRangeCriterion(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'StartDateRangeCriterion'));2392 this.get_objectData().get_clientObjectProperties()['StartDateRangeCriterion'] = $v_0;2393 }2394 return $v_0;2395 },2396 set_startDateRangeCriterion: function SP_WorkManagement_OM_TaskFilter$set_startDateRangeCriterion(value) {ULS0Qc:;2397 this.get_objectData().get_clientObjectProperties()['StartDateRangeCriterion'] = value;2398 if ((this.get_context())) {2399 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'StartDateRangeCriterion', value));2400 }2401 return value;2402 },2403 2404 initPropertiesFromJson: function SP_WorkManagement_OM_TaskFilter$initPropertiesFromJson(parentNode) {ULS0Qc:;2405 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);2406 var $v_0;2407 $v_0 = parentNode.CompletedCriterion;2408 if (!SP.ScriptUtility.isUndefined($v_0)) {2409 this.updateClientObjectPropertyType('CompletedCriterion', this.get_completedCriterion(), $v_0);2410 this.get_completedCriterion().fromJson($v_0);2411 delete parentNode.CompletedCriterion;2412 }2413 $v_0 = parentNode.CriterionConcatType;2414 if (!SP.ScriptUtility.isUndefined($v_0)) {2415 this.get_objectData().get_properties()['CriterionConcatType'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));2416 delete parentNode.CriterionConcatType;2417 }2418 $v_0 = parentNode.DueDateRangeCriterion;2419 if (!SP.ScriptUtility.isUndefined($v_0)) {2420 this.updateClientObjectPropertyType('DueDateRangeCriterion', this.get_dueDateRangeCriterion(), $v_0);2421 this.get_dueDateRangeCriterion().fromJson($v_0);2422 delete parentNode.DueDateRangeCriterion;2423 }2424 $v_0 = parentNode.IdsToFilterBy;2425 if (!SP.ScriptUtility.isUndefined($v_0)) {2426 this.get_objectData().get_properties()['IdsToFilterBy'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));2427 delete parentNode.IdsToFilterBy;2428 }2429 $v_0 = parentNode.IsNewCriterion;2430 if (!SP.ScriptUtility.isUndefined($v_0)) {2431 this.updateClientObjectPropertyType('IsNewCriterion', this.get_isNewCriterion(), $v_0);2432 this.get_isNewCriterion().fromJson($v_0);2433 delete parentNode.IsNewCriterion;2434 }2435 $v_0 = parentNode.NameCriterion;2436 if (!SP.ScriptUtility.isUndefined($v_0)) {2437 this.updateClientObjectPropertyType('NameCriterion', this.get_nameCriterion(), $v_0);2438 this.get_nameCriterion().fromJson($v_0);2439 delete parentNode.NameCriterion;2440 }2441 $v_0 = parentNode.StartDateRangeCriterion;2442 if (!SP.ScriptUtility.isUndefined($v_0)) {2443 this.updateClientObjectPropertyType('StartDateRangeCriterion', this.get_startDateRangeCriterion(), $v_0);2444 this.get_startDateRangeCriterion().fromJson($v_0);2445 delete parentNode.StartDateRangeCriterion;2446 }2447 }2448}2449SP.WorkManagement.OM.TaskFilterPropertyNames = function SP_WorkManagement_OM_TaskFilterPropertyNames() {2450}2451SP.WorkManagement.OM.TaskFilterObjectPropertyNames = function SP_WorkManagement_OM_TaskFilterObjectPropertyNames() {2452}2453SP.WorkManagement.OM.TaskQuery = function SP_WorkManagement_OM_TaskQuery(context) {ULS0Qc:;2454 SP.WorkManagement.OM.TaskQuery.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{70c9591d-9a78-404a-9fe8-b50b1e02cd93}', arguments) ]);2455}2456SP.WorkManagement.OM.TaskQuery.newObject = function SP_WorkManagement_OM_TaskQuery$newObject(context) {ULS0Qc:;2457 return new SP.WorkManagement.OM.TaskQuery(context, new SP.ObjectPathConstructor(context, '{70c9591d-9a78-404a-9fe8-b50b1e02cd93}', null));2458}2459SP.WorkManagement.OM.TaskQuery.prototype = {2460 2461 get_customAttributeFilter: function SP_WorkManagement_OM_TaskQuery$get_customAttributeFilter() {ULS0Qc:;2462 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['CustomAttributeFilter']));2463 if (SP.ScriptUtility.isUndefined($v_0)) {2464 $v_0 = new SP.WorkManagement.OM.CustomAttributeFilter(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'CustomAttributeFilter'));2465 this.get_objectData().get_clientObjectProperties()['CustomAttributeFilter'] = $v_0;2466 }2467 return $v_0;2468 },2469 set_customAttributeFilter: function SP_WorkManagement_OM_TaskQuery$set_customAttributeFilter(value) {ULS0Qc:;2470 this.get_objectData().get_clientObjectProperties()['CustomAttributeFilter'] = value;2471 if ((this.get_context())) {2472 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'CustomAttributeFilter', value));2473 }2474 return value;2475 },2476 2477 get_fieldFilter: function SP_WorkManagement_OM_TaskQuery$get_fieldFilter() {ULS0Qc:;2478 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['FieldFilter']));2479 if (SP.ScriptUtility.isUndefined($v_0)) {2480 $v_0 = new SP.WorkManagement.OM.TaskFilter(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'FieldFilter'));2481 this.get_objectData().get_clientObjectProperties()['FieldFilter'] = $v_0;2482 }2483 return $v_0;2484 },2485 set_fieldFilter: function SP_WorkManagement_OM_TaskQuery$set_fieldFilter(value) {ULS0Qc:;2486 this.get_objectData().get_clientObjectProperties()['FieldFilter'] = value;2487 if ((this.get_context())) {2488 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'FieldFilter', value));2489 }2490 return value;2491 },2492 2493 get_keywordFilter: function SP_WorkManagement_OM_TaskQuery$get_keywordFilter() {ULS0Qc:;2494 this.checkUninitializedProperty('KeywordFilter');2495 return ((this.get_objectData().get_properties()['KeywordFilter']));2496 },2497 set_keywordFilter: function SP_WorkManagement_OM_TaskQuery$set_keywordFilter(value) {ULS0Qc:;2498 this.get_objectData().get_properties()['KeywordFilter'] = value;2499 if ((this.get_context())) {2500 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'KeywordFilter', value));2501 }2502 return value;2503 },2504 2505 get_lastModifiedDateRangeFilter: function SP_WorkManagement_OM_TaskQuery$get_lastModifiedDateRangeFilter() {ULS0Qc:;2506 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['LastModifiedDateRangeFilter']));2507 if (SP.ScriptUtility.isUndefined($v_0)) {2508 $v_0 = new SP.WorkManagement.OM.DateRangeCriterion(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'LastModifiedDateRangeFilter'));2509 this.get_objectData().get_clientObjectProperties()['LastModifiedDateRangeFilter'] = $v_0;2510 }2511 return $v_0;2512 },2513 set_lastModifiedDateRangeFilter: function SP_WorkManagement_OM_TaskQuery$set_lastModifiedDateRangeFilter(value) {ULS0Qc:;2514 this.get_objectData().get_clientObjectProperties()['LastModifiedDateRangeFilter'] = value;2515 if ((this.get_context())) {2516 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'LastModifiedDateRangeFilter', value));2517 }2518 return value;2519 },2520 2521 get_lastQueryTime: function SP_WorkManagement_OM_TaskQuery$get_lastQueryTime() {ULS0Qc:;2522 this.checkUninitializedProperty('LastQueryTime');2523 return ((this.get_objectData().get_properties()['LastQueryTime']));2524 },2525 set_lastQueryTime: function SP_WorkManagement_OM_TaskQuery$set_lastQueryTime(value) {ULS0Qc:;2526 this.get_objectData().get_properties()['LastQueryTime'] = value;2527 if ((this.get_context())) {2528 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'LastQueryTime', value));2529 }2530 return value;2531 },2532 2533 get_locationFilter: function SP_WorkManagement_OM_TaskQuery$get_locationFilter() {ULS0Qc:;2534 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['LocationFilter']));2535 if (SP.ScriptUtility.isUndefined($v_0)) {2536 $v_0 = new SP.WorkManagement.OM.LocationFilter(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'LocationFilter'));2537 this.get_objectData().get_clientObjectProperties()['LocationFilter'] = $v_0;2538 }2539 return $v_0;2540 },2541 set_locationFilter: function SP_WorkManagement_OM_TaskQuery$set_locationFilter(value) {ULS0Qc:;2542 this.get_objectData().get_clientObjectProperties()['LocationFilter'] = value;2543 if ((this.get_context())) {2544 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'LocationFilter', value));2545 }2546 return value;2547 },2548 2549 get_pinnedFilter: function SP_WorkManagement_OM_TaskQuery$get_pinnedFilter() {ULS0Qc:;2550 this.checkUninitializedProperty('PinnedFilter');2551 return ((this.get_objectData().get_properties()['PinnedFilter']));2552 },2553 set_pinnedFilter: function SP_WorkManagement_OM_TaskQuery$set_pinnedFilter(value) {ULS0Qc:;2554 this.get_objectData().get_properties()['PinnedFilter'] = value;2555 if ((this.get_context())) {2556 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'PinnedFilter', value));2557 }2558 return value;2559 },2560 2561 initPropertiesFromJson: function SP_WorkManagement_OM_TaskQuery$initPropertiesFromJson(parentNode) {ULS0Qc:;2562 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);2563 var $v_0;2564 $v_0 = parentNode.CustomAttributeFilter;2565 if (!SP.ScriptUtility.isUndefined($v_0)) {2566 this.updateClientObjectPropertyType('CustomAttributeFilter', this.get_customAttributeFilter(), $v_0);2567 this.get_customAttributeFilter().fromJson($v_0);2568 delete parentNode.CustomAttributeFilter;2569 }2570 $v_0 = parentNode.FieldFilter;2571 if (!SP.ScriptUtility.isUndefined($v_0)) {2572 this.updateClientObjectPropertyType('FieldFilter', this.get_fieldFilter(), $v_0);2573 this.get_fieldFilter().fromJson($v_0);2574 delete parentNode.FieldFilter;2575 }2576 $v_0 = parentNode.KeywordFilter;2577 if (!SP.ScriptUtility.isUndefined($v_0)) {2578 this.get_objectData().get_properties()['KeywordFilter'] = ($v_0);2579 delete parentNode.KeywordFilter;2580 }2581 $v_0 = parentNode.LastModifiedDateRangeFilter;2582 if (!SP.ScriptUtility.isUndefined($v_0)) {2583 this.updateClientObjectPropertyType('LastModifiedDateRangeFilter', this.get_lastModifiedDateRangeFilter(), $v_0);2584 this.get_lastModifiedDateRangeFilter().fromJson($v_0);2585 delete parentNode.LastModifiedDateRangeFilter;2586 }2587 $v_0 = parentNode.LastQueryTime;2588 if (!SP.ScriptUtility.isUndefined($v_0)) {2589 this.get_objectData().get_properties()['LastQueryTime'] = ($v_0);2590 delete parentNode.LastQueryTime;2591 }2592 $v_0 = parentNode.LocationFilter;2593 if (!SP.ScriptUtility.isUndefined($v_0)) {2594 this.updateClientObjectPropertyType('LocationFilter', this.get_locationFilter(), $v_0);2595 this.get_locationFilter().fromJson($v_0);2596 delete parentNode.LocationFilter;2597 }2598 $v_0 = parentNode.PinnedFilter;2599 if (!SP.ScriptUtility.isUndefined($v_0)) {2600 this.get_objectData().get_properties()['PinnedFilter'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));2601 delete parentNode.PinnedFilter;2602 }2603 }2604}2605SP.WorkManagement.OM.TaskQueryPropertyNames = function SP_WorkManagement_OM_TaskQueryPropertyNames() {2606}2607SP.WorkManagement.OM.TaskQueryObjectPropertyNames = function SP_WorkManagement_OM_TaskQueryObjectPropertyNames() {2608}2609SP.WorkManagement.OM.TaskQueryByLocationResult = function SP_WorkManagement_OM_TaskQueryByLocationResult(context, objectPath) {ULS0Qc:;2610 SP.WorkManagement.OM.TaskQueryByLocationResult.initializeBase(this, [ context, objectPath ]);2611}2612SP.WorkManagement.OM.TaskQueryByLocationResult.prototype = {2613 2614 get_error: function SP_WorkManagement_OM_TaskQueryByLocationResult$get_error() {ULS0Qc:;2615 this.checkUninitializedProperty('Error');2616 return ((this.get_objectData().get_properties()['Error']));2617 },2618 set_error: function SP_WorkManagement_OM_TaskQueryByLocationResult$set_error(value) {ULS0Qc:;2619 this.get_objectData().get_properties()['Error'] = value;2620 if ((this.get_context())) {2621 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Error', value));2622 }2623 return value;2624 },2625 2626 get_errorMessage: function SP_WorkManagement_OM_TaskQueryByLocationResult$get_errorMessage() {ULS0Qc:;2627 this.checkUninitializedProperty('ErrorMessage');2628 return ((this.get_objectData().get_properties()['ErrorMessage']));2629 },2630 set_errorMessage: function SP_WorkManagement_OM_TaskQueryByLocationResult$set_errorMessage(value) {ULS0Qc:;2631 this.get_objectData().get_properties()['ErrorMessage'] = value;2632 if ((this.get_context())) {2633 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ErrorMessage', value));2634 }2635 return value;2636 },2637 2638 get_results: function SP_WorkManagement_OM_TaskQueryByLocationResult$get_results() {ULS0Qc:;2639 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['Results']));2640 if (SP.ScriptUtility.isUndefined($v_0)) {2641 $v_0 = new SP.WorkManagement.OM.LocationGroupClientCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Results'));2642 this.get_objectData().get_clientObjectProperties()['Results'] = $v_0;2643 }2644 return $v_0;2645 },2646 set_results: function SP_WorkManagement_OM_TaskQueryByLocationResult$set_results(value) {ULS0Qc:;2647 this.get_objectData().get_clientObjectProperties()['Results'] = value;2648 if ((this.get_context())) {2649 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Results', value));2650 }2651 return value;2652 },2653 2654 initPropertiesFromJson: function SP_WorkManagement_OM_TaskQueryByLocationResult$initPropertiesFromJson(parentNode) {ULS0Qc:;2655 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);2656 var $v_0;2657 $v_0 = parentNode.Error;2658 if (!SP.ScriptUtility.isUndefined($v_0)) {2659 this.get_objectData().get_properties()['Error'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));2660 delete parentNode.Error;2661 }2662 $v_0 = parentNode.ErrorMessage;2663 if (!SP.ScriptUtility.isUndefined($v_0)) {2664 this.get_objectData().get_properties()['ErrorMessage'] = ($v_0);2665 delete parentNode.ErrorMessage;2666 }2667 $v_0 = parentNode.Results;2668 if (!SP.ScriptUtility.isUndefined($v_0)) {2669 this.updateClientObjectPropertyType('Results', this.get_results(), $v_0);2670 this.get_results().fromJson($v_0);2671 delete parentNode.Results;2672 }2673 }2674}2675SP.WorkManagement.OM.TaskQueryByLocationResultPropertyNames = function SP_WorkManagement_OM_TaskQueryByLocationResultPropertyNames() {2676}2677SP.WorkManagement.OM.TaskQueryByLocationResultObjectPropertyNames = function SP_WorkManagement_OM_TaskQueryByLocationResultObjectPropertyNames() {2678}2679SP.WorkManagement.OM.TaskQueryResult = function SP_WorkManagement_OM_TaskQueryResult(context, objectPath) {ULS0Qc:;2680 SP.WorkManagement.OM.TaskQueryResult.initializeBase(this, [ context, objectPath ]);2681}2682SP.WorkManagement.OM.TaskQueryResult.prototype = {2683 2684 get_error: function SP_WorkManagement_OM_TaskQueryResult$get_error() {ULS0Qc:;2685 this.checkUninitializedProperty('Error');2686 return ((this.get_objectData().get_properties()['Error']));2687 },2688 set_error: function SP_WorkManagement_OM_TaskQueryResult$set_error(value) {ULS0Qc:;2689 this.get_objectData().get_properties()['Error'] = value;2690 if ((this.get_context())) {2691 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Error', value));2692 }2693 return value;2694 },2695 2696 get_errorMessage: function SP_WorkManagement_OM_TaskQueryResult$get_errorMessage() {ULS0Qc:;2697 this.checkUninitializedProperty('ErrorMessage');2698 return ((this.get_objectData().get_properties()['ErrorMessage']));2699 },2700 set_errorMessage: function SP_WorkManagement_OM_TaskQueryResult$set_errorMessage(value) {ULS0Qc:;2701 this.get_objectData().get_properties()['ErrorMessage'] = value;2702 if ((this.get_context())) {2703 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ErrorMessage', value));2704 }2705 return value;2706 },2707 2708 get_results: function SP_WorkManagement_OM_TaskQueryResult$get_results() {ULS0Qc:;2709 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['Results']));2710 if (SP.ScriptUtility.isUndefined($v_0)) {2711 $v_0 = new SP.WorkManagement.OM.TaskClientCollection(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Results'));2712 this.get_objectData().get_clientObjectProperties()['Results'] = $v_0;2713 }2714 return $v_0;2715 },2716 set_results: function SP_WorkManagement_OM_TaskQueryResult$set_results(value) {ULS0Qc:;2717 this.get_objectData().get_clientObjectProperties()['Results'] = value;2718 if ((this.get_context())) {2719 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Results', value));2720 }2721 return value;2722 },2723 2724 initPropertiesFromJson: function SP_WorkManagement_OM_TaskQueryResult$initPropertiesFromJson(parentNode) {ULS0Qc:;2725 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);2726 var $v_0;2727 $v_0 = parentNode.Error;2728 if (!SP.ScriptUtility.isUndefined($v_0)) {2729 this.get_objectData().get_properties()['Error'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));2730 delete parentNode.Error;2731 }2732 $v_0 = parentNode.ErrorMessage;2733 if (!SP.ScriptUtility.isUndefined($v_0)) {2734 this.get_objectData().get_properties()['ErrorMessage'] = ($v_0);2735 delete parentNode.ErrorMessage;2736 }2737 $v_0 = parentNode.Results;2738 if (!SP.ScriptUtility.isUndefined($v_0)) {2739 this.updateClientObjectPropertyType('Results', this.get_results(), $v_0);2740 this.get_results().fromJson($v_0);2741 delete parentNode.Results;2742 }2743 }2744}2745SP.WorkManagement.OM.TaskQueryResultPropertyNames = function SP_WorkManagement_OM_TaskQueryResultPropertyNames() {2746}2747SP.WorkManagement.OM.TaskQueryResultObjectPropertyNames = function SP_WorkManagement_OM_TaskQueryResultObjectPropertyNames() {2748}2749SP.WorkManagement.OM.TaskRefreshResult = function SP_WorkManagement_OM_TaskRefreshResult(context, objectPath) {ULS0Qc:;2750 SP.WorkManagement.OM.TaskRefreshResult.initializeBase(this, [ context, objectPath ]);2751}2752SP.WorkManagement.OM.TaskRefreshResult.prototype = {2753 2754 get_errorCorrelationId: function SP_WorkManagement_OM_TaskRefreshResult$get_errorCorrelationId() {ULS0Qc:;2755 this.checkUninitializedProperty('ErrorCorrelationId');2756 return ((this.get_objectData().get_properties()['ErrorCorrelationId']));2757 },2758 set_errorCorrelationId: function SP_WorkManagement_OM_TaskRefreshResult$set_errorCorrelationId(value) {ULS0Qc:;2759 this.get_objectData().get_properties()['ErrorCorrelationId'] = value;2760 if ((this.get_context())) {2761 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ErrorCorrelationId', value));2762 }2763 return value;2764 },2765 2766 get_refreshState: function SP_WorkManagement_OM_TaskRefreshResult$get_refreshState() {ULS0Qc:;2767 this.checkUninitializedProperty('RefreshState');2768 return ((this.get_objectData().get_properties()['RefreshState']));2769 },2770 set_refreshState: function SP_WorkManagement_OM_TaskRefreshResult$set_refreshState(value) {ULS0Qc:;2771 this.get_objectData().get_properties()['RefreshState'] = value;2772 if ((this.get_context())) {2773 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RefreshState', value));2774 }2775 return value;2776 },2777 2778 get_result: function SP_WorkManagement_OM_TaskRefreshResult$get_result() {ULS0Qc:;2779 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['Result']));2780 if (SP.ScriptUtility.isUndefined($v_0)) {2781 $v_0 = new SP.WorkManagement.OM.Task(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Result'));2782 this.get_objectData().get_clientObjectProperties()['Result'] = $v_0;2783 }2784 return $v_0;2785 },2786 set_result: function SP_WorkManagement_OM_TaskRefreshResult$set_result(value) {ULS0Qc:;2787 this.get_objectData().get_clientObjectProperties()['Result'] = value;2788 if ((this.get_context())) {2789 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Result', value));2790 }2791 return value;2792 },2793 2794 initPropertiesFromJson: function SP_WorkManagement_OM_TaskRefreshResult$initPropertiesFromJson(parentNode) {ULS0Qc:;2795 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);2796 var $v_0;2797 $v_0 = parentNode.ErrorCorrelationId;2798 if (!SP.ScriptUtility.isUndefined($v_0)) {2799 this.get_objectData().get_properties()['ErrorCorrelationId'] = ($v_0);2800 delete parentNode.ErrorCorrelationId;2801 }2802 $v_0 = parentNode.RefreshState;2803 if (!SP.ScriptUtility.isUndefined($v_0)) {2804 this.get_objectData().get_properties()['RefreshState'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));2805 delete parentNode.RefreshState;2806 }2807 $v_0 = parentNode.Result;2808 if (!SP.ScriptUtility.isUndefined($v_0)) {2809 this.updateClientObjectPropertyType('Result', this.get_result(), $v_0);2810 this.get_result().fromJson($v_0);2811 delete parentNode.Result;2812 }2813 }2814}2815SP.WorkManagement.OM.TaskRefreshResultPropertyNames = function SP_WorkManagement_OM_TaskRefreshResultPropertyNames() {2816}2817SP.WorkManagement.OM.TaskRefreshResultObjectPropertyNames = function SP_WorkManagement_OM_TaskRefreshResultObjectPropertyNames() {2818}2819SP.WorkManagement.OM.TaskWriteResult = function SP_WorkManagement_OM_TaskWriteResult(context, objectPath) {ULS0Qc:;2820 SP.WorkManagement.OM.TaskWriteResult.initializeBase(this, [ context, objectPath ]);2821}2822SP.WorkManagement.OM.TaskWriteResult.prototype = {2823 2824 get_error: function SP_WorkManagement_OM_TaskWriteResult$get_error() {ULS0Qc:;2825 this.checkUninitializedProperty('Error');2826 return ((this.get_objectData().get_properties()['Error']));2827 },2828 set_error: function SP_WorkManagement_OM_TaskWriteResult$set_error(value) {ULS0Qc:;2829 this.get_objectData().get_properties()['Error'] = value;2830 if ((this.get_context())) {2831 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Error', value));2832 }2833 return value;2834 },2835 2836 get_errorMessage: function SP_WorkManagement_OM_TaskWriteResult$get_errorMessage() {ULS0Qc:;2837 this.checkUninitializedProperty('ErrorMessage');2838 return ((this.get_objectData().get_properties()['ErrorMessage']));2839 },2840 set_errorMessage: function SP_WorkManagement_OM_TaskWriteResult$set_errorMessage(value) {ULS0Qc:;2841 this.get_objectData().get_properties()['ErrorMessage'] = value;2842 if ((this.get_context())) {2843 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ErrorMessage', value));2844 }2845 return value;2846 },2847 2848 get_result: function SP_WorkManagement_OM_TaskWriteResult$get_result() {ULS0Qc:;2849 var $v_0 = ((this.get_objectData().get_clientObjectProperties()['Result']));2850 if (SP.ScriptUtility.isUndefined($v_0)) {2851 $v_0 = new SP.WorkManagement.OM.Task(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Result'));2852 this.get_objectData().get_clientObjectProperties()['Result'] = $v_0;2853 }2854 return $v_0;2855 },2856 set_result: function SP_WorkManagement_OM_TaskWriteResult$set_result(value) {ULS0Qc:;2857 this.get_objectData().get_clientObjectProperties()['Result'] = value;2858 if ((this.get_context())) {2859 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Result', value));2860 }2861 return value;2862 },2863 2864 initPropertiesFromJson: function SP_WorkManagement_OM_TaskWriteResult$initPropertiesFromJson(parentNode) {ULS0Qc:;2865 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);2866 var $v_0;2867 $v_0 = parentNode.Error;2868 if (!SP.ScriptUtility.isUndefined($v_0)) {2869 this.get_objectData().get_properties()['Error'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));2870 delete parentNode.Error;2871 }2872 $v_0 = parentNode.ErrorMessage;2873 if (!SP.ScriptUtility.isUndefined($v_0)) {2874 this.get_objectData().get_properties()['ErrorMessage'] = ($v_0);2875 delete parentNode.ErrorMessage;2876 }2877 $v_0 = parentNode.Result;2878 if (!SP.ScriptUtility.isUndefined($v_0)) {2879 this.updateClientObjectPropertyType('Result', this.get_result(), $v_0);2880 this.get_result().fromJson($v_0);2881 delete parentNode.Result;2882 }2883 }2884}2885SP.WorkManagement.OM.TaskWriteResultPropertyNames = function SP_WorkManagement_OM_TaskWriteResultPropertyNames() {2886}2887SP.WorkManagement.OM.TaskWriteResultObjectPropertyNames = function SP_WorkManagement_OM_TaskWriteResultObjectPropertyNames() {2888}2889SP.WorkManagement.OM.UserOrderedSession = function SP_WorkManagement_OM_UserOrderedSession(context, objectPath) {ULS0Qc:;2890 SP.WorkManagement.OM.UserOrderedSession.initializeBase(this, [ context, objectPath ]);2891}2892SP.WorkManagement.OM.UserOrderedSession.prototype = {2893 2894 reorderTask: function SP_WorkManagement_OM_UserOrderedSession$reorderTask(taskKey, newAfterTaskKey) {ULS0Qc:;2895 var $v_0 = this.get_context();2896 var $v_1 = new SP.ClientActionInvokeMethod(this, 'ReorderTask', [ taskKey, newAfterTaskKey ]);2897 $v_0.addQuery($v_1);2898 },2899 2900 readTasks: function SP_WorkManagement_OM_UserOrderedSession$readTasks(query) {ULS0Qc:;2901 var $v_0 = this.get_context();2902 var $v_1;2903 $v_1 = new SP.WorkManagement.OM.TaskClientCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'ReadTasks', [ query ]));2904 return $v_1;2905 }2906}2907SP.WorkManagement.OM.UserOrderedSessionManager = function SP_WorkManagement_OM_UserOrderedSessionManager(context) {ULS0Qc:;2908 SP.WorkManagement.OM.UserOrderedSessionManager.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{d82117fb-e4aa-4ab8-b590-cb2be4b2f078}', arguments) ]);2909}2910SP.WorkManagement.OM.UserOrderedSessionManager.newObject = function SP_WorkManagement_OM_UserOrderedSessionManager$newObject(context) {ULS0Qc:;2911 return new SP.WorkManagement.OM.UserOrderedSessionManager(context, new SP.ObjectPathConstructor(context, '{d82117fb-e4aa-4ab8-b590-cb2be4b2f078}', null));2912}2913SP.WorkManagement.OM.UserOrderedSessionManager.prototype = {2914 2915 createLocationOrientedSession: function SP_WorkManagement_OM_UserOrderedSessionManager$createLocationOrientedSession() {ULS0Qc:;2916 var $v_0 = this.get_context();2917 var $v_1;2918 $v_1 = new SP.WorkManagement.OM.LocationOrientedUserOrderedSession($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'CreateLocationOrientedSession', null));2919 return $v_1;2920 },2921 2922 createSession: function SP_WorkManagement_OM_UserOrderedSessionManager$createSession() {ULS0Qc:;2923 var $v_0 = this.get_context();2924 var $v_1;2925 $v_1 = new SP.WorkManagement.OM.UserOrderedSession($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'CreateSession', null));2926 return $v_1;2927 }2928}2929SP.WorkManagement.OM.UserSettings = function SP_WorkManagement_OM_UserSettings(context) {ULS0Qc:;2930 SP.WorkManagement.OM.UserSettings.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{bea67fb5-fb82-4388-b0e7-174baa0eb51a}', arguments) ]);2931}2932SP.WorkManagement.OM.UserSettings.newObject = function SP_WorkManagement_OM_UserSettings$newObject(context) {ULS0Qc:;2933 return new SP.WorkManagement.OM.UserSettings(context, new SP.ObjectPathConstructor(context, '{bea67fb5-fb82-4388-b0e7-174baa0eb51a}', null));2934}2935SP.WorkManagement.OM.UserSettings.prototype = {2936 2937 get_daysAfterCurrentDateTimelineEnds: function SP_WorkManagement_OM_UserSettings$get_daysAfterCurrentDateTimelineEnds() {ULS0Qc:;2938 this.checkUninitializedProperty('DaysAfterCurrentDateTimelineEnds');2939 return ((this.get_objectData().get_properties()['DaysAfterCurrentDateTimelineEnds']));2940 },2941 set_daysAfterCurrentDateTimelineEnds: function SP_WorkManagement_OM_UserSettings$set_daysAfterCurrentDateTimelineEnds(value) {ULS0Qc:;2942 this.get_objectData().get_properties()['DaysAfterCurrentDateTimelineEnds'] = value;2943 if ((this.get_context())) {2944 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'DaysAfterCurrentDateTimelineEnds', value));2945 }2946 return value;2947 },2948 2949 get_daysATaskIsConsideredNewTask: function SP_WorkManagement_OM_UserSettings$get_daysATaskIsConsideredNewTask() {ULS0Qc:;2950 this.checkUninitializedProperty('DaysATaskIsConsideredNewTask');2951 return ((this.get_objectData().get_properties()['DaysATaskIsConsideredNewTask']));2952 },2953 set_daysATaskIsConsideredNewTask: function SP_WorkManagement_OM_UserSettings$set_daysATaskIsConsideredNewTask(value) {ULS0Qc:;2954 this.get_objectData().get_properties()['DaysATaskIsConsideredNewTask'] = value;2955 if ((this.get_context())) {2956 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'DaysATaskIsConsideredNewTask', value));2957 }2958 return value;2959 },2960 2961 get_daysBeforeCurrentDateTimelineStarts: function SP_WorkManagement_OM_UserSettings$get_daysBeforeCurrentDateTimelineStarts() {ULS0Qc:;2962 this.checkUninitializedProperty('DaysBeforeCurrentDateTimelineStarts');2963 return ((this.get_objectData().get_properties()['DaysBeforeCurrentDateTimelineStarts']));2964 },2965 set_daysBeforeCurrentDateTimelineStarts: function SP_WorkManagement_OM_UserSettings$set_daysBeforeCurrentDateTimelineStarts(value) {ULS0Qc:;2966 this.get_objectData().get_properties()['DaysBeforeCurrentDateTimelineStarts'] = value;2967 if ((this.get_context())) {2968 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'DaysBeforeCurrentDateTimelineStarts', value));2969 }2970 return value;2971 },2972 2973 get_importantLocationIds: function SP_WorkManagement_OM_UserSettings$get_importantLocationIds() {ULS0Qc:;2974 this.checkUninitializedProperty('ImportantLocationIds');2975 return ((this.get_objectData().get_properties()['ImportantLocationIds']));2976 },2977 set_importantLocationIds: function SP_WorkManagement_OM_UserSettings$set_importantLocationIds(value) {ULS0Qc:;2978 this.get_objectData().get_properties()['ImportantLocationIds'] = value;2979 if ((this.get_context())) {2980 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ImportantLocationIds', value));2981 }2982 return value;2983 },2984 2985 get_importantTasksLimit: function SP_WorkManagement_OM_UserSettings$get_importantTasksLimit() {ULS0Qc:;2986 this.checkUninitializedProperty('ImportantTasksLimit');2987 return ((this.get_objectData().get_properties()['ImportantTasksLimit']));2988 },2989 set_importantTasksLimit: function SP_WorkManagement_OM_UserSettings$set_importantTasksLimit(value) {ULS0Qc:;2990 this.get_objectData().get_properties()['ImportantTasksLimit'] = value;2991 if ((this.get_context())) {2992 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ImportantTasksLimit', value));2993 }2994 return value;2995 },2996 2997 get_inactiveMonthsBeforeLocationExpiration: function SP_WorkManagement_OM_UserSettings$get_inactiveMonthsBeforeLocationExpiration() {ULS0Qc:;2998 this.checkUninitializedProperty('InactiveMonthsBeforeLocationExpiration');2999 return ((this.get_objectData().get_properties()['InactiveMonthsBeforeLocationExpiration']));3000 },3001 set_inactiveMonthsBeforeLocationExpiration: function SP_WorkManagement_OM_UserSettings$set_inactiveMonthsBeforeLocationExpiration(value) {ULS0Qc:;3002 this.get_objectData().get_properties()['InactiveMonthsBeforeLocationExpiration'] = value;3003 if ((this.get_context())) {3004 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'InactiveMonthsBeforeLocationExpiration', value));3005 }3006 return value;3007 },3008 3009 get_lateTasksLimit: function SP_WorkManagement_OM_UserSettings$get_lateTasksLimit() {ULS0Qc:;3010 this.checkUninitializedProperty('LateTasksLimit');3011 return ((this.get_objectData().get_properties()['LateTasksLimit']));3012 },3013 set_lateTasksLimit: function SP_WorkManagement_OM_UserSettings$set_lateTasksLimit(value) {ULS0Qc:;3014 this.get_objectData().get_properties()['LateTasksLimit'] = value;3015 if ((this.get_context())) {3016 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'LateTasksLimit', value));3017 }3018 return value;3019 },3020 3021 get_oldTasksLimit: function SP_WorkManagement_OM_UserSettings$get_oldTasksLimit() {ULS0Qc:;3022 this.checkUninitializedProperty('OldTasksLimit');3023 return ((this.get_objectData().get_properties()['OldTasksLimit']));3024 },3025 set_oldTasksLimit: function SP_WorkManagement_OM_UserSettings$set_oldTasksLimit(value) {ULS0Qc:;3026 this.get_objectData().get_properties()['OldTasksLimit'] = value;3027 if ((this.get_context())) {3028 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'OldTasksLimit', value));3029 }3030 return value;3031 },3032 3033 get_upcomingTasksLimit: function SP_WorkManagement_OM_UserSettings$get_upcomingTasksLimit() {ULS0Qc:;3034 this.checkUninitializedProperty('UpcomingTasksLimit');3035 return ((this.get_objectData().get_properties()['UpcomingTasksLimit']));3036 },3037 set_upcomingTasksLimit: function SP_WorkManagement_OM_UserSettings$set_upcomingTasksLimit(value) {ULS0Qc:;3038 this.get_objectData().get_properties()['UpcomingTasksLimit'] = value;3039 if ((this.get_context())) {3040 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'UpcomingTasksLimit', value));3041 }3042 return value;3043 },3044 3045 initPropertiesFromJson: function SP_WorkManagement_OM_UserSettings$initPropertiesFromJson(parentNode) {ULS0Qc:;3046 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);3047 var $v_0;3048 $v_0 = parentNode.DaysAfterCurrentDateTimelineEnds;3049 if (!SP.ScriptUtility.isUndefined($v_0)) {3050 this.get_objectData().get_properties()['DaysAfterCurrentDateTimelineEnds'] = ($v_0);3051 delete parentNode.DaysAfterCurrentDateTimelineEnds;3052 }3053 $v_0 = parentNode.DaysATaskIsConsideredNewTask;3054 if (!SP.ScriptUtility.isUndefined($v_0)) {3055 this.get_objectData().get_properties()['DaysATaskIsConsideredNewTask'] = ($v_0);3056 delete parentNode.DaysATaskIsConsideredNewTask;3057 }3058 $v_0 = parentNode.DaysBeforeCurrentDateTimelineStarts;3059 if (!SP.ScriptUtility.isUndefined($v_0)) {3060 this.get_objectData().get_properties()['DaysBeforeCurrentDateTimelineStarts'] = ($v_0);3061 delete parentNode.DaysBeforeCurrentDateTimelineStarts;3062 }3063 $v_0 = parentNode.ImportantLocationIds;3064 if (!SP.ScriptUtility.isUndefined($v_0)) {3065 this.get_objectData().get_properties()['ImportantLocationIds'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));3066 delete parentNode.ImportantLocationIds;3067 }3068 $v_0 = parentNode.ImportantTasksLimit;3069 if (!SP.ScriptUtility.isUndefined($v_0)) {3070 this.get_objectData().get_properties()['ImportantTasksLimit'] = ($v_0);3071 delete parentNode.ImportantTasksLimit;3072 }3073 $v_0 = parentNode.InactiveMonthsBeforeLocationExpiration;3074 if (!SP.ScriptUtility.isUndefined($v_0)) {3075 this.get_objectData().get_properties()['InactiveMonthsBeforeLocationExpiration'] = ($v_0);3076 delete parentNode.InactiveMonthsBeforeLocationExpiration;3077 }3078 $v_0 = parentNode.LateTasksLimit;3079 if (!SP.ScriptUtility.isUndefined($v_0)) {3080 this.get_objectData().get_properties()['LateTasksLimit'] = ($v_0);3081 delete parentNode.LateTasksLimit;3082 }3083 $v_0 = parentNode.OldTasksLimit;3084 if (!SP.ScriptUtility.isUndefined($v_0)) {3085 this.get_objectData().get_properties()['OldTasksLimit'] = ($v_0);3086 delete parentNode.OldTasksLimit;3087 }3088 $v_0 = parentNode.UpcomingTasksLimit;3089 if (!SP.ScriptUtility.isUndefined($v_0)) {3090 this.get_objectData().get_properties()['UpcomingTasksLimit'] = ($v_0);3091 delete parentNode.UpcomingTasksLimit;3092 }3093 }3094}3095SP.WorkManagement.OM.UserSettingsPropertyNames = function SP_WorkManagement_OM_UserSettingsPropertyNames() {3096}3097SP.WorkManagement.OM.UserSettingsManager = function SP_WorkManagement_OM_UserSettingsManager(context) {ULS0Qc:;3098 SP.WorkManagement.OM.UserSettingsManager.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{73b6f1d6-c69c-4787-8413-2bb14d336410}', arguments) ]);3099}3100SP.WorkManagement.OM.UserSettingsManager.newObject = function SP_WorkManagement_OM_UserSettingsManager$newObject(context) {ULS0Qc:;3101 return new SP.WorkManagement.OM.UserSettingsManager(context, new SP.ObjectPathConstructor(context, '{73b6f1d6-c69c-4787-8413-2bb14d336410}', null));3102}3103SP.WorkManagement.OM.UserSettingsManager.prototype = {3104 3105 getImportantLocations: function SP_WorkManagement_OM_UserSettingsManager$getImportantLocations() {ULS0Qc:;3106 var $v_0 = this.get_context();3107 var $v_1;3108 $v_1 = new SP.WorkManagement.OM.LocationClientCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetImportantLocations', null));3109 return $v_1;3110 },3111 3112 getAllLocations: function SP_WorkManagement_OM_UserSettingsManager$getAllLocations() {ULS0Qc:;3113 var $v_0 = this.get_context();3114 var $v_1;3115 $v_1 = new SP.WorkManagement.OM.LocationClientCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetAllLocations', null));3116 return $v_1;3117 },3118 3119 getLocations: function SP_WorkManagement_OM_UserSettingsManager$getLocations(locationsId) {ULS0Qc:;3120 var $v_0 = this.get_context();3121 var $v_1;3122 $v_1 = new SP.WorkManagement.OM.LocationClientCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetLocations', [ locationsId ]));3123 return $v_1;3124 },3125 3126 isExchangeJobPending: function SP_WorkManagement_OM_UserSettingsManager$isExchangeJobPending() {ULS0Qc:;3127 var $v_0 = this.get_context();3128 var $v_1;3129 var $v_2 = new SP.ClientActionInvokeMethod(this, 'IsExchangeJobPending', null);3130 $v_0.addQuery($v_2);3131 $v_1 = new SP.BooleanResult();3132 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);3133 return $v_1;3134 },3135 3136 optIntoExchangeSync: function SP_WorkManagement_OM_UserSettingsManager$optIntoExchangeSync() {ULS0Qc:;3137 var $v_0 = this.get_context();3138 var $v_1;3139 var $v_2 = new SP.ClientActionInvokeMethod(this, 'OptIntoExchangeSync', null);3140 $v_0.addQuery($v_2);3141 $v_1 = new SP.IntResult();3142 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);3143 return $v_1;3144 },3145 3146 optOutOfExchangeSync: function SP_WorkManagement_OM_UserSettingsManager$optOutOfExchangeSync() {ULS0Qc:;3147 var $v_0 = this.get_context();3148 var $v_1;3149 var $v_2 = new SP.ClientActionInvokeMethod(this, 'OptOutOfExchangeSync', null);3150 $v_0.addQuery($v_2);3151 $v_1 = new SP.BooleanResult();3152 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);3153 return $v_1;3154 },3155 3156 getExchangeSyncInfo: function SP_WorkManagement_OM_UserSettingsManager$getExchangeSyncInfo() {ULS0Qc:;3157 var $v_0 = this.get_context();3158 var $v_1;3159 $v_1 = new SP.WorkManagement.OM.ExchangeUserSyncState($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetExchangeSyncInfo', null));3160 return $v_1;3161 },3162 3163 getUserSettings: function SP_WorkManagement_OM_UserSettingsManager$getUserSettings() {ULS0Qc:;3164 var $v_0 = this.get_context();3165 var $v_1;3166 $v_1 = new SP.WorkManagement.OM.UserSettings($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetUserSettings', null));3167 return $v_1;3168 },3169 3170 setUserSettings: function SP_WorkManagement_OM_UserSettingsManager$setUserSettings(settings, locationColorUpdates) {ULS0Qc:;3171 var $v_0 = this.get_context();3172 var $v_1 = new SP.ClientActionInvokeMethod(this, 'SetUserSettings', [ settings, locationColorUpdates ]);3173 $v_0.addQuery($v_1);3174 },3175 3176 getPersistedProperties: function SP_WorkManagement_OM_UserSettingsManager$getPersistedProperties() {ULS0Qc:;3177 var $v_0 = this.get_context();3178 var $v_1;3179 $v_1 = new SP.WorkManagement.OM.PersistedProperties($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetPersistedProperties', null));3180 return $v_1;3181 },3182 3183 setPersistedProperties: function SP_WorkManagement_OM_UserSettingsManager$setPersistedProperties(persistedProperties) {ULS0Qc:;3184 var $v_0 = this.get_context();3185 var $v_1 = new SP.ClientActionInvokeMethod(this, 'SetPersistedProperties', [ persistedProperties ]);3186 $v_0.addQuery($v_1);3187 }3188}3189SP.WorkManagement.OM.ViewSelectionInfo = function SP_WorkManagement_OM_ViewSelectionInfo(context) {ULS0Qc:;3190 SP.WorkManagement.OM.ViewSelectionInfo.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{9c4b64c1-8722-45c0-9d9d-e61c2f36bb44}', arguments) ]);3191}3192SP.WorkManagement.OM.ViewSelectionInfo.newObject = function SP_WorkManagement_OM_ViewSelectionInfo$newObject(context) {ULS0Qc:;3193 return new SP.WorkManagement.OM.ViewSelectionInfo(context, new SP.ObjectPathConstructor(context, '{9c4b64c1-8722-45c0-9d9d-e61c2f36bb44}', null));3194}3195SP.WorkManagement.OM.ViewSelectionInfo.prototype = {3196 3197 get_id: function SP_WorkManagement_OM_ViewSelectionInfo$get_id() {ULS0Qc:;3198 this.checkUninitializedProperty('Id');3199 return ((this.get_objectData().get_properties()['Id']));3200 },3201 set_id: function SP_WorkManagement_OM_ViewSelectionInfo$set_id(value) {ULS0Qc:;3202 this.get_objectData().get_properties()['Id'] = value;3203 if ((this.get_context())) {3204 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Id', value));3205 }3206 return value;3207 },3208 3209 get_image: function SP_WorkManagement_OM_ViewSelectionInfo$get_image() {ULS0Qc:;3210 this.checkUninitializedProperty('Image');3211 return ((this.get_objectData().get_properties()['Image']));3212 },3213 set_image: function SP_WorkManagement_OM_ViewSelectionInfo$set_image(value) {ULS0Qc:;3214 this.get_objectData().get_properties()['Image'] = value;3215 if ((this.get_context())) {3216 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Image', value));3217 }3218 return value;3219 },3220 3221 get_name: function SP_WorkManagement_OM_ViewSelectionInfo$get_name() {ULS0Qc:;3222 this.checkUninitializedProperty('Name');3223 return ((this.get_objectData().get_properties()['Name']));3224 },3225 set_name: function SP_WorkManagement_OM_ViewSelectionInfo$set_name(value) {ULS0Qc:;3226 this.get_objectData().get_properties()['Name'] = value;3227 if ((this.get_context())) {3228 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Name', value));3229 }3230 return value;3231 },3232 3233 initPropertiesFromJson: function SP_WorkManagement_OM_ViewSelectionInfo$initPropertiesFromJson(parentNode) {ULS0Qc:;3234 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);3235 var $v_0;3236 $v_0 = parentNode.Id;3237 if (!SP.ScriptUtility.isUndefined($v_0)) {3238 this.get_objectData().get_properties()['Id'] = ($v_0);3239 delete parentNode.Id;3240 }3241 $v_0 = parentNode.Image;3242 if (!SP.ScriptUtility.isUndefined($v_0)) {...

Full Screen

Full Screen

SP.WorkflowServices.debug.js

Source:SP.WorkflowServices.debug.js Github

copy

Full Screen

...27}28SP.WorkflowServices.InteropService.prototype = {29 30 enableEvents: function SP_WorkflowServices_InteropService$enableEvents(listId, itemGuid) {ULS8GF:;31 var $v_0 = this.get_context();32 var $v_1 = new SP.ClientActionInvokeMethod(this, 'EnableEvents', [ listId, itemGuid ]);33 $v_0.addQuery($v_1);34 },35 36 disableEvents: function SP_WorkflowServices_InteropService$disableEvents(listId, itemGuid) {ULS8GF:;37 var $v_0 = this.get_context();38 var $v_1 = new SP.ClientActionInvokeMethod(this, 'DisableEvents', [ listId, itemGuid ]);39 $v_0.addQuery($v_1);40 },41 42 startWorkflow: function SP_WorkflowServices_InteropService$startWorkflow(associationName, correlationId, listId, itemGuid, workflowParameters) {ULS8GF:;43 var $v_0 = this.get_context();44 var $v_1;45 var $v_2 = new SP.ClientActionInvokeMethod(this, 'StartWorkflow', [ associationName, correlationId, listId, itemGuid, workflowParameters ]);46 $v_0.addQuery($v_2);47 $v_1 = new SP.GuidResult();48 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);49 return $v_1;50 },51 52 cancelWorkflow: function SP_WorkflowServices_InteropService$cancelWorkflow(instanceId) {ULS8GF:;53 var $v_0 = this.get_context();54 var $v_1 = new SP.ClientActionInvokeMethod(this, 'CancelWorkflow', [ instanceId ]);55 $v_0.addQuery($v_1);56 }57}58SP.WorkflowServices.WorkflowDefinition = function SP_WorkflowServices_WorkflowDefinition(context) {ULS8GF:;59 SP.WorkflowServices.WorkflowDefinition.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{60320d36-4b4d-4bac-a092-8f8b5610edcd}', arguments) ]);60}61SP.WorkflowServices.WorkflowDefinition.newObject = function SP_WorkflowServices_WorkflowDefinition$newObject(context) {ULS8GF:;62 return new SP.WorkflowServices.WorkflowDefinition(context, new SP.ObjectPathConstructor(context, '{60320d36-4b4d-4bac-a092-8f8b5610edcd}', null));63}64SP.WorkflowServices.WorkflowDefinition.prototype = {65 66 get_associationUrl: function SP_WorkflowServices_WorkflowDefinition$get_associationUrl() {ULS8GF:;67 this.checkUninitializedProperty('AssociationUrl');68 return ((this.get_objectData().get_properties()['AssociationUrl']));69 },70 set_associationUrl: function SP_WorkflowServices_WorkflowDefinition$set_associationUrl(value) {ULS8GF:;71 this.get_objectData().get_properties()['AssociationUrl'] = value;72 if ((this.get_context())) {73 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'AssociationUrl', value));74 }75 return value;76 },77 78 get_description: function SP_WorkflowServices_WorkflowDefinition$get_description() {ULS8GF:;79 this.checkUninitializedProperty('Description');80 return ((this.get_objectData().get_properties()['Description']));81 },82 set_description: function SP_WorkflowServices_WorkflowDefinition$set_description(value) {ULS8GF:;83 this.get_objectData().get_properties()['Description'] = value;84 if ((this.get_context())) {85 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Description', value));86 }87 return value;88 },89 90 get_displayName: function SP_WorkflowServices_WorkflowDefinition$get_displayName() {ULS8GF:;91 this.checkUninitializedProperty('DisplayName');92 return ((this.get_objectData().get_properties()['DisplayName']));93 },94 set_displayName: function SP_WorkflowServices_WorkflowDefinition$set_displayName(value) {ULS8GF:;95 this.get_objectData().get_properties()['DisplayName'] = value;96 if ((this.get_context())) {97 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'DisplayName', value));98 }99 return value;100 },101 102 get_draftVersion: function SP_WorkflowServices_WorkflowDefinition$get_draftVersion() {ULS8GF:;103 this.checkUninitializedProperty('DraftVersion');104 return ((this.get_objectData().get_properties()['DraftVersion']));105 },106 set_draftVersion: function SP_WorkflowServices_WorkflowDefinition$set_draftVersion(value) {ULS8GF:;107 this.get_objectData().get_properties()['DraftVersion'] = value;108 if ((this.get_context())) {109 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'DraftVersion', value));110 }111 return value;112 },113 114 get_formField: function SP_WorkflowServices_WorkflowDefinition$get_formField() {ULS8GF:;115 this.checkUninitializedProperty('FormField');116 return ((this.get_objectData().get_properties()['FormField']));117 },118 set_formField: function SP_WorkflowServices_WorkflowDefinition$set_formField(value) {ULS8GF:;119 this.get_objectData().get_properties()['FormField'] = value;120 if ((this.get_context())) {121 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'FormField', value));122 }123 return value;124 },125 126 get_id: function SP_WorkflowServices_WorkflowDefinition$get_id() {ULS8GF:;127 this.checkUninitializedProperty('Id');128 return ((this.get_objectData().get_properties()['Id']));129 },130 set_id: function SP_WorkflowServices_WorkflowDefinition$set_id(value) {ULS8GF:;131 this.get_objectData().get_properties()['Id'] = value;132 if ((this.get_context())) {133 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Id', value));134 }135 return value;136 },137 138 get_initiationUrl: function SP_WorkflowServices_WorkflowDefinition$get_initiationUrl() {ULS8GF:;139 this.checkUninitializedProperty('InitiationUrl');140 return ((this.get_objectData().get_properties()['InitiationUrl']));141 },142 set_initiationUrl: function SP_WorkflowServices_WorkflowDefinition$set_initiationUrl(value) {ULS8GF:;143 this.get_objectData().get_properties()['InitiationUrl'] = value;144 if ((this.get_context())) {145 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'InitiationUrl', value));146 }147 return value;148 },149 150 get_properties: function SP_WorkflowServices_WorkflowDefinition$get_properties() {ULS8GF:;151 this.checkUninitializedProperty('Properties');152 return ((this.get_objectData().get_properties()['Properties']));153 },154 155 get_published: function SP_WorkflowServices_WorkflowDefinition$get_published() {ULS8GF:;156 this.checkUninitializedProperty('Published');157 return ((this.get_objectData().get_properties()['Published']));158 },159 160 get_requiresAssociationForm: function SP_WorkflowServices_WorkflowDefinition$get_requiresAssociationForm() {ULS8GF:;161 this.checkUninitializedProperty('RequiresAssociationForm');162 return ((this.get_objectData().get_properties()['RequiresAssociationForm']));163 },164 set_requiresAssociationForm: function SP_WorkflowServices_WorkflowDefinition$set_requiresAssociationForm(value) {ULS8GF:;165 this.get_objectData().get_properties()['RequiresAssociationForm'] = value;166 if ((this.get_context())) {167 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RequiresAssociationForm', value));168 }169 return value;170 },171 172 get_requiresInitiationForm: function SP_WorkflowServices_WorkflowDefinition$get_requiresInitiationForm() {ULS8GF:;173 this.checkUninitializedProperty('RequiresInitiationForm');174 return ((this.get_objectData().get_properties()['RequiresInitiationForm']));175 },176 set_requiresInitiationForm: function SP_WorkflowServices_WorkflowDefinition$set_requiresInitiationForm(value) {ULS8GF:;177 this.get_objectData().get_properties()['RequiresInitiationForm'] = value;178 if ((this.get_context())) {179 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RequiresInitiationForm', value));180 }181 return value;182 },183 184 get_restrictToScope: function SP_WorkflowServices_WorkflowDefinition$get_restrictToScope() {ULS8GF:;185 this.checkUninitializedProperty('RestrictToScope');186 return ((this.get_objectData().get_properties()['RestrictToScope']));187 },188 set_restrictToScope: function SP_WorkflowServices_WorkflowDefinition$set_restrictToScope(value) {ULS8GF:;189 this.get_objectData().get_properties()['RestrictToScope'] = value;190 if ((this.get_context())) {191 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RestrictToScope', value));192 }193 return value;194 },195 196 get_restrictToType: function SP_WorkflowServices_WorkflowDefinition$get_restrictToType() {ULS8GF:;197 this.checkUninitializedProperty('RestrictToType');198 return ((this.get_objectData().get_properties()['RestrictToType']));199 },200 set_restrictToType: function SP_WorkflowServices_WorkflowDefinition$set_restrictToType(value) {ULS8GF:;201 this.get_objectData().get_properties()['RestrictToType'] = value;202 if ((this.get_context())) {203 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'RestrictToType', value));204 }205 return value;206 },207 208 get_xaml: function SP_WorkflowServices_WorkflowDefinition$get_xaml() {ULS8GF:;209 this.checkUninitializedProperty('Xaml');210 return ((this.get_objectData().get_properties()['Xaml']));211 },212 set_xaml: function SP_WorkflowServices_WorkflowDefinition$set_xaml(value) {ULS8GF:;213 this.get_objectData().get_properties()['Xaml'] = value;214 if ((this.get_context())) {215 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Xaml', value));216 }217 return value;218 },219 220 initPropertiesFromJson: function SP_WorkflowServices_WorkflowDefinition$initPropertiesFromJson(parentNode) {ULS8GF:;221 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);222 var $v_0;223 $v_0 = parentNode.AssociationUrl;224 if (!SP.ScriptUtility.isUndefined($v_0)) {225 this.get_objectData().get_properties()['AssociationUrl'] = ($v_0);226 delete parentNode.AssociationUrl;227 }228 $v_0 = parentNode.Description;229 if (!SP.ScriptUtility.isUndefined($v_0)) {230 this.get_objectData().get_properties()['Description'] = ($v_0);231 delete parentNode.Description;232 }233 $v_0 = parentNode.DisplayName;234 if (!SP.ScriptUtility.isUndefined($v_0)) {235 this.get_objectData().get_properties()['DisplayName'] = ($v_0);236 delete parentNode.DisplayName;237 }238 $v_0 = parentNode.DraftVersion;239 if (!SP.ScriptUtility.isUndefined($v_0)) {240 this.get_objectData().get_properties()['DraftVersion'] = ($v_0);241 delete parentNode.DraftVersion;242 }243 $v_0 = parentNode.FormField;244 if (!SP.ScriptUtility.isUndefined($v_0)) {245 this.get_objectData().get_properties()['FormField'] = ($v_0);246 delete parentNode.FormField;247 }248 $v_0 = parentNode.Id;249 if (!SP.ScriptUtility.isUndefined($v_0)) {250 this.get_objectData().get_properties()['Id'] = ($v_0);251 delete parentNode.Id;252 }253 $v_0 = parentNode.InitiationUrl;254 if (!SP.ScriptUtility.isUndefined($v_0)) {255 this.get_objectData().get_properties()['InitiationUrl'] = ($v_0);256 delete parentNode.InitiationUrl;257 }258 $v_0 = parentNode.Properties;259 if (!SP.ScriptUtility.isUndefined($v_0)) {260 this.get_objectData().get_properties()['Properties'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));261 delete parentNode.Properties;262 }263 $v_0 = parentNode.Published;264 if (!SP.ScriptUtility.isUndefined($v_0)) {265 this.get_objectData().get_properties()['Published'] = ($v_0);266 delete parentNode.Published;267 }268 $v_0 = parentNode.RequiresAssociationForm;269 if (!SP.ScriptUtility.isUndefined($v_0)) {270 this.get_objectData().get_properties()['RequiresAssociationForm'] = ($v_0);271 delete parentNode.RequiresAssociationForm;272 }273 $v_0 = parentNode.RequiresInitiationForm;274 if (!SP.ScriptUtility.isUndefined($v_0)) {275 this.get_objectData().get_properties()['RequiresInitiationForm'] = ($v_0);276 delete parentNode.RequiresInitiationForm;277 }278 $v_0 = parentNode.RestrictToScope;279 if (!SP.ScriptUtility.isUndefined($v_0)) {280 this.get_objectData().get_properties()['RestrictToScope'] = ($v_0);281 delete parentNode.RestrictToScope;282 }283 $v_0 = parentNode.RestrictToType;284 if (!SP.ScriptUtility.isUndefined($v_0)) {285 this.get_objectData().get_properties()['RestrictToType'] = ($v_0);286 delete parentNode.RestrictToType;287 }288 $v_0 = parentNode.Xaml;289 if (!SP.ScriptUtility.isUndefined($v_0)) {290 this.get_objectData().get_properties()['Xaml'] = ($v_0);291 delete parentNode.Xaml;292 }293 },294 295 setProperty: function SP_WorkflowServices_WorkflowDefinition$setProperty(propertyName, value) {ULS8GF:;296 var $v_0 = this.get_context();297 var $v_1 = new SP.ClientActionInvokeMethod(this, 'SetProperty', [ propertyName, value ]);298 $v_0.addQuery($v_1);299 }300}301SP.WorkflowServices.WorkflowDefinitionPropertyNames = function SP_WorkflowServices_WorkflowDefinitionPropertyNames() {302}303SP.WorkflowServices.WorkflowDefinitionCollection = function SP_WorkflowServices_WorkflowDefinitionCollection(context, objectPath) {ULS8GF:;304 SP.WorkflowServices.WorkflowDefinitionCollection.initializeBase(this, [ context, objectPath ]);305}306SP.WorkflowServices.WorkflowDefinitionCollection.prototype = {307 308 itemAt: function SP_WorkflowServices_WorkflowDefinitionCollection$itemAt(index) {ULS8GF:;309 return this.getItemAtIndex(index);310 },311 312 get_item: function SP_WorkflowServices_WorkflowDefinitionCollection$get_item(index) {ULS8GF:;313 return this.getItemAtIndex(index);314 },315 316 get_childItemType: function SP_WorkflowServices_WorkflowDefinitionCollection$get_childItemType() {ULS8GF:;317 return SP.WorkflowServices.WorkflowDefinition;318 }319}320SP.WorkflowServices.WorkflowDeploymentService = function SP_WorkflowServices_WorkflowDeploymentService(context, objectPath) {ULS8GF:;321 SP.WorkflowServices.WorkflowDeploymentService.initializeBase(this, [ context, objectPath ]);322}323SP.WorkflowServices.WorkflowDeploymentService.prototype = {324 325 getDesignerActions: function SP_WorkflowServices_WorkflowDeploymentService$getDesignerActions(web) {ULS8GF:;326 var $v_0 = this.get_context();327 var $v_1;328 var $v_2 = new SP.ClientActionInvokeMethod(this, 'GetDesignerActions', [ web ]);329 $v_0.addQuery($v_2);330 $v_1 = new SP.StringResult();331 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);332 return $v_1;333 },334 335 getActivitySignatures: function SP_WorkflowServices_WorkflowDeploymentService$getActivitySignatures(lastChanged) {ULS8GF:;336 var $v_0 = this.get_context();337 var $v_1;338 var $v_2 = new SP.ClientActionInvokeMethod(this, 'GetActivitySignatures', [ lastChanged ]);339 $v_0.addQuery($v_2);340 $v_1 = new SP.ClientResult();341 $v_0.addQueryIdAndResultObject($v_2.get_id(), new SP.ClientDictionaryResultHandler($v_1));342 return $v_1;343 },344 345 saveDefinition: function SP_WorkflowServices_WorkflowDeploymentService$saveDefinition(definition) {ULS8GF:;346 var $v_0 = this.get_context();347 var $v_1;348 var $v_2 = new SP.ClientActionInvokeMethod(this, 'SaveDefinition', [ definition ]);349 $v_0.addQuery($v_2);350 $v_1 = new SP.GuidResult();351 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);352 return $v_1;353 },354 355 validateActivity: function SP_WorkflowServices_WorkflowDeploymentService$validateActivity(activityXaml) {ULS8GF:;356 var $v_0 = this.get_context();357 var $v_1;358 var $v_2 = new SP.ClientActionInvokeMethod(this, 'ValidateActivity', [ activityXaml ]);359 $v_0.addQuery($v_2);360 $v_1 = new SP.StringResult();361 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);362 return $v_1;363 },364 365 publishDefinition: function SP_WorkflowServices_WorkflowDeploymentService$publishDefinition(definitionId) {ULS8GF:;366 var $v_0 = this.get_context();367 var $v_1 = new SP.ClientActionInvokeMethod(this, 'PublishDefinition', [ definitionId ]);368 $v_0.addQuery($v_1);369 },370 371 deprecateDefinition: function SP_WorkflowServices_WorkflowDeploymentService$deprecateDefinition(definitionId) {ULS8GF:;372 var $v_0 = this.get_context();373 var $v_1 = new SP.ClientActionInvokeMethod(this, 'DeprecateDefinition', [ definitionId ]);374 $v_0.addQuery($v_1);375 },376 377 deleteDefinition: function SP_WorkflowServices_WorkflowDeploymentService$deleteDefinition(definitionId) {ULS8GF:;378 var $v_0 = this.get_context();379 var $v_1 = new SP.ClientActionInvokeMethod(this, 'DeleteDefinition', [ definitionId ]);380 $v_0.addQuery($v_1);381 },382 383 enumerateDefinitions: function SP_WorkflowServices_WorkflowDeploymentService$enumerateDefinitions(publishedOnly) {ULS8GF:;384 var $v_0 = this.get_context();385 var $v_1;386 $v_1 = new SP.WorkflowServices.WorkflowDefinitionCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'EnumerateDefinitions', [ publishedOnly ]));387 return $v_1;388 },389 390 getDefinition: function SP_WorkflowServices_WorkflowDeploymentService$getDefinition(definitionId) {ULS8GF:;391 var $v_0 = this.get_context();392 var $v_1;393 $v_1 = new SP.WorkflowServices.WorkflowDefinition($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetDefinition', [ definitionId ]));394 return $v_1;395 },396 397 saveCollateral: function SP_WorkflowServices_WorkflowDeploymentService$saveCollateral(workflowDefinitionId, leafFileName, fileContent) {ULS8GF:;398 var $v_0 = this.get_context();399 var $v_1 = new SP.ClientActionInvokeMethod(this, 'SaveCollateral', [ workflowDefinitionId, leafFileName, fileContent ]);400 $v_0.addQuery($v_1);401 },402 403 deleteCollateral: function SP_WorkflowServices_WorkflowDeploymentService$deleteCollateral(workflowDefinitionId, leafFileName) {ULS8GF:;404 var $v_0 = this.get_context();405 var $v_1 = new SP.ClientActionInvokeMethod(this, 'DeleteCollateral', [ workflowDefinitionId, leafFileName ]);406 $v_0.addQuery($v_1);407 },408 409 getCollateralUri: function SP_WorkflowServices_WorkflowDeploymentService$getCollateralUri(workflowDefinitionId, leafFileName) {ULS8GF:;410 var $v_0 = this.get_context();411 var $v_1;412 var $v_2 = new SP.ClientActionInvokeMethod(this, 'GetCollateralUri', [ workflowDefinitionId, leafFileName ]);413 $v_0.addQuery($v_2);414 $v_1 = new SP.StringResult();415 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);416 return $v_1;417 },418 419 packageDefinition: function SP_WorkflowServices_WorkflowDeploymentService$packageDefinition(definitionId, packageDefaultFilename, packageTitle, packageDescription) {ULS8GF:;420 var $v_0 = this.get_context();421 var $v_1;422 var $v_2 = new SP.ClientActionInvokeMethod(this, 'PackageDefinition', [ definitionId, packageDefaultFilename, packageTitle, packageDescription ]);423 $v_0.addQuery($v_2);424 $v_1 = new SP.StringResult();425 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);426 return $v_1;427 }428}429SP.WorkflowServices.WorkflowInstance = function SP_WorkflowServices_WorkflowInstance(context, objectPath) {ULS8GF:;430 SP.WorkflowServices.WorkflowInstance.initializeBase(this, [ context, objectPath ]);431}432SP.WorkflowServices.WorkflowInstance.prototype = {433 434 get_faultInfo: function SP_WorkflowServices_WorkflowInstance$get_faultInfo() {ULS8GF:;435 this.checkUninitializedProperty('FaultInfo');436 return ((this.get_objectData().get_properties()['FaultInfo']));437 },438 439 get_id: function SP_WorkflowServices_WorkflowInstance$get_id() {ULS8GF:;440 this.checkUninitializedProperty('Id');441 return ((this.get_objectData().get_properties()['Id']));442 },443 444 get_instanceCreated: function SP_WorkflowServices_WorkflowInstance$get_instanceCreated() {ULS8GF:;445 this.checkUninitializedProperty('InstanceCreated');446 return ((this.get_objectData().get_properties()['InstanceCreated']));447 },448 449 get_lastUpdated: function SP_WorkflowServices_WorkflowInstance$get_lastUpdated() {ULS8GF:;450 this.checkUninitializedProperty('LastUpdated');451 return ((this.get_objectData().get_properties()['LastUpdated']));452 },453 454 get_properties: function SP_WorkflowServices_WorkflowInstance$get_properties() {ULS8GF:;455 this.checkUninitializedProperty('Properties');456 return ((this.get_objectData().get_properties()['Properties']));457 },458 459 get_status: function SP_WorkflowServices_WorkflowInstance$get_status() {ULS8GF:;460 this.checkUninitializedProperty('Status');461 return ((this.get_objectData().get_properties()['Status']));462 },463 464 get_userStatus: function SP_WorkflowServices_WorkflowInstance$get_userStatus() {ULS8GF:;465 this.checkUninitializedProperty('UserStatus');466 return ((this.get_objectData().get_properties()['UserStatus']));467 },468 set_userStatus: function SP_WorkflowServices_WorkflowInstance$set_userStatus(value) {ULS8GF:;469 this.get_objectData().get_properties()['UserStatus'] = value;470 if ((this.get_context())) {471 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'UserStatus', value));472 }473 return value;474 },475 476 get_workflowSubscriptionId: function SP_WorkflowServices_WorkflowInstance$get_workflowSubscriptionId() {ULS8GF:;477 this.checkUninitializedProperty('WorkflowSubscriptionId');478 return ((this.get_objectData().get_properties()['WorkflowSubscriptionId']));479 },480 481 initPropertiesFromJson: function SP_WorkflowServices_WorkflowInstance$initPropertiesFromJson(parentNode) {ULS8GF:;482 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);483 var $v_0;484 $v_0 = parentNode.FaultInfo;485 if (!SP.ScriptUtility.isUndefined($v_0)) {486 this.get_objectData().get_properties()['FaultInfo'] = ($v_0);487 delete parentNode.FaultInfo;488 }489 $v_0 = parentNode.Id;490 if (!SP.ScriptUtility.isUndefined($v_0)) {491 this.get_objectData().get_properties()['Id'] = ($v_0);492 delete parentNode.Id;493 }494 $v_0 = parentNode.InstanceCreated;495 if (!SP.ScriptUtility.isUndefined($v_0)) {496 this.get_objectData().get_properties()['InstanceCreated'] = ($v_0);497 delete parentNode.InstanceCreated;498 }499 $v_0 = parentNode.LastUpdated;500 if (!SP.ScriptUtility.isUndefined($v_0)) {501 this.get_objectData().get_properties()['LastUpdated'] = ($v_0);502 delete parentNode.LastUpdated;503 }504 $v_0 = parentNode.Properties;505 if (!SP.ScriptUtility.isUndefined($v_0)) {506 this.get_objectData().get_properties()['Properties'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));507 delete parentNode.Properties;508 }509 $v_0 = parentNode.Status;510 if (!SP.ScriptUtility.isUndefined($v_0)) {511 this.get_objectData().get_properties()['Status'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));512 delete parentNode.Status;513 }514 $v_0 = parentNode.UserStatus;515 if (!SP.ScriptUtility.isUndefined($v_0)) {516 this.get_objectData().get_properties()['UserStatus'] = ($v_0);517 delete parentNode.UserStatus;518 }519 $v_0 = parentNode.WorkflowSubscriptionId;520 if (!SP.ScriptUtility.isUndefined($v_0)) {521 this.get_objectData().get_properties()['WorkflowSubscriptionId'] = ($v_0);522 delete parentNode.WorkflowSubscriptionId;523 }524 }525}526SP.WorkflowServices.WorkflowInstancePropertyNames = function SP_WorkflowServices_WorkflowInstancePropertyNames() {527}528SP.WorkflowServices.WorkflowInstanceCollection = function SP_WorkflowServices_WorkflowInstanceCollection(context, objectPath) {ULS8GF:;529 SP.WorkflowServices.WorkflowInstanceCollection.initializeBase(this, [ context, objectPath ]);530}531SP.WorkflowServices.WorkflowInstanceCollection.prototype = {532 533 itemAt: function SP_WorkflowServices_WorkflowInstanceCollection$itemAt(index) {ULS8GF:;534 return this.getItemAtIndex(index);535 },536 537 get_item: function SP_WorkflowServices_WorkflowInstanceCollection$get_item(index) {ULS8GF:;538 return this.getItemAtIndex(index);539 },540 541 get_childItemType: function SP_WorkflowServices_WorkflowInstanceCollection$get_childItemType() {ULS8GF:;542 return SP.WorkflowServices.WorkflowInstance;543 }544}545SP.WorkflowServices.WorkflowInstanceService = function SP_WorkflowServices_WorkflowInstanceService(context, objectPath) {ULS8GF:;546 SP.WorkflowServices.WorkflowInstanceService.initializeBase(this, [ context, objectPath ]);547}548SP.WorkflowServices.WorkflowInstanceService.getCurrent = function SP_WorkflowServices_WorkflowInstanceService$getCurrent(Context) {ULS8GF:;549 var $v_0 = Context.get_staticObjects()['Microsoft$SharePoint$WorkflowServices$WorkflowInstanceService$Current'];550 if ((!$v_0)) {551 $v_0 = new SP.WorkflowServices.WorkflowInstanceService(Context, new SP.ObjectPathStaticProperty(Context, '{71252277-2470-4022-bcaf-c4657aa118c3}', 'Current'));552 Context.get_staticObjects()['Microsoft$SharePoint$WorkflowServices$WorkflowInstanceService$Current'] = $v_0;553 }554 return ($v_0);555}556SP.WorkflowServices.WorkflowInstanceService.prototype = {557 558 startWorkflow: function SP_WorkflowServices_WorkflowInstanceService$startWorkflow(subscription, payload) {ULS8GF:;559 var $v_0 = this.get_context();560 var $v_1;561 var $v_2 = new SP.ClientActionInvokeMethod(this, 'StartWorkflow', [ subscription, payload ]);562 $v_0.addQuery($v_2);563 $v_1 = new SP.GuidResult();564 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);565 return $v_1;566 },567 568 startWorkflowOnListItem: function SP_WorkflowServices_WorkflowInstanceService$startWorkflowOnListItem(subscription, itemId, payload) {ULS8GF:;569 var $v_0 = this.get_context();570 var $v_1;571 var $v_2 = new SP.ClientActionInvokeMethod(this, 'StartWorkflowOnListItem', [ subscription, itemId, payload ]);572 $v_0.addQuery($v_2);573 $v_1 = new SP.GuidResult();574 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);575 return $v_1;576 },577 578 getInstance: function SP_WorkflowServices_WorkflowInstanceService$getInstance(instanceId) {ULS8GF:;579 var $v_0 = this.get_context();580 var $v_1;581 $v_1 = new SP.WorkflowServices.WorkflowInstance($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetInstance', [ instanceId ]));582 return $v_1;583 },584 585 enumerate: function SP_WorkflowServices_WorkflowInstanceService$enumerate(parentSubscription) {ULS8GF:;586 var $v_0 = this.get_context();587 var $v_1;588 $v_1 = new SP.WorkflowServices.WorkflowInstanceCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'Enumerate', [ parentSubscription ]));589 return $v_1;590 },591 592 enumerateWithOffset: function SP_WorkflowServices_WorkflowInstanceService$enumerateWithOffset(parentSubscription, offset) {ULS8GF:;593 var $v_0 = this.get_context();594 var $v_1;595 $v_1 = new SP.WorkflowServices.WorkflowInstanceCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'EnumerateWithOffset', [ parentSubscription, offset ]));596 return $v_1;597 },598 599 enumerateInstancesForListItem: function SP_WorkflowServices_WorkflowInstanceService$enumerateInstancesForListItem(listId, itemId) {ULS8GF:;600 var $v_0 = this.get_context();601 var $v_1;602 $v_1 = new SP.WorkflowServices.WorkflowInstanceCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'EnumerateInstancesForListItem', [ listId, itemId ]));603 return $v_1;604 },605 606 enumerateInstancesForListItemWithOffset: function SP_WorkflowServices_WorkflowInstanceService$enumerateInstancesForListItemWithOffset(listId, itemId, offset) {ULS8GF:;607 var $v_0 = this.get_context();608 var $v_1;609 $v_1 = new SP.WorkflowServices.WorkflowInstanceCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'EnumerateInstancesForListItemWithOffset', [ listId, itemId, offset ]));610 return $v_1;611 },612 613 enumerateInstancesForSite: function SP_WorkflowServices_WorkflowInstanceService$enumerateInstancesForSite() {ULS8GF:;614 var $v_0 = this.get_context();615 var $v_1;616 $v_1 = new SP.WorkflowServices.WorkflowInstanceCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'EnumerateInstancesForSite', null));617 return $v_1;618 },619 620 enumerateInstancesForSiteWithOffset: function SP_WorkflowServices_WorkflowInstanceService$enumerateInstancesForSiteWithOffset(offset) {ULS8GF:;621 var $v_0 = this.get_context();622 var $v_1;623 $v_1 = new SP.WorkflowServices.WorkflowInstanceCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'EnumerateInstancesForSiteWithOffset', [ offset ]));624 return $v_1;625 },626 627 countInstances: function SP_WorkflowServices_WorkflowInstanceService$countInstances(parentSubscription) {ULS8GF:;628 var $v_0 = this.get_context();629 var $v_1;630 var $v_2 = new SP.ClientActionInvokeMethod(this, 'CountInstances', [ parentSubscription ]);631 $v_0.addQuery($v_2);632 $v_1 = new SP.IntResult();633 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);634 return $v_1;635 },636 637 countInstancesWithStatus: function SP_WorkflowServices_WorkflowInstanceService$countInstancesWithStatus(parentSubscription, status) {ULS8GF:;638 var $v_0 = this.get_context();639 var $v_1;640 var $v_2 = new SP.ClientActionInvokeMethod(this, 'CountInstancesWithStatus', [ parentSubscription, status ]);641 $v_0.addQuery($v_2);642 $v_1 = new SP.IntResult();643 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);644 return $v_1;645 },646 647 cancelWorkflow: function SP_WorkflowServices_WorkflowInstanceService$cancelWorkflow(instance) {ULS8GF:;648 var $v_0 = this.get_context();649 var $v_1 = new SP.ClientActionInvokeMethod(this, 'CancelWorkflow', [ instance ]);650 $v_0.addQuery($v_1);651 },652 653 terminateWorkflow: function SP_WorkflowServices_WorkflowInstanceService$terminateWorkflow(instance) {ULS8GF:;654 var $v_0 = this.get_context();655 var $v_1 = new SP.ClientActionInvokeMethod(this, 'TerminateWorkflow', [ instance ]);656 $v_0.addQuery($v_1);657 },658 659 suspendWorkflow: function SP_WorkflowServices_WorkflowInstanceService$suspendWorkflow(instance) {ULS8GF:;660 var $v_0 = this.get_context();661 var $v_1 = new SP.ClientActionInvokeMethod(this, 'SuspendWorkflow', [ instance ]);662 $v_0.addQuery($v_1);663 },664 665 resumeWorkflow: function SP_WorkflowServices_WorkflowInstanceService$resumeWorkflow(instance) {ULS8GF:;666 var $v_0 = this.get_context();667 var $v_1 = new SP.ClientActionInvokeMethod(this, 'ResumeWorkflow', [ instance ]);668 $v_0.addQuery($v_1);669 },670 671 publishCustomEvent: function SP_WorkflowServices_WorkflowInstanceService$publishCustomEvent(instance, eventName, payload) {ULS8GF:;672 var $v_0 = this.get_context();673 var $v_1 = new SP.ClientActionInvokeMethod(this, 'PublishCustomEvent', [ instance, eventName, payload ]);674 $v_0.addQuery($v_1);675 },676 677 getDebugInfo: function SP_WorkflowServices_WorkflowInstanceService$getDebugInfo(instance) {ULS8GF:;678 var $v_0 = this.get_context();679 var $v_1;680 var $v_2 = new SP.ClientActionInvokeMethod(this, 'GetDebugInfo', [ instance ]);681 $v_0.addQuery($v_2);682 $v_1 = new SP.StringResult();683 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);684 return $v_1;685 }686}687SP.WorkflowServices.WorkflowServicesManager = function SP_WorkflowServices_WorkflowServicesManager(context, web) {ULS8GF:;688 SP.WorkflowServices.WorkflowServicesManager.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{4ccc7f0e-bf7e-4477-999c-6458a73d0039}', arguments) ]);689}690SP.WorkflowServices.WorkflowServicesManager.newObject = function SP_WorkflowServices_WorkflowServicesManager$newObject(context, web) {ULS8GF:;691 return new SP.WorkflowServices.WorkflowServicesManager(context, new SP.ObjectPathConstructor(context, '{4ccc7f0e-bf7e-4477-999c-6458a73d0039}', [ web ]));692}693SP.WorkflowServices.WorkflowServicesManager.prototype = {694 695 get_appId: function SP_WorkflowServices_WorkflowServicesManager$get_appId() {ULS8GF:;696 this.checkUninitializedProperty('AppId');697 return ((this.get_objectData().get_properties()['AppId']));698 },699 700 get_isConnected: function SP_WorkflowServices_WorkflowServicesManager$get_isConnected() {ULS8GF:;701 this.checkUninitializedProperty('IsConnected');702 return ((this.get_objectData().get_properties()['IsConnected']));703 },704 705 get_scopePath: function SP_WorkflowServices_WorkflowServicesManager$get_scopePath() {ULS8GF:;706 this.checkUninitializedProperty('ScopePath');707 return ((this.get_objectData().get_properties()['ScopePath']));708 },709 710 initPropertiesFromJson: function SP_WorkflowServices_WorkflowServicesManager$initPropertiesFromJson(parentNode) {ULS8GF:;711 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);712 var $v_0;713 $v_0 = parentNode.AppId;714 if (!SP.ScriptUtility.isUndefined($v_0)) {715 this.get_objectData().get_properties()['AppId'] = ($v_0);716 delete parentNode.AppId;717 }718 $v_0 = parentNode.IsConnected;719 if (!SP.ScriptUtility.isUndefined($v_0)) {720 this.get_objectData().get_properties()['IsConnected'] = ($v_0);721 delete parentNode.IsConnected;722 }723 $v_0 = parentNode.ScopePath;724 if (!SP.ScriptUtility.isUndefined($v_0)) {725 this.get_objectData().get_properties()['ScopePath'] = ($v_0);726 delete parentNode.ScopePath;727 }728 },729 730 getWorkflowDeploymentService: function SP_WorkflowServices_WorkflowServicesManager$getWorkflowDeploymentService() {ULS8GF:;731 var $v_0 = this.get_context();732 var $v_1;733 $v_1 = new SP.WorkflowServices.WorkflowDeploymentService($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetWorkflowDeploymentService', null));734 return $v_1;735 },736 737 getWorkflowInstanceService: function SP_WorkflowServices_WorkflowServicesManager$getWorkflowInstanceService() {ULS8GF:;738 var $v_0 = this.get_context();739 var $v_1;740 $v_1 = new SP.WorkflowServices.WorkflowInstanceService($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetWorkflowInstanceService', null));741 return $v_1;742 },743 744 getWorkflowInteropService: function SP_WorkflowServices_WorkflowServicesManager$getWorkflowInteropService() {ULS8GF:;745 var $v_0 = this.get_context();746 var $v_1;747 $v_1 = new SP.WorkflowServices.InteropService($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetWorkflowInteropService', null));748 return $v_1;749 },750 751 getWorkflowSubscriptionService: function SP_WorkflowServices_WorkflowServicesManager$getWorkflowSubscriptionService() {ULS8GF:;752 var $v_0 = this.get_context();753 var $v_1;754 $v_1 = new SP.WorkflowServices.WorkflowSubscriptionService($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetWorkflowSubscriptionService', null));755 return $v_1;756 }757}758SP.WorkflowServices.WorkflowServicesManagerPropertyNames = function SP_WorkflowServices_WorkflowServicesManagerPropertyNames() {759}760SP.WorkflowServices.WorkflowSubscription = function SP_WorkflowServices_WorkflowSubscription(context) {ULS8GF:;761 SP.WorkflowServices.WorkflowSubscription.initializeBase(this, [ context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{d185ede6-c3c3-4d37-9e8c-2382deb37708}', arguments) ]);762}763SP.WorkflowServices.WorkflowSubscription.newObject = function SP_WorkflowServices_WorkflowSubscription$newObject(context) {ULS8GF:;764 return new SP.WorkflowServices.WorkflowSubscription(context, new SP.ObjectPathConstructor(context, '{d185ede6-c3c3-4d37-9e8c-2382deb37708}', null));765}766SP.WorkflowServices.WorkflowSubscription.prototype = {767 768 get_definitionId: function SP_WorkflowServices_WorkflowSubscription$get_definitionId() {ULS8GF:;769 this.checkUninitializedProperty('DefinitionId');770 return ((this.get_objectData().get_properties()['DefinitionId']));771 },772 set_definitionId: function SP_WorkflowServices_WorkflowSubscription$set_definitionId(value) {ULS8GF:;773 this.get_objectData().get_properties()['DefinitionId'] = value;774 if ((this.get_context())) {775 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'DefinitionId', value));776 }777 return value;778 },779 780 get_enabled: function SP_WorkflowServices_WorkflowSubscription$get_enabled() {ULS8GF:;781 this.checkUninitializedProperty('Enabled');782 return ((this.get_objectData().get_properties()['Enabled']));783 },784 set_enabled: function SP_WorkflowServices_WorkflowSubscription$set_enabled(value) {ULS8GF:;785 this.get_objectData().get_properties()['Enabled'] = value;786 if ((this.get_context())) {787 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Enabled', value));788 }789 return value;790 },791 792 get_eventSourceId: function SP_WorkflowServices_WorkflowSubscription$get_eventSourceId() {ULS8GF:;793 this.checkUninitializedProperty('EventSourceId');794 return ((this.get_objectData().get_properties()['EventSourceId']));795 },796 set_eventSourceId: function SP_WorkflowServices_WorkflowSubscription$set_eventSourceId(value) {ULS8GF:;797 this.get_objectData().get_properties()['EventSourceId'] = value;798 if ((this.get_context())) {799 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EventSourceId', value));800 }801 return value;802 },803 804 get_eventTypes: function SP_WorkflowServices_WorkflowSubscription$get_eventTypes() {ULS8GF:;805 this.checkUninitializedProperty('EventTypes');806 return ((this.get_objectData().get_properties()['EventTypes']));807 },808 set_eventTypes: function SP_WorkflowServices_WorkflowSubscription$set_eventTypes(value) {ULS8GF:;809 this.get_objectData().get_properties()['EventTypes'] = value;810 if ((this.get_context())) {811 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'EventTypes', value));812 }813 return value;814 },815 816 get_id: function SP_WorkflowServices_WorkflowSubscription$get_id() {ULS8GF:;817 this.checkUninitializedProperty('Id');818 return ((this.get_objectData().get_properties()['Id']));819 },820 set_id: function SP_WorkflowServices_WorkflowSubscription$set_id(value) {ULS8GF:;821 this.get_objectData().get_properties()['Id'] = value;822 if ((this.get_context())) {823 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Id', value));824 }825 return value;826 },827 828 get_manualStartBypassesActivationLimit: function SP_WorkflowServices_WorkflowSubscription$get_manualStartBypassesActivationLimit() {ULS8GF:;829 this.checkUninitializedProperty('ManualStartBypassesActivationLimit');830 return ((this.get_objectData().get_properties()['ManualStartBypassesActivationLimit']));831 },832 set_manualStartBypassesActivationLimit: function SP_WorkflowServices_WorkflowSubscription$set_manualStartBypassesActivationLimit(value) {ULS8GF:;833 this.get_objectData().get_properties()['ManualStartBypassesActivationLimit'] = value;834 if ((this.get_context())) {835 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'ManualStartBypassesActivationLimit', value));836 }837 return value;838 },839 840 get_name: function SP_WorkflowServices_WorkflowSubscription$get_name() {ULS8GF:;841 this.checkUninitializedProperty('Name');842 return ((this.get_objectData().get_properties()['Name']));843 },844 set_name: function SP_WorkflowServices_WorkflowSubscription$set_name(value) {ULS8GF:;845 this.get_objectData().get_properties()['Name'] = value;846 if ((this.get_context())) {847 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'Name', value));848 }849 return value;850 },851 852 get_propertyDefinitions: function SP_WorkflowServices_WorkflowSubscription$get_propertyDefinitions() {ULS8GF:;853 this.checkUninitializedProperty('PropertyDefinitions');854 return ((this.get_objectData().get_properties()['PropertyDefinitions']));855 },856 857 get_statusFieldName: function SP_WorkflowServices_WorkflowSubscription$get_statusFieldName() {ULS8GF:;858 this.checkUninitializedProperty('StatusFieldName');859 return ((this.get_objectData().get_properties()['StatusFieldName']));860 },861 set_statusFieldName: function SP_WorkflowServices_WorkflowSubscription$set_statusFieldName(value) {ULS8GF:;862 this.get_objectData().get_properties()['StatusFieldName'] = value;863 if ((this.get_context())) {864 this.get_context().addQuery(new SP.ClientActionSetProperty(this, 'StatusFieldName', value));865 }866 return value;867 },868 869 initPropertiesFromJson: function SP_WorkflowServices_WorkflowSubscription$initPropertiesFromJson(parentNode) {ULS8GF:;870 SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);871 var $v_0;872 $v_0 = parentNode.DefinitionId;873 if (!SP.ScriptUtility.isUndefined($v_0)) {874 this.get_objectData().get_properties()['DefinitionId'] = ($v_0);875 delete parentNode.DefinitionId;876 }877 $v_0 = parentNode.Enabled;878 if (!SP.ScriptUtility.isUndefined($v_0)) {879 this.get_objectData().get_properties()['Enabled'] = ($v_0);880 delete parentNode.Enabled;881 }882 $v_0 = parentNode.EventSourceId;883 if (!SP.ScriptUtility.isUndefined($v_0)) {884 this.get_objectData().get_properties()['EventSourceId'] = ($v_0);885 delete parentNode.EventSourceId;886 }887 $v_0 = parentNode.EventTypes;888 if (!SP.ScriptUtility.isUndefined($v_0)) {889 this.get_objectData().get_properties()['EventTypes'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));890 delete parentNode.EventTypes;891 }892 $v_0 = parentNode.Id;893 if (!SP.ScriptUtility.isUndefined($v_0)) {894 this.get_objectData().get_properties()['Id'] = ($v_0);895 delete parentNode.Id;896 }897 $v_0 = parentNode.ManualStartBypassesActivationLimit;898 if (!SP.ScriptUtility.isUndefined($v_0)) {899 this.get_objectData().get_properties()['ManualStartBypassesActivationLimit'] = ($v_0);900 delete parentNode.ManualStartBypassesActivationLimit;901 }902 $v_0 = parentNode.Name;903 if (!SP.ScriptUtility.isUndefined($v_0)) {904 this.get_objectData().get_properties()['Name'] = ($v_0);905 delete parentNode.Name;906 }907 $v_0 = parentNode.PropertyDefinitions;908 if (!SP.ScriptUtility.isUndefined($v_0)) {909 this.get_objectData().get_properties()['PropertyDefinitions'] = ((SP.DataConvert.fixupType(this.get_context(), $v_0)));910 delete parentNode.PropertyDefinitions;911 }912 $v_0 = parentNode.StatusFieldName;913 if (!SP.ScriptUtility.isUndefined($v_0)) {914 this.get_objectData().get_properties()['StatusFieldName'] = ($v_0);915 delete parentNode.StatusFieldName;916 }917 },918 919 setProperty: function SP_WorkflowServices_WorkflowSubscription$setProperty(name, value) {ULS8GF:;920 var $v_0 = this.get_context();921 var $v_1 = new SP.ClientActionInvokeMethod(this, 'SetProperty', [ name, value ]);922 $v_0.addQuery($v_1);923 },924 925 setExternalVariable: function SP_WorkflowServices_WorkflowSubscription$setExternalVariable(name, value) {ULS8GF:;926 var $v_0 = this.get_context();927 var $v_1 = new SP.ClientActionInvokeMethod(this, 'SetExternalVariable', [ name, value ]);928 $v_0.addQuery($v_1);929 },930 931 getExternalVariable: function SP_WorkflowServices_WorkflowSubscription$getExternalVariable(name) {ULS8GF:;932 var $v_0 = this.get_context();933 var $v_1;934 var $v_2 = new SP.ClientActionInvokeMethod(this, 'GetExternalVariable', [ name ]);935 $v_0.addQuery($v_2);936 $v_1 = new SP.StringResult();937 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);938 return $v_1;939 }940}941SP.WorkflowServices.WorkflowSubscriptionPropertyNames = function SP_WorkflowServices_WorkflowSubscriptionPropertyNames() {942}943SP.WorkflowServices.WorkflowSubscriptionCollection = function SP_WorkflowServices_WorkflowSubscriptionCollection(context, objectPath) {ULS8GF:;944 SP.WorkflowServices.WorkflowSubscriptionCollection.initializeBase(this, [ context, objectPath ]);945}946SP.WorkflowServices.WorkflowSubscriptionCollection.prototype = {947 948 itemAt: function SP_WorkflowServices_WorkflowSubscriptionCollection$itemAt(index) {ULS8GF:;949 return this.getItemAtIndex(index);950 },951 952 get_item: function SP_WorkflowServices_WorkflowSubscriptionCollection$get_item(index) {ULS8GF:;953 return this.getItemAtIndex(index);954 },955 956 get_childItemType: function SP_WorkflowServices_WorkflowSubscriptionCollection$get_childItemType() {ULS8GF:;957 return SP.WorkflowServices.WorkflowSubscription;958 }959}960SP.WorkflowServices.WorkflowSubscriptionService = function SP_WorkflowServices_WorkflowSubscriptionService(context, objectPath) {ULS8GF:;961 SP.WorkflowServices.WorkflowSubscriptionService.initializeBase(this, [ context, objectPath ]);962}963SP.WorkflowServices.WorkflowSubscriptionService.getCurrent = function SP_WorkflowServices_WorkflowSubscriptionService$getCurrent(Context) {ULS8GF:;964 var $v_0 = Context.get_staticObjects()['Microsoft$SharePoint$WorkflowServices$WorkflowSubscriptionService$Current'];965 if ((!$v_0)) {966 $v_0 = new SP.WorkflowServices.WorkflowSubscriptionService(Context, new SP.ObjectPathStaticProperty(Context, '{fc956693-2419-4950-8963-52ebc3e46501}', 'Current'));967 Context.get_staticObjects()['Microsoft$SharePoint$WorkflowServices$WorkflowSubscriptionService$Current'] = $v_0;968 }969 return ($v_0);970}971SP.WorkflowServices.WorkflowSubscriptionService.prototype = {972 973 publishSubscription: function SP_WorkflowServices_WorkflowSubscriptionService$publishSubscription(subscription) {ULS8GF:;974 var $v_0 = this.get_context();975 var $v_1;976 var $v_2 = new SP.ClientActionInvokeMethod(this, 'PublishSubscription', [ subscription ]);977 $v_0.addQuery($v_2);978 $v_1 = new SP.GuidResult();979 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);980 return $v_1;981 },982 983 publishSubscriptionForList: function SP_WorkflowServices_WorkflowSubscriptionService$publishSubscriptionForList(subscription, listId) {ULS8GF:;984 var $v_0 = this.get_context();985 var $v_1;986 var $v_2 = new SP.ClientActionInvokeMethod(this, 'PublishSubscriptionForList', [ subscription, listId ]);987 $v_0.addQuery($v_2);988 $v_1 = new SP.GuidResult();989 $v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);990 return $v_1;991 },992 993 registerInterestInList: function SP_WorkflowServices_WorkflowSubscriptionService$registerInterestInList(listId, eventName) {ULS8GF:;994 var $v_0 = this.get_context();995 var $v_1 = new SP.ClientActionInvokeMethod(this, 'RegisterInterestInList', [ listId, eventName ]);996 $v_0.addQuery($v_1);997 },998 999 unregisterInterestInList: function SP_WorkflowServices_WorkflowSubscriptionService$unregisterInterestInList(listId, eventName) {ULS8GF:;1000 var $v_0 = this.get_context();1001 var $v_1 = new SP.ClientActionInvokeMethod(this, 'UnregisterInterestInList', [ listId, eventName ]);1002 $v_0.addQuery($v_1);1003 },1004 1005 getSubscription: function SP_WorkflowServices_WorkflowSubscriptionService$getSubscription(subscriptionId) {ULS8GF:;1006 var $v_0 = this.get_context();1007 var $v_1;1008 $v_1 = new SP.WorkflowServices.WorkflowSubscription($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetSubscription', [ subscriptionId ]));1009 return $v_1;1010 },1011 1012 deleteSubscription: function SP_WorkflowServices_WorkflowSubscriptionService$deleteSubscription(subscriptionId) {ULS8GF:;1013 var $v_0 = this.get_context();1014 var $v_1 = new SP.ClientActionInvokeMethod(this, 'DeleteSubscription', [ subscriptionId ]);1015 $v_0.addQuery($v_1);1016 },1017 1018 enumerateSubscriptions: function SP_WorkflowServices_WorkflowSubscriptionService$enumerateSubscriptions() {ULS8GF:;1019 var $v_0 = this.get_context();1020 var $v_1;1021 $v_1 = new SP.WorkflowServices.WorkflowSubscriptionCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'EnumerateSubscriptions', null));1022 return $v_1;1023 },1024 1025 enumerateSubscriptionsByDefinition: function SP_WorkflowServices_WorkflowSubscriptionService$enumerateSubscriptionsByDefinition(definitionId) {ULS8GF:;1026 var $v_0 = this.get_context();1027 var $v_1;1028 $v_1 = new SP.WorkflowServices.WorkflowSubscriptionCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'EnumerateSubscriptionsByDefinition', [ definitionId ]));1029 return $v_1;1030 },1031 1032 enumerateSubscriptionsByEventSource: function SP_WorkflowServices_WorkflowSubscriptionService$enumerateSubscriptionsByEventSource(eventSourceId) {ULS8GF:;1033 var $v_0 = this.get_context();1034 var $v_1;1035 $v_1 = new SP.WorkflowServices.WorkflowSubscriptionCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'EnumerateSubscriptionsByEventSource', [ eventSourceId ]));1036 return $v_1;1037 },1038 1039 enumerateSubscriptionsByList: function SP_WorkflowServices_WorkflowSubscriptionService$enumerateSubscriptionsByList(listId) {ULS8GF:;1040 var $v_0 = this.get_context();1041 var $v_1;1042 $v_1 = new SP.WorkflowServices.WorkflowSubscriptionCollection($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'EnumerateSubscriptionsByList', [ listId ]));1043 return $v_1;1044 }1045}1046SP.WorkflowServices.InteropService.registerClass('SP.WorkflowServices.InteropService', SP.ClientObject);1047SP.WorkflowServices.WorkflowDefinition.registerClass('SP.WorkflowServices.WorkflowDefinition', SP.ClientObject);1048SP.WorkflowServices.WorkflowDefinitionPropertyNames.registerClass('SP.WorkflowServices.WorkflowDefinitionPropertyNames');1049SP.WorkflowServices.WorkflowDefinitionCollection.registerClass('SP.WorkflowServices.WorkflowDefinitionCollection', SP.ClientObjectCollection);1050SP.WorkflowServices.WorkflowDeploymentService.registerClass('SP.WorkflowServices.WorkflowDeploymentService', SP.ClientObject);1051SP.WorkflowServices.WorkflowInstance.registerClass('SP.WorkflowServices.WorkflowInstance', SP.ClientObject);1052SP.WorkflowServices.WorkflowInstancePropertyNames.registerClass('SP.WorkflowServices.WorkflowInstancePropertyNames');1053SP.WorkflowServices.WorkflowInstanceCollection.registerClass('SP.WorkflowServices.WorkflowInstanceCollection', SP.ClientObjectCollection);1054SP.WorkflowServices.WorkflowInstanceService.registerClass('SP.WorkflowServices.WorkflowInstanceService', SP.ClientObject);...

Full Screen

Full Screen

context.py

Source:context.py Github

copy

Full Screen

...37 The managers methods such as `Lock()`, `Condition()` and `Queue()`38 can be used to create shared objects.39 '''40 from .managers import SyncManager41 m = SyncManager(ctx=self.get_context())42 m.start()43 return m44 def Pipe(self, duplex=True):45 '''Returns two connection object connected by a pipe'''46 from .connection import Pipe47 return Pipe(duplex)48 def Lock(self):49 '''Returns a non-recursive lock object'''50 from .synchronize import Lock51 return Lock(ctx=self.get_context())52 def RLock(self):53 '''Returns a recursive lock object'''54 from .synchronize import RLock55 return RLock(ctx=self.get_context())56 def Condition(self, lock=None):57 '''Returns a condition object'''58 from .synchronize import Condition59 return Condition(lock, ctx=self.get_context())60 def Semaphore(self, value=1):61 '''Returns a semaphore object'''62 from .synchronize import Semaphore63 return Semaphore(value, ctx=self.get_context())64 def BoundedSemaphore(self, value=1):65 '''Returns a bounded semaphore object'''66 from .synchronize import BoundedSemaphore67 return BoundedSemaphore(value, ctx=self.get_context())68 def Event(self):69 '''Returns an event object'''70 from .synchronize import Event71 return Event(ctx=self.get_context())72 def Barrier(self, parties, action=None, timeout=None):73 '''Returns a barrier object'''74 from .synchronize import Barrier75 return Barrier(parties, action, timeout, ctx=self.get_context())76 def Queue(self, maxsize=0):77 '''Returns a queue object'''78 from .queues import Queue79 return Queue(maxsize, ctx=self.get_context())80 def JoinableQueue(self, maxsize=0):81 '''Returns a queue object'''82 from .queues import JoinableQueue83 return JoinableQueue(maxsize, ctx=self.get_context())84 def SimpleQueue(self):85 '''Returns a queue object'''86 from .queues import SimpleQueue87 return SimpleQueue(ctx=self.get_context())88 def Pool(self, processes=None, initializer=None, initargs=(),89 maxtasksperchild=None):90 '''Returns a process pool object'''91 from .pool import Pool92 return Pool(processes, initializer, initargs, maxtasksperchild,93 context=self.get_context())94 def RawValue(self, typecode_or_type, *args):95 '''Returns a shared object'''96 from .sharedctypes import RawValue97 return RawValue(typecode_or_type, *args)98 def RawArray(self, typecode_or_type, size_or_initializer):99 '''Returns a shared array'''100 from .sharedctypes import RawArray101 return RawArray(typecode_or_type, size_or_initializer)102 def Value(self, typecode_or_type, *args, lock=True):103 '''Returns a synchronized shared object'''104 from .sharedctypes import Value105 return Value(typecode_or_type, *args, lock=lock,106 ctx=self.get_context())107 def Array(self, typecode_or_type, size_or_initializer, *, lock=True):108 '''Returns a synchronized shared array'''109 from .sharedctypes import Array110 return Array(typecode_or_type, size_or_initializer, lock=lock,111 ctx=self.get_context())112 def freeze_support(self):113 '''Check whether this is a fake forked process in a frozen executable.114 If so then run code specified by commandline and exit.115 '''116 if sys.platform == 'win32' and getattr(sys, 'frozen', False):117 from .spawn import freeze_support118 freeze_support()119 def get_logger(self):120 '''Return package logger -- if it does not already exist then121 it is created.122 '''123 from .util import get_logger124 return get_logger()125 def log_to_stderr(self, level=None):126 '''Turn on logging and add a handler which prints to stderr'''127 from .util import log_to_stderr128 return log_to_stderr(level)129 def allow_connection_pickling(self):130 '''Install support for sending connections and sockets131 between processes132 '''133 # This is undocumented. In previous versions of multiprocessing134 # its only effect was to make socket objects inheritable on Windows.135 from . import connection136 def set_executable(self, executable):137 '''Sets the path to a python.exe or pythonw.exe binary used to run138 child processes instead of sys.executable when using the 'spawn'139 start method. Useful for people embedding Python.140 '''141 from .spawn import set_executable142 set_executable(executable)143 def set_forkserver_preload(self, module_names):144 '''Set list of module names to try to load in forkserver process.145 This is really just a hint.146 '''147 from .forkserver import set_forkserver_preload148 set_forkserver_preload(module_names)149 def get_context(self, method=None):150 if method is None:151 return self152 try:153 ctx = _concrete_contexts[method]154 except KeyError:155 raise ValueError('cannot find context for %r' % method) from None156 ctx._check_available()157 return ctx158 def get_start_method(self, allow_none=False):159 return self._name160 def set_start_method(self, method, force=False):161 raise ValueError('cannot set start method of concrete context')162 @property163 def reducer(self):164 '''Controls how objects will be reduced to a form that can be165 shared with other processes.'''166 return globals().get('reduction')167 @reducer.setter168 def reducer(self, reduction):169 globals()['reduction'] = reduction170 def _check_available(self):171 pass172#173# Type of default context -- underlying context can be set at most once174#175class Process(process.BaseProcess):176 _start_method = None177 @staticmethod178 def _Popen(process_obj):179 return _default_context.get_context().Process._Popen(process_obj)180class DefaultContext(BaseContext):181 Process = Process182 def __init__(self, context):183 self._default_context = context184 self._actual_context = None185 def get_context(self, method=None):186 if method is None:187 if self._actual_context is None:188 self._actual_context = self._default_context189 return self._actual_context190 else:191 return super().get_context(method)192 def set_start_method(self, method, force=False):193 if self._actual_context is not None and not force:194 raise RuntimeError('context has already been set')195 if method is None and force:196 self._actual_context = None197 return198 self._actual_context = self.get_context(method)199 def get_start_method(self, allow_none=False):200 if self._actual_context is None:201 if allow_none:202 return None203 self._actual_context = self._default_context204 return self._actual_context._name205 def get_all_start_methods(self):206 if sys.platform == 'win32':207 return ['spawn']208 else:209 if reduction.HAVE_SEND_HANDLE:210 return ['fork', 'spawn', 'forkserver']211 else:212 return ['fork', 'spawn']...

Full Screen

Full Screen

canvas.js

Source:canvas.js Github

copy

Full Screen

...31 cnv = document.getElementById("canvas");32 }33 return cnv;34}35function get_context() {36 if(ctx === null) {37 ctx = get_canvas().getContext("2d", {alpha: false});38 }39 return ctx;40}41function set_int_coords(v) {42 int_coords = v;43}44function set_fill(col) {45 get_context().fillStyle = col;46}47function set_alpha(a) {48 get_context().globalAlpha = a;49}50function set_stroke(col) {51 get_context().strokeStyle = col;52}53function set_font(font) {54 get_context().font = font;55}56function set_font_left() {57 get_context().textAlign = "left";58}59function set_font_center() {60 get_context().textAlign = "center";61}62function set_font_right() {63 get_context().textAlign = "right";64}65function set_font_top() {66 get_context().textBaseline = "top";67}68function set_font_middle() {69 get_context().textBaseline = "middle";70}71function set_font_bottom() {72 get_context().textBaseline = "bottom";73}74function set_render_translation(x, y) {75 if(int_coords) {76 x = Math.round(x);77 y = Math.round(y);78 }79 get_context().setTransform(1, 0, 0, 1, x, y);80}81function reset_render_translation() {82 set_render_translation(0,0);83}84function reset_render() {85 set_font_top();86 set_font_left();87 set_fill("white");88 set_stroke("white");89 ctx.lineWidth=1;90 set_font("16px monospace");91 set_alpha(1.0)92}93function clear_canvas(col) {94 get_context();95 reset_render_translation();96 ctx.fillStyle = (typeof col !== 'undefined') ? col : "#000";97 ctx.fillRect(0,0,cnv.width,cnv.height);98 reset_render();99}100function fill_rect(x, y, w, h) {101 if(int_coords) {102 x = Math.round(x);103 y = Math.round(y);104 w = Math.round(w);105 h = Math.round(h);106 }107 get_context().fillRect(x, y, w, h);108}109function draw_rect(x, y, w, h) {110 if(int_coords) {111 x = Math.round(x);112 y = Math.round(y);113 w = Math.round(w);114 h = Math.round(h);115 }116 get_context().strokeRect(x, y, w, h);117}118function draw_text(text, x, y, maxwidth) {119 if(int_coords) {120 x = Math.round(x);121 y = Math.round(y);122 }123 get_context().fillText(text, x, y, maxwidth);124}125function draw_line(x1, y1, x2, y2) {126 ctx.beginPath();127 if(int_coords) {128 x1 = Math.round(x1);129 x2 = Math.round(x2);130 y1 = Math.round(y1);131 y2 = Math.round(y2);132 }133 x1 += 0.5;134 x2 += 0.5;135 y1 += 0.5;136 y2 += 0.5;137 get_context().moveTo(x1, y1);138 ctx.lineTo(x2, y2);139 ctx.stroke();140}141//much, much faster for long lines142function _gfx_do_move(points) {143 if(int_coords) {144 for(var i = 0; i < points.length; i++) {145 points[i] = Math.round(points[i]) + 0.5;146 }147 } else {148 for(var i = 0; i < points.length; i++) {149 points[i] = points[i] + 0.5;150 }151 }152 get_context().moveTo(points[0], points[1]);153 for(var i = 2; i < points.length; i+=2) {154 ctx.lineTo(points[i], points[i+1]);155 }156}157function draw_path(points) {158 ctx.beginPath();159 _gfx_do_move(points);160 ctx.stroke();161}162function fill_path(points) {163 ctx.beginPath();164 _gfx_do_move(points);165 ctx.fill();166}...

Full Screen

Full Screen

test_context.py

Source:test_context.py Github

copy

Full Screen

...10 super(ContextTestCase, self).setUp()11 # shortcuts to improve readability of these tests12 self.chrome = self.marionette.CONTEXT_CHROME13 self.content = self.marionette.CONTEXT_CONTENT14 self.assertEquals(self.get_context(), self.content)15 test_url = self.marionette.absolute_url("empty.html")16 self.marionette.navigate(test_url)17 def get_context(self):18 return self.marionette._send_message("Marionette:GetContext", key="value")19class TestSetContext(ContextTestCase):20 def test_switch_context(self):21 self.marionette.set_context(self.chrome)22 self.assertEquals(self.get_context(), self.chrome)23 self.marionette.set_context(self.content)24 self.assertEquals(self.get_context(), self.content)25 def test_invalid_context(self):26 with self.assertRaises(ValueError):27 self.marionette.set_context("foobar")28class TestUsingContext(ContextTestCase):29 def test_set_different_context_using_with_block(self):30 with self.marionette.using_context(self.chrome):31 self.assertEquals(self.get_context(), self.chrome)32 self.assertEquals(self.get_context(), self.content)33 def test_set_same_context_using_with_block(self):34 with self.marionette.using_context(self.content):35 self.assertEquals(self.get_context(), self.content)36 self.assertEquals(self.get_context(), self.content)37 def test_nested_with_blocks(self):38 with self.marionette.using_context(self.chrome):39 self.assertEquals(self.get_context(), self.chrome)40 with self.marionette.using_context(self.content):41 self.assertEquals(self.get_context(), self.content)42 self.assertEquals(self.get_context(), self.chrome)43 self.assertEquals(self.get_context(), self.content)44 def test_set_scope_while_in_with_block(self):45 with self.marionette.using_context(self.chrome):46 self.assertEquals(self.get_context(), self.chrome)47 self.marionette.set_context(self.content)48 self.assertEquals(self.get_context(), self.content)49 self.assertEquals(self.get_context(), self.content)50 def test_exception_raised_while_in_with_block_is_propagated(self):51 with self.assertRaises(MarionetteException):52 with self.marionette.using_context(self.chrome):53 raise MarionetteException54 self.assertEquals(self.get_context(), self.content)55 def test_with_using_context_decorator(self):56 @using_context('content')57 def inner_content(m):58 self.assertEquals(self.get_context(), 'content')59 @using_context('chrome')60 def inner_chrome(m):61 self.assertEquals(self.get_context(), 'chrome')62 inner_content(self.marionette)...

Full Screen

Full Screen

widgets.py

Source:widgets.py Github

copy

Full Screen

1from django.forms import widgets2from django.utils.translation import gettext_lazy as _3class CustomInput(widgets.Input):4 input_type = 'text'5 def get_context(self, name, value, attrs):6 if attrs is None:7 attrs = dict()8 attrs['class'] = 'form-control'9 context = super().get_context(name, value, attrs)10 return context11class PasswordInput(CustomInput):12 input_type = 'password'13 def get_context(self, name, value, attrs):14 context = super().get_context(name, value, attrs)15 context['widget']['attrs']['placeholder'] = _('Password')16 return context17class TextInput(CustomInput):18 template_name = 'widgets/input.html'19class EmailInput(CustomInput):20 input_type = 'email'21 def get_context(self, name, value, attrs):22 context = super().get_context(name, value, attrs)23 context['widget']['attrs']['autocomplete'] = 'email'24 context['widget']['attrs']['placeholder'] = _('Email')25 return context26class TelephoneInput(TextInput):27 input_type = 'tel'28 def get_context(self, name, value, attrs):29 context = super().get_context(name, value, attrs)30 context['widget']['attrs']['autocomplete'] = 'tel'31 return context32class FirstNameInput(TextInput):33 def get_context(self, name, value, attrs):34 context = super().get_context(name, value, attrs)35 context['widget']['attrs']['autocomplete'] = 'given-name'36 return context37class LastNameInput(TextInput):38 def get_context(self, name, value, attrs):39 context = super().get_context(name, value, attrs)40 context['widget']['attrs']['autocomplete'] = 'family-name'41 return context42class AddressLineOne(TextInput):43 def get_context(self, name, value, attrs):44 context = super().get_context(name, value, attrs)45 context['widget']['attrs']['autocomplete'] = 'street-address'...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var wpt = WebPageTest('www.webpagetest.org');3wpt.get_context(function(err, data) {4 if (err) return console.log(err);5 console.log(data);6});7var wpt = require('webpagetest');8var wpt = WebPageTest('www.webpagetest.org');9wpt.get_locations(function(err, data) {10 if (err) return console.log(err);11 console.log(data);12});13var wpt = require('webpagetest');14var wpt = WebPageTest('www.webpagetest.org');15wpt.get_testers(function(err, data) {16 if (err) return console.log(err);17 console.log(data);18});19var wpt = require('webpagetest');20var wpt = WebPageTest('www.webpagetest.org');21wpt.get_testers(function(err, data) {22 if (err) return console.log(err);23 console.log(data);24});25var wpt = require('webpagetest');26var wpt = WebPageTest('www.webpagetest.org');27wpt.get_testers(function(err, data) {28 if (err) return console.log(err);29 console.log(data);30});31var wpt = require('webpagetest');32var wpt = WebPageTest('www.webpagetest.org');33wpt.get_testers(function(err, data) {34 if (err) return console.log(err);35 console.log(data);36});37var wpt = require('webpagetest');38var wpt = WebPageTest('www.webpagetest.org');39wpt.get_testers(function(err, data) {40 if (err) return console.log(err);41 console.log(data);42});43var wpt = require('webpagetest');44var wpt = WebPageTest('www

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt');2var wpt = new WebPageTest('www.webpagetest.org');3wpt.get_context(function(err, data) {4 console.log(data);5});6var wpt = require('wpt');7var wpt = new WebPageTest('www.webpagetest.org');8wpt.get_locations(function(err, data) {9 console.log(data);10});11var wpt = require('wpt');12var wpt = new WebPageTest('www.webpagetest.org');13wpt.get_testers(function(err, data) {14 console.log(data);15});16var wpt = require('wpt');17var wpt = new WebPageTest('www.webpagetest.org');18wpt.get_test('160802_1H_1f9b', function(err, data) {19 console.log(data);20});21var wpt = require('wpt');22var wpt = new WebPageTest('www.webpagetest.org');23wpt.get_testers(function(err, data) {24 console.log(data);25});26var wpt = require('wpt');27var wpt = new WebPageTest('www.webpagetest.org');28wpt.get_test_status('160802_1H_1f9b', function(err, data) {29 console.log(data);30});31var wpt = require('wpt');32var wpt = new WebPageTest('www.webpagetest.org');33wpt.get_test_result('160802_1H_1f9b', function(err, data) {34 console.log(data);35});36var wpt = require('wpt');37var wpt = new WebPageTest('www.webpagetest.org');38wpt.get_test_requests('160802_1H_1f9b', function(err, data)

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var api = new wpt('API_KEY');3api.runTest(url, function(err, data) {4 if (err) return console.error(err);5 console.log('Test started: ' + data.data.testId);6 api.getTestResults(data.data.testId, function(err, data) {7 if (err) return console.error(err);8 console.log('First View: ' + data.data.average.firstView.loadTime);9 console.log('Repeat View: ' + data.data.average.repeatView.loadTime);10 });11});

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt');2var wpt = new WebPageTest('www.webpagetest.org', 'A.1234567890abcdef1234567890abcdef');3wpt.get_context(function(err, data) {4if(err) {5console.log("error");6}7else {8console.log(data);9}10});11var wpt = require('wpt');12var wpt = new WebPageTest('www.webpagetest.org', 'A.1234567890abcdef1234567890abcdef');13wpt.get_locations(function(err, data) {14if(err) {15console.log("error");16}17else {18console.log(data);19}20});21var wpt = require('wpt');22var wpt = new WebPageTest('www.webpagetest.org', 'A.1234567890abcdef1234567890abcdef');23wpt.get_testers(function(err, data) {24if(err) {25console.log("error");26}27else {28console.log(data);29}30});31var wpt = require('wpt');32var wpt = new WebPageTest('www.webpagetest.org', 'A.1234567890abcdef1234567890abcdef');33wpt.get_test_status('testId', function(err, data) {34if(err) {35console.log("error");36}37else {38console.log(data);39}40});41var wpt = require('wpt');42var wpt = new WebPageTest('www.webpagetest.org', 'A.1234567890abcdef1234567890abcdef');43wpt.get_test_results('testId', function(err, data) {44if(err) {45console.log("error");46}47else {48console.log(data);49}50});51var wpt = require('wpt');52var wpt = new WebPageTest('www.webpagetest.org', 'A.1234567890abcdef1234567890abcdef');53wpt.get_testers(function(err, data) {54if(err) {55console.log("error");56}57else {

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var wpt = new WebPageTest('www.webpagetest.org');3wpt.get_context(function(err, data) {4 if (err) {5 console.log(err);6 } else {7 console.log(data);8 }9});10var wpt = require('webpagetest');11var wpt = new WebPageTest('www.webpagetest.org');12wpt.get_locations(function(err, data) {13 if (err) {14 console.log(err);15 } else {16 console.log(data);17 }18});

Full Screen

Using AI Code Generation

copy

Full Screen

1var context = wpt.get_context();2var test = context.test;3var test_id = test.test_id;4var test_url = test.url;5var test_location = test.location;6var test_label = test.label;7var test_runs = test.runs;8var test_first_view_only = test.firstViewOnly;9var test_private = test.private;10var test_standard = test.standard;11var test_standard_deviation = test.standardDeviation;12var test_standard_deviation_runs = test.standardDeviationRuns;13var test_custom_metrics = test.customMetrics;14var test_custom_metric = test.customMetric;15var test_custom_metric_name = test.customMetricName;16var test_custom_metric_value = test.customMetricValue;17var test_custom_metric_string = test.customMetricString;18var test_custom_metric_bool = test.customMetricBool;19var test_custom_metric_int = test.customMetricInt;20var test_custom_metric_float = test.customMetricFloat;21var test_script = test.script;22var test_script_name = test.scriptName;23var test_script_data = test.scriptData;24var test_script_data_string = test.scriptDataString;25var test_script_data_bool = test.scriptDataBool;26var test_script_data_int = test.scriptDataInt;27var test_script_data_float = test.scriptDataFloat;28var test_script_data_array = test.scriptDataArray;29var test_script_data_array_string = test.scriptDataArrayString;30var test_script_data_array_bool = test.scriptDataArrayBool;31var test_script_data_array_int = test.scriptDataArrayInt;32var test_script_data_array_float = test.scriptDataArrayFloat;33var test_script_data_array_array = test.scriptDataArrayArray;34var test_script_data_array_array_string = test.scriptDataArrayArrayString;35var test_script_data_array_array_bool = test.scriptDataArrayArrayBool;36var test_script_data_array_array_int = test.scriptDataArrayArrayInt;37var test_script_data_array_array_float = test.scriptDataArrayArrayFloat;38var test_script_data_array_array_array = test.scriptDataArrayArrayArray;39var test_script_data_array_array_array_string = test.scriptDataArrayArrayArrayString;40var test_script_data_array_array_array_bool = test.scriptDataArrayArrayArrayBool;41var test_script_data_array_array_array_int = test.scriptDataArrayArrayArrayInt;42var test_script_data_array_array_array_float = test.scriptDataArrayArrayArrayFloat;43var test_script_data_array_array_array_array = test.scriptDataArrayArrayArrayArray;

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful