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AA6NA,oBA7NA;AA8NA,uBA9NA;AA+NA,qBA/NA;AAgOA,wBAhOA;AAiOA,qBAjOA;AAkOA,wBAlOA;AAmOA,sBAnOA;AAoOA,yBApOA;AAqOA,qBArOA;AAsOA,wBAtOA;AAuOA,qBAvOA;AAwOA,wBAxOA;AAyOA,qBAzOA;AA0OA,wBA1OA;AA2OA,wBA3OA;AA4OA,2BA5OA;AA6OA,sBA7OA;AA8OA,yBA9OA;AA+OA,qBA/OA;AAgPA,wBAhPA;AAiPA,sBAjPA;AAkPA,yBAlPA;AAmPA,sBAnPA;AAoPA,2BApPA;AAqPA,8BArPA;AAsPA,yBAtPA;AAuPA,wBAvPA;AAwPA,2BAxPA;AAyPA,qBAzPA;AA0PA,wBA1PA;AA2PA,qBA3PA;AA4PA,wBA5PA;AA6PA,qBA7PA;AA8PA,0BA9PA;AA+PA,6BA/PA;AAgQA,wBAhQA;AAiQA,qBAjQA;AAkQA,wBAlQA;AAmQA,2BAnQA;AAoQA,8BApQA;AAqQA,qBArQA;AAsQA,wBAtQA;AAuQA,wBAvQA;AAwQA,2BAxQA;AAyQA,wBAzQA;AA0QA,2BA1QA;AA2QA,wBA3QA;AA4QA,2BA5QA;AA6QA,wBA7QA;AA8QA;AA9QA;;AAkRA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA/yC;AACA;AACA;;AACA;AACA;;AACAgzC;AACA;AACA,OAFA;;AAGAA;AACA9yC;AACA8yC;;;;;;;;;;;;;;;;;;;;;;;;","names":["e","webpackEmptyAsyncContext","module","ApiModule","parentModule","http","Error","configurationFactory","ngModule","providers","provide","_configuration__WEBPACK_IMPORTED_MODULE_0__","useFactory","_angular_core__WEBPACK_IMPORTED_MODULE_30__","_api_account_service__WEBPACK_IMPORTED_MODULE_1__","_api_auditingInspection_service__WEBPACK_IMPORTED_MODULE_2__","_api_dictionary_service__WEBPACK_IMPORTED_MODULE_3__","_api_document_service__WEBPACK_IMPORTED_MODULE_4__","_api_documentV2_service__WEBPACK_IMPORTED_MODULE_5__","_api_documentViewConfigs_service__WEBPACK_IMPORTED_MODULE_7__","_api_documentActor_service__WEBPACK_IMPORTED_MODULE_6__","_api_notification_service__WEBPACK_IMPORTED_MODULE_8__","_api_reports_service__WEBPACK_IMPORTED_MODULE_9__","_api_sourceTemplate_service__WEBPACK_IMPORTED_MODULE_10__","_api_systemInfo_service__WEBPACK_IMPORTED_MODULE_11__","_api_template_service__WEBPACK_IMPORTED_MODULE_12__","_api_templateActor_service__WEBPACK_IMPORTED_MODULE_13__","_api_templateField_service__WEBPACK_IMPORTED_MODULE_14__","_api_templateFieldRule_service__WEBPACK_IMPORTED_MODULE_15__","_api_templateFieldRuleCondition_service__WEBPACK_IMPORTED_MODULE_16__","_api_templateForm_service__WEBPACK_IMPORTED_MODULE_17__","_api_templateFormControl_service__WEBPACK_IMPORTED_MODULE_18__","_api_templateRole_service__WEBPACK_IMPORTED_MODULE_19__","_api_templateTimer_service__WEBPACK_IMPORTED_MODULE_20__","_api_templateWorkflow_service__WEBPACK_IMPORTED_MODULE_21__","_api_templateWorkflowAction_service__WEBPACK_IMPORTED_MODULE_22__","_api_templateWorkflowActionCondition_service__WEBPACK_IMPORTED_MODULE_23__","_api_templateWorkflowActionStep_service__WEBPACK_IMPORTED_MODULE_24__","_api_templateWorkflowStage_service__WEBPACK_IMPORTED_MODULE_25__","_api_templateWorkflowStageBehavior_service__WEBPACK_IMPORTED_MODULE_26__","_api_tenant_service__WEBPACK_IMPORTED_MODULE_27__","_api_tests_service__WEBPACK_IMPORTED_MODULE_28__","_api_userMenu_service__WEBPACK_IMPORTED_MODULE_29__","imports","AccountService","httpClient","basePath","configuration","authService","_angular_common_http__WEBPACK_IMPORTED_MODULE_2__","_configuration__WEBPACK_IMPORTED_MODULE_1__","onTokenChange","subscribe","token","apiKeys","getValue","consumes","form","consume","observe","reportProgress","headers","defaultHeaders","set","httpHeaderAccepts","httpHeaderAcceptSelected","selectHeaderAccept","undefined","get","withCredentials","loginViewModel","httpContentTypeSelected","selectHeaderContentType","post","logoutViewModel","registerViewModel","resetPasswordViewModel","put","revokeLoginViewModel","resetPasswordRequestModel","_angular_core__WEBPACK_IMPORTED_MODULE_3__","_variables__WEBPACK_IMPORTED_MODULE_0__","factory","APIS","_account_service__WEBPACK_IMPORTED_MODULE_0__","_dictionary_service__WEBPACK_IMPORTED_MODULE_2__","_document_service__WEBPACK_IMPORTED_MODULE_3__","_documentV2_service__WEBPACK_IMPORTED_MODULE_4__","_documentViewConfigs_service__WEBPACK_IMPORTED_MODULE_5__","_documentActor_service__WEBPACK_IMPORTED_MODULE_6__","_notification_service__WEBPACK_IMPORTED_MODULE_7__","_reports_service__WEBPACK_IMPORTED_MODULE_8__","_sourceTemplate_service__WEBPACK_IMPORTED_MODULE_9__","_systemInfo_service__WEBPACK_IMPORTED_MODULE_10__","_template_service__WEBPACK_IMPORTED_MODULE_11__","_templateActor_service__WEBPACK_IMPORTED_MODULE_12__","_templateField_service__WEBPACK_IMPORTED_MODULE_13__","_templateFieldRule_service__WEBPACK_IMPORTED_MODULE_14__","_templateFieldRuleCondition_service__WEBPACK_IMPORTED_MODULE_15__","_templateForm_service__WEBPACK_IMPORTED_MODULE_16__","_templateFormControl_service__WEBPACK_IMPORTED_MODULE_17__","_templateRole_service__WEBPACK_IMPORTED_MODULE_18__","_templateTimer_service__WEBPACK_IMPORTED_MODULE_19__","_templateWorkflow_service__WEBPACK_IMPORTED_MODULE_20__","_templateWorkflowAction_service__WEBPACK_IMPORTED_MODULE_21__","_templateWorkflowActionCondition_service__WEBPACK_IMPORTED_MODULE_22__","_templateWorkflowActionStep_service__WEBPACK_IMPORTED_MODULE_23__","_templateWorkflowStage_service__WEBPACK_IMPORTED_MODULE_24__","_templateWorkflowStageBehavior_service__WEBPACK_IMPORTED_MODULE_25__","_tests_service__WEBPACK_IMPORTED_MODULE_27__","_userMenu_service__WEBPACK_IMPORTED_MODULE_28__","AuditingInspectionService","_angular_common_http__WEBPACK_IMPORTED_MODULE_3__","_configuration__WEBPACK_IMPORTED_MODULE_2__","id","teamtag","imgQuality","queryParameters","encoder","_encoder__WEBPACK_IMPORTED_MODULE_0__","encodeURIComponent","String","params","responseType","_angular_core__WEBPACK_IMPORTED_MODULE_4__","_variables__WEBPACK_IMPORTED_MODULE_1__","DictionaryService","dictionaryGuid","DocumentService","documentId","actionId","fieldShortName","document","template","documentsDocumentModel","requestBody","attachmentId","schema","exportExportConfig","templateShortName","pendingFieldValues","key","Object","prototype","hasOwnProperty","call","value","name","query","shortName","description","fields","pageSize","pageNumber","personId","tenantId","tenantShortName","order","integrumInfraDataPersistenceModelsReportColumn","forEach","element","append","integrumWebApiControllersDocumentsXlsxByIds","byTemplateShortName","byRoleShortNames","documentIds","field","pageIndex","url","documentsDocumentUpdateManyModel","DocumentActorService","documentActorsRegisterModel","documentGuid","role","actorGuid","documentActorsDeleteModel","actorId","documentActorsUpdateModel","DocumentServiceV2","viewConfig","configId","documentsDocumentQuery","fileFormat","DocumentViewConfigsService","modelsViewConfigsViewConfig","NotificationService","modelsQueriesQuery","ReportsService","templateName","reportParams","withData","SourceTemplateService","sourceTemplatesRegisterModel","tenant","sourceTemplate","sourceTemplatesUpdateModel","SystemInfoService","TemplateService","templatesRegisterModel","templatesUpdateModel","TemplateActorService","templatesRegisterActorModel","templatesDeleteModel","TemplateFieldService","fieldsRegisterModel","fieldsUpdateModel","TemplateFieldRuleService","fieldRulesRegisterModel","rule","fieldRulesUpdateModel","TemplateFieldRuleConditionService","fieldRuleConditionsRegisterModel","cond","fieldRuleConditionsUpdateModel","TemplateFormService","formsRegisterModel","formsUpdateModel","TemplateFormControlService","formControlsRegisterModel","formControlsUpdateModel","TemplateRoleService","rolesRegisterModel","rolesUpdateModel","TemplateTimerService","timersTimerModel","timer","TemplateWorkflowService","workflowsRegisterModel","workflowsUpdateModel","TemplateWorkflowActionService","workflow","stage","workflowActionsRegisterModel","action","workflowActionsUpdateModel","TemplateWorkflowActionConditionService","workflowActionConditionsRegisterModel","workflowActionConditionsUpdateModel","TemplateWorkflowActionStepService","workflowActionsWorkflowActionStepModel","step","TemplateWorkflowStageService","workflowStagesRegisterModel","workflowStagesUpdateModel","TemplateWorkflowStageBehaviorService","workflowStageBehaviorsRegisterModel","workflowStageBehaviorsUpdateModel","TenantService","tenantsRegisterModel","shortname","tenantsUpdateModel","TestsService","lang","emailAddress","subject","body","UserMenuService","Configuration","configurationParameters","username","password","accessToken","contentTypes","length","type","find","isJsonMime","x","accepts","mime","jsonMime","RegExp","test","toLowerCase","CustomHttpUrlEncodingCodec","k","replace","v","_angular_common_http__WEBPACK_IMPORTED_MODULE_0__","AttachmentFileSourceType","NUMBER_0","NUMBER_1","NUMBER_2","NUMBER_3","EntityStatus","NUMBER_4","NUMBER_MINUS_1","IntegrumInfraCrossCuttingIdentityAuthorizationSignOutMethod","NUMBER_5","NUMBER_6","NUMBER_7","ModelsQueriesQueryOperator","Contains","Equal","NotEqual","GreaterThen","GreaterThenOrEqual","LessThen","LessThenOrEqual","Between","StartsWith","EndsWith","NotContains","ModelsViewConfigsViewConfigFieldAggregate","NUMBER_1001","ModelsViewConfigsViewConfigFieldKind","NUMBER_8","NUMBER_9","NUMBER_10","NUMBER_11","NUMBER_12","NUMBER_13","NUMBER_20","NUMBER_21","ModelsViewConfigsViewConfigKind","NotificationType","NUMBER_1000","PrimaryFieldRuleType","NUMBER_15","NUMBER_16","NUMBER_17","NUMBER_18","NUMBER_22","NUMBER_23","NUMBER_26","NUMBER_31","NUMBER_32","NUMBER_33","NUMBER_34","NUMBER_35","NUMBER_40","PrimaryFieldType","PrimaryRoleType","NUMBER_64","NUMBER_128","NUMBER_256","PrimaryStageBehaviorType","TemplatesWorkflowWorkflowActionStepType","NUMBER_30","NUMBER_50","NUMBER_51","NUMBER_80","BASE_PATH","_angular_core__WEBPACK_IMPORTED_MODULE_0__","COLLECTION_FORMATS","ApiExtensionsModule","_api_document_service__WEBPACK_IMPORTED_MODULE_0__","_api_template_service__WEBPACK_IMPORTED_MODULE_1__","_api_reports_service__WEBPACK_IMPORTED_MODULE_2__","APIS_EXTENSIONS","_document_service__WEBPACK_IMPORTED_MODULE_0__","_template_service__WEBPACK_IMPORTED_MODULE_1__","_reports_service__WEBPACK_IMPORTED_MODULE_2__","formData","attachments","FormData","index","attachment","guid","file","filename","_core_api_document_service__WEBPACK_IMPORTED_MODULE_0__","_core_variables__WEBPACK_IMPORTED_MODULE_1__","_angular_common_http__WEBPACK_IMPORTED_MODULE_4__","_core_encoder__WEBPACK_IMPORTED_MODULE_0__","reportParam","_core_api_reports_service__WEBPACK_IMPORTED_MODULE_1__","_angular_core__WEBPACK_IMPORTED_MODULE_5__","_core_variables__WEBPACK_IMPORTED_MODULE_2__","response","entity","results","data","Cache","entities","_core_api_template_service__WEBPACK_IMPORTED_MODULE_0__","Attachment","_angular_core__WEBPACK_IMPORTED_MODULE_2__","_api_partner_service__WEBPACK_IMPORTED_MODULE_1__","_partner_service__WEBPACK_IMPORTED_MODULE_0__","PartnerService","partnerPartnerModel","CoreAddinModule","socialLinks","target","icon","NbSimpleRoleProvider","_nebular_security__WEBPACK_IMPORTED_MODULE_6__","CoreModule","_data_livemessage_service__WEBPACK_IMPORTED_MODULE_1__","_data__WEBPACK_IMPORTED_MODULE_4__","_utils_analytics_service__WEBPACK_IMPORTED_MODULE_0__","_data_title_service__WEBPACK_IMPORTED_MODULE_2__","_httplocale_interceptor__WEBPACK_IMPORTED_MODULE_3__","_utils__WEBPACK_IMPORTED_MODULE_5__","_angular_common__WEBPACK_IMPORTED_MODULE_9__","SERVICES","_users_service__WEBPACK_IMPORTED_MODULE_0__","_state_service__WEBPACK_IMPORTED_MODULE_1__","DataModule","_angular_common__WEBPACK_IMPORTED_MODULE_3__","LiveMessageService","localeService","_environments_environment__WEBPACK_IMPORTED_MODULE_1__","hubName","channelsNames","hubConnection","create","on","debugMode","console","log","m","onNotification","next","onMessages","onMessage","onSystemMessage","afterConnect","invoke","locale","concat","channelsToJoin","channelName","join","state","_microsoft_signalr__WEBPACK_IMPORTED_MODULE_0__","push","channelList","indexOf","splice","leave","leaveMany","stop","getToken","toPromise","withUrl","accessTokenFactory","build","start","NotificationsService","liveMessageService","notificationApiService","rxjs__WEBPACK_IMPORTED_MODULE_3__","connect","then","onNewNotification","_unread","asObservable","getNotifications","filter","unread","sort","a","b","date","guids","conditions","values","setNotificationsAsRead","onNotificationsChange","setNotificationsAsUnread","deleteNotifications","StateService","directionService","selected","rxjs__WEBPACK_IMPORTED_MODULE_0__","layouts","sidebars","onDirectionChange","pipe","alive","updateSidebarIcons","direction","getDirection","startSidebar","endSidebar","isLtr","_nebular_theme__WEBPACK_IMPORTED_MODULE_2__","startIconClass","endIconClass","layoutState$","sidebarState$","TitleService","_items","item","items","title","UserService","accountService","titleService","rxjs__WEBPACK_IMPORTED_MODULE_2__","isValid","getUserInfo","setTitle","_environments_environment__WEBPACK_IMPORTED_MODULE_0__","user","userName","userSubject","HttpLocaleInterceptor","i18NextService","request","language","clone","handle","_angular_core__WEBPACK_IMPORTED_MODULE_1__","angular_i18next__WEBPACK_IMPORTED_MODULE_2__","AnalyticsService","location","router","enabled","events","event","_angular_router__WEBPACK_IMPORTED_MODULE_1__","ga","hitType","page","path","eventName","ContentTypeService","mimeType","isTxt","isPDF","isWord","isExcel","isImage","LocaleService","scriptLoaderService","init","islocaleLoaded","window","ng","_a","common","_b","locales","localeLoaded","languageChangedSubscription","languageChanged","__awaiter","loadLocale","add","src","load","slice","GoogleMapsScripts","loaded","callback","listeners","ScriptLoaderService","Promise","resolve","reject","scriptInfoIndex","scripts","findIndex","scriptId","status","listener","getElementById","script","createElement","async","defer","scriptIEmode","ev","publish","readyState","onreadystatechange","onload","onerror","error","getElementsByTagName","appendChild","listiner","pop","promises","loadScript","all","s","s1","findScriptByName","Array","isArray","map","$event","_r30","ctx_r46","ctx_r6","FindDocumentComponent","localeId","documentService","templateService","dictionaryService","route","getTemplates","templates","fieldType","_angular_common__WEBPACK_IMPORTED_MODULE_4__","availableFields","rules","some","ruleType","rule34","parameters","JSON","parse","fieldTemplateShortName","fieldTemplate","innerField","innerFieldCopy","selectTemplate","getAvailableFields","findFields","chosenFields","findField","isDocumentsVisible","isFilterExpanded","documents","includes","newFields","toggleFindField","checked","end","dictionaryRule","dictId","dictionaryValues","getDictionaryValues","label","dictionary","f","isStart","isSearchVisible","isDocumentsLoading","getDocuments","toISOString","result","navigate","relativeTo","root","elem","parentElement","nodeName","generatingExcel","exportDocumentsAsXLSX","documentsIds","doc","columns","__webpack_require__","EXCEL_EXTENSION","FileSaver","saveAs","transform","Date","fieldValues","main","split","selectors","hostBindings","ctx","FooterComponent","decls","vars","consts","_angular_core__WEBPACK_IMPORTED_MODULE_9__","HeaderComponent","userService","analyticsService","sidebarService","getUser","showSettings","systemRoles","showUserMenu","getTemplate","permissions","roles","_c","showProfile","showTeam","showCompany","breadcrumbItems","i","trackEvent","getUserObject","getAvatarImageSrc","toggle","getTitle","_settings","_app_settings__WEBPACK_IMPORTED_MODULE_0__","menus","show","_settings__WEBPACK_IMPORTED_MODULE_1__","layout","showNotificationInducator","showSearchBar","ctx_r7","ctx_r9","ctx_r11","ctx_r13","ctx_r15","UserMenuComponent","menuPositions","showLogout","inputs","avatorImageSrc","outputs","profileClick","personListClick","companyInfoClick","settingsClick","logOutClick","LangSwitcherComponent","platformId","langs","i18NextServiceSubscrition","initialized","changeLanguage","unsubscribe","reload","_r3","_r9","ctx_r4","NotificationInducatorComponent","notificationsService","i18nextPipe","sanitizer","cd","command","setAllAsRead","notifications","unreadCount","deleteAll","unreadSubscription","unreadNotifactions","setActive","sortNotificationsData","detectChanges","onNewNotificationSubscription","content","bypassSecurityTrustHtml","setAsRead","inducator","nativeElement","classList","setTimeout","remove","viewQuery","Token","nameState","TokenState","View","valueState","hints","TokenHint","TokenType","TokenHintType","token_r2","SearchBoxComponent","templateMarks","searchId","Math","random","toString","substr","appendDefaultToken","defaultToken","_models_token__WEBPACK_IMPORTED_MODULE_0__","tokens","searchInput","typedKey","code","tryAddNewToken","searchDocuments","hideHints","selectionStart","normalTokens","t","count","enableEditTokenValue","showHints","templateToken","searchName","searchDescription","searchQuery","searchTemplateShortname","searchFields","fieldsTokens","settings","dataTable","typ","row","dataRow","obj","templateGuid","fieldArray","templateField","searchVisibility","resultsTableSettings","resultsTableSource","resultsTableVisibility","match","exec","p1","p2","p1_firstChar","charAt","p1_lastChar","p1_quotes","p2_firstChar","p2_lastChar","p2_quotes","part1Success","part2Success","substring","trim","cultureSpec","newToken","tokenIndex","tokenInEditMode","fetchHintsIntoToken","tokenValue","hint","tokenEditInputs","input","setNewTokenAsEdited","endEdit","preventDefault","stopPropagation","filterValue","hintType","generalTokens","labelShortname","localeCompare","selectedDocument","SimpleLayoutComponent","stateService","menuService","themeService","bpService","_app_settings__WEBPACK_IMPORTED_MODULE_1__","onLayoutState","onSidebarState","sidebar","isBp","getByName","menuClick$","onItemSelect","onMediaQueryChange","bpFrom","bpTo","width","collapse","navigateHome","ngContentSelectors","CapitalizePipe","toUpperCase","pure","NumberWithCommasPipe","useSeparators","Intl","NumberFormat","useGrouping","format","PluralPipe","pluralLabel","RoundPipe","round","TimingPipe","time","minutes","floor","seconds","initZero","IconSetService","iconName","iconSet","ThemesService","styleName","loadStyle","styleHref","linkElementId","linkItem","setAttribute","head","style","rel","href","WindowModeBlockScrollService","scrollService","viewportRuler","destroy$","complete","unblock$","container","scrollableContainerRef","children","onScrollableChange","withScrollValue","scrollable","shouldBlock","blockScroll","unblockScroll","canBeBlocked","previousScrollPosition","getViewportScrollPosition","backupStyles","overflowY","overflow","position","updateContentSizeAndPosition","blockEnabled","restoreStyles","scrollTo","left","top","getViewportSize","containerHeight","height","scrollHeight","getBoundingClientRect","getDimensions","clientWidth","previousContainerStyles","previousContentStyles","_angular_core__WEBPACK_IMPORTED_MODULE_8__","_nebular_theme__WEBPACK_IMPORTED_MODULE_9__","NB_MODULES","_nebular_security__WEBPACK_IMPORTED_MODULE_10__","_nebular_eva_icons__WEBPACK_IMPORTED_MODULE_11__","_angular_material_datepicker__WEBPACK_IMPORTED_MODULE_12__","_angular_material_core__WEBPACK_IMPORTED_MODULE_13__","PRIME_MODULES","primeng_badge__WEBPACK_IMPORTED_MODULE_14__","primeng_button__WEBPACK_IMPORTED_MODULE_15__","primeng_breadcrumb__WEBPACK_IMPORTED_MODULE_16__","primeng_menu__WEBPACK_IMPORTED_MODULE_17__","primeng_multiselect__WEBPACK_IMPORTED_MODULE_18__","primeng_overlaypanel__WEBPACK_IMPORTED_MODULE_19__","primeng_scrollpanel__WEBPACK_IMPORTED_MODULE_20__","COMPONENTS","_components__WEBPACK_IMPORTED_MODULE_0__","_components_find_document_find_document_component__WEBPACK_IMPORTED_MODULE_7__","_components_notification_inducator_notification_inducator_component__WEBPACK_IMPORTED_MODULE_8__","_layouts__WEBPACK_IMPORTED_MODULE_2__","_components_search_box_search_box_component__WEBPACK_IMPORTED_MODULE_4__","_components_header_userMenu_userMenu_component__WEBPACK_IMPORTED_MODULE_5__","PIPES","_pipes__WEBPACK_IMPORTED_MODULE_1__","ThemeModule","library","addIconPacks","_fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_21__","_fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_22__","_angular_core__WEBPACK_IMPORTED_MODULE_23__","_services_IconSetService__WEBPACK_IMPORTED_MODULE_6__","_services_window_mode_block_scroll_service__WEBPACK_IMPORTED_MODULE_3__","_angular_common__WEBPACK_IMPORTED_MODULE_25__","_fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_24__","_angular_router__WEBPACK_IMPORTED_MODULE_26__","_angular_forms__WEBPACK_IMPORTED_MODULE_27__","angular_i18next__WEBPACK_IMPORTED_MODULE_28__","declarations","exports","routes","loadChildren","PagesModule","AuthModule","AppRoutingModule","initialNavigation","relativeLinkResolution","AppComponent","iconLibraries","themesService","primengConfig","registerFontPack","packClass","iconClassPrefix","setTranslation","startsWith","contains","notContains","endsWith","equals","notEquals","noFilter","lt","lte","gt","gte","is","isNot","dateIs","dateIsNot","dateBefore","dateAfter","before","after","clear","apply","matchAll","matchAny","addRule","removeRule","accept","choose","upload","cancel","dayNames","dayNamesShort","dayNamesMin","monthNames","monthNamesShort","dateFormat","today","weekHeader","weak","medium","strong","passwordPrompt","emptyMessage","emptyFilterMessage","angular_i18next__WEBPACK_IMPORTED_MODULE_5__","GetRoles","rxjs__WEBPACK_IMPORTED_MODULE_22__","tokenGetter","res","options","echartsImport","AppModule","_fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_23__","_fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_24__","_angular_core__WEBPACK_IMPORTED_MODULE_25__","bootstrap","_app_component__WEBPACK_IMPORTED_MODULE_2__","_apiClient_core__WEBPACK_IMPORTED_MODULE_5__","_apiClient_extensions__WEBPACK_IMPORTED_MODULE_7__","_locale_i18nextConfig__WEBPACK_IMPORTED_MODULE_21__","_apiClient_partner__WEBPACK_IMPORTED_MODULE_6__","_auth_guard_service__WEBPACK_IMPORTED_MODULE_4__","_theme_services_themes_service__WEBPACK_IMPORTED_MODULE_17__","_pages_menu_service__WEBPACK_IMPORTED_MODULE_20__","_documents_customizedview_service__WEBPACK_IMPORTED_MODULE_15__","useValue","_angular_common__WEBPACK_IMPORTED_MODULE_27__","_nebular_security__WEBPACK_IMPORTED_MODULE_28__","getRole","_angular_common_http__WEBPACK_IMPORTED_MODULE_29__","useClass","_nebular_auth__WEBPACK_IMPORTED_MODULE_30__","multi","_core_httplocale_interceptor__WEBPACK_IMPORTED_MODULE_19__","req","_angular_material_core__WEBPACK_IMPORTED_MODULE_31__","_angular_material_moment_adapter__WEBPACK_IMPORTED_MODULE_32__","deps","useUtc","_angular_platform_browser__WEBPACK_IMPORTED_MODULE_33__","appId","_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_34__","primeng_table__WEBPACK_IMPORTED_MODULE_35__","_angular_material_datepicker__WEBPACK_IMPORTED_MODULE_36__","_app_routing_module__WEBPACK_IMPORTED_MODULE_3__","_nguniversal_common__WEBPACK_IMPORTED_MODULE_0__","angular_i18next__WEBPACK_IMPORTED_MODULE_37__","_nebular_theme__WEBPACK_IMPORTED_MODULE_38__","_nebular_eva_icons__WEBPACK_IMPORTED_MODULE_39__","_nebular_date_fns__WEBPACK_IMPORTED_MODULE_40__","strategies","_auth_AuthStrategy__WEBPACK_IMPORTED_MODULE_13__","baseEndpoint","logout","endpoint","_auth_auth_token__WEBPACK_IMPORTED_MODULE_16__","getter","_auth_config__WEBPACK_IMPORTED_MODULE_18__","forms","validation","invitationCode","required","minLength","maxLength","firstName","lastName","companyName","email","addressStreet","addressHouseNumber","addressPostalCode","addressCity","addressCountry","_auth_auth_module__WEBPACK_IMPORTED_MODULE_11__","angular_calendar__WEBPACK_IMPORTED_MODULE_41__","angular_calendar_date_adapters_date_fns__WEBPACK_IMPORTED_MODULE_12__","ngx_echarts__WEBPACK_IMPORTED_MODULE_42__","echarts","_theme_theme_module__WEBPACK_IMPORTED_MODULE_9__","_core_core_module__WEBPACK_IMPORTED_MODULE_8__","_core_addins_addin_module__WEBPACK_IMPORTED_MODULE_14__","_core_data_data_module__WEBPACK_IMPORTED_MODULE_10__","_fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_26__","colorSet","primary","lists","showGoToButton","showColumnsSelect","permittedProfiles","profiles","p","positions","personDetails","showRoleList","client","hasLogoClient","AuthGuard","isAuthenticated","authenticated","pUrl","parseUrl","returnUrl","queryParams","refreshToken","config","login","defaultMessages","defaultErrors","register","requestPass","resetPass","AuthStrategy","_nebular_auth__WEBPACK_IMPORTED_MODULE_0__","method","getOption","getActionEndpoint","loginUrl","requireValidToken","createFailResponse","createToken","handleResponseError","tokenKey","snapshot","authToken","localStorage","getItem","failWhenInvalidToken","setItem","getName","errors","_angular_common_http__WEBPACK_IMPORTED_MODULE_5__","message","_angular_core__WEBPACK_IMPORTED_MODULE_6__","NgxAuthComponent","features","component","_auth_component__WEBPACK_IMPORTED_MODULE_7__","_login_component__WEBPACK_IMPORTED_MODULE_2__","_register_component__WEBPACK_IMPORTED_MODULE_1__","_register_partner_component__WEBPACK_IMPORTED_MODULE_8__","_logout_component__WEBPACK_IMPORTED_MODULE_3__","_request_password_component__WEBPACK_IMPORTED_MODULE_5__","_reset_password_component__WEBPACK_IMPORTED_MODULE_6__","_AuthStrategy__WEBPACK_IMPORTED_MODULE_4__","_angular_common__WEBPACK_IMPORTED_MODULE_10__","_angular_forms__WEBPACK_IMPORTED_MODULE_11__","_angular_router__WEBPACK_IMPORTED_MODULE_12__","_nebular_theme__WEBPACK_IMPORTED_MODULE_13__","_nebular_auth__WEBPACK_IMPORTED_MODULE_14__","_theme_theme_module__WEBPACK_IMPORTED_MODULE_0__","angular_i18next__WEBPACK_IMPORTED_MODULE_15__","AuthToken","_r7","ctx_r1","NgxLoginComponent","service","OAuthCode","tryRefresh","OAuthProvider","tryOAuthLogin","showPassword","messages","submitted","authenticate","strategy","isSuccess","getMessages","getErrors","redirect","getRedirect","navigateByUrl","redirectDelay","provider","oauthRedirect","protocol","host","pathname","oauthUrl","OAuthLoginInProgress","oauthloginData","redirectUrl","OAuthLoginError","getResponse","_nebular_auth__WEBPACK_IMPORTED_MODULE_4__","NgxLogoutComponent","notificationService","livemessage","close","clearNotifications","_nebular_auth__WEBPACK_IMPORTED_MODULE_3__","ctx_r21","ctx_r23","ctx_r25","ctx_r29","ctx_r31","ctx_r35","BackendErrors","NgxRegisterPartnerComponent","partnerService","toastrService","terms","danger","$localize","duration","model","adminEmail","adminFirstname","adminSurname","tenantType","createPartner","_r1","_r5","_r11","_r13","_r15","_r17","ctx_r16","NgxRegisterComponent","backendErrors","NgxRequestPasswordComponent","_nebular_auth__WEBPACK_IMPORTED_MODULE_2__","NgxResetPasswordComponent","lazyModules","complaints","ComplaintsAddinModule","complaintsAmberline","ComplaintsAmberlineAddinModule","complaintsPolipack","ComplaintsPolipackAddinModule","contracts","ContractsAddinModule","hr","HrAddinModule","knowledgebase","KnowledgeBaseAddinModule","inspections","InspectionsAddinModule","inspectionsBiedronka","InspectionsBiedronkaAddinModule","system","SystemAddinModule","CustomizedViewService","_compiler","_injector","moduleName","getLazyLoadingModule","documentListConfig","installerService","getDocumentListConfig","getDetailsComponent","componentFactoryResolver","resolveComponentFactory","widgetKind","getWidget","viewShortName","listComponent","customizeListBehaviour","moduleShortName","moduleFactory","loader","moduleOrFactory","compileModuleAsync","lazyModuleInjector","parent","lazyModuleRef","loadNamespaces","addinModule","moduleType","angular_i18next__WEBPACK_IMPORTED_MODULE_1__","MenuService","reloadEvent","defaultSettings","environment","_angular_common_locales_pl__WEBPACK_IMPORTED_MODULE_3___default","_angular_common_locales_de__WEBPACK_IMPORTED_MODULE_4___default","i18nextOptions","supportedLngs","_environments_environment__WEBPACK_IMPORTED_MODULE_2__","fallbackLng","debug","returnEmptyString","ns","nsSeparator","backend","loadPath","i18nextOptionsDetection","lookupCookie","caches","cookieMinutes","appInit","i18next","i18n","use","i18next_http_backend__WEBPACK_IMPORTED_MODULE_0__","i18next_browser_languagedetector__WEBPACK_IMPORTED_MODULE_1__","lng","readCookie","detection","promise","nameEQ","ca","cookie","c","localeIdFactory","LOCALE_PROVIDER","angular_i18next__WEBPACK_IMPORTED_MODULE_7__","I18N_PROVIDERS","addEventListener","_angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__","bootstrapModule","_app_app_module__WEBPACK_IMPORTED_MODULE_0__","webpackContext"],"sources":["webpack:///$_lazy_route_resources|lazy|groupOptions:%20%7B%7D|namespace%20object","webpack:///src/app/@apiClient/core/api.module.ts","webpack:///src/app/@apiClient/core/api/account.service.ts","webpack:///src/app/@apiClient/core/api/api.ts","webpack:///src/app/@apiClient/core/api/auditingInspection.service.ts","webpack:///src/app/@apiClient/core/api/dictionary.service.ts","webpack:///src/app/@apiClient/core/api/document.service.ts","webpack:///src/app/@apiClient/core/api/documentActor.service.ts","webpack:///src/app/@apiClient/core/api/documentV2.service.ts","webpack:///src/app/@apiClient/core/api/documentViewConfigs.service.ts","webpack:///src/app/@apiClient/core/api/notification.service.ts","webpack:///src/app/@apiClient/core/api/reports.service.ts","webpack:///src/app/@apiClient/core/api/sourceTemplate.service.ts","webpack:///src/app/@apiClient/core/api/systemInfo.service.ts","webpack:///src/app/@apiClient/core/api/template.service.ts","webpack:///src/app/@apiClient/core/api/templateActor.service.ts","webpack:///src/app/@apiClient/core/api/templateField.service.ts","webpack:///src/app/@apiClient/core/api/templateFieldRule.service.ts","webpack:///src/app/@apiClient/core/api/templateFieldRuleCondition.service.ts","webpack:///src/app/@apiClient/core/api/templateForm.service.ts","webpack:///src/app/@apiClient/core/api/templateFormControl.service.ts","webpack:///src/app/@apiClient/core/api/templateRole.service.ts","webpack:///src/app/@apiClient/core/api/templateTimer.service.ts","webpack:///src/app/@apiClient/core/api/templateWorkflow.service.ts","webpack:///src/app/@apiClient/core/api/templateWorkflowAction.service.ts","webpack:///src/app/@apiClient/core/api/templateWorkflowActionCondition.service.ts","webpack:///src/app/@apiClient/core/api/templateWorkflowActionStep.service.ts","webpack:///src/app/@apiClient/core/api/templateWorkflowStage.service.ts","webpack:///src/app/@apiClient/core/api/templateWorkflowStageBehavior.service.ts","webpack:///src/app/@apiClient/core/api/tenant.service.ts","webpack:///src/app/@apiClient/core/api/tests.service.ts","webpack:///src/app/@apiClient/core/api/userMenu.service.ts","webpack:///src/app/@apiClient/core/configuration.ts","webpack:///src/app/@apiClient/core/encoder.ts","webpack:///src/app/@apiClient/core/model/apiResultOfBoolean.ts","webpack:///src/app/@apiClient/core/model/apiResultOfInt32.ts","webpack:///src/app/@apiClient/core/model/attachmentFileSourceType.ts","webpack:///src/app/@apiClient/core/model/attachmentsAttachmentViewModel.ts","webpack:///src/app/@apiClient/core/model/documentActorsDeleteModel.ts","webpack:///src/app/@apiClient/core/model/documentActorsDocumentActorViewModel.ts","webpack:///src/app/@apiClient/core/model/documentActorsRegisterModel.ts","webpack:///src/app/@apiClient/core/model/documentActorsUpdateModel.ts","webpack:///src/app/@apiClient/core/model/documentStagesDocumentStageSimpleViewModel.ts","webpack:///src/app/@apiClient/core/model/documentStagesDocumentTimerViewModel.ts","webpack:///src/app/@apiClient/core/model/documentsDictionaryItemViewModel.ts","webpack:///src/app/@apiClient/core/model/documentsDocumentActionViewModel.ts","webpack:///src/app/@apiClient/core/model/documentsDocumentChildViewModel.ts","webpack:///src/app/@apiClient/core/model/documentsDocumentValueChangeViewModel.ts","webpack:///src/app/@apiClient/core/model/documentsDocumentsFieldsAggregatesViewModel.ts","webpack:///src/app/@apiClient/core/model/entityStatus.ts","webpack:///src/app/@apiClient/core/model/exportExportConfigColumn.ts","webpack:///src/app/@apiClient/core/model/formControlsRegisterModel.ts","webpack:///src/app/@apiClient/core/model/formControlsUpdateModel.ts","webpack:///src/app/@apiClient/core/model/formsRegisterModel.ts","webpack:///src/app/@apiClient/core/model/formsUpdateModel.ts","webpack:///src/app/@apiClient/core/model/integrumInfraCrossCuttingIdentityAuthorizationSignOutMethod.ts","webpack:///src/app/@apiClient/core/model/licenceInfoViewModel.ts","webpack:///src/app/@apiClient/core/model/loginViewModel.ts","webpack:///src/app/@apiClient/core/model/menuApplicationMenuItemViewModel.ts","webpack:///src/app/@apiClient/core/model/modelsQueriesQueryOperator.ts","webpack:///src/app/@apiClient/core/model/modelsQueriesQueryOrderCondition.ts","webpack:///src/app/@apiClient/core/model/modelsViewConfigsViewConfigFieldAggregate.ts","webpack:///src/app/@apiClient/core/model/modelsViewConfigsViewConfigFieldKind.ts","webpack:///src/app/@apiClient/core/model/modelsViewConfigsViewConfigKind.ts","webpack:///src/app/@apiClient/core/model/notificationType.ts","webpack:///src/app/@apiClient/core/model/notificationsNotificationViewModel.ts","webpack:///src/app/@apiClient/core/model/notificationsRegisterModel.ts","webpack:///src/app/@apiClient/core/model/notificationsUpdateModel.ts","webpack:///src/app/@apiClient/core/model/primaryFieldRuleType.ts","webpack:///src/app/@apiClient/core/model/primaryFieldType.ts","webpack:///src/app/@apiClient/core/model/primaryRoleType.ts","webpack:///src/app/@apiClient/core/model/primaryStageBehaviorType.ts","webpack:///src/app/@apiClient/core/model/registerViewModel.ts","webpack:///src/app/@apiClient/core/model/reportsDashboardWidgetParameterValueViewModel.ts","webpack:///src/app/@apiClient/core/model/reportsItemColumnViewModel.ts","webpack:///src/app/@apiClient/core/model/reportsItemSeriesViewModel.ts","webpack:///src/app/@apiClient/core/model/resetPasswordRequestModel.ts","webpack:///src/app/@apiClient/core/model/resetPasswordViewModel.ts","webpack:///src/app/@apiClient/core/model/revokeLoginViewModel.ts","webpack:///src/app/@apiClient/core/model/rolesRegisterModel.ts","webpack:///src/app/@apiClient/core/model/rolesUpdateModel.ts","webpack:///src/app/@apiClient/core/model/structureFieldsStructureFieldViewModel.ts","webpack:///src/app/@apiClient/core/model/templatesDeleteModel.ts","webpack:///src/app/@apiClient/core/model/templatesRegisterActorModel.ts","webpack:///src/app/@apiClient/core/model/templatesRegisterModel.ts","webpack:///src/app/@apiClient/core/model/templatesTemplateNameCases.ts","webpack:///src/app/@apiClient/core/model/templatesTemplatePermissionViewModel.ts","webpack:///src/app/@apiClient/core/model/templatesTemplateSimpleViewModel.ts","webpack:///src/app/@apiClient/core/model/templatesUpdateModel.ts","webpack:///src/app/@apiClient/core/model/templatesWorkflowWorkflowActionStepType.ts","webpack:///src/app/@apiClient/core/model/tenantsRegisterModel.ts","webpack:///src/app/@apiClient/core/model/tenantsUpdateModel.ts","webpack:///src/app/@apiClient/core/model/timeSpan.ts","webpack:///src/app/@apiClient/core/model/workflowActionConditionsRegisterModel.ts","webpack:///src/app/@apiClient/core/model/workflowActionConditionsUpdateModel.ts","webpack:///src/app/@apiClient/core/model/workflowActionConditionsWorkflowActionConditionViewModel.ts","webpack:///src/app/@apiClient/core/model/workflowActionsRegisterModel.ts","webpack:///src/app/@apiClient/core/model/workflowActionsUpdateModel.ts","webpack:///src/app/@apiClient/core/model/workflowActionsWorkflowActionStepModel.ts","webpack:///src/app/@apiClient/core/model/workflowStagesRegisterModel.ts","webpack:///src/app/@apiClient/core/model/workflowStagesUpdateModel.ts","webpack:///src/app/@apiClient/core/model/workflowsRegisterModel.ts","webpack:///src/app/@apiClient/core/model/workflowsUpdateModel.ts","webpack:///src/app/@apiClient/core/variables.ts","webpack:///src/app/@apiClient/extensions/api.module.ts","webpack:///src/app/@apiClient/extensions/api/api.ts","webpack:///src/app/@apiClient/extensions/api/document.service.ts","webpack:///src/app/@apiClient/extensions/api/reports.service.ts","webpack:///src/app/@apiClient/extensions/api/template.service.ts","webpack:///src/app/@apiClient/extensions/model/attachment.ts","webpack:///src/app/@apiClient/partner/api.module.ts","webpack:///src/app/@apiClient/partner/api/api.ts","webpack:///src/app/@apiClient/partner/api/partner.service.ts","webpack:///src/app/@apiClient/partner/configuration.ts","webpack:///src/app/@apiClient/partner/model/partnerPartnerModel.ts","webpack:///src/app/@apiClient/partner/variables.ts","webpack:///src/app/@core/addins/addin.module.ts","webpack:///src/app/@core/core.module.ts","webpack:///src/app/@core/data/data.module.ts","webpack:///src/app/@core/data/livemessage.service.ts","webpack:///src/app/@core/data/notifications.service.ts","webpack:///src/app/@core/data/state.service.ts","webpack:///src/app/@core/data/title.service.ts","webpack:///src/app/@core/data/users.service.ts","webpack:///src/app/@core/httplocale.interceptor.ts","webpack:///src/app/@core/utils/analytics.service.ts","webpack:///src/app/@core/utils/contentType.service.ts","webpack:///src/app/@core/utils/locale.service.ts","webpack:///src/app/@core/utils/scriptloader.service.ts","webpack:///src/app/@theme/components/find-document/find-document.component.html","webpack:///src/app/@theme/components/find-document/find-document.component.ts","webpack:///src/app/@theme/components/footer/footer.component.ts","webpack:///src/app/@theme/components/header/header.component.html","webpack:///src/app/@theme/components/header/header.component.ts","webpack:///src/app/@theme/components/header/userMenu/userMenu.component.html","webpack:///src/app/@theme/components/header/userMenu/userMenu.component.ts","webpack:///src/app/@theme/components/langswitcher/langswitcher.component.ts","webpack:///src/app/@theme/components/notification-inducator/notification-inducator.component.html","webpack:///src/app/@theme/components/notification-inducator/notification-inducator.component.ts","webpack:///src/app/@theme/components/search-box/models/token.ts","webpack:///src/app/@theme/components/search-box/search-box.component.html","webpack:///src/app/@theme/components/search-box/search-box.component.ts","webpack:///src/app/@theme/layouts/simple/simple.layout.ts","webpack:///src/app/@theme/pipes/capitalize.pipe.ts","webpack:///src/app/@theme/pipes/number-with-commas.pipe.ts","webpack:///src/app/@theme/pipes/plural.pipe.ts","webpack:///src/app/@theme/pipes/round.pipe.ts","webpack:///src/app/@theme/pipes/timing.pipe.ts","webpack:///src/app/@theme/services/IconSetService.ts","webpack:///src/app/@theme/services/themes.service.ts","webpack:///src/app/@theme/services/window-mode-block-scroll.service.ts","webpack:///src/app/@theme/theme.module.ts","webpack:///src/app/app-routing.module.ts","webpack:///src/app/app.component.ts","webpack:///src/app/app.module.ts","webpack:///src-amberline.reklamacja/app/app.settings.ts","webpack:///src/app/auth-guard.service.ts","webpack:///src/app/auth.config.ts","webpack:///src/app/auth/AuthStrategy.ts","webpack:///src/app/auth/auth.component.ts","webpack:///src/app/auth/auth.module.ts","webpack:///src/app/auth/auth.token.ts","webpack:///src/app/auth/login.component.html","webpack:///src/app/auth/login.component.ts","webpack:///src/app/auth/logout.component.ts","webpack:///src/app/auth/logout.component.html","webpack:///src/app/auth/register-partner.component.html","webpack:///src/app/auth/register-partner.component.ts","webpack:///src/app/auth/register.component.html","webpack:///src/app/auth/register.component.ts","webpack:///src/app/auth/request-password.component.html","webpack:///src/app/auth/request-password.component.ts","webpack:///src/app/auth/reset-password.component.html","webpack:///src/app/auth/reset-password.component.ts","webpack:///src/app/documents/customizedview.service.ts","webpack:///src/app/pages/menu.service.ts","webpack:///src/app/settings.ts","webpack:///src-amberline.reklamacja/environments/environment.amberline.prod.ts","webpack:///src/locale/i18nextConfig.ts","webpack:///src/main.ts","webpack:///node_modules/moment/locale|sync|/^/.*$"],"sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 98255;\nmodule.exports = webpackEmptyAsyncContext;","import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';\r\nimport { Configuration } from './configuration';\r\nimport { HttpClient } from '@angular/common/http';\r\n\r\n\r\nimport { AccountService } from './api/account.service';\r\nimport { AuditingInspectionService } from './api/auditingInspection.service';\r\nimport { DictionaryService } from './api/dictionary.service';\r\nimport { DocumentService } from './api/document.service';\r\nimport { DocumentServiceV2 } from './api/documentV2.service';\r\nimport { DocumentActorService } from './api/documentActor.service';\r\nimport { DocumentViewConfigsService } from './api/documentViewConfigs.service';\r\nimport { NotificationService } from './api/notification.service';\r\nimport { ReportsService } from './api/reports.service';\r\nimport { SourceTemplateService } from './api/sourceTemplate.service';\r\nimport { SystemInfoService } from './api/systemInfo.service';\r\nimport { TemplateService } from './api/template.service';\r\nimport { TemplateActorService } from './api/templateActor.service';\r\nimport { TemplateFieldService } from './api/templateField.service';\r\nimport { TemplateFieldRuleService } from './api/templateFieldRule.service';\r\nimport { TemplateFieldRuleConditionService } from './api/templateFieldRuleCondition.service';\r\nimport { TemplateFormService } from './api/templateForm.service';\r\nimport { TemplateFormControlService } from './api/templateFormControl.service';\r\nimport { TemplateRoleService } from './api/templateRole.service';\r\nimport { TemplateTimerService } from './api/templateTimer.service';\r\nimport { TemplateWorkflowService } from './api/templateWorkflow.service';\r\nimport { TemplateWorkflowActionService } from './api/templateWorkflowAction.service';\r\nimport { TemplateWorkflowActionConditionService } from './api/templateWorkflowActionCondition.service';\r\nimport { TemplateWorkflowActionStepService } from './api/templateWorkflowActionStep.service';\r\nimport { TemplateWorkflowStageService } from './api/templateWorkflowStage.service';\r\nimport { TemplateWorkflowStageBehaviorService } from './api/templateWorkflowStageBehavior.service';\r\nimport { TenantService } from './api/tenant.service';\r\nimport { TestsService } from './api/tests.service';\r\nimport { UserMenuService } from './api/userMenu.service';\r\n\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [],\r\n exports: [],\r\n providers: [\r\n AccountService,\r\n AuditingInspectionService,\r\n DictionaryService,\r\n DocumentService,\r\n DocumentServiceV2,\r\n DocumentViewConfigsService,\r\n DocumentActorService,\r\n NotificationService,\r\n ReportsService,\r\n SourceTemplateService,\r\n SystemInfoService,\r\n TemplateService,\r\n TemplateActorService,\r\n TemplateFieldService,\r\n TemplateFieldRuleService,\r\n TemplateFieldRuleConditionService,\r\n TemplateFormService,\r\n TemplateFormControlService,\r\n TemplateRoleService,\r\n TemplateTimerService,\r\n TemplateWorkflowService,\r\n TemplateWorkflowActionService,\r\n TemplateWorkflowActionConditionService,\r\n TemplateWorkflowActionStepService,\r\n TemplateWorkflowStageService,\r\n TemplateWorkflowStageBehaviorService,\r\n TenantService,\r\n TestsService,\r\n UserMenuService ]\r\n})\r\nexport class ApiModule {\r\n public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders {\r\n return {\r\n ngModule: ApiModule,\r\n providers: [ { provide: Configuration, useFactory: configurationFactory } ]\r\n }\r\n }\r\n\r\n constructor( @Optional() @SkipSelf() parentModule: ApiModule,\r\n @Optional() http: HttpClient) {\r\n if (parentModule) {\r\n throw new Error('ApiModule is already loaded. Import in your base AppModule only.');\r\n }\r\n if (!http) {\r\n throw new Error('You need to import the HttpClientModule in your AppModule! \\n' +\r\n 'See also https://github.com/angular/angular/issues/20575');\r\n }\r\n }\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { LoginViewModel } from '../model/loginViewModel';\r\nimport { LogoutViewModel } from '../model/logoutViewModel';\r\nimport { RegisterViewModel } from '../model/registerViewModel';\r\nimport { ResetPasswordRequestModel } from '../model/resetPasswordRequestModel';\r\nimport { ResetPasswordViewModel } from '../model/resetPasswordViewModel';\r\nimport { RevokeLoginViewModel } from '../model/revokeLoginViewModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class AccountService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getUserInfo(observe?: 'body', reportProgress?: boolean): Observable;\r\n public getUserInfo(observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getUserInfo(observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getUserInfo(observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/account/info`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param loginViewModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public login(loginViewModel?: LoginViewModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public login(loginViewModel?: LoginViewModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public login(loginViewModel?: LoginViewModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public login(loginViewModel?: LoginViewModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/account/login`,\r\n loginViewModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param logoutViewModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public logout(logoutViewModel?: LogoutViewModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public logout(logoutViewModel?: LogoutViewModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public logout(logoutViewModel?: LogoutViewModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public logout(logoutViewModel?: LogoutViewModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/account/logout`,\r\n logoutViewModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param registerViewModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public register(registerViewModel?: RegisterViewModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public register(registerViewModel?: RegisterViewModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public register(registerViewModel?: RegisterViewModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public register(registerViewModel?: RegisterViewModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/account/register`,\r\n registerViewModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param resetPasswordViewModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public resetPassword(resetPasswordViewModel?: ResetPasswordViewModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public resetPassword(resetPasswordViewModel?: ResetPasswordViewModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public resetPassword(resetPasswordViewModel?: ResetPasswordViewModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public resetPassword(resetPasswordViewModel?: ResetPasswordViewModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/account/reset-pass`,\r\n resetPasswordViewModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param revokeLoginViewModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public revokeToken(revokeLoginViewModel?: RevokeLoginViewModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public revokeToken(revokeLoginViewModel?: RevokeLoginViewModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public revokeToken(revokeLoginViewModel?: RevokeLoginViewModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public revokeToken(revokeLoginViewModel?: RevokeLoginViewModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/account/revoke`,\r\n revokeLoginViewModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param resetPasswordRequestModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public sendRequestForResetPassword(resetPasswordRequestModel?: ResetPasswordRequestModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public sendRequestForResetPassword(resetPasswordRequestModel?: ResetPasswordRequestModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public sendRequestForResetPassword(resetPasswordRequestModel?: ResetPasswordRequestModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public sendRequestForResetPassword(resetPasswordRequestModel?: ResetPasswordRequestModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/account/request-pass`,\r\n resetPasswordRequestModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","export * from './account.service';\r\nimport { AccountService } from './account.service';\r\nexport * from './auditingInspection.service';\r\nimport { AuditingInspectionService } from './auditingInspection.service';\r\nexport * from './dictionary.service';\r\nimport { DictionaryService } from './dictionary.service';\r\nexport * from './document.service';\r\nimport { DocumentService } from './document.service';\r\nexport * from './documentV2.service';\r\nimport { DocumentServiceV2 } from './documentV2.service';\r\nexport * from './documentViewConfigs.service';\r\nimport { DocumentViewConfigsService } from './documentViewConfigs.service';\r\nexport * from './documentActor.service';\r\nimport { DocumentActorService } from './documentActor.service';\r\nexport * from './notification.service';\r\nimport { NotificationService } from './notification.service';\r\nexport * from './reports.service';\r\nimport { ReportsService } from './reports.service';\r\nexport * from './sourceTemplate.service';\r\nimport { SourceTemplateService } from './sourceTemplate.service';\r\nexport * from './systemInfo.service';\r\nimport { SystemInfoService } from './systemInfo.service';\r\nexport * from './template.service';\r\nimport { TemplateService } from './template.service';\r\nexport * from './templateActor.service';\r\nimport { TemplateActorService } from './templateActor.service';\r\nexport * from './templateField.service';\r\nimport { TemplateFieldService } from './templateField.service';\r\nexport * from './templateFieldRule.service';\r\nimport { TemplateFieldRuleService } from './templateFieldRule.service';\r\nexport * from './templateFieldRuleCondition.service';\r\nimport { TemplateFieldRuleConditionService } from './templateFieldRuleCondition.service';\r\nexport * from './templateForm.service';\r\nimport { TemplateFormService } from './templateForm.service';\r\nexport * from './templateFormControl.service';\r\nimport { TemplateFormControlService } from './templateFormControl.service';\r\nexport * from './templateRole.service';\r\nimport { TemplateRoleService } from './templateRole.service';\r\nexport * from './templateTimer.service';\r\nimport { TemplateTimerService } from './templateTimer.service';\r\nexport * from './templateWorkflow.service';\r\nimport { TemplateWorkflowService } from './templateWorkflow.service';\r\nexport * from './templateWorkflowAction.service';\r\nimport { TemplateWorkflowActionService } from './templateWorkflowAction.service';\r\nexport * from './templateWorkflowActionCondition.service';\r\nimport { TemplateWorkflowActionConditionService } from './templateWorkflowActionCondition.service';\r\nexport * from './templateWorkflowActionStep.service';\r\nimport { TemplateWorkflowActionStepService } from './templateWorkflowActionStep.service';\r\nexport * from './templateWorkflowStage.service';\r\nimport { TemplateWorkflowStageService } from './templateWorkflowStage.service';\r\nexport * from './templateWorkflowStageBehavior.service';\r\nimport { TemplateWorkflowStageBehaviorService } from './templateWorkflowStageBehavior.service';\r\nexport * from './tenant.service';\r\nimport { TenantService } from './tenant.service';\r\nexport * from './tests.service';\r\nimport { TestsService } from './tests.service';\r\nexport * from './userMenu.service';\r\nimport { UserMenuService } from './userMenu.service';\r\nexport const APIS = [AccountService, DictionaryService, DocumentService, DocumentServiceV2, DocumentViewConfigsService, DocumentActorService, NotificationService, ReportsService, SourceTemplateService, SystemInfoService, TemplateService, TemplateActorService, TemplateFieldService, TemplateFieldRuleService, TemplateFieldRuleConditionService, TemplateFormService, TemplateFormControlService, TemplateRoleService, TemplateTimerService, TemplateWorkflowService, TemplateWorkflowActionService, TemplateWorkflowActionConditionService, TemplateWorkflowActionStepService, TemplateWorkflowStageService, TemplateWorkflowStageBehaviorService, TestsService, UserMenuService];\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class AuditingInspectionService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param teamtag \r\n * @param imgQuality \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getPrintout(id: string, teamtag: string, imgQuality?: number, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getPrintout(id: string, teamtag: string, imgQuality?: number, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getPrintout(id: string, teamtag: string, imgQuality?: number, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getPrintout(id: string, teamtag: string, imgQuality?: number, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling getPrintout.');\r\n }\r\n if (teamtag === null || teamtag === undefined) {\r\n throw new Error('Required parameter teamtag was null or undefined when calling getPrintout.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (imgQuality !== undefined) {\r\n queryParameters = queryParameters.set('imgQuality', imgQuality);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/pdf'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/auditingInspection/${encodeURIComponent(String(id))}/printout/${encodeURIComponent(String(teamtag))}`,\r\n {\r\n params: queryParameters,\r\n responseType: \"blob\",\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param teamtag \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getPrintoutPreview(id: string, teamtag: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getPrintoutPreview(id: string, teamtag: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getPrintoutPreview(id: string, teamtag: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getPrintoutPreview(id: string, teamtag: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling getPrintoutPreview.');\r\n }\r\n if (teamtag === null || teamtag === undefined) {\r\n throw new Error('Required parameter teamtag was null or undefined when calling getPrintoutPreview.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/auditingInspection/${encodeURIComponent(String(id))}/printoutpreview/${encodeURIComponent(String(teamtag))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfDocumentsDictionaryItemViewModel } from '../model/apiResultOfDocumentsDictionaryItemViewModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class DictionaryService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param dictionaryGuid \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getDictionaryValues(dictionaryGuid?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getDictionaryValues(dictionaryGuid?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getDictionaryValues(dictionaryGuid?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getDictionaryValues(dictionaryGuid?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (dictionaryGuid !== undefined) {\r\n queryParameters = queryParameters.set('dictionaryGuid', dictionaryGuid);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Dictionary`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfDocumentsDocumentModel } from '../model/apiResultOfDocumentsDocumentModel';\r\nimport { ApiResultOfDocumentsDocumentViewModel } from '../model/apiResultOfDocumentsDocumentViewModel';\r\nimport { ApiResultOfInt32 } from '../model/apiResultOfInt32';\r\nimport { ApiResultsOfAttachmentFile } from '../model/apiResultsOfAttachmentFile';\r\nimport { ApiResultsOfDocumentsDocumentValueChangeViewModel } from '../model/apiResultsOfDocumentsDocumentValueChangeViewModel';\r\nimport { ApiResultsOfDocumentsDocumentViewModel } from '../model/apiResultsOfDocumentsDocumentViewModel';\r\nimport { DocumentsDocumentModel } from '../model/documentsDocumentModel';\r\nimport { ExportExportConfig } from '../model/exportExportConfig';\r\nimport { ExportExportConfigColumn } from '../model/exportExportConfigColumn';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\nimport { IntegrumWebApiControllersDocumentsXlsxByIds } from '../model/integrumWebApiControllersDocumentsXlsxByIds';\r\nimport { DocumentsDocumentUpdateManyModel } from '../model/documentsDocumentUpdateManyModel';\r\nimport { ApiResultOfDocumentsDocumentUpdateManyModel } from '../model/apiResultOfDocumentsDocumentUpdateManyModel';\r\nimport { HashTable } from '../../../@core/data/HashTable';\r\n\r\n\r\n@Injectable()\r\nexport class DocumentService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param documentId \r\n * @param actionId \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public acceptDocument(documentId: string, actionId: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public acceptDocument(documentId: string, actionId: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public acceptDocument(documentId: string, actionId: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public acceptDocument(documentId: string, actionId: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (documentId === null || documentId === undefined) {\r\n throw new Error('Required parameter documentId was null or undefined when calling acceptDocument.');\r\n }\r\n if (actionId === null || actionId === undefined) {\r\n throw new Error('Required parameter actionId was null or undefined when calling acceptDocument.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(documentId))}/PerformAction/${encodeURIComponent(String(actionId))}`,\r\n null,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param fieldShortName \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addAttachment(id: string, fieldShortName: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addAttachment(id: string, fieldShortName: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addAttachment(id: string, fieldShortName: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addAttachment(id: string, fieldShortName: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling addAttachment.');\r\n }\r\n if (fieldShortName === null || fieldShortName === undefined) {\r\n throw new Error('Required parameter fieldShortName was null or undefined when calling addAttachment.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(id))}/attachment/${encodeURIComponent(String(fieldShortName))}`,\r\n null,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param document \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addBasedOnDocument(document: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addBasedOnDocument(document: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addBasedOnDocument(document: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addBasedOnDocument(document: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (document === null || document === undefined) {\r\n throw new Error('Required parameter document was null or undefined when calling addBasedOnDocument.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/basedon/${encodeURIComponent(String(document))}`,\r\n null,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param documentsDocumentModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addDocument(template: string, documentsDocumentModel?: DocumentsDocumentModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addDocument(template: string, documentsDocumentModel?: DocumentsDocumentModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addDocument(template: string, documentsDocumentModel?: DocumentsDocumentModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addDocument(template: string, documentsDocumentModel?: DocumentsDocumentModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addDocument.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'multipart/form-data'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(template))}`,\r\n documentsDocumentModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param document \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteDocument(template: string, document: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteDocument(template: string, document: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteDocument(template: string, document: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteDocument(template: string, document: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteDocument.');\r\n }\r\n if (document === null || document === undefined) {\r\n throw new Error('Required parameter document was null or undefined when calling deleteDocument.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(template))}/${encodeURIComponent(String(document))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param requestBody \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteManyDocuments(template: string, requestBody?: Array, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteManyDocuments(template: string, requestBody?: Array, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteManyDocuments(template: string, requestBody?: Array, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteManyDocuments(template: string, requestBody?: Array, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteManyDocuments.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(template))}/delete-many`,\r\n requestBody,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param attachmentId \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public downloadAttachment(id: string, attachmentId: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public downloadAttachment(id: string, attachmentId: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public downloadAttachment(id: string, attachmentId: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public downloadAttachment(id: string, attachmentId: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling downloadAttachment.');\r\n }\r\n if (attachmentId === null || attachmentId === undefined) {\r\n throw new Error('Required parameter attachmentId was null or undefined when calling downloadAttachment.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(id))}/attachment/${encodeURIComponent(String(attachmentId))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param schema \r\n * @param exportExportConfig \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public exportDocumentsAsXLSX(schema?: string, exportExportConfig?: ExportExportConfig, observe?: 'body', reportProgress?: boolean): Observable;\r\n public exportDocumentsAsXLSX(schema?: string, exportExportConfig?: ExportExportConfig, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public exportDocumentsAsXLSX(schema?: string, exportExportConfig?: ExportExportConfig, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public exportDocumentsAsXLSX(schema?: string, exportExportConfig?: ExportExportConfig, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('schema', schema);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/export/xlsx`,\r\n exportExportConfig,\r\n {\r\n params: queryParameters,\r\n responseType: \"blob\",\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param attachmentId \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getAttachment(id: string, attachmentId: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getAttachment(id: string, attachmentId: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getAttachment(id: string, attachmentId: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getAttachment(id: string, attachmentId: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling getAttachment.');\r\n }\r\n if (attachmentId === null || attachmentId === undefined) {\r\n throw new Error('Required parameter attachmentId was null or undefined when calling getAttachment.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(id))}/download/${encodeURIComponent(String(attachmentId))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param templateShortName \r\n * @param schema \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getDocument(id: string, templateShortName?: string, schema?: string, pendingFieldValues?: HashTable, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getDocument(id: string, templateShortName?: string, schema?: string, pendingFieldValues?: HashTable, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getDocument(id: string, templateShortName?: string, schema?: string, pendingFieldValues?: HashTable, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getDocument(id: string, templateShortName?: string, schema?: string, pendingFieldValues?: HashTable, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling getDocument.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (templateShortName !== undefined) {\r\n queryParameters = queryParameters.set('templateShortName', templateShortName);\r\n }\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('schema', schema);\r\n }\r\n\r\n for (const key in pendingFieldValues) {\r\n if (Object.prototype.hasOwnProperty.call(pendingFieldValues, key)) {\r\n const value = pendingFieldValues[key];\r\n queryParameters = queryParameters.set(key, value);\r\n }\r\n }\r\n \r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(id))}`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param name \r\n * @param query \r\n * @param shortName \r\n * @param description \r\n * @param fields ShortName=Value&ShortName2=Value2; ie. model=911\r\n * @param pageSize \r\n * @param pageNumber \r\n * @param personId \r\n * @param tenantId \r\n * @param tenantShortName \r\n * @param schema \r\n * @param order \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getDocuments(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: string, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getDocuments(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: string, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getDocuments(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: string, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getDocuments(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: string, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('Id', id);\r\n }\r\n if (name !== undefined) {\r\n queryParameters = queryParameters.set('Name', name);\r\n }\r\n if (query !== undefined) {\r\n queryParameters = queryParameters.set('Query', query);\r\n }\r\n if (shortName !== undefined) {\r\n queryParameters = queryParameters.set('ShortName', shortName);\r\n }\r\n if (description !== undefined) {\r\n queryParameters = queryParameters.set('Description', description);\r\n }\r\n if (fields !== undefined) {\r\n queryParameters = queryParameters.set('Fields', fields);\r\n }\r\n if (pageSize !== undefined) {\r\n queryParameters = queryParameters.set('PageSize', pageSize);\r\n }\r\n if (pageNumber !== undefined) {\r\n queryParameters = queryParameters.set('PageNumber', pageNumber);\r\n }\r\n if (tenantShortName !== undefined) {\r\n queryParameters = queryParameters.set('TenantShortName', tenantShortName);\r\n }\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('Schema', schema);\r\n }\r\n if (order !== undefined) {\r\n queryParameters = queryParameters.set('Order', order);\r\n }\r\n if (personId !== undefined) {\r\n queryParameters = queryParameters.set('PersonId', personId);\r\n }\r\n if (tenantId !== undefined) {\r\n queryParameters = queryParameters.set('TenantId', tenantId);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Documents`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param name \r\n * @param query \r\n * @param shortName \r\n * @param description \r\n * @param fields ShortName=Value&ShortName2=Value2; ie. model=911\r\n * @param pageSize \r\n * @param pageNumber \r\n * @param tenantShortName \r\n * @param schema \r\n * @param order \r\n * @param personId \r\n * @param tenantId \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getDocumentsCount(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, tenantShortName?: string, schema?: string, order?: string, personId?: string, tenantId?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getDocumentsCount(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, tenantShortName?: string, schema?: string, order?: string, personId?: string, tenantId?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getDocumentsCount(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, tenantShortName?: string, schema?: string, order?: string, personId?: string, tenantId?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getDocumentsCount(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, tenantShortName?: string, schema?: string, order?: string, personId?: string, tenantId?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('Id', id);\r\n }\r\n if (name !== undefined) {\r\n queryParameters = queryParameters.set('Name', name);\r\n }\r\n if (query !== undefined) {\r\n queryParameters = queryParameters.set('Query', query);\r\n }\r\n if (shortName !== undefined) {\r\n queryParameters = queryParameters.set('ShortName', shortName);\r\n }\r\n if (description !== undefined) {\r\n queryParameters = queryParameters.set('Description', description);\r\n }\r\n if (fields !== undefined) {\r\n queryParameters = queryParameters.set('Fields', fields);\r\n }\r\n if (pageSize !== undefined) {\r\n queryParameters = queryParameters.set('PageSize', pageSize);\r\n }\r\n if (pageNumber !== undefined) {\r\n queryParameters = queryParameters.set('PageNumber', pageNumber);\r\n }\r\n if (tenantShortName !== undefined) {\r\n queryParameters = queryParameters.set('TenantShortName', tenantShortName);\r\n }\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('Schema', schema);\r\n }\r\n if (order !== undefined) {\r\n queryParameters = queryParameters.set('Order', order);\r\n }\r\n if (personId !== undefined) {\r\n queryParameters = queryParameters.set('PersonId', personId);\r\n }\r\n if (tenantId !== undefined) {\r\n queryParameters = queryParameters.set('TenantId', tenantId);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Documents/count`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param name \r\n * @param query \r\n * @param shortName \r\n * @param description \r\n * @param fields ShortName=Value&ShortName2=Value2; ie. model=911\r\n * @param pageSize \r\n * @param pageNumber \r\n * @param tenantShortName \r\n * @param schema \r\n * @param order \r\n * @param personId \r\n * @param tenantId \r\n * @param integrumInfraDataPersistenceModelsReportColumn \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getDocumentsXLSX(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, tenantShortName?: string, schema?: string, order?: string, personId?: string, tenantId?: string, integrumInfraDataPersistenceModelsReportColumn?: Array<{name:string;shortName:string;fieldType:number}>, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getDocumentsXLSX(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, tenantShortName?: string, schema?: string, order?: string, personId?: string, tenantId?: string, integrumInfraDataPersistenceModelsReportColumn?: Array<{name:string;shortName:string;fieldType:number}>, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getDocumentsXLSX(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, tenantShortName?: string, schema?: string, order?: string, personId?: string, tenantId?: string, integrumInfraDataPersistenceModelsReportColumn?: Array<{name:string;shortName:string;fieldType:number}>, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getDocumentsXLSX(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, tenantShortName?: string, schema?: string, order?: string, personId?: string, tenantId?: string, integrumInfraDataPersistenceModelsReportColumn?: Array<{name:string;shortName:string;fieldType:number}>, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('Id', id);\r\n }\r\n if (name !== undefined) {\r\n queryParameters = queryParameters.set('Name', name);\r\n }\r\n if (query !== undefined) {\r\n queryParameters = queryParameters.set('Query', query);\r\n }\r\n if (shortName !== undefined) {\r\n queryParameters = queryParameters.set('ShortName', shortName);\r\n }\r\n if (description !== undefined) {\r\n queryParameters = queryParameters.set('Description', description);\r\n }\r\n if (fields) {\r\n fields.forEach((element) => {\r\n queryParameters = queryParameters.append('fields', element);\r\n })\r\n }\r\n if (pageSize !== undefined) {\r\n queryParameters = queryParameters.set('PageSize', pageSize);\r\n }\r\n if (pageNumber !== undefined) {\r\n queryParameters = queryParameters.set('PageNumber', pageNumber);\r\n }\r\n if (tenantShortName !== undefined) {\r\n queryParameters = queryParameters.set('TenantShortName', tenantShortName);\r\n }\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('Schema', schema);\r\n }\r\n if (order !== undefined) {\r\n queryParameters = queryParameters.set('Order', order);\r\n }\r\n if (personId !== undefined) {\r\n queryParameters = queryParameters.set('PersonId', personId);\r\n }\r\n if (tenantId !== undefined) {\r\n queryParameters = queryParameters.set('TenantId', tenantId);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/xlsx`,\r\n integrumInfraDataPersistenceModelsReportColumn,\r\n {\r\n params: queryParameters,\r\n responseType: \"blob\",\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param shortName \r\n * @param schema \r\n * @param integrumWebApiControllersDocumentsXlsxByIds \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getDocumentsXLSXByIds(shortName?: string, schema?: string, integrumWebApiControllersDocumentsXlsxByIds?: IntegrumWebApiControllersDocumentsXlsxByIds, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getDocumentsXLSXByIds(shortName?: string, schema?: string, integrumWebApiControllersDocumentsXlsxByIds?: IntegrumWebApiControllersDocumentsXlsxByIds, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getDocumentsXLSXByIds(shortName?: string, schema?: string, integrumWebApiControllersDocumentsXlsxByIds?: IntegrumWebApiControllersDocumentsXlsxByIds, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getDocumentsXLSXByIds(shortName?: string, schema?: string, integrumWebApiControllersDocumentsXlsxByIds?: IntegrumWebApiControllersDocumentsXlsxByIds, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (shortName !== undefined) {\r\n queryParameters = queryParameters.set('shortName', shortName);\r\n }\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('schema', schema);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/xlsx/by-ids`,\r\n integrumWebApiControllersDocumentsXlsxByIds,\r\n {\r\n params: queryParameters,\r\n responseType: \"blob\",\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param byTemplateShortName \r\n * @param byRoleShortNames \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getPersonsByTemplateRole(byTemplateShortName?: string, byRoleShortNames?: Array, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getPersonsByTemplateRole(byTemplateShortName?: string, byRoleShortNames?: Array, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getPersonsByTemplateRole(byTemplateShortName?: string, byRoleShortNames?: Array, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getPersonsByTemplateRole(byTemplateShortName?: string, byRoleShortNames?: Array, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (byTemplateShortName !== undefined) {\r\n queryParameters = queryParameters.set('byTemplateShortName', byTemplateShortName);\r\n }\r\n if (byRoleShortNames) {\r\n byRoleShortNames.forEach((element) => {\r\n queryParameters = queryParameters.append('byRoleShortNames', element);\r\n })\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Documents/byTemplateRole`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n \r\n /**\r\n * \r\n * \r\n * @param documentIds \r\n * @param actionId \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public performMany(documentIds?: Array, actionId?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public performMany(documentIds?: Array, actionId?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public performMany(documentIds?: Array, actionId?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public performMany(documentIds?: Array, actionId?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (documentIds) {\r\n documentIds.forEach((element) => {\r\n queryParameters = queryParameters.append('documentIds', element);\r\n })\r\n }\r\n if (actionId !== undefined) {\r\n queryParameters = queryParameters.set('actionId', actionId);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/perform-many`,\r\n null,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param pageSize \r\n * @param pageIndex \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getValuesChanges(id: string, field?: string, pageSize?: number, pageIndex?: number, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getValuesChanges(id: string, field?: string, pageSize?: number, pageIndex?: number, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getValuesChanges(id: string, field?: string, pageSize?: number, pageIndex?: number, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getValuesChanges(id: string, field?: string, pageSize?: number, pageIndex?: number, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling getValuesChanges.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (pageSize !== undefined) {\r\n queryParameters = queryParameters.set('pageSize', pageSize);\r\n }\r\n if (pageIndex !== undefined) {\r\n queryParameters = queryParameters.set('pageIndex', pageIndex);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n var url = `${this.basePath}/api/v1/Documents/${encodeURIComponent(String(id))}/valuesChanges`;\r\n if (field !== undefined) {\r\n url += `/${encodeURIComponent(String(field))}`;\r\n }\r\n return this.httpClient.get(url,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param document \r\n * @param documentsDocumentModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateDocument(document: string, documentsDocumentModel?: DocumentsDocumentModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateDocument(document: string, documentsDocumentModel?: DocumentsDocumentModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateDocument(document: string, documentsDocumentModel?: DocumentsDocumentModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateDocument(document: string, documentsDocumentModel?: DocumentsDocumentModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (document === null || document === undefined) {\r\n throw new Error('Required parameter document was null or undefined when calling updateDocument.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(document))}`,\r\n documentsDocumentModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param documentsDocumentUpdateManyModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateDocuments(documentsDocumentUpdateManyModel?: DocumentsDocumentUpdateManyModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateDocuments(documentsDocumentUpdateManyModel?: DocumentsDocumentUpdateManyModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateDocuments(documentsDocumentUpdateManyModel?: DocumentsDocumentUpdateManyModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateDocuments(documentsDocumentUpdateManyModel?: DocumentsDocumentUpdateManyModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Documents`,\r\n documentsDocumentUpdateManyModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfDocumentActorsRegisterModel } from '../model/apiResultOfDocumentActorsRegisterModel';\r\nimport { ApiResultOfDocumentActorsUpdateModel } from '../model/apiResultOfDocumentActorsUpdateModel';\r\nimport { ApiResultsOfDocumentsActorDocumentRoleViewModel } from '../model/apiResultsOfDocumentsActorDocumentRoleViewModel';\r\nimport { DocumentActorsDeleteModel } from '../model/documentActorsDeleteModel';\r\nimport { DocumentActorsRegisterModel } from '../model/documentActorsRegisterModel';\r\nimport { DocumentActorsUpdateModel } from '../model/documentActorsUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class DocumentActorService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param documentActorsRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addDocumentActor(documentActorsRegisterModel?: DocumentActorsRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addDocumentActor(documentActorsRegisterModel?: DocumentActorsRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addDocumentActor(documentActorsRegisterModel?: DocumentActorsRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addDocumentActor(documentActorsRegisterModel?: DocumentActorsRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Tenants/Documents/Actors`,\r\n documentActorsRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param documentGuid \r\n * @param role \r\n * @param actorGuid \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteDocumentActor(documentGuid: string, role: string, actorGuid: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteDocumentActor(documentGuid: string, role: string, actorGuid: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteDocumentActor(documentGuid: string, role: string, actorGuid: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteDocumentActor(documentGuid: string, role: string, actorGuid: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (documentGuid === null || documentGuid === undefined) {\r\n throw new Error('Required parameter documentGuid was null or undefined when calling deleteDocumentActor.');\r\n }\r\n if (role === null || role === undefined) {\r\n throw new Error('Required parameter role was null or undefined when calling deleteDocumentActor.');\r\n }\r\n if (actorGuid === null || actorGuid === undefined) {\r\n throw new Error('Required parameter actorGuid was null or undefined when calling deleteDocumentActor.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(documentGuid))}/Actors/${encodeURIComponent(String(role))}/${encodeURIComponent(String(actorGuid))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param documentActorsDeleteModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteManyDocumentActors(documentActorsDeleteModel?: Array, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteManyDocumentActors(documentActorsDeleteModel?: Array, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteManyDocumentActors(documentActorsDeleteModel?: Array, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteManyDocumentActors(documentActorsDeleteModel?: Array, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/Actors/delete-many`,\r\n documentActorsDeleteModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param actorId \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getActorRoles(actorId: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getActorRoles(actorId: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getActorRoles(actorId: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getActorRoles(actorId: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (actorId === null || actorId === undefined) {\r\n throw new Error('Required parameter actorId was null or undefined when calling getActorRoles.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Documents/Actors/${encodeURIComponent(String(actorId))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param documentActorsUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateDocumentActor(documentActorsUpdateModel?: DocumentActorsUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateDocumentActor(documentActorsUpdateModel?: DocumentActorsUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateDocumentActor(documentActorsUpdateModel?: DocumentActorsUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateDocumentActor(documentActorsUpdateModel?: DocumentActorsUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Tenants/Documents/Actors`,\r\n documentActorsUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project API\r\n * Integrum Project API v2\r\n *\r\n * OpenAPI spec version: v2\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfBoolean } from '../model/apiResultOfBoolean';\r\nimport { ApiResultOfDocumentsDocumentsViewModel } from '../model/apiResultOfDocumentsDocumentsViewModel';\r\nimport { ApiResultOfModelsViewConfigsViewConfig } from '../model/apiResultOfModelsViewConfigsViewConfig';\r\nimport { ApiResultsOfModelsViewConfigsViewConfig } from '../model/apiResultsOfModelsViewConfigsViewConfig';\r\nimport { DocumentsDocumentQuery } from '../model/documentsDocumentQuery';\r\nimport { ModelsViewConfigsViewConfig } from '../model/modelsViewConfigsViewConfig';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class DocumentServiceV2 {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param viewConfig \r\n * @param configId \r\n * @param documentsDocumentQuery \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getDocuments(viewConfig?: string, configId?: number, documentsDocumentQuery?: DocumentsDocumentQuery, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getDocuments(viewConfig?: string, configId?: number, documentsDocumentQuery?: DocumentsDocumentQuery, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getDocuments(viewConfig?: string, configId?: number, documentsDocumentQuery?: DocumentsDocumentQuery, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getDocuments(viewConfig?: string, configId?: number, documentsDocumentQuery?: DocumentsDocumentQuery, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (configId !== undefined) {\r\n queryParameters = queryParameters.set('configId', configId);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v2/documents/${encodeURIComponent(String(viewConfig))}`,\r\n documentsDocumentQuery,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param viewConfig \r\n * @param configId \r\n * @param documentsDocumentQuery \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getDocumentsAsFile(fileFormat: string, viewConfig?: string, configId?: number, documentsDocumentQuery?: DocumentsDocumentQuery, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getDocumentsAsFile(fileFormat: string, viewConfig?: string, configId?: number, documentsDocumentQuery?: DocumentsDocumentQuery, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getDocumentsAsFile(fileFormat: string, viewConfig?: string, configId?: number, documentsDocumentQuery?: DocumentsDocumentQuery, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getDocumentsAsFile(fileFormat: string, viewConfig?: string, configId?: number, documentsDocumentQuery?: DocumentsDocumentQuery, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (configId !== undefined) {\r\n queryParameters = queryParameters.set('configId', configId);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/octet-stream',\r\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v2/documents/${fileFormat}/${encodeURIComponent(String(viewConfig))}`,\r\n documentsDocumentQuery,\r\n {\r\n params: queryParameters,\r\n responseType: \"blob\",\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n}\r\n","/**\r\n * Integrum Project API\r\n * Integrum Project API v2\r\n *\r\n * OpenAPI spec version: v2\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfBoolean } from '../model/apiResultOfBoolean';\r\nimport { ApiResultOfDocumentsDocumentsViewModel } from '../model/apiResultOfDocumentsDocumentsViewModel';\r\nimport { ApiResultOfModelsViewConfigsViewConfig } from '../model/apiResultOfModelsViewConfigsViewConfig';\r\nimport { ApiResultsOfModelsViewConfigsViewConfig } from '../model/apiResultsOfModelsViewConfigsViewConfig';\r\nimport { DocumentsDocumentQuery } from '../model/documentsDocumentQuery';\r\nimport { ModelsViewConfigsViewConfig } from '../model/modelsViewConfigsViewConfig';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\nimport { ApiResultOfModelsViewConfigsView } from '../model/apiResultOfModelsViewConfigsView';\r\n\r\n\r\n@Injectable()\r\nexport class DocumentViewConfigsService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param shortName \r\n * @param modelsViewConfigsViewConfig \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addDocumentViewConfigs(shortName: string, modelsViewConfigsViewConfig?: ModelsViewConfigsViewConfig, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addDocumentViewConfigs(shortName: string, modelsViewConfigsViewConfig?: ModelsViewConfigsViewConfig, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addDocumentViewConfigs(shortName: string, modelsViewConfigsViewConfig?: ModelsViewConfigsViewConfig, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addDocumentViewConfigs(shortName: string, modelsViewConfigsViewConfig?: ModelsViewConfigsViewConfig, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (shortName === null || shortName === undefined) {\r\n throw new Error('Required parameter shortName was null or undefined when calling addDocumentViewConfigs.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v2/documents/viewconfigs/${encodeURIComponent(String(shortName))}`,\r\n modelsViewConfigsViewConfig,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param shortName \r\n * @param id \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteDocumentViewConfigs(shortName: string, id: number, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteDocumentViewConfigs(shortName: string, id: number, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteDocumentViewConfigs(shortName: string, id: number, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteDocumentViewConfigs(shortName: string, id: number, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (shortName === null || shortName === undefined) {\r\n throw new Error('Required parameter shortName was null or undefined when calling deleteDocumentViewConfigs.');\r\n }\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling deleteDocumentViewConfigs.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v2/documents/viewconfigs/${encodeURIComponent(String(shortName))}/${encodeURIComponent(String(id))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param shortName \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getDocumentView(shortName: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getDocumentView(shortName: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getDocumentView(shortName: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getDocumentView(shortName: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (shortName === null || shortName === undefined) {\r\n throw new Error('Required parameter shortName was null or undefined when calling getDocumentViewConfigs.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v2/documents/viewconfigs/${encodeURIComponent(String(shortName))}`,\r\n null,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param shortName \r\n * @param id \r\n * @param modelsViewConfigsViewConfig \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateDocumentViewConfigs(shortName: string, id: number, modelsViewConfigsViewConfig?: ModelsViewConfigsViewConfig, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateDocumentViewConfigs(shortName: string, id: number, modelsViewConfigsViewConfig?: ModelsViewConfigsViewConfig, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateDocumentViewConfigs(shortName: string, id: number, modelsViewConfigsViewConfig?: ModelsViewConfigsViewConfig, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateDocumentViewConfigs(shortName: string, id: number, modelsViewConfigsViewConfig?: ModelsViewConfigsViewConfig, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (shortName === null || shortName === undefined) {\r\n throw new Error('Required parameter shortName was null or undefined when calling updateDocumentViewConfigs.');\r\n }\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling updateDocumentViewConfigs.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v2/documents/viewconfigs/${encodeURIComponent(String(shortName))}/${encodeURIComponent(String(id))}`,\r\n modelsViewConfigsViewConfig,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project API\r\n * Integrum Project API v1\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfBoolean } from '../model/apiResultOfBoolean';\r\nimport { ApiResultsOfNotification } from '../model/apiResultsOfNotification';\r\nimport { ModelsQueriesQuery } from '../model/modelsQueriesQuery';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class NotificationService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param modelsQueriesQuery \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteNotifications(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteNotifications(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteNotifications(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteNotifications(modelsQueriesQuery?: ModelsQueriesQuery, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/notification/delete`,\r\n modelsQueriesQuery,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param modelsQueriesQuery \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getNotifications(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getNotifications(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getNotifications(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getNotifications(modelsQueriesQuery?: ModelsQueriesQuery, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/notification`,\r\n modelsQueriesQuery,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param modelsQueriesQuery \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public setNotificationsAsRead(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'body', reportProgress?: boolean): Observable;\r\n public setNotificationsAsRead(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public setNotificationsAsRead(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public setNotificationsAsRead(modelsQueriesQuery?: ModelsQueriesQuery, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/notification/setAsRead`,\r\n modelsQueriesQuery,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param modelsQueriesQuery \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public setNotificationsAsUnread(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'body', reportProgress?: boolean): Observable;\r\n public setNotificationsAsUnread(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public setNotificationsAsUnread(modelsQueriesQuery?: ModelsQueriesQuery, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public setNotificationsAsUnread(modelsQueriesQuery?: ModelsQueriesQuery, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/notification/setAsUnread`,\r\n modelsQueriesQuery,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfReportsDashboardViewModel } from '../model/apiResultOfReportsDashboardViewModel';\r\nimport { ApiResultOfReportsDashboardWidgetViewModel } from '../model/apiResultOfReportsDashboardWidgetViewModel';\r\nimport { ApiResultOfReportsViewModel } from '../model/apiResultOfReportsViewModel';\r\nimport { ApiResultsOfReportsDashboardViewModel } from '../model/apiResultsOfReportsDashboardViewModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class ReportsService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param templateName \r\n * @param reportParams \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getComplexReportAsXLSX(templateName: string, reportParams?: { [key: string]: string; }, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getComplexReportAsXLSX(templateName: string, reportParams?: { [key: string]: string; }, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getComplexReportAsXLSX(templateName: string, reportParams?: { [key: string]: string; }, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getComplexReportAsXLSX(templateName: string, reportParams?: { [key: string]: string; }, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (templateName === null || templateName === undefined) {\r\n throw new Error('Required parameter templateName was null or undefined when calling getComplexReportAsXLSX.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (reportParams !== undefined) {\r\n queryParameters = queryParameters.set('reportParams', reportParams);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Reports/Complex/${encodeURIComponent(String(templateName))}/download`,\r\n {\r\n params: queryParameters,\r\n responseType: \"blob\",\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param name \r\n * @param withData \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getDashboard(name: string, withData?: boolean, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getDashboard(name: string, withData?: boolean, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getDashboard(name: string, withData?: boolean, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getDashboard(name: string, withData?: boolean, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (name === null || name === undefined) {\r\n throw new Error('Required parameter name was null or undefined when calling getDashboard.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (withData !== undefined) {\r\n queryParameters = queryParameters.set('withData', withData);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Dashboards/${encodeURIComponent(String(name))}`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param withData \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getDashboards(withData?: boolean, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getDashboards(withData?: boolean, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getDashboards(withData?: boolean, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getDashboards(withData?: boolean, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (withData !== undefined) {\r\n queryParameters = queryParameters.set('withData', withData);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Dashboards`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param name \r\n * @param reportParams \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getReportItem(name: string, reportParams?: { [key: string]: string; }, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getReportItem(name: string, reportParams?: { [key: string]: string; }, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getReportItem(name: string, reportParams?: { [key: string]: string; }, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getReportItem(name: string, reportParams?: { [key: string]: string; }, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (name === null || name === undefined) {\r\n throw new Error('Required parameter name was null or undefined when calling getReportItem.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (reportParams !== undefined) {\r\n queryParameters = queryParameters.set('reportParams', reportParams);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Reports/${encodeURIComponent(String(name))}`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param name \r\n * @param reportParams \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getReportItemXLSX(name: string, reportParams?: { [key: string]: string; }, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getReportItemXLSX(name: string, reportParams?: { [key: string]: string; }, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getReportItemXLSX(name: string, reportParams?: { [key: string]: string; }, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getReportItemXLSX(name: string, reportParams?: { [key: string]: string; }, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (name === null || name === undefined) {\r\n throw new Error('Required parameter name was null or undefined when calling getReportItemXLSX.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (reportParams !== undefined) {\r\n queryParameters = queryParameters.set('reportParams', reportParams);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Reports/${encodeURIComponent(String(name))}/download/xlsx`,\r\n {\r\n params: queryParameters,\r\n responseType: \"blob\",\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param name \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getReportWidget(name: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getReportWidget(name: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getReportWidget(name: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getReportWidget(name: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (name === null || name === undefined) {\r\n throw new Error('Required parameter name was null or undefined when calling getReportWidget.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Reports/${encodeURIComponent(String(name))}/widget`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project API\r\n * Integrum Project API v1\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { SourceTemplatesRegisterModel } from '../model/sourceTemplatesRegisterModel';\r\nimport { SourceTemplatesUpdateModel } from '../model/sourceTemplatesUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class SourceTemplateService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param sourceTemplatesRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTemplateSourceTemplate(template: string, sourceTemplatesRegisterModel?: SourceTemplatesRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTemplateSourceTemplate(template: string, sourceTemplatesRegisterModel?: SourceTemplatesRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTemplateSourceTemplate(template: string, sourceTemplatesRegisterModel?: SourceTemplatesRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTemplateSourceTemplate(template: string, sourceTemplatesRegisterModel?: SourceTemplatesRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addTemplateSourceTemplate.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/SourceTemplates`,\r\n sourceTemplatesRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param tenant \r\n * @param sourceTemplatesRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTenantTemplateSourceTemplate(template: string, tenant: string, sourceTemplatesRegisterModel?: SourceTemplatesRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTenantTemplateSourceTemplate(template: string, tenant: string, sourceTemplatesRegisterModel?: SourceTemplatesRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTenantTemplateSourceTemplate(template: string, tenant: string, sourceTemplatesRegisterModel?: SourceTemplatesRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTenantTemplateSourceTemplate(template: string, tenant: string, sourceTemplatesRegisterModel?: SourceTemplatesRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addTenantTemplateSourceTemplate.');\r\n }\r\n if (tenant === null || tenant === undefined) {\r\n throw new Error('Required parameter tenant was null or undefined when calling addTenantTemplateSourceTemplate.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(tenant))}/Templates/${encodeURIComponent(String(template))}/SourceTemplates`,\r\n sourceTemplatesRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param sourceTemplate \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTemplateSourceTemplate(template: string, sourceTemplate: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTemplateSourceTemplate(template: string, sourceTemplate: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTemplateSourceTemplate(template: string, sourceTemplate: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTemplateSourceTemplate(template: string, sourceTemplate: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteTemplateSourceTemplate.');\r\n }\r\n if (sourceTemplate === null || sourceTemplate === undefined) {\r\n throw new Error('Required parameter sourceTemplate was null or undefined when calling deleteTemplateSourceTemplate.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/SourceTemplates/${encodeURIComponent(String(sourceTemplate))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param sourceTemplate \r\n * @param tenant \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTenantTemplateSourceTemplate(template: string, sourceTemplate: string, tenant: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTenantTemplateSourceTemplate(template: string, sourceTemplate: string, tenant: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTenantTemplateSourceTemplate(template: string, sourceTemplate: string, tenant: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTenantTemplateSourceTemplate(template: string, sourceTemplate: string, tenant: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteTenantTemplateSourceTemplate.');\r\n }\r\n if (sourceTemplate === null || sourceTemplate === undefined) {\r\n throw new Error('Required parameter sourceTemplate was null or undefined when calling deleteTenantTemplateSourceTemplate.');\r\n }\r\n if (tenant === null || tenant === undefined) {\r\n throw new Error('Required parameter tenant was null or undefined when calling deleteTenantTemplateSourceTemplate.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(tenant))}/Templates/${encodeURIComponent(String(template))}/SourceTemplates/${encodeURIComponent(String(sourceTemplate))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param sourceTemplate \r\n * @param sourceTemplatesUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTemplateSourceTemplate(template: string, sourceTemplate: string, sourceTemplatesUpdateModel?: SourceTemplatesUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTemplateSourceTemplate(template: string, sourceTemplate: string, sourceTemplatesUpdateModel?: SourceTemplatesUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTemplateSourceTemplate(template: string, sourceTemplate: string, sourceTemplatesUpdateModel?: SourceTemplatesUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTemplateSourceTemplate(template: string, sourceTemplate: string, sourceTemplatesUpdateModel?: SourceTemplatesUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateTemplateSourceTemplate.');\r\n }\r\n if (sourceTemplate === null || sourceTemplate === undefined) {\r\n throw new Error('Required parameter sourceTemplate was null or undefined when calling updateTemplateSourceTemplate.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/SourceTemplates/${encodeURIComponent(String(sourceTemplate))}`,\r\n sourceTemplatesUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param sourceTemplate \r\n * @param tenant \r\n * @param sourceTemplatesUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTenantTemplateSourceTemplate(template: string, sourceTemplate: string, tenant: string, sourceTemplatesUpdateModel?: SourceTemplatesUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTenantTemplateSourceTemplate(template: string, sourceTemplate: string, tenant: string, sourceTemplatesUpdateModel?: SourceTemplatesUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTenantTemplateSourceTemplate(template: string, sourceTemplate: string, tenant: string, sourceTemplatesUpdateModel?: SourceTemplatesUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTenantTemplateSourceTemplate(template: string, sourceTemplate: string, tenant: string, sourceTemplatesUpdateModel?: SourceTemplatesUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateTenantTemplateSourceTemplate.');\r\n }\r\n if (sourceTemplate === null || sourceTemplate === undefined) {\r\n throw new Error('Required parameter sourceTemplate was null or undefined when calling updateTenantTemplateSourceTemplate.');\r\n }\r\n if (tenant === null || tenant === undefined) {\r\n throw new Error('Required parameter tenant was null or undefined when calling updateTenantTemplateSourceTemplate.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(tenant))}/Templates/${encodeURIComponent(String(template))}/SourceTemplates/${encodeURIComponent(String(sourceTemplate))}`,\r\n sourceTemplatesUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfLicenceInfoViewModel } from '../model/apiResultOfLicenceInfoViewModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class SystemInfoService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getlicence(observe?: 'body', reportProgress?: boolean): Observable;\r\n public getlicence(observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getlicence(observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getlicence(observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/system/info/licence`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfTemplatesRegisterModel } from '../model/apiResultOfTemplatesRegisterModel';\r\nimport { ApiResultOfTemplatesTemplateViewModel } from '../model/apiResultOfTemplatesTemplateViewModel';\r\nimport { ApiResultOfTemplatesUpdateModel } from '../model/apiResultOfTemplatesUpdateModel';\r\nimport { ApiResultsOfTemplatesTemplateViewModel } from '../model/apiResultsOfTemplatesTemplateViewModel';\r\nimport { TemplatesRegisterModel } from '../model/templatesRegisterModel';\r\nimport { TemplatesUpdateModel } from '../model/templatesUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param templatesRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTemplate(templatesRegisterModel?: TemplatesRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTemplate(templatesRegisterModel?: TemplatesRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTemplate(templatesRegisterModel?: TemplatesRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTemplate(templatesRegisterModel?: TemplatesRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates`,\r\n templatesRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param tenant \r\n * @param templatesRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTenantTemplate(tenant: string, templatesRegisterModel?: TemplatesRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTenantTemplate(tenant: string, templatesRegisterModel?: TemplatesRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTenantTemplate(tenant: string, templatesRegisterModel?: TemplatesRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTenantTemplate(tenant: string, templatesRegisterModel?: TemplatesRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (tenant === null || tenant === undefined) {\r\n throw new Error('Required parameter tenant was null or undefined when calling addTenantTemplate.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(tenant))}/Templates`,\r\n templatesRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTemplate(template: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTemplate(template: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTemplate(template: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTemplate(template: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteTemplate.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getTemplate(template: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getTemplate(template: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getTemplate(template: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getTemplate(template: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling getTemplate.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param name \r\n * @param query \r\n * @param shortName \r\n * @param description \r\n * @param pageSize \r\n * @param pageNumber \r\n * @param schema \r\n * @param order \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getTemplates(id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getTemplates(id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getTemplates(id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getTemplates(id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('Id', id);\r\n }\r\n if (name !== undefined) {\r\n queryParameters = queryParameters.set('Name', name);\r\n }\r\n if (query !== undefined) {\r\n queryParameters = queryParameters.set('Query', query);\r\n }\r\n if (shortName !== undefined) {\r\n queryParameters = queryParameters.set('ShortName', shortName);\r\n }\r\n if (description !== undefined) {\r\n queryParameters = queryParameters.set('Description', description);\r\n }\r\n if (pageSize !== undefined) {\r\n queryParameters = queryParameters.set('PageSize', pageSize);\r\n }\r\n if (pageNumber !== undefined) {\r\n queryParameters = queryParameters.set('PageNumber', pageNumber);\r\n }\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('Schema', schema);\r\n }\r\n if (order !== undefined) {\r\n queryParameters = queryParameters.set('Order', order);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Templates`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param tenant \r\n * @param id \r\n * @param name \r\n * @param query \r\n * @param shortName \r\n * @param description \r\n * @param pageSize \r\n * @param pageNumber \r\n * @param schema \r\n * @param order \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getTenantTemplates(tenant: string, id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getTenantTemplates(tenant: string, id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getTenantTemplates(tenant: string, id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getTenantTemplates(tenant: string, id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (tenant === null || tenant === undefined) {\r\n throw new Error('Required parameter tenant was null or undefined when calling getTenantTemplates.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('Id', id);\r\n }\r\n if (name !== undefined) {\r\n queryParameters = queryParameters.set('Name', name);\r\n }\r\n if (query !== undefined) {\r\n queryParameters = queryParameters.set('Query', query);\r\n }\r\n if (shortName !== undefined) {\r\n queryParameters = queryParameters.set('ShortName', shortName);\r\n }\r\n if (description !== undefined) {\r\n queryParameters = queryParameters.set('Description', description);\r\n }\r\n if (pageSize !== undefined) {\r\n queryParameters = queryParameters.set('PageSize', pageSize);\r\n }\r\n if (pageNumber !== undefined) {\r\n queryParameters = queryParameters.set('PageNumber', pageNumber);\r\n }\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('Schema', schema);\r\n }\r\n if (order !== undefined) {\r\n queryParameters = queryParameters.set('Order', order);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(tenant))}/Templates`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param templatesUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTemplate(template: string, templatesUpdateModel?: TemplatesUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTemplate(template: string, templatesUpdateModel?: TemplatesUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTemplate(template: string, templatesUpdateModel?: TemplatesUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTemplate(template: string, templatesUpdateModel?: TemplatesUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateTemplate.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}`,\r\n templatesUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfTemplatesRegisterActorModel } from '../model/apiResultOfTemplatesRegisterActorModel';\r\nimport { ApiResultsOfTemplatesTemplateActorRoleViewModel } from '../model/apiResultsOfTemplatesTemplateActorRoleViewModel';\r\nimport { TemplatesDeleteModel } from '../model/templatesDeleteModel';\r\nimport { TemplatesRegisterActorModel } from '../model/templatesRegisterActorModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateActorService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param templatesRegisterActorModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTemplateActor(templatesRegisterActorModel?: TemplatesRegisterActorModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTemplateActor(templatesRegisterActorModel?: TemplatesRegisterActorModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTemplateActor(templatesRegisterActorModel?: TemplatesRegisterActorModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTemplateActor(templatesRegisterActorModel?: TemplatesRegisterActorModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates/Actors`,\r\n templatesRegisterActorModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param templatesDeleteModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteManyTemplateActors(templatesDeleteModel?: Array, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteManyTemplateActors(templatesDeleteModel?: Array, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteManyTemplateActors(templatesDeleteModel?: Array, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteManyTemplateActors(templatesDeleteModel?: Array, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates/Actors/delete-many`,\r\n templatesDeleteModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param role \r\n * @param actorGuid \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTemplateActor(template: string, role: string, actorGuid: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTemplateActor(template: string, role: string, actorGuid: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTemplateActor(template: string, role: string, actorGuid: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTemplateActor(template: string, role: string, actorGuid: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteTemplateActor.');\r\n }\r\n if (role === null || role === undefined) {\r\n throw new Error('Required parameter role was null or undefined when calling deleteTemplateActor.');\r\n }\r\n if (actorGuid === null || actorGuid === undefined) {\r\n throw new Error('Required parameter actorGuid was null or undefined when calling deleteTemplateActor.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Template/${encodeURIComponent(String(template))}/Actors/${encodeURIComponent(String(role))}/${encodeURIComponent(String(actorGuid))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param actorId \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getTemplateActorRoles(actorId: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getTemplateActorRoles(actorId: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getTemplateActorRoles(actorId: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getTemplateActorRoles(actorId: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (actorId === null || actorId === undefined) {\r\n throw new Error('Required parameter actorId was null or undefined when calling getTemplateActorRoles.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Templates/Actors/${encodeURIComponent(String(actorId))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { FieldsRegisterModel } from '../model/fieldsRegisterModel';\r\nimport { FieldsUpdateModel } from '../model/fieldsUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateFieldService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param fieldsRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTemplateField(template: string, fieldsRegisterModel?: FieldsRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTemplateField(template: string, fieldsRegisterModel?: FieldsRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTemplateField(template: string, fieldsRegisterModel?: FieldsRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTemplateField(template: string, fieldsRegisterModel?: FieldsRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addTemplateField.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Fields`,\r\n fieldsRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param tenant \r\n * @param fieldsRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTenantTemplateField(template: string, tenant: string, fieldsRegisterModel?: FieldsRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTenantTemplateField(template: string, tenant: string, fieldsRegisterModel?: FieldsRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTenantTemplateField(template: string, tenant: string, fieldsRegisterModel?: FieldsRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTenantTemplateField(template: string, tenant: string, fieldsRegisterModel?: FieldsRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addTenantTemplateField.');\r\n }\r\n if (tenant === null || tenant === undefined) {\r\n throw new Error('Required parameter tenant was null or undefined when calling addTenantTemplateField.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(tenant))}/Templates/${encodeURIComponent(String(template))}/Fields`,\r\n fieldsRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param field \r\n * @param template \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTemplateField(field: string, template: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTemplateField(field: string, template: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTemplateField(field: string, template: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTemplateField(field: string, template: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (field === null || field === undefined) {\r\n throw new Error('Required parameter field was null or undefined when calling deleteTemplateField.');\r\n }\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteTemplateField.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Fields/${encodeURIComponent(String(field))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param field \r\n * @param template \r\n * @param tenant \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTenantTemplateField(field: string, template: string, tenant: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTenantTemplateField(field: string, template: string, tenant: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTenantTemplateField(field: string, template: string, tenant: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTenantTemplateField(field: string, template: string, tenant: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (field === null || field === undefined) {\r\n throw new Error('Required parameter field was null or undefined when calling deleteTenantTemplateField.');\r\n }\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteTenantTemplateField.');\r\n }\r\n if (tenant === null || tenant === undefined) {\r\n throw new Error('Required parameter tenant was null or undefined when calling deleteTenantTemplateField.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(tenant))}/Templates/${encodeURIComponent(String(template))}/Fields/${encodeURIComponent(String(field))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param field \r\n * @param fieldsUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTemplateField(template: string, field: string, fieldsUpdateModel?: FieldsUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTemplateField(template: string, field: string, fieldsUpdateModel?: FieldsUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTemplateField(template: string, field: string, fieldsUpdateModel?: FieldsUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTemplateField(template: string, field: string, fieldsUpdateModel?: FieldsUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateTemplateField.');\r\n }\r\n if (field === null || field === undefined) {\r\n throw new Error('Required parameter field was null or undefined when calling updateTemplateField.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Fields/${encodeURIComponent(String(field))}`,\r\n fieldsUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param tenant \r\n * @param template \r\n * @param field \r\n * @param fieldsUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTenantTemplateField(tenant: string, template: string, field: string, fieldsUpdateModel?: FieldsUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTenantTemplateField(tenant: string, template: string, field: string, fieldsUpdateModel?: FieldsUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTenantTemplateField(tenant: string, template: string, field: string, fieldsUpdateModel?: FieldsUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTenantTemplateField(tenant: string, template: string, field: string, fieldsUpdateModel?: FieldsUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (tenant === null || tenant === undefined) {\r\n throw new Error('Required parameter tenant was null or undefined when calling updateTenantTemplateField.');\r\n }\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateTenantTemplateField.');\r\n }\r\n if (field === null || field === undefined) {\r\n throw new Error('Required parameter field was null or undefined when calling updateTenantTemplateField.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(tenant))}/Templates/${encodeURIComponent(String(template))}/Fields/${encodeURIComponent(String(field))}`,\r\n fieldsUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { FieldRulesRegisterModel } from '../model/fieldRulesRegisterModel';\r\nimport { FieldRulesUpdateModel } from '../model/fieldRulesUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateFieldRuleService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param field \r\n * @param fieldRulesRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTemplateFieldRule(template: string, field: string, fieldRulesRegisterModel?: FieldRulesRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTemplateFieldRule(template: string, field: string, fieldRulesRegisterModel?: FieldRulesRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTemplateFieldRule(template: string, field: string, fieldRulesRegisterModel?: FieldRulesRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTemplateFieldRule(template: string, field: string, fieldRulesRegisterModel?: FieldRulesRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addTemplateFieldRule.');\r\n }\r\n if (field === null || field === undefined) {\r\n throw new Error('Required parameter field was null or undefined when calling addTemplateFieldRule.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Fields/${encodeURIComponent(String(field))}/Rules`,\r\n fieldRulesRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param field \r\n * @param rule \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTemplateFieldRule(template: string, field: string, rule: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTemplateFieldRule(template: string, field: string, rule: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTemplateFieldRule(template: string, field: string, rule: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTemplateFieldRule(template: string, field: string, rule: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteTemplateFieldRule.');\r\n }\r\n if (field === null || field === undefined) {\r\n throw new Error('Required parameter field was null or undefined when calling deleteTemplateFieldRule.');\r\n }\r\n if (rule === null || rule === undefined) {\r\n throw new Error('Required parameter rule was null or undefined when calling deleteTemplateFieldRule.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Fields/${encodeURIComponent(String(field))}/Rules/${encodeURIComponent(String(rule))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param field \r\n * @param rule \r\n * @param fieldRulesUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTemplateFieldRule(template: string, field: string, rule: string, fieldRulesUpdateModel?: FieldRulesUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTemplateFieldRule(template: string, field: string, rule: string, fieldRulesUpdateModel?: FieldRulesUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTemplateFieldRule(template: string, field: string, rule: string, fieldRulesUpdateModel?: FieldRulesUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTemplateFieldRule(template: string, field: string, rule: string, fieldRulesUpdateModel?: FieldRulesUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateTemplateFieldRule.');\r\n }\r\n if (field === null || field === undefined) {\r\n throw new Error('Required parameter field was null or undefined when calling updateTemplateFieldRule.');\r\n }\r\n if (rule === null || rule === undefined) {\r\n throw new Error('Required parameter rule was null or undefined when calling updateTemplateFieldRule.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Fields/${encodeURIComponent(String(field))}/Rules/${encodeURIComponent(String(rule))}`,\r\n fieldRulesUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { FieldRuleConditionsRegisterModel } from '../model/fieldRuleConditionsRegisterModel';\r\nimport { FieldRuleConditionsUpdateModel } from '../model/fieldRuleConditionsUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateFieldRuleConditionService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param field \r\n * @param rule \r\n * @param fieldRuleConditionsRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTemplateFieldRuleCondition(template: string, field: string, rule: string, fieldRuleConditionsRegisterModel?: FieldRuleConditionsRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTemplateFieldRuleCondition(template: string, field: string, rule: string, fieldRuleConditionsRegisterModel?: FieldRuleConditionsRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTemplateFieldRuleCondition(template: string, field: string, rule: string, fieldRuleConditionsRegisterModel?: FieldRuleConditionsRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTemplateFieldRuleCondition(template: string, field: string, rule: string, fieldRuleConditionsRegisterModel?: FieldRuleConditionsRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addTemplateFieldRuleCondition.');\r\n }\r\n if (field === null || field === undefined) {\r\n throw new Error('Required parameter field was null or undefined when calling addTemplateFieldRuleCondition.');\r\n }\r\n if (rule === null || rule === undefined) {\r\n throw new Error('Required parameter rule was null or undefined when calling addTemplateFieldRuleCondition.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Fields/${encodeURIComponent(String(field))}/Rules/${encodeURIComponent(String(rule))}/Conditions`,\r\n fieldRuleConditionsRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param field \r\n * @param rule \r\n * @param cond \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTemplateFieldRuleCondition(template: string, field: string, rule: string, cond: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTemplateFieldRuleCondition(template: string, field: string, rule: string, cond: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTemplateFieldRuleCondition(template: string, field: string, rule: string, cond: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTemplateFieldRuleCondition(template: string, field: string, rule: string, cond: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteTemplateFieldRuleCondition.');\r\n }\r\n if (field === null || field === undefined) {\r\n throw new Error('Required parameter field was null or undefined when calling deleteTemplateFieldRuleCondition.');\r\n }\r\n if (rule === null || rule === undefined) {\r\n throw new Error('Required parameter rule was null or undefined when calling deleteTemplateFieldRuleCondition.');\r\n }\r\n if (cond === null || cond === undefined) {\r\n throw new Error('Required parameter cond was null or undefined when calling deleteTemplateFieldRuleCondition.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Fields/${encodeURIComponent(String(field))}/Rules/${encodeURIComponent(String(rule))}/Conditions/${encodeURIComponent(String(cond))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param field \r\n * @param rule \r\n * @param cond \r\n * @param fieldRuleConditionsUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTemplateFieldRuleCondition(template: string, field: string, rule: string, cond: string, fieldRuleConditionsUpdateModel?: FieldRuleConditionsUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTemplateFieldRuleCondition(template: string, field: string, rule: string, cond: string, fieldRuleConditionsUpdateModel?: FieldRuleConditionsUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTemplateFieldRuleCondition(template: string, field: string, rule: string, cond: string, fieldRuleConditionsUpdateModel?: FieldRuleConditionsUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTemplateFieldRuleCondition(template: string, field: string, rule: string, cond: string, fieldRuleConditionsUpdateModel?: FieldRuleConditionsUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateTemplateFieldRuleCondition.');\r\n }\r\n if (field === null || field === undefined) {\r\n throw new Error('Required parameter field was null or undefined when calling updateTemplateFieldRuleCondition.');\r\n }\r\n if (rule === null || rule === undefined) {\r\n throw new Error('Required parameter rule was null or undefined when calling updateTemplateFieldRuleCondition.');\r\n }\r\n if (cond === null || cond === undefined) {\r\n throw new Error('Required parameter cond was null or undefined when calling updateTemplateFieldRuleCondition.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Fields/${encodeURIComponent(String(field))}/Rules/${encodeURIComponent(String(rule))}/Conditions/${encodeURIComponent(String(cond))}`,\r\n fieldRuleConditionsUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { FormsFormViewModel } from '../model/formsFormViewModel';\r\nimport { FormsRegisterModel } from '../model/formsRegisterModel';\r\nimport { FormsUpdateModel } from '../model/formsUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateFormService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param formsRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTemplateForm(formsRegisterModel?: FormsRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTemplateForm(formsRegisterModel?: FormsRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTemplateForm(formsRegisterModel?: FormsRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTemplateForm(formsRegisterModel?: FormsRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Tenants/Templates/Forms`,\r\n formsRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTemplateForm(id?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTemplateForm(id?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTemplateForm(id?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTemplateForm(id?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('id', id);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Tenants/Templates/Forms`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getTemplateForm(id: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getTemplateForm(id: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getTemplateForm(id: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getTemplateForm(id: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling getTemplateForm.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Templates/Forms/${encodeURIComponent(String(id))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param name \r\n * @param query \r\n * @param shortName \r\n * @param description \r\n * @param fields ShortName=Value&ShortName2=Value2; ie. model=911\r\n * @param pageSize \r\n * @param pageNumber \r\n * @param personId \r\n * @param tenantId \r\n * @param tenantShortName \r\n * @param schema \r\n * @param order \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getTemplateForms(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'body', reportProgress?: boolean): Observable>;\r\n public getTemplateForms(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'response', reportProgress?: boolean): Observable>>;\r\n public getTemplateForms(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'events', reportProgress?: boolean): Observable>>;\r\n public getTemplateForms(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('Id', id);\r\n }\r\n if (name !== undefined) {\r\n queryParameters = queryParameters.set('Name', name);\r\n }\r\n if (query !== undefined) {\r\n queryParameters = queryParameters.set('Query', query);\r\n }\r\n if (shortName !== undefined) {\r\n queryParameters = queryParameters.set('ShortName', shortName);\r\n }\r\n if (description !== undefined) {\r\n queryParameters = queryParameters.set('Description', description);\r\n }\r\n if (fields) {\r\n fields.forEach((element) => {\r\n queryParameters = queryParameters.append('fields', element);\r\n })\r\n }\r\n if (pageSize !== undefined) {\r\n queryParameters = queryParameters.set('PageSize', pageSize);\r\n }\r\n if (pageNumber !== undefined) {\r\n queryParameters = queryParameters.set('PageNumber', pageNumber);\r\n }\r\n if (personId !== undefined) {\r\n queryParameters = queryParameters.set('PersonId', personId);\r\n }\r\n if (tenantId !== undefined) {\r\n queryParameters = queryParameters.set('TenantId', tenantId);\r\n }\r\n if (tenantShortName !== undefined) {\r\n queryParameters = queryParameters.set('TenantShortName', tenantShortName);\r\n }\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('Schema', schema);\r\n }\r\n if (order !== undefined) {\r\n queryParameters = queryParameters.set('Order', order);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get>(`${this.basePath}/api/v1/Tenants/Templates/Forms`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param formsUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTemplateForm(formsUpdateModel?: FormsUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTemplateForm(formsUpdateModel?: FormsUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTemplateForm(formsUpdateModel?: FormsUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTemplateForm(formsUpdateModel?: FormsUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Tenants/Templates/Forms`,\r\n formsUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { FormControlsFormControlViewModel } from '../model/formControlsFormControlViewModel';\r\nimport { FormControlsRegisterModel } from '../model/formControlsRegisterModel';\r\nimport { FormControlsUpdateModel } from '../model/formControlsUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateFormControlService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param formControlsRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTemplateFormControl(formControlsRegisterModel?: FormControlsRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTemplateFormControl(formControlsRegisterModel?: FormControlsRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTemplateFormControl(formControlsRegisterModel?: FormControlsRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTemplateFormControl(formControlsRegisterModel?: FormControlsRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Tenants/Templates/Forms/Controls`,\r\n formControlsRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTemplateFormControl(id?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTemplateFormControl(id?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTemplateFormControl(id?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTemplateFormControl(id?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('id', id);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Tenants/Templates/Forms/Controls`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getTemplateFormControl(id: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getTemplateFormControl(id: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getTemplateFormControl(id: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getTemplateFormControl(id: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling getTemplateFormControl.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Templates/Forms/Controls/${encodeURIComponent(String(id))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param name \r\n * @param query \r\n * @param shortName \r\n * @param description \r\n * @param fields ShortName=Value&ShortName2=Value2; ie. model=911\r\n * @param pageSize \r\n * @param pageNumber \r\n * @param personId \r\n * @param tenantId \r\n * @param tenantShortName \r\n * @param schema \r\n * @param order \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getTemplateFormControls(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'body', reportProgress?: boolean): Observable>;\r\n public getTemplateFormControls(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'response', reportProgress?: boolean): Observable>>;\r\n public getTemplateFormControls(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'events', reportProgress?: boolean): Observable>>;\r\n public getTemplateFormControls(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('Id', id);\r\n }\r\n if (name !== undefined) {\r\n queryParameters = queryParameters.set('Name', name);\r\n }\r\n if (query !== undefined) {\r\n queryParameters = queryParameters.set('Query', query);\r\n }\r\n if (shortName !== undefined) {\r\n queryParameters = queryParameters.set('ShortName', shortName);\r\n }\r\n if (description !== undefined) {\r\n queryParameters = queryParameters.set('Description', description);\r\n }\r\n if (fields) {\r\n fields.forEach((element) => {\r\n queryParameters = queryParameters.append('fields', element);\r\n })\r\n }\r\n if (pageSize !== undefined) {\r\n queryParameters = queryParameters.set('PageSize', pageSize);\r\n }\r\n if (pageNumber !== undefined) {\r\n queryParameters = queryParameters.set('PageNumber', pageNumber);\r\n }\r\n if (personId !== undefined) {\r\n queryParameters = queryParameters.set('PersonId', personId);\r\n }\r\n if (tenantId !== undefined) {\r\n queryParameters = queryParameters.set('TenantId', tenantId);\r\n }\r\n if (tenantShortName !== undefined) {\r\n queryParameters = queryParameters.set('TenantShortName', tenantShortName);\r\n }\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('Schema', schema);\r\n }\r\n if (order !== undefined) {\r\n queryParameters = queryParameters.set('Order', order);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get>(`${this.basePath}/api/v1/Tenants/Templates/Forms/Controls`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param formControlsUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTemplateFormControl(formControlsUpdateModel?: FormControlsUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTemplateFormControl(formControlsUpdateModel?: FormControlsUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTemplateFormControl(formControlsUpdateModel?: FormControlsUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTemplateFormControl(formControlsUpdateModel?: FormControlsUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Tenants/Templates/Forms/Controls`,\r\n formControlsUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { RolesRegisterModel } from '../model/rolesRegisterModel';\r\nimport { RolesUpdateModel } from '../model/rolesUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateRoleService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param rolesRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTemplateRole(template: string, rolesRegisterModel?: RolesRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTemplateRole(template: string, rolesRegisterModel?: RolesRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTemplateRole(template: string, rolesRegisterModel?: RolesRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTemplateRole(template: string, rolesRegisterModel?: RolesRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addTemplateRole.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Roles`,\r\n rolesRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param role \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTemplateRole(template: string, role: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTemplateRole(template: string, role: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTemplateRole(template: string, role: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTemplateRole(template: string, role: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteTemplateRole.');\r\n }\r\n if (role === null || role === undefined) {\r\n throw new Error('Required parameter role was null or undefined when calling deleteTemplateRole.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Roles/${encodeURIComponent(String(role))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param role \r\n * @param rolesUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTemplateRole(template: string, role: string, rolesUpdateModel?: RolesUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTemplateRole(template: string, role: string, rolesUpdateModel?: RolesUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTemplateRole(template: string, role: string, rolesUpdateModel?: RolesUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTemplateRole(template: string, role: string, rolesUpdateModel?: RolesUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateTemplateRole.');\r\n }\r\n if (role === null || role === undefined) {\r\n throw new Error('Required parameter role was null or undefined when calling updateTemplateRole.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Roles/${encodeURIComponent(String(role))}`,\r\n rolesUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { TimersTimerModel } from '../model/timersTimerModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateTimerService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param timersTimerModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTemplateTimer(template: string, timersTimerModel?: TimersTimerModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTemplateTimer(template: string, timersTimerModel?: TimersTimerModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTemplateTimer(template: string, timersTimerModel?: TimersTimerModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTemplateTimer(template: string, timersTimerModel?: TimersTimerModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addTemplateTimer.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Timers`,\r\n timersTimerModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param tenant \r\n * @param timersTimerModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTenantTemplateTimer(template: string, tenant: string, timersTimerModel?: TimersTimerModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTenantTemplateTimer(template: string, tenant: string, timersTimerModel?: TimersTimerModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTenantTemplateTimer(template: string, tenant: string, timersTimerModel?: TimersTimerModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTenantTemplateTimer(template: string, tenant: string, timersTimerModel?: TimersTimerModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addTenantTemplateTimer.');\r\n }\r\n if (tenant === null || tenant === undefined) {\r\n throw new Error('Required parameter tenant was null or undefined when calling addTenantTemplateTimer.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(tenant))}/Templates/${encodeURIComponent(String(template))}/Timers`,\r\n timersTimerModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param timer \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTemplateTimer(template: string, timer: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTemplateTimer(template: string, timer: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTemplateTimer(template: string, timer: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTemplateTimer(template: string, timer: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteTemplateTimer.');\r\n }\r\n if (timer === null || timer === undefined) {\r\n throw new Error('Required parameter timer was null or undefined when calling deleteTemplateTimer.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Timers/${encodeURIComponent(String(timer))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param timer \r\n * @param tenant \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTenantTemplateTimer(template: string, timer: string, tenant: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTenantTemplateTimer(template: string, timer: string, tenant: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTenantTemplateTimer(template: string, timer: string, tenant: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTenantTemplateTimer(template: string, timer: string, tenant: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteTenantTemplateTimer.');\r\n }\r\n if (timer === null || timer === undefined) {\r\n throw new Error('Required parameter timer was null or undefined when calling deleteTenantTemplateTimer.');\r\n }\r\n if (tenant === null || tenant === undefined) {\r\n throw new Error('Required parameter tenant was null or undefined when calling deleteTenantTemplateTimer.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(tenant))}/Templates/${encodeURIComponent(String(template))}/Timers/${encodeURIComponent(String(timer))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param timer \r\n * @param timersTimerModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTemplateTimer(template: string, timer: string, timersTimerModel?: TimersTimerModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTemplateTimer(template: string, timer: string, timersTimerModel?: TimersTimerModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTemplateTimer(template: string, timer: string, timersTimerModel?: TimersTimerModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTemplateTimer(template: string, timer: string, timersTimerModel?: TimersTimerModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateTemplateTimer.');\r\n }\r\n if (timer === null || timer === undefined) {\r\n throw new Error('Required parameter timer was null or undefined when calling updateTemplateTimer.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Timers/${encodeURIComponent(String(timer))}`,\r\n timersTimerModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param timer \r\n * @param tenant \r\n * @param timersTimerModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTenantTemplateTimer(template: string, timer: string, tenant: string, timersTimerModel?: TimersTimerModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTenantTemplateTimer(template: string, timer: string, tenant: string, timersTimerModel?: TimersTimerModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTenantTemplateTimer(template: string, timer: string, tenant: string, timersTimerModel?: TimersTimerModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTenantTemplateTimer(template: string, timer: string, tenant: string, timersTimerModel?: TimersTimerModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateTenantTemplateTimer.');\r\n }\r\n if (timer === null || timer === undefined) {\r\n throw new Error('Required parameter timer was null or undefined when calling updateTenantTemplateTimer.');\r\n }\r\n if (tenant === null || tenant === undefined) {\r\n throw new Error('Required parameter tenant was null or undefined when calling updateTenantTemplateTimer.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(tenant))}/Templates/${encodeURIComponent(String(template))}/Timers/${encodeURIComponent(String(timer))}`,\r\n timersTimerModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { WorkflowsRegisterModel } from '../model/workflowsRegisterModel';\r\nimport { WorkflowsUpdateModel } from '../model/workflowsUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateWorkflowService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param workflowsRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addWorkflow(template: string, workflowsRegisterModel?: WorkflowsRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addWorkflow(template: string, workflowsRegisterModel?: WorkflowsRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addWorkflow(template: string, workflowsRegisterModel?: WorkflowsRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addWorkflow(template: string, workflowsRegisterModel?: WorkflowsRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addWorkflow.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Tenants/Templates/${encodeURIComponent(String(template))}/Workflows`,\r\n workflowsRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param id \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteWorkflow(template: string, id?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteWorkflow(template: string, id?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteWorkflow(template: string, id?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteWorkflow(template: string, id?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteWorkflow.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('id', id);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Tenants/Templates/${encodeURIComponent(String(template))}/Workflows`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param workflowsUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateWorkflow(template: string, workflowsUpdateModel?: WorkflowsUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateWorkflow(template: string, workflowsUpdateModel?: WorkflowsUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateWorkflow(template: string, workflowsUpdateModel?: WorkflowsUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateWorkflow(template: string, workflowsUpdateModel?: WorkflowsUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateWorkflow.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Tenants/Templates/${encodeURIComponent(String(template))}/Workflows`,\r\n workflowsUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { WorkflowActionsRegisterModel } from '../model/workflowActionsRegisterModel';\r\nimport { WorkflowActionsUpdateModel } from '../model/workflowActionsUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateWorkflowActionService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param workflow \r\n * @param stage \r\n * @param workflowActionsRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addWorkflowStageAction(template: string, workflow: string, stage: string, workflowActionsRegisterModel?: WorkflowActionsRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addWorkflowStageAction(template: string, workflow: string, stage: string, workflowActionsRegisterModel?: WorkflowActionsRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addWorkflowStageAction(template: string, workflow: string, stage: string, workflowActionsRegisterModel?: WorkflowActionsRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addWorkflowStageAction(template: string, workflow: string, stage: string, workflowActionsRegisterModel?: WorkflowActionsRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addWorkflowStageAction.');\r\n }\r\n if (workflow === null || workflow === undefined) {\r\n throw new Error('Required parameter workflow was null or undefined when calling addWorkflowStageAction.');\r\n }\r\n if (stage === null || stage === undefined) {\r\n throw new Error('Required parameter stage was null or undefined when calling addWorkflowStageAction.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Workflows/${encodeURIComponent(String(workflow))}/Stages/${encodeURIComponent(String(stage))}/Actions`,\r\n workflowActionsRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param workflow \r\n * @param stage \r\n * @param action \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteWorkflowStageAction(template: string, workflow: string, stage: string, action: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteWorkflowStageAction(template: string, workflow: string, stage: string, action: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteWorkflowStageAction(template: string, workflow: string, stage: string, action: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteWorkflowStageAction(template: string, workflow: string, stage: string, action: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteWorkflowStageAction.');\r\n }\r\n if (workflow === null || workflow === undefined) {\r\n throw new Error('Required parameter workflow was null or undefined when calling deleteWorkflowStageAction.');\r\n }\r\n if (stage === null || stage === undefined) {\r\n throw new Error('Required parameter stage was null or undefined when calling deleteWorkflowStageAction.');\r\n }\r\n if (action === null || action === undefined) {\r\n throw new Error('Required parameter action was null or undefined when calling deleteWorkflowStageAction.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Workflows/${encodeURIComponent(String(workflow))}/Stages/${encodeURIComponent(String(stage))}/Actions/${encodeURIComponent(String(action))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param workflow \r\n * @param stage \r\n * @param action \r\n * @param workflowActionsUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateWorkflowStageAction(template: string, workflow: string, stage: string, action: string, workflowActionsUpdateModel?: WorkflowActionsUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateWorkflowStageAction(template: string, workflow: string, stage: string, action: string, workflowActionsUpdateModel?: WorkflowActionsUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateWorkflowStageAction(template: string, workflow: string, stage: string, action: string, workflowActionsUpdateModel?: WorkflowActionsUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateWorkflowStageAction(template: string, workflow: string, stage: string, action: string, workflowActionsUpdateModel?: WorkflowActionsUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateWorkflowStageAction.');\r\n }\r\n if (workflow === null || workflow === undefined) {\r\n throw new Error('Required parameter workflow was null or undefined when calling updateWorkflowStageAction.');\r\n }\r\n if (stage === null || stage === undefined) {\r\n throw new Error('Required parameter stage was null or undefined when calling updateWorkflowStageAction.');\r\n }\r\n if (action === null || action === undefined) {\r\n throw new Error('Required parameter action was null or undefined when calling updateWorkflowStageAction.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Workflows/${encodeURIComponent(String(workflow))}/Stages/${encodeURIComponent(String(stage))}/Actions/${encodeURIComponent(String(action))}`,\r\n workflowActionsUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { WorkflowActionConditionsRegisterModel } from '../model/workflowActionConditionsRegisterModel';\r\nimport { WorkflowActionConditionsUpdateModel } from '../model/workflowActionConditionsUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateWorkflowActionConditionService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param workflowActionConditionsRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addWorkflowStageActionCondition(workflowActionConditionsRegisterModel?: WorkflowActionConditionsRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addWorkflowStageActionCondition(workflowActionConditionsRegisterModel?: WorkflowActionConditionsRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addWorkflowStageActionCondition(workflowActionConditionsRegisterModel?: WorkflowActionConditionsRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addWorkflowStageActionCondition(workflowActionConditionsRegisterModel?: WorkflowActionConditionsRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates/Workflows/Stages/Actions/Conditions`,\r\n workflowActionConditionsRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteWorkflowStageActionCondition(id?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteWorkflowStageActionCondition(id?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteWorkflowStageActionCondition(id?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteWorkflowStageActionCondition(id?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('id', id);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Templates/Workflows/Stages/Actions/Conditions`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param workflowActionConditionsUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateWorkflowStageActionCondition(workflowActionConditionsUpdateModel?: WorkflowActionConditionsUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateWorkflowStageActionCondition(workflowActionConditionsUpdateModel?: WorkflowActionConditionsUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateWorkflowStageActionCondition(workflowActionConditionsUpdateModel?: WorkflowActionConditionsUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateWorkflowStageActionCondition(workflowActionConditionsUpdateModel?: WorkflowActionConditionsUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Templates/Workflows/Stages/Actions/Conditions`,\r\n workflowActionConditionsUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { WorkflowActionsWorkflowActionStepModel } from '../model/workflowActionsWorkflowActionStepModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateWorkflowActionStepService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param workflow \r\n * @param stage \r\n * @param action \r\n * @param workflowActionsWorkflowActionStepModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, workflowActionsWorkflowActionStepModel?: WorkflowActionsWorkflowActionStepModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, workflowActionsWorkflowActionStepModel?: WorkflowActionsWorkflowActionStepModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, workflowActionsWorkflowActionStepModel?: WorkflowActionsWorkflowActionStepModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, workflowActionsWorkflowActionStepModel?: WorkflowActionsWorkflowActionStepModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addWorkflowStageActionStep.');\r\n }\r\n if (workflow === null || workflow === undefined) {\r\n throw new Error('Required parameter workflow was null or undefined when calling addWorkflowStageActionStep.');\r\n }\r\n if (stage === null || stage === undefined) {\r\n throw new Error('Required parameter stage was null or undefined when calling addWorkflowStageActionStep.');\r\n }\r\n if (action === null || action === undefined) {\r\n throw new Error('Required parameter action was null or undefined when calling addWorkflowStageActionStep.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Workflows/${encodeURIComponent(String(workflow))}/Stages/${encodeURIComponent(String(stage))}/Actions/${encodeURIComponent(String(action))}/Steps`,\r\n workflowActionsWorkflowActionStepModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param workflow \r\n * @param stage \r\n * @param action \r\n * @param step \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, step: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, step: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, step: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, step: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteWorkflowStageActionStep.');\r\n }\r\n if (workflow === null || workflow === undefined) {\r\n throw new Error('Required parameter workflow was null or undefined when calling deleteWorkflowStageActionStep.');\r\n }\r\n if (stage === null || stage === undefined) {\r\n throw new Error('Required parameter stage was null or undefined when calling deleteWorkflowStageActionStep.');\r\n }\r\n if (action === null || action === undefined) {\r\n throw new Error('Required parameter action was null or undefined when calling deleteWorkflowStageActionStep.');\r\n }\r\n if (step === null || step === undefined) {\r\n throw new Error('Required parameter step was null or undefined when calling deleteWorkflowStageActionStep.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Workflows/${encodeURIComponent(String(workflow))}/Stages/${encodeURIComponent(String(stage))}/Actions/${encodeURIComponent(String(action))}/Steps/${encodeURIComponent(String(step))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param workflow \r\n * @param stage \r\n * @param action \r\n * @param step \r\n * @param workflowActionsWorkflowActionStepModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, step: string, workflowActionsWorkflowActionStepModel?: WorkflowActionsWorkflowActionStepModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, step: string, workflowActionsWorkflowActionStepModel?: WorkflowActionsWorkflowActionStepModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, step: string, workflowActionsWorkflowActionStepModel?: WorkflowActionsWorkflowActionStepModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateWorkflowStageActionStep(template: string, workflow: string, stage: string, action: string, step: string, workflowActionsWorkflowActionStepModel?: WorkflowActionsWorkflowActionStepModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateWorkflowStageActionStep.');\r\n }\r\n if (workflow === null || workflow === undefined) {\r\n throw new Error('Required parameter workflow was null or undefined when calling updateWorkflowStageActionStep.');\r\n }\r\n if (stage === null || stage === undefined) {\r\n throw new Error('Required parameter stage was null or undefined when calling updateWorkflowStageActionStep.');\r\n }\r\n if (action === null || action === undefined) {\r\n throw new Error('Required parameter action was null or undefined when calling updateWorkflowStageActionStep.');\r\n }\r\n if (step === null || step === undefined) {\r\n throw new Error('Required parameter step was null or undefined when calling updateWorkflowStageActionStep.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Templates/${encodeURIComponent(String(template))}/Workflows/${encodeURIComponent(String(workflow))}/Stages/${encodeURIComponent(String(stage))}/Actions/${encodeURIComponent(String(action))}/Steps/${encodeURIComponent(String(step))}`,\r\n workflowActionsWorkflowActionStepModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { WorkflowStagesRegisterModel } from '../model/workflowStagesRegisterModel';\r\nimport { WorkflowStagesUpdateModel } from '../model/workflowStagesUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateWorkflowStageService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param workflow \r\n * @param workflowStagesRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addWorkflowStages(template: string, workflow: string, workflowStagesRegisterModel?: WorkflowStagesRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addWorkflowStages(template: string, workflow: string, workflowStagesRegisterModel?: WorkflowStagesRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addWorkflowStages(template: string, workflow: string, workflowStagesRegisterModel?: WorkflowStagesRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addWorkflowStages(template: string, workflow: string, workflowStagesRegisterModel?: WorkflowStagesRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addWorkflowStages.');\r\n }\r\n if (workflow === null || workflow === undefined) {\r\n throw new Error('Required parameter workflow was null or undefined when calling addWorkflowStages.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Tenants/Templates/${encodeURIComponent(String(template))}/Workflows/${encodeURIComponent(String(workflow))}/Stages`,\r\n workflowStagesRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param workflow \r\n * @param id \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteWorkflowStages(template: string, workflow: string, id?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteWorkflowStages(template: string, workflow: string, id?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteWorkflowStages(template: string, workflow: string, id?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteWorkflowStages(template: string, workflow: string, id?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling deleteWorkflowStages.');\r\n }\r\n if (workflow === null || workflow === undefined) {\r\n throw new Error('Required parameter workflow was null or undefined when calling deleteWorkflowStages.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('id', id);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Tenants/Templates/${encodeURIComponent(String(template))}/Workflows/${encodeURIComponent(String(workflow))}/Stages`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param template \r\n * @param workflow \r\n * @param workflowStagesUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateWorkflowStages(template: string, workflow: string, workflowStagesUpdateModel?: WorkflowStagesUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateWorkflowStages(template: string, workflow: string, workflowStagesUpdateModel?: WorkflowStagesUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateWorkflowStages(template: string, workflow: string, workflowStagesUpdateModel?: WorkflowStagesUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateWorkflowStages(template: string, workflow: string, workflowStagesUpdateModel?: WorkflowStagesUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling updateWorkflowStages.');\r\n }\r\n if (workflow === null || workflow === undefined) {\r\n throw new Error('Required parameter workflow was null or undefined when calling updateWorkflowStages.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Tenants/Templates/${encodeURIComponent(String(template))}/Workflows/${encodeURIComponent(String(workflow))}/Stages`,\r\n workflowStagesUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { WorkflowStageBehaviorsRegisterModel } from '../model/workflowStageBehaviorsRegisterModel';\r\nimport { WorkflowStageBehaviorsUpdateModel } from '../model/workflowStageBehaviorsUpdateModel';\r\nimport { WorkflowStageBehaviorsWorkflowStageBehaviorViewModel } from '../model/workflowStageBehaviorsWorkflowStageBehaviorViewModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TemplateWorkflowStageBehaviorService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param workflowStageBehaviorsRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addWorkflowStageBehavior(workflowStageBehaviorsRegisterModel?: WorkflowStageBehaviorsRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addWorkflowStageBehavior(workflowStageBehaviorsRegisterModel?: WorkflowStageBehaviorsRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addWorkflowStageBehavior(workflowStageBehaviorsRegisterModel?: WorkflowStageBehaviorsRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addWorkflowStageBehavior(workflowStageBehaviorsRegisterModel?: WorkflowStageBehaviorsRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Tenants/Templates/Workflows/Stages/Behaviors`,\r\n workflowStageBehaviorsRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteWorkflowStageBehavior(id?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteWorkflowStageBehavior(id?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteWorkflowStageBehavior(id?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteWorkflowStageBehavior(id?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('id', id);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Tenants/Templates/Workflows/Stages/Behaviors`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getWorkflowStageBehavior(id: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getWorkflowStageBehavior(id: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getWorkflowStageBehavior(id: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getWorkflowStageBehavior(id: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling getWorkflowStageBehavior.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Templates/Workflows/Stages/Behaviors/${encodeURIComponent(String(id))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param name \r\n * @param query \r\n * @param shortName \r\n * @param description \r\n * @param fields ShortName=Value&ShortName2=Value2; ie. model=911\r\n * @param pageSize \r\n * @param pageNumber \r\n * @param personId \r\n * @param tenantId \r\n * @param tenantShortName \r\n * @param schema \r\n * @param order \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getWorkflowStageBehaviors(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'body', reportProgress?: boolean): Observable>;\r\n public getWorkflowStageBehaviors(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'response', reportProgress?: boolean): Observable>>;\r\n public getWorkflowStageBehaviors(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe?: 'events', reportProgress?: boolean): Observable>>;\r\n public getWorkflowStageBehaviors(id?: string, name?: string, query?: string, shortName?: string, description?: string, fields?: Array, pageSize?: number, pageNumber?: number, personId?: string, tenantId?: string, tenantShortName?: string, schema?: string, order?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('Id', id);\r\n }\r\n if (name !== undefined) {\r\n queryParameters = queryParameters.set('Name', name);\r\n }\r\n if (query !== undefined) {\r\n queryParameters = queryParameters.set('Query', query);\r\n }\r\n if (shortName !== undefined) {\r\n queryParameters = queryParameters.set('ShortName', shortName);\r\n }\r\n if (description !== undefined) {\r\n queryParameters = queryParameters.set('Description', description);\r\n }\r\n if (fields) {\r\n fields.forEach((element) => {\r\n queryParameters = queryParameters.append('fields', element);\r\n })\r\n }\r\n if (pageSize !== undefined) {\r\n queryParameters = queryParameters.set('PageSize', pageSize);\r\n }\r\n if (pageNumber !== undefined) {\r\n queryParameters = queryParameters.set('PageNumber', pageNumber);\r\n }\r\n if (personId !== undefined) {\r\n queryParameters = queryParameters.set('PersonId', personId);\r\n }\r\n if (tenantId !== undefined) {\r\n queryParameters = queryParameters.set('TenantId', tenantId);\r\n }\r\n if (tenantShortName !== undefined) {\r\n queryParameters = queryParameters.set('TenantShortName', tenantShortName);\r\n }\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('Schema', schema);\r\n }\r\n if (order !== undefined) {\r\n queryParameters = queryParameters.set('Order', order);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get>(`${this.basePath}/api/v1/Tenants/Templates/Workflows/Stages/Behaviors`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param workflowStageBehaviorsUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateWorkflowStageBehavior(workflowStageBehaviorsUpdateModel?: WorkflowStageBehaviorsUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateWorkflowStageBehavior(workflowStageBehaviorsUpdateModel?: WorkflowStageBehaviorsUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateWorkflowStageBehavior(workflowStageBehaviorsUpdateModel?: WorkflowStageBehaviorsUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateWorkflowStageBehavior(workflowStageBehaviorsUpdateModel?: WorkflowStageBehaviorsUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Tenants/Templates/Workflows/Stages/Behaviors`,\r\n workflowStageBehaviorsUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfTenantsRegisterModel } from '../model/apiResultOfTenantsRegisterModel';\r\nimport { ApiResultOfTenantsTenantViewModel } from '../model/apiResultOfTenantsTenantViewModel';\r\nimport { ApiResultOfTenantsUpdateModel } from '../model/apiResultOfTenantsUpdateModel';\r\nimport { ApiResultsOfTenantsTenantViewModel } from '../model/apiResultsOfTenantsTenantViewModel';\r\nimport { TenantsRegisterModel } from '../model/tenantsRegisterModel';\r\nimport { TenantsUpdateModel } from '../model/tenantsUpdateModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TenantService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param tenantsRegisterModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addTenant(tenantsRegisterModel?: TenantsRegisterModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public addTenant(tenantsRegisterModel?: TenantsRegisterModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public addTenant(tenantsRegisterModel?: TenantsRegisterModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public addTenant(tenantsRegisterModel?: TenantsRegisterModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Tenants`,\r\n tenantsRegisterModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param shortname \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public deleteTenant(shortname: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public deleteTenant(shortname: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public deleteTenant(shortname: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public deleteTenant(shortname: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (shortname === null || shortname === undefined) {\r\n throw new Error('Required parameter shortname was null or undefined when calling deleteTenant.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.delete(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(shortname))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param shortname \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getTenant(shortname: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getTenant(shortname: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getTenant(shortname: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getTenant(shortname: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (shortname === null || shortname === undefined) {\r\n throw new Error('Required parameter shortname was null or undefined when calling getTenant.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(shortname))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param name \r\n * @param query \r\n * @param shortName \r\n * @param description \r\n * @param pageSize \r\n * @param pageNumber \r\n * @param schema \r\n * @param order \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getTenants(id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getTenants(id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getTenants(id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getTenants(id?: string, name?: string, query?: string, shortName?: string, description?: string, pageSize?: number, pageNumber?: number, schema?: string, order?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (id !== undefined) {\r\n queryParameters = queryParameters.set('Id', id);\r\n }\r\n if (name !== undefined) {\r\n queryParameters = queryParameters.set('Name', name);\r\n }\r\n if (query !== undefined) {\r\n queryParameters = queryParameters.set('Query', query);\r\n }\r\n if (shortName !== undefined) {\r\n queryParameters = queryParameters.set('ShortName', shortName);\r\n }\r\n if (description !== undefined) {\r\n queryParameters = queryParameters.set('Description', description);\r\n }\r\n if (pageSize !== undefined) {\r\n queryParameters = queryParameters.set('PageSize', pageSize);\r\n }\r\n if (pageNumber !== undefined) {\r\n queryParameters = queryParameters.set('PageNumber', pageNumber);\r\n }\r\n if (schema !== undefined) {\r\n queryParameters = queryParameters.set('Schema', schema);\r\n }\r\n if (order !== undefined) {\r\n queryParameters = queryParameters.set('Order', order);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param shortname \r\n * @param tenantsUpdateModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public updateTenant(shortname: string, tenantsUpdateModel?: TenantsUpdateModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public updateTenant(shortname: string, tenantsUpdateModel?: TenantsUpdateModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public updateTenant(shortname: string, tenantsUpdateModel?: TenantsUpdateModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public updateTenant(shortname: string, tenantsUpdateModel?: TenantsUpdateModel, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (shortname === null || shortname === undefined) {\r\n throw new Error('Required parameter shortname was null or undefined when calling updateTenant.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Tenants/${encodeURIComponent(String(shortname))}`,\r\n tenantsUpdateModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfBoolean } from '../model/apiResultOfBoolean';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class TestsService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param templateName \r\n * @param lang \r\n * @param document \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public testEmailTemplate(templateName: string, lang: string, document: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public testEmailTemplate(templateName: string, lang: string, document: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public testEmailTemplate(templateName: string, lang: string, document: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public testEmailTemplate(templateName: string, lang: string, document: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (templateName === null || templateName === undefined) {\r\n throw new Error('Required parameter templateName was null or undefined when calling testEmailTemplate.');\r\n }\r\n if (lang === null || lang === undefined) {\r\n throw new Error('Required parameter lang was null or undefined when calling testEmailTemplate.');\r\n }\r\n if (document === null || document === undefined) {\r\n throw new Error('Required parameter document was null or undefined when calling testEmailTemplate.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/system/tests/mailtemplate/${encodeURIComponent(String(templateName))}/${encodeURIComponent(String(lang))}/${encodeURIComponent(String(document))}`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param emailAddress \r\n * @param subject \r\n * @param body \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public testSendingEmail(emailAddress?: string, subject?: string, body?: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public testSendingEmail(emailAddress?: string, subject?: string, body?: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public testSendingEmail(emailAddress?: string, subject?: string, body?: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public testSendingEmail(emailAddress?: string, subject?: string, body?: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (emailAddress !== undefined) {\r\n queryParameters = queryParameters.set('emailAddress', emailAddress);\r\n }\r\n if (subject !== undefined) {\r\n queryParameters = queryParameters.set('subject', subject);\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json-patch+json',\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/system/tests/sendmail`,\r\n body,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultsOfMenuApplicationMenuItemViewModel } from '../model/apiResultsOfMenuApplicationMenuItemViewModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class UserMenuService {\r\n\r\n protected basePath = 'http://localhost';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if(!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \"+ token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getUserMenuItems(observe?: 'body', reportProgress?: boolean): Observable;\r\n public getUserMenuItems(observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getUserMenuItems(observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getUserMenuItems(observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/user/menu/items`,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","export interface ConfigurationParameters {\r\n apiKeys?: {[ key: string ]: string};\r\n username?: string;\r\n password?: string;\r\n accessToken?: string | (() => string);\r\n basePath?: string;\r\n withCredentials?: boolean;\r\n}\r\n\r\nexport class Configuration {\r\n apiKeys?: {[ key: string ]: string};\r\n username?: string;\r\n password?: string;\r\n accessToken?: string | (() => string);\r\n basePath?: string;\r\n withCredentials?: boolean;\r\n\r\n constructor(configurationParameters: ConfigurationParameters = {}) {\r\n this.apiKeys = configurationParameters.apiKeys;\r\n this.username = configurationParameters.username;\r\n this.password = configurationParameters.password;\r\n this.accessToken = configurationParameters.accessToken;\r\n this.basePath = configurationParameters.basePath;\r\n this.withCredentials = configurationParameters.withCredentials;\r\n }\r\n\r\n /**\r\n * Select the correct content-type to use for a request.\r\n * Uses {@link Configuration#isJsonMime} to determine the correct content-type.\r\n * If no content type is found return the first found type if the contentTypes is not empty\r\n * @param {string[]} contentTypes - the array of content types that are available for selection\r\n * @returns {string} the selected content-type or undefined if no selection could be made.\r\n */\r\n public selectHeaderContentType (contentTypes: string[]): string | undefined {\r\n if (contentTypes.length == 0) {\r\n return undefined;\r\n }\r\n\r\n let type = contentTypes.find(x => this.isJsonMime(x));\r\n if (type === undefined) {\r\n return contentTypes[0];\r\n }\r\n return type;\r\n }\r\n\r\n /**\r\n * Select the correct accept content-type to use for a request.\r\n * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.\r\n * If no content type is found return the first found type if the contentTypes is not empty\r\n * @param {string[]} accepts - the array of content types that are available for selection.\r\n * @returns {string} the selected content-type or undefined if no selection could be made.\r\n */\r\n public selectHeaderAccept(accepts: string[]): string | undefined {\r\n if (accepts.length == 0) {\r\n return undefined;\r\n }\r\n\r\n let type = accepts.find(x => this.isJsonMime(x));\r\n if (type === undefined) {\r\n return accepts[0];\r\n }\r\n return type;\r\n }\r\n\r\n /**\r\n * Check if the given MIME is a JSON MIME.\r\n * JSON MIME examples:\r\n * application/json\r\n * application/json; charset=UTF8\r\n * APPLICATION/JSON\r\n * application/vnd.company+json\r\n * @param {string} mime - MIME (Multipurpose Internet Mail Extensions)\r\n * @return {boolean} True if the given MIME is JSON, false otherwise.\r\n */\r\n public isJsonMime(mime: string): boolean {\r\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\r\n return mime != null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\r\n }\r\n}\r\n"," import { HttpUrlEncodingCodec } from '@angular/common/http';\r\n\r\n/**\r\n* CustomHttpUrlEncodingCodec\r\n* Fix plus sign (+) not encoding, so sent as blank space\r\n* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318\r\n*/\r\nexport class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {\r\n encodeKey(k: string): string {\r\n k = super.encodeKey(k);\r\n return k.replace(/\\+/gi, '%2B');\r\n }\r\n encodeValue(v: string): string {\r\n v = super.encodeValue(v);\r\n return v.replace(/\\+/gi, '%2B').replace(\"=\",'%3D');\r\n }\r\n}\r\n\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface ApiResultOfBoolean { \r\n success?: boolean;\r\n warnings?: any;\r\n info?: any;\r\n data?: boolean;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface ApiResultOfInt32 { \r\n success?: boolean;\r\n warnings?: any;\r\n info?: any;\r\n data?: number;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type AttachmentFileSourceType = 0 | 1 | 2 | 3;\r\n\r\nexport const AttachmentFileSourceType = {\r\n NUMBER_0: 0 as AttachmentFileSourceType,\r\n NUMBER_1: 1 as AttachmentFileSourceType,\r\n NUMBER_2: 2 as AttachmentFileSourceType,\r\n NUMBER_3: 3 as AttachmentFileSourceType\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface AttachmentsAttachmentViewModel { \r\n guid?: string;\r\n name?: string;\r\n description?: string;\r\n contentType?: string;\r\n length?: number;\r\n content?: string;\r\n documentGuid?: string;\r\n fieldGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface DocumentActorsDeleteModel { \r\n documentGuid?: string;\r\n roleShortName?: string;\r\n actorGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface DocumentActorsDocumentActorViewModel { \r\n guid?: string;\r\n name?: string;\r\n firstname?: string;\r\n surname?: string;\r\n email?: string;\r\n origin?: any;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface DocumentActorsRegisterModel { \r\n documentGuid?: string;\r\n roleGuid?: string;\r\n actorGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface DocumentActorsUpdateModel { \r\n guid?: string;\r\n documentGuid?: string;\r\n roleGuid?: string;\r\n actorGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface DocumentStagesDocumentStageSimpleViewModel { \r\n name?: string;\r\n shortName?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface DocumentStagesDocumentTimerViewModel { \r\n guid?: string;\r\n name?: string;\r\n shortName?: string;\r\n isActive?: boolean;\r\n lastExecuteDate?: Date;\r\n nextExecuteDate?: Date;\r\n executionCount?: number;\r\n performActionGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface DocumentsDictionaryItemViewModel { \r\n guid?: string;\r\n key?: string;\r\n value?: any;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface DocumentsDocumentActionViewModel { \r\n guid?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n workflowStageGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface DocumentsDocumentChildViewModel { \r\n guid?: string;\r\n name?: string;\r\n description?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface DocumentsDocumentValueChangeViewModel { \r\n documentGuid?: string;\r\n fieldShortName?: string;\r\n fieldName?: string;\r\n fieldGuid?: string;\r\n date?: Date;\r\n oldValue?: any;\r\n newValue?: any;\r\n personGuid?: string;\r\n personName?: string;\r\n personRoleName?: string;\r\n}\r\n","/**\r\n * Integrum Project API\r\n * Integrum Project API v2\r\n *\r\n * OpenAPI spec version: v2\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface DocumentsDocumentsFieldsAggregatesViewModel { \r\n fieldShortName?: string;\r\n function?: string;\r\n value?: any;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type EntityStatus = 0 | 1 | 2 | 4 | -1;\r\n\r\nexport const EntityStatus = {\r\n NUMBER_0: 0 as EntityStatus,\r\n NUMBER_1: 1 as EntityStatus,\r\n NUMBER_2: 2 as EntityStatus,\r\n NUMBER_4: 4 as EntityStatus,\r\n NUMBER_MINUS_1: -1 as EntityStatus\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface ExportExportConfigColumn { \r\n shortName?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface FormControlsRegisterModel { \r\n shortName?: string;\r\n label?: string;\r\n order?: number;\r\n formGuid?: string;\r\n fieldGuid?: string;\r\n actionGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface FormControlsUpdateModel { \r\n guid?: string;\r\n shortName?: string;\r\n label?: string;\r\n order?: number;\r\n formGuid?: string;\r\n fieldGuid?: string;\r\n actionGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface FormsRegisterModel { \r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n engine?: string;\r\n isDefault?: boolean;\r\n source?: string;\r\n templateGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface FormsUpdateModel { \r\n guid?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n engine?: string;\r\n isDefault?: boolean;\r\n source?: string;\r\n templateGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type IntegrumInfraCrossCuttingIdentityAuthorizationSignOutMethod = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;\r\n\r\nexport const IntegrumInfraCrossCuttingIdentityAuthorizationSignOutMethod = {\r\n NUMBER_0: 0 as IntegrumInfraCrossCuttingIdentityAuthorizationSignOutMethod,\r\n NUMBER_1: 1 as IntegrumInfraCrossCuttingIdentityAuthorizationSignOutMethod,\r\n NUMBER_2: 2 as IntegrumInfraCrossCuttingIdentityAuthorizationSignOutMethod,\r\n NUMBER_3: 3 as IntegrumInfraCrossCuttingIdentityAuthorizationSignOutMethod,\r\n NUMBER_4: 4 as IntegrumInfraCrossCuttingIdentityAuthorizationSignOutMethod,\r\n NUMBER_5: 5 as IntegrumInfraCrossCuttingIdentityAuthorizationSignOutMethod,\r\n NUMBER_6: 6 as IntegrumInfraCrossCuttingIdentityAuthorizationSignOutMethod,\r\n NUMBER_7: 7 as IntegrumInfraCrossCuttingIdentityAuthorizationSignOutMethod\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface LicenceInfoViewModel { \r\n maxActiveUsersCount?: number;\r\n currentActiveUsersCount?: number;\r\n currentCCU?: number;\r\n maxCCU?: number;\r\n currentTotalUsersCount?: number;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface LoginViewModel { \r\n email: string;\r\n password: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface MenuApplicationMenuItemViewModel { \r\n expression?: string;\r\n name?: string;\r\n type?: number;\r\n icon?: any;\r\n order?: number;\r\n counterName?: string;\r\n counterValue?: number;\r\n}\r\n","/**\r\n * Integrum Project API\r\n * Integrum Project API v2\r\n *\r\n * OpenAPI spec version: v2\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type ModelsQueriesQueryOperator = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;\r\n\r\nexport const ModelsQueriesQueryOperator = {\r\n Contains: 0 as ModelsQueriesQueryOperator,\r\n Equal: 1 as ModelsQueriesQueryOperator,\r\n NotEqual: 2 as ModelsQueriesQueryOperator,\r\n GreaterThen: 3 as ModelsQueriesQueryOperator,\r\n GreaterThenOrEqual: 4 as ModelsQueriesQueryOperator,\r\n LessThen: 5 as ModelsQueriesQueryOperator,\r\n LessThenOrEqual: 6 as ModelsQueriesQueryOperator,\r\n Between: 7 as ModelsQueriesQueryOperator,\r\n StartsWith: 8 as ModelsQueriesQueryOperator,\r\n EndsWith: 9 as ModelsQueriesQueryOperator,\r\n NotContains: 10 as ModelsQueriesQueryOperator,\r\n}\r\n","/**\r\n * Integrum Project API\r\n * Integrum Project API v2\r\n *\r\n * OpenAPI spec version: v2\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface ModelsQueriesQueryOrderCondition { \r\n key?: string;\r\n ascending?: boolean;\r\n}\r\n","/**\r\n * Integrum Project API\r\n * Integrum Project API v2\r\n *\r\n * OpenAPI spec version: v2\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type ModelsViewConfigsViewConfigFieldAggregate = 1 | 2 | 5 | 6 | 1001;\r\n\r\nexport const ModelsViewConfigsViewConfigFieldAggregate = {\r\n NUMBER_1: 1 as ModelsViewConfigsViewConfigFieldAggregate,\r\n NUMBER_2: 2 as ModelsViewConfigsViewConfigFieldAggregate,\r\n NUMBER_5: 5 as ModelsViewConfigsViewConfigFieldAggregate,\r\n NUMBER_6: 6 as ModelsViewConfigsViewConfigFieldAggregate,\r\n NUMBER_1001: 1001 as ModelsViewConfigsViewConfigFieldAggregate\r\n}\r\n","/**\r\n * Integrum Project API\r\n * Integrum Project API v2\r\n *\r\n * OpenAPI spec version: v2\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type ModelsViewConfigsViewConfigFieldKind = 0 | 1 | 2 | 3 | 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | 20 | 21;\r\n\r\nexport const ModelsViewConfigsViewConfigFieldKind = {\r\n NUMBER_0: 0 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_1: 1 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_2: 2 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_3: 3 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_4: 4 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_5: 5 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_8: 8 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_9: 9 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_10: 10 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_11: 11 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_12: 12 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_13: 13 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_20: 20 as ModelsViewConfigsViewConfigFieldKind,\r\n NUMBER_21: 21 as ModelsViewConfigsViewConfigFieldKind\r\n}\r\n","/**\r\n * Integrum Project API\r\n * Integrum Project API v2\r\n *\r\n * OpenAPI spec version: v2\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type ModelsViewConfigsViewConfigKind = 0 | 1 | 2;\r\n\r\nexport const ModelsViewConfigsViewConfigKind = {\r\n NUMBER_0: 0 as ModelsViewConfigsViewConfigKind,\r\n NUMBER_1: 1 as ModelsViewConfigsViewConfigKind,\r\n NUMBER_2: 2 as ModelsViewConfigsViewConfigKind\r\n}\r\n","/**\r\n * Integrum Project API\r\n * Integrum Project API v1\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type NotificationType = 1000;\r\n\r\nexport const NotificationType = {\r\n NUMBER_1000: 1000 as NotificationType\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface NotificationsNotificationViewModel { \r\n id?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n title?: string;\r\n content?: string;\r\n templateId?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface NotificationsRegisterModel { \r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n title?: string;\r\n content?: string;\r\n templateId?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface NotificationsUpdateModel { \r\n id?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n title?: string;\r\n content?: string;\r\n templateId?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type PrimaryFieldRuleType = 0 | 1 | 2 | 3 | 5 | 10 | 15 | 16 | 17 | 18 | 20 | 21 | 22 | 23 | 26 | 31 | 32 | 33 | 34 | 35 | 40;\r\n\r\nexport const PrimaryFieldRuleType = {\r\n NUMBER_0: 0 as PrimaryFieldRuleType,\r\n NUMBER_1: 1 as PrimaryFieldRuleType,\r\n NUMBER_2: 2 as PrimaryFieldRuleType,\r\n NUMBER_3: 3 as PrimaryFieldRuleType,\r\n NUMBER_5: 5 as PrimaryFieldRuleType,\r\n NUMBER_10: 10 as PrimaryFieldRuleType,\r\n NUMBER_15: 15 as PrimaryFieldRuleType,\r\n NUMBER_16: 16 as PrimaryFieldRuleType,\r\n NUMBER_17: 17 as PrimaryFieldRuleType,\r\n NUMBER_18: 18 as PrimaryFieldRuleType,\r\n NUMBER_20: 20 as PrimaryFieldRuleType,\r\n NUMBER_21: 21 as PrimaryFieldRuleType,\r\n NUMBER_22: 22 as PrimaryFieldRuleType,\r\n NUMBER_23: 23 as PrimaryFieldRuleType,\r\n NUMBER_26: 26 as PrimaryFieldRuleType,\r\n NUMBER_31: 31 as PrimaryFieldRuleType,\r\n NUMBER_32: 32 as PrimaryFieldRuleType,\r\n NUMBER_33: 33 as PrimaryFieldRuleType,\r\n NUMBER_34: 34 as PrimaryFieldRuleType,\r\n NUMBER_35: 35 as PrimaryFieldRuleType,\r\n NUMBER_40: 40 as PrimaryFieldRuleType,\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type PrimaryFieldType = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;\r\n\r\nexport const PrimaryFieldType = {\r\n NUMBER_1: 1 as PrimaryFieldType,\r\n NUMBER_2: 2 as PrimaryFieldType,\r\n NUMBER_3: 3 as PrimaryFieldType,\r\n NUMBER_4: 4 as PrimaryFieldType,\r\n NUMBER_5: 5 as PrimaryFieldType,\r\n NUMBER_6: 6 as PrimaryFieldType,\r\n NUMBER_7: 7 as PrimaryFieldType,\r\n NUMBER_8: 8 as PrimaryFieldType,\r\n NUMBER_9: 9 as PrimaryFieldType\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type PrimaryRoleType = 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 1000 | -1;\r\n\r\nexport const PrimaryRoleType = {\r\n NUMBER_0: 0 as PrimaryRoleType,\r\n NUMBER_1: 1 as PrimaryRoleType,\r\n NUMBER_2: 2 as PrimaryRoleType,\r\n NUMBER_4: 4 as PrimaryRoleType,\r\n NUMBER_8: 8 as PrimaryRoleType,\r\n NUMBER_16: 16 as PrimaryRoleType,\r\n NUMBER_32: 32 as PrimaryRoleType,\r\n NUMBER_64: 64 as PrimaryRoleType,\r\n NUMBER_128: 128 as PrimaryRoleType,\r\n NUMBER_256: 256 as PrimaryRoleType,\r\n NUMBER_1000: 1000 as PrimaryRoleType,\r\n NUMBER_MINUS_1: -1 as PrimaryRoleType\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type PrimaryStageBehaviorType = 1 | 2 | 3 | 4 | 10 | 11 | 20;\r\n\r\nexport const PrimaryStageBehaviorType = {\r\n NUMBER_1: 1 as PrimaryStageBehaviorType,\r\n NUMBER_2: 2 as PrimaryStageBehaviorType,\r\n NUMBER_3: 3 as PrimaryStageBehaviorType,\r\n NUMBER_4: 4 as PrimaryStageBehaviorType,\r\n NUMBER_10: 10 as PrimaryStageBehaviorType,\r\n NUMBER_11: 11 as PrimaryStageBehaviorType,\r\n NUMBER_20: 20 as PrimaryStageBehaviorType\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface RegisterViewModel { \r\n email: string;\r\n password: string;\r\n confirmPassword?: string;\r\n invitationCode?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface ReportsDashboardWidgetParameterValueViewModel { \r\n label?: string;\r\n value?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface ReportsItemColumnViewModel { \r\n name?: string;\r\n shortName?: string;\r\n fieldType?: number;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface ReportsItemSeriesViewModel { \r\n number?: number;\r\n name?: string;\r\n shortName?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface ResetPasswordRequestModel { \r\n email: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface ResetPasswordViewModel { \r\n email: string;\r\n password: string;\r\n confirmPassword?: string;\r\n token?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface RevokeLoginViewModel { \r\n refreshToken: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface RolesRegisterModel { \r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n roleType?: number;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface RolesUpdateModel { \r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n roleType?: number;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface StructureFieldsStructureFieldViewModel { \r\n guid?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n fieldsGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface TemplatesDeleteModel { \r\n templateShortName?: string;\r\n tenantShortName?: string;\r\n roleShortName?: string;\r\n actorGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface TemplatesRegisterActorModel { \r\n templateGuid?: string;\r\n roleGuid?: string;\r\n actorGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface TemplatesRegisterModel { \r\n version?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n previousVersionGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface TemplatesTemplateNameCases {\r\n gender?: string;\r\n accusative?: string;\r\n nominative?: string;\r\n plural?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface TemplatesTemplatePermissionViewModel { \r\n creatorRole?: boolean;\r\n moderatorRole?: boolean;\r\n administratorRole?: boolean;\r\n masterReaderRole?: boolean;\r\n roles?: Array;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface TemplatesTemplateSimpleViewModel { \r\n guid?: string;\r\n version?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n moduleName?: string;\r\n tenantGuid?: string;\r\n previousVersionGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface TemplatesUpdateModel { \r\n version?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport type TemplatesWorkflowWorkflowActionStepType = 0 | 1 | 10 | 20 | 30 | 50 | 51 | 80 | 1000 | 1001;\r\n\r\nexport const TemplatesWorkflowWorkflowActionStepType = {\r\n NUMBER_0: 0 as TemplatesWorkflowWorkflowActionStepType,\r\n NUMBER_1: 1 as TemplatesWorkflowWorkflowActionStepType,\r\n NUMBER_10: 10 as TemplatesWorkflowWorkflowActionStepType,\r\n NUMBER_20: 20 as TemplatesWorkflowWorkflowActionStepType,\r\n NUMBER_30: 30 as TemplatesWorkflowWorkflowActionStepType,\r\n NUMBER_50: 50 as TemplatesWorkflowWorkflowActionStepType,\r\n NUMBER_51: 51 as TemplatesWorkflowWorkflowActionStepType,\r\n NUMBER_80: 80 as TemplatesWorkflowWorkflowActionStepType,\r\n NUMBER_1000: 1000 as TemplatesWorkflowWorkflowActionStepType,\r\n NUMBER_1001: 1001 as TemplatesWorkflowWorkflowActionStepType\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface TenantsRegisterModel { \r\n guid?: string;\r\n name?: string;\r\n shortName?: string;\r\n description?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface TenantsUpdateModel { \r\n name?: string;\r\n shortName?: string;\r\n description?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface TimeSpan { \r\n readonly ticks?: number;\r\n readonly days?: number;\r\n readonly hours?: number;\r\n readonly milliseconds?: number;\r\n readonly minutes?: number;\r\n readonly seconds?: number;\r\n readonly totalDays?: number;\r\n readonly totalHours?: number;\r\n readonly totalMilliseconds?: number;\r\n readonly totalMinutes?: number;\r\n readonly totalSeconds?: number;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface WorkflowActionConditionsRegisterModel { \r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n workflowActionGuid?: string;\r\n roleGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface WorkflowActionConditionsUpdateModel { \r\n guid?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n workflowActionGuid?: string;\r\n roleGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface WorkflowActionConditionsWorkflowActionConditionViewModel { \r\n guid?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n workflowActionGuid?: string;\r\n roleGuid?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface WorkflowActionsRegisterModel { \r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface WorkflowActionsUpdateModel { \r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface WorkflowActionsWorkflowActionStepModel { \r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n type?: number;\r\n parameters?: any;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface WorkflowStagesRegisterModel { \r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n activeRole?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface WorkflowStagesUpdateModel { \r\n guid?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n activeRole?: string;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface WorkflowsRegisterModel { \r\n version?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n isDefault?: boolean;\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface WorkflowsUpdateModel { \r\n guid?: string;\r\n version?: string;\r\n name?: string;\r\n description?: string;\r\n shortName?: string;\r\n isDefault?: boolean;\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\n\r\nexport const BASE_PATH = new InjectionToken('basePath');\r\nexport const COLLECTION_FORMATS = {\r\n 'csv': ',',\r\n 'tsv': ' ',\r\n 'ssv': ' ',\r\n 'pipes': '|'\r\n}\r\n","import { NgModule } from '@angular/core';\r\n\r\nimport { DocumentService } from './api/document.service';\r\nimport { TemplateService } from './api/template.service';\r\nimport { ReportsService } from './api/reports.service';\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [],\r\n exports: [],\r\n providers: [\r\n DocumentService, TemplateService, ReportsService\r\n ]\r\n})\r\nexport class ApiExtensionsModule {\r\n}\r\n","export * from './document.service';\r\nimport { DocumentService } from './document.service';\r\n\r\nexport * from './template.service';\r\nimport { TemplateService } from './template.service';\r\nexport * from './reports.service';\r\nimport { ReportsService } from './reports.service';\r\nexport const APIS_EXTENSIONS = [DocumentService, TemplateService, ReportsService];\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n *\r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ApiResultOfDocumentsDocumentModel } from '../../core/model/apiResultOfDocumentsDocumentModel';\r\nimport { DocumentsDocumentModel } from '../../core/model/documentsDocumentModel';\r\n\r\nimport { DocumentService as DocumentServiceCore } from '../../core/api/document.service';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../../core/variables';\r\nimport { Configuration } from '../../core/configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\nimport { CustomHttpUrlEncodingCodec } from '../../core/encoder';\r\nimport { ApiResultsOfDocumentsDocumentViewModel, ApiResultsOfAttachmentFile } from '../../core';\r\nimport { Attachment } from '../model/models';\r\n\r\n\r\n@Injectable()\r\nexport class DocumentService extends DocumentServiceCore {\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration,\r\n protected authService: NbAuthService) {\r\n super(httpClient, basePath, configuration, authService);\r\n }\r\n\r\n /**\r\n *\r\n *\r\n * @param template\r\n * @param formData\r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public addDocumentForm(template: string, formData: FormData, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addDocument.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys['Authorization']) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys['Authorization']);\r\n }\r\n\r\n // to determine the Accept header\r\n const httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected !== undefined) {\r\n headers = headers.set('Accept', httpHeaderAcceptSelected);\r\n }\r\n\r\n // // to determine the Content-Type header\r\n // let consumes: string[] = [\r\n // 'application/json'\r\n // ];\r\n // let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n // if (httpContentTypeSelected != undefined) {\r\n // headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n // }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(template))}`,\r\n formData,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n public updateDocumentForm(document: string, formData: FormData, observe: any = 'body',\r\n reportProgress: boolean = false ): Observable {\r\n if (document === null || document === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling addDocument.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys['Authorization']) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys['Authorization']);\r\n }\r\n\r\n // to determine the Accept header\r\n const httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected !== undefined) {\r\n headers = headers.set('Accept', httpHeaderAcceptSelected);\r\n }\r\n\r\n // // to determine the Content-Type header\r\n // let consumes: string[] = [\r\n // 'application/json'\r\n // ];\r\n // let httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n // if (httpContentTypeSelected != undefined) {\r\n // headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n // }\r\n\r\n return this.httpClient.put(`${this.basePath}/api/v1/Documents/${document}`,\r\n formData,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param id \r\n * @param fieldShortName \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public uploadAttachments(id: string, fieldShortName: string, attachments: Attachment[] ,observe?: 'body', reportProgress?: boolean): Observable;\r\n public uploadAttachments(id: string, fieldShortName: string, attachments: Attachment[], observe?: 'response', reportProgress?: boolean): Observable>;\r\n public uploadAttachments(id: string, fieldShortName: string, attachments: Attachment[], observe?: 'events', reportProgress?: boolean): Observable>;\r\n public uploadAttachments(id: string, fieldShortName: string, attachments: Attachment[], observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (id === null || id === undefined) {\r\n throw new Error('Required parameter id was null or undefined when calling addAttachment.');\r\n }\r\n if (fieldShortName === null || fieldShortName === undefined) {\r\n throw new Error('Required parameter fieldShortName was null or undefined when calling addAttachment.');\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n let formData: FormData = new FormData();\r\n for (let index = 0; index < attachments.length; index++) {\r\n const attachment = attachments[index];\r\n formData.append(attachment.guid, attachment.file, attachment.filename);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/api/v1/Documents/${encodeURIComponent(String(id))}/attachment/${encodeURIComponent(String(fieldShortName))}`,\r\n formData,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../../core/encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { ReportsService as ReportsServiceCore } from '../../core/api/reports.service';\r\nimport { ApiResultOfReportsDashboardViewModel } from '../../core/model/apiResultOfReportsDashboardViewModel';\r\nimport { ApiResultOfReportsViewModel } from '../../core/model/apiResultOfReportsViewModel';\r\nimport { ApiResultsOfReportsDashboardViewModel } from '../../core/model/apiResultsOfReportsDashboardViewModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../../core/variables';\r\nimport { Configuration } from '../../core/configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class ReportsService extends ReportsServiceCore{\r\n\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n super(httpClient, basePath,configuration,authService);\r\n }\r\n /**\r\n * \r\n * \r\n * @param name \r\n * @param reportParams \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getReportItem(name: string, reportParams?: { [key: string]: string; }, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getReportItem(name: string, reportParams?: { [key: string]: string; }, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getReportItem(name: string, reportParams?: { [key: string]: string; }, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getReportItem(name: string, reportParams?: { [key: string]: string; }, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (name === null || name === undefined) {\r\n throw new Error('Required parameter name was null or undefined when calling getReportItem.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (reportParams !== undefined) {\r\n for (const key in reportParams) {\r\n if (reportParams.hasOwnProperty(key)) {\r\n const reportParam = reportParams[key];\r\n queryParameters = queryParameters.set(key, reportParam); \r\n }\r\n }\r\n }\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/json'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Reports/${encodeURIComponent(String(name))}`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n\r\n public getReportItemXLSX(name: string, reportParams?: { [key: string]: string; }, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (name === null || name === undefined) {\r\n throw new Error('Required parameter name was null or undefined when calling getReportItemXLSX.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (reportParams !== undefined) {\r\n for (const key in reportParams) {\r\n if (reportParams.hasOwnProperty(key)) {\r\n const reportParam = reportParams[key];\r\n queryParameters = queryParameters.set(key, reportParam);\r\n }\r\n }\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Reports/${encodeURIComponent(String(name))}/download/xlsx`,\r\n {\r\n params: queryParameters,\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress,\r\n responseType: \"blob\"\r\n }\r\n );\r\n }\r\n\r\n /**\r\n * \r\n * \r\n * @param templateName \r\n * @param reportParams \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public getComplexReportAsXLSX(templateName: string, reportParams?: { [key: string]: string; }, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getComplexReportAsXLSX(templateName: string, reportParams?: { [key: string]: string; }, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getComplexReportAsXLSX(templateName: string, reportParams?: { [key: string]: string; }, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getComplexReportAsXLSX(templateName: string, reportParams?: { [key: string]: string; }, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (templateName === null || templateName === undefined) {\r\n throw new Error('Required parameter templateName was null or undefined when calling getComplexReportAsXLSX.');\r\n }\r\n\r\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\r\n if (reportParams !== undefined) {\r\n for (const key in reportParams) {\r\n if (reportParams.hasOwnProperty(key)) {\r\n const reportParam = reportParams[key];\r\n queryParameters = queryParameters.set(key, reportParam);\r\n }\r\n }\r\n }\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n ];\r\n\r\n return this.httpClient.get(`${this.basePath}/api/v1/Tenants/Reports/Complex/${encodeURIComponent(String(templateName))}/download`,\r\n {\r\n params: queryParameters,\r\n responseType: \"blob\",\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","/**\r\n * Integrum Project\r\n * Integrum API Swagger surface\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport { HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent } from '@angular/common/http';\r\n\r\nimport { Observable, of } from 'rxjs';\r\n\r\nimport { TemplateService as TemplateServiceCore } from '../../core/api/template.service'\r\nimport { TemplatesTemplateViewModel } from '../../core';\r\nimport { ApiResultOfTemplatesTemplateViewModel } from '../../core/model/apiResultOfTemplatesTemplateViewModel';\r\n\r\nimport { BASE_PATH } from '../../core/variables';\r\nimport { Configuration } from '../../core/configuration';\r\nimport { NbAuthService } from '@nebular/auth';\r\n\r\n\r\nexport interface IHash {\r\n [details: string] : TemplatesTemplateViewModel;\r\n} \r\n\r\n@Injectable()\r\nexport class TemplateService extends TemplateServiceCore{\r\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n super(httpClient, basePath,configuration,authService);\r\n }\r\n\r\n protected Cache: IHash = {}; \r\n\r\n public getTemplate(template: string, observe?: 'body', reportProgress?: boolean): Observable;\r\n public getTemplate(template: string, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public getTemplate(template: string, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public getTemplate(template: string, observe: any = 'body', reportProgress: boolean = false ): Observable {\r\n if (template === null || template === undefined) {\r\n throw new Error('Required parameter template was null or undefined when calling getTemplate.');\r\n }\r\n /*if (!!this.Cache[template]){\r\n let apiResult : ApiResultOfTemplatesTemplateViewModel = {};\r\n apiResult.success = true;\r\n apiResult.data = this.Cache[template];\r\n return of(apiResult);\r\n }\r\n */\r\n let response = super.getTemplate(template, observe, reportProgress);\r\n response.subscribe( results => {\r\n let entity = results.data;\r\n if (entity) this.Cache[entity.shortName] = entity;\r\n });\r\n return response;\r\n }\r\n\r\n public getTemplates(id?: string, name?: string, query?: string, shortName?: string, \r\n description?: string, pageSize?: number, pageNumber?: number, schema?:string, \r\n order?: string, observe: any = 'body', reportProgress: boolean = false ): \r\n Observable {\r\n\r\n let response = super.getTemplates(id, name, query, shortName, \r\n description, pageSize, pageNumber, schema, order, observe, \r\n reportProgress);\r\n response.subscribe( results => {\r\n let entities = results.data;\r\n entities.forEach(entity => this.Cache[entity.shortName] = entity);\r\n \r\n });\r\n return response;\r\n }\r\n\r\n}\r\n","export class Attachment {\r\n guid: string;\r\n filename: string;\r\n file: any;\r\n contentType: string;\r\n }","import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';\r\nimport { Configuration } from './configuration';\r\nimport { HttpClient } from '@angular/common/http';\r\n\r\n\r\nimport { PartnerService } from './api/partner.service';\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [],\r\n exports: [],\r\n providers: [\r\n PartnerService ]\r\n})\r\nexport class ApiModule {\r\n public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders {\r\n return {\r\n ngModule: ApiModule,\r\n providers: [ { provide: Configuration, useFactory: configurationFactory } ]\r\n }\r\n }\r\n\r\n constructor( @Optional() @SkipSelf() parentModule: ApiModule,\r\n @Optional() http: HttpClient) {\r\n if (parentModule) {\r\n throw new Error('ApiModule is already loaded. Import in your base AppModule only.');\r\n }\r\n if (!http) {\r\n throw new Error('You need to import the HttpClientModule in your AppModule! \\n' +\r\n 'See also https://github.com/angular/angular/issues/20575');\r\n }\r\n }\r\n}\r\n","export * from './partner.service';\r\nimport { PartnerService } from './partner.service';\r\nexport const APIS = [PartnerService];\r\n","/**\r\n * Integrum Project Partner API\r\n * Integrum Project partner API V1\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n/* tslint:disable:no-unused-variable member-ordering */\r\n\r\nimport { Inject, Injectable, Optional } from '@angular/core';\r\nimport {\r\n HttpClient, HttpHeaders, HttpParams,\r\n HttpResponse, HttpEvent\r\n} from '@angular/common/http';\r\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\r\n\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { PartnerPartnerModel } from '../model/partnerPartnerModel';\r\n\r\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\r\nimport { Configuration } from '../configuration';\r\nimport { NbAuthJWTToken, NbAuthService } from '@nebular/auth';\r\n\r\n\r\n@Injectable()\r\nexport class PartnerService {\r\n\r\n protected basePath = 'http://localhost:50090';\r\n public defaultHeaders = new HttpHeaders();\r\n public configuration = new Configuration();\r\n\r\n constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration, protected authService: NbAuthService) {\r\n if (basePath) {\r\n this.basePath = basePath;\r\n }\r\n if (configuration) {\r\n this.configuration = configuration;\r\n this.basePath = basePath || configuration.basePath || this.basePath;\r\n }\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n if (!this.configuration.apiKeys) this.configuration.apiKeys = {};\r\n this.configuration.apiKeys[\"Authorization\"] = \"bearer \" + token.getValue();\r\n });\r\n\r\n }\r\n\r\n /**\r\n * @param consumes string[] mime-types\r\n * @return true: consumes contains 'multipart/form-data', false: otherwise\r\n */\r\n private canConsumeForm(consumes: string[]): boolean {\r\n const form = 'multipart/form-data';\r\n for (let consume of consumes) {\r\n if (form === consume) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n /**\r\n * \r\n * \r\n * @param partnerPartnerModel \r\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\r\n * @param reportProgress flag to report request and response progress.\r\n */\r\n public createPartner(partnerPartnerModel?: PartnerPartnerModel, observe?: 'body', reportProgress?: boolean): Observable;\r\n public createPartner(partnerPartnerModel?: PartnerPartnerModel, observe?: 'response', reportProgress?: boolean): Observable>;\r\n public createPartner(partnerPartnerModel?: PartnerPartnerModel, observe?: 'events', reportProgress?: boolean): Observable>;\r\n public createPartner(partnerPartnerModel?: PartnerPartnerModel, observe: any = 'body', reportProgress: boolean = false): Observable {\r\n\r\n let headers = this.defaultHeaders;\r\n\r\n // authentication (Bearer) required\r\n if (this.configuration.apiKeys[\"Authorization\"]) {\r\n headers = headers.set('Authorization', this.configuration.apiKeys[\"Authorization\"]);\r\n }\r\n\r\n // to determine the Accept header\r\n let httpHeaderAccepts: string[] = [\r\n ];\r\n let httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\r\n if (httpHeaderAcceptSelected != undefined) {\r\n headers = headers.set(\"Accept\", httpHeaderAcceptSelected);\r\n }\r\n\r\n // to determine the Content-Type header\r\n let consumes: string[] = [\r\n 'application/json',\r\n 'text/json',\r\n 'application/_*+json'\r\n ];\r\n let httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);\r\n if (httpContentTypeSelected != undefined) {\r\n headers = headers.set(\"Content-Type\", httpContentTypeSelected);\r\n }\r\n\r\n return this.httpClient.post(`${this.basePath}/partner/partner/create`,\r\n partnerPartnerModel,\r\n {\r\n withCredentials: this.configuration.withCredentials,\r\n headers: headers,\r\n observe: observe,\r\n reportProgress: reportProgress\r\n }\r\n );\r\n }\r\n\r\n}\r\n","export interface ConfigurationParameters {\r\n apiKeys?: {[ key: string ]: string};\r\n username?: string;\r\n password?: string;\r\n accessToken?: string | (() => string);\r\n basePath?: string;\r\n withCredentials?: boolean;\r\n}\r\n\r\nexport class Configuration {\r\n apiKeys?: {[ key: string ]: string};\r\n username?: string;\r\n password?: string;\r\n accessToken?: string | (() => string);\r\n basePath?: string;\r\n withCredentials?: boolean;\r\n\r\n constructor(configurationParameters: ConfigurationParameters = {}) {\r\n this.apiKeys = configurationParameters.apiKeys;\r\n this.username = configurationParameters.username;\r\n this.password = configurationParameters.password;\r\n this.accessToken = configurationParameters.accessToken;\r\n this.basePath = configurationParameters.basePath;\r\n this.withCredentials = configurationParameters.withCredentials;\r\n }\r\n\r\n /**\r\n * Select the correct content-type to use for a request.\r\n * Uses {@link Configuration#isJsonMime} to determine the correct content-type.\r\n * If no content type is found return the first found type if the contentTypes is not empty\r\n * @param {string[]} contentTypes - the array of content types that are available for selection\r\n * @returns {string} the selected content-type or undefined if no selection could be made.\r\n */\r\n public selectHeaderContentType (contentTypes: string[]): string | undefined {\r\n if (contentTypes.length == 0) {\r\n return undefined;\r\n }\r\n\r\n let type = contentTypes.find(x => this.isJsonMime(x));\r\n if (type === undefined) {\r\n return contentTypes[0];\r\n }\r\n return type;\r\n }\r\n\r\n /**\r\n * Select the correct accept content-type to use for a request.\r\n * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.\r\n * If no content type is found return the first found type if the contentTypes is not empty\r\n * @param {string[]} accepts - the array of content types that are available for selection.\r\n * @returns {string} the selected content-type or undefined if no selection could be made.\r\n */\r\n public selectHeaderAccept(accepts: string[]): string | undefined {\r\n if (accepts.length == 0) {\r\n return undefined;\r\n }\r\n\r\n let type = accepts.find(x => this.isJsonMime(x));\r\n if (type === undefined) {\r\n return accepts[0];\r\n }\r\n return type;\r\n }\r\n\r\n /**\r\n * Check if the given MIME is a JSON MIME.\r\n * JSON MIME examples:\r\n * application/json\r\n * application/json; charset=UTF8\r\n * APPLICATION/JSON\r\n * application/vnd.company+json\r\n * @param {string} mime - MIME (Multipurpose Internet Mail Extensions)\r\n * @return {boolean} True if the given MIME is JSON, false otherwise.\r\n */\r\n public isJsonMime(mime: string): boolean {\r\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\r\n return mime != null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\r\n }\r\n}\r\n","/**\r\n * Integrum Project Partner API\r\n * Integrum Project partner API V1\r\n *\r\n * OpenAPI spec version: v1\r\n * \r\n *\r\n * NOTE: This class is auto generated by the swagger code generator program.\r\n * https://github.com/swagger-api/swagger-codegen.git\r\n * Do not edit the class manually.\r\n */\r\n\r\n\r\nexport interface PartnerPartnerModel { \r\n guid?: string;\r\n name?: string;\r\n nip?: string;\r\n address?: string;\r\n phone?: string;\r\n website?: string;\r\n tenantType?: string;\r\n adminGuid?: string;\r\n adminFirstname?: string;\r\n adminSurname?: string;\r\n adminEmail?: string;\r\n adminLanguage?: string;\r\n addressStreet?: string;\r\n addressHouseNumber?: string;\r\n addressPostalCode?: string;\r\n addressCity?: string;\r\n addressCountry?: string;\r\n companyName?: string;\r\n}\r\n","import { InjectionToken } from '@angular/core';\r\n\r\nexport const BASE_PATH = new InjectionToken('basePath');\r\nexport const COLLECTION_FORMATS = {\r\n 'csv': ',',\r\n 'tsv': ' ',\r\n 'ssv': ' ',\r\n 'pipes': '|'\r\n}\r\n","import {InjectionToken, NgModule} from '@angular/core';\r\nimport {AddinInstallerService} from './addin-installer.service';\r\n\r\n//export const ADDIN_INSTALLER = new InjectionToken(null);\r\n\r\n@NgModule({\r\n declarations: [ ],\r\n entryComponents: [ ],\r\n})\r\nexport class CoreAddinModule { }\r\n","import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NbSecurityModule, NbRoleProvider } from '@nebular/security';\r\nimport { of as observableOf } from 'rxjs';\r\n\r\nimport { throwIfAlreadyLoaded } from './module-import-guard';\r\nimport { DataModule } from './data/data.module';\r\nimport { AnalyticsService } from './utils/analytics.service';\r\nimport { LiveMessageService } from './data/livemessage.service';\r\nimport { TitleService } from './data/title.service';\r\nimport { HttpLocaleInterceptor } from './httplocale.interceptor';\r\nimport { NotificationsService } from './data';\r\nimport { LocaleService,ContentTypeService, ScriptLoaderService } from './utils';\r\n\r\nconst socialLinks = [\r\n {\r\n url: 'https://github.com/akveo/nebular',\r\n target: '_blank',\r\n icon: 'socicon-github',\r\n },\r\n {\r\n url: 'https://www.facebook.com/akveo/',\r\n target: '_blank',\r\n icon: 'socicon-facebook',\r\n },\r\n {\r\n url: 'https://twitter.com/akveo_inc',\r\n target: '_blank',\r\n icon: 'socicon-twitter',\r\n },\r\n];\r\n\r\nexport class NbSimpleRoleProvider extends NbRoleProvider {\r\n getRole() {\r\n // here you could provide any role based on any auth flow\r\n return observableOf('guest');\r\n }\r\n}\r\n\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n ],\r\n providers: [\r\n LiveMessageService,\r\n NotificationsService,\r\n AnalyticsService,\r\n TitleService,\r\n HttpLocaleInterceptor,\r\n LocaleService,\r\n ContentTypeService,\r\n ScriptLoaderService\r\n ],\r\n})\r\nexport class CoreModule {}\r\n","import { NgModule, ModuleWithProviders } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { UserService } from './users.service';\r\nimport { StateService } from './state.service';\r\nconst SERVICES = [\r\n UserService,\r\n StateService,\r\n];\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n ],\r\n exports: [\r\n ],\r\n providers: [\r\n ...SERVICES,\r\n ],\r\n})\r\nexport class DataModule {\r\n}\r\n","\r\nimport { Injectable, EventEmitter } from '@angular/core';\r\nimport { HubConnection, HubConnectionBuilder, HubConnectionState } from \"@microsoft/signalr\";\r\nimport { environment } from '../../../environments/environment';\r\nimport { NbAuthService } from '@nebular/auth';\r\nimport { LocaleService } from '@core/utils';\r\n\r\n@Injectable()\r\nexport class LiveMessageService {\r\n\r\n constructor(private authService: NbAuthService, private localeService: LocaleService) { }\r\n\r\n private channelList: string[] = [];\r\n private channelsToJoin: string[] = [];\r\n private hubConnection: HubConnection\r\n private debugMode: boolean = !environment.production;\r\n\r\n public onMessage: EventEmitter = new EventEmitter();\r\n public onMessages: EventEmitter = new EventEmitter();\r\n public onNotification: EventEmitter = new EventEmitter();\r\n public onSystemMessage: EventEmitter = new EventEmitter();\r\n\r\n public async connect(hubName: string, channelsNames: string[] = []) {\r\n if (!this.hubConnection) {\r\n this.hubConnection = await this.create(hubName);\r\n this.hubConnection.on(\"NewUser\", m => {\r\n this.debugMode && console.log(m)\r\n })\r\n this.hubConnection.on(\"Notification\", m => {\r\n this.onNotification.next(m);\r\n })\r\n this.hubConnection.on(\"Messages\", m => {\r\n this.onMessages.next(m);\r\n })\r\n this.hubConnection.on(\"NewMessage\", m => {\r\n this.onMessage.next(m);\r\n })\r\n this.hubConnection.on(\"SystemMessage\", m => {\r\n this.onSystemMessage.next(m);\r\n })\r\n this.afterConnect(channelsNames);\r\n }\r\n else {\r\n this.afterConnect(channelsNames);\r\n }\r\n return;\r\n }\r\n private afterConnect(channelsNames: string[]) {\r\n this.hubConnection.invoke(\"SetLocale\", this.localeService.locale);\r\n channelsNames.concat(this.channelsToJoin).forEach(channelName => {\r\n this.debugMode && console.log(\"Try join to channel after connect: \" + channelName);\r\n this.join(channelName);\r\n this.hubConnection.invoke(\"Messages\", channelName);\r\n });\r\n this.channelsToJoin = [];\r\n }\r\n public createChannel(data: any) {\r\n this.hubConnection.invoke(\"CreateChannel\", data)\r\n }\r\n public send(data: any) {\r\n this.hubConnection.invoke(\"Send\", data)\r\n }\r\n public join(channelName: string) {\r\n if (!this.hubConnection || this.hubConnection.state != HubConnectionState.Connected) {\r\n this.channelsToJoin.push(channelName);\r\n return;\r\n }\r\n if (this.channelList.indexOf(channelName) >= 0) {\r\n this.debugMode && console.log(\"I'm already in channel \" + channelName);\r\n return;\r\n }\r\n this.debugMode && console.log(\"Join to channel \" + channelName);\r\n !!channelName && this.hubConnection.invoke(\"Joinchannel\", channelName)\r\n this.channelList.push(channelName);\r\n }\r\n\r\n public leave(channelName: string) {\r\n if (!this.hubConnection) {\r\n return;\r\n }\r\n this.debugMode && console.log(\"Leave channel \" + channelName);\r\n !!channelName && this.hubConnection.invoke(\"Leavechannel\", channelName)\r\n this.channelList.splice(this.channelList.indexOf(channelName), 1);\r\n }\r\n public leaveMany(channelsNames: string[]) {\r\n if (!this.hubConnection) {\r\n return;\r\n }\r\n channelsNames.forEach(channelName => {\r\n this.leave(channelName);\r\n });\r\n }\r\n public async close() {\r\n if (this.hubConnection) {\r\n this.leaveMany(this.channelList);\r\n this.channelList = [];\r\n this.channelsToJoin = [];\r\n await this.hubConnection.stop();\r\n this.hubConnection = undefined;\r\n }\r\n }\r\n private async create(hubName: string): Promise {\r\n\r\n let token = await this.authService.getToken().toPromise();\r\n let hubConnection = new HubConnectionBuilder()\r\n .withUrl(`${environment.apiUrl}/hubs/${hubName}`, { accessTokenFactory: () => token.getValue() })\r\n .build();\r\n\r\n this.debugMode && console.log('hubConnection.state = ', hubConnection.state);\r\n try {\r\n await hubConnection.start();\r\n this.debugMode && console.log('Connection started');\r\n this.debugMode && console.log('hubConnection.state = ', hubConnection.state);\r\n }\r\n catch (err) {\r\n this.debugMode && console.log('Error while starting connection: ' + err)\r\n }\r\n return hubConnection;\r\n }\r\n}\r\n","import { Injectable, EventEmitter } from \"@angular/core\";\r\nimport { LiveMessageService } from \"./livemessage.service\";\r\nimport {\r\n NotificationService as NotificationApiService,\r\n Notification,\r\n ModelsQueriesQueryOperator,\r\n ModelsQueriesQueryCondition,\r\n ModelsQueriesQuery,\r\n} from \"../../@apiClient/core\";\r\nimport { BehaviorSubject, Observable } from \"rxjs\";\r\n\r\n@Injectable()\r\nexport class NotificationsService {\r\n\r\n public onNewNotification: EventEmitter = new EventEmitter();\r\n public onNotificationsChange: EventEmitter = new EventEmitter();\r\n private _unread: BehaviorSubject = new BehaviorSubject([]);\r\n\r\n constructor(\r\n private liveMessageService: LiveMessageService,\r\n private notificationApiService: NotificationApiService\r\n ) {\r\n this.liveMessageService.connect(\"messages\").then((x) => {\r\n this.liveMessageService.onNotification.subscribe((m) => {\r\n this.onNewNotification.next(m as Notification);\r\n });\r\n });\r\n }\r\n\r\n unread(): Observable {\r\n return this._unread.asObservable();\r\n }\r\n\r\n async load(): Promise {\r\n let results = await this.notificationApiService\r\n .getNotifications()\r\n .toPromise();\r\n this._unread.next(results.data.filter( x=> x.unread));\r\n return results.data.sort( (a,b) => a.date < b.date?1:-1);\r\n }\r\n\r\n setAsRead(guids: string[]) {\r\n let conditions: Array = [];\r\n conditions.push({ key: \"_guid\", values: guids });\r\n let query = { conditions: conditions} as ModelsQueriesQuery;\r\n this.notificationApiService\r\n .setNotificationsAsRead(query)\r\n .subscribe((x) => {\r\n this.onNotificationsChange.next();\r\n });\r\n }\r\n setAsUnread(guids: string[]) {\r\n let conditions: Array = [];\r\n conditions.push({ key: \"_guid\", values: guids });\r\n let query = { conditions: conditions} as ModelsQueriesQuery;\r\n this.notificationApiService\r\n .setNotificationsAsUnread(query)\r\n .subscribe((x) => {\r\n this.onNotificationsChange.next();\r\n });\r\n }\r\n setAllAsRead() {\r\n this.notificationApiService.setNotificationsAsRead().subscribe((x) => {\r\n this.onNotificationsChange.next();\r\n });\r\n }\r\n\r\n clearNotifications() {\r\n this._unread.next([]);\r\n }\r\n \r\n delete(guids: string[]) {\r\n let conditions: Array = [];\r\n conditions.push({ key: \"_guid\", values: guids });\r\n let query = { conditions: conditions} as ModelsQueriesQuery;\r\n this.notificationApiService.deleteNotifications(query).subscribe((x) => {\r\n this.onNotificationsChange.next();\r\n });\r\n }\r\n deleteAll() {\r\n this.notificationApiService.deleteNotifications().subscribe((x) => {\r\n this.onNotificationsChange.next();\r\n });\r\n }\r\n}\r\n","import { Injectable, OnDestroy } from '@angular/core';\r\nimport { of as observableOf, Observable, BehaviorSubject } from 'rxjs';\r\nimport { takeWhile } from 'rxjs/operators';\r\n\r\nimport { NbLayoutDirectionService, NbLayoutDirection } from '@nebular/theme';\r\n\r\n@Injectable()\r\nexport class StateService implements OnDestroy {\r\n\r\n protected layouts: any = [\r\n {\r\n name: 'One Column',\r\n icon: 'nb-layout-default',\r\n id: 'one-column',\r\n selected: true,\r\n },\r\n {\r\n name: 'Two Column',\r\n icon: 'nb-layout-two-column',\r\n id: 'two-column',\r\n },\r\n {\r\n name: 'Center Column',\r\n icon: 'nb-layout-centre',\r\n id: 'center-column',\r\n },\r\n ];\r\n\r\n protected sidebars: any = [\r\n {\r\n name: 'Sidebar at layout start',\r\n icon: 'nb-layout-sidebar-left',\r\n id: 'start',\r\n selected: true,\r\n },\r\n {\r\n name: 'Sidebar at layout end',\r\n icon: 'nb-layout-sidebar-right',\r\n id: 'end',\r\n },\r\n ];\r\n\r\n protected layoutState$ = new BehaviorSubject(this.layouts[0]);\r\n protected sidebarState$ = new BehaviorSubject(this.sidebars[0]);\r\n\r\n alive = true;\r\n\r\n constructor(directionService: NbLayoutDirectionService) {\r\n directionService.onDirectionChange()\r\n .pipe(takeWhile(() => this.alive))\r\n .subscribe(direction => this.updateSidebarIcons(direction));\r\n\r\n this.updateSidebarIcons(directionService.getDirection());\r\n }\r\n\r\n ngOnDestroy() {\r\n this.alive = false;\r\n }\r\n\r\n private updateSidebarIcons(direction: NbLayoutDirection) {\r\n const [ startSidebar, endSidebar ] = this.sidebars;\r\n const isLtr = direction === NbLayoutDirection.LTR;\r\n const startIconClass = isLtr ? 'nb-layout-sidebar-left' : 'nb-layout-sidebar-right';\r\n const endIconClass = isLtr ? 'nb-layout-sidebar-right' : 'nb-layout-sidebar-left';\r\n startSidebar.icon = startIconClass;\r\n endSidebar.icon = endIconClass;\r\n }\r\n\r\n setLayoutState(state: any): any {\r\n this.layoutState$.next(state);\r\n }\r\n\r\n getLayoutStates(): Observable {\r\n return observableOf(this.layouts);\r\n }\r\n\r\n onLayoutState(): Observable {\r\n return this.layoutState$.asObservable();\r\n }\r\n\r\n setSidebarState(state: any): any {\r\n this.sidebarState$.next(state);\r\n }\r\n\r\n getSidebarStates(): Observable {\r\n return observableOf(this.sidebars);\r\n }\r\n\r\n onSidebarState(): Observable {\r\n return this.sidebarState$.asObservable();\r\n }\r\n}\r\n","\r\nimport { of as observableOf, Observable, BehaviorSubject } from 'rxjs';\r\nimport { Injectable } from '@angular/core';\r\n\r\nexport interface BreadCrumbItem {\r\n title: string\r\n}\r\n\r\n@Injectable()\r\nexport class TitleService {\r\n\r\n private _items: BehaviorSubject = new BehaviorSubject([]);\r\n\r\n constructor() {\r\n }\r\n\r\n clear(){\r\n this._items.next([]);\r\n }\r\n append(item: BreadCrumbItem){\r\n this._items.getValue().push(item);\r\n this._items.next(this._items.getValue());\r\n }\r\n get(): Observable {\r\n return this._items.asObservable();\r\n }\r\n getTitle(): string {\r\n const items = this._items.getValue();\r\n return items.length && items[items.length-1].title || \"\";\r\n }\r\n}\r\n","\r\nimport { of as observableOf, Observable, ReplaySubject } from 'rxjs';\r\nimport { Injectable } from '@angular/core';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { NbAuthService, NbAuthJWTToken } from '@nebular/auth';\r\nimport { AccountService } from '../../@apiClient/core';\r\n\r\nimport { environment } from '../../../environments/environment';\r\n\r\nexport interface UserModel {\r\n userName: string;\r\n name?: string;\r\n email?: string;\r\n avatar: string;\r\n personId: string;\r\n tenantId: string\r\n token?: string;\r\n systemRoles?:string[];\r\n profiles?:UserProfile[];\r\n}\r\nexport interface UserProfile {\r\n guid: string;\r\n name?: string;\r\n shortName?: string;\r\n}\r\n\r\n@Injectable()\r\nexport class UserService {\r\n private user: UserModel;\r\n private userSubject = new ReplaySubject(1);\r\n\r\n constructor(private authService: NbAuthService,\r\n private accountService: AccountService,\r\n private titleService: Title) {\r\n\r\n this.authService.onTokenChange()\r\n .subscribe((token: NbAuthJWTToken) => {\r\n\r\n if (token.isValid()) {\r\n this.accountService.getUserInfo().subscribe(user => {\r\n this.titleService.setTitle(`${environment.title} - ${user.userName}`);\r\n this.user = user;\r\n this.user.token = token.getValue();\r\n this.userSubject.next(user);\r\n });\r\n }\r\n });\r\n }\r\n getUser(): Observable {\r\n return this.userSubject.asObservable();\r\n }\r\n getUserObject():UserModel {\r\n return this.user;\r\n }\r\n getAvatarImageSrc():string {\r\n return \"/assets/user_avatar.png\"\r\n }\r\n}\r\n","import { Injectable, LOCALE_ID, Inject } from '@angular/core';\r\nimport { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpHeaders } from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { I18NEXT_SERVICE, ITranslationService } from 'angular-i18next';\r\n\r\n\r\n@Injectable()\r\nexport class HttpLocaleInterceptor implements HttpInterceptor {\r\n constructor(\r\n @Inject(I18NEXT_SERVICE) private i18NextService: ITranslationService){\r\n }\r\n\r\n intercept(request: HttpRequest, next: HttpHandler): Observable> {\r\n let headers = request.headers;\r\n if (!headers){\r\n headers = new HttpHeaders()\r\n }\r\n \r\n headers = headers.append('Locale', this.i18NextService.language);\r\n request = request.clone({\r\n headers: headers\r\n });\r\n return next.handle(request);\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { NavigationEnd, Router } from '@angular/router';\r\nimport { Location } from '@angular/common';\r\nimport { filter } from 'rxjs/operators';\r\n\r\ndeclare const ga: any;\r\n\r\n@Injectable()\r\nexport class AnalyticsService {\r\n private enabled: boolean;\r\n\r\n constructor(private location: Location, private router: Router) {\r\n this.enabled = false;\r\n }\r\n\r\n trackPageViews() {\r\n if (this.enabled) {\r\n this.router.events.pipe(\r\n filter((event) => event instanceof NavigationEnd),\r\n )\r\n .subscribe(() => {\r\n ga('send', {hitType: 'pageview', page: this.location.path()});\r\n });\r\n }\r\n }\r\n\r\n trackEvent(eventName: string) {\r\n if (this.enabled) {\r\n ga('send', 'event', eventName);\r\n }\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\n\r\n@Injectable()\r\nexport class ContentTypeService {\r\n\r\n constructor() {\r\n }\r\n\r\n isImage(mimeType) {\r\n return /image\\/*/.test(mimeType);\r\n }\r\n isWord(mimeType) {\r\n if (/application\\/msword/.test(mimeType)\r\n || /application\\/vnd.openxmlformats-officedocument.wordprocessingml.document/.test(mimeType) ||\r\n /application\\/vnd.oasis.opendocument.text/.test(mimeType)\r\n ) {\r\n return true\r\n }\r\n }\r\n isExcel(mimeType) {\r\n if (/application\\/vnd.ms-excel/.test(mimeType)\r\n || /application\\/vnd.openxmlformats-officedocument.spreadsheetml.sheet/.test(mimeType) ||\r\n /application\\/vnd.oasis.opendocument.spreadsheet/.test(mimeType)\r\n ) {\r\n return true\r\n }\r\n }\r\n isPDF(mimeType) {\r\n return /application\\/pdf/.test(mimeType);\r\n }\r\n isTxt(mimeType) {\r\n return /text\\/plain/.test(mimeType);\r\n }\r\n isOtherFile(mimeType) {\r\n if (!this.isTxt(mimeType) && !this.isPDF(mimeType) && !this.isWord(mimeType) && !this.isExcel(mimeType) && !this.isImage(mimeType)) {\r\n return true\r\n }\r\n }\r\n\r\n}","import { EventEmitter, Inject, Injectable } from \"@angular/core\";\r\nimport { I18NEXT_SERVICE, ITranslationService } from \"angular-i18next\";\r\nimport { Subscription } from \"rxjs\";\r\nimport { ScriptInfo, ScriptLoaderService } from \".\";\r\n\r\n@Injectable()\r\nexport class LocaleService {\r\n private languageChangedSubscription: Subscription;\r\n\r\n public localeLoaded: EventEmitter = new EventEmitter();\r\n public islocaleLoaded: boolean = false;\r\n\r\n constructor(\r\n @Inject(I18NEXT_SERVICE) private i18NextService: ITranslationService,\r\n private scriptLoaderService: ScriptLoaderService\r\n ) {\r\n this.init();\r\n }\r\n\r\n init() {\r\n this.islocaleLoaded = (window as any).ng?.common?.locales ? [this.i18NextService.language] != undefined : false;\r\n if (this.islocaleLoaded) {\r\n this.localeLoaded.next();\r\n return;\r\n }\r\n this.languageChangedSubscription = this.i18NextService.events.languageChanged.subscribe(async locale => {\r\n !this.islocaleLoaded && this.loadLocale(locale);\r\n });\r\n }\r\n\r\n async loadLocale(locale){\r\n if (this.scriptLoaderService.add({ name: `locale_${locale}.js`, src: `locale/${locale}/${locale}.js`} as ScriptInfo)){\r\n await this.scriptLoaderService.load();\r\n this.localeLoaded.next();\r\n }\r\n }\r\n \r\n get locale():string{\r\n return this.i18NextService.language.slice(0, 2);\r\n }\r\n get localeId():string{\r\n return this.i18NextService.language;\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\n\r\ninterface ScriptInfoListener {\r\n (state: boolean, status?: string): void;\r\n}\r\nexport interface ScriptInfo {\r\n loaded?: boolean;\r\n name: string;\r\n src: string;\r\n callback?: string;\r\n listeners?: ScriptInfoListener[]\r\n}\r\nexport interface ScriptLoadInfo {\r\n loaded: boolean;\r\n name: string;\r\n status: string;\r\n}\r\n\r\n\r\n\r\nimport { environment } from \"../../../environments/environment\";\r\n\r\nexport const GoogleMapsScripts = [{\r\n name: \"google-maps-api\",\r\n src: `https://maps.googleapis.com/maps/api/js?key=${environment.googleMapApiKey}&callback=__onGoogleMapsLoaded`,\r\n loaded: false,\r\n callback: \"__onGoogleMapsLoaded\",\r\n listeners: []\r\n\r\n}]\r\n\r\n@Injectable()\r\nexport class ScriptLoaderService {\r\n protected scripts: ScriptInfo[] = [];\r\n\r\n loadScript(name: string): Promise {\r\n return new Promise((resolve, reject) => {\r\n \r\n let scriptInfoIndex = this.scripts.findIndex((x) => x.name == name);\r\n let scriptId = `ScriptLoaderService-script-${name}`;\r\n if (!this.scripts[scriptInfoIndex].listeners) {\r\n this.scripts[scriptInfoIndex].listeners = [];\r\n }\r\n \r\n //resolve if already loaded\r\n if (this.scripts[scriptInfoIndex].loaded) {\r\n resolve({ name: name, loaded: true, status: \"Already Loaded\" });\r\n\r\n } else {\r\n let listener = function(state:boolean, status?: string){\r\n status = status || (state ? \"loaded\" : \"not loaded\");\r\n resolve({ name: name,loaded: state,status: status });\r\n }\r\n\r\n if (!!document.getElementById(scriptId)) {\r\n this.scripts[scriptInfoIndex].listeners.push(listener);\r\n } else {\r\n //load script\r\n let script = document.createElement(\"script\");\r\n script.type = \"text/javascript\";\r\n script.async = true;\r\n script.defer = true;\r\n script.src = this.scripts[scriptInfoIndex].src;\r\n script.id = scriptId;\r\n \r\n this.scripts[scriptInfoIndex].listeners.push(listener);\r\n \r\n let scriptIEmode = script as any;\r\n if (this.scripts[scriptInfoIndex].callback){\r\n window[this.scripts[scriptInfoIndex].callback] = (ev) => {\r\n this.publish(this.scripts[scriptInfoIndex], true, \"loaded with callback\");\r\n };\r\n }\r\n else if (scriptIEmode.readyState) {\r\n //IE\r\n scriptIEmode.onreadystatechange = () => {\r\n if (\r\n scriptIEmode.readyState === \"loaded\" ||\r\n scriptIEmode.readyState === \"complete\"\r\n ) {\r\n scriptIEmode.onreadystatechange = null;\r\n this.publish(this.scripts[scriptInfoIndex], true);\r\n }\r\n };\r\n } else {\r\n //Others\r\n script.onload = () => {\r\n this.publish(this.scripts[scriptInfoIndex], true);\r\n };\r\n }\r\n script.onerror = (error: any) => {\r\n this.publish(this.scripts[scriptInfoIndex], false);\r\n };\r\n \r\n document.getElementsByTagName(\"head\")[0].appendChild(script);\r\n }\r\n }\r\n });\r\n }\r\n\r\n private publish(script: ScriptInfo, state: boolean, status?: string){\r\n script.loaded = state;\r\n while(script.listeners.length){\r\n let listiner = script.listeners.pop();\r\n listiner(state, status);\r\n }\r\n }\r\n\r\n public load(): Promise {\r\n var promises: Promise[] = [];\r\n this.scripts.forEach((script) =>\r\n promises.push(this.loadScript(script.name))\r\n );\r\n return Promise.all(promises);\r\n }\r\n public add(script: ScriptInfo): boolean {\r\n if (this.scripts.find(x => x.name == script.name)) return false;\r\n this.scripts.push(script);\r\n return true;\r\n }\r\n public addMany(scripts: ScriptInfo[]): boolean {\r\n scripts = scripts.filter( script => this.scripts.find(x => x.name == script.name) == null)\r\n if (scripts.length === 0) return false;\r\n this.scripts.push(...scripts);\r\n return true;\r\n }\r\n private findScriptByName(name:string):ScriptInfo{\r\n return this.scripts.find(x => x.name == name);\r\n }\r\n public isLoaded(script: ScriptInfo | ScriptInfo[] | string | string[]): Boolean {\r\n let loaded = (s: ScriptInfo | string): Boolean => {\r\n if (typeof s === \"string\"){\r\n let s1 = this.findScriptByName(s as string);\r\n return s1?.loaded;\r\n }\r\n else { //ScriptInfo\r\n let s1 = this.findScriptByName(s.name as string);\r\n return s1?.loaded;\r\n }\r\n }\r\n\r\n if (Array.isArray(script)){\r\n return script.map( x=> loaded(x)).filter( x=> x).length === script.length;\r\n }\r\n else {\r\n return loaded(script);\r\n }\r\n }\r\n}\r\n\r\n","
0 || template}\">\r\n
\r\n
\r\n \r\n \r\n {{ 'Click to search...' | i18next }}\r\n \r\n \r\n {{ 'Kind:' | i18next }} {{template.name}}\r\n \r\n \r\n {{findField.field.name}}: \r\n \r\n {{findField.value}}\r\n \r\n \r\n {{findField.value.start | date:\"dd.MM.yyyy\"}} - {{findField.value.end | date:\"dd.MM.yyyy\"}}\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n {{ 'Filter' | i18next }}\r\n \r\n \r\n
\r\n
\r\n {{ 'Choose the type:' | i18next }}\r\n \r\n \r\n {{ template.name}}\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n {{findField.field.name}}\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n {{ isDocumentsLoading ? ' ' : '{{ \"No documents\" | i18next }}'}}\r\n \r\n 0\">\r\n
\r\n
\r\n {{ 'To download full information about the results found, click EXCEL' | i18next }}\r\n \r\n\r\n
\r\n
{{ 'The search results found are listed below:' | i18next }}
\r\n\r\n
\r\n
\r\n \r\n \r\n {{document.name}},\r\n \r\n {{field.field.name}}: \r\n {{ valueOrNameOrEmpty(document.fieldValues, field.field) }}\r\n \r\n \r\n
\r\n
\r\n
","import { Component, OnInit, LOCALE_ID, HostListener, ViewChildren, QueryList, ElementRef, ViewChild, Inject } from '@angular/core';\r\nimport { TemplatesTemplateViewModel, DocumentsDocumentViewModel, FieldsFieldViewModel, PrimaryFieldType, DictionaryService } from '../../../@apiClient/core';\r\nimport { TemplateService } from '../../../@apiClient/extensions/api/template.service';\r\nimport { DocumentService } from '../../../@apiClient/extensions/api/document.service';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { DatePipe } from '@angular/common';\r\nimport { settings } from '../../../app.settings';\r\n\r\nexport interface FindField {\r\n field: FieldsFieldViewModel;\r\n value: any;\r\n dictionary?: any;\r\n}\r\n\r\n@Component({\r\n selector: 'app-find-document',\r\n templateUrl: './find-document.component.html',\r\n styleUrls: ['./find-document.component.scss']\r\n})\r\nexport class FindDocumentComponent implements OnInit {\r\n locale = \"en\";\r\n pipe: DatePipe = null;\r\n templates: TemplatesTemplateViewModel[];\r\n template: TemplatesTemplateViewModel;\r\n documents: DocumentsDocumentViewModel[];\r\n findFields: FindField[] = [];\r\n generatingExcel: boolean = false;\r\n chosenFields: FieldsFieldViewModel[] = [];\r\n\r\n availableFields: FieldsFieldViewModel[] = [];\r\n\r\n isFilterExpanded = true;\r\n isSearchVisible = false;\r\n isDocumentsLoading = false;\r\n isDocumentsVisible = false;\r\n\r\n constructor(@Inject(LOCALE_ID) protected localeId: string,\r\n private documentService: DocumentService,\r\n private templateService: TemplateService,\r\n private dictionaryService: DictionaryService,\r\n private router: Router,\r\n private route: ActivatedRoute) {\r\n this.templateService.getTemplates().subscribe(value => {\r\n this.templates = value.data;\r\n this.templates = this.templates.filter(template => template.shortName !== '_tenant_config').map(template => {\r\n template.fields = template.fields.filter(field => {\r\n if (field.fieldType === 6 || field.fieldType === 9) {\r\n return false\r\n }\r\n return true\r\n })\r\n return template;\r\n });\r\n this.pipe = new DatePipe(localeId);\r\n this.locale = localeId.slice(0, 2);\r\n })\r\n }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n getAvailableFields() {\r\n if (!this.template) {\r\n this.availableFields = [];\r\n return;\r\n }\r\n this.availableFields = [...this.template.fields.filter((field) => field.fieldType !== 7)];\r\n\r\n this.template.fields\r\n .filter((field) => field.fieldType === 7 && field.rules?.some((rule) => rule.ruleType === 34))\r\n .forEach((field) => {\r\n let rule34 = field.rules.find((rule) => rule.ruleType === 34);\r\n let parameters = JSON.parse(rule34.parameters);\r\n let fieldTemplateShortName = parameters['values-template'];\r\n let fieldTemplate = this.templates.find((template) => template.shortName === fieldTemplateShortName);\r\n\r\n if (!fieldTemplate) {\r\n return null;\r\n }\r\n\r\n fieldTemplate.fields.filter((innerField) => innerField.rules?.some((rule) => rule.ruleType === 35)).forEach((innerField) => {\r\n let innerFieldCopy: FieldsFieldViewModel = { ...innerField };\r\n\r\n innerFieldCopy.shortName = `${field.shortName}.${innerFieldCopy.shortName}`;\r\n innerFieldCopy.name = `${field.name}: ${innerFieldCopy.name}`;\r\n innerFieldCopy.fieldType = innerField.fieldType;\r\n\r\n this.availableFields.push(innerFieldCopy);\r\n });\r\n });\r\n\r\n\r\n }\r\n\r\n clear() {\r\n this.selectTemplate(null);\r\n }\r\n\r\n selectTemplate(template: TemplatesTemplateViewModel) {\r\n this.template = template;\r\n this.getAvailableFields();\r\n this.findFields = [];\r\n this.chosenFields = this.findFields.map((findField) => findField.field);\r\n this.isDocumentsVisible = false;\r\n this.isFilterExpanded = true;\r\n this.documents = null;\r\n }\r\n\r\n chosenFieldsChanged(fields: FieldsFieldViewModel[]) {\r\n this.chosenFields = fields;\r\n this.findFields = this.findFields.filter((findField) => {\r\n if (fields.includes(findField.field)) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n });\r\n const newFields = fields.filter((field) => {\r\n if (!this.findFields.some((findField) => {\r\n return findField.field === field;\r\n })) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n })\r\n newFields.forEach((field) => {\r\n this.toggleFindField(field, true);\r\n });\r\n }\r\n\r\n async toggleFindField(field: FieldsFieldViewModel, checked: boolean) {\r\n if (checked) {\r\n const findField: FindField = {\r\n field: field,\r\n value: null\r\n };\r\n\r\n if (findField.field.fieldType === 5) {\r\n findField.value = {\r\n start: null,\r\n end: null,\r\n };\r\n } else if (findField.field.fieldType === 1) {\r\n findField.value = false;\r\n } else {\r\n findField.value = '';\r\n }\r\n\r\n let dictionaryRule = field.rules.find(x => x.ruleType == 18);\r\n\r\n if (dictionaryRule) {\r\n let dictId = dictionaryRule.guid;\r\n let dictionaryValues = [];\r\n let response = await this.dictionaryService.getDictionaryValues(dictId).toPromise();\r\n let data = response.data;\r\n dictionaryValues = data.map(v => { return { label: v.value, value: v.key } });\r\n findField.dictionary = dictionaryValues\r\n }\r\n\r\n\r\n\r\n\r\n this.findFields.push(findField)\r\n }\r\n else {\r\n this.findFields = this.findFields.filter(f => {\r\n return f.field.shortName != field.shortName;\r\n })\r\n }\r\n this.chosenFields = this.findFields.map((findField) => findField.field);\r\n }\r\n\r\n valueChangeFindField(shortName: string, value: string | Date, isStart?: boolean) {\r\n const findField = this.findFields.find(field => {\r\n return field.field.shortName === shortName;\r\n });\r\n\r\n if (findField.field.fieldType === 5) {\r\n if (isStart) {\r\n findField.value.start = value;\r\n } else {\r\n findField.value.end = value;\r\n }\r\n } else {\r\n findField.value = value;\r\n }\r\n }\r\n\r\n find() {\r\n this.documents = null;\r\n this.isFilterExpanded = false;\r\n this.isSearchVisible = true;\r\n this.isDocumentsLoading = true;\r\n this.isDocumentsVisible = true;\r\n this.documentService.getDocuments(\r\n undefined,\r\n undefined,\r\n undefined,\r\n this.template.shortName,\r\n undefined,\r\n this.findFields.map(findField => {\r\n if (findField.field.fieldType === 5) {\r\n return `${findField.field.shortName}>=${findField.value.start.toISOString()}&${findField.field.shortName}<=${findField.value.end.toISOString()}`;\r\n } else {\r\n return `${findField.field.shortName}=${findField.value}`;\r\n }\r\n }).join('&')\r\n ).subscribe(result => {\r\n this.documents = result.data;\r\n this.isDocumentsLoading = false;\r\n })\r\n }\r\n goToDocument(document: DocumentsDocumentViewModel) {\r\n this.router.navigate([\"documents/details\", document.guid], { relativeTo: this.route.root })\r\n this.isSearchVisible = false;\r\n this.selectTemplate(null);\r\n this.documents = [];\r\n }\r\n\r\n @HostListener('document:click', ['$event']) clickedOutside($event) {\r\n var elem = $event.target;\r\n while (!!elem.parentElement) {\r\n if (elem.nodeName.toLowerCase() === \"app-find-document\") {\r\n return;\r\n }\r\n if (elem.nodeName.toLowerCase() === \"mat-calendar\") {\r\n return;\r\n }\r\n elem = elem.parentElement;\r\n }\r\n\r\n this.isSearchVisible = false;\r\n }\r\n\r\n uploadToExcel() {\r\n this.generatingExcel = true;\r\n this.documentService.exportDocumentsAsXLSX(\r\n `@locale:${this.locale}`,\r\n {\r\n documentsIds: this.documents.map(doc => doc.guid),\r\n columns: this.availableFields.map(field => ({\r\n name: field.name,\r\n fieldType: field.fieldType,\r\n shortName: field.shortName\r\n }))\r\n }\r\n ).subscribe(x => {\r\n import(\"file-saver\").then(FileSaver => {\r\n let EXCEL_EXTENSION = '.xlsx';\r\n FileSaver.saveAs(x, this.template.name + '_raport_' + this.pipe.transform(new Date(), 'shortDate') + EXCEL_EXTENSION);\r\n this.generatingExcel = false;\r\n });\r\n }, () => {\r\n this.generatingExcel = false;\r\n })\r\n }\r\n\r\n valueOrNameOrEmpty(fieldValues, field: FieldsFieldViewModel) {\r\n let value = fieldValues[field.shortName];\r\n\r\n if (field.shortName.includes('.')) {\r\n let main = field.shortName.split('.')[0];\r\n let fieldShortName = field.shortName.split('.')[1];\r\n value = fieldValues[main]?.[fieldShortName];\r\n }\r\n\r\n return value;\r\n }\r\n}\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ngx-footer',\r\n styleUrls: ['./footer.component.scss'],\r\n template: `T Komp 2021`,\r\n})\r\nexport class FooterComponent {\r\n}\r\n","\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n \r\n
{{getTitle()}}
\r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n","import { Component, Input, OnInit } from '@angular/core';\r\nimport { TemplateService } from '../../../@apiClient/core/index';\r\nimport { UserService, UserModel } from '../../../@core/data/users.service';\r\nimport { AnalyticsService } from '../../../@core/utils/analytics.service';\r\nimport { BreadCrumbItem, TitleService } from '../../../@core/data/title.service';\r\nimport { NbAuthService } from '@nebular/auth';\r\nimport { Router } from '@angular/router';\r\nimport { NbSidebarService } from '@nebular/theme';\r\nimport { MenuItem } from 'primeng/api';\r\nimport { settings } from '../../../app.settings';\r\nimport { defaultSettings } from '../../../settings';\r\n\r\n@Component({\r\n selector: 'ngx-header',\r\n styleUrls: ['./header.component.scss'],\r\n templateUrl: './header.component.html',\r\n})\r\nexport class HeaderComponent implements OnInit {\r\n breadcrumbItems: MenuItem[] = [];\r\n user: any;\r\n showProfile: boolean;\r\n showTeam: boolean;\r\n showCompany: boolean;\r\n showSettings: boolean = false;\r\n constructor(\r\n private userService: UserService,\r\n private titleService: TitleService,\r\n private analyticsService: AnalyticsService,\r\n protected authService: NbAuthService,\r\n private router: Router,\r\n protected sidebarService: NbSidebarService,\r\n private templateService: TemplateService\r\n ) {\r\n }\r\n\r\n ngOnInit() {\r\n this.userService.getUser().subscribe( user =>{\r\n this.user = user;\r\n this.showSettings = !!user.systemRoles && user.systemRoles.some( x=> x == \"SystemModerator\");\r\n if (this.showUserMenu){\r\n this.templateService.getTemplate(\"_person\").subscribe(x => {\r\n if (x?.data?.permissions) {\r\n if (x.data.permissions?.roles?.find(x => x === 'show_persons_menu_template' || x === 'admin')) {\r\n this.showProfile = true;\r\n this.showTeam = true;\r\n this.showCompany = true;\r\n }\r\n else {\r\n this.showProfile = true;\r\n this.showTeam = false;\r\n this.showCompany = false;\r\n }\r\n }\r\n })\r\n }\r\n });\r\n\r\n this.titleService.get().subscribe(items => {\r\n this.breadcrumbItems = items.map( i => {return {label:i.title} as MenuItem});\r\n })\r\n \r\n\r\n }\r\n\r\n startSearch() {\r\n this.analyticsService.trackEvent('startSearch');\r\n }\r\n goToPersonList() {\r\n this.router.navigate(['/documents/list/_person'])\r\n }\r\n goToProfile() {\r\n //let user = this.getUser()\r\n this.router.navigate(['/documents/details/', this.user.personId]);\r\n }\r\n goToCompanyInfoCard() {\r\n this.router.navigate(['/moreinfo/companyinfo'])\r\n }\r\n goToSettings() {\r\n this.router.navigate(['/templates/sources'])\r\n }\r\n LogOut() {\r\n this.router.navigate(['/auth/logout']);\r\n }\r\n getUser(): UserModel {\r\n return this.userService.getUserObject()\r\n }\r\n getUserAvatarImageSrc() {\r\n return this.userService.getAvatarImageSrc();\r\n }\r\n toggleSidebar() {\r\n this.sidebarService.toggle(true, 'menu-sidebar');\r\n }\r\n getTitle(): string{\r\n return this.titleService.getTitle();\r\n }\r\n get showUserMenu():boolean {\r\n let _settings = settings;\r\n if (!_settings?.menus?.user?.show) _settings = defaultSettings;\r\n return typeof _settings.menus.user.show == \"function\" ?\r\n _settings.menus.user.show(this.user) :\r\n _settings.menus.user.show\r\n }\r\n get showNotificationInducator():boolean {\r\n let _settings = settings;\r\n if (!_settings.layout) _settings = defaultSettings;\r\n return typeof _settings.layout.showNotificationInducator == \"function\" ?\r\n _settings.layout.showNotificationInducator(this.user) :\r\n _settings.layout.showNotificationInducator\r\n }\r\n get showSearchBar():boolean {\r\n let _settings = settings;\r\n if (!_settings.layout) _settings = defaultSettings;\r\n return typeof _settings.layout.showSearchBar == \"function\" ?\r\n _settings.layout.showSearchBar(this.user) :\r\n _settings.layout.showSearchBar\r\n }\r\n}\r\n","
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
","import { Input } from '@angular/core';\r\nimport { Component, EventEmitter, OnInit, Output } from '@angular/core';\r\nimport { settings } from '../../../../app.settings'\r\n\r\n@Component({\r\n selector: 'ngx-user-menu',\r\n templateUrl: './userMenu.component.html',\r\n styleUrls: ['./userMenu.component.scss']\r\n})\r\nexport class UserMenuComponent implements OnInit {\r\n\r\n @Input() userName: string;\r\n @Input() avatorImageSrc: string;\r\n @Output() profileClick = new EventEmitter();\r\n @Output() personListClick = new EventEmitter();\r\n @Output() companyInfoClick = new EventEmitter();\r\n @Output() settingsClick = new EventEmitter();\r\n @Output() logOutClick = new EventEmitter();\r\n\r\n @Input() showProfile: boolean;\r\n @Input() showTeam: boolean;\r\n @Input() showCompany: boolean;\r\n @Input() showSettings: boolean = true;\r\n showLogout: boolean = true;\r\n constructor() {\r\n }\r\n\r\n ngOnInit(): void {\r\n let menuPositions = settings.menus.user.positions;\r\n this.showProfile = menuPositions.includes('profile') && this.showProfile;\r\n this.showTeam = menuPositions.includes('team') && this.showTeam;\r\n this.showCompany = menuPositions.includes('company') && this.showCompany;\r\n this.showLogout = menuPositions.includes('logout');\r\n }\r\n\r\n\r\n}\r\n","import { Component, Inject, OnDestroy, OnInit, PLATFORM_ID } from \"@angular/core\";\r\nimport { environment } from '../../../../environments/environment';\r\nimport { I18NEXT_SERVICE, ITranslationService } from \"angular-i18next\";\r\nimport { Subscription } from \"rxjs\";\r\nimport { isPlatformBrowser } from \"@angular/common\";\r\n\r\n@Component({\r\n selector: 'ngx-langswitcher',\r\n styleUrls: ['./langswitcher.component.scss'],\r\n template: `\r\n
\r\n
{{ 'Language' | i18next }}
\r\n
\r\n
`,\r\n})\r\nexport class LangSwitcherComponent implements OnInit, OnDestroy {\r\n langs: string[] = environment.languages;\r\n private i18NextServiceSubscrition: Subscription = null;\r\n\r\n constructor(\r\n @Inject(PLATFORM_ID) private platformId: any,\r\n @Inject(I18NEXT_SERVICE) private i18NextService: ITranslationService) { }\r\n\r\n ngOnInit() {\r\n this.langs = environment.languages.filter( x=> x.length == 2)\r\n this.i18NextServiceSubscrition = this.i18NextService.events.initialized.subscribe(e => {\r\n if (e) {\r\n this.changeLanguage(this.i18NextService.language);\r\n }\r\n });\r\n }\r\n ngOnDestroy(): void {\r\n this.i18NextServiceSubscrition && this.i18NextServiceSubscrition.unsubscribe()\r\n }\r\n public changeLanguage(lang: string) {\r\n if (lang !== this.i18NextService.language) {\r\n this.i18NextService.changeLanguage(lang).then(() => {\r\n document.location.reload();\r\n });\r\n }\r\n }\r\n\r\n}\r\n","
\r\n \r\n \r\n
\r\n\r\n\r\n \r\n
\r\n

{{ 'Notifications' | i18next }}

\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n {{notification.subject}}\r\n
\r\n
\r\n \r\n
\r\n
\r\n {{ 'There are no new notifications' | i18next }}\r\n
\r\n
\r\n {{ 'Show all' | i18next }} \r\n
\r\n
","import {\r\n ChangeDetectorRef,\r\n Component,\r\n ElementRef,\r\n OnDestroy,\r\n OnInit,\r\n ViewChild,\r\n} from \"@angular/core\";\r\nimport { MenuItem } from \"primeng/api\";\r\nimport { NotificationsService } from \"../../../@core/data\";\r\nimport { Notification } from \"../../../@apiClient/core\";\r\nimport { Subscription } from \"rxjs\";\r\nimport { I18NextPipe} from 'angular-i18next';\r\nimport { DomSanitizer, SafeHtml } from \"@angular/platform-browser\";\r\n\r\n@Component({\r\n selector: \"app-notification-inducator\",\r\n styleUrls: [\"./notification-inducator.component.scss\"],\r\n templateUrl: \"./notification-inducator.component.html\",\r\n})\r\nexport class NotificationInducatorComponent implements OnInit, OnDestroy {\r\n public unreadCount: any = null;\r\n public notifications: Notification[] = [];\r\n public menuItems: MenuItem[] = [\r\n {\r\n label: this.i18nextPipe.transform('Set all as read'),\r\n icon: \"pi pi-check\",\r\n command: () => {\r\n this.notificationsService.setAllAsRead();\r\n this.notifications = [];\r\n this.unreadCount = null;\r\n },\r\n },\r\n {\r\n label: this.i18nextPipe.transform('Clear'),\r\n icon: \"pi pi-trash\",\r\n command: () => {\r\n this.notificationsService.deleteAll();\r\n },\r\n },\r\n ];\r\n\r\n @ViewChild(\"inducator\") inducator: ElementRef;\r\n\r\n private unreadSubscription: Subscription;\r\n private onNewNotificationSubscription: Subscription;\r\n constructor(private notificationsService: NotificationsService, private i18nextPipe: I18NextPipe,\r\n private sanitizer: DomSanitizer,\r\n private cd: ChangeDetectorRef) {\r\n \r\n }\r\n\r\n ngOnInit(): void {\r\n this.notificationsService.load();\r\n this.unreadSubscription = this.notificationsService\r\n .unread()\r\n .subscribe((unreadNotifactions) => {\r\n this.notifications = unreadNotifactions;\r\n if (this.unreadCount < unreadNotifactions.length) {\r\n this.setActive();\r\n }\r\n if (unreadNotifactions.length){\r\n this.unreadCount = unreadNotifactions.length;\r\n }\r\n else {\r\n this.unreadCount = '';\r\n }\r\n this.sortNotificationsData();\r\n this.cd.detectChanges();\r\n });\r\n\r\n this.onNewNotificationSubscription =\r\n this.notificationsService.onNewNotification.subscribe((m) => {\r\n this.unreadCount = (this.unreadCount || 0) + 1;\r\n this.notifications.push(m);\r\n this.cd.detectChanges();\r\n });\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.unreadSubscription.unsubscribe();\r\n this.onNewNotificationSubscription.unsubscribe();\r\n }\r\n \r\n async load():Promise {\r\n this.notifications = await this.notificationsService.load();\r\n }\r\n\r\n getNotificationContent(content: string):SafeHtml {\r\n return this.sanitizer.bypassSecurityTrustHtml(content);\r\n }\r\n\r\n setAsRead(guid: string){\r\n this.notificationsService.setAsRead([guid]);\r\n }\r\n\r\n private setActive() {\r\n this.inducator?.nativeElement.classList.add(\"active\");\r\n setTimeout(() => {\r\n this.inducator?.nativeElement.classList.remove(\"active\");\r\n }, 500);\r\n }\r\n\r\n sortNotificationsData() {\r\n this.notifications.sort((a, b) => new Date(b.date) - new Date(a.date))\r\n }\r\n}\r\n","export class Token {\r\n id: string;\r\n type: TokenType;\r\n name: string;\r\n shortname: string;\r\n nameState: TokenState;\r\n value: string;\r\n valueState: TokenState;\r\n hints: Array;\r\n\r\n constructor(type: TokenType) {\r\n this.type = type;\r\n this.value = \"\";\r\n this.nameState = TokenState.View;\r\n this.valueState = TokenState.View;\r\n this.hints = [];\r\n }\r\n}\r\nexport class TokenHint {\r\n type: TokenHintType;\r\n value: string;\r\n shortname: string;\r\n label: string;\r\n labelShortname: string; \r\n}\r\nexport enum TokenType {\r\n None = 0,\r\n Template = 1,\r\n Field = 2,\r\n Removed = -1,\r\n}\r\nexport enum TokenState {\r\n View = 0,\r\n Edit = 1\r\n}\r\n\r\nexport enum TokenHintType {\r\n Templates = 1,\r\n Fields = 2,\r\n Values = 3,\r\n LastQueries = 10\r\n}","\r\n\t
\r\n\t\t\r\n\t \r\n\t\t \r\n\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
{{token.name}}
=
\r\n\t\t\t\t\t\t\t
{{token.value}}
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
({{hint.label}}) {{hint.value}}
\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
{{hint.value}}
\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n \t
\r\n\t
\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t \t\r\n\t\r\n","import { Component, OnInit, HostListener, ViewChildren, QueryList, ElementRef, ViewChild } from '@angular/core';\r\nimport { TemplatesTemplateViewModel, DocumentsDocumentViewModel } from '../../../@apiClient/core';\r\nimport { TemplateService } from '../../../@apiClient/extensions/api/template.service';\r\nimport { DocumentService } from '../../../@apiClient/extensions/api/document.service';\r\nimport { Token, TokenType, TokenState, TokenHintType, TokenHint } from './models/token';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\n@Component({\r\n selector: 'ngx-search-box',\r\n templateUrl: './search-box.component.html',\r\n styleUrls: ['./search-box.component.scss']\r\n})\r\nexport class SearchBoxComponent implements OnInit {\r\n\r\n tokens: Array = [];\r\n searchId: string = \"\";\r\n tokenInEditMode: Token;\r\n templates: Array;\r\n cultureSpec: any = {\r\n templateMarks: [\"Rodzaj\"]\r\n }\r\n resultsTableVisibility: boolean = false;\r\n \r\n @ViewChildren('tokenEditInput') tokenEditInputs:QueryList;\r\n resultsTableSource: any[];\r\n resultsTableSettings: any;\r\n\r\n constructor(\r\n private documentService: DocumentService,\r\n private templateService: TemplateService,\r\n private router: Router, \r\n private route: ActivatedRoute) {\r\n this.templateService.getTemplates().subscribe(value => {\r\n this.templates = value.data;\r\n })\r\n }\r\n\r\n ngOnInit(): void {\r\n this.searchId = '_' + Math.random().toString(36).substr(2, 9);\r\n this.appendDefaultToken();\r\n }\r\n \r\n appendDefaultToken(){\r\n var defaultToken = new Token(TokenType.None);\r\n defaultToken.valueState = TokenState.Edit;\r\n this.tokens.push(defaultToken);\r\n }\r\n\r\n searchInputKeyPress($event: Event, token: Token) {\r\n let searchInput = (event.target);\r\n let value = searchInput.value;\r\n var typedKey = ($event).code;\r\n if (typedKey == \"Space\" || typedKey == \"Enter\" || typedKey == \"Quote\"){\r\n if (this.tryAddNewToken(value)){\r\n searchInput.value = \"\";\r\n }\r\n if (typedKey == \"Enter\"){\r\n this.searchDocuments();\r\n this.hideHints($event);\r\n }\r\n }\r\n else if (typedKey == \"Backspace\" && searchInput.selectionStart == 0){\r\n var normalTokens = this.tokens.filter( t => t.type !== TokenType.None);\r\n var count = normalTokens.length;\r\n if (!!count) this.enableEditTokenValue(normalTokens[count-1]);\r\n }\r\n else {\r\n this.showHints(token, value);\r\n }\r\n }\r\n\r\n searchDocuments(){\r\n let templateToken = this.tokens.find( t => t.type == TokenType.Template);\r\n let searchId, searchName, searchDescription, searchQuery;\r\n let pageSize = undefined;\r\n let pageNumber = undefined;\r\n let searchTemplateShortname = !!templateToken ? templateToken.shortname : null;\r\n var searchFields = undefined;\r\n var fieldsTokens = this.tokens.filter( t => t.type == TokenType.Field);\r\n if (fieldsTokens.length > 0) {\r\n searchFields = fieldsTokens.map( t=> t.shortname+\"=\"+t.value).join(\"&\");\r\n }\r\n this.documentService.getDocuments(searchId, searchName, searchQuery, searchTemplateShortname, searchDescription, searchFields, pageSize, pageNumber).subscribe(\r\n results => setTimeout(() => {\r\n const settings = {};\r\n const columns = {};\r\n const dataTable = [];\r\n let data = results.data;\r\n columns['templateName'] = {title: 'Typ' , typ: 'string'}\r\n for (let row = 0; row < data.length; row++) {\r\n const dataRow = {};\r\n const obj = data[row];\r\n for (const key in obj) {\r\n if (obj.hasOwnProperty(key)) {\r\n let templateGuid = obj.templateGuid;\r\n let template = this.templates.find(t => t.guid == templateGuid);\r\n if (key === 'fieldValues') {\r\n const fieldArray = obj[key];\r\n for (var field in fieldArray) {\r\n if (fieldArray.hasOwnProperty(field)) {\r\n let templateField = template.fields.find( f => f.shortName == field);\r\n if (templateField!=null){\r\n if (!!templateField.searchVisibility){\r\n dataRow[field] = fieldArray[field];\r\n columns[field] = {title: templateField.name, type: 'text'}\r\n }\r\n }\r\n }\r\n }\r\n } else {\r\n dataRow[key] = obj[key]\r\n }\r\n }\r\n }\r\n dataTable.push(dataRow);\r\n }\r\n\r\n settings['columns'] = columns;\r\n settings['actions'] = true;\r\n this.resultsTableSettings = settings;\r\n this.resultsTableSource = dataTable;\r\n this.resultsTableVisibility = true;\r\n }, 2000\r\n ));\r\n\r\n \r\n }\r\n\r\n tryAddNewToken(value: string):boolean{\r\n var match = (/((\"([^\"]*)\")|([^=]*))=((\"([^\"]*)\")|(.*))/g).exec(value);\r\n if (!!match){\r\n var p1 = match[1];\r\n var p2 = match[5];\r\n\r\n var p1_firstChar = p1.charAt(0);\r\n var p1_lastChar = p1.charAt(p1.length-1);\r\n var p1_quotes = p1_firstChar == '\"' && p1_lastChar == '\"' && p1.length > 1;\r\n var p2_firstChar = p2.charAt(0);\r\n var p2_lastChar = p2.charAt(p2.length-1);\r\n var p2_quotes = p2_firstChar == '\"' && p2_lastChar == '\"' && p2.length > 1;\r\n\r\n var part1Success = p1_quotes || (p1_firstChar != '\"' && p1_lastChar != '\"');\r\n var part2Success = p2_quotes || (p2_firstChar != '\"' && p2_lastChar != '\"');\r\n\r\n if (part1Success && part2Success) {\r\n p1 = p1_quotes && p1.substring(1, p1.length-1) || p1.trim(); //if has quotes remove them, else just trim \r\n p2 = p2_quotes && p2.substring(1, p2.length-1) || p2.trim();\r\n if (p1.length > 0 && p2.length > 0) {\r\n if (this.cultureSpec.templateMarks.indexOf(p1) >= 0) { // is Template ? TokenType.Template : TokenType.Field;\r\n var newToken = new Token(TokenType.Template);\r\n }\r\n else {\r\n var newToken = new Token(TokenType.Field);\r\n }\r\n newToken.name = p1; \r\n newToken.shortname = p1;\r\n newToken.value = p2;\r\n newToken.nameState = TokenState.View;\r\n newToken.valueState = TokenState.View;\r\n this.tokens.splice(this.tokens.length-1, 0, newToken);\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }\r\n\r\n\r\n enableEditTokenValue(token: Token): void{\r\n var tokenIndex = this.tokens.findIndex( t => t == token);\r\n this.tokens[tokenIndex].valueState = TokenState.Edit;\r\n this.tokenInEditMode = token;\r\n if (token.type == TokenType.Template){\r\n this.fetchHintsIntoToken(token, TokenHintType.Templates, null,'');\r\n }\r\n }\r\n\r\n endEditToken($event: Event, token: Token, name: string, shortname: string, tokenValue: string): void{\r\n if (token.type != 0){\r\n var tokenIndex = this.tokens.findIndex( t => t == token);\r\n this.tokens[tokenIndex].valueState = TokenState.View;\r\n this.tokens[tokenIndex].nameState = TokenState.View;\r\n this.tokens[tokenIndex].name = name;\r\n this.tokens[tokenIndex].shortname = shortname;\r\n this.tokens[tokenIndex].value = tokenValue;\r\n }\r\n else if(!!name && !!shortname){\r\n \r\n }\r\n this.tokenInEditMode = null;\r\n }\r\n\r\n endEdit(){\r\n this.tokens.forEach( (t) => {\r\n t.nameState = TokenState.View;\r\n t.valueState = TokenState.View;\r\n });\r\n }\r\n\r\n addTokenFromHint($event: Event, token: Token, hint: TokenHint){\r\n var newToken = token.type == TokenType.None;\r\n newToken && this.tokenEditInputs.forEach( (input) => input.nativeElement.value = \"\");\r\n\r\n let setNewTokenAsEdited = false;\r\n if (hint.type == TokenHintType.Templates){\r\n token = !newToken && token || new Token(TokenType.Template);\r\n token.name = hint.label;\r\n token.shortname = hint.shortname;\r\n token.value = hint.value;\r\n \r\n var templateToken = this.tokens.find( t => t.type == TokenType.Template);\r\n this.fetchHintsIntoToken(null, TokenHintType.Fields, (!!templateToken ? templateToken.shortname : \"\"), \"\");\r\n }\r\n if (hint.type == TokenHintType.Fields){\r\n token = !newToken && token || new Token(TokenType.Field);\r\n token.name = hint.value;\r\n token.shortname = hint.shortname;\r\n token.value = \"\";\r\n setNewTokenAsEdited = newToken;\r\n }\r\n \r\n newToken && this.tokens.splice(this.tokens.length-1, 0, token);\r\n setNewTokenAsEdited && this.enableEditTokenValue(token);\r\n !setNewTokenAsEdited && this.endEdit();\r\n $event.preventDefault();\r\n $event.stopPropagation();\r\n }\r\n\r\n remove($event: Event, token: Token): void{\r\n if (token.type != TokenType.None){\r\n this.tokens = this.tokens.filter( t => t !== token);\r\n }\r\n else { //clear All\r\n this.tokenEditInputs.forEach( (input) => input.nativeElement.value = \"\");\r\n this.tokens = this.tokens.filter( t => t == token);\r\n this.resultsTableVisibility = false;\r\n }\r\n }\r\n\r\n showHints(token: Token, filterValue: string) {\r\n var templateToken = this.tokens.find( t => t.type == TokenType.Template);\r\n if (!templateToken || (!!token && token.type == TokenType.Template)) {\r\n this.fetchHintsIntoToken(token, TokenHintType.Templates, null, filterValue);\r\n }\r\n else if (!!templateToken){\r\n this.fetchHintsIntoToken(token, TokenHintType.Fields, templateToken.shortname, filterValue);\r\n }\r\n \r\n }\r\n hideHints($event: Event) {\r\n this.tokens.forEach( (t) => t.nameState = TokenState.View); \r\n }\r\n fetchHintsIntoToken(token: Token, hintType: TokenHintType, templateShortName: string, filterValue: string){\r\n if (!this.templates) return; \r\n\r\n if (!token){\r\n var generalTokens = this.tokens.filter( t => t.type === TokenType.None);\r\n token = generalTokens[0];\r\n }\r\n token.nameState = TokenState.Edit;\r\n token.hints = [];\r\n if (hintType == TokenHintType.Templates){\r\n this.templates.forEach( template => {\r\n if (template.name.trim().toLowerCase().indexOf(filterValue.trim().toLowerCase()) < 0) return;\r\n\r\n const hint = new TokenHint();\r\n hint.type = TokenHintType.Templates;\r\n hint.value = template.name;\r\n hint.shortname = template.shortName;\r\n hint.label = this.cultureSpec.templateMarks;\r\n hint.labelShortname = \"type\";\r\n token.hints.push(hint);\r\n })\r\n }\r\n if (hintType == TokenHintType.Fields){\r\n this.templates.filter( t => t.shortName == templateShortName).forEach( template => {\r\n template.fields.forEach( field => {\r\n if (field.name.indexOf(filterValue) < 0) return;\r\n const hint = new TokenHint();\r\n hint.type = TokenHintType.Fields;\r\n hint.value = field.name;\r\n hint.shortname = field.shortName;\r\n hint.label = template.name;\r\n hint.labelShortname = template.shortName;\r\n token.hints.push(hint);\r\n });\r\n });\r\n }\r\n\r\n token.hints = token.hints.sort((a,b) => a.value.localeCompare(b.value))\r\n }\r\n onResultsListRowClick(event: any){\r\n let selectedDocument : DocumentsDocumentViewModel = event.data;\r\n this.resultsTableVisibility = false;\r\n this.router.navigate(['documents/details/', selectedDocument.guid],{ relativeTo: this.route.root });\r\n }\r\n \r\n @HostListener('document:click', ['$event']) clickedOutside($event) {\r\n var elem = $event.target;\r\n while(!!elem.parentElement){\r\n if (elem.nodeName.toLowerCase() === \"ng2-smart-table\") break;\r\n if (elem.nodeName.toLowerCase() === \"ngx-search-box\") {\r\n return;\r\n }\r\n elem = elem.parentElement;\r\n }\r\n this.hideHints($event); \r\n }\r\n}\r\n","import { Component, OnDestroy } from '@angular/core';\r\nimport { delay, withLatestFrom } from 'rxjs/operators';\r\nimport { Subscription } from 'rxjs';\r\nimport {\r\n NbMediaBreakpoint,\r\n NbMediaBreakpointsService,\r\n NbMenuService,\r\n NbSidebarService,\r\n NbThemeService,\r\n} from '@nebular/theme';\r\nimport { StateService } from '../../../@core/data/state.service';\r\nimport { environment } from '../../../../environments/environment';\r\nimport { settings } from '../../../app.settings';\r\n@Component({\r\n selector: 'app-simple-layout',\r\n styleUrls: ['./simple.layout.scss'],\r\n template: `\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \"logo\"\r\n
\r\n
\r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n `,\r\n})\r\nexport class SimpleLayoutComponent implements OnDestroy {\r\n\r\n layout: any = {};\r\n sidebar: any = {};\r\n headerName = environment.headerName\r\n subHeaderName = environment.subheaderName\r\n hasLogoClient = settings.client.hasLogoClient;\r\n protected sidebarState$: Subscription;\r\n protected layoutState$: Subscription;\r\n protected menuClick$: Subscription;\r\n\r\n constructor(\r\n protected stateService: StateService,\r\n protected menuService: NbMenuService,\r\n protected themeService: NbThemeService,\r\n protected bpService: NbMediaBreakpointsService,\r\n protected sidebarService: NbSidebarService\r\n ) {\r\n this.layoutState$ = this.stateService\r\n .onLayoutState()\r\n .subscribe((layout: string) => (this.layout = layout));\r\n\r\n this.sidebarState$ = this.stateService.onSidebarState().subscribe((sidebar: string) => {\r\n this.sidebar = sidebar;\r\n });\r\n\r\n const isBp = this.bpService.getByName('is');\r\n this.menuClick$ = this.menuService\r\n .onItemSelect()\r\n .pipe(\r\n withLatestFrom(this.themeService.onMediaQueryChange()),\r\n delay(20)\r\n )\r\n .subscribe(([item, [bpFrom, bpTo]]: [any, [NbMediaBreakpoint, NbMediaBreakpoint]]) => {\r\n if (bpTo.width <= isBp.width) {\r\n this.sidebarService.collapse('menu-sidebar');\r\n }\r\n });\r\n }\r\n\r\n ngOnDestroy() {\r\n this.layoutState$.unsubscribe();\r\n this.sidebarState$.unsubscribe();\r\n this.menuClick$.unsubscribe();\r\n }\r\n\r\n toggleSidebar() {\r\n this.sidebarService.toggle(true, 'menu-sidebar');\r\n }\r\n\r\n goToHome() {\r\n this.menuService.navigateHome();\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({ name: 'ngxCapitalize' })\r\nexport class CapitalizePipe implements PipeTransform {\r\n\r\n transform(input: string): string {\r\n return input && input.length\r\n ? (input.charAt(0).toUpperCase() + input.slice(1).toLowerCase())\r\n : input;\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({ name: 'ngxNumberWithCommas' })\r\nexport class NumberWithCommasPipe implements PipeTransform {\r\n\r\n transform(input: number, useSeparators = true): string {\r\n return new Intl.NumberFormat(undefined, {\r\n useGrouping: useSeparators,\r\n }).format(input);\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({ name: 'ngxPlural' })\r\nexport class PluralPipe implements PipeTransform {\r\n\r\n transform(input: number, label: string, pluralLabel: string = ''): string {\r\n input = input || 0;\r\n return input === 1\r\n ? `${input} ${label}`\r\n : pluralLabel\r\n ? `${input} ${pluralLabel}`\r\n : `${input} ${label}s`;\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({ name: 'ngxRound' })\r\nexport class RoundPipe implements PipeTransform {\r\n\r\n transform(input: number): number {\r\n return Math.round(input);\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({ name: 'timing' })\r\nexport class TimingPipe implements PipeTransform {\r\n transform(time: number): string {\r\n if (time) {\r\n const minutes = Math.floor(time / 60);\r\n const seconds = Math.floor(time % 60);\r\n return `${this.initZero(minutes)}${minutes}:${this.initZero(seconds)}${seconds}`;\r\n }\r\n\r\n return '00:00';\r\n }\r\n\r\n private initZero(time: number): string {\r\n return time < 10 ? '0' : '';\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\n\r\n\r\n@Injectable()\r\nexport class IconSetService {\r\n constructor() { }\r\n\r\n getIcon(iconName: string): string[] {\r\n let iconSet = {\r\n \"archive\":['fas', 'archive'],\r\n \"calendar\": ['fas', 'calendar-alt'],\r\n \"city\": ['fas', 'city'],\r\n \"clock\": ['fas', 'clock'],\r\n \"comment\": ['fas', 'comment'],\r\n \"done\": ['fas', 'check'],\r\n \"email\": ['fas', 'at'],\r\n \"file\": ['fas', 'file-alt'],\r\n \"flag\": ['fas', 'flag'],\r\n \"map-marker\": ['fas', 'map-marked-alt'],\r\n \"negative\": ['fas', 'thumbs-down'],\r\n \"person\": ['fas', 'user'],\r\n \"positive\":['fas', 'thumbs-up'],\r\n \"question\": ['fas', 'question'],\r\n \"tag\": ['fas', 'tag']\r\n };\r\n return iconSet[iconName];\r\n }\r\n}\r\n","import { Injectable } from \"@angular/core\";\r\n\r\n@Injectable()\r\nexport class ThemesService {\r\n constructor() {}\r\n\r\n public loadTheme(styleName: string) {\r\n this.loadStyle(styleName+\"-styles.css\", \"theme-styles\");\r\n this.loadStyle(styleName+\"-bootstrap.css\", \"theme-bootstrap\");\r\n }\r\n\r\n loadStyle(styleHref: string, linkElementId: string) {\r\n var linkItem = document.getElementById(linkElementId);\r\n if (!!linkItem){\r\n linkItem.setAttribute(\"href\", styleHref);\r\n }\r\n else {\r\n var head = document.head;\r\n const style = document.createElement('link');\r\n style.id = linkElementId;\r\n style.rel = 'stylesheet';\r\n style.href = styleHref;\r\n head.appendChild(style);\r\n }\r\n }\r\n}\r\n\r\n\r\n","import { Inject, Injectable, OnDestroy } from '@angular/core';\r\nimport { coerceCssPixelValue } from '@angular/cdk/coercion';\r\nimport {\r\n NB_WINDOW,\r\n NbLayoutComponent,\r\n NbLayoutDimensions,\r\n NbLayoutRulerService,\r\n NbLayoutScrollService,\r\n NbViewportRulerAdapter,\r\n} from '@nebular/theme';\r\nimport { filter, map, take, takeUntil } from 'rxjs/operators';\r\nimport { fromEvent as observableFromEvent, merge, Subject } from 'rxjs';\r\n\r\n@Injectable()\r\nexport class WindowModeBlockScrollService implements OnDestroy {\r\n\r\n private destroy$ = new Subject();\r\n\r\n private blockEnabled = false;\r\n private unblock$ = new Subject();\r\n\r\n private container: HTMLElement;\r\n private content: HTMLElement;\r\n\r\n private previousScrollPosition: { top: number, left: number };\r\n private previousContainerStyles: { overflowY: string };\r\n private previousContentStyles: { left: string, top: string, width: string, overflow: string, position: string };\r\n\r\n constructor(\r\n private scrollService: NbLayoutScrollService,\r\n private viewportRuler: NbViewportRulerAdapter,\r\n private layout: NbLayoutRulerService,\r\n @Inject(NB_WINDOW) private window,\r\n ) {}\r\n\r\n ngOnDestroy() {\r\n this.destroy$.next();\r\n this.destroy$.complete();\r\n this.unblock$.complete();\r\n }\r\n\r\n register(layout: NbLayoutComponent) {\r\n this.container = layout.scrollableContainerRef.nativeElement;\r\n this.content = this.container.children[0] as HTMLElement;\r\n\r\n this.scrollService.onScrollableChange()\r\n .pipe(\r\n filter(() => layout.withScrollValue),\r\n map((scrollable: boolean) => !scrollable),\r\n takeUntil(this.destroy$),\r\n )\r\n .subscribe((shouldBlock: boolean) => {\r\n if (shouldBlock) {\r\n this.blockScroll();\r\n } else {\r\n this.unblockScroll();\r\n }\r\n });\r\n }\r\n\r\n blockScroll() {\r\n if (!this.canBeBlocked()) {\r\n return;\r\n }\r\n\r\n this.previousScrollPosition = this.viewportRuler.getViewportScrollPosition();\r\n this.backupStyles();\r\n\r\n this.container.style.overflowY = 'scroll';\r\n this.content.style.overflow = 'hidden';\r\n this.content.style.position = 'fixed';\r\n this.updateContentSizeAndPosition();\r\n\r\n observableFromEvent(this.window, 'resize')\r\n .pipe(\r\n takeUntil(merge(this.destroy$, this.unblock$).pipe(take(1))),\r\n )\r\n .subscribe(() => this.updateContentSizeAndPosition());\r\n\r\n this.blockEnabled = true;\r\n }\r\n\r\n unblockScroll() {\r\n if (this.blockEnabled) {\r\n this.restoreStyles();\r\n this.scrollService.scrollTo(this.previousScrollPosition.left, this.previousScrollPosition.top);\r\n this.unblock$.next();\r\n this.blockEnabled = false;\r\n }\r\n }\r\n\r\n private canBeBlocked(): boolean {\r\n if (this.blockEnabled) {\r\n return false;\r\n }\r\n\r\n const { height: containerHeight } = this.viewportRuler.getViewportSize();\r\n return this.content.scrollHeight > containerHeight;\r\n }\r\n\r\n private updateContentSizeAndPosition() {\r\n const { top, left } = this.container.getBoundingClientRect();\r\n this.content.style.left = coerceCssPixelValue(-this.previousScrollPosition.left + left);\r\n this.content.style.top = coerceCssPixelValue(-this.previousScrollPosition.top + top);\r\n this.layout.getDimensions()\r\n .pipe(\r\n map(({ clientWidth }: NbLayoutDimensions) => coerceCssPixelValue(clientWidth)),\r\n take(1),\r\n )\r\n .subscribe((clientWidth: string) => this.content.style.width = clientWidth);\r\n }\r\n\r\n private backupStyles() {\r\n this.previousContainerStyles = { overflowY: this.container.style.overflowY };\r\n this.previousContentStyles = {\r\n overflow: this.content.style.overflow,\r\n position: this.content.style.position,\r\n left: this.content.style.left,\r\n top: this.content.style.top,\r\n width: this.content.style.width,\r\n };\r\n }\r\n\r\n private restoreStyles() {\r\n this.container.style.overflowY = this.previousContainerStyles.overflowY;\r\n this.content.style.overflow = this.previousContentStyles.overflow;\r\n this.content.style.position = this.previousContentStyles.position;\r\n this.content.style.left = this.previousContentStyles.left;\r\n this.content.style.top = this.previousContentStyles.top;\r\n this.content.style.width = this.previousContentStyles.width;\r\n }\r\n}\r\n","import { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n// Font Awesome\r\nimport { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';\r\nimport { far } from '@fortawesome/free-regular-svg-icons';\r\nimport { fas } from '@fortawesome/free-solid-svg-icons';\r\nimport {\r\n NbActionsModule,\r\n NbLayoutModule,\r\n NbMenuModule,\r\n NbSearchModule,\r\n NbSidebarModule,\r\n NbUserModule,\r\n NbContextMenuModule,\r\n NbButtonModule,\r\n NbSelectModule,\r\n NbIconModule,\r\n NbThemeModule,\r\n NbCardModule,\r\n NbPopoverModule,\r\n NbListModule,\r\n NbCheckboxModule,\r\n NbInputModule,\r\n NbAccordionModule,\r\n NbSpinnerModule,\r\n} from '@nebular/theme';\r\nimport { NbEvaIconsModule } from '@nebular/eva-icons';\r\nimport { NbSecurityModule } from '@nebular/security';\r\n\r\nimport {\r\n FooterComponent,\r\n HeaderComponent,\r\n LangSwitcherComponent,\r\n} from './components';\r\nimport {\r\n CapitalizePipe,\r\n PluralPipe,\r\n RoundPipe,\r\n TimingPipe,\r\n NumberWithCommasPipe,\r\n} from './pipes';\r\nimport {\r\n SimpleLayoutComponent,\r\n} from './layouts';\r\nimport { WindowModeBlockScrollService } from './services/window-mode-block-scroll.service';\r\nimport { SearchBoxComponent } from './components/search-box/search-box.component';\r\nimport { UserMenuComponent } from './components/header/userMenu/userMenu.component';\r\nimport { IconSetService } from './services/IconSetService';\r\nimport { FindDocumentComponent } from './components/find-document/find-document.component';\r\nimport { MatNativeDateModule } from '@angular/material/core';\r\nimport { MatDatepickerModule } from '@angular/material/datepicker';\r\nimport { RouterModule } from '@angular/router';\r\n\r\nimport { BadgeModule } from 'primeng/badge';\r\nimport { ButtonModule } from 'primeng/button';\r\nimport { BreadcrumbModule } from 'primeng/breadcrumb';\r\nimport {MenuModule} from 'primeng/menu';\r\nimport { MultiSelectModule } from 'primeng/multiselect';\r\nimport { OverlayPanelModule } from 'primeng/overlaypanel';\r\nimport {ScrollPanelModule} from 'primeng/scrollpanel';\r\n\r\nimport { FormsModule } from '@angular/forms';\r\nimport { I18NextModule } from 'angular-i18next';\r\nimport { NotificationInducatorComponent } from './components/notification-inducator/notification-inducator.component';\r\n\r\nconst NB_MODULES = [\r\n NbLayoutModule,\r\n NbMenuModule,\r\n NbUserModule,\r\n NbActionsModule,\r\n NbCardModule,\r\n NbSearchModule,\r\n NbSidebarModule,\r\n NbContextMenuModule,\r\n NbSecurityModule,\r\n NbButtonModule,\r\n NbSelectModule,\r\n NbIconModule,\r\n NbEvaIconsModule,\r\n NbPopoverModule,\r\n NbListModule,\r\n NbCheckboxModule,\r\n NbInputModule,\r\n NbAccordionModule,\r\n NbSpinnerModule,\r\n MatDatepickerModule,\r\n MatNativeDateModule,\r\n];\r\nconst PRIME_MODULES = [\r\n BadgeModule,\r\n ButtonModule,\r\n BreadcrumbModule,\r\n MenuModule,\r\n MultiSelectModule,\r\n OverlayPanelModule,\r\n ScrollPanelModule\r\n];\r\nconst COMPONENTS = [\r\n HeaderComponent,\r\n FindDocumentComponent,\r\n FooterComponent,\r\n LangSwitcherComponent,\r\n NotificationInducatorComponent,\r\n SimpleLayoutComponent,\r\n SearchBoxComponent,\r\n UserMenuComponent,\r\n];\r\n\r\nconst PIPES = [\r\n CapitalizePipe,\r\n PluralPipe,\r\n RoundPipe,\r\n TimingPipe,\r\n NumberWithCommasPipe,\r\n];\r\n@NgModule({\r\n imports: [CommonModule, FontAwesomeModule, RouterModule, FormsModule, I18NextModule, ...NB_MODULES, ...PRIME_MODULES],\r\n exports: [CommonModule, ...PIPES, ...COMPONENTS],\r\n declarations: [...COMPONENTS, ...PIPES],\r\n providers: [IconSetService, WindowModeBlockScrollService]\r\n})\r\n\r\nexport class ThemeModule {\r\n constructor(library: FaIconLibrary) {\r\n library.addIconPacks(fas, far);\r\n }\r\n}","import { NgModule } from '@angular/core';\r\nimport { Routes, RouterModule } from '@angular/router';\r\nimport { CompanyInformationComponent } from './@addins/system/documents/companyinformation/companyinformation.component';\r\nconst routes: Routes = [\r\n { path: '', loadChildren: () => import('./pages/pages.module').then(m => m.PagesModule) }, //lazy loading like `() => PagesModule` throw errors in prerendering mode,\r\n { path: 'auth', loadChildren: () => import('./auth/auth.module').then(m => m.AuthModule) },\r\n\r\n];\r\n\r\n@NgModule({\r\n imports: [RouterModule.forRoot(routes, {\r\n initialNavigation: 'enabled',\r\n relativeLinkResolution: 'legacy'\r\n})],\r\n exports: [RouterModule]\r\n})\r\nexport class AppRoutingModule { }\r\n","import { Component, Inject } from \"@angular/core\";\r\nimport { NbIconLibraries } from \"@nebular/theme\";\r\nimport { I18NEXT_SERVICE, ITranslationService } from \"angular-i18next\";\r\nimport { PrimeNGConfig } from \"primeng/api\";\r\n\r\nimport { environment } from \"../environments/environment\";\r\nimport { ThemesService } from \"./@theme/services/themes.service\";\r\n@Component({\r\n selector: \"app-root\",\r\n template: \"\",\r\n})\r\nexport class AppComponent {\r\n constructor(\r\n private iconLibraries: NbIconLibraries,\r\n private themesService: ThemesService,\r\n private primengConfig: PrimeNGConfig,\r\n @Inject(I18NEXT_SERVICE) private i18NextService: ITranslationService\r\n ) {\r\n this.iconLibraries.registerFontPack(\"fas\", {\r\n packClass: \"fas\",\r\n iconClassPrefix: \"fa\",\r\n });\r\n\r\n this.primengConfig.setTranslation({\r\n startsWith: this.i18NextService.t(\"startsWith\"),\r\n contains: this.i18NextService.t(\"contains\"),\r\n notContains: this.i18NextService.t(\"notContains\"),\r\n endsWith: this.i18NextService.t(\"endsWith\"),\r\n equals: this.i18NextService.t(\"equals\"),\r\n notEquals: this.i18NextService.t(\"notEquals\"),\r\n noFilter: this.i18NextService.t(\"noFilter\"),\r\n lt: this.i18NextService.t(\"lt\"),\r\n lte: this.i18NextService.t(\"lte\"),\r\n gt: this.i18NextService.t(\"gt\"),\r\n gte: this.i18NextService.t(\"gte\"),\r\n is: this.i18NextService.t(\"is\"),\r\n isNot: this.i18NextService.t(\"isNot\"),\r\n dateIs: this.i18NextService.t(\"dateIs\"),\r\n dateIsNot: this.i18NextService.t(\"dateIsNot\"),\r\n dateBefore: this.i18NextService.t(\"dateBefore\"),\r\n dateAfter: this.i18NextService.t(\"dateAfter\"),\r\n before: this.i18NextService.t(\"before\"),\r\n after: this.i18NextService.t(\"after\"),\r\n clear: this.i18NextService.t(\"clear\"),\r\n apply: this.i18NextService.t(\"apply\"),\r\n matchAll: this.i18NextService.t(\"matchAll\"),\r\n matchAny: this.i18NextService.t(\"matchAny\"),\r\n addRule: this.i18NextService.t(\"addRule\"),\r\n removeRule: this.i18NextService.t(\"removeRule\"),\r\n accept: this.i18NextService.t(\"accept\"),\r\n reject: this.i18NextService.t(\"reject\"),\r\n choose: this.i18NextService.t(\"choose\"),\r\n upload: this.i18NextService.t(\"upload\"),\r\n cancel: this.i18NextService.t(\"cancel\"),\r\n dayNames: [\r\n this.i18NextService.t(\"Sunday\"),\r\n this.i18NextService.t(\"Monday\"),\r\n this.i18NextService.t(\"Tuesday\"),\r\n this.i18NextService.t(\"Wednesday\"),\r\n this.i18NextService.t(\"Thursday\"),\r\n this.i18NextService.t(\"Friday\"),\r\n this.i18NextService.t(\"Saturday\"),\r\n ],\r\n dayNamesShort: [\r\n this.i18NextService.t(\"Sun\"),\r\n this.i18NextService.t(\"Mon\"),\r\n this.i18NextService.t(\"Tue\"),\r\n this.i18NextService.t(\"Wed\"),\r\n this.i18NextService.t(\"Thu\"),\r\n this.i18NextService.t(\"Fri\"),\r\n this.i18NextService.t(\"Sat\"),\r\n ],\r\n dayNamesMin: [\r\n this.i18NextService.t(\"Su\"),\r\n this.i18NextService.t(\"Mo\"),\r\n this.i18NextService.t(\"Tu\"),\r\n this.i18NextService.t(\"We\"),\r\n this.i18NextService.t(\"Th\"),\r\n this.i18NextService.t(\"Fr\"),\r\n this.i18NextService.t(\"Sa\"),\r\n ],\r\n monthNames: [\r\n this.i18NextService.t(\"January\"),\r\n this.i18NextService.t(\"February\"),\r\n this.i18NextService.t(\"March\"),\r\n this.i18NextService.t(\"April\"),\r\n this.i18NextService.t(\"May\"),\r\n this.i18NextService.t(\"June\"),\r\n this.i18NextService.t(\"July\"),\r\n this.i18NextService.t(\"August\"),\r\n this.i18NextService.t(\"September\"),\r\n this.i18NextService.t(\"October\"),\r\n this.i18NextService.t(\"November\"),\r\n this.i18NextService.t(\"December\"),\r\n ],\r\n monthNamesShort: [\r\n this.i18NextService.t(\"Jan\"),\r\n this.i18NextService.t(\"Feb\"),\r\n this.i18NextService.t(\"Mar\"),\r\n this.i18NextService.t(\"Apr\"),\r\n this.i18NextService.t(\"May\"),\r\n this.i18NextService.t(\"Jun\"),\r\n this.i18NextService.t(\"Jul\"),\r\n this.i18NextService.t(\"Aug\"),\r\n this.i18NextService.t(\"Sep\"),\r\n this.i18NextService.t(\"Oct\"),\r\n this.i18NextService.t(\"Nov\"),\r\n this.i18NextService.t(\"Dec\"),\r\n ],\r\n dateFormat: this.i18NextService.t(\"dateFormat\"),\r\n today: this.i18NextService.t(\"today\"),\r\n weekHeader: this.i18NextService.t(\"weekHeader\"),\r\n weak: this.i18NextService.t(\"weak\"),\r\n medium: this.i18NextService.t(\"medium\"),\r\n strong: this.i18NextService.t(\"strong\"),\r\n passwordPrompt: this.i18NextService.t(\"passwordPrompt\"),\r\n emptyMessage: this.i18NextService.t(\"emptyMessage\"),\r\n emptyFilterMessage: this.i18NextService.t(\"emptyFilterMessage\"),\r\n });\r\n }\r\n ngOnInit(): void {\r\n var styleName = environment.theme;\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { APP_BASE_HREF } from '@angular/common';\r\nimport { HttpClientModule, HTTP_INTERCEPTORS, HttpRequest, HttpResponse } from '@angular/common/http';\r\nimport { BrowserModule, BrowserTransferStateModule } from '@angular/platform-browser';\r\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\r\nimport { TransferHttpCacheModule } from '@nguniversal/common';\r\nimport { NbAuthModule, NbAuthJWTInterceptor, NB_AUTH_TOKEN_INTERCEPTOR_FILTER, NbPasswordAuthStrategyOptions } from '@nebular/auth';\r\nimport { NbSecurityModule, NbRoleProvider } from '@nebular/security';\r\nimport { NbDatepickerModule, NbMenuModule, NbSidebarModule, NbToastrModule, NbThemeModule, NbStepperModule, NbDialogModule, NbTimepickerModule } from '@nebular/theme';\r\nimport { NbEvaIconsModule } from '@nebular/eva-icons';\r\n\r\nimport { environment } from '../environments/environment';\r\n\r\nimport { AppComponent } from './app.component';\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { AuthGuard } from './auth-guard.service';\r\nimport { APIS, BASE_PATH, TenantService } from './@apiClient/core';\r\nimport { APIS as PARTNER_APIS, BASE_PATH as PARTNER_BASE_PATH } from './@apiClient/partner';\r\nimport { APIS_EXTENSIONS } from './@apiClient/extensions';\r\nimport { CoreModule } from './@core/core.module';\r\nimport { ThemeModule } from './@theme/theme.module';\r\nimport { DataModule } from './@core/data/data.module';\r\nimport { AuthModule } from './auth/auth.module';\r\nimport { CalendarModule, DateAdapter as CalendarDateAdapter } from 'angular-calendar';\r\nimport { adapterFactory } from 'angular-calendar/date-adapters/date-fns';\r\nimport { NbDateFnsDateModule } from '@nebular/date-fns';\r\nimport { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome';\r\nimport { far } from '@fortawesome/free-regular-svg-icons';\r\nimport { fas } from '@fortawesome/free-solid-svg-icons'\r\nimport { AuthStrategy } from './auth/AuthStrategy';\r\nimport { CoreAddinModule } from './@core/addins/addin.module';\r\nimport { CustomizedViewService } from './documents/customizedview.service';\r\nimport { TableModule } from 'primeng/table';\r\nimport { MatDatepickerModule } from '@angular/material/datepicker';\r\nimport { AuthToken } from './auth/auth.token';\r\nimport { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS, MAT_MOMENT_DATE_FORMATS } from '@angular/material-moment-adapter';\r\nimport { DateAdapter, MatNativeDateModule, MAT_DATE_FORMATS, MAT_DATE_LOCALE } from '@angular/material/core';\r\nimport { ThemesService } from './@theme/services/themes.service';\r\nimport { config } from './auth.config';\r\nimport { HttpLocaleInterceptor } from './@core/httplocale.interceptor';\r\nimport { NgxEchartsModule } from 'ngx-echarts';\r\nimport { MenuService } from './pages/menu.service';\r\nimport { I18NextModule } from 'angular-i18next';\r\nimport { I18N_PROVIDERS } from '../locale/i18nextConfig';\r\nimport { BehaviorSubject } from 'rxjs';\r\nexport function GetRoles() {\r\n return new BehaviorSubject('guest').asObservable();\r\n}\r\n\r\nexport function tokenGetter(module: string, res: HttpResponse, options: NbPasswordAuthStrategyOptions) {\r\n return res.body;\r\n}\r\nexport function echartsImport() {\r\n return import('echarts')\r\n}\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n ],\r\n imports: [\r\n BrowserModule.withServerTransition({ appId: 'integrum-frontend' }),\r\n BrowserAnimationsModule,\r\n BrowserTransferStateModule,\r\n TableModule,\r\n MatDatepickerModule,\r\n MatNativeDateModule,\r\n HttpClientModule,\r\n AppRoutingModule,\r\n TransferHttpCacheModule,\r\n I18NextModule.forRoot(),\r\n NbThemeModule.forRoot({ name: 'integrum' }),\r\n NbDatepickerModule.forRoot(),\r\n NbSidebarModule.forRoot(),\r\n NbMenuModule.forRoot(),\r\n NbToastrModule.forRoot(),\r\n NbDialogModule.forRoot(),\r\n NbEvaIconsModule,\r\n NbDateFnsDateModule,\r\n NbSecurityModule.forRoot(),\r\n NbTimepickerModule.forRoot(),\r\n NbAuthModule.forRoot({\r\n strategies: [\r\n AuthStrategy.setup({\r\n baseEndpoint: environment.apiUrl + '/api/v1/account',\r\n name: 'email',\r\n logout: {\r\n endpoint: '',\r\n },\r\n token: {\r\n class: AuthToken,\r\n key: 'token',\r\n getter: tokenGetter,\r\n },\r\n ...config\r\n }),\r\n ],\r\n forms: {\r\n validation: {\r\n invitationCode: {\r\n required: true\r\n },\r\n password: {\r\n required: true,\r\n minLength: 6,\r\n maxLength: 100\r\n },\r\n firstName: {\r\n required: true,\r\n minLength: 2,\r\n maxLength: 50\r\n },\r\n lastName: {\r\n required: true,\r\n minLength: 2,\r\n maxLength: 50\r\n },\r\n companyName: {\r\n required: true,\r\n minLength: 2,\r\n maxLength: 100\r\n },\r\n email: {\r\n required: true\r\n },\r\n addressStreet: {\r\n required: true,\r\n minLength: 2,\r\n maxLength: 50\r\n },\r\n addressHouseNumber: {\r\n required: true\r\n },\r\n addressPostalCode: {\r\n required: true\r\n },\r\n addressCity: {\r\n required: true,\r\n minLength: 2\r\n },\r\n addressCountry: {\r\n required: true,\r\n minLength: 2,\r\n maxLength: 50\r\n }\r\n }\r\n },\r\n }),\r\n AuthModule,\r\n CalendarModule.forRoot({\r\n provide: CalendarDateAdapter,\r\n useFactory: adapterFactory\r\n }),\r\n NgxEchartsModule.forRoot({\r\n echarts: echartsImport\r\n }),\r\n ThemeModule,\r\n CoreModule,\r\n CoreAddinModule,\r\n DataModule,\r\n FontAwesomeModule\r\n ],\r\n providers: [\r\n APIS,\r\n APIS_EXTENSIONS,\r\n I18N_PROVIDERS,\r\n PARTNER_APIS,\r\n TenantService,\r\n AuthGuard,\r\n ThemesService,\r\n MenuService,\r\n CustomizedViewService,\r\n { provide: BASE_PATH, useValue: environment.apiUrl },\r\n { provide: PARTNER_BASE_PATH, useValue: environment.apiUrl },\r\n { provide: APP_BASE_HREF, useValue: \"/\"},\r\n { provide: NbRoleProvider, useValue: { getRole: GetRoles } },\r\n { provide: HTTP_INTERCEPTORS, useClass: NbAuthJWTInterceptor, multi: true },\r\n { provide: HTTP_INTERCEPTORS, useClass: HttpLocaleInterceptor, multi: true },\r\n {\r\n provide: NB_AUTH_TOKEN_INTERCEPTOR_FILTER,\r\n useValue: function (req: HttpRequest) {\r\n if (\r\n req.url.includes('/api/v1/account/') &&\r\n !req.url.endsWith('/api/v1/account/info') ||\r\n req.url.includes('/oauth/login') || req.url.includes('/partner/')\r\n ) {\r\n return true;\r\n }\r\n return false;\r\n },\r\n },\r\n {\r\n provide: DateAdapter,\r\n useClass: MomentDateAdapter,\r\n deps: [MAT_DATE_LOCALE, MAT_MOMENT_DATE_ADAPTER_OPTIONS]\r\n },\r\n { provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } },\r\n { provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS },\r\n ],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule {\r\n constructor(library: FaIconLibrary) {\r\n library.addIconPacks(fas, far);\r\n }\r\n\r\n}\r\n","import { UserModel } from \"../../src/app/@core/data/users.service\"\r\nimport { Settings } from \"../../src/app/settings\"\r\n\r\nexport const settings: Settings = {\r\n colorSet: {\r\n primary: '#ffb700'\r\n },\r\n lists: {\r\n showGoToButton: false,\r\n showColumnsSelect(user: UserModel):boolean{\r\n let permittedProfiles = [\"Administrator\", \"Pracownik działu handlowego\",\"Pracownik serwisu\",\"Serwisant\"]\r\n return user?.profiles?.some( p => permittedProfiles.includes(p.name));\r\n }\r\n },\r\n layout: {\r\n showNotificationInducator(user: UserModel):boolean{\r\n let permittedProfiles = [\"Administrator\", \"Pracownik działu handlowego\",\"Pracownik serwisu\"]\r\n return user?.profiles?.some( p => permittedProfiles.includes(p.name));\r\n },\r\n showSearchBar(user: UserModel):boolean{\r\n let permittedProfiles = [\"Administrator\", \"Pracownik działu handlowego\",\"Pracownik serwisu\"]\r\n return user?.profiles?.some( p => permittedProfiles.includes(p.name));\r\n }\r\n },\r\n menus: {\r\n main: {},\r\n user: {\r\n show(user: UserModel):boolean{\r\n let permittedProfiles = [\"Administrator\", \"Pracownik działu handlowego\",\"Pracownik serwisu\",\"Serwisant\"]\r\n return user?.profiles?.some( p => permittedProfiles.includes(p.name));\r\n },\r\n positions: [\"profile\", \"team\", \"company\", \"logout\"]\r\n }\r\n },\r\n personDetails: {\r\n showRoleList: false\r\n },\r\n client: {\r\n hasLogoClient: true\r\n }\r\n}","import { Injectable } from '@angular/core';\r\nimport { CanActivate, Router, RouterStateSnapshot, ActivatedRouteSnapshot } from '@angular/router';\r\nimport { NbAuthService } from '@nebular/auth';\r\nimport { tap } from 'rxjs/operators';\r\n\r\n@Injectable()\r\nexport class AuthGuard implements CanActivate {\r\n\r\n constructor(\r\n private authService: NbAuthService, \r\n private router: Router) {\r\n }\r\n\r\n canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot) {\r\n return this.authService.isAuthenticated()\r\n .pipe(\r\n tap(authenticated => {\r\n if (!authenticated) {\r\n let pUrl = this.router.parseUrl(state.url);\r\n let returnUrl = state.url\r\n let queryParams = {};\r\n if (!!pUrl.queryParams[\"refreshToken\"]){\r\n let refreshToken = pUrl.queryParams[\"refreshToken\"];\r\n returnUrl = returnUrl.replace(\"refreshToken=\"+encodeURIComponent(refreshToken),\"\");\r\n queryParams[\"refreshToken\"] = refreshToken;\r\n }\r\n \r\n queryParams[\"returnUrl\"] = returnUrl;\r\n this.router.navigate(['auth/login'], { queryParams: queryParams });\r\n }\r\n }),\r\n );\r\n }\r\n}\r\n","export const config = {\r\n login: {\r\n endpoint: '/login',\r\n defaultMessages: [`You have successfully logged in`],\r\n defaultErrors: [`Something went wrong, please check if you have entered your login / email and / or password correctly.`],\r\n },\r\n register: {\r\n endpoint: '/register',\r\n defaultErrors: [`Something went wrong, please try again.`],\r\n defaultMessages: [`You have successfully registered.`],\r\n },\r\n refreshToken: {\r\n endpoint: '/revoke',\r\n defaultErrors: [`Something went wrong, please try again.`],\r\n defaultMessages: [`The token has been refreshed correctly.`],\r\n },\r\n requestPass: {\r\n endpoint: '/request-pass',\r\n defaultErrors: [`Something went wrong, please try again.`],\r\n defaultMessages: [`Password reset instructions have been sent to the email provided.`],\r\n },\r\n resetPass: {\r\n endpoint: '/reset-pass',\r\n defaultErrors: [`Something went wrong, please try again.`],\r\n defaultMessages: [`Password has been changed correctly.`],\r\n },\r\n};","import {\r\n NbAuthStrategy, NbPasswordAuthStrategyOptions, passwordStrategyOptions, NbAuthStrategyClass,\r\n NbAuthResult, NbAuthIllegalTokenError, NbAuthToken, nbAuthCreateToken\r\n} from \"@nebular/auth\";\r\nimport { Injectable } from \"@angular/core\";\r\nimport { ActivatedRoute } from \"@angular/router\";\r\nimport { HttpClient, HttpErrorResponse } from \"@angular/common/http\";\r\nimport { Observable, of as observableOf } from 'rxjs';\r\nimport { switchMap, map, catchError } from 'rxjs/operators';\r\nimport { AuthToken } from \"./auth.token\";\r\n\r\n@Injectable()\r\nexport class AuthStrategy extends NbAuthStrategy {\r\n\r\n protected defaultOptions: NbPasswordAuthStrategyOptions = passwordStrategyOptions;\r\n\r\n static setup(options: NbPasswordAuthStrategyOptions): [NbAuthStrategyClass, NbPasswordAuthStrategyOptions] {\r\n return [AuthStrategy, options];\r\n }\r\n\r\n constructor(protected http: HttpClient, private route: ActivatedRoute) {\r\n super();\r\n }\r\n\r\n authenticate(data?: any): Observable {\r\n const module = 'login';\r\n const method = this.getOption(`${module}.method`);\r\n let url = this.getActionEndpoint(module);\r\n if (!!data.loginUrl){\r\n url = data.loginUrl;\r\n delete data.loginUrl;\r\n }\r\n const requireValidToken = this.getOption(`${module}.requireValidToken`);\r\n return this.http.request(method, url, { body: data, observe: 'response', withCredentials: true })\r\n .pipe(\r\n map((res) => {\r\n if (this.getOption(`${module}.alwaysFail`)) {\r\n throw this.createFailResponse(data);\r\n }\r\n return res;\r\n }),\r\n map((res) => {\r\n return new NbAuthResult(\r\n true,\r\n res,\r\n this.getOption(`${module}.redirect.success`),\r\n [],\r\n this.getOption('messages.getter')(module, res, this.options),\r\n this.createToken(this.getOption('token.getter')(module, res, this.options), requireValidToken));\r\n }),\r\n catchError((res) => {\r\n return this.handleResponseError(res, module);\r\n }),\r\n );\r\n }\r\n\r\n register(data?: any): Observable {\r\n const module = 'register';\r\n const method = this.getOption(`${module}.method`);\r\n const url = this.getActionEndpoint(module);\r\n const requireValidToken = this.getOption(`${module}.requireValidToken`);\r\n return this.http.request(method, url, { body: data, observe: 'response' })\r\n .pipe(\r\n map((res) => {\r\n if (this.getOption(`${module}.alwaysFail`)) {\r\n throw this.createFailResponse(data);\r\n }\r\n\r\n return res;\r\n }),\r\n map((res) => {\r\n return new NbAuthResult(\r\n true,\r\n res,\r\n this.getOption(`${module}.redirect.success`),\r\n [],\r\n this.getOption('messages.getter')(module, res, this.options),\r\n this.createToken(this.getOption('token.getter')('login', res, this.options), requireValidToken));\r\n }),\r\n catchError((res) => {\r\n return this.handleResponseError(res, module);\r\n }),\r\n );\r\n }\r\n\r\n requestPassword(data?: any): Observable {\r\n const module = 'requestPass';\r\n const method = this.getOption(`${module}.method`);\r\n const url = this.getActionEndpoint(module);\r\n return this.http.request(method, url, { body: data, observe: 'response' })\r\n .pipe(\r\n map((res) => {\r\n if (this.getOption(`${module}.alwaysFail`)) {\r\n throw this.createFailResponse();\r\n }\r\n\r\n return res;\r\n }),\r\n map((res) => {\r\n return new NbAuthResult(\r\n true,\r\n res,\r\n this.getOption(`${module}.redirect.success`),\r\n [],\r\n this.getOption('messages.getter')(module, res, this.options));\r\n }),\r\n catchError((res) => {\r\n return this.handleResponseError(res, module);\r\n }),\r\n );\r\n }\r\n\r\n resetPassword(data: any = {}): Observable {\r\n\r\n const module = 'resetPass';\r\n const method = this.getOption(`${module}.method`);\r\n const url = this.getActionEndpoint(module);\r\n const tokenKey = this.getOption(`${module}.resetPasswordTokenKey`);\r\n data[tokenKey] = this.route.snapshot.queryParams[tokenKey];\r\n return this.http.request(method, url, { body: data, observe: 'response' })\r\n .pipe(\r\n map((res) => {\r\n if (this.getOption(`${module}.alwaysFail`)) {\r\n throw this.createFailResponse();\r\n }\r\n\r\n return res;\r\n }),\r\n map((res) => {\r\n return new NbAuthResult(\r\n true,\r\n res,\r\n this.getOption(`${module}.redirect.success`),\r\n [],\r\n this.getOption('messages.getter')(module, res, this.options));\r\n }),\r\n catchError((res) => {\r\n return this.handleResponseError(res, module);\r\n }),\r\n );\r\n }\r\n\r\n logout(): Observable {\r\n\r\n const module = 'logout';\r\n const method = this.getOption(`${module}.method`);\r\n const url = this.getActionEndpoint(module);\r\n\r\n return observableOf({})\r\n .pipe(\r\n switchMap((res: any) => {\r\n if (!url) {\r\n return observableOf(res);\r\n }\r\n return this.http.request(method, url, { observe: 'response' });\r\n }),\r\n map((res) => {\r\n if (this.getOption(`${module}.alwaysFail`)) {\r\n throw this.createFailResponse();\r\n }\r\n\r\n return res;\r\n }),\r\n map((res) => {\r\n return new NbAuthResult(\r\n true,\r\n res,\r\n this.getOption(`${module}.redirect.success`),\r\n [],\r\n this.getOption('messages.getter')(module, res, this.options));\r\n }),\r\n catchError((res) => {\r\n return this.handleResponseError(res, module);\r\n }),\r\n );\r\n }\r\n\r\n refreshToken(data?: any): Observable {\r\n let authToken = (data as unknown as AuthToken);\r\n if (!authToken) {\r\n authToken.refreshToken = localStorage.getItem('refreshToken');\r\n }\r\n \r\n const module = 'refreshToken';\r\n const method = this.getOption(`${module}.method`);\r\n const url = this.getActionEndpoint(module);\r\n const requireValidToken = this.getOption(`${module}.requireValidToken`);\r\n return this.http.request(method, url, { body: authToken, observe: 'response' })\r\n .pipe(\r\n map((res) => {\r\n if (this.getOption(`${module}.alwaysFail`)) {\r\n throw this.createFailResponse(authToken);\r\n }\r\n\r\n return res;\r\n }),\r\n map((res) => {\r\n return new NbAuthResult(\r\n true,\r\n res,\r\n this.getOption(`${module}.redirect.success`),\r\n [],\r\n this.getOption('messages.getter')(module, res, this.options),\r\n this.createToken(this.getOption('token.getter')(module, res, this.options), requireValidToken));\r\n }),\r\n catchError((res) => {\r\n return this.handleResponseError(res, module);\r\n }),\r\n );\r\n }\r\n\r\n createToken(value: any, failWhenInvalidToken?: boolean): T {\r\n let tokenValue = value[this.getOption('token.key')];\r\n localStorage.setItem('refreshToken', value['refreshToken']);\r\n const token = nbAuthCreateToken(this.getOption('token.class'), tokenValue, this.getName());\r\n (token as unknown as AuthToken).refreshToken = value['refreshToken'];\r\n\r\n // At this point, nbAuthCreateToken failed with NbAuthIllegalTokenError which MUST be intercepted by strategies\r\n // Or token is created. It MAY be created even if backend did not return any token, in this case it is !Valid\r\n if (failWhenInvalidToken && !token.isValid()) {\r\n // If we require a valid token (i.e. isValid), then we MUST throw NbAuthIllegalTokenError so that the strategies\r\n // intercept it\r\n throw new NbAuthIllegalTokenError('Token is empty or invalid.');\r\n }\r\n return token;\r\n }\r\n\r\n protected handleResponseError(res: any, module: string): Observable {\r\n let errors = [];\r\n if (res instanceof HttpErrorResponse) {\r\n errors = this.getOption('errors.getter')(module, res, this.options);\r\n } else if (res instanceof NbAuthIllegalTokenError) {\r\n errors.push(res.message)\r\n } else {\r\n errors.push('Something went wrong.');\r\n }\r\n return observableOf(\r\n new NbAuthResult(\r\n false,\r\n res,\r\n this.getOption(`${module}.redirect.failure`),\r\n errors,\r\n ));\r\n }\r\n\r\n}","import { NbAuthComponent } from \"@nebular/auth\";\r\nimport { Component } from \"@angular/core\";\r\n\r\n@Component({\r\n selector: 'ngx-auth',\r\n styleUrls: ['./auth.component.scss'],\r\n template: `\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n`,\r\n})\r\nexport class NgxAuthComponent extends NbAuthComponent {\r\n \r\n}\r\n","import { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { RouterModule, Routes } from '@angular/router';\r\nimport { NbAuthModule } from '@nebular/auth';\r\nimport {\r\n NbAlertModule,\r\n NbButtonModule,\r\n NbCheckboxModule,\r\n NbInputModule,\r\n NbCardModule,\r\n NbIconModule,\r\n NbLayoutModule,\r\n NbFormFieldModule\r\n} from '@nebular/theme';\r\nimport { ThemeModule } from '../@theme/theme.module';\r\nimport { NgxRegisterComponent } from './register.component';\r\nimport { NgxLoginComponent } from './login.component';\r\nimport { NgxLogoutComponent } from './logout.component';\r\nimport { AuthStrategy } from './AuthStrategy';\r\nimport { NgxRequestPasswordComponent } from './request-password.component';\r\nimport { NgxResetPasswordComponent } from './reset-password.component';\r\nimport { NgxAuthComponent } from './auth.component';\r\nimport { I18NextModule } from 'angular-i18next';\r\nimport { NgxRegisterPartnerComponent } from './register-partner.component';\r\nimport { PartnerService } from '../@apiClient/partner';\r\n\r\nconst routes: Routes = [{\r\n path: '',\r\n component: NgxAuthComponent,\r\n children: [\r\n {\r\n path: '',\r\n component: NgxLoginComponent,\r\n },\r\n {\r\n path: 'login/:provider',\r\n component: NgxLoginComponent,\r\n },\r\n {\r\n path: 'login',\r\n component: NgxLoginComponent,\r\n },\r\n {\r\n path: 'register',\r\n component: NgxRegisterComponent,\r\n },\r\n {\r\n path: 'register-partner',\r\n component: NgxRegisterPartnerComponent,\r\n },\r\n {\r\n path: 'logout',\r\n component: NgxLogoutComponent,\r\n },\r\n {\r\n path: 'request-password',\r\n component: NgxRequestPasswordComponent,\r\n },\r\n {\r\n path: 'reset-password',\r\n component: NgxResetPasswordComponent,\r\n },\r\n ],\r\n}];\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n RouterModule,\r\n NbAlertModule,\r\n NbInputModule,\r\n NbButtonModule,\r\n NbCheckboxModule,\r\n NbCardModule,\r\n NbIconModule,\r\n NbLayoutModule,\r\n NbAuthModule,\r\n ThemeModule,\r\n NbFormFieldModule,\r\n I18NextModule,\r\n [RouterModule.forChild(routes)],\r\n ],\r\n declarations: [\r\n NgxRegisterComponent,\r\n NgxLoginComponent,\r\n NgxRequestPasswordComponent,\r\n NgxResetPasswordComponent,\r\n NgxLogoutComponent,\r\n NgxAuthComponent,\r\n NgxRegisterPartnerComponent,\r\n ],\r\n providers: [\r\n AuthStrategy,\r\n ],\r\n exports: [RouterModule],\r\n})\r\nexport class AuthModule {\r\n}","import { NbAuthJWTToken, NbAuthTokenClass, NbAuthToken } from \"@nebular/auth\";\r\n\r\nexport class AuthToken extends NbAuthJWTToken {\r\n\r\n static NAME = 'app:auth:jwt:token';\r\n refreshToken: string;\r\n}","
\r\n \"logo\"\r\n
{{headerName}}
\r\n
\r\n\r\n

{{ 'Login' | i18next }}

\r\n
\r\n

{{ 'Hello! Log in with your email.' | i18next }}

\r\n\r\n \r\n

{{ 'Oh snap!' | i18next }}

\r\n
    \r\n
  • {{ 'error' | i18next }}
  • \r\n
\r\n
\r\n\r\n \r\n

{{ 'Hooray!' | i18next }}

\r\n
    \r\n
  • {{ 'messageLogin' | i18next }}
  • \r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n

\r\n {{ 'Email is required!' | i18next }}\r\n

\r\n

\r\n {{ 'Email should be the real one!' | i18next }}\r\n

\r\n
\r\n
\r\n
\r\n \r\n \r\n {{ 'Forgot Password?' | i18next }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n

\r\n {{ 'Password is required!' | i18next }}\r\n

\r\n

\r\n {{ 'Password should contain from {min} to {max} characters' | i18next: {\r\n min: getConfigValue('forms.validation.password.minLength'),\r\n max: getConfigValue('forms.validation.password.maxLength')} }}\r\n

\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n
\r\n\r\n
\r\n
\r\n

{{ 'Already have invitation code? Click in the link below to finish registration process.' | i18next }}
{{ 'Finish registration' | i18next }}

\r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n
{{ 'Please wait...' | i18next }}
\r\n
\r\n

\r\n {{ 'External account not connected with application account' | i18next }}\r\n

\r\n
","import { Component, Inject, ChangeDetectorRef, OnInit } from '@angular/core';\r\nimport { Location } from '@angular/common';\r\nimport { NbLoginComponent, NbAuthResult, NbAuthService, NB_AUTH_OPTIONS } from '@nebular/auth';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { environment } from '../../environments/environment';\r\nimport { settings } from '../app.settings';\r\n@Component({\r\n selector: 'ngx-login',\r\n templateUrl: './login.component.html',\r\n styleUrls: ['./login.component.scss']\r\n})\r\nexport class NgxLoginComponent extends NbLoginComponent implements OnInit {\r\n\r\n return: string = '';\r\n\r\n OAuthProviders: string[] = environment.oauthProviders;\r\n OAuthProvider: string = '';\r\n OAuthCode: string = '';\r\n OAuthLoginInProgress: string = null;\r\n OAuthLoginError: number = 0;\r\n headerName = environment.headerName;\r\n hasLogoClient = settings.client.hasLogoClient;\r\n enableRegisterPartners = environment.enableRegisterPartners;\r\n constructor(\r\n protected service: NbAuthService,\r\n @Inject(NB_AUTH_OPTIONS) protected options = {},\r\n protected cd: ChangeDetectorRef,\r\n protected router: Router,\r\n private route: ActivatedRoute,\r\n private titleService: Title) {\r\n super(service, options, cd, router);\r\n }\r\n\r\n ngOnInit() {\r\n // Get the query params\r\n this.route.queryParams.subscribe(params => {\r\n this.return = params['returnUrl'] || null;\r\n this.OAuthCode = params['code'] || null;\r\n let refreshToken = params['refreshToken'];\r\n if (!!refreshToken) {\r\n this.tryRefresh(refreshToken);\r\n }\r\n });\r\n this.route.params.subscribe(params => {\r\n this.OAuthProvider = params['provider'];\r\n if (!!this.OAuthProvider) {\r\n this.tryOAuthLogin();\r\n }\r\n })\r\n this.titleService.setTitle(`${environment.title}`);\r\n\r\n }\r\n showPassword = false;\r\n\r\n getInputType() {\r\n if (this.showPassword) {\r\n return 'text';\r\n }\r\n return 'password';\r\n }\r\n\r\n toggleShowPassword() {\r\n this.showPassword = !this.showPassword;\r\n }\r\n\r\n DeleteWhiteSpaceEmail(email) {\r\n this.user.email = email.trim()\r\n }\r\n DeleteWhiteSpacePassword(password) {\r\n this.user.password = password.trim()\r\n }\r\n login(): void {\r\n this.errors = [];\r\n this.messages = [];\r\n this.submitted = true;\r\n\r\n this.service.authenticate(this.strategy, this.user).subscribe((result: NbAuthResult) => {\r\n this.submitted = false;\r\n\r\n if (result.isSuccess()) {\r\n this.messages = result.getMessages();\r\n } else {\r\n this.errors = result.getErrors();\r\n }\r\n\r\n const redirect = this.return || result.getRedirect();\r\n if (redirect) {\r\n setTimeout(() => {\r\n return this.router.navigateByUrl(redirect);\r\n }, this.redirectDelay);\r\n }\r\n this.cd.detectChanges();\r\n });\r\n }\r\n getOAuthLoginUrl(provider: string): string {\r\n let oauthRedirect = `${window.location.protocol}//${window.location.host}${window.location.pathname}`;\r\n let oauthUrl = `${environment.apiUrl}/oauth/authorize/{provider}?redirectUrl=${oauthRedirect}/{provider}`;\r\n return oauthUrl.replace(/{provider}/g, provider);\r\n }\r\n tryOAuthLogin() {\r\n this.OAuthLoginInProgress = \"progress\";\r\n\r\n let location = `${window.location.protocol}//${window.location.host}${window.location.pathname}`;\r\n var oauthloginData = {\r\n code: this.OAuthCode,\r\n redirectUrl: location,\r\n loginUrl: `${environment.apiUrl}/oauth/login-proxy/${this.OAuthProvider}`\r\n };\r\n this.service.authenticate(this.strategy, oauthloginData).subscribe((result: NbAuthResult) => {\r\n this.submitted = false;\r\n\r\n if (result.isSuccess()) {\r\n this.messages = result.getMessages();\r\n } else {\r\n this.OAuthLoginInProgress = \"error\";\r\n this.OAuthLoginError = result.getResponse().error.errors[0].code;\r\n this.errors = result.getErrors();\r\n }\r\n\r\n const redirect = this.return || result.getRedirect();\r\n if (redirect) {\r\n setTimeout(() => {\r\n return this.router.navigateByUrl(redirect);\r\n }, this.redirectDelay);\r\n }\r\n this.cd.detectChanges();\r\n });\r\n }\r\n tryRefresh(refreshToken: any) {\r\n this.service.refreshToken(this.strategy, { refreshToken: refreshToken }).subscribe((result: NbAuthResult) => {\r\n this.submitted = false;\r\n\r\n if (result.isSuccess()) {\r\n this.messages = result.getMessages();\r\n } else {\r\n this.errors = result.getErrors();\r\n }\r\n\r\n const redirect = this.return || result.getRedirect();\r\n if (redirect) {\r\n setTimeout(() => {\r\n return this.router.navigateByUrl(redirect);\r\n }, this.redirectDelay);\r\n }\r\n this.cd.detectChanges();\r\n });\r\n }\r\n}","import { Component, Inject, OnInit } from '@angular/core';\r\nimport { NbLogoutComponent, NbAuthService, NB_AUTH_OPTIONS } from '@nebular/auth';\r\nimport { Router } from '@angular/router';\r\nimport { environment } from '../../environments/environment';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { LiveMessageService } from '../@core/data/livemessage.service';\r\nimport { NotificationsService } from '../@core/data';\r\n\r\n@Component({\r\n selector: 'ngx-logout',\r\n templateUrl: './logout.component.html',\r\n})\r\nexport class NgxLogoutComponent extends NbLogoutComponent implements OnInit {\r\n constructor(\r\n protected service: NbAuthService,\r\n @Inject(NB_AUTH_OPTIONS) protected options = {},\r\n protected router: Router,\r\n private titleService: Title,\r\n private notificationService: NotificationsService,\r\n private livemessage: LiveMessageService) {\r\n super(service, options, router);\r\n }\r\n async ngOnInit() {\r\n this.titleService.setTitle(`${environment.title}`);\r\n await this.livemessage.close();\r\n this.service.logout('email').subscribe(() => {\r\n this.notificationService.clearNotifications();\r\n setTimeout(() => {\r\n this.router.navigate(['auth/login']);\r\n }, 3000);\r\n });\r\n }\r\n}","
\r\n

{{ 'You have been logged out correctly' | i18next }}

\r\n \r\n
","

Register

\r\n\r\n
\r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n\r\n \r\n

\r\n First name is required!\r\n

\r\n

\r\n First name should contains\r\n from {{getConfigValue('forms.validation.firstName.minLength')}}\r\n to {{getConfigValue('forms.validation.firstName.maxLength')}}\r\n characters\r\n

\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n\r\n \r\n \r\n \r\n

\r\n Last name is required!\r\n

\r\n

\r\n Last name should contains\r\n from {{getConfigValue('forms.validation.lastName.minLength')}}\r\n to {{getConfigValue('forms.validation.lastName.maxLength')}}\r\n characters\r\n

\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n\r\n \r\n

\r\n Company name is required!\r\n

\r\n

\r\n Company name should contains\r\n from {{getConfigValue('forms.validation.companyName.minLength')}}\r\n to {{getConfigValue('forms.validation.companyName.maxLength')}}\r\n characters\r\n

\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n\r\n \r\n

\r\n Email is required!\r\n

\r\n

\r\n Email should be the real one!\r\n

\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n\r\n \r\n

\r\n Street is required!\r\n

\r\n

\r\n Street should contains\r\n from {{getConfigValue('forms.validation.addressStreet.minLength')}}\r\n to {{getConfigValue('forms.validation.addressStreet.maxLength')}}\r\n characters\r\n

\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n\r\n \r\n\r\n \r\n

\r\n House number is required!\r\n

\r\n

\r\n House number should contains\r\n from {{getConfigValue('forms.validation.addressHouseNumber.minLength')}}\r\n to {{getConfigValue('forms.validation.addressHouseNumber.maxLength')}}\r\n characters\r\n

\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n\r\n \r\n

\r\n Postal code is required!\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n\r\n \r\n

\r\n City is required!\r\n

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n\r\n \r\n\r\n \r\n

\r\n Country is required!\r\n

\r\n

\r\n Country should contains\r\n from {{getConfigValue('forms.validation.addressCountry.minLength')}}\r\n to {{getConfigValue('forms.validation.addressCountry.maxLength')}}\r\n characters\r\n

\r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n By registering to our website, you accept the GDPR.\r\n \r\n \r\n
\r\n\r\n \r\n
\r\n\r\n
\r\n Already have an account? Log in\r\n
","import { Component, ChangeDetectorRef, Inject, OnInit } from '@angular/core';\r\nimport { NbRegisterComponent, NbAuthService, NB_AUTH_OPTIONS, NbAuthResult } from '@nebular/auth';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { environment } from '../../environments/environment';\r\nimport { PartnerService } from '../@apiClient/partner';\r\nimport { PartnerPartnerModel } from '../@apiClient/partner';\r\nimport { NbToastrService } from '@nebular/theme';\r\n\r\nenum BackendErrors {\r\n INVITATION_CODE_INVALID = 230,\r\n}\r\n\r\n@Component({\r\n selector: 'ngx-login',\r\n templateUrl: './register-partner.component.html',\r\n styleUrls: ['./register-partner.component.scss']\r\n})\r\nexport class NgxRegisterPartnerComponent extends NbRegisterComponent implements OnInit {\r\n\r\n public firstName: string;\r\n public lastName: string;\r\n public email: string;\r\n public companyName: string;\r\n public addressStreet: string;\r\n public addressHouseNumber: string;\r\n public addressPostalCode: string;\r\n public addressCountry: string;\r\n\r\n constructor(protected partnerService: PartnerService, protected service: NbAuthService,\r\n @Inject(NB_AUTH_OPTIONS) protected options = {},\r\n protected cd: ChangeDetectorRef,\r\n protected router: Router, private route: ActivatedRoute,\r\n private titleService: Title, private toastrService: NbToastrService) {\r\n super(service, options, cd, router);\r\n }\r\n\r\n backendErrors = {\r\n password: null,\r\n invitationCode: null,\r\n email: null\r\n };\r\n\r\n submitted: boolean = false;\r\n\r\n ngOnInit() {\r\n this.titleService.setTitle(`${environment.title}`);\r\n }\r\n\r\n register(): void {\r\n if (this.user.terms !== true) {\r\n this.toastrService.danger('', $localize`You must accept GDPR to register account!`, { duration: 2500 });\r\n } else {\r\n let model = {\r\n adminEmail: this.user.email.trim(),\r\n adminFirstname: this.user.firstName.trim(),\r\n adminSurname: this.user.lastName.trim(),\r\n tenantType: \"complaint_investor\",\r\n addressStreet: this.user.addressStreet.trim(),\r\n addressHouseNumber: this.user.addressHouseNumber.trim(),\r\n addressPostalCode: this.user.addressPostalCode.trim(),\r\n addressCity: this.user.addressCity.trim(),\r\n addressCountry: this.user.addressCountry.trim(),\r\n companyName: this.user.companyName.trim(),\r\n name: this.user.firstName + ' ' + this.user.lastName,\r\n } as PartnerPartnerModel;\r\n\r\n this.partnerService.createPartner(model).subscribe((result: any) => {\r\n this.toastrService.primary('', $localize`Further registration detail has beed send to given email adress.`, { duration: 10000 });\r\n //this.router.navigate(['login'], { relativeTo: this.route.root });\r\n });\r\n }\r\n }\r\n}","

{{ 'Register' | i18next }}

\r\n\r\n\r\n

{{ 'Oh snap!' | i18next }}

\r\n
    \r\n
  • {{ 'error' | i18next }}
  • \r\n
\r\n
\r\n\r\n\r\n

{{ 'Hooray!' | i18next }}

\r\n
    \r\n
  • {{ 'messageRegister' | i18next }}
  • \r\n
\r\n
\r\n\r\n
\r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n {{ 'Password must have one number, one small letter, one big letter and one special character like !,@,#,$ or ' +\r\n '% and should contain from {min} to {max} characters' | i18next: {\r\n min: getConfigValue('forms.validation.password.minLength'),\r\n max: getConfigValue('forms.validation.password.maxLength') }\r\n }}\r\n \r\n \r\n \r\n \r\n \r\n

\r\n {{ 'The password and confirmation password do not match.' | i18next }}\r\n

\r\n

\r\n 234 \r\n

\r\n

\r\n {{ 'Passwords must have at least one non alphanumeric character.' | i18next }}\r\n

\r\n

\r\n {{ \"Passwords must have at least one digit ('0'-'9').\" | i18next }}\r\n

\r\n

\r\n {{ \"Passwords must have at least one lowercase ('a'-'z').\" | i18next }}\r\n

\r\n

\r\n {{ \"Passwords must have at least one uppercase ('A'-'Z').\" | i18next }}\r\n

\r\n \r\n

\r\n {{ 'Password is required!' | i18next }}\r\n

\r\n

\r\n {{ 'Password should contain from {min} to {max} characters' | i18next: {\r\n min: getConfigValue('forms.validation.password.minLength'),\r\n max: getConfigValue('forms.validation.password.maxLength') }\r\n }}\r\n

\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n

\r\n {{ 'Password confirmation is required!' | i18next }}\r\n

\r\n

\r\n {{ 'Password does not match the confirm password.' | i18next }}\r\n

\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n

\r\n {{ 'Invitation not found' | i18next }}\r\n

\r\n

\r\n {{ 'Invitation expire' | i18next }}\r\n

\r\n
\r\n
\r\n \r\n {{ 'Agree to Terms & Conditions#0' | i18next }} {{ 'Agree to Terms & Conditions#1' | i18next}}\r\n \r\n
\r\n\r\n \r\n
\r\n\r\n
\r\n {{ 'Already have an account?' | i18next }} {{ 'Log in' | i18next }}\r\n
\r\n
\r\n \r\n
","import { Component, ChangeDetectorRef, Inject, OnInit } from '@angular/core';\r\nimport { NbRegisterComponent, NbAuthService, NB_AUTH_OPTIONS, NbAuthResult } from '@nebular/auth';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { environment } from '../../environments/environment';\r\n\r\nenum BackendErrors {\r\n INVITATION_CODE_INVALID = 230,\r\n}\r\n\r\n@Component({\r\n selector: 'ngx-login',\r\n templateUrl: './register.component.html',\r\n})\r\nexport class NgxRegisterComponent extends NbRegisterComponent implements OnInit {\r\n constructor(protected service: NbAuthService,\r\n @Inject(NB_AUTH_OPTIONS) protected options = {},\r\n protected cd: ChangeDetectorRef,\r\n protected router: Router, private route: ActivatedRoute,\r\n private titleService: Title) {\r\n\r\n super(service, options, cd, router);\r\n this.user.invitationCode = route.snapshot.queryParams['invitecode'];\r\n }\r\n backendErrors = {\r\n password: null,\r\n invitationCode: null,\r\n email: null\r\n };\r\n ngOnInit() {\r\n this.titleService.setTitle(`${environment.title}`);\r\n }\r\n showPassword = false;\r\n\r\n getInputType() {\r\n if (this.showPassword) {\r\n return 'text';\r\n }\r\n return 'password';\r\n }\r\n\r\n toggleShowPassword() {\r\n this.showPassword = !this.showPassword;\r\n }\r\n register(): void {\r\n this.errors = this.messages = [];\r\n this.submitted = true;\r\n\r\n this.service.register(this.strategy, this.user).subscribe((result: NbAuthResult) => {\r\n\r\n this.submitted = false;\r\n if (result.isSuccess()) {\r\n this.messages = result.getMessages();\r\n } else {\r\n this.backendErrors = {\r\n password: null,\r\n invitationCode: null,\r\n email: null\r\n };\r\n this.errors = result.getErrors();\r\n const error = result.getResponse().error.errors[0];\r\n if (error.code === 230) {\r\n this.backendErrors.invitationCode = 230;\r\n }\r\n if (error.code === 231) {\r\n this.backendErrors.invitationCode = 231;\r\n }\r\n // tutaj nie wchodzi w ten kod tylko w kod 1\r\n if (error.code === 232) {\r\n this.backendErrors.email = 232;\r\n }\r\n // tutaj nie wchodzi w ten kod tylko w kod 1\r\n if (error.code === 233) {\r\n this.backendErrors.password = 233;\r\n }\r\n // tutaj nie ma jak wejść w ten kod bo front nie przepuści\r\n if (error.code === 234) {\r\n this.backendErrors.password = 234;\r\n }\r\n if (error.code === 235) {\r\n this.backendErrors.password = 235;\r\n }\r\n if (error.code === 236) {\r\n this.backendErrors.password = 236;\r\n }\r\n if (error.code === 237) {\r\n this.backendErrors.password = 237;\r\n }\r\n if (error.code === 238) {\r\n this.backendErrors.password = 238;\r\n }\r\n }\r\n\r\n const redirect = result.getRedirect();\r\n if (redirect) {\r\n setTimeout(() => {\r\n return this.router.navigateByUrl(redirect);\r\n }, this.redirectDelay);\r\n }\r\n this.cd.detectChanges();\r\n });\r\n }\r\n\r\n}","

{{ 'Forgot Password' | i18next }}

\r\n

{{ 'Enter your email address and we’ll send a link to reset your password' | i18next }}

\r\n\r\n\r\n

{{ 'Oh snap!' | i18next }}

\r\n
    \r\n
  • {{ 'error' | i18next }}
  • \r\n
\r\n
\r\n\r\n\r\n

{{ 'Hooray!' | i18next }}

\r\n
    \r\n
  • {{ 'messageRequestPass' | i18next }}
  • \r\n
\r\n
\r\n\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n

\r\n {{ 'Email is required!' | i18next }}\r\n

\r\n

\r\n {{ 'Email should be the real one!' | i18next }}\r\n

\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n

{{ 'Back to Log In' | i18next }}

\r\n

{{ 'Register' | i18next }}

\r\n
","import { Component, ChangeDetectorRef, Inject, OnInit } from '@angular/core';\r\nimport { NbAuthService, NB_AUTH_OPTIONS, NbRequestPasswordComponent } from '@nebular/auth';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { environment } from '../../environments/environment';\r\n\r\n@Component({\r\n selector: 'ngx-request-password',\r\n templateUrl: './request-password.component.html',\r\n})\r\nexport class NgxRequestPasswordComponent extends NbRequestPasswordComponent implements OnInit {\r\n constructor(protected service: NbAuthService,\r\n @Inject(NB_AUTH_OPTIONS) protected options = {},\r\n protected cd: ChangeDetectorRef,\r\n protected router: Router,\r\n private titleService: Title) {\r\n super(service, options, cd, router);\r\n \r\n }\r\n ngOnInit(): void {\r\n this.titleService.setTitle(`${environment.title}`);\r\n }\r\n}","

{{ 'Change password' | i18next }}

\r\n

{{ 'Please set a new password' | i18next }}

\r\n\r\n\r\n

{{ 'Oh snap!' | i18next }}

\r\n
    \r\n
  • {{ 'error' | i18next }}
  • \r\n
\r\n
\r\n\r\n\r\n

{{ 'Hooray!' | i18next }}

\r\n
    \r\n
  • {{ 'messageResetPass' | i18next }}
  • \r\n
\r\n
\r\n\r\n
\r\n
\r\n \r\n \r\n \r\n

\r\n {{ 'Email is required!' | i18next }}\r\n

\r\n

\r\n {{ 'Email should be the real one!' | i18next }}\r\n

\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n

\r\n {{ 'Password is required!' | i18next }}\r\n

\r\n

\r\n {{ 'Password should contain from {min} to {max} characters' | i18next: {\r\n min: getConfigValue('forms.validation.password.minLength'),\r\n max: getConfigValue('forms.validation.password.maxLength')} }}\r\n

\r\n
\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n

\r\n {{ 'Password confirmation is required!' | i18next }}\r\n

\r\n

\r\n {{ 'Password does not match the confirm password.' | i18next }}\r\n

\r\n
\r\n
\r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n\r\n
\r\n

{{ 'Back to Log In' | i18next }}

\r\n

{{ 'Register' | i18next }}

\r\n
","import { Component, ChangeDetectorRef, Inject, OnInit } from '@angular/core';\r\nimport { NbAuthService, NB_AUTH_OPTIONS, NbResetPasswordComponent } from '@nebular/auth';\r\nimport { Router, ActivatedRoute } from '@angular/router';\r\nimport { Title } from '@angular/platform-browser';\r\nimport { environment } from '../../environments/environment';\r\n\r\n@Component({\r\n selector: 'ngx-request-password',\r\n templateUrl: './reset-password.component.html',\r\n})\r\nexport class NgxResetPasswordComponent extends NbResetPasswordComponent implements OnInit {\r\n constructor(protected service: NbAuthService,\r\n @Inject(NB_AUTH_OPTIONS) protected options = {},\r\n protected cd: ChangeDetectorRef,\r\n protected router: Router, private route: ActivatedRoute,\r\n private titleService: Title) {\r\n super(service, options, cd, router);\r\n this.user.token = route.snapshot.queryParams['request_token'];\r\n }\r\n ngOnInit(): void {\r\n this.titleService.setTitle(`${environment.title}`);\r\n }\r\n showPassword = false;\r\n\r\n getInputType() {\r\n if (this.showPassword) {\r\n return 'text';\r\n }\r\n return 'password';\r\n }\r\n\r\n toggleShowPassword() {\r\n this.showPassword = !this.showPassword;\r\n }\r\n}","import { Injectable, Injector, NgModuleFactoryLoader, Type, ComponentFactory, NgModuleRef, Compiler, NgModuleFactory, Inject} from '@angular/core';\r\nimport { AddinInstallerService } from '../@core/addins/addin-installer.service';\r\nimport { WidgetComponent } from '../dashboard/widgets/core/widget.component';\r\nimport { BaseDetailsComponent } from './basedetails.component';\r\nimport { DocumentListConfig } from '.';\r\nimport { I18NextService, I18NEXT_SERVICE } from 'angular-i18next';\r\nimport { DocumentsListComponent } from './lists/lists.component';\r\n\r\ntype AddinModule = Type & { installerService: AddinInstallerService };\r\ntype ModuleInfo = [NgModuleRef, AddinModule];\r\n\r\n// TO DO : move to src-* folders:\r\nexport const lazyModules = {\r\n complaints: {\r\n loadChildren: () => import('../@addins/complaints/complaints-addin.module').then(m => m.ComplaintsAddinModule)\r\n },\r\n complaintsAmberline: {\r\n loadChildren: () => import('../@addins/complaintsAmberline/complaintsAmberline-addin.module').then(m => m.ComplaintsAmberlineAddinModule)\r\n },\r\n complaintsPolipack: {\r\n loadChildren: () => import('../@addins/complaintsPolipack/complaintsPolipack-addin.module').then(m => m.ComplaintsPolipackAddinModule)\r\n },\r\n contracts: {\r\n loadChildren: () => import('../@addins/contracts/contracts-addin.module').then(m => m.ContractsAddinModule)\r\n },\r\n hr: {\r\n loadChildren: () => import('../@addins/hr/hr-addin.module').then(m => m.HrAddinModule)\r\n },\r\n knowledgebase: {\r\n loadChildren: () => import('../@addins/knowledgebase/knowledgebase-addin.module').then(m => m.KnowledgeBaseAddinModule)\r\n },\r\n inspections: {\r\n loadChildren: () => import('../@addins/inspections/inspections-addin.module').then(m => m.InspectionsAddinModule)\r\n },\r\n inspectionsBiedronka: {\r\n loadChildren: () => import('../@addins/inspectionsBiedronka/inspectionsBiedronka-addin.module').then(m => m.InspectionsBiedronkaAddinModule)\r\n },\r\n system: {\r\n loadChildren: () => import('../@addins/system/system-addin.module').then(m => m.SystemAddinModule)\r\n },\r\n};\r\n\r\n@Injectable()\r\nexport class CustomizedViewService {\r\n\tconstructor(\r\n\t\tprivate _compiler: Compiler,\r\n\t\tprivate _injector: Injector,\r\n @Inject(I18NEXT_SERVICE) private i18NextService: I18NextService\r\n\t) {}\r\n\r\n async getDocumentListConfig(templateShortName: string, moduleName: string): Promise {\r\n if (!moduleName){ \r\n moduleName = \"System\";\r\n }\r\n let module = await this.getLazyLoadingModule(moduleName)\r\n if (!module) return null;\r\n let locale = this.i18NextService.language;\r\n let documentListConfig = module[1].installerService.getDocumentListConfig(templateShortName, locale);\r\n return documentListConfig;\r\n }\r\n async getDetailsComponentFactory(templateName: string, moduleName: string = \"\"): Promise> {\r\n if (!moduleName){ \r\n moduleName = \"System\";\r\n }\r\n let module = await this.getLazyLoadingModule(moduleName)\r\n if (!module) return null;\r\n let component = module[1].installerService.getDetailsComponent(templateName);\r\n if (!component) return null;\r\n return module[0].componentFactoryResolver.resolveComponentFactory(component);\r\n }\r\n\r\n async getWidget(widgetKind: number,moduleName: string = \"\"): Promise> {\r\n if (!moduleName){ \r\n moduleName = \"System\";\r\n }\r\n let module = await this.getLazyLoadingModule(moduleName)\r\n if (!module) return null;\r\n let component = module[1].installerService.getWidget(widgetKind);\r\n if (!component) return null;\r\n return module[0].componentFactoryResolver.resolveComponentFactory(component);\r\n }\r\n\r\n async customizeListBehaviour(viewShortName: string, listComponent: DocumentsListComponent, moduleName: string) {\r\n if (!moduleName){ \r\n moduleName = \"System\";\r\n }\r\n let module = await this.getLazyLoadingModule(moduleName)\r\n if (!module) return null;\r\n module[1].installerService.customizeListBehaviour(viewShortName, listComponent, this._injector);\r\n }\r\n\r\n private async getLazyLoadingModule(moduleName): Promise{\r\n\r\n let moduleShortName = moduleName.substring(0,1).toLowerCase() + moduleName.substring(1);\r\n\r\n let moduleFactory = null;\r\n let loader = lazyModules[moduleShortName].loadChildren();\r\n let moduleOrFactory = await Promise.resolve(loader);\r\n \r\n if (moduleOrFactory instanceof NgModuleFactory) {\r\n moduleFactory = moduleOrFactory;\r\n } else {\r\n moduleFactory = await this._compiler.compileModuleAsync(moduleOrFactory);\r\n }\r\n const lazyModuleInjector = Injector.create({providers:[], parent: this._injector, name: 'lazyModuleProviders'})\r\n let lazyModuleRef = moduleFactory.create(lazyModuleInjector);\r\n await this.i18NextService.loadNamespaces(moduleShortName);\r\n\r\n if (!lazyModuleRef) return null;\r\n const addinModule = (moduleFactory.moduleType as AddinModule);\r\n if (!addinModule) return null;\r\n return [lazyModuleRef,addinModule];\r\n } \r\n}\r\n","import { EventEmitter, Injectable } from '@angular/core';\r\n\r\n@Injectable()\r\nexport class MenuService {\r\n public reload() {\r\n this.reloadEvent.next();\r\n }\r\n reloadEvent: EventEmitter = new EventEmitter();\r\n}\r\n","import { UserModel } from \"./@core/data/users.service\";\r\n\r\nexport interface Settings {\r\n\r\n colorSet: {\r\n primary: string\r\n };\r\n menus: {\r\n main: {},\r\n user: {\r\n show?: boolean | ((user:UserModel)=>boolean),\r\n positions: string[]\r\n }\r\n };\r\n lists: {\r\n showGoToButton: boolean,\r\n showColumnsSelect? : boolean | ((user:UserModel)=>boolean)\r\n };\r\n layout?: {\r\n showNotificationInducator?: boolean | ((user:UserModel)=>boolean),\r\n showSearchBar?: boolean | ((user:UserModel)=>boolean),\r\n };\r\n personDetails: {\r\n showRoleList: boolean,\r\n };\r\n client: {\r\n hasLogoClient: boolean,\r\n };\r\n};\r\n\r\nexport const defaultSettings: Settings = {\r\n colorSet: {\r\n primary: ''\r\n },\r\n lists: {\r\n showGoToButton: false,\r\n showColumnsSelect: true\r\n },\r\n layout: {\r\n showNotificationInducator: true,\r\n showSearchBar: true\r\n },\r\n menus: {\r\n main: {},\r\n user: {\r\n show: true,\r\n positions: [\"profile\", \"team\", \"company\", \"logout\"]\r\n }\r\n },\r\n personDetails: {\r\n showRoleList: false\r\n },\r\n client: {\r\n hasLogoClient: false\r\n }\r\n}","// This file can be replaced during build by using the `fileReplacements` array.\r\n// `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.\r\n// The list of file replacements can be found in `angular.json`.\r\n\r\nexport class environment {\r\n static theme: string = 'reklamacja_amberline';\r\n static title: string = 'Amberline reklamacje';\r\n static headerName: string = 'reklamacja.com';\r\n static subheaderName: string = 'Amberline';\r\n static production: boolean = true;\r\n static apiUrl: string = 'https://serwis.amberline.eu/backend';\r\n static showDemo: boolean = false;\r\n static googleMapApiKey: string = 'AIzaSyC3mHOLUoYeRKL4sIH4iQVqvCqzsKAymc0';\r\n static languages: string[] = 'pl,en,en-us,de'.split(\",\");\r\n static oauthProviders: string[] = [];\r\n static enableRegisterPartners: boolean = false;\r\n};\r\n\r\n/*\r\n * In development mode, to ignore zone related error stack frames such as\r\n * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can\r\n * import the following file, but please comment it out in production mode\r\n * because it will have performance impact when throw error\r\n */\r\n// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.\r\n","import { APP_INITIALIZER, LOCALE_ID, PLATFORM_ID } from '@angular/core';\r\nimport { I18NextLoadResult, I18NEXT_SERVICE, ITranslationService } from 'angular-i18next';\r\nimport HttpApi from 'i18next-http-backend';\r\nimport LanguageDetector from 'i18next-browser-languagedetector';\r\nimport { environment } from '../environments/environment';\r\nimport { isPlatformBrowser } from '@angular/common';\r\n\r\nimport { registerLocaleData } from '@angular/common';\r\nimport localePl from '@angular/common/locales/pl';\r\nimport localeDe from '@angular/common/locales/de';\r\nregisterLocaleData(localePl)\r\nregisterLocaleData(localeDe)\r\n\r\n //`${environment.apiUrl}/api/core/language/{{lng}}/{{ns}}`\r\nconst i18nextOptions = {\r\n supportedLngs: environment.languages,\r\n fallbackLng: environment.languages[0],\r\n debug: !environment.production,\r\n returnEmptyString: false,\r\n ns: [\r\n 'translation',\r\n '@addins'\r\n ],\r\n nsSeparator: '^',\r\n backend: {\r\n loadPath: `locale/{{lng}}/{{ns}}.json`\r\n }\r\n };\r\n const i18nextOptionsDetection = {\r\n order: ['cookie'],\r\n lookupCookie: 'lang',\r\n caches: ['cookie'],\r\n cookieMinutes: 525600 // 365 days\r\n };\r\n\r\n export function appInit(i18next: ITranslationService, platformId: any) {\r\n return () => {\r\n\r\n let i18n = i18next\r\n if (isPlatformBrowser(platformId)){\r\n i18n = i18n\r\n .use(HttpApi)\r\n .use(LanguageDetector);\r\n (i18nextOptions as any).lng = readCookie(\"lang\") || environment.languages[0];\r\n (i18nextOptions as any).detection = i18nextOptionsDetection;\r\n }\r\n let promise: Promise = i18n.init(i18nextOptions);\r\n return promise;\r\n }\r\n }\r\n function readCookie(name: string): string { \r\n var nameEQ = name + \"=\"; \r\n var ca = document.cookie.split(';'); \r\n for (var i = 0; i < ca.length; i++) { \r\n var c = ca[i]; \r\n while (c.charAt(0) == ' ') c = c.substring(1, c.length); \r\n if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); \r\n } \r\n return null; \r\n} \r\n \r\n export function localeIdFactory(i18next: ITranslationService) {\r\n return i18next.language;\r\n }\r\n\r\n export const LOCALE_PROVIDER = {\r\n provide: LOCALE_ID,\r\n deps: [I18NEXT_SERVICE],\r\n useFactory: localeIdFactory\r\n };\r\n\r\n export const I18N_PROVIDERS = [\r\n {\r\n provide: APP_INITIALIZER,\r\n deps: [I18NEXT_SERVICE, PLATFORM_ID],\r\n useFactory: appInit,\r\n multi: true\r\n }];","import {enableProdMode} from '@angular/core';\r\nimport {platformBrowserDynamic} from '@angular/platform-browser-dynamic';\r\n\r\nimport {AppModule} from './app/app.module';\r\nimport {environment} from './environments/environment';\r\n\r\nif (environment.production) {\r\n enableProdMode();\r\n}\r\n\r\ndocument.addEventListener('DOMContentLoaded', () => {\r\n platformBrowserDynamic().bootstrapModule(AppModule);\r\n});","var map = {\n\t\"./af\": 62275,\n\t\"./af.js\": 62275,\n\t\"./ar\": 90857,\n\t\"./ar-dz\": 11218,\n\t\"./ar-dz.js\": 11218,\n\t\"./ar-kw\": 14754,\n\t\"./ar-kw.js\": 14754,\n\t\"./ar-ly\": 66680,\n\t\"./ar-ly.js\": 66680,\n\t\"./ar-ma\": 92178,\n\t\"./ar-ma.js\": 92178,\n\t\"./ar-sa\": 56522,\n\t\"./ar-sa.js\": 56522,\n\t\"./ar-tn\": 95682,\n\t\"./ar-tn.js\": 95682,\n\t\"./ar.js\": 90857,\n\t\"./az\": 70164,\n\t\"./az.js\": 70164,\n\t\"./be\": 79774,\n\t\"./be.js\": 79774,\n\t\"./bg\": 60947,\n\t\"./bg.js\": 60947,\n\t\"./bm\": 21832,\n\t\"./bm.js\": 21832,\n\t\"./bn\": 89650,\n\t\"./bn-bd\": 74477,\n\t\"./bn-bd.js\": 74477,\n\t\"./bn.js\": 89650,\n\t\"./bo\": 66005,\n\t\"./bo.js\": 66005,\n\t\"./br\": 98492,\n\t\"./br.js\": 98492,\n\t\"./bs\": 70534,\n\t\"./bs.js\": 70534,\n\t\"./ca\": 52061,\n\t\"./ca.js\": 52061,\n\t\"./cs\": 84737,\n\t\"./cs.js\": 84737,\n\t\"./cv\": 61167,\n\t\"./cv.js\": 61167,\n\t\"./cy\": 77996,\n\t\"./cy.js\": 77996,\n\t\"./da\": 9528,\n\t\"./da.js\": 9528,\n\t\"./de\": 14540,\n\t\"./de-at\": 49430,\n\t\"./de-at.js\": 49430,\n\t\"./de-ch\": 67978,\n\t\"./de-ch.js\": 67978,\n\t\"./de.js\": 14540,\n\t\"./dv\": 83426,\n\t\"./dv.js\": 83426,\n\t\"./el\": 6616,\n\t\"./el.js\": 6616,\n\t\"./en-au\": 63816,\n\t\"./en-au.js\": 63816,\n\t\"./en-ca\": 32162,\n\t\"./en-ca.js\": 32162,\n\t\"./en-gb\": 83305,\n\t\"./en-gb.js\": 83305,\n\t\"./en-ie\": 61954,\n\t\"./en-ie.js\": 61954,\n\t\"./en-il\": 43060,\n\t\"./en-il.js\": 43060,\n\t\"./en-in\": 59923,\n\t\"./en-in.js\": 59923,\n\t\"./en-nz\": 13540,\n\t\"./en-nz.js\": 13540,\n\t\"./en-sg\": 43734,\n\t\"./en-sg.js\": 43734,\n\t\"./eo\": 41907,\n\t\"./eo.js\": 41907,\n\t\"./es\": 86640,\n\t\"./es-do\": 41246,\n\t\"./es-do.js\": 41246,\n\t\"./es-mx\": 56131,\n\t\"./es-mx.js\": 56131,\n\t\"./es-us\": 36430,\n\t\"./es-us.js\": 36430,\n\t\"./es.js\": 86640,\n\t\"./et\": 62551,\n\t\"./et.js\": 62551,\n\t\"./eu\": 32711,\n\t\"./eu.js\": 32711,\n\t\"./fa\": 54572,\n\t\"./fa.js\": 54572,\n\t\"./fi\": 33390,\n\t\"./fi.js\": 33390,\n\t\"./fil\": 87860,\n\t\"./fil.js\": 87860,\n\t\"./fo\": 48216,\n\t\"./fo.js\": 48216,\n\t\"./fr\": 99291,\n\t\"./fr-ca\": 98527,\n\t\"./fr-ca.js\": 98527,\n\t\"./fr-ch\": 58407,\n\t\"./fr-ch.js\": 58407,\n\t\"./fr.js\": 99291,\n\t\"./fy\": 47054,\n\t\"./fy.js\": 47054,\n\t\"./ga\": 49540,\n\t\"./ga.js\": 49540,\n\t\"./gd\": 73917,\n\t\"./gd.js\": 73917,\n\t\"./gl\": 51486,\n\t\"./gl.js\": 51486,\n\t\"./gom-deva\": 56245,\n\t\"./gom-deva.js\": 56245,\n\t\"./gom-latn\": 48868,\n\t\"./gom-latn.js\": 48868,\n\t\"./gu\": 59652,\n\t\"./gu.js\": 59652,\n\t\"./he\": 89019,\n\t\"./he.js\": 89019,\n\t\"./hi\": 42040,\n\t\"./hi.js\": 42040,\n\t\"./hr\": 63402,\n\t\"./hr.js\": 63402,\n\t\"./hu\": 79322,\n\t\"./hu.js\": 79322,\n\t\"./hy-am\": 27609,\n\t\"./hy-am.js\": 27609,\n\t\"./id\": 57942,\n\t\"./id.js\": 57942,\n\t\"./is\": 98275,\n\t\"./is.js\": 98275,\n\t\"./it\": 73053,\n\t\"./it-ch\": 4378,\n\t\"./it-ch.js\": 4378,\n\t\"./it.js\": 73053,\n\t\"./ja\": 46176,\n\t\"./ja.js\": 46176,\n\t\"./jv\": 679,\n\t\"./jv.js\": 679,\n\t\"./ka\": 92726,\n\t\"./ka.js\": 92726,\n\t\"./kk\": 72953,\n\t\"./kk.js\": 72953,\n\t\"./km\": 86957,\n\t\"./km.js\": 86957,\n\t\"./kn\": 59181,\n\t\"./kn.js\": 59181,\n\t\"./ko\": 47148,\n\t\"./ko.js\": 47148,\n\t\"./ku\": 27752,\n\t\"./ku.js\": 27752,\n\t\"./ky\": 65675,\n\t\"./ky.js\": 65675,\n\t\"./lb\": 41263,\n\t\"./lb.js\": 41263,\n\t\"./lo\": 65746,\n\t\"./lo.js\": 65746,\n\t\"./lt\": 11143,\n\t\"./lt.js\": 11143,\n\t\"./lv\": 38753,\n\t\"./lv.js\": 38753,\n\t\"./me\": 44054,\n\t\"./me.js\": 44054,\n\t\"./mi\": 31573,\n\t\"./mi.js\": 31573,\n\t\"./mk\": 30202,\n\t\"./mk.js\": 30202,\n\t\"./ml\": 68523,\n\t\"./ml.js\": 68523,\n\t\"./mn\": 79794,\n\t\"./mn.js\": 79794,\n\t\"./mr\": 56681,\n\t\"./mr.js\": 56681,\n\t\"./ms\": 56975,\n\t\"./ms-my\": 39859,\n\t\"./ms-my.js\": 39859,\n\t\"./ms.js\": 56975,\n\t\"./mt\": 3691,\n\t\"./mt.js\": 3691,\n\t\"./my\": 5152,\n\t\"./my.js\": 5152,\n\t\"./nb\": 7607,\n\t\"./nb.js\": 7607,\n\t\"./ne\": 21526,\n\t\"./ne.js\": 21526,\n\t\"./nl\": 86368,\n\t\"./nl-be\": 40076,\n\t\"./nl-be.js\": 40076,\n\t\"./nl.js\": 86368,\n\t\"./nn\": 68420,\n\t\"./nn.js\": 68420,\n\t\"./oc-lnc\": 51906,\n\t\"./oc-lnc.js\": 51906,\n\t\"./pa-in\": 94504,\n\t\"./pa-in.js\": 94504,\n\t\"./pl\": 54721,\n\t\"./pl.js\": 54721,\n\t\"./pt\": 74645,\n\t\"./pt-br\": 54548,\n\t\"./pt-br.js\": 54548,\n\t\"./pt.js\": 74645,\n\t\"./ro\": 71977,\n\t\"./ro.js\": 71977,\n\t\"./ru\": 26042,\n\t\"./ru.js\": 26042,\n\t\"./sd\": 78849,\n\t\"./sd.js\": 78849,\n\t\"./se\": 27739,\n\t\"./se.js\": 27739,\n\t\"./si\": 50084,\n\t\"./si.js\": 50084,\n\t\"./sk\": 92449,\n\t\"./sk.js\": 92449,\n\t\"./sl\": 23086,\n\t\"./sl.js\": 23086,\n\t\"./sq\": 33139,\n\t\"./sq.js\": 33139,\n\t\"./sr\": 30607,\n\t\"./sr-cyrl\": 30063,\n\t\"./sr-cyrl.js\": 30063,\n\t\"./sr.js\": 30607,\n\t\"./ss\": 40131,\n\t\"./ss.js\": 40131,\n\t\"./sv\": 21665,\n\t\"./sv.js\": 21665,\n\t\"./sw\": 5642,\n\t\"./sw.js\": 5642,\n\t\"./ta\": 33622,\n\t\"./ta.js\": 33622,\n\t\"./te\": 74825,\n\t\"./te.js\": 74825,\n\t\"./tet\": 48336,\n\t\"./tet.js\": 48336,\n\t\"./tg\": 39238,\n\t\"./tg.js\": 39238,\n\t\"./th\": 99463,\n\t\"./th.js\": 99463,\n\t\"./tk\": 39986,\n\t\"./tk.js\": 39986,\n\t\"./tl-ph\": 29672,\n\t\"./tl-ph.js\": 29672,\n\t\"./tlh\": 40043,\n\t\"./tlh.js\": 40043,\n\t\"./tr\": 51212,\n\t\"./tr.js\": 51212,\n\t\"./tzl\": 50110,\n\t\"./tzl.js\": 50110,\n\t\"./tzm\": 80482,\n\t\"./tzm-latn\": 38309,\n\t\"./tzm-latn.js\": 38309,\n\t\"./tzm.js\": 80482,\n\t\"./ug-cn\": 42495,\n\t\"./ug-cn.js\": 42495,\n\t\"./uk\": 54157,\n\t\"./uk.js\": 54157,\n\t\"./ur\": 80984,\n\t\"./ur.js\": 80984,\n\t\"./uz\": 64141,\n\t\"./uz-latn\": 43662,\n\t\"./uz-latn.js\": 43662,\n\t\"./uz.js\": 64141,\n\t\"./vi\": 12607,\n\t\"./vi.js\": 12607,\n\t\"./x-pseudo\": 66460,\n\t\"./x-pseudo.js\": 66460,\n\t\"./yo\": 92948,\n\t\"./yo.js\": 92948,\n\t\"./zh-cn\": 62658,\n\t\"./zh-cn.js\": 62658,\n\t\"./zh-hk\": 39352,\n\t\"./zh-hk.js\": 39352,\n\t\"./zh-mo\": 38274,\n\t\"./zh-mo.js\": 38274,\n\t\"./zh-tw\": 98451,\n\t\"./zh-tw.js\": 98451\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 46700;"]}