sp-jsom-node
Version:
SharePoint JavaScript Object Model for Node.js
1,496 lines (1,446 loc) • 1 MB
JavaScript
Type.registerNamespace('SP');
SP.ULSTraceLevel = function() {
};
SP.ULSTraceLevel.prototype = {
verbose: 100
};
SP.ULSTraceLevel.registerEnum('SP.ULSTraceLevel', false);
SP.AddFieldOptions = function() {
};
SP.AddFieldOptions.prototype = {
defaultValue: 0,
addToDefaultContentType: 1,
addToNoContentType: 2,
addToAllContentTypes: 4,
addFieldInternalNameHint: 8,
addFieldToDefaultView: 16,
addFieldCheckDisplayName: 32
};
SP.AddFieldOptions.registerEnum('SP.AddFieldOptions', false);
SP.AppInstanceErrorSource = function() {
};
SP.AppInstanceErrorSource.prototype = {
common: 0,
appWeb: 1,
parentWeb: 2,
remoteWebSite: 3,
database: 4,
officeExtension: 5,
eventCallouts: 6,
finalization: 7
};
SP.AppInstanceErrorSource.registerEnum('SP.AppInstanceErrorSource', false);
SP.AppInstanceErrorType = function() {
};
SP.AppInstanceErrorType.prototype = {
transient: 0,
configuration: 1,
app: 2
};
SP.AppInstanceErrorType.registerEnum('SP.AppInstanceErrorType', false);
SP.AppInstanceStatus = function() {
};
SP.AppInstanceStatus.prototype = {
invalidStatus: 0,
installing: 1,
canceling: 7,
uninstalling: 4,
installed: 5,
upgrading: 8,
initialized: 9,
upgradeCanceling: 10,
disabling: 11,
disabled: 12,
secretRolling: 13
};
SP.AppInstanceStatus.registerEnum('SP.AppInstanceStatus', false);
SP.AppLicenseType = function() {
};
SP.AppLicenseType.prototype = {
perpetualMultiUser: 0,
perpetualAllUsers: 1,
trialMultiUser: 2,
trialAllUsers: 3
};
SP.AppLicenseType.registerEnum('SP.AppLicenseType', false);
SP.AuditMaskType = function() {
};
SP.AuditMaskType.prototype = {
none: 0,
checkOut: 1,
checkIn: 2,
view: 4,
objectDelete: 8,
update: 16,
profileChange: 32,
childDelete: 64,
schemaChange: 128,
securityChange: 256,
undelete: 512,
workflow: 1024,
copy: 2048,
move: 4096,
search: 8192,
all: -1
};
SP.AuditMaskType.registerEnum('SP.AuditMaskType', false);
SP.BaseType = function() {
};
SP.BaseType.prototype = {
none: -1,
genericList: 0,
documentLibrary: 1,
unused: 2,
discussionBoard: 3,
survey: 4,
issue: 5
};
SP.BaseType.registerEnum('SP.BaseType', false);
SP.BrowserFileHandling = function() {
};
SP.BrowserFileHandling.prototype = {
permissive: 0,
strict: 1
};
SP.BrowserFileHandling.registerEnum('SP.BrowserFileHandling', false);
SP.CalendarType = function() {
};
SP.CalendarType.prototype = {
none: 0,
gregorian: 1,
japan: 3,
taiwan: 4,
korea: 5,
hijri: 6,
thai: 7,
hebrew: 8,
gregorianMEFrench: 9,
gregorianArabic: 10,
gregorianXLITEnglish: 11,
gregorianXLITFrench: 12,
koreaJapanLunar: 14,
chineseLunar: 15,
sakaEra: 16,
umAlQura: 23
};
SP.CalendarType.registerEnum('SP.CalendarType', false);
SP.ChangeType = function() {
};
SP.ChangeType.prototype = {
noChange: 0,
add: 1,
update: 2,
deleteObject: 3,
rename: 4,
moveAway: 5,
moveInto: 6,
restore: 7,
roleAdd: 8,
roleDelete: 9,
roleUpdate: 10,
assignmentAdd: 11,
assignmentDelete: 12,
memberAdd: 13,
memberDelete: 14,
systemUpdate: 15,
navigation: 16,
scopeAdd: 17,
scopeDelete: 18,
listContentTypeAdd: 19,
listContentTypeDelete: 20
};
SP.ChangeType.registerEnum('SP.ChangeType', false);
SP.CheckinType = function() {
};
SP.CheckinType.prototype = {
minorCheckIn: 0,
majorCheckIn: 1,
overwriteCheckIn: 2
};
SP.CheckinType.registerEnum('SP.CheckinType', false);
SP.CheckOutType = function() {
};
SP.CheckOutType.prototype = {
online: 0,
offline: 1,
none: 2
};
SP.CheckOutType.registerEnum('SP.CheckOutType', false);
SP.ChoiceFormatType = function() {
};
SP.ChoiceFormatType.prototype = {
dropdown: 0,
radioButtons: 1
};
SP.ChoiceFormatType.registerEnum('SP.ChoiceFormatType', false);
SP.CustomizedPageStatus = function() {
};
SP.CustomizedPageStatus.prototype = {
none: 0,
uncustomized: 1,
customized: 2
};
SP.CustomizedPageStatus.registerEnum('SP.CustomizedPageStatus', false);
SP.DateTimeFieldFormatType = function() {
};
SP.DateTimeFieldFormatType.prototype = {
dateOnly: 0,
dateTime: 1
};
SP.DateTimeFieldFormatType.registerEnum('SP.DateTimeFieldFormatType', false);
SP.DateTimeFieldFriendlyFormatType = function() {
};
SP.DateTimeFieldFriendlyFormatType.prototype = {
unspecified: 0,
disabled: 1,
relative: 2
};
SP.DateTimeFieldFriendlyFormatType.registerEnum('SP.DateTimeFieldFriendlyFormatType', false);
SP.DraftVisibilityType = function() {
};
SP.DraftVisibilityType.prototype = {
reader: 0,
author: 1,
approver: 2
};
SP.DraftVisibilityType.registerEnum('SP.DraftVisibilityType', false);
SP.EventReceiverSynchronization = function() {
};
SP.EventReceiverSynchronization.prototype = {
defaultSynchronization: 0,
synchronous: 1,
asynchronous: 2
};
SP.EventReceiverSynchronization.registerEnum('SP.EventReceiverSynchronization', false);
SP.EventReceiverType = function() {
};
SP.EventReceiverType.prototype = {
invalidReceiver: -1,
itemAdding: 1,
itemUpdating: 2,
itemDeleting: 3,
itemCheckingIn: 4,
itemCheckingOut: 5,
itemUncheckingOut: 6,
itemAttachmentAdding: 7,
itemAttachmentDeleting: 8,
itemFileMoving: 9,
itemVersionDeleting: 11,
fieldAdding: 101,
fieldUpdating: 102,
fieldDeleting: 103,
listAdding: 104,
listDeleting: 105,
siteDeleting: 201,
webDeleting: 202,
webMoving: 203,
webAdding: 204,
groupAdding: 301,
groupUpdating: 302,
groupDeleting: 303,
groupUserAdding: 304,
groupUserDeleting: 305,
roleDefinitionAdding: 306,
roleDefinitionUpdating: 307,
roleDefinitionDeleting: 308,
roleAssignmentAdding: 309,
roleAssignmentDeleting: 310,
inheritanceBreaking: 311,
inheritanceResetting: 312,
workflowStarting: 501,
itemAdded: 10001,
itemUpdated: 10002,
itemDeleted: 10003,
itemCheckedIn: 10004,
itemCheckedOut: 10005,
itemUncheckedOut: 10006,
itemAttachmentAdded: 10007,
itemAttachmentDeleted: 10008,
itemFileMoved: 10009,
itemFileConverted: 10010,
itemVersionDeleted: 10011,
fieldAdded: 10101,
fieldUpdated: 10102,
fieldDeleted: 10103,
listAdded: 10104,
listDeleted: 10105,
siteDeleted: 10201,
webDeleted: 10202,
webMoved: 10203,
webProvisioned: 10204,
groupAdded: 10301,
groupUpdated: 10302,
groupDeleted: 10303,
groupUserAdded: 10304,
groupUserDeleted: 10305,
roleDefinitionAdded: 10306,
roleDefinitionUpdated: 10307,
roleDefinitionDeleted: 10308,
roleAssignmentAdded: 10309,
roleAssignmentDeleted: 10310,
inheritanceBroken: 10311,
inheritanceReset: 10312,
workflowStarted: 10501,
workflowPostponed: 10502,
workflowCompleted: 10503,
entityInstanceAdded: 10601,
entityInstanceUpdated: 10602,
entityInstanceDeleted: 10603,
appInstalled: 10701,
appUpgraded: 10702,
appUninstalling: 10703,
emailReceived: 20000,
contextEvent: 32766
};
SP.EventReceiverType.registerEnum('SP.EventReceiverType', false);
SP.FeatureDefinitionScope = function() {
};
SP.FeatureDefinitionScope.prototype = {
none: 0,
farm: 1,
site: 2,
web: 3
};
SP.FeatureDefinitionScope.registerEnum('SP.FeatureDefinitionScope', false);
SP.FieldType = function() {
};
SP.FieldType.prototype = {
invalid: 0,
integer: 1,
text: 2,
note: 3,
dateTime: 4,
counter: 5,
choice: 6,
lookup: 7,
boolean: 8,
number: 9,
currency: 10,
URL: 11,
computed: 12,
threading: 13,
guid: 14,
multiChoice: 15,
gridChoice: 16,
calculated: 17,
file: 18,
attachments: 19,
user: 20,
recurrence: 21,
crossProjectLink: 22,
modStat: 23,
error: 24,
contentTypeId: 25,
pageSeparator: 26,
threadIndex: 27,
workflowStatus: 28,
allDayEvent: 29,
workflowEventType: 30,
geolocation: 31,
outcomeChoice: 32,
maxItems: 33
};
SP.FieldType.registerEnum('SP.FieldType', false);
SP.FieldUserSelectionMode = function() {
};
SP.FieldUserSelectionMode.prototype = {
peopleOnly: 0,
peopleAndGroups: 1
};
SP.FieldUserSelectionMode.registerEnum('SP.FieldUserSelectionMode', false);
SP.FileLevel = function() {
};
SP.FileLevel.prototype = {
published: 1,
draft: 2,
checkout: 255
};
SP.FileLevel.registerEnum('SP.FileLevel', false);
SP.FileSystemObjectType = function() {
};
SP.FileSystemObjectType.prototype = {
invalid: -1,
file: 0,
folder: 1,
web: 2
};
SP.FileSystemObjectType.registerEnum('SP.FileSystemObjectType', false);
SP.ListDataValidationFailureReason = function() {
};
SP.ListDataValidationFailureReason.prototype = {
dataFailure: 0,
formulaError: 1
};
SP.ListDataValidationFailureReason.registerEnum('SP.ListDataValidationFailureReason', false);
SP.ListDataValidationType = function() {
};
SP.ListDataValidationType.prototype = {
userFormulaField: 0,
userFormulaItem: 1,
requiredField: 2,
choiceField: 3,
minMaxField: 4,
textField: 5
};
SP.ListDataValidationType.registerEnum('SP.ListDataValidationType', false);
SP.ListTemplateType = function() {
};
SP.ListTemplateType.prototype = {
invalidType: -1,
noListTemplate: 0,
genericList: 100,
documentLibrary: 101,
survey: 102,
links: 103,
announcements: 104,
contacts: 105,
events: 106,
tasks: 107,
discussionBoard: 108,
pictureLibrary: 109,
dataSources: 110,
webTemplateCatalog: 111,
userInformation: 112,
webPartCatalog: 113,
listTemplateCatalog: 114,
xmlForm: 115,
masterPageCatalog: 116,
noCodeWorkflows: 117,
workflowProcess: 118,
webPageLibrary: 119,
customGrid: 120,
solutionCatalog: 121,
noCodePublic: 122,
themeCatalog: 123,
designCatalog: 124,
appDataCatalog: 125,
dataConnectionLibrary: 130,
workflowHistory: 140,
ganttTasks: 150,
helpLibrary: 151,
accessRequest: 160,
tasksWithTimelineAndHierarchy: 171,
maintenanceLogs: 175,
meetings: 200,
agenda: 201,
meetingUser: 202,
decision: 204,
meetingObjective: 207,
textBox: 210,
thingsToBring: 211,
homePageLibrary: 212,
posts: 301,
comments: 302,
categories: 303,
facility: 402,
whereabouts: 403,
callTrack: 404,
circulation: 405,
timecard: 420,
holidays: 421,
imeDic: 499,
externalList: 600,
mySiteDocumentLibrary: 700,
publishingPages: 850,
issueTracking: 1100,
adminTasks: 1200,
healthRules: 1220,
healthReports: 1221,
developerSiteDraftApps: 1230
};
SP.ListTemplateType.registerEnum('SP.ListTemplateType', false);
SP.MoveOperations = function() {
};
SP.MoveOperations.prototype = {
none: 0,
overwrite: 1,
allowBrokenThickets: 8,
bypassApprovePermission: 64
};
SP.MoveOperations.registerEnum('SP.MoveOperations', false);
SP.OpenWebOptions = function() {
};
SP.OpenWebOptions.prototype = {
none: 0,
initNavigationCache: 1
};
SP.OpenWebOptions.registerEnum('SP.OpenWebOptions', false);
SP.PageType = function() {
};
SP.PageType.prototype = {
invalid: -1,
defaultView: 0,
normalView: 1,
dialogView: 2,
view: 3,
displayForm: 4,
displayFormDialog: 5,
editForm: 6,
editFormDialog: 7,
newForm: 8,
newFormDialog: 9,
solutionForm: 10,
pagE_MAXITEMS: 11
};
SP.PageType.registerEnum('SP.PageType', false);
SP.QuickLaunchOptions = function() {
};
SP.QuickLaunchOptions.prototype = {
off: 0,
on: 1,
defaultValue: 2
};
SP.QuickLaunchOptions.registerEnum('SP.QuickLaunchOptions', false);
SP.RecycleBinItemState = function() {
};
SP.RecycleBinItemState.prototype = {
none: 0,
firstStageRecycleBin: 1,
secondStageRecycleBin: 2
};
SP.RecycleBinItemState.registerEnum('SP.RecycleBinItemState', false);
SP.RecycleBinItemType = function() {
};
SP.RecycleBinItemType.prototype = {
none: 0,
file: 1,
fileVersion: 2,
listItem: 3,
list: 4,
folder: 5,
folderWithLists: 6,
attachment: 7,
listItemVersion: 8,
cascadeParent: 9,
web: 10
};
SP.RecycleBinItemType.registerEnum('SP.RecycleBinItemType', false);
SP.RelationshipDeleteBehaviorType = function() {
};
SP.RelationshipDeleteBehaviorType.prototype = {
none: 0,
cascade: 1,
restrict: 2
};
SP.RelationshipDeleteBehaviorType.registerEnum('SP.RelationshipDeleteBehaviorType', false);
SP.RoleType = function() {
};
SP.RoleType.prototype = {
none: 0,
guest: 1,
reader: 2,
contributor: 3,
webDesigner: 4,
administrator: 5,
editor: 6
};
SP.RoleType.registerEnum('SP.RoleType', false);
SP.TemplateFileType = function() {
};
SP.TemplateFileType.prototype = {
standardPage: 0,
wikiPage: 1,
formPage: 2
};
SP.TemplateFileType.registerEnum('SP.TemplateFileType', false);
SP.UpgradeStatus = function() {
};
SP.UpgradeStatus.prototype = {
none: 0,
inProgress: 1,
failed: 2,
completed: 3
};
SP.UpgradeStatus.registerEnum('SP.UpgradeStatus', false);
SP.UpgradeType = function() {
};
SP.UpgradeType.prototype = {
buildUpgrade: 0,
versionUpgrade: 1
};
SP.UpgradeType.registerEnum('SP.UpgradeType', false);
SP.UrlFieldFormatType = function() {
};
SP.UrlFieldFormatType.prototype = {
hyperlink: 0,
image: 1
};
SP.UrlFieldFormatType.registerEnum('SP.UrlFieldFormatType', false);
SP.UrlZone = function() {
};
SP.UrlZone.prototype = {
defaultZone: 0,
intranet: 1,
internet: 2,
custom: 3,
extranet: 4
};
SP.UrlZone.registerEnum('SP.UrlZone', false);
SP.UserCustomActionRegistrationType = function() {
};
SP.UserCustomActionRegistrationType.prototype = {
none: 0,
list: 1,
contentType: 2,
progId: 3,
fileType: 4
};
SP.UserCustomActionRegistrationType.registerEnum('SP.UserCustomActionRegistrationType', false);
SP.UserCustomActionScope = function() {
};
SP.UserCustomActionScope.prototype = {
unknown: 0,
site: 2,
web: 3,
list: 4
};
SP.UserCustomActionScope.registerEnum('SP.UserCustomActionScope', false);
SP.ViewScope = function() {
};
SP.ViewScope.prototype = {
defaultValue: 0,
recursive: 1,
recursiveAll: 2,
filesOnly: 3
};
SP.ViewScope.registerEnum('SP.ViewScope', false);
SP.ViewType = function() {
};
SP.ViewType.prototype = {
none: 0,
html: 1,
grid: 2048,
calendar: 524288,
recurrence: 8193,
chart: 131072,
gantt: 67108864
};
SP.ViewType.registerEnum('SP.ViewType', false);
SP.ClientContext = function SP_ClientContext(serverRelativeUrlOrFullUrl) {
SP.ClientContext.initializeBase(this, [SP.ScriptUtility.isNullOrUndefined(serverRelativeUrlOrFullUrl) ? SP.ClientContext.$4v() : serverRelativeUrlOrFullUrl]);
this.set_formDigestHandlingEnabled(true);
};
SP.ClientContext.$4v = function SP_ClientContext$$4v() {
var $v_0 = window._spPageContextInfo;
if ($v_0) {
return $v_0.webServerRelativeUrl;
}
throw Error.invalidOperation(SP.ResResources.getString(SP.ResourceStrings.cannotFindContextWebServerRelativeUrl));
};
SP.ClientContext.get_current = function SP_ClientContext$get_current() {
if (!SP.ClientContext.$p) {
var $v_0 = null;
var $v_1 = window._spPageContextInfo;
var $v_2 = false;
if ($v_1) {
$v_0 = $v_1.webServerRelativeUrl;
}
if (SP.ScriptUtility.isNullOrEmptyString($v_0)) {
$v_0 = window.location.href;
var $v_3 = $v_0.indexOf('?');
if ($v_3 > 0) {
$v_0 = $v_0.substr(0, $v_3);
}
$v_3 = $v_0.indexOf('#');
if ($v_3 > 0) {
$v_0 = $v_0.substr(0, $v_3);
}
var $v_4 = false;
var $v_5 = $v_0.toLowerCase();
var $v_6 = ['/_layouts', '/_vti_bin'];
for (var $v_7 = 0; $v_7 < $v_6.length; $v_7++) {
$v_3 = $v_5.indexOf($v_6[$v_7]);
if ($v_3 > 0) {
$v_0 = $v_0.substr(0, $v_3);
$v_4 = true;
break;
}
}
if (!$v_4) {
$v_3 = $v_0.lastIndexOf('.');
var $v_8 = $v_0.lastIndexOf('/');
if ($v_3 > 0 && $v_3 > $v_8) {
$v_0 = $v_0.substr(0, $v_3);
}
}
$v_2 = true;
}
SP.ClientContext.$p = new SP.ClientContext($v_0);
SP.ClientContext.$p.set_isPageUrl($v_2);
}
return SP.ClientContext.$p;
};
SP.ClientContext.prototype = {
$F_1: null,
get_web: function SP_ClientContext$get_web() {
if (!this.$F_1) {
var $v_0 = SP.RequestContext.getCurrent(this);
this.$F_1 = $v_0.get_web();
}
return this.$F_1;
},
$N_1: null,
get_site: function SP_ClientContext$get_site() {
if (!this.$N_1) {
var $v_0 = SP.RequestContext.getCurrent(this);
this.$N_1 = $v_0.get_site();
}
return this.$N_1;
},
get_serverVersion: function SP_ClientContext$get_serverVersion() {
return this.get_serverLibraryVersion();
}
};
SP.ULS = function SP_ULS() {
};
SP.ULS.$3c = function SP_ULS$$3c() {
if (SP.ULS.$3N) {
return null;
}
var $v_0 = window.top.s_sp_debugWindow;
if (SP.ScriptUtility.isNullOrUndefined($v_0) || $v_0.closed) {
try {
$v_0 = window.open('/_layouts/' + SP.OfficeVersion.majorVersion + '/blank.htm', null, 'width=400,height=200,scrollbars=yes,resizable=yes,status=no,location=no,menubar=no,toolbar=no');
}
catch ($$e_1) {
SP.ULS.$3N = true;
}
if ($v_0) {
window.setTimeout(SP.ULS.$4w, 100);
}
window.top.s_sp_debugWindow = $v_0;
}
return $v_0;
};
SP.ULS.$4w = function SP_ULS$$4w() {
var $v_0 = window.top.s_sp_debugWindow;
if (!$v_0) {
return;
}
try {
var $v_1 = $v_0.document;
var $v_2;
$v_2 = $v_1.createElement('DIV');
$v_1.body.appendChild($v_2);
var $v_3 = $v_1.createElement('INPUT');
$v_3.setAttribute('type', 'checkbox');
$v_3.id = 'UlsConfigTraceApi';
$v_2.appendChild($v_3);
$v_2.appendChild($v_1.createTextNode('Trace API'));
$v_2 = $v_1.createElement('DIV');
$v_2.id = 'UlsLogs';
$v_1.body.appendChild($v_2);
$v_2 = $v_1.getElementById('UlsLogs');
$v_2.appendChild($v_1.createTextNode('Use double-click to clear the entries.'));
$addHandler($v_1.body, 'dblclick', SP.ULS.$4h);
$addHandler($v_3, 'click', SP.ULS.$5K);
$v_1.title = 'Debug Output';
}
catch ($$e_4) { }
};
SP.ULS.get_enabled = function SP_ULS$get_enabled() {
return SP.ULS.$f;
};
SP.ULS.set_enabled = function SP_ULS$set_enabled(value) {
SP.ULS.$f = value;
return value;
};
SP.ULS.log = function SP_ULS$log(debugMessage) {
if (!SP.ULS.$f) {
return;
}
var $v_0 = (new Date()).format('hh:mm:ss.ffff');
var $v_1 = SP.ULS.$K + debugMessage;
if (SP.ULS.$E) {
for (var $v_3 = 0; $v_3 < SP.ULS.$E.length; $v_3++) {
var $v_4 = SP.ULS.$E[$v_3];
var $v_5 = SP.ULS.$3g($v_4['time'], $v_4['msg']);
if (!$v_5) {
SP.ULS.$4d($v_0, $v_1);
return;
}
}
SP.ULS.$E = null;
}
var $v_2 = SP.ULS.$3g($v_0, $v_1);
if (!$v_2) {
SP.ULS.$4d($v_0, $v_1);
}
};
SP.ULS.$4d = function SP_ULS$$4d($p0, $p1) {
if (!SP.ULS.$E) {
SP.ULS.$E = new Array(0);
}
var $v_0 = {};
$v_0['time'] = $p0;
$v_0['msg'] = $p1;
SP.ULS.$E[SP.ULS.$E.length] = $v_0;
};
SP.ULS.$3g = function SP_ULS$$3g($p0, $p1) {
var $v_0 = SP.ULS.$3c();
if ($v_0) {
try {
var $v_1 = $v_0.document.createElement('DIV');
$v_1.style.fontSize = '8pt';
$v_1.style.fontFamily = 'Consolas, Courier, Sans-Serif';
if (SP.ULS.$1c) {
$v_1.style.backgroundColor = 'gray';
}
SP.ULS.$1c = !SP.ULS.$1c;
var $v_2 = $v_0.document.createElement('SPAN');
$v_2.style.fontWeight = 'bold';
var $v_3 = $v_0.document.createElement('SPAN');
$v_1.appendChild($v_2);
$v_1.appendChild($v_3);
var $v_4 = $v_0.document.getElementById('UlsLogs');
if ($v_4) {
$v_4.appendChild($v_1);
SP.UI.UIUtility.setInnerText($v_2, $p0);
SP.UI.UIUtility.setInnerText($v_3, $p1);
return true;
}
}
catch ($$e_7) { }
}
return false;
};
SP.ULS.$4h = function SP_ULS$$4h($p0) {
var $v_0 = SP.ULS.$3c();
if ($v_0 && $v_0.document) {
($v_0.document.getElementById('UlsLogs')).innerHTML = '';
}
};
SP.ULS.$5K = function SP_ULS$$5K($p0) {
SP.ULS.$1d = $p0.target.checked;
};
SP.ULS.increaseIndent = function SP_ULS$increaseIndent() {
SP.ULS.$3O++;
SP.ULS.$K = SP.ULS.$K + String.fromCharCode(160);
};
SP.ULS.decreaseIndent = function SP_ULS$decreaseIndent() {
SP.ULS.$3O--;
if (SP.ULS.$K.length > 0) {
SP.ULS.$K = SP.ULS.$K.substr(0, SP.ULS.$K.length - 1);
}
};
SP.ULS.traceApiEnter = function SP_ULS$traceApiEnter(functionName) {
if (!SP.ULS.$f) {
return;
}
if (!SP.ULS.$1d) {
return;
}
SP.ULS.$3P.push(functionName);
var $v_0 = 'Enter ' + functionName + '(';
for (var $v_1 = 1; $v_1 < arguments.length; $v_1++) {
var $v_2 = arguments[$v_1];
if ($v_1 !== 1) {
$v_0 = $v_0 + ', ';
}
switch (typeof $v_2) {
case 'number':
$v_0 = $v_0 + $v_2.toString();
break;
case 'string':
$v_0 = $v_0 + $v_2;
break;
case 'boolean':
$v_0 = $v_0 + $v_2.toString();
break;
case 'object':
$v_0 = $v_0 + '[object]';
break;
default:
$v_0 = $v_0 + '[unknownobj]';
break;
}
}
$v_0 += ')';
SP.ULS.log($v_0);
SP.ULS.increaseIndent();
};
SP.ULS.traceApiLeave = function SP_ULS$traceApiLeave() {
if (!SP.ULS.$f) {
return;
}
if (!SP.ULS.$1d) {
return;
}
SP.ULS.decreaseIndent();
var $v_0 = SP.ULS.$3P.pop();
var $v_1 = 'Leave ' + $v_0;
SP.ULS.log($v_1);
};
SP.AccessRequests = function SP_AccessRequests() {
};
SP.AccessRequests.changeRequestStatus = function SP_AccessRequests$changeRequestStatus(context, itemId, newStatus, convStr, permType, permissionLevel) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{e7dae9f6-8aa5-4b86-92c8-61941d774c44}', 'ChangeRequestStatus', [itemId, newStatus, convStr, permType, permissionLevel]);
context.addQuery($v_0);
};
SP.AccessRequests.changeRequestStatusBulk = function SP_AccessRequests$changeRequestStatusBulk(context, requestIds, newStatus) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{e7dae9f6-8aa5-4b86-92c8-61941d774c44}', 'ChangeRequestStatusBulk', [requestIds, newStatus]);
context.addQuery($v_0);
};
SP.AlternateUrl = function SP_AlternateUrl(context, objectPath) {
SP.AlternateUrl.initializeBase(this, [context, objectPath]);
};
SP.AlternateUrl.prototype = {
get_uri: function SP_AlternateUrl$get_uri() {
this.checkUninitializedProperty('Uri');
return ((this.get_objectData()).get_properties())['Uri'];
},
get_urlZone: function SP_AlternateUrl$get_urlZone() {
this.checkUninitializedProperty('UrlZone');
return ((this.get_objectData()).get_properties())['UrlZone'];
},
initPropertiesFromJson: function SP_AlternateUrl$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.Uri;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['Uri'] = SP.DataConvert.fixupType(this.get_context(), $v_0);
delete parentNode.Uri;
}
$v_0 = parentNode.UrlZone;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['UrlZone'] = SP.DataConvert.fixupType(this.get_context(), $v_0);
delete parentNode.UrlZone;
}
}
};
SP.AlternateUrlPropertyNames = function SP_AlternateUrlPropertyNames() {
};
SP.App = function SP_App(context, objectPath) {
SP.App.initializeBase(this, [context, objectPath]);
};
SP.App.prototype = {
get_assetId: function SP_App$get_assetId() {
this.checkUninitializedProperty('AssetId');
return ((this.get_objectData()).get_properties())['AssetId'];
},
get_contentMarket: function SP_App$get_contentMarket() {
this.checkUninitializedProperty('ContentMarket');
return ((this.get_objectData()).get_properties())['ContentMarket'];
},
get_versionString: function SP_App$get_versionString() {
this.checkUninitializedProperty('VersionString');
return ((this.get_objectData()).get_properties())['VersionString'];
},
initPropertiesFromJson: function SP_App$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.AssetId;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['AssetId'] = $v_0;
delete parentNode.AssetId;
}
$v_0 = parentNode.ContentMarket;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['ContentMarket'] = $v_0;
delete parentNode.ContentMarket;
}
$v_0 = parentNode.VersionString;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['VersionString'] = $v_0;
delete parentNode.VersionString;
}
}
};
SP.AppPropertyNames = function SP_AppPropertyNames() {
};
SP.AppCatalog = function SP_AppCatalog() {
};
SP.AppCatalog.getAppInstances = function SP_AppCatalog$getAppInstances(context, web) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.ClientObjectList(context, new SP.ObjectPathStaticMethod(context, '{79cdee9f-257e-423b-9e94-e6404659f7ea}', 'GetAppInstances', [web]), SP.AppInstance);
return $v_0;
};
SP.AppCatalog.getDeveloperSiteAppInstancesByIds = function SP_AppCatalog$getDeveloperSiteAppInstancesByIds(context, site, appInstanceIds) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
$v_0 = new SP.ClientObjectList(context, new SP.ObjectPathStaticMethod(context, '{79cdee9f-257e-423b-9e94-e6404659f7ea}', 'GetDeveloperSiteAppInstancesByIds', [site, appInstanceIds]), SP.AppInstance);
return $v_0;
};
SP.AppCatalog.isAppSideloadingEnabled = function SP_AppCatalog$isAppSideloadingEnabled(context) {
if (!context) {
throw Error.argumentNull('context');
}
var $v_0;
var $v_1 = new SP.ClientActionInvokeStaticMethod(context, '{79cdee9f-257e-423b-9e94-e6404659f7ea}', 'IsAppSideloadingEnabled', null);
context.addQuery($v_1);
$v_0 = new SP.BooleanResult();
context.addQueryIdAndResultObject($v_1.get_id(), $v_0);
return $v_0;
};
SP.AppContextSite = function SP_AppContextSite(context, siteUrl) {
SP.AppContextSite.initializeBase(this, [context, SP.ClientUtility.getOrCreateObjectPathForConstructor(context, '{5530f782-6a0d-41ec-bfd9-2cb628fe1557}', arguments)]);
};
SP.AppContextSite.newObject = function SP_AppContextSite$newObject(context, siteUrl) {
return new SP.AppContextSite(context, new SP.ObjectPathConstructor(context, '{5530f782-6a0d-41ec-bfd9-2cb628fe1557}', [siteUrl]));
};
SP.AppContextSite.prototype = {
get_site: function SP_AppContextSite$get_site() {
var $v_0 = ((this.get_objectData()).get_clientObjectProperties())['Site'];
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new SP.Site(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Site'));
((this.get_objectData()).get_clientObjectProperties())['Site'] = $v_0;
}
return $v_0;
},
get_web: function SP_AppContextSite$get_web() {
var $v_0 = ((this.get_objectData()).get_clientObjectProperties())['Web'];
if (SP.ScriptUtility.isUndefined($v_0)) {
$v_0 = new SP.Web(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Web'));
((this.get_objectData()).get_clientObjectProperties())['Web'] = $v_0;
}
return $v_0;
},
initPropertiesFromJson: function SP_AppContextSite$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.Site;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.updateClientObjectPropertyType('Site', this.get_site(), $v_0);
(this.get_site()).fromJson($v_0);
delete parentNode.Site;
}
$v_0 = parentNode.Web;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.updateClientObjectPropertyType('Web', this.get_web(), $v_0);
(this.get_web()).fromJson($v_0);
delete parentNode.Web;
}
}
};
SP.AppContextSiteObjectPropertyNames = function SP_AppContextSiteObjectPropertyNames() {
};
SP.AppInstance = function SP_AppInstance(context, objectPath) {
SP.AppInstance.initializeBase(this, [context, objectPath]);
};
SP.AppInstance.prototype = {
get_appPrincipalId: function SP_AppInstance$get_appPrincipalId() {
this.checkUninitializedProperty('AppPrincipalId');
return ((this.get_objectData()).get_properties())['AppPrincipalId'];
},
get_appWebFullUrl: function SP_AppInstance$get_appWebFullUrl() {
this.checkUninitializedProperty('AppWebFullUrl');
return ((this.get_objectData()).get_properties())['AppWebFullUrl'];
},
get_id: function SP_AppInstance$get_id() {
this.checkUninitializedProperty('Id');
return ((this.get_objectData()).get_properties())['Id'];
},
get_inError: function SP_AppInstance$get_inError() {
this.checkUninitializedProperty('InError');
return ((this.get_objectData()).get_properties())['InError'];
},
get_startPage: function SP_AppInstance$get_startPage() {
this.checkUninitializedProperty('StartPage');
return ((this.get_objectData()).get_properties())['StartPage'];
},
get_remoteAppUrl: function SP_AppInstance$get_remoteAppUrl() {
this.checkUninitializedProperty('RemoteAppUrl');
return ((this.get_objectData()).get_properties())['RemoteAppUrl'];
},
get_settingsPageUrl: function SP_AppInstance$get_settingsPageUrl() {
this.checkUninitializedProperty('SettingsPageUrl');
return ((this.get_objectData()).get_properties())['SettingsPageUrl'];
},
get_siteId: function SP_AppInstance$get_siteId() {
this.checkUninitializedProperty('SiteId');
return ((this.get_objectData()).get_properties())['SiteId'];
},
get_status: function SP_AppInstance$get_status() {
this.checkUninitializedProperty('Status');
return ((this.get_objectData()).get_properties())['Status'];
},
get_title: function SP_AppInstance$get_title() {
this.checkUninitializedProperty('Title');
return ((this.get_objectData()).get_properties())['Title'];
},
get_webId: function SP_AppInstance$get_webId() {
this.checkUninitializedProperty('WebId');
return ((this.get_objectData()).get_properties())['WebId'];
},
initPropertiesFromJson: function SP_AppInstance$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.AppPrincipalId;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['AppPrincipalId'] = $v_0;
delete parentNode.AppPrincipalId;
}
$v_0 = parentNode.AppWebFullUrl;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['AppWebFullUrl'] = SP.DataConvert.fixupType(this.get_context(), $v_0);
delete parentNode.AppWebFullUrl;
}
$v_0 = parentNode.Id;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['Id'] = $v_0;
delete parentNode.Id;
}
$v_0 = parentNode.InError;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['InError'] = $v_0;
delete parentNode.InError;
}
$v_0 = parentNode.StartPage;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['StartPage'] = SP.DataConvert.fixupType(this.get_context(), $v_0);
delete parentNode.StartPage;
}
$v_0 = parentNode.RemoteAppUrl;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['RemoteAppUrl'] = SP.DataConvert.fixupType(this.get_context(), $v_0);
delete parentNode.RemoteAppUrl;
}
$v_0 = parentNode.SettingsPageUrl;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['SettingsPageUrl'] = SP.DataConvert.fixupType(this.get_context(), $v_0);
delete parentNode.SettingsPageUrl;
}
$v_0 = parentNode.SiteId;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['SiteId'] = $v_0;
delete parentNode.SiteId;
}
$v_0 = parentNode.Status;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['Status'] = SP.DataConvert.fixupType(this.get_context(), $v_0);
delete parentNode.Status;
}
$v_0 = parentNode.Title;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['Title'] = $v_0;
delete parentNode.Title;
}
$v_0 = parentNode.WebId;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['WebId'] = $v_0;
delete parentNode.WebId;
}
},
getErrorDetails: function SP_AppInstance$getErrorDetails() {
var $v_0 = this.get_context();
var $v_1;
$v_1 = new SP.ClientObjectList($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetErrorDetails', null), SP.AppInstanceErrorDetails);
return $v_1;
},
uninstall: function SP_AppInstance$uninstall() {
var $v_0 = this.get_context();
var $v_1;
var $v_2 = new SP.ClientActionInvokeMethod(this, 'Uninstall', null);
$v_0.addQuery($v_2);
$v_1 = new SP.GuidResult();
$v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);
return $v_1;
},
upgrade: function SP_AppInstance$upgrade(appPackageStream) {
var $v_0 = this.get_context();
var $v_1 = new SP.ClientActionInvokeMethod(this, 'Upgrade', [appPackageStream]);
$v_0.addQuery($v_1);
},
cancelAllJobs: function SP_AppInstance$cancelAllJobs() {
var $v_0 = this.get_context();
var $v_1;
var $v_2 = new SP.ClientActionInvokeMethod(this, 'CancelAllJobs', null);
$v_0.addQuery($v_2);
$v_1 = new SP.BooleanResult();
$v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);
return $v_1;
},
install: function SP_AppInstance$install() {
var $v_0 = this.get_context();
var $v_1;
var $v_2 = new SP.ClientActionInvokeMethod(this, 'Install', null);
$v_0.addQuery($v_2);
$v_1 = new SP.GuidResult();
$v_0.addQueryIdAndResultObject($v_2.get_id(), $v_1);
return $v_1;
},
getPreviousAppVersion: function SP_AppInstance$getPreviousAppVersion() {
var $v_0 = this.get_context();
var $v_1;
$v_1 = new SP.App($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetPreviousAppVersion', null));
return $v_1;
},
retryAllJobs: function SP_AppInstance$retryAllJobs() {
var $v_0 = this.get_context();
var $v_1 = new SP.ClientActionInvokeMethod(this, 'RetryAllJobs', null);
$v_0.addQuery($v_1);
}
};
SP.AppInstancePropertyNames = function SP_AppInstancePropertyNames() {
};
SP.AppInstanceErrorDetails = function SP_AppInstanceErrorDetails(context, objectPath) {
SP.AppInstanceErrorDetails.initializeBase(this, [context, objectPath]);
};
SP.AppInstanceErrorDetails.prototype = {
get_correlationId: function SP_AppInstanceErrorDetails$get_correlationId() {
this.checkUninitializedProperty('CorrelationId');
return ((this.get_objectData()).get_properties())['CorrelationId'];
},
set_correlationId: function SP_AppInstanceErrorDetails$set_correlationId(value) {
((this.get_objectData()).get_properties())['CorrelationId'] = value;
if (this.get_context()) {
(this.get_context()).addQuery(new SP.ClientActionSetProperty(this, 'CorrelationId', value));
}
return value;
},
get_errorDetail: function SP_AppInstanceErrorDetails$get_errorDetail() {
this.checkUninitializedProperty('ErrorDetail');
return ((this.get_objectData()).get_properties())['ErrorDetail'];
},
get_errorType: function SP_AppInstanceErrorDetails$get_errorType() {
this.checkUninitializedProperty('ErrorType');
return ((this.get_objectData()).get_properties())['ErrorType'];
},
set_errorType: function SP_AppInstanceErrorDetails$set_errorType(value) {
((this.get_objectData()).get_properties())['ErrorType'] = value;
if (this.get_context()) {
(this.get_context()).addQuery(new SP.ClientActionSetProperty(this, 'ErrorType', value));
}
return value;
},
get_errorTypeName: function SP_AppInstanceErrorDetails$get_errorTypeName() {
this.checkUninitializedProperty('ErrorTypeName');
return ((this.get_objectData()).get_properties())['ErrorTypeName'];
},
get_exceptionMessage: function SP_AppInstanceErrorDetails$get_exceptionMessage() {
this.checkUninitializedProperty('ExceptionMessage');
return ((this.get_objectData()).get_properties())['ExceptionMessage'];
},
get_source: function SP_AppInstanceErrorDetails$get_source() {
this.checkUninitializedProperty('Source');
return ((this.get_objectData()).get_properties())['Source'];
},
set_source: function SP_AppInstanceErrorDetails$set_source(value) {
((this.get_objectData()).get_properties())['Source'] = value;
if (this.get_context()) {
(this.get_context()).addQuery(new SP.ClientActionSetProperty(this, 'Source', value));
}
return value;
},
get_sourceName: function SP_AppInstanceErrorDetails$get_sourceName() {
this.checkUninitializedProperty('SourceName');
return ((this.get_objectData()).get_properties())['SourceName'];
},
initPropertiesFromJson: function SP_AppInstanceErrorDetails$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.CorrelationId;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['CorrelationId'] = $v_0;
delete parentNode.CorrelationId;
}
$v_0 = parentNode.ErrorDetail;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['ErrorDetail'] = $v_0;
delete parentNode.ErrorDetail;
}
$v_0 = parentNode.ErrorType;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['ErrorType'] = SP.DataConvert.fixupType(this.get_context(), $v_0);
delete parentNode.ErrorType;
}
$v_0 = parentNode.ErrorTypeName;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['ErrorTypeName'] = $v_0;
delete parentNode.ErrorTypeName;
}
$v_0 = parentNode.ExceptionMessage;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['ExceptionMessage'] = $v_0;
delete parentNode.ExceptionMessage;
}
$v_0 = parentNode.Source;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['Source'] = SP.DataConvert.fixupType(this.get_context(), $v_0);
delete parentNode.Source;
}
$v_0 = parentNode.SourceName;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['SourceName'] = $v_0;
delete parentNode.SourceName;
}
}
};
SP.AppInstanceErrorDetailsPropertyNames = function SP_AppInstanceErrorDetailsPropertyNames() {
};
SP.AppLicense = function SP_AppLicense() {
SP.AppLicense.initializeBase(this);
};
SP.AppLicense.prototype = {
$4C_1: null,
get_rawXMLLicenseToken: function SP_AppLicense$get_rawXMLLicenseToken() {
return this.$4C_1;
},
get_typeId: function SP_AppLicense$get_typeId() {
return '{d3425bf9-fe82-4957-afda-5fbd21dabb85}';
},
writeToXml: function SP_AppLicense$writeToXml(writer, serializationContext) {
if (!writer) {
throw Error.argumentNull('writer');
}
if (!serializationContext) {
throw Error.argumentNull('serializationContext');
}
var $v_0 = ['RawXMLLicenseToken'];
SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext);
SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext);
},
initPropertiesFromJson: function SP_AppLicense$initPropertiesFromJson(parentNode) {
SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.RawXMLLicenseToken;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$4C_1 = $v_0;
delete parentNode.RawXMLLicenseToken;
}
}
};
SP.AppLicenseCollection = function SP_AppLicenseCollection() {
SP.AppLicenseCollection.initializeBase(this);
};
SP.AppLicenseCollection.prototype = {
add: function SP_AppLicenseCollection$add(item) {
this.addChild(item);
},
get_item: function SP_AppLicenseCollection$get_item(index) {
return this.getItemAtIndex(index);
},
get_typeId: function SP_AppLicenseCollection$get_typeId() {
return '{47beb529-4c4b-41ba-b717-28d18fbdf258}';
},
writeToXml: function SP_AppLicenseCollection$writeToXml(writer, serializationContext) {
if (!writer) {
throw Error.argumentNull('writer');
}
if (!serializationContext) {
throw Error.argumentNull('serializationContext');
}
SP.ClientValueObjectCollection.prototype.writeToXml.call(this, writer, serializationContext);
}
};
SP.Attachment = function SP_Attachment(context, objectPath) {
SP.Attachment.initializeBase(this, [context, objectPath]);
};
SP.Attachment.prototype = {
get_fileName: function SP_Attachment$get_fileName() {
this.checkUninitializedProperty('FileName');
return ((this.get_objectData()).get_properties())['FileName'];
},
get_serverRelativeUrl: function SP_Attachment$get_serverRelativeUrl() {
this.checkUninitializedProperty('ServerRelativeUrl');
return ((this.get_objectData()).get_properties())['ServerRelativeUrl'];
},
initPropertiesFromJson: function SP_Attachment$initPropertiesFromJson(parentNode) {
SP.ClientObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.FileName;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['FileName'] = $v_0;
delete parentNode.FileName;
}
$v_0 = parentNode.ServerRelativeUrl;
if (!SP.ScriptUtility.isUndefined($v_0)) {
((this.get_objectData()).get_properties())['ServerRelativeUrl'] = $v_0;
delete parentNode.ServerRelativeUrl;
}
},
deleteObject: function SP_Attachment$deleteObject() {
var $v_0 = this.get_context();
var $v_1 = new SP.ClientActionInvokeMethod(this, 'DeleteObject', null);
$v_0.addQuery($v_1);
this.removeFromParentCollection();
}
};
SP.AttachmentPropertyNames = function SP_AttachmentPropertyNames() {
};
SP.AttachmentCollection = function SP_AttachmentCollection(context, objectPath) {
SP.AttachmentCollection.initializeBase(this, [context, objectPath]);
};
SP.AttachmentCollection.prototype = {
itemAt: function SP_AttachmentCollection$itemAt(index) {
return this.getItemAtIndex(index);
},
get_item: function SP_AttachmentCollection$get_item(index) {
return this.getItemAtIndex(index);
},
get_childItemType: function SP_AttachmentCollection$get_childItemType() {
return SP.Attachment;
},
getByFileName: function SP_AttachmentCollection$getByFileName(fileName) {
var $v_0 = this.get_context();
var $v_1;
$v_1 = new SP.Attachment($v_0, new SP.ObjectPathMethod($v_0, this.get_path(), 'GetByFileName', [fileName]));
return $v_1;
}
};
SP.AttachmentCreationInformation = function SP_AttachmentCreationInformation() {
SP.AttachmentCreationInformation.initializeBase(this);
};
SP.AttachmentCreationInformation.prototype = {
$2A_1: null,
$2P_1: null,
get_contentStream: function SP_AttachmentCreationInformation$get_contentStream() {
return this.$2A_1;
},
set_contentStream: function SP_AttachmentCreationInformation$set_contentStream(value) {
this.$2A_1 = value;
return value;
},
get_fileName: function SP_AttachmentCreationInformation$get_fileName() {
return this.$2P_1;
},
set_fileName: function SP_AttachmentCreationInformation$set_fileName(value) {
this.$2P_1 = value;
return value;
},
get_typeId: function SP_AttachmentCreationInformation$get_typeId() {
return '{edf6309c-8142-4133-921e-4d6aec35550d}';
},
writeToXml: function SP_AttachmentCreationInformation$writeToXml(writer, serializationContext) {
if (!writer) {
throw Error.argumentNull('writer');
}
if (!serializationContext) {
throw Error.argumentNull('serializationContext');
}
var $v_0 = ['ContentStream', 'FileName'];
SP.DataConvert.writePropertiesToXml(writer, this, $v_0, serializationContext);
SP.ClientValueObject.prototype.writeToXml.call(this, writer, serializationContext);
},
initPropertiesFromJson: function SP_AttachmentCreationInformation$initPropertiesFromJson(parentNode) {
SP.ClientValueObject.prototype.initPropertiesFromJson.call(this, parentNode);
var $v_0;
$v_0 = parentNode.ContentStream;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$2A_1 = SP.DataConvert.fixupType(null, $v_0);
delete parentNode.ContentStream;
}
$v_0 = parentNode.FileName;
if (!SP.ScriptUtility.isUndefined($v_0)) {
this.$2P_1 = $v_0;
delete parentNode.FileName;
}
}
};
SP.Audit = function SP_Audit(context, objectPath) {
SP.Audit.initializeBase(this, [context, objectPath]);
};
SP.Audit.prototype = {
get_auditFlags: function SP_Audit$get_auditFlags() {
this.checkUninitializedProperty('Audi