diff --git a/build/mapper/index.d.ts b/build/mapper/index.d.ts index 39f41486..fdd7522d 100644 --- a/build/mapper/index.d.ts +++ b/build/mapper/index.d.ts @@ -836,6 +836,57 @@ export declare const Mapper: { requestType: number; }; }; + tenantapp: { + Deploy: { + requestType: number; + }; + Install: { + requestType: number; + }; + query: { + argNames: string[]; + requestType: number; + }; + Remove: { + requestType: number; + }; + Retract: { + requestType: number; + }; + Upgrade: { + requestType: number; + }; + Uninstall: { + requestType: number; + }; + }; + tenantappcatalog: { + properties: string[]; + Add: { + argNames: string[]; + requestType: number; + }; + GetById: { + argNames: string[]; + name: string; + requestType: number; + returnType: string; + }; + SiteCollectionAppCatalogsSites: { + requestType: number; + }; + }; + tenantapps: { + GetById: { + argNames: string[]; + requestType: number; + returnType: string; + }; + query: { + argNames: string[]; + requestType: number; + }; + }; user: { properties: string[]; delete: { diff --git a/build/mapper/index.js b/build/mapper/index.js index 8ad19097..51c22995 100644 --- a/build/mapper/index.js +++ b/build/mapper/index.js @@ -37,6 +37,7 @@ exports.Mapper = { search: mapper_6.search, site: mapper_8.site, socialfeed: mapper_9.socialfeed, + tenantapp: mapper_8.tenantapp, tenantappcatalog: mapper_8.tenantappcatalog, tenantapps: mapper_8.tenantapps, user: mapper_10.user, users: mapper_10.users, usercustomaction: mapper_11.usercustomaction, usercustomactions: mapper_11.usercustomactions, userprofile: mapper_9.userprofile, diff --git a/build/mapper/index.js.map b/build/mapper/index.js.map index 84050546..5e7c54d1 100644 --- a/build/mapper/index.js.map +++ b/build/mapper/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mapper/index.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,yCAAuC;AACvC,iDAAuE;AACvE,wCAMuB;AACvB,wCAMuB;AACvB,kDAAyD;AACzD,0CAAyC;AACzC,4CAG2B;AAC3B,wCAGuB;AACvB,0CAKyB;AACzB,yCAIuB;AACvB,qDAAgF;AACnE,QAAA,MAAM,GAAG;IAClB,UAAU,qBAAA,EAAE,eAAe,0BAAA;IAC3B,KAAK,gBAAA;IACL,WAAW,sBAAA,EAAE,YAAY,uBAAA;IACzB,aAAa,wBAAA,EAAE,cAAc,yBAAA;IAC7B,KAAK,gBAAA,EAAE,MAAM,iBAAA;IACb,UAAU,qBAAA;IACV,IAAI,eAAA,EAAE,KAAK,gBAAA;IACX,WAAW,sBAAA,EAAE,YAAY,uBAAA;IACzB,MAAM,iBAAA,EAAE,OAAO,kBAAA;IACf,KAAK,iBAAA,EAAE,UAAU,sBAAA;IACjB,qBAAqB,gCAAA;IACrB,IAAI,eAAA,EAAE,KAAK,gBAAA;IACX,QAAQ,mBAAA,EAAE,KAAK,gBAAA;IACf,aAAa,wBAAA;IACb,YAAY,wBAAA;IACZ,aAAa,wBAAA;IACb,cAAc,yBAAA;IACd,cAAc,yBAAA,EAAE,eAAe,0BAAA;IAC/B,cAAc,yBAAA,EAAE,eAAe,0BAAA;IAC/B,MAAM,iBAAA;IACN,IAAI,eAAA;IACJ,UAAU,qBAAA;IACV,IAAI,gBAAA,EAAE,KAAK,iBAAA;IACX,gBAAgB,4BAAA,EAAE,iBAAiB,6BAAA;IACnC,WAAW,sBAAA;IACX,OAAO,kBAAA;IACP,IAAI,eAAA,EAAE,KAAK,gBAAA;IACX,mBAAmB,8BAAA;IACnB,GAAG,cAAA,EAAE,QAAQ,mBAAA,EAAE,IAAI,eAAA;CACtB,CAAC;AAEF;;GAEG;AACH,+BAAiC;AAE7B,sBAAK"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mapper/index.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,yCAAuC;AACvC,iDAAuE;AACvE,wCAMuB;AACvB,wCAMuB;AACvB,kDAAyD;AACzD,0CAAyC;AACzC,4CAG2B;AAC3B,wCAIuB;AACvB,0CAKyB;AACzB,yCAIuB;AACvB,qDAAgF;AACnE,QAAA,MAAM,GAAG;IAClB,UAAU,qBAAA,EAAE,eAAe,0BAAA;IAC3B,KAAK,gBAAA;IACL,WAAW,sBAAA,EAAE,YAAY,uBAAA;IACzB,aAAa,wBAAA,EAAE,cAAc,yBAAA;IAC7B,KAAK,gBAAA,EAAE,MAAM,iBAAA;IACb,UAAU,qBAAA;IACV,IAAI,eAAA,EAAE,KAAK,gBAAA;IACX,WAAW,sBAAA,EAAE,YAAY,uBAAA;IACzB,MAAM,iBAAA,EAAE,OAAO,kBAAA;IACf,KAAK,iBAAA,EAAE,UAAU,sBAAA;IACjB,qBAAqB,gCAAA;IACrB,IAAI,eAAA,EAAE,KAAK,gBAAA;IACX,QAAQ,mBAAA,EAAE,KAAK,gBAAA;IACf,aAAa,wBAAA;IACb,YAAY,wBAAA;IACZ,aAAa,wBAAA;IACb,cAAc,yBAAA;IACd,cAAc,yBAAA,EAAE,eAAe,0BAAA;IAC/B,cAAc,yBAAA,EAAE,eAAe,0BAAA;IAC/B,MAAM,iBAAA;IACN,IAAI,eAAA;IACJ,UAAU,qBAAA;IACV,SAAS,oBAAA,EAAE,gBAAgB,2BAAA,EAAE,UAAU,qBAAA;IACvC,IAAI,gBAAA,EAAE,KAAK,iBAAA;IACX,gBAAgB,4BAAA,EAAE,iBAAiB,6BAAA;IACnC,WAAW,sBAAA;IACX,OAAO,kBAAA;IACP,IAAI,eAAA,EAAE,KAAK,gBAAA;IACX,mBAAmB,8BAAA;IACnB,GAAG,cAAA,EAAE,QAAQ,mBAAA,EAAE,IAAI,eAAA;CACtB,CAAC;AAEF;;GAEG;AACH,+BAAiC;AAE7B,sBAAK"} \ No newline at end of file diff --git a/build/mapper/site/index.d.ts b/build/mapper/site/index.d.ts index 7012837d..625d8d79 100644 --- a/build/mapper/site/index.d.ts +++ b/build/mapper/site/index.d.ts @@ -1,3 +1,6 @@ export * from "./site"; +export * from "./tenantApp"; +export * from "./tenantApps"; +export * from "./tenantAppCatalog"; export * from "./web"; export * from "./webs"; diff --git a/build/mapper/site/mapper.d.ts b/build/mapper/site/mapper.d.ts index dc01678e..906ee075 100644 --- a/build/mapper/site/mapper.d.ts +++ b/build/mapper/site/mapper.d.ts @@ -65,6 +65,66 @@ export declare const site: { requestType: number; }; }; +/** + * Tenant App + */ +export declare const tenantapp: { + Deploy: { + requestType: number; + }; + Install: { + requestType: number; + }; + query: { + argNames: string[]; + requestType: number; + }; + Remove: { + requestType: number; + }; + Retract: { + requestType: number; + }; + Upgrade: { + requestType: number; + }; + Uninstall: { + requestType: number; + }; +}; +/** + * Tenant Apps + */ +export declare const tenantapps: { + GetById: { + argNames: string[]; + requestType: number; + returnType: string; + }; + query: { + argNames: string[]; + requestType: number; + }; +}; +/** + * Tenant App Catalog + */ +export declare const tenantappcatalog: { + properties: string[]; + Add: { + argNames: string[]; + requestType: number; + }; + GetById: { + argNames: string[]; + name: string; + requestType: number; + returnType: string; + }; + SiteCollectionAppCatalogsSites: { + requestType: number; + }; +}; /** * Web */ diff --git a/build/mapper/site/mapper.js b/build/mapper/site/mapper.js index 76aac42e..dd4a36c3 100644 --- a/build/mapper/site/mapper.js +++ b/build/mapper/site/mapper.js @@ -64,7 +64,7 @@ exports.site = { argNames: ["gWebId"], requestType: types_1.RequestType.PostWithArgsValueOnly }, - // Queries the collection + // Queries the object query: { argNames: ["oData"], requestType: types_1.RequestType.OData @@ -92,6 +92,86 @@ exports.site = { requestType: types_1.RequestType.PostWithArgs } }; +/** + * Tenant App + */ +exports.tenantapp = { + // Deploy solution package in tenant app catalog + Deploy: { + requestType: types_1.RequestType.Post + }, + // Install solution package from tenant app catalog to SharePoint site + Install: { + requestType: types_1.RequestType.Post + }, + // Queries the object + query: { + argNames: ["oData"], + requestType: types_1.RequestType.OData + }, + // Remove solution package from tenant app catalog + Remove: { + requestType: types_1.RequestType.Post + }, + // Retract solution package in the tenant app catalog + Retract: { + requestType: types_1.RequestType.Post + }, + // Upgrade solution package in SharePoint site + Upgrade: { + requestType: types_1.RequestType.Post + }, + // Uninstall solution package from SharePoint site + Uninstall: { + requestType: types_1.RequestType.Post + } +}; +/** + * Tenant Apps + */ +exports.tenantapps = { + // Get an app by id + GetById: { + argNames: ["guid"], + requestType: types_1.RequestType.GetWithArgsValueOnly, + returnType: "tenantapp" + }, + // Queries the collection + query: { + argNames: ["oData"], + requestType: types_1.RequestType.OData + } +}; +/** + * Tenant App Catalog + */ +exports.tenantappcatalog = { + /*********************************************************************************************************************************/ + // Properties + /*********************************************************************************************************************************/ + properties: [ + "AvailableApps|tenantapps|/getById('[Id]')|tenantapp" + ], + /*********************************************************************************************************************************/ + // Methods + /*********************************************************************************************************************************/ + // Adds the folder that is located at the specified URL to the collection. + Add: { + argNames: ["overwrite", "url"], + requestType: types_1.RequestType.PostWithArgs + }, + // Get an app by id. + GetById: { + argNames: ["guid"], + name: "AvailableApps/getById('[[guid]]')", + requestType: types_1.RequestType.GetReplace, + returnType: "tenantapp" + }, + // Gets the site collection app catalog sites + SiteCollectionAppCatalogsSites: { + requestType: types_1.RequestType.Post + } +}; /** * Web */ @@ -109,7 +189,8 @@ exports.web = { "ListTemplates|listtemplates|('[Name]')|listtemplate", "Navigation", "ParentWeb", "PushNotificationSubscribers", "RecycleBin", "RegionalSettings", "RoleAssignments|roleassignments|([Name])|roleassignment", "RoleDefinitions|roledefinitions|/getByName('[Name]')|roledefinition", "RootFolder|folder|/getByUrl('[Name]')|file", - "SiteGroups|sitegroups|/getByName('[Name]')|group", "SiteUserInfoList", "SiteUsers|users|/getById([Name])|user", "ThemeInfo", "TitleResource", + "SiteGroups|sitegroups|/getByName('[Name]')|group", "SiteUserInfoList", "SiteUsers|users|/getById([Name])|user", + "TenantAppCatalog|tenantappcatalog", "ThemeInfo", "TitleResource", "UserCustomActions|usercustomactions|('[Name]')|usercustomaction", "WebInfos|webinfos", "Webs|webs", "WorkflowAssociations", "WorkflowTemplates" ], /*********************************************************************************************************************************/ diff --git a/build/mapper/site/mapper.js.map b/build/mapper/site/mapper.js.map index cf993db4..e30c4ddb 100644 --- a/build/mapper/site/mapper.js.map +++ b/build/mapper/site/mapper.js.map @@ -1 +1 @@ -{"version":3,"file":"mapper.js","sourceRoot":"","sources":["../../../src/mapper/site/mapper.ts"],"names":[],"mappings":";;AAAA,qCAA0C;AAE1C;;GAEG;AACU,QAAA,IAAI,GAAG;IAChB,mIAAmI;IACnI,aAAa;IACb,mIAAmI;IACnI,UAAU,EAAE;QACR,wDAAwD,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa;QACjG,iEAAiE;KACpE;IAED,mIAAmI;IACnI,UAAU;IACV,mIAAmI;IAEnI,wIAAwI;IACxI,mBAAmB,EAAE;QACjB,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;QAClC,WAAW,EAAE,mBAAW,CAAC,YAAY;KACxC;IAED,iHAAiH;IACjH,yBAAyB,EAAE;QACvB,WAAW,EAAE,mBAAW,CAAC,IAAI;KAChC;IAED,wMAAwM;IACxM,UAAU,EAAE;QACR,QAAQ,EAAE,CAAC,aAAa,CAAC;QACzB,WAAW,EAAE,mBAAW,CAAC,qBAAqB;KACjD;IAED,wKAAwK;IACxK,UAAU,EAAE;QACR,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,YAAY,EAAE,gBAAgB;QAC9B,WAAW,EAAE,mBAAW,CAAC,kBAAkB;KAC9C;IAED,sEAAsE;IACtE,sBAAsB,EAAE;QACpB,QAAQ,EAAE,CAAC,KAAK,CAAC;QACjB,WAAW,EAAE,mBAAW,CAAC,YAAY;KACxC;IAED,mHAAmH;IACnH,eAAe,EAAE;QACb,QAAQ,EAAE,CAAC,MAAM,EAAE,qBAAqB,CAAC;QACzC,WAAW,EAAE,mBAAW,CAAC,YAAY;KACxC;IAED,2IAA2I;IAC3I,UAAU,EAAE;QACR,WAAW,EAAE,mBAAW,CAAC,IAAI;KAChC;IAED,qEAAqE;IACrE,kBAAkB,EAAE;QAChB,QAAQ,EAAE,CAAC,gBAAgB,EAAE,WAAW,CAAC;QACzC,WAAW,EAAE,mBAAW,CAAC,YAAY;KACxC;IAED,yCAAyC;IACzC,OAA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W,EAAE,mBAAW,CAAC,kBAAkB;KAC9C;CACJ,CAAC;AAEF;;GAEG;AACU,QAAA,QAAQ,GAAG;IACpB,yBAAyB;IACzB,KAAK,EAAE;QACH,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,WAAW,EAAE,mBAAW,CAAC,KAAK;KACjC;CACJ,CAAC;AAEF;;GAEG;AACU,QAAA,IAAI,GAAG;IAChB,GAAG,EAAE;QACD,QAAQ,EAAE,CAAC,YAAY,CAAC;QACxB,YAAY,EAAE,2BAA2B;QACzC,WAAW,EAAE,mBAAW,CAAC,kBAAkB;KAC9C;IAED,yBAAyB;IACzB,KAAK,EAAE;QACH,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,WAAW,EAAE,mBAAW,CAAC,KAAK;KACjC;CACJ,CAAC"} \ No newline at end of file +{"version":3,"file":"mapper.js","sourceRoot":"","sources":["../../../src/mapper/site/mapper.ts"],"names":[],"mappings":";;AAAA,qCAA0C;AAE1C;;GAEG;AACU,QAAA,IAAI,GAAG;IAChB,mIAAmI;IACnI,aAAa;IACb,mIAAmI;IACnI,UAAU,EAAE;QACR,wDAAwD,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa;QACjG,iEAAiE;KACpE;IAED,mIAAmI;IACnI,UAAU;IACV,mIAAmI;IAEnI,wIAAwI;IACxI,mBAAmB,EAAE;QACjB,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;QAClC,WAAW,EAAE,mBAAW,CAAC,YAAY;KACxC;IAED,iHAAiH;IACjH,yBAAyB,EAAE;QACvB,WAAW,EAAE,mBAAW,CAAC,IAAI;KAChC;IAED,wMAAwM;IACxM,UAAU,EAAE;QACR,QAAQ,EAAE,CAAC,aAAa,CAAC;QACzB,WAAW,EAAE,mBAAW,CAAC,qBAAqB;KACjD;IAED,wKAAwK;IACxK,UAAU,EAAE;QACR,QAAQ,EAAE,CAAC,OAAO,CAAC;QACnB,YAAY,EAAE,gBAAgB;QAC9B,WAAW,EAAE,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mapper/site/tenantApp.d.ts b/build/mapper/site/tenantApp.d.ts new file mode 100644 index 00000000..8a4cb72f --- /dev/null +++ b/build/mapper/site/tenantApp.d.ts @@ -0,0 +1,67 @@ +import { IBase } from "../../utils"; +/** + * Methods + */ +export interface ITenantAppMethods { + /** + * Deploy solution package in tenant app catalog + * Enable solution to be available to install to specific sites. This API is designed to be executed in the context of the tenant app catalog site. + */ + Deploy(): IBase; + /** + * Install solution package from tenant app catalog to SharePoint site + * Install a solution package with specific identifier from tenant app catalog to the site based on URL context. This REST call can be executed in the context of the site where the install operation should happen. + */ + Install(): IBase; + /** + * Remove solution package from tenant app catalog + * Remove the solution package from the tenant app catalog. This API is designed to be executed in the context of the tenant app catalog site. + */ + Remove(): IBase; + /** + * Retract solution package in the tenant app catalog + * Retract solution to be available from the sites. This API is designed to be executed in the context of the tenant app catalog site. + */ + Retract(): IBase; + /** + * Uninstall solution package from SharePoint site + * Uninstall a solution package from the site. This REST call can be executed in the context of the site where the uninstall operation should happen. + */ + Uninstall(): IBase; + /** + * Upgrade solution package in SharePoint site + * Upgrade a solution package from the site to a newer version available in the tenant app catalog. This REST call can be executed in the context of the site where the upgrade operation should happen. + */ + Upgrade(): IBase; +} +/** + * Properties + */ +export interface ITenantAppProps { + /** The app version. */ + AppCatalogVersion: string; + /** Flag indicating an upgrade is available. */ + CanUpgrade: boolean; + /** Flag indicating if the current version is deployed. */ + CurrentVersionDeployed: boolean; + /** Flag indicating if the app is deployed. */ + Deployed: boolean; + /** The app id. */ + ID: string; + /** The installed version. */ + InstalledVersion: string; + /** Flag indicating if this is a client-side solution. */ + IsClientSideSolution: boolean; + /** The app title. */ + Title: string; +} +/** + * Tenant App Result + */ +export interface ITenantAppResult extends ITenantAppMethods, ITenantAppProps, IBase { +} +/** + * Tenant App + */ +export interface ITenantApp extends ITenantAppMethods, IBase { +} diff --git a/build/mapper/site/tenantApp.js b/build/mapper/site/tenantApp.js new file mode 100644 index 00000000..23f7cf2e --- /dev/null +++ b/build/mapper/site/tenantApp.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=tenantApp.js.map \ No newline at end of file diff --git a/build/mapper/site/tenantApp.js.map b/build/mapper/site/tenantApp.js.map new file mode 100644 index 00000000..7a21fdad --- /dev/null +++ b/build/mapper/site/tenantApp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tenantApp.js","sourceRoot":"","sources":["../../../src/mapper/site/tenantApp.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/build/mapper/site/tenantAppCatalog.d.ts b/build/mapper/site/tenantAppCatalog.d.ts new file mode 100644 index 00000000..3cce7170 --- /dev/null +++ b/build/mapper/site/tenantAppCatalog.d.ts @@ -0,0 +1,60 @@ +import { IBase, IBaseCollection } from "../../utils"; +import { Types } from ".."; +import { ITenantApp, ITenantApps } from "."; +/** + * Tenant App Catalog Methods + */ +export interface ITenantAppCatalogMethods { + /** + * Add solution package to tenant app catalog + * Adding solution to the tenant app catalog. This API is designed to be executed in the context of the tenant app catalog site. + * @param overwrite - Flag to overwrite the solution. + * @param url - The file name of the solution. + */ + Add(overwrite?: boolean, url?: string): IBase; + /** + * Deploy solution package in tenant app catalog + * Enable solution to be available to install to specific sites. This API is designed to be executed in the context of the tenant app catalog site. + * @param guid - The app id. + */ + GetById(guid: string): ITenantApp; +} +/** + * Tenant App Catalog Properties + */ +export interface ITenantAppCatalogProps { + /** + * List available packages from tenant app catalog + * REST API for getting list of available SharePoint Framework solutions or add-ins in tenant app catalog. + */ + AvailableApps(): ITenantApps; + /** + * No documentation available. Need to research this. + */ + SiteCollectionAppCatalogsSites(): IBaseCollection; +} +/** + * Tenant App Catalog Query Properties + */ +export interface ITenantAppCatalogQueryProps { + /** + * List available packages from tenant app catalog + * REST API for getting list of available SharePoint Framework solutions or add-ins in tenant app catalog. + */ + AvailableApps(): ITenantApps; +} +/** + * Tenant App Catalog Query Result + */ +export interface ITenantAppCatalogQueryResult extends ITenantAppCatalogMethods, ITenantAppCatalogProps { +} +/** + * Tenant App Catalog Result + */ +export interface ITenantAppCatalogResult extends ITenantAppCatalogMethods, ITenantAppCatalogProps, ITenantAppCatalogQueryProps, IBase { +} +/** + * Tenant App Catalog + */ +export interface ITenantAppCatalog extends ITenantAppCatalogMethods, ITenantAppCatalogQueryProps, IBase { +} diff --git a/build/mapper/site/tenantAppCatalog.js b/build/mapper/site/tenantAppCatalog.js new file mode 100644 index 00000000..e9b63086 --- /dev/null +++ b/build/mapper/site/tenantAppCatalog.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=tenantAppCatalog.js.map \ No newline at end of file diff --git a/build/mapper/site/tenantAppCatalog.js.map b/build/mapper/site/tenantAppCatalog.js.map new file mode 100644 index 00000000..6cead355 --- /dev/null +++ b/build/mapper/site/tenantAppCatalog.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tenantAppCatalog.js","sourceRoot":"","sources":["../../../src/mapper/site/tenantAppCatalog.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/build/mapper/site/tenantApps.d.ts b/build/mapper/site/tenantApps.d.ts new file mode 100644 index 00000000..46cf1cdf --- /dev/null +++ b/build/mapper/site/tenantApps.d.ts @@ -0,0 +1,18 @@ +import { IBase, IBaseCollection } from "../../utils"; +import { ITenantApp } from "."; +/** + * Methods + */ +export interface ITenantAppsMethods { + /** + * Details on individual solution package from tenant app catalog + * REST API for getting details on individual SharePoint Framework solution or add-in available in the tenant app catalog. + * @param guid - The app id. + */ + GetById(guid: string): IBase; +} +/** + * Tenant Apps + */ +export interface ITenantApps extends ITenantAppsMethods, IBaseCollection { +} diff --git a/build/mapper/site/tenantApps.js b/build/mapper/site/tenantApps.js new file mode 100644 index 00000000..4873dc42 --- /dev/null +++ b/build/mapper/site/tenantApps.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=tenantApps.js.map \ No newline at end of file diff --git a/build/mapper/site/tenantApps.js.map b/build/mapper/site/tenantApps.js.map new file mode 100644 index 00000000..fa9dd37f --- /dev/null +++ b/build/mapper/site/tenantApps.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tenantApps.js","sourceRoot":"","sources":["../../../src/mapper/site/tenantApps.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/build/mapper/site/web.d.ts b/build/mapper/site/web.d.ts index 19312884..995b6722 100644 --- a/build/mapper/site/web.d.ts +++ b/build/mapper/site/web.d.ts @@ -1,6 +1,6 @@ import { IBase, ITargetInfo } from "../../utils"; import { Types } from ".."; -import { IWebInfo, IWebResult, IWebResults, IWebs } from "."; +import { ITenantAppCatalog, IWebInfo, IWebResult, IWebResults, IWebs } from "."; /** * Web Creation Information */ @@ -509,6 +509,8 @@ export interface IWebQueryProps { * Specifies the language code identifiers (LCIDs) of the languages that are enabled for the site. */ SupportedUILanguageIds(): IBase; + /** Gets the tenant app catalog. */ + TenantAppCatalog(): ITenantAppCatalog; /** * The theming information for this site. This includes information like colors, fonts, border radii sizes etc. */ @@ -683,6 +685,8 @@ export interface IWebQueryResult extends IWebMethods, IWebProps { * Specifies the language code identifiers (LCIDs) of the languages that are enabled for the site. */ SupportedUILanguageIds: Types.IResults; + /** Gets the tenant app catalog. */ + TenantAppCatalog: ITenantAppCatalog; /** * The theming information for this site. This includes information like colors, fonts, border radii sizes etc. */ @@ -714,7 +718,7 @@ export interface IWebQueryResult extends IWebMethods, IWebProps { /** * Web Result */ -export interface IWebResult extends IWebMethods, IWebProps, IWebQueryProps, IWebQueryProps, IBase { +export interface IWebResult extends IWebMethods, IWebProps, IWebQueryProps, IBase { } /** * Web diff --git a/build/utils/baseExecution.js b/build/utils/baseExecution.js index ef5d0e97..ba3c2dc9 100644 --- a/build/utils/baseExecution.js +++ b/build/utils/baseExecution.js @@ -85,7 +85,7 @@ var BaseExecution = /** @class */ (function (_super) { // Wait for the responses to execute this.waitForRequestsToComplete(function () { // Execute this request - _this.executeRequest(true, function () { + _this.executeRequest(true, function (response) { // See if there is a callback if (callback) { // Set the base to this object, and clear requests @@ -93,7 +93,7 @@ var BaseExecution = /** @class */ (function (_super) { _this.base = _this; _this.base.responses = []; // Execute the callback and see if it returns a promise - var returnVal = callback(_this); + var returnVal = callback(response); if (returnVal && typeof (returnVal.done) === "function") { // Wait for the promise to complete returnVal.done(function () { @@ -115,9 +115,9 @@ var BaseExecution = /** @class */ (function (_super) { } else { // Execute this request - this.executeRequest(true, function () { + this.executeRequest(true, function (response) { // Execute the callback and see if it returns a promise - var returnVal = callback ? callback(_this) : null; + var returnVal = callback ? callback(response) : null; if (returnVal && typeof (returnVal.done) === "function") { // Wait for the promise to complete returnVal.done(function () { diff --git a/build/utils/baseExecution.js.map b/build/utils/baseExecution.js.map index e2d84db6..6c320867 100644 --- a/build/utils/baseExecution.js.map +++ b/build/utils/baseExecution.js.map @@ -1 +1 @@ -{"version":3,"file":"baseExecution.js","sourceRoot":"","sources":["../../src/utils/baseExecution.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8BAAqC;AACrC,sBAA0D;AAmE1D;;GAEG;AACH;IAA8D,iCAAW;IAAzE;;IAgKA,CAAC;IAzJG,oDAAoD;IACpD,6BAAK,GAAL,UAAM,GAAI;QACN,IAAI,QAAQ,GAAG,IAAI,CAAC;QACpB,IAAI,QAAQ,GAAG,KAAK,CAAC;QAErB,gCAAgC;QAChC,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC;YAC7B,eAAe;YACf,QAAQ,GAAG,GAAG,CAAC;QACnB,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,mBAAmB;YACnB,QAAQ,GAAG,GAAG,CAAC;QACnB,CAAC;QAED,eAAe;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAW,CAAC;QAEhD,uCAAuC;QACvC,EAAE,CAAC,CAAC,QAAQ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CAAC;gBAAC,CAAC;YAC5E,CAAC;YAED,qBAAqB;YACrB,iBAAW,CAAC,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;YAE7C,uBAAuB;YACvB,QAAQ,EAAE,CAAC;QACf,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,CAAC;IACL,oBAAC;AAAD,CAAC,AAhKD,CAA8D,cAAW,GAgKxE;AAhKY,sCAAa"} \ No newline at end of file diff --git a/build/utils/baseHelper.js b/build/utils/baseHelper.js index d60fede9..3defe277 100644 --- a/build/utils/baseHelper.js +++ b/build/utils/baseHelper.js @@ -35,6 +35,14 @@ var BaseHelper = /** @class */ (function () { // Update the type objType = "items"; } + else if (/corporatecatalogappmetadata/.test(objType)) { + // Update the type + objType = "tenantapp"; + } + else if (/corporatecatalogappmetadatas/.test(objType)) { + // Update the type + objType = "tenantapps"; + } // Get the methods for the base object var methods = mapper_1.Mapper[objType]; if (methods) { diff --git a/build/utils/baseHelper.js.map b/build/utils/baseHelper.js.map index 1a7c38c1..a5409f53 100644 --- a/build/utils/baseHelper.js.map +++ b/build/utils/baseHelper.js.map @@ -1 +1 @@ -{"version":3,"file":"baseHelper.js","sourceRoot":"","sources":["../../src/utils/baseHelper.ts"],"names":[],"mappings":";;AAAA,8BAAqC;AACrC,oCAAmC;AACnC,kCAAuC;AACvC,sBAAyB;AAkCzB;;GAEG;AACH;IAAA;IAyRA,CAAC;IAnRG,2CAA2C;IAC3C,+BAAU,GAAV,UAAW,IAAU,EAAE,IAAI;QACvB,IAAI,YAAY,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;QAE3D,yBAAyB;QACzB,IAAI,QAAQ,GAAG,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAE3E,4BAA4B;QAC5B,IAAI,OAAO,GAAG,QAAQ,IAAI,QAAQ,CAAC,I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BAA0B;QAC1B,IAAI,OAAO,GAAG,iBAAW,CAAC,cAAc,CAAC,WAAW,EAAE,CAAC;QACvD,IAAI,UAAU,GAAG,IAAI,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC;QAC3G,IAAI,SAAS,GAAG,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC;QAElG,wBAAwB;QACxB,EAAE,CAAC,CAAC,OAAO,IAAI,IAAI,IAAI,UAAU,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC;YAAC,MAAM,CAAC;QAAC,CAAC;QAE3E,mCAAmC;QACnC,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAAC,MAAM,CAAC;QAAC,CAAC;QAEhD,0BAA0B;QAC1B,IAAI,CAAC,UAAU,CAAC,GAAG,GAAG,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACjE,CAAC;IACL,iBAAC;AAAD,CAAC,AAnSD,IAmSC;AAnSY,gCAAU"} \ No newline at end of file diff --git a/build/utils/baseRequest.js b/build/utils/baseRequest.js index 3a29d28d..d997b73a 100644 --- a/build/utils/baseRequest.js +++ b/build/utils/baseRequest.js @@ -102,13 +102,15 @@ var BaseRequest = /** @class */ (function (_super) { // Execute the callback callback ? callback(_this.xhr.response) : null; } - // Update the data object - _this.updateDataObject(isBatchRequest); - // Validate the data collection - isBatchRequest ? null : _this.validateDataCollectionResults().done(function () { - // Execute the callback - callback ? callback(_this) : null; - }); + else { + // Update the data object + _this.updateDataObject(isBatchRequest); + // Validate the data collection + isBatchRequest ? null : _this.validateDataCollectionResults().done(function () { + // Execute the callback + callback ? callback(_this) : null; + }); + } }); } } @@ -217,13 +219,17 @@ var BaseRequest = /** @class */ (function (_super) { BaseRequest.prototype.updateMetadataUri = function (metadata, targetInfo) { // See if this is a field if (/^SP.Field/.test(metadata.type) || /^SP\..*Field$/.test(metadata.type)) { - // Fix the uri reference + // Fix the url reference targetInfo.url = targetInfo.url.replace(/AvailableFields/, "fields"); } else if (/SP.EventReceiverDefinition/.test(metadata.type)) { - // Fix the uri reference + // Fix the url reference targetInfo.url = targetInfo.url.replace(/\/EventReceiver\//, "/EventReceivers/"); } + else if (/Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata/.test(targetInfo.url)) { + // Fix the url reference + targetInfo.url = targetInfo.url.split("Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata")[0] + "web/tenantappcatalog/availableapps/getbyid('" + this["ID"] + "')"; + } }; // Method to validate the data collection results BaseRequest.prototype.validateDataCollectionResults = function (promise) { diff --git a/build/utils/baseRequest.js.map b/build/utils/baseRequest.js.map index e596b24c..0c92b789 100644 --- a/build/utils/baseRequest.js.map +++ b/build/utils/baseRequest.js.map @@ -1 +1 @@ -{"version":3,"file":"baseRequest.js","sourceRoot":"","sources":["../../src/utils/baseRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAqD;AACrD,sBAIW;AAqCX;;GAEG;AACH;IAAiC,+BAAU;IAA3C;;IAwTA,CAAC;IAlTG,6BAA6B;IAC7B,mCAAa,GAAb,UAAc,UAAkB,EAAE,YAAyB,EAAE,IAAU;QACnE,IAAI,UAAU,GAAgB,IAAI,CAAC;QAEnC,qDAAqD;QACrD,IAAI,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC;QACrE,EAAE,CAAC,CAAC,QAAQ,IAAI,QAAQ,CAAC,GAAG,CAAC,CA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6T1C;AA7TY,kCAAW"} \ No newline at end of file diff --git a/build/utils/targetInfo.d.ts b/build/utils/targetInfo.d.ts index 6b5a3a1b..ec2a9576 100644 --- a/build/utils/targetInfo.d.ts +++ b/build/utils/targetInfo.d.ts @@ -45,20 +45,15 @@ export declare class TargetInfo { constructor(targetInfo: ITargetInfo); /*********************************************************************************************************************************/ /*********************************************************************************************************************************/ - readonly bufferFl: boolean; - readonly callback: (...args) => void; + request: ITargetInfo; readonly isBatchRequest: boolean; requestData: any; - readonly requestDigest: string; readonly requestInfo: IRequestInfo; requestHeaders: object; requestMethod: string; requestUrl: string; /*********************************************************************************************************************************/ /*********************************************************************************************************************************/ - private targetInfo; - /*********************************************************************************************************************************/ - /*********************************************************************************************************************************/ private getDomainUrl(); private static getQueryStringValue(key); private setRequestUrl(); diff --git a/build/utils/targetInfo.js b/build/utils/targetInfo.js index 6520a349..f21ab780 100644 --- a/build/utils/targetInfo.js +++ b/build/utils/targetInfo.js @@ -10,37 +10,16 @@ var TargetInfo = /** @class */ (function () { /*********************************************************************************************************************************/ function TargetInfo(targetInfo) { // Default the properties - this.targetInfo = targetInfo || {}; - this.requestData = this.targetInfo.data; - this.requestHeaders = this.targetInfo.requestHeader; - this.requestMethod = this.targetInfo.method ? this.targetInfo.method : "GET"; + this.request = targetInfo || {}; + this.requestData = this.request.data; + this.requestHeaders = this.request.requestHeader; + this.requestMethod = this.request.method ? this.request.method : "GET"; // Set the request url this.setRequestUrl(); } - Object.defineProperty(TargetInfo.prototype, "bufferFl", { - /*********************************************************************************************************************************/ - // Public Properties - /*********************************************************************************************************************************/ - // Flag to determine if the request returns an array buffer - get: function () { return this.targetInfo.bufferFl; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(TargetInfo.prototype, "callback", { - // The callback method to execute after the asynchronous request completes - get: function () { return this.targetInfo.callback; }, - enumerable: true, - configurable: true - }); Object.defineProperty(TargetInfo.prototype, "isBatchRequest", { // Flag to determine if this is a batch request - get: function () { return this.targetInfo.endpoint == "$batch"; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(TargetInfo.prototype, "requestDigest", { - // The form digest - get: function () { return this.targetInfo.requestDigest; }, + get: function () { return this.request.endpoint == "$batch"; }, enumerable: true, configurable: true }); @@ -100,23 +79,23 @@ var TargetInfo = /** @class */ (function () { }; // Method to set the request url TargetInfo.prototype.setRequestUrl = function () { - var endpoint = this.targetInfo.endpoint ? "/" + this.targetInfo.endpoint : ""; + var endpoint = this.request.endpoint ? "/" + this.request.endpoint : ""; var hostUrl = TargetInfo.getQueryStringValue("SPHostUrl"); var qs = (endpoint.indexOf("?") === -1 ? "?" : "&") + "@target='{{Target}}'"; var template = "{{Url}}/_api/{{EndPoint}}{{TargetUrl}}"; // See if we are defaulting the url for the app web - if (lib_1.ContextInfo.existsFl && lib_1.ContextInfo.window.$REST.DefaultRequestToHostFl && lib_1.ContextInfo.isAppWeb && !this.targetInfo.overrideDefaultRequestToHostFl && this.targetInfo.url == null) { + if (lib_1.ContextInfo.existsFl && lib_1.ContextInfo.window.$REST.DefaultRequestToHostFl && lib_1.ContextInfo.isAppWeb && !this.request.overrideDefaultRequestToHostFl && this.request.url == null) { // Default the url to the host web - this.targetInfo.url = hostUrl; + this.request.url = hostUrl; } // Ensure the url exists - if (this.targetInfo.url == null) { + if (this.request.url == null) { // Default the url to the current site/web url - this.targetInfo.url = this.targetInfo.defaultToWebFl == false ? lib_1.ContextInfo.siteAbsoluteUrl : lib_1.ContextInfo.webAbsoluteUrl; + this.request.url = this.request.defaultToWebFl == false ? lib_1.ContextInfo.siteAbsoluteUrl : lib_1.ContextInfo.webAbsoluteUrl; } - else if (/\/_api\//.test(this.targetInfo.url)) { + else if (/\/_api\//.test(this.request.url)) { // Get the url - var url = this.targetInfo.url.toLowerCase().split("/_api/"); + var url = this.request.url.toLowerCase().split("/_api/"); // See if this is the app web and we are executing against a different web if (lib_1.ContextInfo.isAppWeb && url[0] != lib_1.ContextInfo.webAbsoluteUrl.toLowerCase()) { // Set the request url @@ -125,28 +104,28 @@ var TargetInfo = /** @class */ (function () { } else { // Set the request url - this.requestUrl = this.targetInfo.url + (this.targetInfo.endpoint ? "/" + this.targetInfo.endpoint : ""); + this.requestUrl = this.request.url + (this.request.endpoint ? "/" + this.request.endpoint : ""); } return; } // See if this is a relative url - if (this.targetInfo.url.indexOf("http") != 0) { + if (this.request.url.indexOf("http") != 0) { // Add the domain - this.targetInfo.url = this.getDomainUrl() + this.targetInfo.url; + this.request.url = this.getDomainUrl() + this.request.url; } // See if this is the app web, and we are executing against a different web - if (lib_1.ContextInfo.isAppWeb && this.targetInfo.url != lib_1.ContextInfo.webAbsoluteUrl) { + if (lib_1.ContextInfo.isAppWeb && this.request.url != lib_1.ContextInfo.webAbsoluteUrl) { // Set the request url this.requestUrl = template .replace(/{{Url}}/g, lib_1.ContextInfo.webAbsoluteUrl) .replace(/{{EndPoint}}/g, "SP.AppContextSite(@target)" + endpoint) - .replace(/{{TargetUrl}}/g, qs.replace(/{{Target}}/g, this.targetInfo.url)); + .replace(/{{TargetUrl}}/g, qs.replace(/{{Target}}/g, this.request.url)); } else { // Set the request url this.requestUrl = template - .replace(/{{Url}}/g, this.targetInfo.url) - .replace(/{{EndPoint}}/g, this.targetInfo.endpoint) + .replace(/{{Url}}/g, this.request.url) + .replace(/{{EndPoint}}/g, this.request.endpoint) .replace(/{{TargetUrl}}/g, ""); } }; diff --git a/build/utils/targetInfo.js.map b/build/utils/targetInfo.js.map index 96237583..66e40877 100644 --- a/build/utils/targetInfo.js.map +++ b/build/utils/targetInfo.js.map @@ -1 +1 @@ -{"version":3,"file":"targetInfo.js","sourceRoot":"","sources":["../../src/utils/targetInfo.ts"],"names":[],"mappings":";;AAAA,8BAAqC;AAsDrC;;GAEG;AACH;IACI,mIAAmI;IACnI,cAAc;IACd,mIAAmI;IACnI,oBAAY,UAAuB;QAC/B,yBAAyB;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,IAAI,EAAE,CAAC;QACnC,IAAI,CAAC,WAA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line at end of file diff --git a/build/utils/xhrRequest.js b/build/utils/xhrRequest.js index 15c0e3b4..71d78576 100644 --- a/build/utils/xhrRequest.js +++ b/build/utils/xhrRequest.js @@ -13,7 +13,7 @@ var XHRRequest = /** @class */ (function () { function XHRRequest(asyncFl, targetInfo, callback) { // Default the properties this.asyncFl = asyncFl; - this.promise = new _1.Promise(callback || targetInfo.callback); + this.promise = new _1.Promise(callback || targetInfo.request.callback); this.targetInfo = targetInfo; this.xhr = this.createXHR(); // Execute the request @@ -104,9 +104,9 @@ var XHRRequest = /** @class */ (function () { // Set the method this.xhr.setRequestHeader("X-HTTP-Method", this.targetInfo.requestMethod); // See if the request digest has been defined - if (this.targetInfo.requestDigest) { + if (this.targetInfo.request.requestDigest) { // Set the request digest - this.xhr.setRequestHeader("X-RequestDigest", this.targetInfo.requestDigest); + this.xhr.setRequestHeader("X-RequestDigest", this.targetInfo.request.requestDigest); } else { // Get the request digest @@ -143,7 +143,7 @@ var XHRRequest = /** @class */ (function () { } // See if we the response type is an array buffer // Note - Updating the response type is only allow for asynchronous requests. Any error will be thrown otherwise. - if (this.targetInfo.bufferFl && this.asyncFl) { + if (this.targetInfo.request.bufferFl && this.asyncFl) { // Set the response type this.xhr.responseType = "arraybuffer"; } @@ -157,7 +157,7 @@ var XHRRequest = /** @class */ (function () { } } // Execute the request - this.targetInfo.bufferFl || this.targetInfo.requestData == null ? this.xhr.send() : this.xhr.send(this.targetInfo.requestData); + this.targetInfo.request.bufferFl || this.targetInfo.requestData == null ? this.xhr.send() : this.xhr.send(this.targetInfo.requestData); }; return XHRRequest; }()); diff --git a/build/utils/xhrRequest.js.map b/build/utils/xhrRequest.js.map index 510c0588..5a5850a3 100644 --- a/build/utils/xhrRequest.js.map +++ b/build/utils/xhrRequest.js.map @@ -1 +1 @@ -{"version":3,"file":"xhrRequest.js","sourceRoot":"","sources":["../../src/utils/xhrRequest.ts"],"names":[],"mappings":";;AAAA,8BAAqC;AACrC,sBAGW;AAEX,mIAAmI;AAC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BAC/B,CAAC;YACL,CAAC,CAAA;QACL,CAAC;QAED,iDAAiD;QACjD,iHAAiH;QACjH,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;YACnD,wBAAwB;YACxB,IAAI,CAAC,GAAG,CAAC,YAAY,GAAG,aAAa,CAAC;QAC1C,CAAC;QACD,IAAI,CAAC,CAAC;YACF,sBAAsB;YACtB,IAAI,CAAC,cAAc,EAAE,CAAC;YAEtB,oFAAoF;YACpF,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC;gBACnF,yDAAyD;gBACzD,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;YACrJ,CAAC;QACL,CAAC;QAED,sBAAsB;QACtB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,UAAU,CAAC,WAAW,IAAI,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAC3I,CAAC;IACL,iBAAC;AAAD,CAAC,AA/JD,IA+JC;AA/JY,gCAAU"} \ No newline at end of file diff --git a/dist/gd-sprest.d.ts b/dist/gd-sprest.d.ts index a220449b..f00bea9e 100644 --- a/dist/gd-sprest.d.ts +++ b/dist/gd-sprest.d.ts @@ -873,6 +873,57 @@ declare module 'gd-sprest/mapper' { requestType: number; }; }; + tenantapp: { + Deploy: { + requestType: number; + }; + Install: { + requestType: number; + }; + query: { + argNames: string[]; + requestType: number; + }; + Remove: { + requestType: number; + }; + Retract: { + requestType: number; + }; + Upgrade: { + requestType: number; + }; + Uninstall: { + requestType: number; + }; + }; + tenantappcatalog: { + properties: string[]; + Add: { + argNames: string[]; + requestType: number; + }; + GetById: { + argNames: string[]; + name: string; + requestType: number; + returnType: string; + }; + SiteCollectionAppCatalogsSites: { + requestType: number; + }; + }; + tenantapps: { + GetById: { + argNames: string[]; + requestType: number; + returnType: string; + }; + query: { + argNames: string[]; + requestType: number; + }; + }; user: { properties: string[]; delete: { @@ -4754,6 +4805,9 @@ declare module 'gd-sprest/mapper/security' { declare module 'gd-sprest/mapper/site' { export * from "gd-sprest/mapper/site/site"; + export * from "gd-sprest/mapper/site/tenantApp"; + export * from "gd-sprest/mapper/site/tenantApps"; + export * from "gd-sprest/mapper/site/tenantAppCatalog"; export * from "gd-sprest/mapper/site/web"; export * from "gd-sprest/mapper/site/webs"; } @@ -8615,10 +8669,164 @@ declare module 'gd-sprest/mapper/site/site' { } } +declare module 'gd-sprest/mapper/site/tenantApp' { + import { IBase } from "gd-sprest/utils"; + /** + * Methods + */ + export interface ITenantAppMethods { + /** + * Deploy solution package in tenant app catalog + * Enable solution to be available to install to specific sites. This API is designed to be executed in the context of the tenant app catalog site. + */ + Deploy(): IBase; + /** + * Install solution package from tenant app catalog to SharePoint site + * Install a solution package with specific identifier from tenant app catalog to the site based on URL context. This REST call can be executed in the context of the site where the install operation should happen. + */ + Install(): IBase; + /** + * Remove solution package from tenant app catalog + * Remove the solution package from the tenant app catalog. This API is designed to be executed in the context of the tenant app catalog site. + */ + Remove(): IBase; + /** + * Retract solution package in the tenant app catalog + * Retract solution to be available from the sites. This API is designed to be executed in the context of the tenant app catalog site. + */ + Retract(): IBase; + /** + * Uninstall solution package from SharePoint site + * Uninstall a solution package from the site. This REST call can be executed in the context of the site where the uninstall operation should happen. + */ + Uninstall(): IBase; + /** + * Upgrade solution package in SharePoint site + * Upgrade a solution package from the site to a newer version available in the tenant app catalog. This REST call can be executed in the context of the site where the upgrade operation should happen. + */ + Upgrade(): IBase; + } + /** + * Properties + */ + export interface ITenantAppProps { + /** The app version. */ + AppCatalogVersion: string; + /** Flag indicating an upgrade is available. */ + CanUpgrade: boolean; + /** Flag indicating if the current version is deployed. */ + CurrentVersionDeployed: boolean; + /** Flag indicating if the app is deployed. */ + Deployed: boolean; + /** The app id. */ + ID: string; + /** The installed version. */ + InstalledVersion: string; + /** Flag indicating if this is a client-side solution. */ + IsClientSideSolution: boolean; + /** The app title. */ + Title: string; + } + /** + * Tenant App Result + */ + export interface ITenantAppResult extends ITenantAppMethods, ITenantAppProps, IBase { + } + /** + * Tenant App + */ + export interface ITenantApp extends ITenantAppMethods, IBase { + } +} + +declare module 'gd-sprest/mapper/site/tenantApps' { + import { IBase, IBaseCollection } from "gd-sprest/utils"; + import { ITenantApp } from "gd-sprest/mapper/site"; + /** + * Methods + */ + export interface ITenantAppsMethods { + /** + * Details on individual solution package from tenant app catalog + * REST API for getting details on individual SharePoint Framework solution or add-in available in the tenant app catalog. + * @param guid - The app id. + */ + GetById(guid: string): IBase; + } + /** + * Tenant Apps + */ + export interface ITenantApps extends ITenantAppsMethods, IBaseCollection { + } +} + +declare module 'gd-sprest/mapper/site/tenantAppCatalog' { + import { IBase, IBaseCollection } from "gd-sprest/utils"; + import { Types } from "gd-sprest/mapper"; + import { ITenantApp, ITenantApps } from "gd-sprest/mapper/site"; + /** + * Tenant App Catalog Methods + */ + export interface ITenantAppCatalogMethods { + /** + * Add solution package to tenant app catalog + * Adding solution to the tenant app catalog. This API is designed to be executed in the context of the tenant app catalog site. + * @param overwrite - Flag to overwrite the solution. + * @param url - The file name of the solution. + */ + Add(overwrite?: boolean, url?: string): IBase; + /** + * Deploy solution package in tenant app catalog + * Enable solution to be available to install to specific sites. This API is designed to be executed in the context of the tenant app catalog site. + * @param guid - The app id. + */ + GetById(guid: string): ITenantApp; + } + /** + * Tenant App Catalog Properties + */ + export interface ITenantAppCatalogProps { + /** + * List available packages from tenant app catalog + * REST API for getting list of available SharePoint Framework solutions or add-ins in tenant app catalog. + */ + AvailableApps(): ITenantApps; + /** + * No documentation available. Need to research this. + */ + SiteCollectionAppCatalogsSites(): IBaseCollection; + } + /** + * Tenant App Catalog Query Properties + */ + export interface ITenantAppCatalogQueryProps { + /** + * List available packages from tenant app catalog + * REST API for getting list of available SharePoint Framework solutions or add-ins in tenant app catalog. + */ + AvailableApps(): ITenantApps; + } + /** + * Tenant App Catalog Query Result + */ + export interface ITenantAppCatalogQueryResult extends ITenantAppCatalogMethods, ITenantAppCatalogProps { + } + /** + * Tenant App Catalog Result + */ + export interface ITenantAppCatalogResult extends ITenantAppCatalogMethods, ITenantAppCatalogProps, ITenantAppCatalogQueryProps, IBase { + } + /** + * Tenant App Catalog + */ + export interface ITenantAppCatalog extends ITenantAppCatalogMethods, ITenantAppCatalogQueryProps, IBase { + } +} + declare module 'gd-sprest/mapper/site/web' { import { IBase, ITargetInfo } from "gd-sprest/utils"; import { Types } from "gd-sprest/mapper"; - import { IWebInfo, IWebResult, IWebResults, IWebs } from "gd-sprest/mapper/site"; + import { ITenantAppCatalog, IWebInfo, IWebResult, IWebResults, IWebs } from "gd-sprest/mapper/site"; /** * Web Creation Information */ @@ -9127,6 +9335,8 @@ declare module 'gd-sprest/mapper/site/web' { * Specifies the language code identifiers (LCIDs) of the languages that are enabled for the site. */ SupportedUILanguageIds(): IBase; + /** Gets the tenant app catalog. */ + TenantAppCatalog(): ITenantAppCatalog; /** * The theming information for this site. This includes information like colors, fonts, border radii sizes etc. */ @@ -9301,6 +9511,8 @@ declare module 'gd-sprest/mapper/site/web' { * Specifies the language code identifiers (LCIDs) of the languages that are enabled for the site. */ SupportedUILanguageIds: Types.IResults; + /** Gets the tenant app catalog. */ + TenantAppCatalog: ITenantAppCatalog; /** * The theming information for this site. This includes information like colors, fonts, border radii sizes etc. */ @@ -9332,7 +9544,7 @@ declare module 'gd-sprest/mapper/site/web' { /** * Web Result */ - export interface IWebResult extends IWebMethods, IWebProps, IWebQueryProps, IWebQueryProps, IBase { + export interface IWebResult extends IWebMethods, IWebProps, IWebQueryProps, IBase { } /** * Web @@ -10293,11 +10505,9 @@ declare module 'gd-sprest/utils/targetInfo' { /*********************************************************************************************************************************/ constructor(targetInfo: ITargetInfo); /*********************************************************************************************************************************/ - readonly bufferFl: boolean; - readonly callback: (...args) => void; + request: ITargetInfo; readonly isBatchRequest: boolean; requestData: any; - readonly requestDigest: string; readonly requestInfo: IRequestInfo; requestHeaders: object; requestMethod: string; diff --git a/dist/gd-sprest.js b/dist/gd-sprest.js index 861973d6..f01b2832 100644 --- a/dist/gd-sprest.js +++ b/dist/gd-sprest.js @@ -169,6 +169,7 @@ exports.Mapper = { search: mapper_6.search, site: mapper_8.site, socialfeed: mapper_9.socialfeed, + tenantapp: mapper_8.tenantapp, tenantappcatalog: mapper_8.tenantappcatalog, tenantapps: mapper_8.tenantapps, user: mapper_10.user, users: mapper_10.users, usercustomaction: mapper_11.usercustomaction, usercustomactions: mapper_11.usercustomactions, userprofile: mapper_9.userprofile, @@ -2016,7 +2017,7 @@ exports.site = { argNames: ["gWebId"], requestType: types_1.RequestType.PostWithArgsValueOnly }, - // Queries the collection + // Queries the object query: { argNames: ["oData"], requestType: types_1.RequestType.OData @@ -2044,6 +2045,86 @@ exports.site = { requestType: types_1.RequestType.PostWithArgs } }; +/** + * Tenant App + */ +exports.tenantapp = { + // Deploy solution package in tenant app catalog + Deploy: { + requestType: types_1.RequestType.Post + }, + // Install solution package from tenant app catalog to SharePoint site + Install: { + requestType: types_1.RequestType.Post + }, + // Queries the object + query: { + argNames: ["oData"], + requestType: types_1.RequestType.OData + }, + // Remove solution package from tenant app catalog + Remove: { + requestType: types_1.RequestType.Post + }, + // Retract solution package in the tenant app catalog + Retract: { + requestType: types_1.RequestType.Post + }, + // Upgrade solution package in SharePoint site + Upgrade: { + requestType: types_1.RequestType.Post + }, + // Uninstall solution package from SharePoint site + Uninstall: { + requestType: types_1.RequestType.Post + } +}; +/** + * Tenant Apps + */ +exports.tenantapps = { + // Get an app by id + GetById: { + argNames: ["guid"], + requestType: types_1.RequestType.GetWithArgsValueOnly, + returnType: "tenantapp" + }, + // Queries the collection + query: { + argNames: ["oData"], + requestType: types_1.RequestType.OData + } +}; +/** + * Tenant App Catalog + */ +exports.tenantappcatalog = { + /*********************************************************************************************************************************/ + // Properties + /*********************************************************************************************************************************/ + properties: [ + "AvailableApps|tenantapps|/getById('[Id]')|tenantapp" + ], + /*********************************************************************************************************************************/ + // Methods + /*********************************************************************************************************************************/ + // Adds the folder that is located at the specified URL to the collection. + Add: { + argNames: ["overwrite", "url"], + requestType: types_1.RequestType.PostWithArgs + }, + // Get an app by id. + GetById: { + argNames: ["guid"], + name: "AvailableApps/getById('[[guid]]')", + requestType: types_1.RequestType.GetReplace, + returnType: "tenantapp" + }, + // Gets the site collection app catalog sites + SiteCollectionAppCatalogsSites: { + requestType: types_1.RequestType.Post + } +}; /** * Web */ @@ -2061,7 +2142,8 @@ exports.web = { "ListTemplates|listtemplates|('[Name]')|listtemplate", "Navigation", "ParentWeb", "PushNotificationSubscribers", "RecycleBin", "RegionalSettings", "RoleAssignments|roleassignments|([Name])|roleassignment", "RoleDefinitions|roledefinitions|/getByName('[Name]')|roledefinition", "RootFolder|folder|/getByUrl('[Name]')|file", - "SiteGroups|sitegroups|/getByName('[Name]')|group", "SiteUserInfoList", "SiteUsers|users|/getById([Name])|user", "ThemeInfo", "TitleResource", + "SiteGroups|sitegroups|/getByName('[Name]')|group", "SiteUserInfoList", "SiteUsers|users|/getById([Name])|user", + "TenantAppCatalog|tenantappcatalog", "ThemeInfo", "TitleResource", "UserCustomActions|usercustomactions|('[Name]')|usercustomaction", "WebInfos|webinfos", "Webs|webs", "WorkflowAssociations", "WorkflowTemplates" ], /*********************************************************************************************************************************/ @@ -3098,6 +3180,14 @@ var BaseHelper = /** @class */ (function () { // Update the type objType = "items"; } + else if (/corporatecatalogappmetadata/.test(objType)) { + // Update the type + objType = "tenantapp"; + } + else if (/corporatecatalogappmetadatas/.test(objType)) { + // Update the type + objType = "tenantapps"; + } // Get the methods for the base object var methods = mapper_1.Mapper[objType]; if (methods) { @@ -3432,13 +3522,15 @@ var BaseRequest = /** @class */ (function (_super) { // Execute the callback callback ? callback(_this.xhr.response) : null; } - // Update the data object - _this.updateDataObject(isBatchRequest); - // Validate the data collection - isBatchRequest ? null : _this.validateDataCollectionResults().done(function () { - // Execute the callback - callback ? callback(_this) : null; - }); + else { + // Update the data object + _this.updateDataObject(isBatchRequest); + // Validate the data collection + isBatchRequest ? null : _this.validateDataCollectionResults().done(function () { + // Execute the callback + callback ? callback(_this) : null; + }); + } }); } } @@ -3547,13 +3639,17 @@ var BaseRequest = /** @class */ (function (_super) { BaseRequest.prototype.updateMetadataUri = function (metadata, targetInfo) { // See if this is a field if (/^SP.Field/.test(metadata.type) || /^SP\..*Field$/.test(metadata.type)) { - // Fix the uri reference + // Fix the url reference targetInfo.url = targetInfo.url.replace(/AvailableFields/, "fields"); } else if (/SP.EventReceiverDefinition/.test(metadata.type)) { - // Fix the uri reference + // Fix the url reference targetInfo.url = targetInfo.url.replace(/\/EventReceiver\//, "/EventReceivers/"); } + else if (/Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata/.test(targetInfo.url)) { + // Fix the url reference + targetInfo.url = targetInfo.url.split("Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata")[0] + "web/tenantappcatalog/availableapps/getbyid('" + this["ID"] + "')"; + } }; // Method to validate the data collection results BaseRequest.prototype.validateDataCollectionResults = function (promise) { @@ -3703,7 +3799,7 @@ var BaseExecution = /** @class */ (function (_super) { // Wait for the responses to execute this.waitForRequestsToComplete(function () { // Execute this request - _this.executeRequest(true, function () { + _this.executeRequest(true, function (response) { // See if there is a callback if (callback) { // Set the base to this object, and clear requests @@ -3711,7 +3807,7 @@ var BaseExecution = /** @class */ (function (_super) { _this.base = _this; _this.base.responses = []; // Execute the callback and see if it returns a promise - var returnVal = callback(_this); + var returnVal = callback(response); if (returnVal && typeof (returnVal.done) === "function") { // Wait for the promise to complete returnVal.done(function () { @@ -3733,9 +3829,9 @@ var BaseExecution = /** @class */ (function (_super) { } else { // Execute this request - this.executeRequest(true, function () { + this.executeRequest(true, function (response) { // Execute the callback and see if it returns a promise - var returnVal = callback ? callback(_this) : null; + var returnVal = callback ? callback(response) : null; if (returnVal && typeof (returnVal.done) === "function") { // Wait for the promise to complete returnVal.done(function () { @@ -4438,37 +4534,16 @@ var TargetInfo = /** @class */ (function () { /*********************************************************************************************************************************/ function TargetInfo(targetInfo) { // Default the properties - this.targetInfo = targetInfo || {}; - this.requestData = this.targetInfo.data; - this.requestHeaders = this.targetInfo.requestHeader; - this.requestMethod = this.targetInfo.method ? this.targetInfo.method : "GET"; + this.request = targetInfo || {}; + this.requestData = this.request.data; + this.requestHeaders = this.request.requestHeader; + this.requestMethod = this.request.method ? this.request.method : "GET"; // Set the request url this.setRequestUrl(); } - Object.defineProperty(TargetInfo.prototype, "bufferFl", { - /*********************************************************************************************************************************/ - // Public Properties - /*********************************************************************************************************************************/ - // Flag to determine if the request returns an array buffer - get: function () { return this.targetInfo.bufferFl; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(TargetInfo.prototype, "callback", { - // The callback method to execute after the asynchronous request completes - get: function () { return this.targetInfo.callback; }, - enumerable: true, - configurable: true - }); Object.defineProperty(TargetInfo.prototype, "isBatchRequest", { // Flag to determine if this is a batch request - get: function () { return this.targetInfo.endpoint == "$batch"; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(TargetInfo.prototype, "requestDigest", { - // The form digest - get: function () { return this.targetInfo.requestDigest; }, + get: function () { return this.request.endpoint == "$batch"; }, enumerable: true, configurable: true }); @@ -4528,23 +4603,23 @@ var TargetInfo = /** @class */ (function () { }; // Method to set the request url TargetInfo.prototype.setRequestUrl = function () { - var endpoint = this.targetInfo.endpoint ? "/" + this.targetInfo.endpoint : ""; + var endpoint = this.request.endpoint ? "/" + this.request.endpoint : ""; var hostUrl = TargetInfo.getQueryStringValue("SPHostUrl"); var qs = (endpoint.indexOf("?") === -1 ? "?" : "&") + "@target='{{Target}}'"; var template = "{{Url}}/_api/{{EndPoint}}{{TargetUrl}}"; // See if we are defaulting the url for the app web - if (lib_1.ContextInfo.existsFl && lib_1.ContextInfo.window.$REST.DefaultRequestToHostFl && lib_1.ContextInfo.isAppWeb && !this.targetInfo.overrideDefaultRequestToHostFl && this.targetInfo.url == null) { + if (lib_1.ContextInfo.existsFl && lib_1.ContextInfo.window.$REST.DefaultRequestToHostFl && lib_1.ContextInfo.isAppWeb && !this.request.overrideDefaultRequestToHostFl && this.request.url == null) { // Default the url to the host web - this.targetInfo.url = hostUrl; + this.request.url = hostUrl; } // Ensure the url exists - if (this.targetInfo.url == null) { + if (this.request.url == null) { // Default the url to the current site/web url - this.targetInfo.url = this.targetInfo.defaultToWebFl == false ? lib_1.ContextInfo.siteAbsoluteUrl : lib_1.ContextInfo.webAbsoluteUrl; + this.request.url = this.request.defaultToWebFl == false ? lib_1.ContextInfo.siteAbsoluteUrl : lib_1.ContextInfo.webAbsoluteUrl; } - else if (/\/_api\//.test(this.targetInfo.url)) { + else if (/\/_api\//.test(this.request.url)) { // Get the url - var url = this.targetInfo.url.toLowerCase().split("/_api/"); + var url = this.request.url.toLowerCase().split("/_api/"); // See if this is the app web and we are executing against a different web if (lib_1.ContextInfo.isAppWeb && url[0] != lib_1.ContextInfo.webAbsoluteUrl.toLowerCase()) { // Set the request url @@ -4553,28 +4628,28 @@ var TargetInfo = /** @class */ (function () { } else { // Set the request url - this.requestUrl = this.targetInfo.url + (this.targetInfo.endpoint ? "/" + this.targetInfo.endpoint : ""); + this.requestUrl = this.request.url + (this.request.endpoint ? "/" + this.request.endpoint : ""); } return; } // See if this is a relative url - if (this.targetInfo.url.indexOf("http") != 0) { + if (this.request.url.indexOf("http") != 0) { // Add the domain - this.targetInfo.url = this.getDomainUrl() + this.targetInfo.url; + this.request.url = this.getDomainUrl() + this.request.url; } // See if this is the app web, and we are executing against a different web - if (lib_1.ContextInfo.isAppWeb && this.targetInfo.url != lib_1.ContextInfo.webAbsoluteUrl) { + if (lib_1.ContextInfo.isAppWeb && this.request.url != lib_1.ContextInfo.webAbsoluteUrl) { // Set the request url this.requestUrl = template .replace(/{{Url}}/g, lib_1.ContextInfo.webAbsoluteUrl) .replace(/{{EndPoint}}/g, "SP.AppContextSite(@target)" + endpoint) - .replace(/{{TargetUrl}}/g, qs.replace(/{{Target}}/g, this.targetInfo.url)); + .replace(/{{TargetUrl}}/g, qs.replace(/{{Target}}/g, this.request.url)); } else { // Set the request url this.requestUrl = template - .replace(/{{Url}}/g, this.targetInfo.url) - .replace(/{{EndPoint}}/g, this.targetInfo.endpoint) + .replace(/{{Url}}/g, this.request.url) + .replace(/{{EndPoint}}/g, this.request.endpoint) .replace(/{{TargetUrl}}/g, ""); } }; @@ -4603,7 +4678,7 @@ var XHRRequest = /** @class */ (function () { function XHRRequest(asyncFl, targetInfo, callback) { // Default the properties this.asyncFl = asyncFl; - this.promise = new _1.Promise(callback || targetInfo.callback); + this.promise = new _1.Promise(callback || targetInfo.request.callback); this.targetInfo = targetInfo; this.xhr = this.createXHR(); // Execute the request @@ -4694,9 +4769,9 @@ var XHRRequest = /** @class */ (function () { // Set the method this.xhr.setRequestHeader("X-HTTP-Method", this.targetInfo.requestMethod); // See if the request digest has been defined - if (this.targetInfo.requestDigest) { + if (this.targetInfo.request.requestDigest) { // Set the request digest - this.xhr.setRequestHeader("X-RequestDigest", this.targetInfo.requestDigest); + this.xhr.setRequestHeader("X-RequestDigest", this.targetInfo.request.requestDigest); } else { // Get the request digest @@ -4733,7 +4808,7 @@ var XHRRequest = /** @class */ (function () { } // See if we the response type is an array buffer // Note - Updating the response type is only allow for asynchronous requests. Any error will be thrown otherwise. - if (this.targetInfo.bufferFl && this.asyncFl) { + if (this.targetInfo.request.bufferFl && this.asyncFl) { // Set the response type this.xhr.responseType = "arraybuffer"; } @@ -4747,7 +4822,7 @@ var XHRRequest = /** @class */ (function () { } } // Execute the request - this.targetInfo.bufferFl || this.targetInfo.requestData == null ? this.xhr.send() : this.xhr.send(this.targetInfo.requestData); + this.targetInfo.request.bufferFl || this.targetInfo.requestData == null ? this.xhr.send() : this.xhr.send(this.targetInfo.requestData); }; return XHRRequest; }()); diff --git a/dist/gd-sprest.min.js b/dist/gd-sprest.min.js index 65eeb5ee..d4f332d4 100644 --- a/dist/gd-sprest.min.js +++ b/dist/gd-sprest.min.js @@ -1 +1 @@ -!function(e){function t(n){if(r[n])return r[n].exports;var s=r[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,t),s.l=!0,s.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7);t.RequestType=n.RequestType;var s=r(8);t.SPConfigTypes=s.SPConfigTypes;var o=r(9);t.SPTypes=o},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(27)),n(r(28)),n(r(29)),n(r(30)),n(r(31)),n(r(32)),n(r(33)),n(r(34)),n(r(35)),n(r(36))},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(26)),n(r(37)),n(r(38)),n(r(44)),n(r(45)),n(r(46)),n(r(47)),n(r(48)),n(r(49)),n(r(50)),n(r(51)),n(r(52)),n(r(4))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6),s=r(10),o=r(11),i=r(12),a=r(13),u=r(14),l=r(15),p=r(16),d=r(17),c=r(18),f=r(19);t.Mapper={attachment:o.attachment,attachmentfiles:o.attachmentfiles,audit:n.audit,contenttype:i.contenttype,contenttypes:i.contenttypes,eventreceiver:s.eventreceiver,eventreceivers:s.eventreceivers,field:i.field,fields:i.fields,fieldlinks:i.fieldlinks,file:o.file,files:o.files,fileversion:o.fileversion,fileversions:o.fileversions,folder:o.folder,folders:o.folders,group:c.group,sitegroups:c.sitegroups,limitedwebpartmanager:o.limitedwebpartmanager,list:i.list,lists:i.lists,listitem:i.listitem,items:i.items,peoplemanager:d.peoplemanager,peoplepicker:c.peoplepicker,profileloader:d.profileloader,propertyvalues:a.propertyvalues,roleassignment:l.roleassignment,roleassignments:l.roleassignments,roledefinition:l.roledefinition,roledefinitions:l.roledefinitions,search:u.search,site:p.site,socialfeed:d.socialfeed,user:c.user,users:c.users,usercustomaction:f.usercustomaction,usercustomactions:f.usercustomactions,userprofile:d.userprofile,version:i.version,view:i.view,views:i.views,viewfieldcollection:i.viewfieldcollection,web:p.web,webinfos:p.webinfos,webs:p.webs};var y=r(20);t.Types=y},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t,r){var n=e.call(this,r)||this;return n.defaultToWebFl=!0,n.targetInfo.endpoint="web",t&&(n.targetInfo.url=t),n.addMethods(n,{__metadata:{type:"web"}}),n}return n(t,e),t.prototype.hasAccess=function(e){return!0},t}(r(1).Base);t.Web=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3);t.Types=n.Types;var s=r(0);t.RequestType=s.RequestType,t.SPTypes=s.SPTypes;var o=r(2);t.ContextInfo=o.ContextInfo,t.Email=o.Email,t.Helper=o.Helper,t.JSLink=o.JSLink,t.List=o.List,t.PeopleManager=o.PeopleManager,t.PeoplePicker=o.PeoplePicker,t.ProfileLoader=o.ProfileLoader,t.Search=o.Search,t.Site=o.Site,t.SocialFeed=o.SocialFeed,t.UserProfile=o.UserProfile,t.Web=o.Web,t.$REST={__ver:2.3,ContextInfo:o.ContextInfo,DefaultRequestToHostFl:!1,Email:o.Email,Helper:o.Helper,JSLink:o.JSLink,List:function(e,t){return new o.List(e,t)},PeopleManager:function(e){return new o.PeopleManager(e)},PeoplePicker:function(e){return new o.PeoplePicker(e)},ProfileLoader:function(e){return new o.ProfileLoader(e)},Search:function(e,t){return new o.Search(e,t)},Site:function(e,t){return new o.Site(e,t)},SocialFeed:o.SocialFeed,UserProfile:function(e){return new o.UserProfile(e)},Web:function(e,t){return new o.Web(e,t)}};var i=o.ContextInfo.window.$REST;(null==i||null==i.__ver||i.__ver[[camlQuery]]"}}},getListItemChangesSinceToken:{argNames:["query"],metadataType:"SP.ChangeLogItemQuery",requestType:n.RequestType.PostWithArgsInBody},getRelatedFields:{requestType:n.RequestType.Get},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:n.RequestType.GetReplace},getViewById:{argNames:["viewId"],name:"getView",requestType:n.RequestType.GetWithArgsValueOnly,returnType:"view"},query:{argNames:["oData"],requestType:n.RequestType.OData},recycle:{requestType:n.RequestType.Post},renderListData:{argNames:["viewXml"],name:"renderListData(@v)?@v='[[viewXml]]'",requestType:n.RequestType.PostReplace},renderListFormData:{argNames:["itemid","formid","mode"],requestType:n.RequestType.PostWithArgs},reserveListItemId:{requestType:n.RequestType.Post},resetRoleInheritance:{requestType:n.RequestType.Post},update:{metadataType:"SP.List",name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody}},t.listitem={properties:["AttachmentFiles|attachmentfiles|('[Name]')|attachment","ContentType|contenttype","FieldValuesAsHtml","FieldValuesAsText","FieldValuesForEdit","File|file","FirstUniqueAncestorSecurableObject","Folder|folder","GetDlpPolicyTip","ParentList|list","Properties|propertyvalues","RoleAssignments|roleassignments|roleassignments|([Name])|roleassignment"],breakRoleInheritance:{argNames:["copyroleassignments","clearsubscopes"],requestType:n.RequestType.PostWithArgs},delete:{requestType:n.RequestType.Delete},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:n.RequestType.GetReplace},query:{argNames:["oData"],requestType:n.RequestType.OData},recycle:{requestType:n.RequestType.Post},resetRoleInheritance:{requestType:n.RequestType.Post},update:{inheritMetadataType:!0,name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody},validateUpdateListItem:{argNames:["formValues","bNewDocumentUpdate"],requestType:n.RequestType.PostWithArgsInBody}},t.lists={add:{metadataType:"SP.List",name:"",requestType:n.RequestType.PostWithArgsInBody},ensureSiteAssetsLibrary:{requestType:n.RequestType.Post},ensureSitePagesLibrary:{requestType:n.RequestType.Post},getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"list"},getByTitle:{argNames:["title"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"list"},query:{argNames:["oData"],requestType:n.RequestType.OData}},t.version={getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"version"},deleteAll:{requestType:n.RequestType.Post},deleteById:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly},deleteByLabel:{argNames:["label"],requestType:n.RequestType.PostWithArgsValueOnly},query:{argNames:["oData"],requestType:n.RequestType.OData},restoreByLabel:{argNames:["label"],requestType:n.RequestType.PostWithArgsValueOnly}},t.view={properties:["ViewFields|viewfieldcollection"],delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData},renderAsHtml:{requestType:n.RequestType.Get},update:{metadataType:"SP.View",name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody}},t.viewfieldcollection={addViewField:{argNames:["fieldName"],requestType:n.RequestType.PostWithArgsValueOnly},moveViewFieldTo:{argNames:["field","index"],requestType:n.RequestType.PostWithArgsInBody},query:{argNames:["oData"],requestType:n.RequestType.OData},removeAllViewFields:{requestType:n.RequestType.Post},removeViewField:{argNames:["fieldName"],requestType:n.RequestType.GetWithArgsValueOnly}},t.views={add:{metadataType:"SP.View",name:"",requestType:n.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"view"},getByTitle:{argNames:["title"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"view"},query:{argNames:["oData"],requestType:n.RequestType.OData}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.propertyvalues={query:{argNames:["oData"],requestType:n.RequestType.OData}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.search={postquery:{argNames:["request"],metadataType:"Microsoft.Office.Server.Search.REST.SearchRequest",requestType:n.RequestType.PostWithArgsInBody}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.roleassignment={properties:["Member","RoleDefinitionBindings|roledefinitions"],delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData}},t.roleassignments={addRoleAssignment:{argNames:["principalId","roleDefId"],requestType:n.RequestType.PostWithArgs},getByPrincipalId:{argNames:["principalId"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"roleassignment"},query:{argNames:["oData"],requestType:n.RequestType.OData},removeRoleAssignment:{argNames:["principalId","roleDefId"],requestType:n.RequestType.PostWithArgs}},t.roledefinition={delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData}},t.roledefinitions={getById:{argNames:["roleDefId"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"roledefinition"},getByName:{argNames:["name"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"roledefinition"},getByType:{argNames:["roleType"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"roledefinitions"},query:{argNames:["oData"],requestType:n.RequestType.OData}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.site={properties:["EventReceivers|eventreceivers|('[Name]')|eventreceiver","Features","Owner|user","RootWeb|web","UserCustomActions|usercustomactions|('[Name]')|usercustomaction"],createPreviewSPSite:{argNames:["upgrade","sendemail"],requestType:n.RequestType.PostWithArgs},extendUpgradeReminderDate:{requestType:n.RequestType.Post},getCatalog:{argNames:["typeCatalog"],requestType:n.RequestType.PostWithArgsValueOnly},getChanges:{argNames:["query"],metadataType:"SP.ChangeQuery",requestType:n.RequestType.PostWithArgsInBody},getCustomListTemplates:{argNames:["web"],requestType:n.RequestType.PostWithArgs},getWebTemplates:{argNames:["LCID","overrideCompatLevel"],requestType:n.RequestType.PostWithArgs},invalidate:{requestType:n.RequestType.Post},needsUpgradeByType:{argNames:["versionUpgrade","recursive"],requestType:n.RequestType.PostWithArgs},openWeb:{argNames:["strUrl"],requestType:n.RequestType.PostWithArgsValueOnly},openWebById:{argNames:["gWebId"],requestType:n.RequestType.PostWithArgsValueOnly},query:{argNames:["oData"],requestType:n.RequestType.OData},runHealthCheck:{argNames:["ruleId","bRepair","bRunAlways"],requestType:n.RequestType.PostWithArgs},runUpgradeSiteSession:{argNames:["versionUpgrade","queueOnly","sendEmail"],requestType:n.RequestType.PostWithArgs},update:{metadataType:"SP.Site",name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody},updateClientObjectModelUseRemoteAPIsPermissionSetting:{argNames:["requireUseRemoteAPIs"],requestType:n.RequestType.PostWithArgs}},t.web={properties:["AllProperties|propertyvalues","AppTiles","AssociatedMemberGroup|group","AssociatedOwnerGroup|group","AssociatedVisitorGroup|group","Author|user","AvailableContentTypes|contenttypes","AvailableFields|fields","ClientWebParts","ContentTypes|contenttypes|('[Name]')|contenttype","CurrentUser|user","DataLeakagePreventionStatusInfo","DescriptionResource","EventReceivers|eventreceivers|('[Name]')|eventreceiver","Features","Fields|fields|/getByInternalNameOrTitle('[Name]')|field","FirstUniqueAncestorSecurableObject","Folders|folders|/getByUrl('[Name]')|folder","Lists|lists|/getByTitle('[Name]')|list","ListTemplates|listtemplates|('[Name]')|listtemplate","Navigation","ParentWeb","PushNotificationSubscribers","RecycleBin","RegionalSettings","RoleAssignments|roleassignments|([Name])|roleassignment","RoleDefinitions|roledefinitions|/getByName('[Name]')|roledefinition","RootFolder|folder|/getByUrl('[Name]')|file","SiteGroups|sitegroups|/getByName('[Name]')|group","SiteUserInfoList","SiteUsers|users|/getById([Name])|user","ThemeInfo","TitleResource","UserCustomActions|usercustomactions|('[Name]')|usercustomaction","WebInfos|webinfos","Webs|webs","WorkflowAssociations","WorkflowTemplates"],applyTheme:{argNames:["colorpaletteurl","fontschemeurl","backgroundimageurl","sharegenerated"],requestType:n.RequestType.PostWithArgs},applyWebTemplate:{argName:["name"],requestType:n.RequestType.PostWithArgsInQS},breakRoleInheritance:{argNames:["copyroleassignments","clearsubscopes"],requestType:n.RequestType.PostWithArgs},delete:{requestType:n.RequestType.Delete},doesPushNotificationSubscriberExist:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly},doesUserHavePermissions:{argNames:["High","Low"],requestType:n.RequestType.GetWithArgsInQS},ensureUser:{argNames:["logonName"],requestType:n.RequestType.PostWithArgsInBody},executeRemoteLOB:{requestType:n.RequestType.PostWithArgsInBody},getAppBdcCatalog:{requestType:n.RequestType.Post},getAppBdcCatalogForAppInstance:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly},getAppInstanceById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly},getAppInstancesByProductId:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly},getAvailableWebTemplates:{argNames:["lcid","doincludecrosslanguage"],requestType:n.RequestType.GetWithArgs},getCatalog:{argNames:["galleryType"],requestType:n.RequestType.GetWithArgsValueOnly},getChanges:{argNames:["query"],metadataType:"SP.ChangeQuery",requestType:n.RequestType.PostWithArgsInBody},getContextWebInformation:{name:"contextInfo",replaceEndpointFl:!0,requestType:n.RequestType.Post},getCustomListTemplates:{requestType:n.RequestType.Get},getDocumentLibraries:{argNames:["url"],name:"sp.web.getDocumentLibraries",requestType:n.RequestType.GetWithArgsInQS},getEntity:{argNames:["namespace","name"],requestType:n.RequestType.PostWithArgs},getFileByServerRelativeUrl:{argNames:["url"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"file"},getFolderByServerRelativeUrl:{argNames:["url"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"folder"},getList:{argNames:["url"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"list"},getPushNotificationSubscriber:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly},getPushNotificationSubscribersByArgs:{argNames:["args"],requestType:n.RequestType.GetWithArgsValueOnly},getPushNotificationSubscribersByUser:{argNames:["loginName"],requestType:n.RequestType.GetWithArgsInQS},getSubwebsFilteredForCurrentUser:{argNames:["nwebtemplatefilter","nconfigurationfilter"],requestType:n.RequestType.GetWithArgs,returnType:"webinfos"},getUserById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"user"},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:n.RequestType.GetReplace},getWebUrlFromPageUrl:{name:"sp.web.getWebUrlFromPageUrl",requestType:n.RequestType.GetWithArgsInQS},loadAndInstallApp:{requestType:n.RequestType.PostWithArgsInBody},loadAndInstallAppInSpecifiedLocale:{argNames:["appPackageStream","installationLocaleLCID"],requestType:n.RequestType.PostWithArgsInBody},loadApp:{argNames:["appPackageStream","installationLocaleLCID"],requestType:n.RequestType.PostWithArgsInBody},mapToIcon:{argNames:["filename","progid","size"],requestType:n.RequestType.GetWithArgs},processExternalNotification:{requestType:n.RequestType.PostWithArgsInBody},query:{argNames:["oData"],requestType:n.RequestType.OData},registerPushNotificationSubscriber:{argNames:["deviceappinstanceid","servicetoken"],requestType:n.RequestType.PostWithArgs},resetRoleInheritance:{requestType:n.RequestType.Post},unregisterPushNotificationSubscriber:{requestType:n.RequestType.PostWithArgsValueOnly},update:{metadataType:"SP.Web",name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody}},t.webinfos={query:{argNames:["oData"],requestType:n.RequestType.OData}},t.webs={add:{argNames:["parameters"],metadataType:"SP.WebCreationInformation",requestType:n.RequestType.PostWithArgsInBody},query:{argNames:["oData"],requestType:n.RequestType.OData}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.peoplemanager={amIFollowedBy:{argNames:["accountName"],requestType:n.RequestType.GetWithArgsInQS},amIFollowing:{argNames:["accountName"],requestType:n.RequestType.GetWithArgsInQS},follow:{argNames:["accountName"],requestType:n.RequestType.PostWithArgsInQS},followTag:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly},getFollowedTags:{argNames:["maxCount"],requestType:n.RequestType.GetWithArgsValueOnly},getFollowersFor:{argNames:["accountName"],requestType:n.RequestType.GetWithArgsInQS},getMyFollowers:{requestType:n.RequestType.Get},getMyProperties:{requestType:n.RequestType.Get},getMySuggestions:{requestType:n.RequestType.Get},getPeopleFollowedBy:{argNames:["accountName"],requestType:n.RequestType.GetWithArgsInQS},getPeopleFollowedByMe:{requestType:n.RequestType.Get},getPropertiesFor:{argNames:["accountName"],requestType:n.RequestType.GetWithArgsInQS},getTrendingTags:{name:"sp.userprofiles.peoplemanager.gettrendingtags",replaceEndpointFl:!0,requestType:n.RequestType.Get},getUserProfilePropertyFor:{argNames:["accountName","propertyName"],requestType:n.RequestType.GetWithArgsInQS},hideSuggestion:{argNames:["accountName"],requestType:n.RequestType.PostWithArgsInQS},isFollowing:{argNames:["possibleFollowerAccountName","possibleFolloweeAccountName"],name:"sp.userprofiles.peoplemanager.isfollowing",replaceEndpointFl:!0,requestType:n.RequestType.GetWithArgsInQS},setMyProfilePicture:{requestType:n.RequestType.PostWithArgsInBody},stopFollowing:{argNames:["accountName"],requestType:n.RequestType.PostWithArgsInQS},stopFollowingTag:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly}},t.profileloader={createPersonalSiteEnqueueBulk:{argNames:["emailIDs"],requestType:n.RequestType.PostWithArgsInBody},getOwnerUserProfile:{name:"sp.userprofiles.profileloader.getowneruserprofile",replaceEndpointFl:!0,requestType:n.RequestType.Post,returnType:"userprofile"},getUserProfile:{requestType:n.RequestType.Post,returnType:"userprofile"}},t.socialfeed={actor:{argNames:["accountName"],name:"actor(item=@v)?@v='[[accountName]]'",requestType:n.RequestType.GetReplace},actorFeed:{argNames:["accountName"],name:"actor(item=@v)/feed?@v='[[accountName]]'",requestType:n.RequestType.GetReplace},clearMyUnreadMentionCount:{name:"my/mentionfeed/clearMyUnreadMentionCount",requestType:n.RequestType.Post},my:{name:"my",requestType:n.RequestType.Get},myFeed:{name:"my/feed",requestType:n.RequestType.Get},myLikes:{name:"my/likes",requestType:n.RequestType.Get},myMentionFeed:{name:"my/mentionfeed",requestType:n.RequestType.Get},myNews:{name:"my/news",requestType:n.RequestType.Get},myTimelineFeed:{name:"my/timelinefeed",requestType:n.RequestType.Get},myUnreadMentionCount:{name:"my/unreadmentioncount",requestType:n.RequestType.Get}},t.userprofile={properties:["PersonalSite|site"],createPersonalSiteEnque:{requestType:n.RequestType.PostWithArgsValueOnly},shareAllSocialData:{requestType:n.RequestType.PostWithArgsValueOnly}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.group={properties:["Users|users|/getById([Name])|user"],query:{argNames:["oData"],requestType:n.RequestType.OData}},t.sitegroups={add:{metadataType:"SP.Group",name:"",requestType:n.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"group"},getByName:{argNames:["name"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"group"},query:{argNames:["oData"],requestType:n.RequestType.OData},removeById:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly},removeByLoginName:{argNames:["name"],requestType:n.RequestType.PostWithArgsValueOnly}},t.peoplepicker={clientPeoplePickerResolveUser:{argNames:["queryParams"],metadataType:"SP.UI.ApplicationPages.ClientPeoplePickerQueryParameters",name:"SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.ClientPeoplePickerResolveUser",replaceEndpointFl:!0,requestType:n.RequestType.PostWithArgsInBody},clientPeoplePickerSearchUser:{argNames:["queryParams"],metadataType:"SP.UI.ApplicationPages.ClientPeoplePickerQueryParameters",name:"SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.ClientPeoplePickerSearchUser",replaceEndpointFl:!0,requestType:n.RequestType.PostWithArgsInBody}},t.user={properties:["Groups|sitegroups|([Name])|group"],delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData}},t.users={add:{metadataType:"SP.User",name:"",requestType:n.RequestType.PostWithArgsInBody},getByEmail:{argNames:["email"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"user"},getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"user"},getByLoginName:{argNames:["loginName"],name:"getByLoginName(@v)?@v='[[loginName]]'",requestType:n.RequestType.GetReplace,returnType:"user"},query:{argNames:["oData"],requestType:n.RequestType.OData},removeById:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly},removeByLoginName:{argNames:["loginName"],name:"removeByLoginName(@v)?@v='[[loginName]]'",requestType:n.RequestType.PostReplace}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.usercustomaction={delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData}},t.usercustomactions={add:{metadataType:"SP.UserCustomAction",name:"",requestType:n.RequestType.PostWithArgsInBody},clear:{requestType:n.RequestType.Post},getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"usercustomaction"},query:{argNames:["oData"],requestType:n.RequestType.OData}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(21);t.ComplexTypes=n;var s=r(22);t.Results=s;var o=r(23);t.SPTypes=o,function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(24))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(25))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.view={properties:["ViewFields|viewfieldcollection"],delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData},renderAsHtml:{requestType:n.RequestType.Get},update:{metadataType:"SP.View",name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),s=function(){function e(){}return Object.defineProperty(e,"_contextInfo",{get:function(){return this.window._spPageContextInfo||{existsFl:!1,isAppWeb:!1,siteAbsoluteUrl:"",siteServerRelativeUrl:"",userId:0,webAbsoluteUrl:"",webServerRelativeUrl:""}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"alertsEnabled",{get:function(){return this._contextInfo.alertsEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(e,"allowSilverlightPrompt",{get:function(){return"True"==this._contextInfo.allowSilverlightPrompt},enumerable:!0,configurable:!0}),Object.defineProperty(e,"clientServerTimeDelta",{get:function(){return this._contextInfo.clientServerTimeDelta},enumerable:!0,configurable:!0}),Object.defineProperty(e,"crossDomainPhotosEnabled",{get:function(){return this._contextInfo.crossDomainPhotosEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentCultureName",{get:function(){return this._contextInfo.currentCultureName},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentLanguage",{get:function(){return this._contextInfo.currentLanguage},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentUICultureName",{get:function(){return this._contextInfo.currentUICultureName},enumerable:!0,configurable:!0}),Object.defineProperty(e,"document",{get:function(){return this.window.document},enumerable:!0,configurable:!0}),Object.defineProperty(e,"env",{get:function(){return this._contextInfo.env},enumerable:!0,configurable:!0}),Object.defineProperty(e,"existsFl",{get:function(){return null==this._contextInfo.existsFl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"hasManageWebPermissions",{get:function(){return this._contextInfo.hasManageWebPermissions},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isAnonymousGuestUser",{get:function(){return this._contextInfo.isAnonymousGuestUser},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isAppWeb",{get:function(){return this._contextInfo.isAppWeb},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isSiteAdmin",{get:function(){return this._contextInfo.isSiteAdmin},enumerable:!0,configurable:!0}),Object.defineProperty(e,"layoutsUrl",{get:function(){return this._contextInfo.layoutsUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pageItemId",{get:function(){return this._contextInfo.pageItemId},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pageListId",{get:function(){return this._contextInfo.pageListId},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pagePersonalizationScope",{get:function(){return this._contextInfo.pagePersonalizationScope},enumerable:!0,configurable:!0}),Object.defineProperty(e,"profileUrl",{get:function(){return this._contextInfo.profileUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"serverRequestPath",{get:function(){return this._contextInfo.serverRequestPath},enumerable:!0,configurable:!0}),Object.defineProperty(e,"siteAbsoluteUrl",{get:function(){return this._contextInfo.siteAbsoluteUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"siteClientTag",{get:function(){return this._contextInfo.siteClientTag},enumerable:!0,configurable:!0}),Object.defineProperty(e,"siteServerRelativeUrl",{get:function(){return this._contextInfo.siteServerRelativeUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"systemUserKey",{get:function(){return this._contextInfo.systemUserKey},enumerable:!0,configurable:!0}),Object.defineProperty(e,"tenantAppVersion",{get:function(){return this._contextInfo.tenantAppVersion},enumerable:!0,configurable:!0}),Object.defineProperty(e,"themeCacheToken",{get:function(){return this._contextInfo.themeCacheToken},enumerable:!0,configurable:!0}),Object.defineProperty(e,"updateFromDigestPageLoaded",{get:function(){return this._contextInfo.updateFromDigestPageLoaded},enumerable:!0,configurable:!0}),Object.defineProperty(e,"userId",{get:function(){return this._contextInfo.userId},enumerable:!0,configurable:!0}),Object.defineProperty(e,"userLoginName",{get:function(){return this._contextInfo.userLoginName},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webAbsoluteUrl",{get:function(){return this._contextInfo.webAbsoluteUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webLanguage",{get:function(){return this._contextInfo.webLanguage},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webLogoUrl",{get:function(){return this._contextInfo.webLogoUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webPermMask",{get:function(){return this._contextInfo.webPermMask},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webServerRelativeUrl",{get:function(){return this._contextInfo.webServerRelativeUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webTemplate",{get:function(){return this._contextInfo.webTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webTitle",{get:function(){return this._contextInfo.webTitle},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webUIVersion",{get:function(){return this._contextInfo.webUIVersion},enumerable:!0,configurable:!0}),Object.defineProperty(e,"window",{get:function(){return"undefined"==typeof window?{}:window},enumerable:!0,configurable:!0}),e.getWeb=function(e){return new n.Base({endpoint:"contextinfo",method:"POST",url:e})},e}();t.ContextInfo=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),s=r(3),o=r(0),i=r(1),a=function(){function e(){}return e.prototype.addMethods=function(e,t){var r=t.results&&t.results.length>0,n=r?t.results[0].__metadata:t.__metadata,o=n&&n.type?n.type:e.targetInfo.endpoint;o=(o=(o=(o=o.split("/"))[o.length-1]).split("."))[o.length-1].toLowerCase(),(/^field/.test(o+=r?"s":"")||/field$/.test(o))&&"fieldlinks"!=o&&"fields"!=o?o="field"+(r?"s":""):/item$/.test(o)?o="listitem":/items$/.test(o)&&(o="items");var i=s.Mapper[o];if(i)for(var a in i){var u=i[a]?i[a]:{};if("properties"!=a)"function"==typeof u.metadataType&&((u=JSON.parse(JSON.stringify(u))).metadataType=i[a].metadataType(e)),e[a]=new Function("return this.executeMethod('"+a+"', "+JSON.stringify(u)+", arguments);");else for(var l=0,p=u;l1?d[1]:null,y=d.length>2?d[2]:null,g=d.length>3?d[3]:null;(null==e[c]||e[c].__deferred&&e[c].__deferred.uri)&&(4==d.length?(y=y.replace(/'/g,"\\'"),e[c]=new Function("name","name = name ? '"+c+y+"'.replace(/\\[Name\\]/g, name) : null;return this.getProperty(name ? name : '"+c+"', name ? '"+g+"' : '"+f+"');")):e[c]=new Function("return this.getProperty('"+c+"', '"+f+"');"))}}},e.prototype.addProperties=function(e,t){for(var r in t){var n=t[r];if("__metadata"!=r&&"results"!=r)if(n&&n.__deferred&&n.__deferred.uri)e["get_"+r]=e["get_"+r]?e["get_"+r]:new Function("return this.getCollection('"+r+"', arguments);");else{switch(r){case"ClientPeoplePickerResolveUser":case"ClientPeoplePickerSearchUser":e[r]=JSON.parse(n);break;default:e[r]=n}if(e[r]&&e[r].results&&(0==e[r].results.length||"object"==typeof e[r].results[0])){var s=new i.Base(e.targetInfo);s.results=e[r].results,0==s.results.length&&(s.__metadata={type:r}),s.targetInfo.endpoint=(s.targetInfo.endpoint.split("?")[0]+"/"+r).replace(/\//g,"/"),e.addMethods(s,s),e.updateDataCollection(e,s.results),e[r]=s}}}},e.prototype.updateDataCollection=function(e,t){if(t&&(e.results=e.results?e.results.concat(t):t,e.results.length>0))for(var r=0,n=e.results;r=200&&this.status<300){if(this.requestType==o.RequestType.GetBuffer)return;for(var t=0,r=0,n=e?this.response.split("\n"):[this.response],s=0;s0&&(n.endpoint=n.endpoint?n.endpoint:"",n.endpoint&&a.url&&0!=a.url.indexOf("?")&&(n.endpoint+="/"),n.endpoint+=a.url);var u=new o.Base(n);return u.base=this.base?this.base:this,u.getAllItemsFl=a.getAllItemsFl,u.parent=this,u.requestType=t.requestType,t.returnType&&this.addMethods(u,{__metadata:{type:t.returnType}}),u},t.prototype.executeRequest=function(e,t){var r=this,n=this.base&&this.base.batchRequests&&this.base.batchRequests.length>0,i=n?o.Batch.getTargetInfo(this.base.batchRequests):new o.TargetInfo(this.targetInfo);if(!e)return this.xhr?this:(this.xhr=new o.XHRRequest(e,i),this.response=this.xhr.response,this.status=this.xhr.status,this.requestType==s.RequestType.GetBuffer?this.xhr.response:(this.updateDataObject(n),this.d&&this.d.__next&&(this.next=new Function("return this.getNextSetOfResults();")),this));this.xhr&&!n?t&&t(this):this.xhr=new o.XHRRequest(e,i,function(){r.response=r.xhr.response,r.status=r.xhr.status,r.requestType==s.RequestType.GetBuffer&&t&&t(r.xhr.response),r.updateDataObject(n),n||r.validateDataCollectionResults().done(function(){t&&t(r)})})},t.prototype.getCollection=function(e,t){var r=Object.create(this.targetInfo);r.data=null,r.method=null;var n=this.d?this.d.__metadata:this.__metadata;n&&n.uri?(r.url=n.uri,this.updateMetadataUri(n,r),r.endpoint=e):r.endpoint+="/"+e,r.callback=t&&"function"==typeof t[0]?t[0]:null;var s=new o.Base(r);return s.base=this.base?this.base:this,s.parent=this,s},t.prototype.getNextSetOfResults=function(){var e=Object.create(this.targetInfo);e.endpoint="",e.url=this.d.__next;var t=new o.Base(e);return t.base=this.base?this.base:this,t.parent=this,t},t.prototype.getProperty=function(e,t){var r=Object.create(this.targetInfo);r.data=null,r.method=null;var n=this.d?this.d.__metadata:this.__metadata;n&&n.uri?(r.url=n.uri,this.updateMetadataUri(n,r),r.endpoint=e):r.endpoint+="/"+e;var s=new o.Base(r);return s.base=this.base?this.base:this,s.parent=this,t&&this.addMethods(s,{__metadata:{type:t}}),s},t.prototype.updateMetadataUri=function(e,t){/^SP.Field/.test(e.type)||/^SP\..*Field$/.test(e.type)?t.url=t.url.replace(/AvailableFields/,"fields"):/SP.EventReceiverDefinition/.test(e.type)&&(t.url=t.url.replace(/\/EventReceiver\//,"/EventReceivers/"))},t.prototype.validateDataCollectionResults=function(e){var t=this;if(e=e||new o.Promise,this.xhr&&this.status<400&&"string"==typeof this.response&&this.response.length>0){var r=JSON.parse(this.response);if(r.d&&r.d.__next)if(this.getAllItemsFl){var n=Object.create(this.targetInfo);n.endpoint="",n.url=r.d.__next,new o.XHRRequest(!0,new o.TargetInfo(n),function(r){var n=JSON.parse(r.response);if(n.d)return t.updateDataCollection(t,n.d.results),t.d.results=t.d.results.concat(n.d.results),t.validateDataCollectionResults(e);e.resolve()})}else this.next=new Function("return this.getNextSetOfResults();"),e.resolve();else e.resolve()}else e.resolve();return e},t}(o.BaseHelper);t.BaseRequest=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),o=r(1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.batch=function(e){var t=null,r=!1;return"boolean"==typeof e?r=e:t=e,this.base=this.base?this.base:this,r&&this.base.batchRequests?this.base.batchRequests[this.base.batchRequests.length-1].push({targetInfo:new o.TargetInfo(this.targetInfo)}):(this.base.batchRequests=this.base.batchRequests||[],this.base.batchRequests.push([{callback:t,targetInfo:new o.TargetInfo(this.targetInfo)}])),this},t.prototype.execute=function(){for(var e=this,t=[],r=0;r0&&1!=r.base.waitFlags[o-1])return}s.ContextInfo.window.clearInterval(n),e()},10)},t}(o.BaseRequest);t.BaseExecution=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),o=function(e){function t(t){var r=e.call(this)||this;return r.targetInfo=Object.create(t||{}),r.responses=[],r.requestType=0,r.waitFlags=[],r}return n(t,e),t.prototype.done=function(e){var t=this;this.base=this.base?this.base:this,this.responseIndex=this.responseIndex>=0?this.responseIndex:0,this.waitForRequestsToComplete(function(){var r=t.base.responses;t.base.responses=[],t.base.waitFlags=[],e&&e.apply(t,r)})},t.prototype.getInfo=function(){return new s.TargetInfo(this.targetInfo).requestInfo},t.prototype.then=function(e,t){var r=this;return new s.Promise(function(){r.execute(function(n){n&&n.existsFl?e&&e.apply(r,n):t&&t.apply(r,n)})})},t}(s.BaseExecution);t.Base=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),s=function(){function e(){}return e.getTargetInfo=function(e){for(var t="batch_"+this.guid(),r=[],s=0;s0&&(null==this.methodInfo.argNames?this.methodData=this.methodInfo.argValues[0]:this.methodInfo.argValues.length>this.methodInfo.argNames.length&&(this.methodData=this.methodInfo.argValues[this.methodInfo.argNames.length])),this.methodInfo.metadataType&&(this.methodInfo.argNames?(this.methodData||this.methodParams)[this.methodInfo.argNames[0]].__metadata=(this.methodData||this.methodParams)[this.methodInfo.argNames[0]].__metadata||{type:this.methodInfo.metadataType}:(this.methodData||this.methodParams).__metadata=(this.methodData||this.methodParams).__metadata||{type:this.methodInfo.metadataType})}},e.prototype.generateUrl=function(){var e=this.methodInfo.name;if(this.methodInfo.requestType==n.RequestType.Delete&&(e="deleteObject"),this.passDataInBody){o=this.methodData||this.methodParams;this.methodData=JSON.stringify(o)}if(this.passDataInQS){e+="(@v)?@v="+("string"==typeof(o=this.methodParams||this.methodData)?"'"+encodeURIComponent(o)+"'":JSON.stringify(o))}if(this.replace)for(var t in this.methodParams)e=e.replace("[["+t+"]]",encodeURIComponent(this.methodParams[t]));else if(this.methodInfo.requestType==n.RequestType.OData){var r=new s.OData(this.methodParams.oData);e="?"+r.QueryString,this.methodInfo.getAllItemsFl=r.GetAllItems}else if(!this.passDataInBody&&!this.passDataInQS){var o,i="";if(o=this.methodParams||this.methodData){o=o&&"object"==typeof o?o:{value:o};for(var a in o){var u=o[a];switch(u="string"==typeof u?"'"+u+"'":u,this.methodInfo.requestType){case n.RequestType.GetWithArgsValueOnly:case n.RequestType.PostWithArgsValueOnly:i+=u+", ";break;default:i+=a+"="+u+", "}}}e+=i.length>0?"("+i.replace(/, $/,"")+")":""}return e},e}();t.MethodInfo=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this._custom=e&&e.Custom?e.Custom:null,this._expand=e&&e.Expand?e.Expand:[],this._filter=e&&e.Filter?e.Filter:null,this._getAllItems=!(!e||!e.GetAllItems)&&e.GetAllItems,this._orderBy=e&&e.OrderBy?e.OrderBy:[],this._select=e&&e.Select?e.Select:[],this._skip=e&&e.Skip?e.Skip:null,this._top=e&&e.Top?e.Top:null}return Object.defineProperty(e.prototype,"Custom",{get:function(){return this._custom},set:function(e){this._custom=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Expand",{get:function(){return this._expand},set:function(e){this._expand=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Filter",{get:function(){return this._filter},set:function(e){this._filter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"GetAllItems",{get:function(){return this._getAllItems},set:function(e){this._getAllItems=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OrderBy",{get:function(){return this._orderBy},set:function(e){this._orderBy=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"QueryString",{get:function(){var e="",t=[];t.push(this.getQSValue("$select",this._select)),t.push(this.getQSValue("$orderby",this._orderBy)),this._top&&t.push("$top="+this._top),this._skip&&t.push("$skip="+this._skip),this._filter&&t.push("$filter="+this._filter),t.push(this.getQSValue("$expand",this._expand)),this._custom&&t.push(this._custom);for(var r=0,n=t;r0?e+"="+t.join(","):""},e}();t.OData=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.callback=e,this.resolvedFl=!1}return e.prototype.done=function(e){this.callback=e||this.callback,this.resolvedFl&&this.executeMethod()},e.prototype.resolve=function(){for(var e=[],t=0;t=2&&(t=t[0]+"//"+t[2]),t},e.getQueryStringValue=function(e){for(var t=n.ContextInfo.existsFl?n.ContextInfo.document.location.href.split("?"):[""],r=(t=t.length>1?t[1]:t[0]).split("&"),s=0;st.length?-1:1});for(var o=0,i=t;o=this.MAX_WAIT)&&(s.ContextInfo.window.clearInterval(t),this.promise.resolve())},10)},e}();t.Dependencies=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),s=r(2);t.JSLinkHelper={hideEventFl:!1,_fieldToMethodMapper:{Attachments:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldAttachments_Default,2:s.ContextInfo.window.SPFieldAttachments_Default,3:s.ContextInfo.window.SPFieldAttachments_Default},Boolean:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_DefaultNoEncode,2:s.ContextInfo.window.SPFieldBoolean_Edit,3:s.ContextInfo.window.SPFieldBoolean_Edit},Currency:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldNumber_Edit,3:s.ContextInfo.window.SPFieldNumber_Edit},Calculated:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPField_FormDisplay_Empty,3:s.ContextInfo.window.SPField_FormDisplay_Empty},Choice:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldChoice_Edit,3:s.ContextInfo.window.SPFieldChoice_Edit},Computed:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPField_FormDisplay_Default,3:s.ContextInfo.window.SPField_FormDisplay_Default},DateTime:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldDateTime_Display,2:s.ContextInfo.window.SPFieldDateTime_Edit,3:s.ContextInfo.window.SPFieldDateTime_Edit},File:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldFile_Display,2:s.ContextInfo.window.SPFieldFile_Edit,3:s.ContextInfo.window.SPFieldFile_Edit},Integer:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldNumber_Edit,3:s.ContextInfo.window.SPFieldNumber_Edit},Lookup:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldLookup_Display,2:s.ContextInfo.window.SPFieldLookup_Edit,3:s.ContextInfo.window.SPFieldLookup_Edit},LookupMulti:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldLookup_Display,2:s.ContextInfo.window.SPFieldLookup_Edit,3:s.ContextInfo.window.SPFieldLookup_Edit},MultiChoice:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldMultiChoice_Edit,3:s.ContextInfo.window.SPFieldMultiChoice_Edit},Note:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldNote_Display,2:s.ContextInfo.window.SPFieldNote_Edit,3:s.ContextInfo.window.SPFieldNote_Edit},Number:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldNumber_Edit,3:s.ContextInfo.window.SPFieldNumber_Edit},Text:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldText_Edit,3:s.ContextInfo.window.SPFieldText_Edit},URL:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldUrl_Display,2:s.ContextInfo.window.SPFieldUrl_Edit,3:s.ContextInfo.window.SPFieldUrl_Edit},User:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldUser_Display,2:s.ContextInfo.window.SPClientPeoplePickerCSRTemplate,3:s.ContextInfo.window.SPClientPeoplePickerCSRTemplate},UserMulti:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldUserMulti_Display,2:s.ContextInfo.window.SPClientPeoplePickerCSRTemplate,3:s.ContextInfo.window.SPClientPeoplePickerCSRTemplate}},disableEdit:function(e,r,s){var o=e.CurrentFieldValue;if(o){switch(e.CurrentFieldSchema.Type){case"MultiChoice":var i=new RegExp(n.SPTypes.ClientTemplatesUtility.UserLookupDelimitString,"g");o=e.CurrentFieldValue.replace(i,"; ").replace(/^; /g,"").replace(/; $/g,"");break;case"Note":o="
"+e.CurrentFieldValue.replace(/\n/g,"
")+"
";break;case"User":case"UserMulti":for(var a=0;a"},renderField:function(e,r,n){var o=r?r.Type:e.CurrentFieldSchema?e.CurrentFieldSchema.Type:null;if(n=n||e.ControlMode,t.JSLinkHelper._fieldToMethodMapper[o]&&t.JSLinkHelper._fieldToMethodMapper[o][n]){var i=t.JSLinkHelper._fieldToMethodMapper[o][n](e);if(i)return i}var a=null;switch((r=e.CurrentFieldSchema).Type){case"AllDayEvent":a=new s.ContextInfo.window.AllDayEventFieldRenderer(r.Name);break;case"Attachments":a=new s.ContextInfo.window.AttachmentFieldRenderer(r.Name);break;case"BusinessData":a=new s.ContextInfo.window.BusinessDataFieldRenderer(r.Name);break;case"Computed":a=new s.ContextInfo.window.ComputedFieldRenderer(r.Name);break;case"CrossProjectLink":a=new s.ContextInfo.window.ProjectLinkFieldRenderer(r.Name);break;case"Currency":a=new s.ContextInfo.window.NumberFieldRenderer(r.Name);break;case"DateTime":a=new s.ContextInfo.window.DateTimeFieldRenderer(r.Name);break;case"Lookup":case"LookupMulti":a=new s.ContextInfo.window.LookupFieldRenderer(r.Name);break;case"Note":a=new s.ContextInfo.window.NoteFieldRenderer(r.Name);break;case"Number":a=new s.ContextInfo.window.NumberFieldRenderer(r.Name);break;case"Recurrence":a=new s.ContextInfo.window.RecurrenceFieldRenderer(r.Name);break;case"Text":a=new s.ContextInfo.window.TextFieldRenderer(r.Name);break;case"URL":a=new s.ContextInfo.window.UrlFieldRenderer(r.Name);break;case"User":case"UserMulti":a=new s.ContextInfo.window.UserFieldRenderer(r.Name);break;case"WorkflowStatus":a=new s.ContextInfo.window.RawFieldRenderer(r.Name)}var u=e.CurrentItem||e.ListData.Items[0];return a?a.RenderField(e,r,u,e.ListSchema):u[r.Name]}}},function(e,t,r){"use strict";var n=this;Object.defineProperty(t,"__esModule",{value:!0});var s=r(2);t.Loader={loaded:!1,waitForSPLibs:function(e,t,r){var o=0;r="boolean"==typeof r&&r;var i=(t="number"==typeof t?t:2500)/25;if(n.loaded)e();else{r&&["MicrosoftAjax.js","init.js","sp.runtime.js","sp.js","sp.core.js","core.js"].every(function(e){var t=s.ContextInfo.document.createElement("script");return t.setAttribute("src","/_layouts/15/"+e),t.setAttribute("type","text/javascript"),s.ContextInfo.document.head.appendChild(t),!0});var a=setInterval(function(){var t=++o>i;(s.ContextInfo.existsFl||t)&&(clearInterval(a),e())},25)}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),s=r(0),o=r(2),i=function(){function e(e,t){var r=this;this.installByType=function(e,t,n){return r.install(t,e,n)},this.uninstallByType=function(e,t,n){return r.uninstall(t,e,n)},this.createContentTypes=function(e,t){var s=new n.Promise;if(null==t||0==t.length)return s.resolve(),s;for(var i=function(n){var s=t[n],i=r.isInCollection("Name",s.Name,e.results);i?(console.log("[gd-sprest][Content Type] The content type '"+s.Name+"' already exists."),s.ContentType=i):(console.log("[gd-sprest][Content Type] Creating the '"+s.Name+"' content type."),s.ParentName?new o.Web(s.ParentWebUrl||r._webUrl).ContentTypes().query({Filter:"Name eq '"+s.ParentName+"'"}).execute(function(t){t.results[0]?e.addAvailableContentType(t.results[0].Id.StringValue).execute(function(e){e.existsFl?(console.log("[gd-sprest][Content Type] The content type '"+s.Name+"' was created successfully."),s.ContentType=e,s.onCreated&&s.onCreated(e)):(console.log("[gd-sprest][Content Type] The content type '"+s.Name+"' failed to be created."),console.error("[gd-sprest][Field] Error: "+e.response))},!0):console.log("[gd-sprest][Content Type] The parent content type '"+s.Name+"' was not found.")}):e.add({Description:s.Description,Group:s.Group,Name:s.Name}).execute(function(e){e.existsFl?(console.log("[gd-sprest][Content Type] The content type '"+s.Name+"' was created successfully."),s.ContentType=e,s.onCreated&&s.onCreated(e)):(console.log("[gd-sprest][Content Type] The content type '"+s.Name+"' failed to be created."),console.error("[gd-sprest][Field] Error: "+e.response))}))},a=0;a0){console.log("[gd-sprest][View] Updating the view fields for the '"+o.ViewName+"' view."),i.ViewFields().removeAllViewFields().execute(!0);for(var a=0;a=t.length&&s.resolve()})},i=0;i[[camlQuery]]"}}},getListItemChangesSinceToken:{argNames:["query"],metadataType:"SP.ChangeLogItemQuery",requestType:n.RequestType.PostWithArgsInBody},getRelatedFields:{requestType:n.RequestType.Get},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:n.RequestType.GetReplace},getViewById:{argNames:["viewId"],name:"getView",requestType:n.RequestType.GetWithArgsValueOnly,returnType:"view"},query:{argNames:["oData"],requestType:n.RequestType.OData},recycle:{requestType:n.RequestType.Post},renderListData:{argNames:["viewXml"],name:"renderListData(@v)?@v='[[viewXml]]'",requestType:n.RequestType.PostReplace},renderListFormData:{argNames:["itemid","formid","mode"],requestType:n.RequestType.PostWithArgs},reserveListItemId:{requestType:n.RequestType.Post},resetRoleInheritance:{requestType:n.RequestType.Post},update:{metadataType:"SP.List",name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody}},t.listitem={properties:["AttachmentFiles|attachmentfiles|('[Name]')|attachment","ContentType|contenttype","FieldValuesAsHtml","FieldValuesAsText","FieldValuesForEdit","File|file","FirstUniqueAncestorSecurableObject","Folder|folder","GetDlpPolicyTip","ParentList|list","Properties|propertyvalues","RoleAssignments|roleassignments|roleassignments|([Name])|roleassignment"],breakRoleInheritance:{argNames:["copyroleassignments","clearsubscopes"],requestType:n.RequestType.PostWithArgs},delete:{requestType:n.RequestType.Delete},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:n.RequestType.GetReplace},query:{argNames:["oData"],requestType:n.RequestType.OData},recycle:{requestType:n.RequestType.Post},resetRoleInheritance:{requestType:n.RequestType.Post},update:{inheritMetadataType:!0,name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody},validateUpdateListItem:{argNames:["formValues","bNewDocumentUpdate"],requestType:n.RequestType.PostWithArgsInBody}},t.lists={add:{metadataType:"SP.List",name:"",requestType:n.RequestType.PostWithArgsInBody},ensureSiteAssetsLibrary:{requestType:n.RequestType.Post},ensureSitePagesLibrary:{requestType:n.RequestType.Post},getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"list"},getByTitle:{argNames:["title"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"list"},query:{argNames:["oData"],requestType:n.RequestType.OData}},t.version={getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"version"},deleteAll:{requestType:n.RequestType.Post},deleteById:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly},deleteByLabel:{argNames:["label"],requestType:n.RequestType.PostWithArgsValueOnly},query:{argNames:["oData"],requestType:n.RequestType.OData},restoreByLabel:{argNames:["label"],requestType:n.RequestType.PostWithArgsValueOnly}},t.view={properties:["ViewFields|viewfieldcollection"],delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData},renderAsHtml:{requestType:n.RequestType.Get},update:{metadataType:"SP.View",name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody}},t.viewfieldcollection={addViewField:{argNames:["fieldName"],requestType:n.RequestType.PostWithArgsValueOnly},moveViewFieldTo:{argNames:["field","index"],requestType:n.RequestType.PostWithArgsInBody},query:{argNames:["oData"],requestType:n.RequestType.OData},removeAllViewFields:{requestType:n.RequestType.Post},removeViewField:{argNames:["fieldName"],requestType:n.RequestType.GetWithArgsValueOnly}},t.views={add:{metadataType:"SP.View",name:"",requestType:n.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"view"},getByTitle:{argNames:["title"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"view"},query:{argNames:["oData"],requestType:n.RequestType.OData}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.propertyvalues={query:{argNames:["oData"],requestType:n.RequestType.OData}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.search={postquery:{argNames:["request"],metadataType:"Microsoft.Office.Server.Search.REST.SearchRequest",requestType:n.RequestType.PostWithArgsInBody}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.roleassignment={properties:["Member","RoleDefinitionBindings|roledefinitions"],delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData}},t.roleassignments={addRoleAssignment:{argNames:["principalId","roleDefId"],requestType:n.RequestType.PostWithArgs},getByPrincipalId:{argNames:["principalId"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"roleassignment"},query:{argNames:["oData"],requestType:n.RequestType.OData},removeRoleAssignment:{argNames:["principalId","roleDefId"],requestType:n.RequestType.PostWithArgs}},t.roledefinition={delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData}},t.roledefinitions={getById:{argNames:["roleDefId"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"roledefinition"},getByName:{argNames:["name"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"roledefinition"},getByType:{argNames:["roleType"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"roledefinitions"},query:{argNames:["oData"],requestType:n.RequestType.OData}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.site={properties:["EventReceivers|eventreceivers|('[Name]')|eventreceiver","Features","Owner|user","RootWeb|web","UserCustomActions|usercustomactions|('[Name]')|usercustomaction"],createPreviewSPSite:{argNames:["upgrade","sendemail"],requestType:n.RequestType.PostWithArgs},extendUpgradeReminderDate:{requestType:n.RequestType.Post},getCatalog:{argNames:["typeCatalog"],requestType:n.RequestType.PostWithArgsValueOnly},getChanges:{argNames:["query"],metadataType:"SP.ChangeQuery",requestType:n.RequestType.PostWithArgsInBody},getCustomListTemplates:{argNames:["web"],requestType:n.RequestType.PostWithArgs},getWebTemplates:{argNames:["LCID","overrideCompatLevel"],requestType:n.RequestType.PostWithArgs},invalidate:{requestType:n.RequestType.Post},needsUpgradeByType:{argNames:["versionUpgrade","recursive"],requestType:n.RequestType.PostWithArgs},openWeb:{argNames:["strUrl"],requestType:n.RequestType.PostWithArgsValueOnly},openWebById:{argNames:["gWebId"],requestType:n.RequestType.PostWithArgsValueOnly},query:{argNames:["oData"],requestType:n.RequestType.OData},runHealthCheck:{argNames:["ruleId","bRepair","bRunAlways"],requestType:n.RequestType.PostWithArgs},runUpgradeSiteSession:{argNames:["versionUpgrade","queueOnly","sendEmail"],requestType:n.RequestType.PostWithArgs},update:{metadataType:"SP.Site",name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody},updateClientObjectModelUseRemoteAPIsPermissionSetting:{argNames:["requireUseRemoteAPIs"],requestType:n.RequestType.PostWithArgs}},t.tenantapp={Deploy:{requestType:n.RequestType.Post},Install:{requestType:n.RequestType.Post},query:{argNames:["oData"],requestType:n.RequestType.OData},Remove:{requestType:n.RequestType.Post},Retract:{requestType:n.RequestType.Post},Upgrade:{requestType:n.RequestType.Post},Uninstall:{requestType:n.RequestType.Post}},t.tenantapps={GetById:{argNames:["guid"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"tenantapp"},query:{argNames:["oData"],requestType:n.RequestType.OData}},t.tenantappcatalog={properties:["AvailableApps|tenantapps|/getById('[Id]')|tenantapp"],Add:{argNames:["overwrite","url"],requestType:n.RequestType.PostWithArgs},GetById:{argNames:["guid"],name:"AvailableApps/getById('[[guid]]')",requestType:n.RequestType.GetReplace,returnType:"tenantapp"},SiteCollectionAppCatalogsSites:{requestType:n.RequestType.Post}},t.web={properties:["AllProperties|propertyvalues","AppTiles","AssociatedMemberGroup|group","AssociatedOwnerGroup|group","AssociatedVisitorGroup|group","Author|user","AvailableContentTypes|contenttypes","AvailableFields|fields","ClientWebParts","ContentTypes|contenttypes|('[Name]')|contenttype","CurrentUser|user","DataLeakagePreventionStatusInfo","DescriptionResource","EventReceivers|eventreceivers|('[Name]')|eventreceiver","Features","Fields|fields|/getByInternalNameOrTitle('[Name]')|field","FirstUniqueAncestorSecurableObject","Folders|folders|/getByUrl('[Name]')|folder","Lists|lists|/getByTitle('[Name]')|list","ListTemplates|listtemplates|('[Name]')|listtemplate","Navigation","ParentWeb","PushNotificationSubscribers","RecycleBin","RegionalSettings","RoleAssignments|roleassignments|([Name])|roleassignment","RoleDefinitions|roledefinitions|/getByName('[Name]')|roledefinition","RootFolder|folder|/getByUrl('[Name]')|file","SiteGroups|sitegroups|/getByName('[Name]')|group","SiteUserInfoList","SiteUsers|users|/getById([Name])|user","TenantAppCatalog|tenantappcatalog","ThemeInfo","TitleResource","UserCustomActions|usercustomactions|('[Name]')|usercustomaction","WebInfos|webinfos","Webs|webs","WorkflowAssociations","WorkflowTemplates"],applyTheme:{argNames:["colorpaletteurl","fontschemeurl","backgroundimageurl","sharegenerated"],requestType:n.RequestType.PostWithArgs},applyWebTemplate:{argName:["name"],requestType:n.RequestType.PostWithArgsInQS},breakRoleInheritance:{argNames:["copyroleassignments","clearsubscopes"],requestType:n.RequestType.PostWithArgs},delete:{requestType:n.RequestType.Delete},doesPushNotificationSubscriberExist:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly},doesUserHavePermissions:{argNames:["High","Low"],requestType:n.RequestType.GetWithArgsInQS},ensureUser:{argNames:["logonName"],requestType:n.RequestType.PostWithArgsInBody},executeRemoteLOB:{requestType:n.RequestType.PostWithArgsInBody},getAppBdcCatalog:{requestType:n.RequestType.Post},getAppBdcCatalogForAppInstance:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly},getAppInstanceById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly},getAppInstancesByProductId:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly},getAvailableWebTemplates:{argNames:["lcid","doincludecrosslanguage"],requestType:n.RequestType.GetWithArgs},getCatalog:{argNames:["galleryType"],requestType:n.RequestType.GetWithArgsValueOnly},getChanges:{argNames:["query"],metadataType:"SP.ChangeQuery",requestType:n.RequestType.PostWithArgsInBody},getContextWebInformation:{name:"contextInfo",replaceEndpointFl:!0,requestType:n.RequestType.Post},getCustomListTemplates:{requestType:n.RequestType.Get},getDocumentLibraries:{argNames:["url"],name:"sp.web.getDocumentLibraries",requestType:n.RequestType.GetWithArgsInQS},getEntity:{argNames:["namespace","name"],requestType:n.RequestType.PostWithArgs},getFileByServerRelativeUrl:{argNames:["url"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"file"},getFolderByServerRelativeUrl:{argNames:["url"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"folder"},getList:{argNames:["url"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"list"},getPushNotificationSubscriber:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly},getPushNotificationSubscribersByArgs:{argNames:["args"],requestType:n.RequestType.GetWithArgsValueOnly},getPushNotificationSubscribersByUser:{argNames:["loginName"],requestType:n.RequestType.GetWithArgsInQS},getSubwebsFilteredForCurrentUser:{argNames:["nwebtemplatefilter","nconfigurationfilter"],requestType:n.RequestType.GetWithArgs,returnType:"webinfos"},getUserById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"user"},getUserEffectivePermissions:{argNames:["loginName"],name:"getUserEffectivePermissions(@user)?@user='[[loginName]]'",requestType:n.RequestType.GetReplace},getWebUrlFromPageUrl:{name:"sp.web.getWebUrlFromPageUrl",requestType:n.RequestType.GetWithArgsInQS},loadAndInstallApp:{requestType:n.RequestType.PostWithArgsInBody},loadAndInstallAppInSpecifiedLocale:{argNames:["appPackageStream","installationLocaleLCID"],requestType:n.RequestType.PostWithArgsInBody},loadApp:{argNames:["appPackageStream","installationLocaleLCID"],requestType:n.RequestType.PostWithArgsInBody},mapToIcon:{argNames:["filename","progid","size"],requestType:n.RequestType.GetWithArgs},processExternalNotification:{requestType:n.RequestType.PostWithArgsInBody},query:{argNames:["oData"],requestType:n.RequestType.OData},registerPushNotificationSubscriber:{argNames:["deviceappinstanceid","servicetoken"],requestType:n.RequestType.PostWithArgs},resetRoleInheritance:{requestType:n.RequestType.Post},unregisterPushNotificationSubscriber:{requestType:n.RequestType.PostWithArgsValueOnly},update:{metadataType:"SP.Web",name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody}},t.webinfos={query:{argNames:["oData"],requestType:n.RequestType.OData}},t.webs={add:{argNames:["parameters"],metadataType:"SP.WebCreationInformation",requestType:n.RequestType.PostWithArgsInBody},query:{argNames:["oData"],requestType:n.RequestType.OData}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.peoplemanager={amIFollowedBy:{argNames:["accountName"],requestType:n.RequestType.GetWithArgsInQS},amIFollowing:{argNames:["accountName"],requestType:n.RequestType.GetWithArgsInQS},follow:{argNames:["accountName"],requestType:n.RequestType.PostWithArgsInQS},followTag:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly},getFollowedTags:{argNames:["maxCount"],requestType:n.RequestType.GetWithArgsValueOnly},getFollowersFor:{argNames:["accountName"],requestType:n.RequestType.GetWithArgsInQS},getMyFollowers:{requestType:n.RequestType.Get},getMyProperties:{requestType:n.RequestType.Get},getMySuggestions:{requestType:n.RequestType.Get},getPeopleFollowedBy:{argNames:["accountName"],requestType:n.RequestType.GetWithArgsInQS},getPeopleFollowedByMe:{requestType:n.RequestType.Get},getPropertiesFor:{argNames:["accountName"],requestType:n.RequestType.GetWithArgsInQS},getTrendingTags:{name:"sp.userprofiles.peoplemanager.gettrendingtags",replaceEndpointFl:!0,requestType:n.RequestType.Get},getUserProfilePropertyFor:{argNames:["accountName","propertyName"],requestType:n.RequestType.GetWithArgsInQS},hideSuggestion:{argNames:["accountName"],requestType:n.RequestType.PostWithArgsInQS},isFollowing:{argNames:["possibleFollowerAccountName","possibleFolloweeAccountName"],name:"sp.userprofiles.peoplemanager.isfollowing",replaceEndpointFl:!0,requestType:n.RequestType.GetWithArgsInQS},setMyProfilePicture:{requestType:n.RequestType.PostWithArgsInBody},stopFollowing:{argNames:["accountName"],requestType:n.RequestType.PostWithArgsInQS},stopFollowingTag:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly}},t.profileloader={createPersonalSiteEnqueueBulk:{argNames:["emailIDs"],requestType:n.RequestType.PostWithArgsInBody},getOwnerUserProfile:{name:"sp.userprofiles.profileloader.getowneruserprofile",replaceEndpointFl:!0,requestType:n.RequestType.Post,returnType:"userprofile"},getUserProfile:{requestType:n.RequestType.Post,returnType:"userprofile"}},t.socialfeed={actor:{argNames:["accountName"],name:"actor(item=@v)?@v='[[accountName]]'",requestType:n.RequestType.GetReplace},actorFeed:{argNames:["accountName"],name:"actor(item=@v)/feed?@v='[[accountName]]'",requestType:n.RequestType.GetReplace},clearMyUnreadMentionCount:{name:"my/mentionfeed/clearMyUnreadMentionCount",requestType:n.RequestType.Post},my:{name:"my",requestType:n.RequestType.Get},myFeed:{name:"my/feed",requestType:n.RequestType.Get},myLikes:{name:"my/likes",requestType:n.RequestType.Get},myMentionFeed:{name:"my/mentionfeed",requestType:n.RequestType.Get},myNews:{name:"my/news",requestType:n.RequestType.Get},myTimelineFeed:{name:"my/timelinefeed",requestType:n.RequestType.Get},myUnreadMentionCount:{name:"my/unreadmentioncount",requestType:n.RequestType.Get}},t.userprofile={properties:["PersonalSite|site"],createPersonalSiteEnque:{requestType:n.RequestType.PostWithArgsValueOnly},shareAllSocialData:{requestType:n.RequestType.PostWithArgsValueOnly}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.group={properties:["Users|users|/getById([Name])|user"],query:{argNames:["oData"],requestType:n.RequestType.OData}},t.sitegroups={add:{metadataType:"SP.Group",name:"",requestType:n.RequestType.PostWithArgsInBody},getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"group"},getByName:{argNames:["name"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"group"},query:{argNames:["oData"],requestType:n.RequestType.OData},removeById:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly},removeByLoginName:{argNames:["name"],requestType:n.RequestType.PostWithArgsValueOnly}},t.peoplepicker={clientPeoplePickerResolveUser:{argNames:["queryParams"],metadataType:"SP.UI.ApplicationPages.ClientPeoplePickerQueryParameters",name:"SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.ClientPeoplePickerResolveUser",replaceEndpointFl:!0,requestType:n.RequestType.PostWithArgsInBody},clientPeoplePickerSearchUser:{argNames:["queryParams"],metadataType:"SP.UI.ApplicationPages.ClientPeoplePickerQueryParameters",name:"SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.ClientPeoplePickerSearchUser",replaceEndpointFl:!0,requestType:n.RequestType.PostWithArgsInBody}},t.user={properties:["Groups|sitegroups|([Name])|group"],delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData}},t.users={add:{metadataType:"SP.User",name:"",requestType:n.RequestType.PostWithArgsInBody},getByEmail:{argNames:["email"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"user"},getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"user"},getByLoginName:{argNames:["loginName"],name:"getByLoginName(@v)?@v='[[loginName]]'",requestType:n.RequestType.GetReplace,returnType:"user"},query:{argNames:["oData"],requestType:n.RequestType.OData},removeById:{argNames:["id"],requestType:n.RequestType.PostWithArgsValueOnly},removeByLoginName:{argNames:["loginName"],name:"removeByLoginName(@v)?@v='[[loginName]]'",requestType:n.RequestType.PostReplace}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.usercustomaction={delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData}},t.usercustomactions={add:{metadataType:"SP.UserCustomAction",name:"",requestType:n.RequestType.PostWithArgsInBody},clear:{requestType:n.RequestType.Post},getById:{argNames:["id"],requestType:n.RequestType.GetWithArgsValueOnly,returnType:"usercustomaction"},query:{argNames:["oData"],requestType:n.RequestType.OData}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(21);t.ComplexTypes=n;var s=r(22);t.Results=s;var o=r(23);t.SPTypes=o,function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(24))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(25))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.view={properties:["ViewFields|viewfieldcollection"],delete:{requestType:n.RequestType.Delete},query:{argNames:["oData"],requestType:n.RequestType.OData},renderAsHtml:{requestType:n.RequestType.Get},update:{metadataType:"SP.View",name:"",requestMethod:"MERGE",requestType:n.RequestType.PostWithArgsInBody}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),s=function(){function e(){}return Object.defineProperty(e,"_contextInfo",{get:function(){return this.window._spPageContextInfo||{existsFl:!1,isAppWeb:!1,siteAbsoluteUrl:"",siteServerRelativeUrl:"",userId:0,webAbsoluteUrl:"",webServerRelativeUrl:""}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"alertsEnabled",{get:function(){return this._contextInfo.alertsEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(e,"allowSilverlightPrompt",{get:function(){return"True"==this._contextInfo.allowSilverlightPrompt},enumerable:!0,configurable:!0}),Object.defineProperty(e,"clientServerTimeDelta",{get:function(){return this._contextInfo.clientServerTimeDelta},enumerable:!0,configurable:!0}),Object.defineProperty(e,"crossDomainPhotosEnabled",{get:function(){return this._contextInfo.crossDomainPhotosEnabled},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentCultureName",{get:function(){return this._contextInfo.currentCultureName},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentLanguage",{get:function(){return this._contextInfo.currentLanguage},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentUICultureName",{get:function(){return this._contextInfo.currentUICultureName},enumerable:!0,configurable:!0}),Object.defineProperty(e,"document",{get:function(){return this.window.document},enumerable:!0,configurable:!0}),Object.defineProperty(e,"env",{get:function(){return this._contextInfo.env},enumerable:!0,configurable:!0}),Object.defineProperty(e,"existsFl",{get:function(){return null==this._contextInfo.existsFl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"hasManageWebPermissions",{get:function(){return this._contextInfo.hasManageWebPermissions},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isAnonymousGuestUser",{get:function(){return this._contextInfo.isAnonymousGuestUser},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isAppWeb",{get:function(){return this._contextInfo.isAppWeb},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isSiteAdmin",{get:function(){return this._contextInfo.isSiteAdmin},enumerable:!0,configurable:!0}),Object.defineProperty(e,"layoutsUrl",{get:function(){return this._contextInfo.layoutsUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pageItemId",{get:function(){return this._contextInfo.pageItemId},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pageListId",{get:function(){return this._contextInfo.pageListId},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pagePersonalizationScope",{get:function(){return this._contextInfo.pagePersonalizationScope},enumerable:!0,configurable:!0}),Object.defineProperty(e,"profileUrl",{get:function(){return this._contextInfo.profileUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"serverRequestPath",{get:function(){return this._contextInfo.serverRequestPath},enumerable:!0,configurable:!0}),Object.defineProperty(e,"siteAbsoluteUrl",{get:function(){return this._contextInfo.siteAbsoluteUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"siteClientTag",{get:function(){return this._contextInfo.siteClientTag},enumerable:!0,configurable:!0}),Object.defineProperty(e,"siteServerRelativeUrl",{get:function(){return this._contextInfo.siteServerRelativeUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"systemUserKey",{get:function(){return this._contextInfo.systemUserKey},enumerable:!0,configurable:!0}),Object.defineProperty(e,"tenantAppVersion",{get:function(){return this._contextInfo.tenantAppVersion},enumerable:!0,configurable:!0}),Object.defineProperty(e,"themeCacheToken",{get:function(){return this._contextInfo.themeCacheToken},enumerable:!0,configurable:!0}),Object.defineProperty(e,"updateFromDigestPageLoaded",{get:function(){return this._contextInfo.updateFromDigestPageLoaded},enumerable:!0,configurable:!0}),Object.defineProperty(e,"userId",{get:function(){return this._contextInfo.userId},enumerable:!0,configurable:!0}),Object.defineProperty(e,"userLoginName",{get:function(){return this._contextInfo.userLoginName},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webAbsoluteUrl",{get:function(){return this._contextInfo.webAbsoluteUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webLanguage",{get:function(){return this._contextInfo.webLanguage},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webLogoUrl",{get:function(){return this._contextInfo.webLogoUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webPermMask",{get:function(){return this._contextInfo.webPermMask},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webServerRelativeUrl",{get:function(){return this._contextInfo.webServerRelativeUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webTemplate",{get:function(){return this._contextInfo.webTemplate},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webTitle",{get:function(){return this._contextInfo.webTitle},enumerable:!0,configurable:!0}),Object.defineProperty(e,"webUIVersion",{get:function(){return this._contextInfo.webUIVersion},enumerable:!0,configurable:!0}),Object.defineProperty(e,"window",{get:function(){return"undefined"==typeof window?{}:window},enumerable:!0,configurable:!0}),e.getWeb=function(e){return new n.Base({endpoint:"contextinfo",method:"POST",url:e})},e}();t.ContextInfo=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),s=r(3),o=r(0),i=r(1),a=function(){function e(){}return e.prototype.addMethods=function(e,t){var r=t.results&&t.results.length>0,n=r?t.results[0].__metadata:t.__metadata,o=n&&n.type?n.type:e.targetInfo.endpoint;o=(o=(o=(o=o.split("/"))[o.length-1]).split("."))[o.length-1].toLowerCase(),(/^field/.test(o+=r?"s":"")||/field$/.test(o))&&"fieldlinks"!=o&&"fields"!=o?o="field"+(r?"s":""):/item$/.test(o)?o="listitem":/items$/.test(o)?o="items":/corporatecatalogappmetadata/.test(o)?o="tenantapp":/corporatecatalogappmetadatas/.test(o)&&(o="tenantapps");var i=s.Mapper[o];if(i)for(var a in i){var u=i[a]?i[a]:{};if("properties"!=a)"function"==typeof u.metadataType&&((u=JSON.parse(JSON.stringify(u))).metadataType=i[a].metadataType(e)),e[a]=new Function("return this.executeMethod('"+a+"', "+JSON.stringify(u)+", arguments);");else for(var l=0,p=u;l1?d[1]:null,f=d.length>2?d[2]:null,g=d.length>3?d[3]:null;(null==e[c]||e[c].__deferred&&e[c].__deferred.uri)&&(4==d.length?(f=f.replace(/'/g,"\\'"),e[c]=new Function("name","name = name ? '"+c+f+"'.replace(/\\[Name\\]/g, name) : null;return this.getProperty(name ? name : '"+c+"', name ? '"+g+"' : '"+y+"');")):e[c]=new Function("return this.getProperty('"+c+"', '"+y+"');"))}}},e.prototype.addProperties=function(e,t){for(var r in t){var n=t[r];if("__metadata"!=r&&"results"!=r)if(n&&n.__deferred&&n.__deferred.uri)e["get_"+r]=e["get_"+r]?e["get_"+r]:new Function("return this.getCollection('"+r+"', arguments);");else{switch(r){case"ClientPeoplePickerResolveUser":case"ClientPeoplePickerSearchUser":e[r]=JSON.parse(n);break;default:e[r]=n}if(e[r]&&e[r].results&&(0==e[r].results.length||"object"==typeof e[r].results[0])){var s=new i.Base(e.targetInfo);s.results=e[r].results,0==s.results.length&&(s.__metadata={type:r}),s.targetInfo.endpoint=(s.targetInfo.endpoint.split("?")[0]+"/"+r).replace(/\//g,"/"),e.addMethods(s,s),e.updateDataCollection(e,s.results),e[r]=s}}}},e.prototype.updateDataCollection=function(e,t){if(t&&(e.results=e.results?e.results.concat(t):t,e.results.length>0))for(var r=0,n=e.results;r=200&&this.status<300){if(this.requestType==o.RequestType.GetBuffer)return;for(var t=0,r=0,n=e?this.response.split("\n"):[this.response],s=0;s0&&(n.endpoint=n.endpoint?n.endpoint:"",n.endpoint&&a.url&&0!=a.url.indexOf("?")&&(n.endpoint+="/"),n.endpoint+=a.url);var u=new o.Base(n);return u.base=this.base?this.base:this,u.getAllItemsFl=a.getAllItemsFl,u.parent=this,u.requestType=t.requestType,t.returnType&&this.addMethods(u,{__metadata:{type:t.returnType}}),u},t.prototype.executeRequest=function(e,t){var r=this,n=this.base&&this.base.batchRequests&&this.base.batchRequests.length>0,i=n?o.Batch.getTargetInfo(this.base.batchRequests):new o.TargetInfo(this.targetInfo);if(!e)return this.xhr?this:(this.xhr=new o.XHRRequest(e,i),this.response=this.xhr.response,this.status=this.xhr.status,this.requestType==s.RequestType.GetBuffer?this.xhr.response:(this.updateDataObject(n),this.d&&this.d.__next&&(this.next=new Function("return this.getNextSetOfResults();")),this));this.xhr&&!n?t&&t(this):this.xhr=new o.XHRRequest(e,i,function(){r.response=r.xhr.response,r.status=r.xhr.status,r.requestType==s.RequestType.GetBuffer?t&&t(r.xhr.response):(r.updateDataObject(n),n||r.validateDataCollectionResults().done(function(){t&&t(r)}))})},t.prototype.getCollection=function(e,t){var r=Object.create(this.targetInfo);r.data=null,r.method=null;var n=this.d?this.d.__metadata:this.__metadata;n&&n.uri?(r.url=n.uri,this.updateMetadataUri(n,r),r.endpoint=e):r.endpoint+="/"+e,r.callback=t&&"function"==typeof t[0]?t[0]:null;var s=new o.Base(r);return s.base=this.base?this.base:this,s.parent=this,s},t.prototype.getNextSetOfResults=function(){var e=Object.create(this.targetInfo);e.endpoint="",e.url=this.d.__next;var t=new o.Base(e);return t.base=this.base?this.base:this,t.parent=this,t},t.prototype.getProperty=function(e,t){var r=Object.create(this.targetInfo);r.data=null,r.method=null;var n=this.d?this.d.__metadata:this.__metadata;n&&n.uri?(r.url=n.uri,this.updateMetadataUri(n,r),r.endpoint=e):r.endpoint+="/"+e;var s=new o.Base(r);return s.base=this.base?this.base:this,s.parent=this,t&&this.addMethods(s,{__metadata:{type:t}}),s},t.prototype.updateMetadataUri=function(e,t){/^SP.Field/.test(e.type)||/^SP\..*Field$/.test(e.type)?t.url=t.url.replace(/AvailableFields/,"fields"):/SP.EventReceiverDefinition/.test(e.type)?t.url=t.url.replace(/\/EventReceiver\//,"/EventReceivers/"):/Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata/.test(t.url)&&(t.url=t.url.split("Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata")[0]+"web/tenantappcatalog/availableapps/getbyid('"+this.ID+"')")},t.prototype.validateDataCollectionResults=function(e){var t=this;if(e=e||new o.Promise,this.xhr&&this.status<400&&"string"==typeof this.response&&this.response.length>0){var r=JSON.parse(this.response);if(r.d&&r.d.__next)if(this.getAllItemsFl){var n=Object.create(this.targetInfo);n.endpoint="",n.url=r.d.__next,new o.XHRRequest(!0,new o.TargetInfo(n),function(r){var n=JSON.parse(r.response);if(n.d)return t.updateDataCollection(t,n.d.results),t.d.results=t.d.results.concat(n.d.results),t.validateDataCollectionResults(e);e.resolve()})}else this.next=new Function("return this.getNextSetOfResults();"),e.resolve();else e.resolve()}else e.resolve();return e},t}(o.BaseHelper);t.BaseRequest=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(2),o=r(1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.batch=function(e){var t=null,r=!1;return"boolean"==typeof e?r=e:t=e,this.base=this.base?this.base:this,r&&this.base.batchRequests?this.base.batchRequests[this.base.batchRequests.length-1].push({targetInfo:new o.TargetInfo(this.targetInfo)}):(this.base.batchRequests=this.base.batchRequests||[],this.base.batchRequests.push([{callback:t,targetInfo:new o.TargetInfo(this.targetInfo)}])),this},t.prototype.execute=function(){for(var e=this,t=[],r=0;r0&&1!=r.base.waitFlags[o-1])return}s.ContextInfo.window.clearInterval(n),e()},10)},t}(o.BaseRequest);t.BaseExecution=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),o=function(e){function t(t){var r=e.call(this)||this;return r.targetInfo=Object.create(t||{}),r.responses=[],r.requestType=0,r.waitFlags=[],r}return n(t,e),t.prototype.done=function(e){var t=this;this.base=this.base?this.base:this,this.responseIndex=this.responseIndex>=0?this.responseIndex:0,this.waitForRequestsToComplete(function(){var r=t.base.responses;t.base.responses=[],t.base.waitFlags=[],e&&e.apply(t,r)})},t.prototype.getInfo=function(){return new s.TargetInfo(this.targetInfo).requestInfo},t.prototype.then=function(e,t){var r=this;return new s.Promise(function(){r.execute(function(n){n&&n.existsFl?e&&e.apply(r,n):t&&t.apply(r,n)})})},t}(s.BaseExecution);t.Base=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),s=function(){function e(){}return e.getTargetInfo=function(e){for(var t="batch_"+this.guid(),r=[],s=0;s0&&(null==this.methodInfo.argNames?this.methodData=this.methodInfo.argValues[0]:this.methodInfo.argValues.length>this.methodInfo.argNames.length&&(this.methodData=this.methodInfo.argValues[this.methodInfo.argNames.length])),this.methodInfo.metadataType&&(this.methodInfo.argNames?(this.methodData||this.methodParams)[this.methodInfo.argNames[0]].__metadata=(this.methodData||this.methodParams)[this.methodInfo.argNames[0]].__metadata||{type:this.methodInfo.metadataType}:(this.methodData||this.methodParams).__metadata=(this.methodData||this.methodParams).__metadata||{type:this.methodInfo.metadataType})}},e.prototype.generateUrl=function(){var e=this.methodInfo.name;if(this.methodInfo.requestType==n.RequestType.Delete&&(e="deleteObject"),this.passDataInBody){o=this.methodData||this.methodParams;this.methodData=JSON.stringify(o)}if(this.passDataInQS){e+="(@v)?@v="+("string"==typeof(o=this.methodParams||this.methodData)?"'"+encodeURIComponent(o)+"'":JSON.stringify(o))}if(this.replace)for(var t in this.methodParams)e=e.replace("[["+t+"]]",encodeURIComponent(this.methodParams[t]));else if(this.methodInfo.requestType==n.RequestType.OData){var r=new s.OData(this.methodParams.oData);e="?"+r.QueryString,this.methodInfo.getAllItemsFl=r.GetAllItems}else if(!this.passDataInBody&&!this.passDataInQS){var o,i="";if(o=this.methodParams||this.methodData){o=o&&"object"==typeof o?o:{value:o};for(var a in o){var u=o[a];switch(u="string"==typeof u?"'"+u+"'":u,this.methodInfo.requestType){case n.RequestType.GetWithArgsValueOnly:case n.RequestType.PostWithArgsValueOnly:i+=u+", ";break;default:i+=a+"="+u+", "}}}e+=i.length>0?"("+i.replace(/, $/,"")+")":""}return e},e}();t.MethodInfo=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this._custom=e&&e.Custom?e.Custom:null,this._expand=e&&e.Expand?e.Expand:[],this._filter=e&&e.Filter?e.Filter:null,this._getAllItems=!(!e||!e.GetAllItems)&&e.GetAllItems,this._orderBy=e&&e.OrderBy?e.OrderBy:[],this._select=e&&e.Select?e.Select:[],this._skip=e&&e.Skip?e.Skip:null,this._top=e&&e.Top?e.Top:null}return Object.defineProperty(e.prototype,"Custom",{get:function(){return this._custom},set:function(e){this._custom=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Expand",{get:function(){return this._expand},set:function(e){this._expand=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Filter",{get:function(){return this._filter},set:function(e){this._filter=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"GetAllItems",{get:function(){return this._getAllItems},set:function(e){this._getAllItems=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OrderBy",{get:function(){return this._orderBy},set:function(e){this._orderBy=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"QueryString",{get:function(){var e="",t=[];t.push(this.getQSValue("$select",this._select)),t.push(this.getQSValue("$orderby",this._orderBy)),this._top&&t.push("$top="+this._top),this._skip&&t.push("$skip="+this._skip),this._filter&&t.push("$filter="+this._filter),t.push(this.getQSValue("$expand",this._expand)),this._custom&&t.push(this._custom);for(var r=0,n=t;r0?e+"="+t.join(","):""},e}();t.OData=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.callback=e,this.resolvedFl=!1}return e.prototype.done=function(e){this.callback=e||this.callback,this.resolvedFl&&this.executeMethod()},e.prototype.resolve=function(){for(var e=[],t=0;t=2&&(t=t[0]+"//"+t[2]),t},e.getQueryStringValue=function(e){for(var t=n.ContextInfo.existsFl?n.ContextInfo.document.location.href.split("?"):[""],r=(t=t.length>1?t[1]:t[0]).split("&"),s=0;st.length?-1:1});for(var o=0,i=t;o=this.MAX_WAIT)&&(s.ContextInfo.window.clearInterval(t),this.promise.resolve())},10)},e}();t.Dependencies=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),s=r(2);t.JSLinkHelper={hideEventFl:!1,_fieldToMethodMapper:{Attachments:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldAttachments_Default,2:s.ContextInfo.window.SPFieldAttachments_Default,3:s.ContextInfo.window.SPFieldAttachments_Default},Boolean:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_DefaultNoEncode,2:s.ContextInfo.window.SPFieldBoolean_Edit,3:s.ContextInfo.window.SPFieldBoolean_Edit},Currency:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldNumber_Edit,3:s.ContextInfo.window.SPFieldNumber_Edit},Calculated:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPField_FormDisplay_Empty,3:s.ContextInfo.window.SPField_FormDisplay_Empty},Choice:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldChoice_Edit,3:s.ContextInfo.window.SPFieldChoice_Edit},Computed:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPField_FormDisplay_Default,3:s.ContextInfo.window.SPField_FormDisplay_Default},DateTime:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldDateTime_Display,2:s.ContextInfo.window.SPFieldDateTime_Edit,3:s.ContextInfo.window.SPFieldDateTime_Edit},File:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldFile_Display,2:s.ContextInfo.window.SPFieldFile_Edit,3:s.ContextInfo.window.SPFieldFile_Edit},Integer:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldNumber_Edit,3:s.ContextInfo.window.SPFieldNumber_Edit},Lookup:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldLookup_Display,2:s.ContextInfo.window.SPFieldLookup_Edit,3:s.ContextInfo.window.SPFieldLookup_Edit},LookupMulti:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldLookup_Display,2:s.ContextInfo.window.SPFieldLookup_Edit,3:s.ContextInfo.window.SPFieldLookup_Edit},MultiChoice:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldMultiChoice_Edit,3:s.ContextInfo.window.SPFieldMultiChoice_Edit},Note:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldNote_Display,2:s.ContextInfo.window.SPFieldNote_Edit,3:s.ContextInfo.window.SPFieldNote_Edit},Number:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldNumber_Edit,3:s.ContextInfo.window.SPFieldNumber_Edit},Text:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPField_FormDisplay_Default,2:s.ContextInfo.window.SPFieldText_Edit,3:s.ContextInfo.window.SPFieldText_Edit},URL:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldUrl_Display,2:s.ContextInfo.window.SPFieldUrl_Edit,3:s.ContextInfo.window.SPFieldUrl_Edit},User:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldUser_Display,2:s.ContextInfo.window.SPClientPeoplePickerCSRTemplate,3:s.ContextInfo.window.SPClientPeoplePickerCSRTemplate},UserMulti:{4:s.ContextInfo.window.RenderFieldValueDefault,1:s.ContextInfo.window.SPFieldUserMulti_Display,2:s.ContextInfo.window.SPClientPeoplePickerCSRTemplate,3:s.ContextInfo.window.SPClientPeoplePickerCSRTemplate}},disableEdit:function(e,r,s){var o=e.CurrentFieldValue;if(o){switch(e.CurrentFieldSchema.Type){case"MultiChoice":var i=new RegExp(n.SPTypes.ClientTemplatesUtility.UserLookupDelimitString,"g");o=e.CurrentFieldValue.replace(i,"; ").replace(/^; /g,"").replace(/; $/g,"");break;case"Note":o="
"+e.CurrentFieldValue.replace(/\n/g,"
")+"
";break;case"User":case"UserMulti":for(var a=0;a"},renderField:function(e,r,n){var o=r?r.Type:e.CurrentFieldSchema?e.CurrentFieldSchema.Type:null;if(n=n||e.ControlMode,t.JSLinkHelper._fieldToMethodMapper[o]&&t.JSLinkHelper._fieldToMethodMapper[o][n]){var i=t.JSLinkHelper._fieldToMethodMapper[o][n](e);if(i)return i}var a=null;switch((r=e.CurrentFieldSchema).Type){case"AllDayEvent":a=new s.ContextInfo.window.AllDayEventFieldRenderer(r.Name);break;case"Attachments":a=new s.ContextInfo.window.AttachmentFieldRenderer(r.Name);break;case"BusinessData":a=new s.ContextInfo.window.BusinessDataFieldRenderer(r.Name);break;case"Computed":a=new s.ContextInfo.window.ComputedFieldRenderer(r.Name);break;case"CrossProjectLink":a=new s.ContextInfo.window.ProjectLinkFieldRenderer(r.Name);break;case"Currency":a=new s.ContextInfo.window.NumberFieldRenderer(r.Name);break;case"DateTime":a=new s.ContextInfo.window.DateTimeFieldRenderer(r.Name);break;case"Lookup":case"LookupMulti":a=new s.ContextInfo.window.LookupFieldRenderer(r.Name);break;case"Note":a=new s.ContextInfo.window.NoteFieldRenderer(r.Name);break;case"Number":a=new s.ContextInfo.window.NumberFieldRenderer(r.Name);break;case"Recurrence":a=new s.ContextInfo.window.RecurrenceFieldRenderer(r.Name);break;case"Text":a=new s.ContextInfo.window.TextFieldRenderer(r.Name);break;case"URL":a=new s.ContextInfo.window.UrlFieldRenderer(r.Name);break;case"User":case"UserMulti":a=new s.ContextInfo.window.UserFieldRenderer(r.Name);break;case"WorkflowStatus":a=new s.ContextInfo.window.RawFieldRenderer(r.Name)}var u=e.CurrentItem||e.ListData.Items[0];return a?a.RenderField(e,r,u,e.ListSchema):u[r.Name]}}},function(e,t,r){"use strict";var n=this;Object.defineProperty(t,"__esModule",{value:!0});var s=r(2);t.Loader={loaded:!1,waitForSPLibs:function(e,t,r){var o=0;r="boolean"==typeof r&&r;var i=(t="number"==typeof t?t:2500)/25;if(n.loaded)e();else{r&&["MicrosoftAjax.js","init.js","sp.runtime.js","sp.js","sp.core.js","core.js"].every(function(e){var t=s.ContextInfo.document.createElement("script");return t.setAttribute("src","/_layouts/15/"+e),t.setAttribute("type","text/javascript"),s.ContextInfo.document.head.appendChild(t),!0});var a=setInterval(function(){var t=++o>i;(s.ContextInfo.existsFl||t)&&(clearInterval(a),e())},25)}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),s=r(0),o=r(2),i=function(){function e(e,t){var r=this;this.installByType=function(e,t,n){return r.install(t,e,n)},this.uninstallByType=function(e,t,n){return r.uninstall(t,e,n)},this.createContentTypes=function(e,t){var s=new n.Promise;if(null==t||0==t.length)return s.resolve(),s;for(var i=function(n){var s=t[n],i=r.isInCollection("Name",s.Name,e.results);i?(console.log("[gd-sprest][Content Type] The content type '"+s.Name+"' already exists."),s.ContentType=i):(console.log("[gd-sprest][Content Type] Creating the '"+s.Name+"' content type."),s.ParentName?new o.Web(s.ParentWebUrl||r._webUrl).ContentTypes().query({Filter:"Name eq '"+s.ParentName+"'"}).execute(function(t){t.results[0]?e.addAvailableContentType(t.results[0].Id.StringValue).execute(function(e){e.existsFl?(console.log("[gd-sprest][Content Type] The content type '"+s.Name+"' was created successfully."),s.ContentType=e,s.onCreated&&s.onCreated(e)):(console.log("[gd-sprest][Content Type] The content type '"+s.Name+"' failed to be created."),console.error("[gd-sprest][Field] Error: "+e.response))},!0):console.log("[gd-sprest][Content Type] The parent content type '"+s.Name+"' was not found.")}):e.add({Description:s.Description,Group:s.Group,Name:s.Name}).execute(function(e){e.existsFl?(console.log("[gd-sprest][Content Type] The content type '"+s.Name+"' was created successfully."),s.ContentType=e,s.onCreated&&s.onCreated(e)):(console.log("[gd-sprest][Content Type] The content type '"+s.Name+"' failed to be created."),console.error("[gd-sprest][Field] Error: "+e.response))}))},a=0;a0){console.log("[gd-sprest][View] Updating the view fields for the '"+o.ViewName+"' view."),i.ViewFields().removeAllViewFields().execute(!0);for(var a=0;a=t.length&&s.resolve()})},i=0;i (https://gunjandatta.github.io/sprest)", "license": "MIT", diff --git a/src/gd-sprest.ts b/src/gd-sprest.ts index 2f6acef2..aa3ca6b0 100644 --- a/src/gd-sprest.ts +++ b/src/gd-sprest.ts @@ -88,4 +88,4 @@ let global: Types.IREST = ContextInfo.window.$REST; if (global == null || global.__ver == null || global.__ver < $REST.__ver) { // Set the global variable ContextInfo.window.$REST = $REST; -} +} \ No newline at end of file diff --git a/src/mapper/index.ts b/src/mapper/index.ts index 62d10a09..ef6a0880 100644 --- a/src/mapper/index.ts +++ b/src/mapper/index.ts @@ -25,6 +25,7 @@ import { } from "./security/mapper"; import { site, + tenantapp, tenantappcatalog, tenantapps, web, webinfos, webs } from "./site/mapper"; import { @@ -62,6 +63,7 @@ export const Mapper = { search, site, socialfeed, + tenantapp, tenantappcatalog, tenantapps, user, users, usercustomaction, usercustomactions, userprofile, diff --git a/src/mapper/site/index.ts b/src/mapper/site/index.ts index 03477f00..b2c88524 100644 --- a/src/mapper/site/index.ts +++ b/src/mapper/site/index.ts @@ -1,3 +1,6 @@ export * from "./site"; +export * from "./tenantApp"; +export * from "./tenantApps"; +export * from "./tenantAppCatalog"; export * from "./web"; export * from "./webs"; \ No newline at end of file diff --git a/src/mapper/site/mapper.ts b/src/mapper/site/mapper.ts index ce31e02e..6d3cef02 100644 --- a/src/mapper/site/mapper.ts +++ b/src/mapper/site/mapper.ts @@ -75,7 +75,7 @@ export const site = { requestType: RequestType.PostWithArgsValueOnly }, - // Queries the collection + // Queries the object query: { argNames: ["oData"], requestType: RequestType.OData @@ -108,6 +108,100 @@ export const site = { } }; +/** + * Tenant App + */ +export const tenantapp = { + // Deploy solution package in tenant app catalog + Deploy: { + requestType: RequestType.Post + }, + + // Install solution package from tenant app catalog to SharePoint site + Install: { + requestType: RequestType.Post + }, + + // Queries the object + query: { + argNames: ["oData"], + requestType: RequestType.OData + }, + + // Remove solution package from tenant app catalog + Remove: { + requestType: RequestType.Post + }, + + // Retract solution package in the tenant app catalog + Retract: { + requestType: RequestType.Post + }, + + // Upgrade solution package in SharePoint site + Upgrade: { + requestType: RequestType.Post + }, + + // Uninstall solution package from SharePoint site + Uninstall: { + requestType: RequestType.Post + } +} + +/** + * Tenant Apps + */ +export const tenantapps = { + // Get an app by id + GetById: { + argNames: ["guid"], + requestType: RequestType.GetWithArgsValueOnly, + returnType: "tenantapp" + }, + + // Queries the collection + query: { + argNames: ["oData"], + requestType: RequestType.OData + } +} + +/** + * Tenant App Catalog + */ +export const tenantappcatalog = { + /*********************************************************************************************************************************/ + // Properties + /*********************************************************************************************************************************/ + properties: [ + "AvailableApps|tenantapps|/getById('[Id]')|tenantapp" + ], + + /*********************************************************************************************************************************/ + // Methods + /*********************************************************************************************************************************/ + + // Adds the folder that is located at the specified URL to the collection. + Add: { + argNames: ["overwrite", "url"], + requestType: RequestType.PostWithArgs + }, + + // Get an app by id. + GetById: { + argNames: ["guid"], + name: "AvailableApps/getById('[[guid]]')", + requestType: RequestType.GetReplace, + returnType: "tenantapp" + }, + + // Gets the site collection app catalog sites + SiteCollectionAppCatalogsSites: { + requestType: RequestType.Post + } +} + /** * Web */ @@ -126,7 +220,8 @@ export const web = { "ListTemplates|listtemplates|('[Name]')|listtemplate", "Navigation", "ParentWeb", "PushNotificationSubscribers", "RecycleBin", "RegionalSettings", "RoleAssignments|roleassignments|([Name])|roleassignment", "RoleDefinitions|roledefinitions|/getByName('[Name]')|roledefinition", "RootFolder|folder|/getByUrl('[Name]')|file", - "SiteGroups|sitegroups|/getByName('[Name]')|group", "SiteUserInfoList", "SiteUsers|users|/getById([Name])|user", "ThemeInfo", "TitleResource", + "SiteGroups|sitegroups|/getByName('[Name]')|group", "SiteUserInfoList", "SiteUsers|users|/getById([Name])|user", + "TenantAppCatalog|tenantappcatalog", "ThemeInfo", "TitleResource", "UserCustomActions|usercustomactions|('[Name]')|usercustomaction", "WebInfos|webinfos", "Webs|webs", "WorkflowAssociations", "WorkflowTemplates" ], diff --git a/src/mapper/site/tenantApp.ts b/src/mapper/site/tenantApp.ts new file mode 100644 index 00000000..f6527ce4 --- /dev/null +++ b/src/mapper/site/tenantApp.ts @@ -0,0 +1,81 @@ +import { IBase } from "../../utils"; + +/** + * Methods + */ +export interface ITenantAppMethods { + /** + * Deploy solution package in tenant app catalog + * Enable solution to be available to install to specific sites. This API is designed to be executed in the context of the tenant app catalog site. + */ + Deploy(): IBase; + + /** + * Install solution package from tenant app catalog to SharePoint site + * Install a solution package with specific identifier from tenant app catalog to the site based on URL context. This REST call can be executed in the context of the site where the install operation should happen. + */ + Install(): IBase; + + /** + * Remove solution package from tenant app catalog + * Remove the solution package from the tenant app catalog. This API is designed to be executed in the context of the tenant app catalog site. + */ + Remove(): IBase; + + /** + * Retract solution package in the tenant app catalog + * Retract solution to be available from the sites. This API is designed to be executed in the context of the tenant app catalog site. + */ + Retract(): IBase; + + /** + * Uninstall solution package from SharePoint site + * Uninstall a solution package from the site. This REST call can be executed in the context of the site where the uninstall operation should happen. + */ + Uninstall(): IBase; + + /** + * Upgrade solution package in SharePoint site + * Upgrade a solution package from the site to a newer version available in the tenant app catalog. This REST call can be executed in the context of the site where the upgrade operation should happen. + */ + Upgrade(): IBase; +} + +/** + * Properties + */ +export interface ITenantAppProps { + /** The app version. */ + AppCatalogVersion: string; + + /** Flag indicating an upgrade is available. */ + CanUpgrade: boolean; + + /** Flag indicating if the current version is deployed. */ + CurrentVersionDeployed: boolean; + + /** Flag indicating if the app is deployed. */ + Deployed: boolean; + + /** The app id. */ + ID: string; + + /** The installed version. */ + InstalledVersion: string; + + /** Flag indicating if this is a client-side solution. */ + IsClientSideSolution: boolean; + + /** The app title. */ + Title: string; +} + +/** + * Tenant App Result + */ +export interface ITenantAppResult extends ITenantAppMethods, ITenantAppProps, IBase { } + +/** + * Tenant App + */ +export interface ITenantApp extends ITenantAppMethods, IBase { } \ No newline at end of file diff --git a/src/mapper/site/tenantAppCatalog.ts b/src/mapper/site/tenantAppCatalog.ts new file mode 100644 index 00000000..a583e9a9 --- /dev/null +++ b/src/mapper/site/tenantAppCatalog.ts @@ -0,0 +1,66 @@ +import { IBase, IBaseCollection } from "../../utils"; +import { Types } from ".."; +import { ITenantApp, ITenantApps } from "."; + +/** + * Tenant App Catalog Methods + */ +export interface ITenantAppCatalogMethods { + /** + * Add solution package to tenant app catalog + * Adding solution to the tenant app catalog. This API is designed to be executed in the context of the tenant app catalog site. + * @param overwrite - Flag to overwrite the solution. + * @param url - The file name of the solution. + */ + Add(overwrite?: boolean, url?: string): IBase; + + /** + * Deploy solution package in tenant app catalog + * Enable solution to be available to install to specific sites. This API is designed to be executed in the context of the tenant app catalog site. + * @param guid - The app id. + */ + GetById(guid: string): ITenantApp; +} + +/** + * Tenant App Catalog Properties + */ +export interface ITenantAppCatalogProps { + /** + * List available packages from tenant app catalog + * REST API for getting list of available SharePoint Framework solutions or add-ins in tenant app catalog. + */ + AvailableApps(): ITenantApps; + + /** + * No documentation available. Need to research this. + */ + SiteCollectionAppCatalogsSites(): IBaseCollection; +} + +/** + * Tenant App Catalog Query Properties + */ +export interface ITenantAppCatalogQueryProps { + /** + * List available packages from tenant app catalog + * REST API for getting list of available SharePoint Framework solutions or add-ins in tenant app catalog. + */ + AvailableApps(): ITenantApps; +} + +/** + * Tenant App Catalog Query Result + */ +export interface ITenantAppCatalogQueryResult extends ITenantAppCatalogMethods, ITenantAppCatalogProps { } + +/** + * Tenant App Catalog Result + */ +export interface ITenantAppCatalogResult extends ITenantAppCatalogMethods, ITenantAppCatalogProps, ITenantAppCatalogQueryProps, IBase { +} + +/** + * Tenant App Catalog + */ +export interface ITenantAppCatalog extends ITenantAppCatalogMethods, ITenantAppCatalogQueryProps, IBase { } diff --git a/src/mapper/site/tenantApps.ts b/src/mapper/site/tenantApps.ts new file mode 100644 index 00000000..7f9a66a5 --- /dev/null +++ b/src/mapper/site/tenantApps.ts @@ -0,0 +1,19 @@ +import { IBase, IBaseCollection } from "../../utils"; +import { ITenantApp } from "."; + +/** + * Methods + */ +export interface ITenantAppsMethods { + /** + * Details on individual solution package from tenant app catalog + * REST API for getting details on individual SharePoint Framework solution or add-in available in the tenant app catalog. + * @param guid - The app id. + */ + GetById(guid: string): IBase; +} + +/** + * Tenant Apps + */ +export interface ITenantApps extends ITenantAppsMethods, IBaseCollection { } \ No newline at end of file diff --git a/src/mapper/site/web.ts b/src/mapper/site/web.ts index c6cc28b6..ef639436 100644 --- a/src/mapper/site/web.ts +++ b/src/mapper/site/web.ts @@ -1,6 +1,6 @@ import { IBase, ITargetInfo } from "../../utils"; import { Types } from ".."; -import { IWebInfo, IWebResult, IWebResults, IWebs } from "."; +import { ITenantAppCatalog, IWebInfo, IWebResult, IWebResults, IWebs } from "."; /** * Web Creation Information @@ -642,6 +642,9 @@ export interface IWebQueryProps { */ SupportedUILanguageIds(): IBase; + /** Gets the tenant app catalog. */ + TenantAppCatalog(): ITenantAppCatalog; + /** * The theming information for this site. This includes information like colors, fonts, border radii sizes etc. */ @@ -863,6 +866,9 @@ export interface IWebQueryResult extends IWebMethods, IWebProps { */ SupportedUILanguageIds: Types.IResults; + /** Gets the tenant app catalog. */ + TenantAppCatalog: ITenantAppCatalog; + /** * The theming information for this site. This includes information like colors, fonts, border radii sizes etc. */ @@ -902,7 +908,7 @@ export interface IWebQueryResult extends IWebMethods, IWebProps { /** * Web Result */ -export interface IWebResult extends IWebMethods, IWebProps, IWebQueryProps, IWebQueryProps, IBase { } +export interface IWebResult extends IWebMethods, IWebProps, IWebQueryProps, IBase { } /** * Web diff --git a/src/utils/baseExecution.ts b/src/utils/baseExecution.ts index 4e5d792c..8001b817 100644 --- a/src/utils/baseExecution.ts +++ b/src/utils/baseExecution.ts @@ -145,7 +145,7 @@ export class BaseExecution extends BaseRequest { // Wait for the responses to execute this.waitForRequestsToComplete(() => { // Execute this request - this.executeRequest(true, () => { + this.executeRequest(true, (response) => { // See if there is a callback if (callback) { // Set the base to this object, and clear requests @@ -154,7 +154,7 @@ export class BaseExecution extends BaseRequest { this.base.responses = []; // Execute the callback and see if it returns a promise - let returnVal = callback(this); + let returnVal = callback(response); if (returnVal && typeof (returnVal.done) === "function") { // Wait for the promise to complete returnVal.done(() => { @@ -179,9 +179,9 @@ export class BaseExecution extends BaseRequest { }, this.responseIndex); } else { // Execute this request - this.executeRequest(true, () => { + this.executeRequest(true, (response) => { // Execute the callback and see if it returns a promise - let returnVal = callback ? callback(this) : null; + let returnVal = callback ? callback(response) : null; if (returnVal && typeof (returnVal.done) === "function") { // Wait for the promise to complete returnVal.done(() => { diff --git a/src/utils/baseHelper.ts b/src/utils/baseHelper.ts index 976a819c..fe909020 100644 --- a/src/utils/baseHelper.ts +++ b/src/utils/baseHelper.ts @@ -74,6 +74,16 @@ export class BaseHelper implements IBaseHelper { // Update the type objType = "items"; } + // Else, see if this is a tenant app + else if (/corporatecatalogappmetadata/.test(objType)) { + // Update the type + objType = "tenantapp"; + } + // Else, see if this is a tenant app collection + else if (/corporatecatalogappmetadatas/.test(objType)) { + // Update the type + objType = "tenantapps"; + } // Get the methods for the base object var methods = Mapper[objType]; diff --git a/src/utils/baseRequest.ts b/src/utils/baseRequest.ts index fe3e6843..4fc20456 100644 --- a/src/utils/baseRequest.ts +++ b/src/utils/baseRequest.ts @@ -144,16 +144,16 @@ export class BaseRequest extends BaseHelper implements IBaseRequest { if (this.requestType == RequestType.GetBuffer) { // Execute the callback callback ? callback(this.xhr.response) : null; + } else { + // Update the data object + this.updateDataObject(isBatchRequest); + + // Validate the data collection + isBatchRequest ? null : this.validateDataCollectionResults().done(() => { + // Execute the callback + callback ? callback(this) : null; + }); } - - // Update the data object - this.updateDataObject(isBatchRequest); - - // Validate the data collection - isBatchRequest ? null : this.validateDataCollectionResults().done(() => { - // Execute the callback - callback ? callback(this) : null; - }); }); } } @@ -290,14 +290,19 @@ export class BaseRequest extends BaseHelper implements IBaseRequest { updateMetadataUri(metadata, targetInfo: ITargetInfo) { // See if this is a field if (/^SP.Field/.test(metadata.type) || /^SP\..*Field$/.test(metadata.type)) { - // Fix the uri reference + // Fix the url reference targetInfo.url = targetInfo.url.replace(/AvailableFields/, "fields"); } // Else, see if this is an event receiver else if (/SP.EventReceiverDefinition/.test(metadata.type)) { - // Fix the uri reference + // Fix the url reference targetInfo.url = targetInfo.url.replace(/\/EventReceiver\//, "/EventReceivers/"); } + // Else, see if this is a tenant app + else if (/Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata/.test(targetInfo.url)) { + // Fix the url reference + targetInfo.url = targetInfo.url.split("Microsoft.SharePoint.Marketplace.CorporateCuratedGallery.CorporateCatalogAppMetadata")[0] + "web/tenantappcatalog/availableapps/getbyid('" + this["ID"] + "')"; + } } // Method to validate the data collection results diff --git a/src/utils/targetInfo.ts b/src/utils/targetInfo.ts index 04afc2f4..01c9bcc7 100644 --- a/src/utils/targetInfo.ts +++ b/src/utils/targetInfo.ts @@ -61,10 +61,10 @@ export class TargetInfo { /*********************************************************************************************************************************/ constructor(targetInfo: ITargetInfo) { // Default the properties - this.targetInfo = targetInfo || {}; - this.requestData = this.targetInfo.data; - this.requestHeaders = this.targetInfo.requestHeader; - this.requestMethod = this.targetInfo.method ? this.targetInfo.method : "GET"; + this.request = targetInfo || {}; + this.requestData = this.request.data; + this.requestHeaders = this.request.requestHeader; + this.requestMethod = this.request.method ? this.request.method : "GET"; // Set the request url this.setRequestUrl() @@ -74,21 +74,15 @@ export class TargetInfo { // Public Properties /*********************************************************************************************************************************/ - // Flag to determine if the request returns an array buffer - get bufferFl(): boolean { return this.targetInfo.bufferFl; } - - // The callback method to execute after the asynchronous request completes - get callback(): (...args) => void { return this.targetInfo.callback; } - + // The target information + request: ITargetInfo; + // Flag to determine if this is a batch request - get isBatchRequest(): boolean { return this.targetInfo.endpoint == "$batch"; } + get isBatchRequest(): boolean { return this.request.endpoint == "$batch"; } // The request data requestData: any; - // The form digest - get requestDigest(): string { return this.targetInfo.requestDigest; } - // The request information get requestInfo(): IRequestInfo { // Return the request information @@ -107,14 +101,7 @@ export class TargetInfo { // The request url requestUrl: string; - - /*********************************************************************************************************************************/ - // Private Variables - /*********************************************************************************************************************************/ - - // The target information - private targetInfo: ITargetInfo; - + /*********************************************************************************************************************************/ // Methods /*********************************************************************************************************************************/ @@ -166,26 +153,26 @@ export class TargetInfo { // Method to set the request url private setRequestUrl() { - let endpoint = this.targetInfo.endpoint ? "/" + this.targetInfo.endpoint : ""; + let endpoint = this.request.endpoint ? "/" + this.request.endpoint : ""; let hostUrl = TargetInfo.getQueryStringValue("SPHostUrl"); let qs = (endpoint.indexOf("?") === -1 ? "?" : "&") + "@target='{{Target}}'"; let template = "{{Url}}/_api/{{EndPoint}}{{TargetUrl}}"; // See if we are defaulting the url for the app web - if (ContextInfo.existsFl && ContextInfo.window.$REST.DefaultRequestToHostFl && ContextInfo.isAppWeb && !this.targetInfo.overrideDefaultRequestToHostFl && this.targetInfo.url == null) { + if (ContextInfo.existsFl && ContextInfo.window.$REST.DefaultRequestToHostFl && ContextInfo.isAppWeb && !this.request.overrideDefaultRequestToHostFl && this.request.url == null) { // Default the url to the host web - this.targetInfo.url = hostUrl; + this.request.url = hostUrl; } // Ensure the url exists - if (this.targetInfo.url == null) { + if (this.request.url == null) { // Default the url to the current site/web url - this.targetInfo.url = this.targetInfo.defaultToWebFl == false ? ContextInfo.siteAbsoluteUrl : ContextInfo.webAbsoluteUrl; + this.request.url = this.request.defaultToWebFl == false ? ContextInfo.siteAbsoluteUrl : ContextInfo.webAbsoluteUrl; } // Else, see if the url already contains the full request - else if (/\/_api\//.test(this.targetInfo.url)) { + else if (/\/_api\//.test(this.request.url)) { // Get the url - var url = this.targetInfo.url.toLowerCase().split("/_api/"); + var url = this.request.url.toLowerCase().split("/_api/"); // See if this is the app web and we are executing against a different web if (ContextInfo.isAppWeb && url[0] != ContextInfo.webAbsoluteUrl.toLowerCase()) { @@ -195,29 +182,29 @@ export class TargetInfo { } else { // Set the request url - this.requestUrl = this.targetInfo.url + (this.targetInfo.endpoint ? "/" + this.targetInfo.endpoint : ""); + this.requestUrl = this.request.url + (this.request.endpoint ? "/" + this.request.endpoint : ""); } return; } // See if this is a relative url - if (this.targetInfo.url.indexOf("http") != 0) { + if (this.request.url.indexOf("http") != 0) { // Add the domain - this.targetInfo.url = this.getDomainUrl() + this.targetInfo.url; + this.request.url = this.getDomainUrl() + this.request.url; } // See if this is the app web, and we are executing against a different web - if (ContextInfo.isAppWeb && this.targetInfo.url != ContextInfo.webAbsoluteUrl) { + if (ContextInfo.isAppWeb && this.request.url != ContextInfo.webAbsoluteUrl) { // Set the request url this.requestUrl = template .replace(/{{Url}}/g, ContextInfo.webAbsoluteUrl) .replace(/{{EndPoint}}/g, "SP.AppContextSite(@target)" + endpoint) - .replace(/{{TargetUrl}}/g, qs.replace(/{{Target}}/g, this.targetInfo.url)); + .replace(/{{TargetUrl}}/g, qs.replace(/{{Target}}/g, this.request.url)); } else { // Set the request url this.requestUrl = template - .replace(/{{Url}}/g, this.targetInfo.url) - .replace(/{{EndPoint}}/g, this.targetInfo.endpoint) + .replace(/{{Url}}/g, this.request.url) + .replace(/{{EndPoint}}/g, this.request.endpoint) .replace(/{{TargetUrl}}/g, ""); } } diff --git a/src/utils/xhrRequest.ts b/src/utils/xhrRequest.ts index 129226cd..f3305a2c 100644 --- a/src/utils/xhrRequest.ts +++ b/src/utils/xhrRequest.ts @@ -15,7 +15,7 @@ export class XHRRequest { constructor(asyncFl: boolean, targetInfo: TargetInfo, callback?: (...args) => void) { // Default the properties this.asyncFl = asyncFl; - this.promise = new Promise(callback || targetInfo.callback); + this.promise = new Promise(callback || targetInfo.request.callback); this.targetInfo = targetInfo; this.xhr = this.createXHR(); @@ -108,9 +108,9 @@ export class XHRRequest { this.xhr.setRequestHeader("X-HTTP-Method", this.targetInfo.requestMethod); // See if the request digest has been defined - if (this.targetInfo.requestDigest) { + if (this.targetInfo.request.requestDigest) { // Set the request digest - this.xhr.setRequestHeader("X-RequestDigest", this.targetInfo.requestDigest); + this.xhr.setRequestHeader("X-RequestDigest", this.targetInfo.request.requestDigest); } else { // Get the request digest let requestDigest: any = ContextInfo.document.querySelector("#__REQUESTDIGEST"); @@ -149,7 +149,7 @@ export class XHRRequest { // See if we the response type is an array buffer // Note - Updating the response type is only allow for asynchronous requests. Any error will be thrown otherwise. - if (this.targetInfo.bufferFl && this.asyncFl) { + if (this.targetInfo.request.bufferFl && this.asyncFl) { // Set the response type this.xhr.responseType = "arraybuffer"; } @@ -165,6 +165,6 @@ export class XHRRequest { } // Execute the request - this.targetInfo.bufferFl || this.targetInfo.requestData == null ? this.xhr.send() : this.xhr.send(this.targetInfo.requestData); + this.targetInfo.request.bufferFl || this.targetInfo.requestData == null ? this.xhr.send() : this.xhr.send(this.targetInfo.requestData); } } \ No newline at end of file diff --git a/test/test.aspx b/test/test.aspx index 52ee5985..e8eb0245 100644 --- a/test/test.aspx +++ b/test/test.aspx @@ -14,6 +14,7 @@ Select All
+ Test ALM
Test File
Test List Synchronous
Test Security
diff --git a/test/test_basic.js b/test/test_basic.js index 9c43b5ae..fa4d7567 100644 --- a/test/test_basic.js +++ b/test/test_basic.js @@ -48,6 +48,9 @@ function runTests() { if (checkboxes[i].checked) { // Run the selected test switch (checkboxes[i].value) { + case "alm": + testALM(); + break; case "file": testFile(); break; @@ -65,6 +68,73 @@ function runTests() { } } +function testALM() { + // Log + writeToLog("ALM", LogType.Header); + + // Log + writeToLog("Getting the solution package.", LogType.SubHeader); + + // Get this file + var file = $REST.Web().getFileByServerRelativeUrl("/sites/dev/siteassets/sprest/hello-world-web-part.sppkg").executeAndWait(); + + // Test + assert(file, "read file", "Exists", true); + + // Log + writeToLog("Adding the Solution Package", LogType.SubHeader) + + // Read the content types of this file + file.content().execute(function (content) { + // Add the app file + var appFile = $REST.Web().TenantAppCatalog().Add(true, "hw-webpart.sppkg", content).executeAndWait(); + + // Get the app + $REST.Web().TenantAppCatalog().AvailableApps().query({ Filter: "Title eq 'hello-world-web-part-client-side-solution'" }).execute(function (apps) { + var app = apps.results[0]; + + // Ensure the app exists + assert(app, "query app", "existsFl", true); + + // Ensure it's deployed + if (app.Deployed) { + // Log + writeToLog("App is already deployed.", LogType.Info); + } else { + // Deploy the app + app.Deploy().execute(function (response) { + // Ensure it was deployed + assert(response, "deploy app", "Deploy", null); + }, true) + } + + // Ensure it's deployed + if (app.Deployed) { + // Log + writeToLog("App is already deployed.", LogType.Info); + } else { + // Deploy the app + app.Deploy().execute(function (response) { + // Ensure it was deployed + assert(response, "deploy app", "Deploy", null); + }) + } + + // Retract the app + app.Retract().execute(function (response) { + // Ensure it was retracted + assert(response, "retract app", "Retract", null); + + // Remove the app + app.Remove().execute(function (response) { + // Ensure it was removed + assert(response, "remove app", "Remove", null); + }); + }) + }); + }); +} + function testContentType(list) { // Log writeToLog("Content Type", LogType.Header);