@smart-factor/gem-ui-map-component 0.0.16 → 0.0.17
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 +4 -0
- package/dist/{MapButtons-GofPtQ74.js → MapButtons-II1mKZSY.js} +9056 -9044
- package/dist/api/services/generated/api.d.ts +70 -0
- package/dist/components/Map/types.d.ts +1 -1
- package/dist/components/Map/utils.d.ts +2 -1
- package/dist/components/MapButtons/index.js +1 -1
- package/dist/main.js +432 -431
- package/dist/services/Map/MapService.d.ts +2 -3
- package/package.json +2 -1
|
@@ -34,6 +34,58 @@ export interface Envelope {
|
|
|
34
34
|
/** @format double */
|
|
35
35
|
area?: number;
|
|
36
36
|
}
|
|
37
|
+
export interface ErrorResponse {
|
|
38
|
+
userMessage?: string;
|
|
39
|
+
cause?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface LoginWithPasswordParams {
|
|
42
|
+
login: string;
|
|
43
|
+
password: string;
|
|
44
|
+
}
|
|
45
|
+
export interface UserRegion {
|
|
46
|
+
uuid?: string;
|
|
47
|
+
regionSymbol?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface AppUser {
|
|
50
|
+
/** @format int32 */
|
|
51
|
+
id?: number;
|
|
52
|
+
login: string;
|
|
53
|
+
password?: string;
|
|
54
|
+
firstName?: string;
|
|
55
|
+
lastName?: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
email: string;
|
|
58
|
+
phone?: string;
|
|
59
|
+
status?: 'REQ_CONFIRM' | 'ACTIVE' | 'BLOCKED';
|
|
60
|
+
source?: 'GEM' | 'LDAP';
|
|
61
|
+
addres?: string;
|
|
62
|
+
passwordHistory?: string;
|
|
63
|
+
passwordChangeUrl?: string;
|
|
64
|
+
/** @format date-time */
|
|
65
|
+
passwordChangeExpiration?: string;
|
|
66
|
+
/** @format date-time */
|
|
67
|
+
passwordLastChange?: string;
|
|
68
|
+
userRegions?: UserRegion[];
|
|
69
|
+
userMod?: string;
|
|
70
|
+
/** @format date-time */
|
|
71
|
+
dateMod?: string;
|
|
72
|
+
consent?: boolean;
|
|
73
|
+
/** @format date-time */
|
|
74
|
+
consentExpirationDate?: string;
|
|
75
|
+
substitutedUser?: AppUser;
|
|
76
|
+
controllingInspector?: boolean;
|
|
77
|
+
rolesList?: string[];
|
|
78
|
+
userGroups?: number[];
|
|
79
|
+
}
|
|
80
|
+
export interface AuthResult {
|
|
81
|
+
result?: string;
|
|
82
|
+
token?: string;
|
|
83
|
+
userAccount?: AppUser;
|
|
84
|
+
passwordExpired?: boolean;
|
|
85
|
+
}
|
|
86
|
+
export type LoginWithPasswordData = {
|
|
87
|
+
response: AuthResult;
|
|
88
|
+
};
|
|
37
89
|
export interface Geometry {
|
|
38
90
|
envelope?: Geometry;
|
|
39
91
|
factory?: GeometryFactory;
|
|
@@ -488,4 +540,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
488
540
|
*/
|
|
489
541
|
queryRoads: (params?: RequestParams) => Promise<AxiosResponse<QueryRoadsData, any>>;
|
|
490
542
|
};
|
|
543
|
+
user: {
|
|
544
|
+
/**
|
|
545
|
+
* No description
|
|
546
|
+
*
|
|
547
|
+
* @tags /user
|
|
548
|
+
* @name LoginWithPassword
|
|
549
|
+
* @summary Logowanie
|
|
550
|
+
* @request POST:/user/login/password
|
|
551
|
+
* @secure
|
|
552
|
+
* @response `200` `LoginWithPasswordData` OK
|
|
553
|
+
* @response `400` `string` Bad Request
|
|
554
|
+
* @response `403` `ErrorResponse` Forbidden
|
|
555
|
+
* @response `404` `string` Not Found
|
|
556
|
+
* @response `406` `string` Not Acceptable
|
|
557
|
+
* @response `409` `string` Conflict
|
|
558
|
+
*/
|
|
559
|
+
loginWithPassword: (query: LoginWithPasswordParams, params?: RequestParams) => Promise<AxiosResponse<LoginWithPasswordData, any>>;
|
|
560
|
+
};
|
|
491
561
|
}
|
|
@@ -8,12 +8,13 @@ import { Interactions } from './refManager';
|
|
|
8
8
|
import { InfoLayersStructure, MapLayer } from './types';
|
|
9
9
|
export declare const stripPrefix: (id: string | number | undefined, prefix: string) => string | number | undefined;
|
|
10
10
|
export declare const getIsFeatureNonIntractable: (feature: Feature<Geometry>, prefix: string) => boolean;
|
|
11
|
+
export declare const includesPrefix: (id: string | number | undefined, prefix: string) => boolean;
|
|
11
12
|
export declare const deactivateInteractions: (interactions?: Interactions) => void;
|
|
12
13
|
export declare const removeFeatureSafely: (source: VectorSource<Feature<Geometry>>, selectedFeature: Feature<Geometry>) => void;
|
|
13
14
|
export declare const transformToCorrectGeometryType: (value: MapLayer[] | undefined) => {
|
|
14
15
|
geometryType: string;
|
|
15
16
|
name?: string | undefined;
|
|
16
|
-
|
|
17
|
+
layer_symbol?: string | undefined;
|
|
17
18
|
layerId?: number | undefined;
|
|
18
19
|
}[];
|
|
19
20
|
export declare const processHintStructure: (content: InfoLayersStructure) => {
|