UNPKG

sp-jsom-node

Version:

SharePoint JavaScript Object Model for Node.js

1,568 lines (1,526 loc) 1.34 MB
{ if ("undefined" == typeof g_all_modules) { g_all_modules = {}; } g_all_modules["sp.js"] = { "version": { "rmj": 16, "rmm": 0, "rup": 4810, "rpr": 1000 } }; } if (typeof spWriteProfilerMark == 'function') spWriteProfilerMark("perfMarkBegin_" + "sp.js"); 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', true); 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, recycling: 14, recycled: 15, restoring: 16, restoreCanceling: 17 }; 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.AppType = function() { }; SP.AppType.prototype = { doclib: 0, list: 1, tenant: 2, instance: 3, feature: 4, commonList: 5 }; SP.AppType.registerEnum('SP.AppType', 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, dirty: 21 }; 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', true); 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.DocumentTemplateType = function() { }; SP.DocumentTemplateType.prototype = { invalid: 0, word: 1, excel: 2, powerPoint: 3, oneNote: 4, excelForm: 5, max: 6 }; SP.DocumentTemplateType.registerEnum('SP.DocumentTemplateType', 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, webRestored: 10205, 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, issueTracking: 1100, adminTasks: 1200, healthRules: 1220, healthReports: 1221, developerSiteDraftApps: 1230, accessApp: 3100, alchemyMobileForm: 3101, alchemyApprovalWorkflow: 3102, sharingLinks: 3300 }; SP.ListTemplateType.registerEnum('SP.ListTemplateType', false); SP.MigrationJobState = function() { }; SP.MigrationJobState.prototype = { none: 0, queued: 2, processing: 4 }; SP.MigrationJobState.registerEnum('SP.MigrationJobState', false); SP.MoveOperations = function() { }; SP.MoveOperations.prototype = { none: 0, overwrite: 1, allowBrokenThickets: 8, bypassApprovePermission: 64 }; SP.MoveOperations.registerEnum('SP.MoveOperations', true); SP.OpenWebOptions = function() { }; SP.OpenWebOptions.prototype = { none: 0, initNavigationCache: 1 }; SP.OpenWebOptions.registerEnum('SP.OpenWebOptions', true); 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.PolicyTipUserAction = function() { }; SP.PolicyTipUserAction.prototype = { override: 0, reportFalsePositive: 1 }; SP.PolicyTipUserAction.registerEnum('SP.PolicyTipUserAction', false); SP.PolicyTipUserActionResult = function() { }; SP.PolicyTipUserActionResult.prototype = { none: 0, falsePositiveReported: 1, overridden: 2, falsePositiveReportedAndOverridden: 3 }; SP.PolicyTipUserActionResult.registerEnum('SP.PolicyTipUserActionResult', 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, app: 11 }; SP.RecycleBinItemType.registerEnum('SP.RecycleBinItemType', false); SP.RecycleBinOrderBy = function() { }; SP.RecycleBinOrderBy.prototype = { min: 0, defaultOrderBy: 0, title: 0, dirName: 1, author: 2, deletedDate: 3, size: 4, deletedBy: 5, none: 6, max: 6 }; SP.RecycleBinOrderBy.registerEnum('SP.RecycleBinOrderBy', false); SP.RelationshipDeleteBehaviorType = function() { }; SP.RelationshipDeleteBehaviorType.prototype = { none: 0, cascade: 1, restrict: 2 }; SP.RelationshipDeleteBehaviorType.registerEnum('SP.RelationshipDeleteBehaviorType', false); SP.RenderListDataOptions = function() { }; SP.RenderListDataOptions.prototype = { none: 0, contextInfo: 1, listData: 2, listSchema: 4, menuView: 8 }; SP.RenderListDataOptions.registerEnum('SP.RenderListDataOptions', true); 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.RuleOverrideOptions = function() { }; SP.RuleOverrideOptions.prototype = { none: 0, allow: 1, allowWithJustification: 2 }; SP.RuleOverrideOptions.registerEnum('SP.RuleOverrideOptions', false); SP.SandboxedCodeActivationCapabilities = function() { }; SP.SandboxedCodeActivationCapabilities.prototype = { check: 1, disabled: 2, enabled: 3 }; SP.SandboxedCodeActivationCapabilities.registerEnum('SP.SandboxedCodeActivationCapabilities', false); SP.SharingLinkKind = function() { }; SP.SharingLinkKind.prototype = { uninitialized: 0, direct: 1, organizationView: 2, organizationEdit: 3, anonymousView: 4, anonymousEdit: 5 }; SP.SharingLinkKind.registerEnum('SP.SharingLinkKind', false); SP.SharingOperationStatusCode = function() { }; SP.SharingOperationStatusCode.prototype = { completedSuccessfully: 0, accessRequestsQueued: 1, noResolvedUsers: -1, accessDenied: -2, crossSiteRequestNotSupported: -3, unknowError: -4 }; SP.SharingOperationStatusCode.registerEnum('SP.SharingOperationStatusCode', false); SP.SharingPermissionKind = function() { }; SP.SharingPermissionKind.prototype = { group: 0, role: 1 }; SP.SharingPermissionKind.registerEnum('SP.SharingPermissionKind', false); SP.SpecialFolderType = function() { }; SP.SpecialFolderType.prototype = { attachment: 0, photos: 1, cameraRoll: 2, music: 3, apps: 4, appRoot: 5 }; SP.SpecialFolderType.registerEnum('SP.SpecialFolderType', false); SP.SPEffectiveInformationRightsManagementSettingsSource = function() { }; SP.SPEffectiveInformationRightsManagementSettingsSource.prototype = { none: 0, file: 1, list: 2, rule: 3 }; SP.SPEffectiveInformationRightsManagementSettingsSource.registerEnum('SP.SPEffectiveInformationRightsManagementSettingsSource', 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.UserResourceScope = function() { }; SP.UserResourceScope.prototype = { web: 0, list: 1 }; SP.UserResourceScope.registerEnum('SP.UserResourceScope', false); SP.UserResourceType = function() { }; SP.UserResourceType.prototype = { singleLine: 0, multiLine: 1 }; SP.UserResourceType.registerEnum('SP.UserResourceType', false); SP.UserSharingCapabilities = function() { }; SP.UserSharingCapabilities.prototype = { none: 0, canShareInternally: 1, canShareExternally: 2, canUseReadonlyLink: 4, canManageReadonlyLink: 8, canUseReadWriteLink: 16, canManageReadWriteLink: 32, canUseOrganizationReadonlyLink: 64, canManageOrganizationReadonlyLink: 128, canUseOrganizationReadWriteLink: 256, canManageOrganizationReadWriteLink: 512 }; SP.UserSharingCapabilities.registerEnum('SP.UserSharingCapabilities', true); 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.$7c() : serverRelativeUrlOrFullUrl]); this.set_formDigestHandlingEnabled(true); }; SP.ClientContext.$7c = function SP_ClientContext$$7c$st() { var $v_0 = window._spPageContextInfo; if ($v_0) { return $v_0.webServerRelativeUrl; } throw Error.invalidOperation(SP.ResResources.getString('CannotFindContextWebServerRelativeUrl')); }; SP.ClientContext.get_current = function SP_ClientContext$get_current$st() { if (!SP.ClientContext.$1q) { 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('.'); if ($v_3 > 0) { $v_0 = $v_0.substr(0, $v_3); } } $v_2 = true; } SP.ClientContext.$1q = new SP.ClientContext($v_0); SP.ClientContext.$1q.set_isPageUrl($v_2); } return SP.ClientContext.$1q; }; SP.ClientContext.prototype = { $L_1: null, get_web: function SP_ClientContext$get_web$in() { if (!this.$L_1) { var $v_0 = SP.RequestContext.getCurrent(this); this.$L_1 = $v_0.get_web(); } return this.$L_1; }, $W_1: null, get_site: function SP_ClientContext$get_site$in() { if (!this.$W_1) { var $v_0 = SP.RequestContext.getCurrent(this); this.$W_1 = $v_0.get_site(); } return this.$W_1; }, $16_1: null, get_requestResources: function SP_ClientContext$get_requestResources$in() { if (!this.$16_1) { this.$16_1 = new SP.RequestResources(); } return this.$16_1; }, get_$7z_1: function SP_ClientContext$get_$7z_1$in() { if (!this.$16_1) { return null; } return this.$16_1.$82_0(); }, get_serverVersion: function SP_ClientContext$get_serverVersion$in() { return this.get_serverLibraryVersion(); }, executeClientRequestAsync: function SP_ClientContext$executeClientRequestAsync$in(request, succeededCallback, failedCallback) { var $v_0 = this.get_$7z_1(); if (!SP.ScriptUtility.isNullOrEmptyString($v_0)) { ((request.get_webRequest()).get_headers())['X-SP-REQUESTRESOURCES'] = $v_0; } SP.ClientRuntimeContext.prototype.executeClientRequestAsync.call(this, request, succeededCallback, failedCallback); } }; SP.RequestResources = function SP_RequestResources() { }; SP.RequestResources.prototype = { $7_0: null, $5_0: null, $5M_0: false, $5T_0: false, $2c_0: false, $4O_0: false, get_listId: function SP_RequestResources$get_listId$in() { return this.$7_0; }, set_listId: function SP_RequestResources$set_listId$in(value) { this.$7_0 = value; return value; }, get_userInformationList: function SP_RequestResources$get_userInformationList$in() { return this.$5M_0; }, set_userInformationList: function SP_RequestResources$set_userInformationList$in(value) { this.$5M_0 = value; return value; }, get_webProperties: function SP_RequestResources$get_webProperties$in() { return this.$5T_0; }, set_webProperties: function SP_RequestResources$set_webProperties$in(value) { this.$5T_0 = value; return value; }, get_features: function SP_RequestResources$get_features$in() { return this.$2c_0; }, set_features: function SP_RequestResources$set_features$in(value) { this.$2c_0 = value; return value; }, get_navigationStructure: function SP_RequestResources$get_navigationStructure$in() { return this.$4O_0; }, set_navigationStructure: function SP_RequestResources$set_navigationStructure$in(value) { this.$4O_0 = value; return value; }, get_viewId: function SP_RequestResources$get_viewId$in() { return this.$5_0; }, set_viewId: function SP_RequestResources$set_viewId$in(value) { this.$5_0 = value; return value; }, $82_0: function SP_RequestResources$$82_0$in() { var $v_0 = new Sys.StringBuilder(); if (this.$5M_0) { $v_0.append('USERINFOLIST'); } if (this.$5T_0) { if (!$v_0.isEmpty()) { $v_0.append(','); } $v_0.append('WEBPROPERTIES'); } if (this.$2c_0) { if (!$v_0.isEmpty()) { $v_0.append(','); } $v_0.append('FEATURES'); } if (this.$4O_0) { if (!$v_0.isEmpty()) { $v_0.append(','); } $v_0.append('NAVIGATIONSTRUCTURE'); } if (!SP.ScriptUtility.isNullOrUndefined(this.$7_0) && !this.$7_0.equals(SP.Guid.get_empty())) { if (!$v_0.isEmpty()) { $v_0.append(','); } $v_0.append('LIST'); $v_0.append('='); $v_0.append(this.$7_0.toString()); } if (!SP.ScriptUtility.isNullOrUndefined(this.$5_0) && !this.$5_0.equals(SP.Guid.get_empty())) { if (!$v_0.isEmpty()) { $v_0.append(','); } $v_0.append('VIEW'); $v_0.append('='); $v_0.append(this.$5_0.toString()); } return $v_0.toString(); } }; SP.ULS = function SP_ULS() { }; SP.ULS.$7B = function SP_ULS$$7B$st() { if (SP.ULS.$75) { 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/' + 15 + '/blank.htm', null, 'width=400,height=200,scrollbars=yes,resizable=yes,status=no,location=no,menubar=no,toolbar=no'); } catch ($$e_1) { SP.ULS.$75 = true; } if ($v_0) { window.setTimeout(SP.ULS.$7d, 100); } window.top.s_sp_debugWindow = $v_0; } return $v_0; }; SP.ULS.$7d = function SP_ULS$$7d$st() { 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.$7M); $addHandler($v_3, 'click', SP.ULS.$83); $v_1.title = 'Debug Output'; } catch ($$e_4) { } }; SP.ULS.get_enabled = function SP_ULS$get_enabled$st() { return SP.ULS.$19; }; SP.ULS.set_enabled = function SP_ULS$set_enabled$st(value) { SP.ULS.$19 = value; return value; }; SP.ULS.log = function SP_ULS$log$st(debugMessage) { if (!SP.ULS.$19) { return; } var $v_0 = (new Date()).format('hh:mm:ss.ffff'); var $v_1 = SP.ULS.$t + debugMessage; if (SP.ULS.$1a) { for (var $v_3 = 0; $v_3 < SP.ULS.$1a.length; $v_3++) { var $v_4 = SP.ULS.$1a[$v_3]; var $v_5 = SP.ULS.$7F($v_4['time'], $v_4['msg']); if (!$v_5) { return; } } SP.ULS.$1a = null; } var $v_2 = SP.ULS.$7F($v_0, $v_1); if (!$v_2) { } }; SP.ULS.$7F = function SP_ULS$$7F$st($p0, $p1) { var $v_0 = SP.ULS.$7B(); 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.$5a) { $v_1.style.backgroundColor = 'gray'; } SP.ULS.$5a = !SP.ULS.$5a; 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.$7M = function SP_ULS$$7M$st($p0) { var $v_0 = SP.ULS.$7B(); if ($v_0 && $v_0.document) { ($v_0.document.getElementById('UlsLogs')).innerHTML = ''; } }; SP.ULS.$83 = function SP_ULS$$83$st($p0) { SP.ULS.$5b = $p0.target.checked; }; SP.ULS.increaseIndent = function SP_ULS$increaseIndent$st() { SP.ULS.$76++; SP.ULS.$t = SP.ULS.$t + String.fromCharCode(160); }; SP.ULS.decreaseIndent = function SP_ULS$decreaseIndent$st() { SP.ULS.$76--; if (SP.ULS.$t.length > 0) { SP.ULS.$t = SP.ULS.$t.substr(0, SP.ULS.$t.length - 1); } }; SP.ULS.traceApiEnter = function SP_ULS$traceApiEnter$st(functionName) { if (!SP.ULS.$19) { return; } if (!SP.ULS.$5b) { return; } SP.ULS.$77.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.increaseIndent(); }; SP.ULS.traceApiLeave = function SP_ULS$traceApiLeave$st() { if (!SP.ULS.$19) { return; } if (!SP.ULS.$5b) { return; } SP.ULS.decreaseIndent(); var $v_0 = SP.ULS.$77.pop(); var $v_1 = 'Leave ' + $v_0; }; SP.AccessRequests = function SP_AccessRequests() { }; SP.AccessRequests.changeRequestStatus = function SP_AccessRequests$changeRequestStatus$st(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$st(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.AccessRequests.updateConversation = function SP_AccessRequests$updateConversation$st(context, itemId, convStr, web) { if (!context) { throw Error.argumentNull('context'); } var $v_0 = new SP.ClientActionInvokeStaticMethod(context, '{e7dae9f6-8aa5-4b86-92c8-61941d774c44}', 'UpdateConversation', [itemId, convStr, web]); 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$in() { this.checkUninitializedProperty('Uri'); return ((this.get_objectData()).get_properties())['Uri']; }, get_urlZone: function SP_AlternateUrl$get_urlZone$in() { this.checkUninitializedProperty('UrlZone'); return ((this.get_objectData()).get_properties())['UrlZone']; }, initPropertiesFromJson: function SP_AlternateUrl$initPropertiesFromJson$in(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$in() { this.checkUninitializedProperty('AssetId'); return ((this.get_objectData()).get_properties())['AssetId']; }, get_contentMarket: function SP_App$get_contentMarket$in() { this.checkUninitializedProperty('ContentMarket'); return ((this.get_objectData()).get_properties())['ContentMarket']; }, get_versionString: function SP_App$get_versionString$in() { this.checkUninitializedProperty('VersionString'); return ((this.get_objectData()).get_properties())['VersionString']; }, initPropertiesFromJson: function SP_App$initPropertiesFromJson$in(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$st(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.getAppInstance = function SP_AppCatalog$getAppInstance$st(context, web, appInstanceId) { if (!context) { throw Error.argumentNull('context'); } var $v_0; $v_0 = new SP.AppInstance(context, new SP.ObjectPathStaticMethod(context, '{79cdee9f-257e-423b-9e94-e6404659f7ea}', 'GetAppInstance', [web, appInstanceId])); return $v_0; }; SP.AppCatalog.getDeveloperSiteAppInstancesByIds = function SP_AppCatalog$getDeveloperSiteAppInstancesByIds$st(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$st(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.AppCatalog.getAppDetails = function SP_AppCatalog$getAppDetails$st(context, web, appInstance) { if (!context) { throw Error.argumentNull('context'); } var $v_0; $v_0 = new Microsoft.SharePoint.Packaging.AppDetails(context, new SP.ObjectPathStaticMethod(context, '{79cdee9f-257e-423b-9e94-e6404659f7ea}', 'GetAppDetails', [web, appInstance])); return $v_0; }; SP.AppCatalog.getAppPermissionDescriptions = function SP_AppCatalog$getAppPermissionDescriptions$st(context, web, appInstance) { if (!context) { throw Error.argumentNull('context'); } var $v_0; var $v_1 = new SP.ClientActionInvokeStaticMethod(context, '{79cdee9f-257e-423b-9e94-e6404659f7ea}', 'GetAppPermissionDescriptions', [web, appInstance]); context.addQuery($v_1); $v_0 = []; 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$st(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$in() { 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$in() { var $v_0 = ((this.get_objectData()).get_clientObjectProperties())['Web']; if (SP.ScriptUtility.isUndefined($v_0)) { $v_0 = new SP.Web(this.get_context(), new SP.ObjectPathProperty(this.get_context(), this.get_path(), 'Web')); ((this.get_objectData()).get_clientObjectProperties())['Web'] = $v_0; } return $v_0; }, initPropertiesFromJson: function SP_AppContextSite$initPropertiesFromJson$in(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.getAppIcon = function SP_AppInstance$getAppIcon$st(context, hostWeb, appinstanceId, packageFingerprint) { if (!context) { throw Error.argumentNull('context'); } var $v_0; $v_0 = new Microsoft.SharePoint.Packaging.AppIconInfo(context, new SP.ObjectPathStaticMethod(context, '{211a55df-058b-4917-ac93-2b5e08b1a9fd}', 'GetAppIcon', [hostWeb, appinstanceId, packageFingerprint])); return $v_0; }; SP.AppInstance.prototype = { get_appPrincipalId: function SP_AppInstance$get_appPrincipalId$in() { this.checkUninitializedProperty('AppPrincipalId'); return ((this.get_objectData()).get_properties())['AppPrincipalId']; }, get_appWebFullUrl: function SP_AppInstance$get_appWebFullUrl$in() { this.checkUninitializedProperty('AppWebFullUrl'); return ((this.get_objectData()).get_properties())['AppWebFullUrl']; }, get_id: function SP_AppInstance$get_id$in() { this.checkUninitializedProperty('Id'); return ((this.get_objectData()).get_properties())['Id']; }, get_imageFallbackUrl: function SP_AppInstance$get_imageFallbackUrl$in() { this.checkUninitializedProperty('ImageFallbackUrl'); return ((this.get_objectData()).get_properties())['ImageFallbackUrl']; }, get_imageUrl: function SP_AppInstance$get_imageUrl$in() { this.checkUninitializedProperty('ImageUrl'); return ((this.get_objectData()).get_properties())['ImageUrl']; }, get_inError: function SP_AppInstance$get_inError$in() { this.checkUninitializedProperty('InError'); return ((this.get_objectData()).get_properties())['InError']; }, get_startPage: function SP_AppInstance$get_startPage$in() { this.checkUninitializedProperty('StartPage'); return ((this.get_objectData()).get_properties())['StartPage']; }, get_packageFingerprint: function SP_AppInstance$get_packageFingerprint$in() { this.checkUninitializedProperty('PackageFingerprint'); return ((this.get_objectData()).get_properties())['PackageFingerprint']; }, get_productId: function SP_AppInstance$get_productId$in() { this.checkUninitializedProperty('ProductId'); return ((this.get_objectData()).get_properties())['ProductId']; }, get_remoteAppUrl: function SP_AppInstance$get_remoteAppUrl$in() { this.checkUninitializedProperty('RemoteAppUrl'); return ((this.get_objectData()).get_properties())['RemoteAppUrl']; }, get_settingsPageUrl: function SP_AppInstance$get_settingsPageUrl$in() { this.checkUninitializedProperty('SettingsPageUrl'); return ((this.get_objectData()).get_properties())['SettingsPageUrl']; }, get_siteId: function SP_AppInstance$get_siteId$in() { this.checkUninitializedProperty('SiteId'); return ((this.get_objectData()).get_properties())['SiteId']; }, get_status: function SP_AppInstance$get_status$in() { this.checkUninitializedProperty('Status'); return ((this.get_objectData()).get_properties())['Status']; }, get_title: function SP_AppInstance$get_title$in() { this.checkUninitializedProperty('Title'); return ((this.get_objectData()).get_properties())['Title']; }, get_webId: function SP_AppInstance$get_webId$in() { this.checkUninitializedProperty('WebId'); return ((this.get_objectData()).get_properties())['WebId']; }, initPropertiesFromJson: function SP_AppInstance$initPropertiesFromJson$in(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.ImageFallbackUrl; if (!SP.ScriptUtility.isUndefined($v_0)) { ((this.get_objectData()).get_properties())['ImageFallbackUrl'] = SP.DataConvert.fixupType(this.get_context(), $v_0); delete parentNode.ImageFallbackUrl; } $v_0 = parentNode.ImageUrl; if (!SP.ScriptUtility.isUndefined($v_0)) { ((this.get_objectData()).get_properties())['ImageUrl'] = SP.DataConvert.fixupType(this.get_context(), $v_0); delete parentNode.ImageUrl; } $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.PackageFingerprint; if (!SP.ScriptUtility.isUndefined($v_0)) { ((this.get_objectData()).get_properties())['PackageFingerprint'] = SP.DataConvert.fixupType(this.get_context(), $v_0); delete parentNode.PackageFingerprint; } $v_0 = parentNode.ProductId; if (!SP.ScriptUtility.isUndefined($v_0)) { ((this.get_objectData()).get_properties())['ProductId'] = $v_0; delete parentNode.ProductId; } $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$in() { 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$in() { 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$in(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$in() { var $v_0 = this.get_context(); var $v_1; var $v_2 = new SP.ClientActionInvoke