e5core-angular-services
Version:
e5 Anywhere Angular Services
1,662 lines (1,659 loc) • 194 kB
JavaScript
import { CommonModule } from '@angular/common';
import { HttpClient, HttpParams, HttpClientModule } from '@angular/common/http';
import { Injectable, NgModule, defineInjectable } from '@angular/core';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/* tslint:disable:max-line-length semicolon */ /*
* (c) Copyright 2018 e5 Workflow
*
* Angular models generated 2/6/2019, 5:37:18 PM.
*/
class ContentStorageContractsDataContractsContent {
}
class ContentStorageContractsDataContractsContentClass {
}
class ContentStorageContractsDataContractsContentClassViolation {
}
class ContentStorageContractsDataContractsContentViolation {
}
class ContentStorageContractsDataContractsFilterComparisonModel {
}
class ContentStorageContractsDataContractsFilterModel {
}
class ContentStorageContractsDataContractsMetadata {
}
class ContentStorageContractsDataContractsSearchCriteria {
}
class ContentStorageContractsDataContractsSearchOrderBy {
}
class ContentStorageContractsDataContractsSearchPageInfo {
}
class ContentStorageContractsDataContractsSearchResult {
}
class ContentStorageContractsDataContractsSearchSelectFields {
}
class ContentStorageContractsDataContractsStorageLocation {
}
class ContentStorageContractsDataContractsStoragePolicy {
}
class AssemblyClassModel {
}
class AssemblyDefinitionModel {
}
class AuthenticationDefinitionModel {
}
class LengthDefinitionModel {
}
class ClaimModel {
}
class ConfigurationInstanceModel {
}
class ConfigurationPromotionDefinitionModel {
}
class ConfigurationPromotionPackageModel {
}
class ConfigurationScopeModel {
}
class ConfigurationSectionCreateModel {
}
class ConfigurationSectionModel {
}
class ConfigurationSettingCreateModel {
}
class ConfigurationSettingModel {
}
class ConfigurationSettingUpdateModel {
}
class ContentContentModel {
}
class ContentMetadataContainerModel {
}
class ContentMetadataModel {
}
class IntegrationYammerYammerAttachmentModel {
}
class IntegrationYammerYammerLikeUserModel {
}
class IntegrationYammerYammerLikesModel {
}
class IntegrationYammerYammerMessageContentModel {
}
class IntegrationYammerYammerMessageModel {
}
class IntegrationYammerYammerPostModel {
}
class IntegrationYammerYammerReferenceModel {
}
class IntegrationYammerYammerTopicModel {
}
class ListItemModel {
}
class MonitorsSLAMonitorCategory {
}
class MonitorsSLAMonitorData {
}
class MonitorsSlaCompletionData {
}
class MonitorsSlaCompletionMonitorModel {
}
class MonitorsSlaInflowData {
}
class MonitorsSlaInflowsMonitorModel {
}
class MonitorsSlaInventoryData {
}
class MonitorsSlaInventoryMonitorModel {
}
class MonitorsSlaMonitorModel {
}
class MonitorsSlaTeamProductivityCompletionData {
}
class MonitorsSlaTeamProductivityCompletionMonitorModel {
}
class MonitorsSlaTeamProductivityFacetimeData {
}
class MonitorsSlaTeamProductivityFacetimeMonitorModel {
}
class MonitorsUserFacetimeCount {
}
class MonitorsUserWorkCount {
}
class TaxonomyActivityDefinitionContentTypeCreateModel {
}
class TaxonomyActivityDefinitionContentTypeModel {
}
class TaxonomyActivityDefinitionContentTypeUpdateModel {
}
class TaxonomyActivityDefinitionCreateModel {
}
class TaxonomyActivityDefinitionModel {
}
class TaxonomyActivityDefinitionUpdateModel {
}
class TaxonomyAdapterCreateModel {
}
class TaxonomyAdapterModel {
}
class TaxonomyAdapterUpdateModel {
}
class TaxonomyAttachmentTypeCreateModel {
}
class TaxonomyAttachmentTypeModel {
}
class TaxonomyAttachmentTypeRoleCreateModel {
}
class TaxonomyAttachmentTypeRoleModel {
}
class TaxonomyAttachmentTypeRoleUpdateModel {
}
class TaxonomyAttachmentTypeUpdateModel {
}
class TaxonomyCacheManagerModel {
}
class TaxonomyCaseNoteTypeCreateModel {
}
class TaxonomyCaseNoteTypeModel {
}
class TaxonomyCaseNoteTypeUpdateModel {
}
class TaxonomyCategory1CreateModel {
}
class TaxonomyCategory1Model {
}
class TaxonomyCategory1UpdateModel {
}
class TaxonomyCategory2CreateModel {
}
class TaxonomyCategory2Model {
}
class TaxonomyCategory2UpdateModel {
}
class TaxonomyCategory3CreateModel {
}
class TaxonomyCategory3Model {
}
class TaxonomyCategory3UpdateModel {
}
class TaxonomyCategoryActivityAttributeCreateModel {
}
class TaxonomyCategoryActivityAttributeModel {
}
class TaxonomyCategoryActivityAttributeUpdateModel {
}
class TaxonomyCategoryActivityDefinitionCreateModel {
}
class TaxonomyCategoryActivityDefinitionModel {
}
class TaxonomyCategoryActivityDefinitionUpdateModel {
}
class TaxonomyCategoryActivityFieldCreateModel {
}
class TaxonomyCategoryActivityFieldModel {
}
class TaxonomyCategoryActivityFieldUpdateModel {
}
class TaxonomyCategoryActivityRoleCreateModel {
}
class TaxonomyCategoryActivityRoleModel {
}
class TaxonomyCategoryActivityRoleUpdateModel {
}
class TaxonomyCategoryAttachmentTypeCreateModel {
}
class TaxonomyCategoryAttachmentTypeModel {
}
class TaxonomyCategoryAttachmentTypeUpdateModel {
}
class TaxonomyCategorySiteCreateModel {
}
class TaxonomyCategorySiteModel {
}
class TaxonomyCategorySiteUpdateModel {
}
class TaxonomyContentTypeCustomCreateModel {
}
class TaxonomyContentTypeCustomModel {
}
class TaxonomyContentTypeCustomUpdateModel {
}
class TaxonomyContentTypeFieldSetCreateModel {
}
class TaxonomyContentTypeFieldSetModel {
}
class TaxonomyContentTypeFieldSetUpdateModel {
}
class TaxonomyContentTypeGridCreateModel {
}
class TaxonomyContentTypeGridModel {
}
class TaxonomyContentTypeGridUpdateModel {
}
class TaxonomyContentTypeModel {
}
class TaxonomyCurrencyCreateModel {
}
class TaxonomyCurrencyModel {
}
class TaxonomyCurrencyUpdateModel {
}
class TaxonomyDocumentTemplateModel {
}
class TaxonomyEventCreateModel {
}
class TaxonomyEventModel {
}
class TaxonomyEventUpdateModel {
}
class TaxonomyExchangeListenerCreateModel {
}
class TaxonomyExchangeListenerModel {
}
class TaxonomyExchangeListenerPreProcessorCreateModel {
}
class TaxonomyExchangeListenerPreProcessorModel {
}
class TaxonomyExchangeListenerPreProcessorUpdateModel {
}
class TaxonomyExchangeListenerUpdateModel {
}
class TaxonomyFieldDefinitionCaseNoteCreateModel {
}
class TaxonomyFieldDefinitionCaseNoteModel {
}
class TaxonomyFieldDefinitionCaseNoteUpdateModel {
}
class TaxonomyFieldDefinitionCurrencyCreateModel {
}
class TaxonomyFieldDefinitionCurrencyModel {
}
class TaxonomyFieldDefinitionCurrencyUpdateModel {
}
class TaxonomyFieldDefinitionLinkCreateModel {
}
class TaxonomyFieldDefinitionLinkModel {
}
class TaxonomyFieldDefinitionLinkUpdateModel {
}
class TaxonomyFieldDefinitionListCreateModel {
}
class TaxonomyFieldDefinitionListModel {
}
class TaxonomyFieldDefinitionListUpdateModel {
}
class TaxonomyFieldDefinitionLookupCreateModel {
}
class TaxonomyFieldDefinitionLookupModel {
}
class TaxonomyFieldDefinitionLookupUpdateModel {
}
class TaxonomyFieldDefinitionModel {
}
class TaxonomyFieldDefinitionSimpleCreateModel {
}
class TaxonomyFieldDefinitionSimpleModel {
}
class TaxonomyFieldDefinitionSimpleUpdateModel {
}
class TaxonomyLibraryCreateModel {
}
class TaxonomyLibraryFieldCreateModel {
}
class TaxonomyLibraryFieldModel {
}
class TaxonomyLibraryFieldUpdateModel {
}
class TaxonomyLibraryModel {
}
class TaxonomyLibraryUpdateModel {
}
class TaxonomyListCreateModel {
}
class TaxonomyListItemCreateModel {
}
class TaxonomyListItemModel {
}
class TaxonomyListItemUpdateModel {
}
class TaxonomyListModel {
}
class TaxonomyListUpdateModel {
}
class TaxonomyLocationCreateModel {
}
class TaxonomyLocationDayCreateModel {
}
class TaxonomyLocationDayModel {
}
class TaxonomyLocationDayUpdateModel {
}
class TaxonomyLocationModel {
}
class TaxonomyLocationUpdateModel {
}
class TaxonomyLookupCreateModel {
}
class TaxonomyLookupModel {
}
class TaxonomyLookupUpdateModel {
}
class TaxonomyMenuCreateModel {
}
class TaxonomyMenuItemDefinitionCreateModel {
}
class TaxonomyMenuItemDefinitionModel {
}
class TaxonomyMenuItemDefinitionUpdateModel {
}
class TaxonomyMenuModel {
}
class TaxonomyMenuRoleModel {
}
class TaxonomyMenuUpdateModel {
}
class TaxonomyMenuViewCreateModel {
}
class TaxonomyMenuViewUpdateModel {
}
class TaxonomyPriorityCreateModel {
}
class TaxonomyPriorityModel {
}
class TaxonomyPriorityUpdateModel {
}
class TaxonomyPublicHolidayCreateModel {
}
class TaxonomyPublicHolidayModel {
}
class TaxonomyPublicHolidayUpdateModel {
}
class TaxonomyRoleCreateModel {
}
class TaxonomyRoleModel {
}
class TaxonomyRoleUpdateModel {
}
class TaxonomySearchActivityFieldCreateModel {
}
class TaxonomySearchActivityFieldModel {
}
class TaxonomySearchActivityFieldUpdateModel {
}
class TaxonomySearchDefinitionContentTypeCreateModel {
}
class TaxonomySearchDefinitionContentTypeModel {
}
class TaxonomySearchDefinitionContentTypeUpdateModel {
}
class TaxonomySearchDefinitionCreateModel {
}
class TaxonomySearchDefinitionModel {
}
class TaxonomySearchDefinitionUpdateModel {
}
class TaxonomySearchFieldCreateModel {
}
class TaxonomySearchFieldModel {
}
class TaxonomySearchFieldUpdateModel {
}
class TaxonomyStatusCreateModel {
}
class TaxonomyStatusModel {
}
class TaxonomyStatusUpdateModel {
}
class TaxonomyZoneTemplateCreateModel {
}
class TaxonomyZoneTemplateModel {
}
class TaxonomyZoneTemplateUpdateModel {
}
class UserGroupModel {
}
class UserModel {
}
class UserProfileModel {
}
class WorkGetNextIdResponse {
}
class WorkGetNextResponse {
}
class WorkGetNextValueResponse {
}
class WorkIsLockedWorkItemResponse {
}
class WorkLockWorkItemResponse {
}
class WorkUnLockWorkItemResponse {
}
class WorkClassChildrenModel {
}
class WorkItemCaseNoteCreateModel {
}
class WorkItemCreateModel {
}
class WorkItemEventCreateModel {
}
class WorkItemFieldModel {
}
class WorkItemFieldUpdateModel {
}
class WorkItemFieldsUpdateModel {
}
class WorkItemModel {
}
class WorkRelatedItemModel {
}
class WorkRelatedItemsModel {
}
class FoundationTaxonomyControlItemFModel {
}
class FoundationTaxonomyFieldFModel {
}
class FoundationTaxonomyFieldGridRowModel {
}
class FoundationTaxonomyFieldSetFModel {
}
class FoundationTaxonomyFilteredListFModel {
}
class FoundationTaxonomyListFModel {
}
class FoundationTaxonomyListItemFModel {
}
class FoundationTaxonomyMenuItemFModel {
}
class FoundationWorkAttachmentFModel {
}
class FoundationWorkCaseNoteFModel {
}
class FoundationWorkCaseNoteResultModel {
}
class FoundationWorkContentDiariseReasonFModel {
}
class FoundationWorkConversationFModel {
}
class FoundationWorkConversationGroupFModel {
}
class FoundationWorkConversationMessageFModel {
}
class FoundationWorkDocumentReferenceFModel {
}
class FoundationWorkFileFModel {
}
class FoundationWorkFilterComparisonModel {
}
class FoundationWorkFilterFModel {
}
class FoundationWorkFindWorkItemColumnDefModel {
}
class FoundationWorkFindWorkItemResultModel {
}
class FoundationWorkLastActivityFModel {
}
class FoundationWorkPropertyValueFModel {
}
class FoundationWorkTaskAttributeFModel {
}
class FoundationWorkTaskFModel {
}
class FoundationWorkItemFModel {
}
class FoundationWorkWorkTaskFModel {
}
class InfrastructureRepositoryBuilderResponse {
}
class PromotionTaxonomyCreatePackageRequest {
}
class PromotionTaxonomyCreatePackageResponse {
}
class PromotionTaxonomyCreateWorkflowPackageRequest {
}
class PromotionTaxonomyPackageDescription {
}
class PromotionTaxonomyPackageScopeModel {
}
class PromotionTaxonomyPromotionCategory1Model {
}
class PromotionTaxonomyPromotionConflictResolutionModel {
}
class PromotionTaxonomyPromotionNotificationItem {
}
class PromotionTaxonomyWorkflowScopeModel {
}
class UIDocumentsModel {
}
class UIFieldSetModel {
}
class UIListModel {
}
class UIMenuModel {
}
class UIPropertyModel {
}
class UISearchDefinitionModel {
}
class UISearchDefinitionRefModel {
}
class UISearchFieldModel {
}
class UISearchZoneModel {
}
class UITabModel {
}
class UIWorkFieldModel {
}
class UIWorkItemModel {
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class E5ConfigurationService {
constructor() {
this.settings = {
env: {
name: 'Default Configuration'
},
apiServer: {
baseUrl: 'http://localhost:84/',
scope: 'test'
}
};
}
}
E5ConfigurationService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
E5ConfigurationService.ctorParameters = () => [];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class ConfigurationInstanceService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /api/Configuration/Instance?api-version=1.0
/**
* @return {?}
*/
getAll() {
return this.http.get(`${this.baseUrl}/api/Configuration/Instance`);
}
// GET /api/Configuration/Instance/{id}?api-version=1.0
/**
* @param {?} id
* @return {?}
*/
get(id) {
return this.http.get(`${this.baseUrl}/api/Configuration/Instance/${id}`);
}
}
ConfigurationInstanceService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
ConfigurationInstanceService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class ConfigurationScopeService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// DELETE /api/Configuration/Scope?key={key}&api-version=1.0
/**
* @param {?=} options
* @return {?}
*/
delete(options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.key) !== 'undefined') {
params = params.append('key', options.key);
}
return this.http.delete(`${this.baseUrl}/api/Configuration/Scope`, { params: params });
}
// GET /api/Configuration/Scope?api-version=1.0
/**
* @return {?}
*/
getAll() {
return this.http.get(`${this.baseUrl}/api/Configuration/Scope`);
}
// POST /api/Configuration/Scope?key={key}&api-version=1.0
/**
* @param {?} postJson
* @param {?=} options
* @return {?}
*/
create(postJson, options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.key) !== 'undefined') {
params = params.append('key', options.key);
}
return this.http.post(`${this.baseUrl}/api/Configuration/Scope`, postJson, { params: params });
}
// GET /api/Configuration/Scope/{key}?api-version=1.0
/**
* @param {?} key
* @return {?}
*/
get(key) {
return this.http.get(`${this.baseUrl}/api/Configuration/Scope/${key}`);
}
}
ConfigurationScopeService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
ConfigurationScopeService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class ConfigurationSectionService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /api/Configuration/Section?api-version=1.0
/**
* @return {?}
*/
getAll() {
return this.http.get(`${this.baseUrl}/api/Configuration/Section`);
}
// POST /api/Configuration/Section/Create?api-version=1.0
/**
* @param {?} postJson
* @return {?}
*/
create(postJson) {
return this.http.post(`${this.baseUrl}/api/Configuration/Section/Create`, postJson);
}
// GET /api/Configuration/Section/{id}?api-version=1.0
/**
* @param {?} id
* @return {?}
*/
get(id) {
return this.http.get(`${this.baseUrl}/api/Configuration/Section/${id}`);
}
}
ConfigurationSectionService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
ConfigurationSectionService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class ConfigurationSettingService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /api/Configuration/Setting?api-version=1.0
/**
* @return {?}
*/
getAll() {
return this.http.get(`${this.baseUrl}/api/Configuration/Setting`);
}
// POST /api/Configuration/Setting?api-version=1.0
/**
* @param {?} postJson
* @return {?}
*/
create(postJson) {
return this.http.post(`${this.baseUrl}/api/Configuration/Setting`, postJson);
}
// GET /api/Configuration/Setting/{application}/{section}/{key}?api-version=1.0
/**
* @param {?} application
* @param {?} section
* @param {?} key
* @return {?}
*/
getFilteredSetting(application, section, key) {
return this.http.get(`${this.baseUrl}/api/Configuration/Setting/${application}/${section}/${key}`);
}
// GET /api/Configuration/Setting/{id}?api-version=1.0
/**
* @param {?} id
* @return {?}
*/
get(id) {
return this.http.get(`${this.baseUrl}/api/Configuration/Setting/${id}`);
}
// PUT /api/Configuration/Setting/{id}?api-version=1.0
/**
* @param {?} id
* @param {?} putJson
* @return {?}
*/
update(id, putJson) {
return this.http.put(`${this.baseUrl}/api/Configuration/Setting/${id}`, putJson);
}
}
ConfigurationSettingService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
ConfigurationSettingService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class IdentityClaimService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /{scope}/api/Identity/Claim/GetClaimsForCurrentUser?type={type}&issuer={issuer}&api-version=1.0
/**
* @param {?=} options
* @return {?}
*/
getClaimsForCurrentUser(options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.type) !== 'undefined') {
params = params.append('type', options.type);
}
if (options && typeof (options.issuer) !== 'undefined') {
params = params.append('issuer', options.issuer);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/Identity/Claim/GetClaimsForCurrentUser`, { params: params });
}
// GET /{scope}/api/Identity/Claim/GetClaimsForUser?sub={sub}&type={type}&issuer={issuer}&api-version=1.0
/**
* @param {?=} options
* @return {?}
*/
getClaimsForUser(options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.sub) !== 'undefined') {
params = params.append('sub', options.sub);
}
if (options && typeof (options.type) !== 'undefined') {
params = params.append('type', options.type);
}
if (options && typeof (options.issuer) !== 'undefined') {
params = params.append('issuer', options.issuer);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/Identity/Claim/GetClaimsForUser`, { params: params });
}
// GET /{scope}/api/Identity/Claim/GetGroupsForUser?sub={sub}&api-version=1.0
/**
* @param {?=} options
* @return {?}
*/
getGroupsForUser(options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.sub) !== 'undefined') {
params = params.append('sub', options.sub);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/Identity/Claim/GetGroupsForUser`, { params: params });
}
}
IdentityClaimService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
IdentityClaimService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class IdentityUserProfileService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /{scope}/api/Identity/UserProfile/GetProfileForCurrentUser?api-version=1.0
/**
* @return {?}
*/
getProfileForCurrentUser() {
return this.http.get(`${this.baseUrl}/${this.scope}/api/Identity/UserProfile/GetProfileForCurrentUser`);
}
}
IdentityUserProfileService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
IdentityUserProfileService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class IdentityUserSessionService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// POST /{scope}/api/Identity/UserSession/ClearCurrentUserClaims?api-version=1.0
/**
* @return {?}
*/
clearCurrentUserClaims() {
return this.http.post(`${this.baseUrl}/${this.scope}/api/Identity/UserSession/ClearCurrentUserClaims`, null);
}
// POST /{scope}/api/Identity/UserSession/ClearCurrentUserSession?api-version=1.0
/**
* @return {?}
*/
clearCurrentUserSession() {
return this.http.post(`${this.baseUrl}/${this.scope}/api/Identity/UserSession/ClearCurrentUserSession`, null);
}
// GET /{scope}/api/Identity/UserSession/GetClaimsForCurrentUser?type={type}&issuer={issuer}&api-version=1.0
/**
* @param {?=} options
* @return {?}
*/
getClaimsForCurrentUser(options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.type) !== 'undefined') {
params = params.append('type', options.type);
}
if (options && typeof (options.issuer) !== 'undefined') {
params = params.append('issuer', options.issuer);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/Identity/UserSession/GetClaimsForCurrentUser`, { params: params });
}
// GET /{scope}/api/Identity/UserSession/GetScopeForCurrentUser?api-version=1.0
/**
* @return {?}
*/
getScopeForCurrentUser() {
return this.http.get(`${this.baseUrl}/${this.scope}/api/Identity/UserSession/GetScopeForCurrentUser`);
}
}
IdentityUserSessionService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
IdentityUserSessionService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class IntegrationSiteService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /{scope}/api/Integration/Site/GetAllGroups?api-version=1.0
/**
* @return {?}
*/
getAllGroups() {
return this.http.get(`${this.baseUrl}/${this.scope}/api/Integration/Site/GetAllGroups`);
}
// GET /{scope}/api/Integration/Site/GetGroupsForCurrentUser?api-version=1.0
/**
* @return {?}
*/
getGroupsForCurrentUser() {
return this.http.get(`${this.baseUrl}/${this.scope}/api/Integration/Site/GetGroupsForCurrentUser`);
}
// GET /{scope}/api/Integration/Site/GetGroupsForUser?sub={sub}&api-version=1.0
/**
* @param {?=} options
* @return {?}
*/
getGroupsForUser(options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.sub) !== 'undefined') {
params = params.append('sub', options.sub);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/Integration/Site/GetGroupsForUser`, { params: params });
}
}
IntegrationSiteService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
IntegrationSiteService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class IntegrationYammerMessagesService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// POST /{scope}/api/Integration/Yammer/YammerMessages/PostMessage?message={message}&groups={groups}&topics={topics}&action={action}&api-version=1.0
/**
* @param {?=} options
* @return {?}
*/
postMessage(options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.message) !== 'undefined') {
params = params.append('message', options.message);
}
if (options && typeof (options.groups) !== 'undefined') {
params = params.append('groups', options.groups);
}
if (options && typeof (options.topics) !== 'undefined') {
params = params.append('topics', options.topics);
}
if (options && typeof (options.action) !== 'undefined') {
params = params.append('action', options.action);
}
return this.http.post(`${this.baseUrl}/${this.scope}/api/Integration/Yammer/YammerMessages/PostMessage`, null, { params: params });
}
// POST /{scope}/api/Integration/Yammer/YammerMessages/PostWorkItemMessage/{workId}?message={message}&groups={groups}&topics={topics}&action={action}&api-version=1.0
/**
* @param {?} workId
* @param {?=} options
* @return {?}
*/
postWorkItemMessage(workId, options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.message) !== 'undefined') {
params = params.append('message', options.message);
}
if (options && typeof (options.groups) !== 'undefined') {
params = params.append('groups', options.groups);
}
if (options && typeof (options.topics) !== 'undefined') {
params = params.append('topics', options.topics);
}
if (options && typeof (options.action) !== 'undefined') {
params = params.append('action', options.action);
}
return this.http.post(`${this.baseUrl}/${this.scope}/api/Integration/Yammer/YammerMessages/PostWorkItemMessage/${workId}`, null, { params: params });
}
}
IntegrationYammerMessagesService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
IntegrationYammerMessagesService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class IntegrationYammerTopicsService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /api/Integration/Yammer/YammerTopics?topic={topic}&api-version=1.0
/**
* @param {?=} options
* @return {?}
*/
getAll(options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.topic) !== 'undefined') {
params = params.append('topic', options.topic);
}
return this.http.get(`${this.baseUrl}/api/Integration/Yammer/YammerTopics`, { params: params });
}
// GET /api/Integration/Yammer/YammerTopics/Exists?topic={topic}&api-version=1.0
/**
* @param {?=} options
* @return {?}
*/
exists(options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.topic) !== 'undefined') {
params = params.append('topic', options.topic);
}
return this.http.get(`${this.baseUrl}/api/Integration/Yammer/YammerTopics/Exists`, { params: params });
}
}
IntegrationYammerTopicsService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
IntegrationYammerTopicsService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class ListSearchService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /{scope}/api/List/Search/{id}?prefix={prefix}&parentListItemId={parentListItemId}&api-version=1.0
/**
* @param {?} id
* @param {?=} options
* @return {?}
*/
search(id, options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.prefix) !== 'undefined') {
params = params.append('prefix', options.prefix);
}
if (options && typeof (options.parentListItemId) !== 'undefined') {
params = params.append('parentListItemId', options.parentListItemId);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/List/Search/${id}`, { params: params });
}
}
ListSearchService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
ListSearchService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class MonitorsSlaCompletionMonitorService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /{scope}/api/Monitors/SlaCompletionMonitor/GetCompletionSlaMonitorWorkCounts/{startDate}/{endDate}?category1Id={category1Id}&siteGroup={siteGroup}&category2Id={category2Id}&category3Id={category3Id}&archive={archive}&totalProperty={totalProperty}&api-version=1.0
/**
* @param {?} startDate
* @param {?} endDate
* @param {?=} options
* @return {?}
*/
getCompletionSlaMonitorWorkCounts(startDate, endDate, options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.category1Id) !== 'undefined') {
params = params.append('category1Id', options.category1Id);
}
if (options && typeof (options.siteGroup) !== 'undefined') {
params = params.append('siteGroup', options.siteGroup);
}
if (options && typeof (options.category2Id) !== 'undefined') {
params = params.append('category2Id', options.category2Id);
}
if (options && typeof (options.category3Id) !== 'undefined') {
params = params.append('category3Id', options.category3Id);
}
if (options && typeof (options.archive) !== 'undefined') {
params = params.append('archive', options.archive);
}
if (options && typeof (options.totalProperty) !== 'undefined') {
params = params.append('totalProperty', options.totalProperty);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/Monitors/SlaCompletionMonitor/GetCompletionSlaMonitorWorkCounts/${startDate}/${endDate}`, { params: params });
}
}
MonitorsSlaCompletionMonitorService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
MonitorsSlaCompletionMonitorService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class MonitorsSlaInflowsMonitorService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /{scope}/api/Monitors/SlaInflowsMonitor/GetInflowsSlaMonitorWorkCounts?endDate={endDate}&archive={archive}&siteGroup={siteGroup}&startDate={startDate}&category1Id={category1Id}&category2Id={category2Id}&category3Id={category3Id}&otherWorkStatus={otherWorkStatus}&api-version=1.0
/**
* @param {?=} options
* @return {?}
*/
getInflowsSlaMonitorWorkCounts(options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.endDate) !== 'undefined') {
params = params.append('endDate', options.endDate);
}
if (options && typeof (options.archive) !== 'undefined') {
params = params.append('archive', options.archive);
}
if (options && typeof (options.siteGroup) !== 'undefined') {
params = params.append('siteGroup', options.siteGroup);
}
if (options && typeof (options.startDate) !== 'undefined') {
params = params.append('startDate', options.startDate);
}
if (options && typeof (options.category1Id) !== 'undefined') {
params = params.append('category1Id', options.category1Id);
}
if (options && typeof (options.category2Id) !== 'undefined') {
params = params.append('category2Id', options.category2Id);
}
if (options && typeof (options.category3Id) !== 'undefined') {
params = params.append('category3Id', options.category3Id);
}
if (options && typeof (options.otherWorkStatus) !== 'undefined') {
params = params.append('otherWorkStatus', options.otherWorkStatus);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/Monitors/SlaInflowsMonitor/GetInflowsSlaMonitorWorkCounts`, { params: params });
}
}
MonitorsSlaInflowsMonitorService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
MonitorsSlaInflowsMonitorService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class MonitorsSlaInventoryMonitorService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /{scope}/api/Monitors/SlaInventoryMonitor/GetInventorySlaMonitorWorkCounts/{startDate}/{endDate}?category3Id={category3Id}&category1Id={category1Id}&category2Id={category2Id}&stauses={stauses}&calculatedIntervals={calculatedIntervals}&concatPivotFields={concatPivotFields}&debug={debug}&api-version=1.0
/**
* @param {?} startDate
* @param {?} endDate
* @param {?=} options
* @return {?}
*/
getInventorySlaMonitorWorkCounts(startDate, endDate, options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.category3Id) !== 'undefined') {
params = params.append('category3Id', options.category3Id);
}
if (options && typeof (options.category1Id) !== 'undefined') {
params = params.append('category1Id', options.category1Id);
}
if (options && typeof (options.category2Id) !== 'undefined') {
params = params.append('category2Id', options.category2Id);
}
if (options && typeof (options.stauses) !== 'undefined') {
params = params.append('stauses', options.stauses);
}
if (options && typeof (options.calculatedIntervals) !== 'undefined') {
params = params.append('calculatedIntervals', options.calculatedIntervals);
}
if (options && typeof (options.concatPivotFields) !== 'undefined') {
params = params.append('concatPivotFields', options.concatPivotFields);
}
if (options && typeof (options.debug) !== 'undefined') {
params = params.append('debug', options.debug);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/Monitors/SlaInventoryMonitor/GetInventorySlaMonitorWorkCounts/${startDate}/${endDate}`, { params: params });
}
}
MonitorsSlaInventoryMonitorService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
MonitorsSlaInventoryMonitorService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class MonitorsSlaMonitorService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /{scope}/api/Monitors/SlaMonitor/GetSlaMonitorWorkCounts/{category1Id}/{category2Id}/{category3Id}/{categoryActivityId}?showEmptyCategories={showEmptyCategories}&approachingSLARange={approachingSLARange}&isApproachingSLAInHours={isApproachingSLAInHours}&statuses={statuses}&includeInactive={includeInactive}&isDebug={isDebug}&assignedUser={assignedUser}&siteGroupFilters={siteGroupFilters}&followUser={followUser}&totalProperty={totalProperty}&filterPropertyId={filterPropertyId}&filterPropertyValue={filterPropertyValue}&showSlaMode={showSlaMode}&api-version=1.0
/**
* @param {?} category1Id
* @param {?} category2Id
* @param {?} category3Id
* @param {?} categoryActivityId
* @param {?=} options
* @return {?}
*/
getSlaMonitorWorkCounts(category1Id, category2Id, category3Id, categoryActivityId, options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.showEmptyCategories) !== 'undefined') {
params = params.append('showEmptyCategories', options.showEmptyCategories);
}
if (options && typeof (options.approachingSLARange) !== 'undefined') {
params = params.append('approachingSLARange', options.approachingSLARange);
}
if (options && typeof (options.isApproachingSLAInHours) !== 'undefined') {
params = params.append('isApproachingSLAInHours', options.isApproachingSLAInHours);
}
if (options && typeof (options.statuses) !== 'undefined') {
params = params.append('statuses', options.statuses);
}
if (options && typeof (options.includeInactive) !== 'undefined') {
params = params.append('includeInactive', options.includeInactive);
}
if (options && typeof (options.isDebug) !== 'undefined') {
params = params.append('isDebug', options.isDebug);
}
if (options && typeof (options.assignedUser) !== 'undefined') {
params = params.append('assignedUser', options.assignedUser);
}
if (options && typeof (options.siteGroupFilters) !== 'undefined') {
params = params.append('siteGroupFilters', options.siteGroupFilters);
}
if (options && typeof (options.followUser) !== 'undefined') {
params = params.append('followUser', options.followUser);
}
if (options && typeof (options.totalProperty) !== 'undefined') {
params = params.append('totalProperty', options.totalProperty);
}
if (options && typeof (options.filterPropertyId) !== 'undefined') {
params = params.append('filterPropertyId', options.filterPropertyId);
}
if (options && typeof (options.filterPropertyValue) !== 'undefined') {
params = params.append('filterPropertyValue', options.filterPropertyValue);
}
if (options && typeof (options.showSlaMode) !== 'undefined') {
params = params.append('showSlaMode', options.showSlaMode);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/Monitors/SlaMonitor/GetSlaMonitorWorkCounts/${category1Id}/${category2Id}/${category3Id}/${categoryActivityId}`, { params: params });
}
}
MonitorsSlaMonitorService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
MonitorsSlaMonitorService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class MonitorsSlaTeamProductivityCompletionMonitorService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /{scope}/api/Monitors/SlaTeamProductivityCompletionMonitor/GetTeamProductivityCompletionSlaMonitorWorkCounts/{startDate}/{endDate}?category3Id={category3Id}&category1Id={category1Id}&category2Id={category2Id}&stauses={stauses}&calculatedIntervals={calculatedIntervals}&userGroupsId={userGroupsId}&concatPivotFields={concatPivotFields}&debug={debug}&api-version=1.0
/**
* @param {?} startDate
* @param {?} endDate
* @param {?=} options
* @return {?}
*/
getTeamProductivityCompletionSlaMonitorWorkCounts(startDate, endDate, options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.category3Id) !== 'undefined') {
params = params.append('category3Id', options.category3Id);
}
if (options && typeof (options.category1Id) !== 'undefined') {
params = params.append('category1Id', options.category1Id);
}
if (options && typeof (options.category2Id) !== 'undefined') {
params = params.append('category2Id', options.category2Id);
}
if (options && typeof (options.stauses) !== 'undefined') {
params = params.append('stauses', options.stauses);
}
if (options && typeof (options.calculatedIntervals) !== 'undefined') {
params = params.append('calculatedIntervals', options.calculatedIntervals);
}
if (options && typeof (options.userGroupsId) !== 'undefined') {
params = params.append('userGroupsId', options.userGroupsId);
}
if (options && typeof (options.concatPivotFields) !== 'undefined') {
params = params.append('concatPivotFields', options.concatPivotFields);
}
if (options && typeof (options.debug) !== 'undefined') {
params = params.append('debug', options.debug);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/Monitors/SlaTeamProductivityCompletionMonitor/GetTeamProductivityCompletionSlaMonitorWorkCounts/${startDate}/${endDate}`, { params: params });
}
}
MonitorsSlaTeamProductivityCompletionMonitorService.decorators = [
{ type: Injectable }
];
/** @nocollapse */
MonitorsSlaTeamProductivityCompletionMonitorService.ctorParameters = () => [
{ type: HttpClient },
{ type: E5ConfigurationService }
];
class MonitorsSlaTeamProductivityFacetimeMonitorService {
/**
* @param {?} http
* @param {?} config
*/
constructor(http, config) {
this.http = http;
this.config = config;
}
/**
* @private
* @return {?}
*/
get baseUrl() {
return this.config.settings.apiServer.baseUrl;
}
/**
* @private
* @return {?}
*/
get scope() {
return this.config.settings.apiServer.scope;
}
// GET /{scope}/api/Monitors/SlaTeamProductivityFacetimeMonitor/GetTeamProductivityFacetimeSlaMonitorWorkCounts/{startDate}/{endDate}?category3Id={category3Id}&category1Id={category1Id}&category2Id={category2Id}&stauses={stauses}&calculatedIntervals={calculatedIntervals}&userGroupsId={userGroupsId}&concatPivotFields={concatPivotFields}&debug={debug}&api-version=1.0
/**
* @param {?} startDate
* @param {?} endDate
* @param {?=} options
* @return {?}
*/
getTeamProductivityFacetimeSlaMonitorWorkCounts(startDate, endDate, options) {
/** @type {?} */
let params = new HttpParams();
if (options && typeof (options.category3Id) !== 'undefined') {
params = params.append('category3Id', options.category3Id);
}
if (options && typeof (options.category1Id) !== 'undefined') {
params = params.append('category1Id', options.category1Id);
}
if (options && typeof (options.category2Id) !== 'undefined') {
params = params.append('category2Id', options.category2Id);
}
if (options && typeof (options.stauses) !== 'undefined') {
params = params.append('stauses', options.stauses);
}
if (options && typeof (options.calculatedIntervals) !== 'undefined') {
params = params.append('calculatedIntervals', options.calculatedIntervals);
}
if (options && typeof (options.userGroupsId) !== 'undefined') {
params = params.append('userGroupsId', options.userGroupsId);
}
if (options && typeof (options.concatPivotFields) !== 'undefined') {
params = params.append('concatPivotFields', options.concatPivotFields);
}
if (options && typeof (options.debug) !== 'undefined') {
params = params.append('debug', options.debug);
}
return this.http.get(`${this.baseUrl}/${this.scope}/api/Monitors/SlaTeamProductivityFacetimeMonitor/GetTeamP