@smartbit4all/ng-client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +386 -0
- package/esm2020/lib/session/api/api/api.mjs +4 -0
- package/esm2020/lib/session/api/api/session.service.mjs +306 -0
- package/esm2020/lib/session/api/configuration.mjs +91 -0
- package/esm2020/lib/session/api/encoder.mjs +19 -0
- package/esm2020/lib/session/api/index.mjs +3 -0
- package/esm2020/lib/session/api/model/accountInfo.mjs +13 -0
- package/esm2020/lib/session/api/model/apiError.mjs +13 -0
- package/esm2020/lib/session/api/model/authenticationProviderData.mjs +13 -0
- package/esm2020/lib/session/api/model/getAuthenticationProvidersResponse.mjs +2 -0
- package/esm2020/lib/session/api/model/models.mjs +9 -0
- package/esm2020/lib/session/api/model/refreshSessionRequest.mjs +13 -0
- package/esm2020/lib/session/api/model/session.mjs +2 -0
- package/esm2020/lib/session/api/model/sessionInfoData.mjs +2 -0
- package/esm2020/lib/session/api/model/userActivityLog.mjs +13 -0
- package/esm2020/lib/session/api/param.mjs +2 -0
- package/esm2020/lib/session/api/variables.mjs +9 -0
- package/esm2020/lib/session/cookie-service/smart-cookie.service.mjs +225 -0
- package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.component.mjs +90 -0
- package/esm2020/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.mjs +43 -0
- package/esm2020/lib/session/dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component.mjs +40 -0
- package/esm2020/lib/session/dev-tool/smart-dev-tool.interceptor.mjs +52 -0
- package/esm2020/lib/session/dev-tool/smart-dev-tool.service.mjs +161 -0
- package/esm2020/lib/session/projects.mjs +12 -0
- package/esm2020/lib/session/smart-error-catching.interceptor.mjs +71 -0
- package/esm2020/lib/session/smart-header-maintainer.interceptor.mjs +36 -0
- package/esm2020/lib/session/smart-session-handler.service.mjs +6 -0
- package/esm2020/lib/session/smart-session.module.mjs +74 -0
- package/esm2020/lib/session/smart-session.service.mjs +204 -0
- package/esm2020/lib/session/smart-timer/smart-session-timer.component.mjs +35 -0
- package/esm2020/lib/session/smart-timer/smart-session-timer.service.mjs +51 -0
- package/esm2020/lib/smart-ng-client.module.mjs +20 -0
- package/esm2020/lib/smart-ng-client.service.mjs +19 -0
- package/esm2020/lib/view-context/api/api/api.mjs +4 -0
- package/esm2020/lib/view-context/api/api/view.service.mjs +401 -0
- package/esm2020/lib/view-context/api/api.module.mjs +40 -0
- package/esm2020/lib/view-context/api/configuration.mjs +91 -0
- package/esm2020/lib/view-context/api/encoder.mjs +19 -0
- package/esm2020/lib/view-context/api/index.mjs +7 -0
- package/esm2020/lib/view-context/api/model/closeResult.mjs +17 -0
- package/esm2020/lib/view-context/api/model/componentConstraint.mjs +2 -0
- package/esm2020/lib/view-context/api/model/messageData.mjs +2 -0
- package/esm2020/lib/view-context/api/model/messageOption.mjs +2 -0
- package/esm2020/lib/view-context/api/model/messageOptionType.mjs +17 -0
- package/esm2020/lib/view-context/api/model/messageResult.mjs +2 -0
- package/esm2020/lib/view-context/api/model/messageType.mjs +18 -0
- package/esm2020/lib/view-context/api/model/models.mjs +29 -0
- package/esm2020/lib/view-context/api/model/openPendingData.mjs +2 -0
- package/esm2020/lib/view-context/api/model/smartLinkData.mjs +2 -0
- package/esm2020/lib/view-context/api/model/uiAction.mjs +2 -0
- package/esm2020/lib/view-context/api/model/uiActionButtonDescriptor.mjs +13 -0
- package/esm2020/lib/view-context/api/model/uiActionButtonIconPos.mjs +16 -0
- package/esm2020/lib/view-context/api/model/uiActionButtonType.mjs +21 -0
- package/esm2020/lib/view-context/api/model/uiActionDescriptor.mjs +2 -0
- package/esm2020/lib/view-context/api/model/uiActionDialogDescriptor.mjs +2 -0
- package/esm2020/lib/view-context/api/model/uiActionFeedbackType.mjs +16 -0
- package/esm2020/lib/view-context/api/model/uiActionInputType.mjs +18 -0
- package/esm2020/lib/view-context/api/model/uiActionRequest.mjs +13 -0
- package/esm2020/lib/view-context/api/model/view.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewApiError.mjs +13 -0
- package/esm2020/lib/view-context/api/model/viewConstraint.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewContext.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewContextData.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewContextUpdate.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewData.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewState.mjs +21 -0
- package/esm2020/lib/view-context/api/model/viewStateUpdate.mjs +2 -0
- package/esm2020/lib/view-context/api/model/viewType.mjs +17 -0
- package/esm2020/lib/view-context/api/param.mjs +2 -0
- package/esm2020/lib/view-context/api/variables.mjs +9 -0
- package/esm2020/lib/view-context/message-dialog/message-dialog.component.mjs +63 -0
- package/esm2020/lib/view-context/projects.mjs +17 -0
- package/esm2020/lib/view-context/smart-ui-action/components/success-snack-bar/success-snack-bar.component.mjs +30 -0
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component.mjs +53 -0
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.mjs +47 -0
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.mjs +112 -0
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.mjs +51 -0
- package/esm2020/lib/view-context/smart-ui-action/ui-action-toolbar.component.mjs +81 -0
- package/esm2020/lib/view-context/smart-ui-action/ui-action.descriptor.service.mjs +113 -0
- package/esm2020/lib/view-context/smart-ui-action/ui-action.model.mjs +7 -0
- package/esm2020/lib/view-context/smart-ui-action/ui-action.service.mjs +149 -0
- package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.component.mjs +24 -0
- package/esm2020/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.mjs +44 -0
- package/esm2020/lib/view-context/smart-view-context.interceptor.mjs +28 -0
- package/esm2020/lib/view-context/smart-view-context.model.mjs +2 -0
- package/esm2020/lib/view-context/smart-view-context.module.mjs +84 -0
- package/esm2020/lib/view-context/smart-view-context.service.mjs +310 -0
- package/esm2020/lib/view-context/smart-view-redirect/smart-view-redirect.mjs +33 -0
- package/esm2020/lib/view-context/value-api/api.module.mjs +40 -0
- package/esm2020/lib/view-context/value-api/configuration.mjs +91 -0
- package/esm2020/lib/view-context/value-api/index.mjs +6 -0
- package/esm2020/lib/view-context/value-api/model/models.mjs +2 -0
- package/esm2020/lib/view-context/value-api/model/valueSetData.mjs +13 -0
- package/esm2020/lib/view-context/value-api/param.mjs +2 -0
- package/esm2020/lib/view-context/value-api/variables.mjs +9 -0
- package/esm2020/projects.mjs +8 -0
- package/esm2020/smartbit4all-ng-client.mjs +5 -0
- package/fesm2015/smartbit4all-ng-client.mjs +3418 -0
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -0
- package/fesm2020/smartbit4all-ng-client.mjs +3423 -0
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -0
- package/lib/session/api/api/api.d.ts +3 -0
- package/lib/session/api/api/session.service.d.ts +107 -0
- package/lib/session/api/configuration.d.ts +104 -0
- package/lib/session/api/encoder.d.ts +11 -0
- package/lib/session/api/index.d.ts +2 -0
- package/lib/session/api/model/accountInfo.d.ts +22 -0
- package/lib/session/api/model/apiError.d.ts +15 -0
- package/lib/session/api/model/authenticationProviderData.d.ts +17 -0
- package/lib/session/api/model/getAuthenticationProvidersResponse.d.ts +15 -0
- package/lib/session/api/model/models.d.ts +8 -0
- package/lib/session/api/model/refreshSessionRequest.d.ts +14 -0
- package/lib/session/api/model/session.d.ts +32 -0
- package/lib/session/api/model/sessionInfoData.d.ts +22 -0
- package/lib/session/api/model/userActivityLog.d.ts +33 -0
- package/lib/session/api/param.d.ts +37 -0
- package/lib/session/api/variables.d.ts +8 -0
- package/lib/session/cookie-service/smart-cookie.service.d.ts +129 -0
- package/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.component.d.ts +28 -0
- package/lib/session/dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.service.d.ts +18 -0
- package/lib/session/dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component.d.ts +15 -0
- package/lib/session/dev-tool/smart-dev-tool.interceptor.d.ts +18 -0
- package/lib/session/dev-tool/smart-dev-tool.service.d.ts +55 -0
- package/lib/session/projects.d.ts +8 -0
- package/lib/session/smart-error-catching.interceptor.d.ts +13 -0
- package/lib/session/smart-header-maintainer.interceptor.d.ts +11 -0
- package/lib/session/smart-session-handler.service.d.ts +11 -0
- package/lib/session/smart-session.module.d.ts +15 -0
- package/lib/session/smart-session.service.d.ts +50 -0
- package/lib/session/smart-timer/smart-session-timer.component.d.ts +14 -0
- package/lib/session/smart-timer/smart-session-timer.service.d.ts +21 -0
- package/lib/smart-ng-client.module.d.ts +8 -0
- package/lib/smart-ng-client.service.d.ts +10 -0
- package/lib/view-context/api/api/api.d.ts +3 -0
- package/lib/view-context/api/api/view.service.d.ts +147 -0
- package/lib/view-context/api/api.module.d.ts +11 -0
- package/lib/view-context/api/configuration.d.ts +104 -0
- package/lib/view-context/api/encoder.d.ts +11 -0
- package/lib/view-context/api/index.d.ts +6 -0
- package/lib/view-context/api/model/closeResult.d.ts +17 -0
- package/lib/view-context/api/model/componentConstraint.d.ts +25 -0
- package/lib/view-context/api/model/messageData.d.ts +27 -0
- package/lib/view-context/api/model/messageOption.d.ts +18 -0
- package/lib/view-context/api/model/messageOptionType.d.ts +17 -0
- package/lib/view-context/api/model/messageResult.d.ts +16 -0
- package/lib/view-context/api/model/messageType.d.ts +18 -0
- package/lib/view-context/api/model/models.d.ts +28 -0
- package/lib/view-context/api/model/openPendingData.d.ts +22 -0
- package/lib/view-context/api/model/smartLinkData.d.ts +21 -0
- package/lib/view-context/api/model/uiAction.d.ts +26 -0
- package/lib/view-context/api/model/uiActionButtonDescriptor.d.ts +18 -0
- package/lib/view-context/api/model/uiActionButtonIconPos.d.ts +19 -0
- package/lib/view-context/api/model/uiActionButtonType.d.ts +24 -0
- package/lib/view-context/api/model/uiActionDescriptor.d.ts +32 -0
- package/lib/view-context/api/model/uiActionDialogDescriptor.d.ts +22 -0
- package/lib/view-context/api/model/uiActionFeedbackType.d.ts +19 -0
- package/lib/view-context/api/model/uiActionInputType.d.ts +18 -0
- package/lib/view-context/api/model/uiActionRequest.d.ts +27 -0
- package/lib/view-context/api/model/view.d.ts +36 -0
- package/lib/view-context/api/model/viewApiError.d.ts +18 -0
- package/lib/view-context/api/model/viewConstraint.d.ts +18 -0
- package/lib/view-context/api/model/viewContext.d.ts +22 -0
- package/lib/view-context/api/model/viewContextData.d.ts +19 -0
- package/lib/view-context/api/model/viewContextUpdate.d.ts +22 -0
- package/lib/view-context/api/model/viewData.d.ts +25 -0
- package/lib/view-context/api/model/viewState.d.ts +21 -0
- package/lib/view-context/api/model/viewStateUpdate.d.ts +22 -0
- package/lib/view-context/api/model/viewType.d.ts +17 -0
- package/lib/view-context/api/param.d.ts +37 -0
- package/lib/view-context/api/variables.d.ts +8 -0
- package/lib/view-context/message-dialog/message-dialog.component.d.ts +17 -0
- package/lib/view-context/projects.d.ts +13 -0
- package/lib/view-context/smart-ui-action/components/success-snack-bar/success-snack-bar.component.d.ts +13 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.component.d.ts +25 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-confirm-dialog/ui-action-confirm-dialog.service.d.ts +18 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.d.ts +28 -0
- package/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.service.d.ts +25 -0
- package/lib/view-context/smart-ui-action/ui-action-toolbar.component.d.ts +24 -0
- package/lib/view-context/smart-ui-action/ui-action.descriptor.service.d.ts +21 -0
- package/lib/view-context/smart-ui-action/ui-action.model.d.ts +30 -0
- package/lib/view-context/smart-ui-action/ui-action.service.d.ts +21 -0
- package/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.component.d.ts +13 -0
- package/lib/view-context/smart-view-context-error-dialog/smart-view-context-error-dialog.service.d.ts +17 -0
- package/lib/view-context/smart-view-context.interceptor.d.ts +13 -0
- package/lib/view-context/smart-view-context.model.d.ts +30 -0
- package/lib/view-context/smart-view-context.module.d.ts +20 -0
- package/lib/view-context/smart-view-context.service.d.ts +60 -0
- package/lib/view-context/smart-view-redirect/smart-view-redirect.d.ts +14 -0
- package/lib/view-context/value-api/api.module.d.ts +11 -0
- package/lib/view-context/value-api/configuration.d.ts +104 -0
- package/lib/view-context/value-api/index.d.ts +5 -0
- package/lib/view-context/value-api/model/models.d.ts +1 -0
- package/lib/view-context/value-api/model/valueSetData.d.ts +39 -0
- package/lib/view-context/value-api/param.d.ts +37 -0
- package/lib/view-context/value-api/variables.d.ts +8 -0
- package/package.json +38 -0
- package/projects.d.ts +4 -0
- package/smartbit4all-ng-client-1.0.0.tgz +0 -0
- package/smartbit4all-ng-client.d.ts +5 -0
- package/src/lib/session/api/README.md +226 -0
- package/src/lib/view-context/api/README.md +226 -0
- package/src/lib/view-context/value-api/README.md +226 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from "@angular/common/http";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { SmartDevToolService } from "./smart-dev-tool.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SmartDevToolInterceptor implements HttpInterceptor {
|
|
6
|
+
private service;
|
|
7
|
+
constructor(service: SmartDevToolService);
|
|
8
|
+
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartDevToolInterceptor, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartDevToolInterceptor>;
|
|
11
|
+
}
|
|
12
|
+
export declare class SmartDevToolErrorInterceptor implements HttpInterceptor {
|
|
13
|
+
private service;
|
|
14
|
+
constructor(service: SmartDevToolService);
|
|
15
|
+
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartDevToolErrorInterceptor, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartDevToolErrorInterceptor>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DatePipe } from "@angular/common";
|
|
2
|
+
import { HttpErrorResponse, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
3
|
+
import { PipeTransform } from "@angular/core";
|
|
4
|
+
import { Subject } from "rxjs";
|
|
5
|
+
import { SmartCookieService } from "../cookie-service/smart-cookie.service";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SmartDevToolService {
|
|
8
|
+
private cookieService;
|
|
9
|
+
descriptor?: SmartDevToolDescriptor;
|
|
10
|
+
smartDevToolName: string;
|
|
11
|
+
isSmartDevToolActiveName: string;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
smartDevToolHoursName: string;
|
|
14
|
+
smartDevToolMaxName: string;
|
|
15
|
+
hoursToSave: number;
|
|
16
|
+
maxNumOfSavedCalls: number;
|
|
17
|
+
descriptorChanged: Subject<void>;
|
|
18
|
+
newErrorsCount: number;
|
|
19
|
+
newErrorsCountChanged: Subject<void>;
|
|
20
|
+
constructor(cookieService: SmartCookieService);
|
|
21
|
+
private setUpLocalStorage;
|
|
22
|
+
writeResponse(request: HttpRequest<any>, response: HttpResponse<any> | HttpErrorResponse, requestDate: Date, responseDate: Date): void;
|
|
23
|
+
clearErrors(): void;
|
|
24
|
+
createObject(keys: string[], mapWithValues: any, useGetItem: boolean): any;
|
|
25
|
+
sanitizeByTime(): void;
|
|
26
|
+
sanitizeByLength(): void;
|
|
27
|
+
save(): void;
|
|
28
|
+
clear(): void;
|
|
29
|
+
getPureString(): string;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartDevToolService, never>;
|
|
31
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartDevToolService>;
|
|
32
|
+
}
|
|
33
|
+
export interface SmartDevToolDescriptor {
|
|
34
|
+
apiCalls: SmartDevToolApiCallDescriptor[];
|
|
35
|
+
}
|
|
36
|
+
export interface SmartDevToolApiCallDescriptor {
|
|
37
|
+
url: string | null;
|
|
38
|
+
responseBody: any;
|
|
39
|
+
responseHeader: any;
|
|
40
|
+
responseStatus: number;
|
|
41
|
+
responseStatusText: string;
|
|
42
|
+
responseDate: Date;
|
|
43
|
+
requestHeader: any;
|
|
44
|
+
requestBody: any;
|
|
45
|
+
requestDate: Date;
|
|
46
|
+
requestMethod: string;
|
|
47
|
+
localStorage: any;
|
|
48
|
+
sessionStorage: any;
|
|
49
|
+
cookies: any;
|
|
50
|
+
}
|
|
51
|
+
export declare class SmartDevToolDatePipe extends DatePipe implements PipeTransform {
|
|
52
|
+
transform(value: any, format?: string): any;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartDevToolDatePipe, never>;
|
|
54
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SmartDevToolDatePipe, "smartDevToolDatePipe">;
|
|
55
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./smart-session.service";
|
|
2
|
+
export * from "./api/index";
|
|
3
|
+
export * from "./smart-session.module";
|
|
4
|
+
export * from "./dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component";
|
|
5
|
+
export * from "./dev-tool/smart-dev-tool.service";
|
|
6
|
+
export * from "./smart-session-handler.service";
|
|
7
|
+
export * from "./smart-timer/smart-session-timer.component";
|
|
8
|
+
export * from "./smart-timer/smart-session-timer.service";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from "@angular/common/http";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { SessionError, SmartSessionService } from "./projects";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SmartErrorCatchingInterceptor implements HttpInterceptor {
|
|
6
|
+
private session;
|
|
7
|
+
sessionErrorCodes: SessionError[];
|
|
8
|
+
constructor(session: SmartSessionService);
|
|
9
|
+
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
10
|
+
resolveError(sessionError: SessionError): Observable<any>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartErrorCatchingInterceptor, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartErrorCatchingInterceptor>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from "@angular/common/http";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { SmartSessionService } from "./smart-session.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SmartHeaderMaintainerInterceptor implements HttpInterceptor {
|
|
6
|
+
private session;
|
|
7
|
+
constructor(session: SmartSessionService);
|
|
8
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartHeaderMaintainerInterceptor, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartHeaderMaintainerInterceptor>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface SmartSessionHandlerService {
|
|
2
|
+
handleSessionError(sessionError: SessionError): Promise<void>;
|
|
3
|
+
}
|
|
4
|
+
export interface SessionError {
|
|
5
|
+
code: string;
|
|
6
|
+
behaviour: SessionErrorBehaviour;
|
|
7
|
+
}
|
|
8
|
+
export declare enum SessionErrorBehaviour {
|
|
9
|
+
REFRESH = 0,
|
|
10
|
+
RESTART = 1
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./dev-tool/smart-dev-tool-dialog/smart-dev-tool-dialog.component";
|
|
3
|
+
import * as i2 from "./dev-tool/smart-dev-tool-floating-button/smart-dev-tool-floating-button.component";
|
|
4
|
+
import * as i3 from "./dev-tool/smart-dev-tool.service";
|
|
5
|
+
import * as i4 from "./smart-timer/smart-session-timer.component";
|
|
6
|
+
import * as i5 from "@angular/platform-browser";
|
|
7
|
+
import * as i6 from "@angular/material/core";
|
|
8
|
+
import * as i7 from "@angular/material/expansion";
|
|
9
|
+
import * as i8 from "@angular/material/button";
|
|
10
|
+
import * as i9 from "@smartbit4all/icon";
|
|
11
|
+
export declare class SmartSessionModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartSessionModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartSessionModule, [typeof i1.SmartDevToolDialogComponent, typeof i2.SmartDevToolFloatingButtonComponent, typeof i3.SmartDevToolDatePipe, typeof i4.SmartSessionTimerComponent], [typeof i5.BrowserModule, typeof i6.MatCommonModule, typeof i7.MatExpansionModule, typeof i8.MatButtonModule, typeof i9.SmartIconModule], [typeof i2.SmartDevToolFloatingButtonComponent, typeof i4.SmartSessionTimerComponent]>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SmartSessionModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import { AuthenticationProviderData, SessionInfoData, SessionService } from "./api";
|
|
3
|
+
import { SmartCookieService } from "./cookie-service/smart-cookie.service";
|
|
4
|
+
import { SessionError, SmartSessionHandlerService } from "./smart-session-handler.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface HeaderParam {
|
|
7
|
+
headerName: string;
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class SmartSessionService {
|
|
11
|
+
private apiService;
|
|
12
|
+
private cookieService;
|
|
13
|
+
private basePath?;
|
|
14
|
+
private token?;
|
|
15
|
+
private _sessionInfoData?;
|
|
16
|
+
get sessionInfoData(): SessionInfoData | undefined;
|
|
17
|
+
private set sessionInfoData(value);
|
|
18
|
+
private providers?;
|
|
19
|
+
private cookieName?;
|
|
20
|
+
isAuthenticated: boolean;
|
|
21
|
+
authenticationStateChanged: Subject<boolean>;
|
|
22
|
+
headerParams: Array<HeaderParam>;
|
|
23
|
+
headersUpdated: Subject<void>;
|
|
24
|
+
private localStorageLocaleName;
|
|
25
|
+
localeChanged: Subject<void>;
|
|
26
|
+
sessionExpiracyChanged: Subject<void>;
|
|
27
|
+
private sessionHandlerService?;
|
|
28
|
+
constructor(apiService: SessionService, cookieService: SmartCookieService);
|
|
29
|
+
setSessionHandlerService(smartSessionHandlerService: SmartSessionHandlerService): void;
|
|
30
|
+
handleSessionError(sessionError: SessionError): Promise<void>;
|
|
31
|
+
addHeaderParam(headerParam: HeaderParam): void;
|
|
32
|
+
private setUpTokenForSessionService;
|
|
33
|
+
setUrl(url: string): void;
|
|
34
|
+
getBasePath(): string;
|
|
35
|
+
setCookieName(name: string): void;
|
|
36
|
+
private saveTokenToLocalStorage;
|
|
37
|
+
private setAuthenticationStatus;
|
|
38
|
+
private checkStatements;
|
|
39
|
+
initialize(): Promise<void>;
|
|
40
|
+
private startSession;
|
|
41
|
+
getSession(): Promise<SessionInfoData>;
|
|
42
|
+
refreshSession(): Promise<SessionInfoData>;
|
|
43
|
+
getAuthenticationProviders(): Promise<Array<AuthenticationProviderData>>;
|
|
44
|
+
getIsAuthenticated(): Promise<boolean>;
|
|
45
|
+
clearAndStartNewSession(): Promise<void>;
|
|
46
|
+
getLocale(): string;
|
|
47
|
+
changeLocale(locale: string): Promise<void>;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartSessionService, never>;
|
|
49
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartSessionService>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { SmartSessionTimerService } from "./smart-session-timer.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SmartSessionTimerComponent implements OnInit, OnDestroy {
|
|
5
|
+
private service;
|
|
6
|
+
private _destroy$;
|
|
7
|
+
timeInSeconds?: number;
|
|
8
|
+
constructor(service: SmartSessionTimerService);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
formatTime(seconds: number): string;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartSessionTimerComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartSessionTimerComponent, "smart-session-timer", never, {}, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnDestroy } from "@angular/core";
|
|
2
|
+
import { Subject } from "rxjs";
|
|
3
|
+
import { SmartSessionService } from "../smart-session.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SmartSessionTimerService implements OnDestroy {
|
|
6
|
+
private session;
|
|
7
|
+
private _destroy$;
|
|
8
|
+
totalTimeInMinutes: number;
|
|
9
|
+
timeLeftInSeconds?: number;
|
|
10
|
+
readonly sessionExpiration: string;
|
|
11
|
+
timeChanged: Subject<void>;
|
|
12
|
+
onTimerExpired: Subject<void>;
|
|
13
|
+
timer: any;
|
|
14
|
+
constructor(session: SmartSessionService);
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
startTimer(): void;
|
|
17
|
+
restart(): void;
|
|
18
|
+
timeout(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartSessionTimerService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartSessionTimerService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./session/smart-session.module";
|
|
3
|
+
import * as i2 from "./view-context/smart-view-context.module";
|
|
4
|
+
export declare class SmartNgClientModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartNgClientModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartNgClientModule, never, [typeof i1.SmartSessionModule, typeof i2.SmartViewContextModule], [typeof i1.SmartSessionModule, typeof i2.SmartViewContextModule]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SmartNgClientModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SmartSessionService } from "./session/smart-session.service";
|
|
2
|
+
import { SmartViewContextService } from "./view-context/smart-view-context.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SmartNgClientService {
|
|
5
|
+
private session;
|
|
6
|
+
private viewContext;
|
|
7
|
+
constructor(session: SmartSessionService, viewContext: SmartViewContextService);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartNgClientService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SmartNgClientService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { MessageResult } from '../model/messageResult';
|
|
4
|
+
import { ViewConstraint } from '../model/viewConstraint';
|
|
5
|
+
import { ViewContextData } from '../model/viewContextData';
|
|
6
|
+
import { ViewContextUpdate } from '../model/viewContextUpdate';
|
|
7
|
+
import { Configuration } from '../configuration';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class ViewService {
|
|
10
|
+
protected httpClient: HttpClient;
|
|
11
|
+
protected basePath: string;
|
|
12
|
+
defaultHeaders: HttpHeaders;
|
|
13
|
+
configuration: Configuration;
|
|
14
|
+
encoder: HttpParameterCodec;
|
|
15
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
16
|
+
private addToHttpParams;
|
|
17
|
+
private addToHttpParamsRecursive;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new ViewContext
|
|
20
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
21
|
+
* @param reportProgress flag to report request and response progress.
|
|
22
|
+
*/
|
|
23
|
+
createViewContext(observe?: 'body', reportProgress?: boolean, options?: {
|
|
24
|
+
httpHeaderAccept?: 'application/json';
|
|
25
|
+
context?: HttpContext;
|
|
26
|
+
}): Observable<ViewContextData>;
|
|
27
|
+
createViewContext(observe?: 'response', reportProgress?: boolean, options?: {
|
|
28
|
+
httpHeaderAccept?: 'application/json';
|
|
29
|
+
context?: HttpContext;
|
|
30
|
+
}): Observable<HttpResponse<ViewContextData>>;
|
|
31
|
+
createViewContext(observe?: 'events', reportProgress?: boolean, options?: {
|
|
32
|
+
httpHeaderAccept?: 'application/json';
|
|
33
|
+
context?: HttpContext;
|
|
34
|
+
}): Observable<HttpEvent<ViewContextData>>;
|
|
35
|
+
/**
|
|
36
|
+
* @param uuid
|
|
37
|
+
* @param item
|
|
38
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
39
|
+
* @param reportProgress flag to report request and response progress.
|
|
40
|
+
*/
|
|
41
|
+
downloadItem(uuid: string, item: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
42
|
+
httpHeaderAccept?: 'application/octet-stream';
|
|
43
|
+
context?: HttpContext;
|
|
44
|
+
}): Observable<Blob>;
|
|
45
|
+
downloadItem(uuid: string, item: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
46
|
+
httpHeaderAccept?: 'application/octet-stream';
|
|
47
|
+
context?: HttpContext;
|
|
48
|
+
}): Observable<HttpResponse<Blob>>;
|
|
49
|
+
downloadItem(uuid: string, item: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
50
|
+
httpHeaderAccept?: 'application/octet-stream';
|
|
51
|
+
context?: HttpContext;
|
|
52
|
+
}): Observable<HttpEvent<Blob>>;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the view constraint object belongs to the given view
|
|
55
|
+
* @param uuid View\'s unique identifier.
|
|
56
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
57
|
+
* @param reportProgress flag to report request and response progress.
|
|
58
|
+
*/
|
|
59
|
+
getViewConstraint(uuid: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
60
|
+
httpHeaderAccept?: 'application/json';
|
|
61
|
+
context?: HttpContext;
|
|
62
|
+
}): Observable<ViewConstraint>;
|
|
63
|
+
getViewConstraint(uuid: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
64
|
+
httpHeaderAccept?: 'application/json';
|
|
65
|
+
context?: HttpContext;
|
|
66
|
+
}): Observable<HttpResponse<ViewConstraint>>;
|
|
67
|
+
getViewConstraint(uuid: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
68
|
+
httpHeaderAccept?: 'application/json';
|
|
69
|
+
context?: HttpContext;
|
|
70
|
+
}): Observable<HttpEvent<ViewConstraint>>;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the existing session info
|
|
73
|
+
* @param uuid ViewContext\'s unique identifier.
|
|
74
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
75
|
+
* @param reportProgress flag to report request and response progress.
|
|
76
|
+
*/
|
|
77
|
+
getViewContext(uuid: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
78
|
+
httpHeaderAccept?: 'application/json';
|
|
79
|
+
context?: HttpContext;
|
|
80
|
+
}): Observable<ViewContextData>;
|
|
81
|
+
getViewContext(uuid: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
82
|
+
httpHeaderAccept?: 'application/json';
|
|
83
|
+
context?: HttpContext;
|
|
84
|
+
}): Observable<HttpResponse<ViewContextData>>;
|
|
85
|
+
getViewContext(uuid: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
86
|
+
httpHeaderAccept?: 'application/json';
|
|
87
|
+
context?: HttpContext;
|
|
88
|
+
}): Observable<HttpEvent<ViewContextData>>;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @param viewUuid View UUID.
|
|
92
|
+
* @param messageUuid Message UUID.
|
|
93
|
+
* @param messageResult
|
|
94
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
95
|
+
* @param reportProgress flag to report request and response progress.
|
|
96
|
+
*/
|
|
97
|
+
message(viewUuid: string, messageUuid: string, messageResult: MessageResult, observe?: 'body', reportProgress?: boolean, options?: {
|
|
98
|
+
httpHeaderAccept?: undefined;
|
|
99
|
+
context?: HttpContext;
|
|
100
|
+
}): Observable<any>;
|
|
101
|
+
message(viewUuid: string, messageUuid: string, messageResult: MessageResult, observe?: 'response', reportProgress?: boolean, options?: {
|
|
102
|
+
httpHeaderAccept?: undefined;
|
|
103
|
+
context?: HttpContext;
|
|
104
|
+
}): Observable<HttpResponse<any>>;
|
|
105
|
+
message(viewUuid: string, messageUuid: string, messageResult: MessageResult, observe?: 'events', reportProgress?: boolean, options?: {
|
|
106
|
+
httpHeaderAccept?: undefined;
|
|
107
|
+
context?: HttpContext;
|
|
108
|
+
}): Observable<HttpEvent<any>>;
|
|
109
|
+
/**
|
|
110
|
+
* @param channel Smartlink\'s channel.
|
|
111
|
+
* @param uuid Smartlink\'s unique identifier
|
|
112
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
113
|
+
* @param reportProgress flag to report request and response progress.
|
|
114
|
+
*/
|
|
115
|
+
showPublishedView(channel: string, uuid: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
116
|
+
httpHeaderAccept?: undefined;
|
|
117
|
+
context?: HttpContext;
|
|
118
|
+
}): Observable<any>;
|
|
119
|
+
showPublishedView(channel: string, uuid: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
120
|
+
httpHeaderAccept?: undefined;
|
|
121
|
+
context?: HttpContext;
|
|
122
|
+
}): Observable<HttpResponse<any>>;
|
|
123
|
+
showPublishedView(channel: string, uuid: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
124
|
+
httpHeaderAccept?: undefined;
|
|
125
|
+
context?: HttpContext;
|
|
126
|
+
}): Observable<HttpEvent<any>>;
|
|
127
|
+
/**
|
|
128
|
+
* Updates an existing ViewContext
|
|
129
|
+
* @param viewContextUpdate
|
|
130
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
131
|
+
* @param reportProgress flag to report request and response progress.
|
|
132
|
+
*/
|
|
133
|
+
updateViewContext(viewContextUpdate: ViewContextUpdate, observe?: 'body', reportProgress?: boolean, options?: {
|
|
134
|
+
httpHeaderAccept?: 'application/json';
|
|
135
|
+
context?: HttpContext;
|
|
136
|
+
}): Observable<ViewContextData>;
|
|
137
|
+
updateViewContext(viewContextUpdate: ViewContextUpdate, observe?: 'response', reportProgress?: boolean, options?: {
|
|
138
|
+
httpHeaderAccept?: 'application/json';
|
|
139
|
+
context?: HttpContext;
|
|
140
|
+
}): Observable<HttpResponse<ViewContextData>>;
|
|
141
|
+
updateViewContext(viewContextUpdate: ViewContextUpdate, observe?: 'events', reportProgress?: boolean, options?: {
|
|
142
|
+
httpHeaderAccept?: 'application/json';
|
|
143
|
+
context?: HttpContext;
|
|
144
|
+
}): Observable<HttpEvent<ViewContextData>>;
|
|
145
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewService, [null, { optional: true; }, { optional: true; }]>;
|
|
146
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ViewService>;
|
|
147
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ModuleWithProviders } from "@angular/core";
|
|
2
|
+
import { Configuration } from "./configuration";
|
|
3
|
+
import { HttpClient } from "@angular/common/http";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ViewContextApiModule {
|
|
6
|
+
static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ViewContextApiModule>;
|
|
7
|
+
constructor(parentModule: ViewContextApiModule, http: HttpClient);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewContextApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ViewContextApiModule, never, never, never>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ViewContextApiModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
+
import { Param } from './param';
|
|
3
|
+
export interface ConfigurationParameters {
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
6
|
+
*/
|
|
7
|
+
apiKeys?: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
username?: string;
|
|
11
|
+
password?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
14
|
+
*/
|
|
15
|
+
accessToken?: string | (() => string);
|
|
16
|
+
basePath?: string;
|
|
17
|
+
withCredentials?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Takes care of encoding query- and form-parameters.
|
|
20
|
+
*/
|
|
21
|
+
encoder?: HttpParameterCodec;
|
|
22
|
+
/**
|
|
23
|
+
* Override the default method for encoding path parameters in various
|
|
24
|
+
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
25
|
+
* <p>
|
|
26
|
+
* See {@link README.md} for more details
|
|
27
|
+
* </p>
|
|
28
|
+
*/
|
|
29
|
+
encodeParam?: (param: Param) => string;
|
|
30
|
+
/**
|
|
31
|
+
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
32
|
+
* document. They should map to the value used for authentication
|
|
33
|
+
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
34
|
+
*/
|
|
35
|
+
credentials?: {
|
|
36
|
+
[key: string]: string | (() => string | undefined);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare class Configuration {
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
42
|
+
*/
|
|
43
|
+
apiKeys?: {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
};
|
|
46
|
+
username?: string;
|
|
47
|
+
password?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated Since 5.0. Use credentials instead
|
|
50
|
+
*/
|
|
51
|
+
accessToken?: string | (() => string);
|
|
52
|
+
basePath?: string;
|
|
53
|
+
withCredentials?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Takes care of encoding query- and form-parameters.
|
|
56
|
+
*/
|
|
57
|
+
encoder?: HttpParameterCodec;
|
|
58
|
+
/**
|
|
59
|
+
* Encoding of various path parameter
|
|
60
|
+
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
61
|
+
* <p>
|
|
62
|
+
* See {@link README.md} for more details
|
|
63
|
+
* </p>
|
|
64
|
+
*/
|
|
65
|
+
encodeParam: (param: Param) => string;
|
|
66
|
+
/**
|
|
67
|
+
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
68
|
+
* document. They should map to the value used for authentication
|
|
69
|
+
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
70
|
+
*/
|
|
71
|
+
credentials: {
|
|
72
|
+
[key: string]: string | (() => string | undefined);
|
|
73
|
+
};
|
|
74
|
+
constructor(configurationParameters?: ConfigurationParameters);
|
|
75
|
+
/**
|
|
76
|
+
* Select the correct content-type to use for a request.
|
|
77
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
78
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
79
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
80
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
81
|
+
*/
|
|
82
|
+
selectHeaderContentType(contentTypes: string[]): string | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Select the correct accept content-type to use for a request.
|
|
85
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
86
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
87
|
+
* @param accepts - the array of content types that are available for selection.
|
|
88
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
89
|
+
*/
|
|
90
|
+
selectHeaderAccept(accepts: string[]): string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Check if the given MIME is a JSON MIME.
|
|
93
|
+
* JSON MIME examples:
|
|
94
|
+
* application/json
|
|
95
|
+
* application/json; charset=UTF8
|
|
96
|
+
* APPLICATION/JSON
|
|
97
|
+
* application/vnd.company+json
|
|
98
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
99
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
100
|
+
*/
|
|
101
|
+
isJsonMime(mime: string): boolean;
|
|
102
|
+
lookupCredential(key: string): string | undefined;
|
|
103
|
+
private defaultEncodeParam;
|
|
104
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
+
/**
|
|
3
|
+
* Custom HttpParameterCodec
|
|
4
|
+
* Workaround for https://github.com/angular/angular/issues/18261
|
|
5
|
+
*/
|
|
6
|
+
export declare class CustomHttpParameterCodec implements HttpParameterCodec {
|
|
7
|
+
encodeKey(k: string): string;
|
|
8
|
+
encodeValue(v: string): string;
|
|
9
|
+
decodeKey(k: string): string;
|
|
10
|
+
decodeValue(v: string): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View API
|
|
3
|
+
* View API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export declare type CloseResult = 'approved' | 'pending' | 'rejected';
|
|
13
|
+
export declare const CloseResult: {
|
|
14
|
+
Approved: CloseResult;
|
|
15
|
+
Pending: CloseResult;
|
|
16
|
+
Rejected: CloseResult;
|
|
17
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View API
|
|
3
|
+
* View API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ValueSetData } from '../../value-api';
|
|
13
|
+
/**
|
|
14
|
+
* The component constraint is responsible for the constraints belong to a given component (textfield, combobox etc.) on the view. The UI must identify the component by the dataName that is a path of the data name separated by dot like dataSheet.field.
|
|
15
|
+
*/
|
|
16
|
+
export interface ComponentConstraint {
|
|
17
|
+
/**
|
|
18
|
+
* The data name to identify the related component or componenets. If it is a path the format is the following - dataSheet.field.
|
|
19
|
+
*/
|
|
20
|
+
dataName?: string;
|
|
21
|
+
visible?: boolean;
|
|
22
|
+
mandatory?: boolean;
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
valueSet?: ValueSetData;
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View API
|
|
3
|
+
* View API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { MessageOption } from './messageOption';
|
|
13
|
+
import { MessageType } from './messageType';
|
|
14
|
+
export interface MessageData {
|
|
15
|
+
/**
|
|
16
|
+
* Unique identifier of the Message.
|
|
17
|
+
*/
|
|
18
|
+
uuid: string;
|
|
19
|
+
/**
|
|
20
|
+
* UUID of the View, showing this message. May be null.
|
|
21
|
+
*/
|
|
22
|
+
viewUuid?: string;
|
|
23
|
+
type: MessageType;
|
|
24
|
+
header?: string;
|
|
25
|
+
text?: string;
|
|
26
|
+
options?: Array<MessageOption>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View API
|
|
3
|
+
* View API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { MessageOptionType } from './messageOptionType';
|
|
13
|
+
export interface MessageOption {
|
|
14
|
+
code: string;
|
|
15
|
+
label: string;
|
|
16
|
+
icon?: string;
|
|
17
|
+
type?: MessageOptionType;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* View API
|
|
3
|
+
* View API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: info@it4all.hu
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export declare type MessageOptionType = 'confirm' | 'reject' | 'cancel';
|
|
13
|
+
export declare const MessageOptionType: {
|
|
14
|
+
Confirm: MessageOptionType;
|
|
15
|
+
Reject: MessageOptionType;
|
|
16
|
+
Cancel: MessageOptionType;
|
|
17
|
+
};
|