@smart-factor/gem-ui-map-component 0.0.1
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 +29 -0
- package/dist/MapButtons-Bsd6BBt9.js +94106 -0
- package/dist/api/mutations/useAssignMapRepresentation.d.ts +10 -0
- package/dist/api/queries/useGetCasesBySearch.d.ts +4 -0
- package/dist/api/queries/useGetMapRepresentation.d.ts +4 -0
- package/dist/api/queries/useGetPRGAddress.d.ts +20 -0
- package/dist/api/queries/useGetPlotBySearch.d.ts +5 -0
- package/dist/api/queryKeys.d.ts +29 -0
- package/dist/api/services/api.d.ts +3 -0
- package/dist/api/services/generated/api.d.ts +461 -0
- package/dist/components/AddressSearch/AddressSearch.d.ts +1 -0
- package/dist/components/AngleOverlay/AngleOverlay.d.ts +6 -0
- package/dist/components/AngleOverlay/AngleOverlay.styles.d.ts +3 -0
- package/dist/components/AngleOverlay/utils.d.ts +3 -0
- package/dist/components/CaseContextualSearch/CaseContextualSearch.d.ts +11 -0
- package/dist/components/CaseContextualSearch/index.d.ts +1 -0
- package/dist/components/CaseContextualSearch/useGetCasesContextual.d.ts +11 -0
- package/dist/components/DrawCreator/DrawCreator.d.ts +9 -0
- package/dist/components/DrawCreator/DrawCreator.styles.d.ts +3 -0
- package/dist/components/Layers/Layers.d.ts +2 -0
- package/dist/components/Layers/Layers.styles.d.ts +8 -0
- package/dist/components/Map/Map.d.ts +3 -0
- package/dist/components/Map/Map.styles.d.ts +29 -0
- package/dist/components/Map/config.d.ts +18 -0
- package/dist/components/Map/refManager.d.ts +65 -0
- package/dist/components/Map/types.d.ts +175 -0
- package/dist/components/Map/utils.d.ts +33 -0
- package/dist/components/MapButtons/MapButtons.d.ts +3 -0
- package/dist/components/MapButtons/index.d.ts +1 -0
- package/dist/components/MapButtons/index.js +4 -0
- package/dist/components/MapPopups/ChooseLayerModal/ChooseLayerModal.d.ts +1 -0
- package/dist/components/MapPopups/ChooseLayerModal/types.d.ts +4 -0
- package/dist/components/MapPopups/ChooseOverlappingGeometryModal/ChooseOverlappingGeometryModal.d.ts +1 -0
- package/dist/components/MapPopups/ChooseOverlappingGeometryModal/types.d.ts +6 -0
- package/dist/components/MapPopups/ConfirmDeleteModal/ConfirmDeleteModal.d.ts +1 -0
- package/dist/components/MapPopups/ConfirmDeleteModal/types.d.ts +4 -0
- package/dist/components/MapPopups/ConfirmDrawingModal/ConfirmDrawingModal.d.ts +1 -0
- package/dist/components/MapPopups/ConfirmDrawingModal/types.d.ts +4 -0
- package/dist/components/MapPopups/LayersInfoDrawer/LayersInfoDrawer.d.ts +1 -0
- package/dist/components/MapPopups/LayersInfoDrawer/types.d.ts +4 -0
- package/dist/components/MapPopups/MapPopups.d.ts +2 -0
- package/dist/components/MapPopups/styles.d.ts +13 -0
- package/dist/components/MapRepresentationSearch/MapRepresentationSearch.d.ts +1 -0
- package/dist/components/MapSidebar/MapSidebar.d.ts +2 -0
- package/dist/components/MapSidebar/MapSidebar.style.d.ts +20 -0
- package/dist/components/MapSidebar/index.d.ts +1 -0
- package/dist/components/Navigation/Navigation.d.ts +2 -0
- package/dist/components/Navigation/Navigation.styles.d.ts +3 -0
- package/dist/components/Navigation/NavigationContext.d.ts +29 -0
- package/dist/components/Navigation/RoadInputs.d.ts +1 -0
- package/dist/components/PlotSearch/PlotSearch.d.ts +1 -0
- package/dist/components/QueryClientProvider/QueryClientProvider.d.ts +6 -0
- package/dist/components/SnapConfigBar/SnapConfigBar.d.ts +1 -0
- package/dist/components/SnapConfigBar/SnapConfigBar.styles.d.ts +8 -0
- package/dist/constants/geometryTypes.d.ts +14 -0
- package/dist/constants/snapInteractionsTypes.d.ts +7 -0
- package/dist/constants/snapTypes.d.ts +5 -0
- package/dist/constants/style.d.ts +2 -0
- package/dist/contexts/MapInteractionsContext/MapInteractionsContextProvider.d.ts +6 -0
- package/dist/contexts/MapInteractionsContext/index.d.ts +2 -0
- package/dist/contexts/MapInteractionsContext/types.d.ts +41 -0
- package/dist/contexts/MapInteractionsContext/useMapInteractionsContext.d.ts +3 -0
- package/dist/contexts/MapOverlaysAndPopupsContext.d.ts +19 -0
- package/dist/contexts/MapPopupContext/MapPopupContext.d.ts +8 -0
- package/dist/contexts/MapPopupContext/types.d.ts +20 -0
- package/dist/helpers.d.ts +2 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useDelayedOpenAndClose.d.ts +1 -0
- package/dist/hooks/useMapGeolocation.d.ts +2 -0
- package/dist/hooks/useSetupMap.d.ts +3 -0
- package/dist/hooks/useTimeoutDebounce.d.ts +4 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.js +11363 -0
- package/dist/providers/GemUIMapComponentProvider.d.ts +4 -0
- package/dist/services/EventEmitter.d.ts +7 -0
- package/dist/services/Layers/LayersService.d.ts +34 -0
- package/dist/services/Map/MapService.d.ts +70 -0
- package/dist/services/Map/types.d.ts +96 -0
- package/dist/services/Navigation/NavigationService.d.ts +12 -0
- package/dist/snap/helpers.d.ts +7 -0
- package/dist/snap/snap.d.ts +12 -0
- package/dist/snap/types.d.ts +49 -0
- package/package.json +107 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
2
|
+
import { AssignExistingMapRepresentationData } from '../services/generated/api';
|
|
3
|
+
interface Variables {
|
|
4
|
+
payload: {
|
|
5
|
+
id: number;
|
|
6
|
+
mapRepresentationId: number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
declare const useAssignMapRepresentation: (mutationOptions?: MutationOptions<AssignExistingMapRepresentationData, Error, Variables, MutationOptions>) => UseMutationResult<AssignExistingMapRepresentationData, Error, Variables, MutationOptions>;
|
|
10
|
+
export default useAssignMapRepresentation;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { PageCaseDTO, RequestParams, Search3Params } from '../services/generated/api';
|
|
3
|
+
declare const useGetCasesBySearch: (query: Search3Params, options?: Omit<UseQueryOptions<PageCaseDTO, Error, PageCaseDTO>, 'queryKey' | 'queryFn'>, params?: RequestParams) => import('@tanstack/react-query').UseQueryResult<PageCaseDTO, Error>;
|
|
4
|
+
export default useGetCasesBySearch;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import { MapRepresentationDTO, QueryMapRepresentationsByCaseNumberParams, RequestParams } from '../services/generated/api';
|
|
3
|
+
declare const useGetMapRepresentation: (query: QueryMapRepresentationsByCaseNumberParams, options?: Omit<UseQueryOptions<MapRepresentationDTO[], Error, MapRepresentationDTO[]>, 'queryKey' | 'queryFn'>, params?: RequestParams) => import('@tanstack/react-query').UseQueryResult<MapRepresentationDTO[], Error>;
|
|
4
|
+
export default useGetMapRepresentation;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Coordinate } from 'ol/coordinate';
|
|
2
|
+
import { CorrectGeometryType } from '../../components/Map/types';
|
|
3
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
4
|
+
import { RequestParams } from '../services/generated/api';
|
|
5
|
+
export interface PrgAddressResponse {
|
|
6
|
+
city: string;
|
|
7
|
+
street: string;
|
|
8
|
+
status: string;
|
|
9
|
+
geometry: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
type: CorrectGeometryType;
|
|
13
|
+
coordinates: Coordinate;
|
|
14
|
+
};
|
|
15
|
+
ordinal_number: string;
|
|
16
|
+
postal_code: string;
|
|
17
|
+
part_of_city: string;
|
|
18
|
+
}
|
|
19
|
+
declare const useGetPRGAddress: (search: string, options?: Omit<UseQueryOptions<PrgAddressResponse[], Error, PrgAddressResponse[]>, 'queryKey' | 'queryFn'>, params?: RequestParams) => import('@tanstack/react-query').UseQueryResult<PrgAddressResponse[], Error>;
|
|
20
|
+
export default useGetPRGAddress;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GugikGeometryResponse } from '../../components/Map/types';
|
|
2
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
3
|
+
import { RequestParams } from '../services/generated/api';
|
|
4
|
+
declare const useGetPlotBySearch: (search: string, options?: Omit<UseQueryOptions<GugikGeometryResponse, Error, GugikGeometryResponse>, 'queryKey' | 'queryFn'>, params?: RequestParams) => import('@tanstack/react-query').UseQueryResult<GugikGeometryResponse, Error>;
|
|
5
|
+
export default useGetPlotBySearch;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const QueryKeys: {
|
|
2
|
+
applications: string;
|
|
3
|
+
attachments: string;
|
|
4
|
+
attachmentsTypes: string;
|
|
5
|
+
cases: string;
|
|
6
|
+
caseObjects: string;
|
|
7
|
+
caseTypes: string;
|
|
8
|
+
charges: string;
|
|
9
|
+
clients: string;
|
|
10
|
+
clientsOrganization: string;
|
|
11
|
+
clientsIndividual: string;
|
|
12
|
+
decisions: string;
|
|
13
|
+
numberingPatterns: string;
|
|
14
|
+
occupationPurposes: string;
|
|
15
|
+
occupationPurposesLayers: string;
|
|
16
|
+
inspectors: string;
|
|
17
|
+
cities: string;
|
|
18
|
+
streets: string;
|
|
19
|
+
streetNumbers: string;
|
|
20
|
+
address: string;
|
|
21
|
+
rates: string;
|
|
22
|
+
prgAddress: string;
|
|
23
|
+
documents: string;
|
|
24
|
+
documentTypes: string;
|
|
25
|
+
documentTemplates: string;
|
|
26
|
+
mapRepresentation: string;
|
|
27
|
+
plots: string;
|
|
28
|
+
};
|
|
29
|
+
export default QueryKeys;
|
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
|
|
2
|
+
export interface Coordinate {
|
|
3
|
+
/** @format double */
|
|
4
|
+
x?: number;
|
|
5
|
+
/** @format double */
|
|
6
|
+
y?: number;
|
|
7
|
+
/** @format double */
|
|
8
|
+
z?: number;
|
|
9
|
+
coordinate?: Coordinate;
|
|
10
|
+
/** @format double */
|
|
11
|
+
m?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface CoordinateSequence {
|
|
14
|
+
/** @format int32 */
|
|
15
|
+
dimension?: number;
|
|
16
|
+
/** @format int32 */
|
|
17
|
+
measures?: number;
|
|
18
|
+
}
|
|
19
|
+
export type CoordinateSequenceFactory = object;
|
|
20
|
+
export interface Envelope {
|
|
21
|
+
null?: boolean;
|
|
22
|
+
/** @format double */
|
|
23
|
+
minX?: number;
|
|
24
|
+
/** @format double */
|
|
25
|
+
maxX?: number;
|
|
26
|
+
/** @format double */
|
|
27
|
+
minY?: number;
|
|
28
|
+
/** @format double */
|
|
29
|
+
maxY?: number;
|
|
30
|
+
/** @format double */
|
|
31
|
+
height?: number;
|
|
32
|
+
/** @format double */
|
|
33
|
+
width?: number;
|
|
34
|
+
/** @format double */
|
|
35
|
+
area?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface Geometry {
|
|
38
|
+
envelope?: Geometry;
|
|
39
|
+
factory?: GeometryFactory;
|
|
40
|
+
userData?: object;
|
|
41
|
+
/** @format double */
|
|
42
|
+
length?: number;
|
|
43
|
+
empty?: boolean;
|
|
44
|
+
valid?: boolean;
|
|
45
|
+
/** @format int32 */
|
|
46
|
+
dimension?: number;
|
|
47
|
+
/** @format int32 */
|
|
48
|
+
boundaryDimension?: number;
|
|
49
|
+
/** @format int32 */
|
|
50
|
+
srid?: number;
|
|
51
|
+
geometryType?: string;
|
|
52
|
+
rectangle?: boolean;
|
|
53
|
+
boundary?: Geometry;
|
|
54
|
+
envelopeInternal?: Envelope;
|
|
55
|
+
centroid?: Point;
|
|
56
|
+
interiorPoint?: Point;
|
|
57
|
+
/** @format int32 */
|
|
58
|
+
numGeometries?: number;
|
|
59
|
+
coordinates?: Coordinate[];
|
|
60
|
+
coordinate?: Coordinate;
|
|
61
|
+
simple?: boolean;
|
|
62
|
+
precisionModel?: PrecisionModel;
|
|
63
|
+
/** @format double */
|
|
64
|
+
area?: number;
|
|
65
|
+
/** @format int32 */
|
|
66
|
+
numPoints?: number;
|
|
67
|
+
}
|
|
68
|
+
export interface GeometryFactory {
|
|
69
|
+
precisionModel?: PrecisionModel;
|
|
70
|
+
coordinateSequenceFactory?: CoordinateSequenceFactory;
|
|
71
|
+
/** @format int32 */
|
|
72
|
+
srid?: number;
|
|
73
|
+
}
|
|
74
|
+
/** Nowa reprezentacja polączona z objektem sprawy */
|
|
75
|
+
export interface MapRepresentationCreateDTO {
|
|
76
|
+
geometries: MapRepresentationCreateSingleDTO[];
|
|
77
|
+
/** @format int32 */
|
|
78
|
+
layerId: number;
|
|
79
|
+
}
|
|
80
|
+
export interface MapRepresentationCreateSingleDTO {
|
|
81
|
+
/** @format int32 */
|
|
82
|
+
id?: number;
|
|
83
|
+
geometry: Geometry;
|
|
84
|
+
}
|
|
85
|
+
export interface Point {
|
|
86
|
+
envelope?: Geometry;
|
|
87
|
+
factory?: GeometryFactory;
|
|
88
|
+
userData?: object;
|
|
89
|
+
coordinates?: Coordinate[];
|
|
90
|
+
empty?: boolean;
|
|
91
|
+
/** @format int32 */
|
|
92
|
+
dimension?: number;
|
|
93
|
+
/** @format int32 */
|
|
94
|
+
boundaryDimension?: number;
|
|
95
|
+
geometryType?: string;
|
|
96
|
+
boundary?: Geometry;
|
|
97
|
+
coordinateSequence?: CoordinateSequence;
|
|
98
|
+
coordinate?: Coordinate;
|
|
99
|
+
simple?: boolean;
|
|
100
|
+
/** @format double */
|
|
101
|
+
x?: number;
|
|
102
|
+
/** @format double */
|
|
103
|
+
y?: number;
|
|
104
|
+
/** @format int32 */
|
|
105
|
+
numPoints?: number;
|
|
106
|
+
/** @format double */
|
|
107
|
+
length?: number;
|
|
108
|
+
valid?: boolean;
|
|
109
|
+
/** @format int32 */
|
|
110
|
+
srid?: number;
|
|
111
|
+
rectangle?: boolean;
|
|
112
|
+
envelopeInternal?: Envelope;
|
|
113
|
+
centroid?: Point;
|
|
114
|
+
interiorPoint?: Point;
|
|
115
|
+
/** @format int32 */
|
|
116
|
+
numGeometries?: number;
|
|
117
|
+
precisionModel?: PrecisionModel;
|
|
118
|
+
/** @format double */
|
|
119
|
+
area?: number;
|
|
120
|
+
}
|
|
121
|
+
export interface PrecisionModel {
|
|
122
|
+
/** @format double */
|
|
123
|
+
scale?: number;
|
|
124
|
+
type?: Type;
|
|
125
|
+
floating?: boolean;
|
|
126
|
+
/** @format int32 */
|
|
127
|
+
maximumSignificantDigits?: number;
|
|
128
|
+
/** @format double */
|
|
129
|
+
offsetX?: number;
|
|
130
|
+
/** @format double */
|
|
131
|
+
offsetY?: number;
|
|
132
|
+
}
|
|
133
|
+
export type Type = object;
|
|
134
|
+
export interface Pageable {
|
|
135
|
+
/**
|
|
136
|
+
* @format int32
|
|
137
|
+
* @min 0
|
|
138
|
+
*/
|
|
139
|
+
page?: number;
|
|
140
|
+
/**
|
|
141
|
+
* @format int32
|
|
142
|
+
* @min 1
|
|
143
|
+
*/
|
|
144
|
+
size?: number;
|
|
145
|
+
sort?: string[];
|
|
146
|
+
}
|
|
147
|
+
export interface PageableObject {
|
|
148
|
+
/** @format int64 */
|
|
149
|
+
offset?: number;
|
|
150
|
+
sort?: SortObject;
|
|
151
|
+
/** @format int32 */
|
|
152
|
+
pageNumber?: number;
|
|
153
|
+
/** @format int32 */
|
|
154
|
+
pageSize?: number;
|
|
155
|
+
unpaged?: boolean;
|
|
156
|
+
paged?: boolean;
|
|
157
|
+
}
|
|
158
|
+
export interface SortObject {
|
|
159
|
+
sorted?: boolean;
|
|
160
|
+
unsorted?: boolean;
|
|
161
|
+
empty?: boolean;
|
|
162
|
+
}
|
|
163
|
+
export interface CaseAndCaseObjectInfoDTO {
|
|
164
|
+
/** @format int32 */
|
|
165
|
+
caseObjectId?: number;
|
|
166
|
+
caseNumber?: string;
|
|
167
|
+
caseObjectName?: string;
|
|
168
|
+
}
|
|
169
|
+
export interface MapRepresentationDTO {
|
|
170
|
+
/** @format int32 */
|
|
171
|
+
id?: number;
|
|
172
|
+
geometry?: Geometry;
|
|
173
|
+
main?: boolean;
|
|
174
|
+
/** @format int32 */
|
|
175
|
+
layerId?: number;
|
|
176
|
+
relatedCaseObjects?: CaseAndCaseObjectInfoDTO[];
|
|
177
|
+
}
|
|
178
|
+
export interface InspectorDTO {
|
|
179
|
+
/** @format int32 */
|
|
180
|
+
id?: number;
|
|
181
|
+
phone?: string;
|
|
182
|
+
firstName?: string;
|
|
183
|
+
lastName?: string;
|
|
184
|
+
}
|
|
185
|
+
export interface DecisionSimpleDTO {
|
|
186
|
+
/** @format int32 */
|
|
187
|
+
id?: number;
|
|
188
|
+
number?: string;
|
|
189
|
+
}
|
|
190
|
+
export interface CaseSearchCriteria {
|
|
191
|
+
/**
|
|
192
|
+
* filter all fields by general search text
|
|
193
|
+
* @minLength 3
|
|
194
|
+
* @maxLength 2147483647
|
|
195
|
+
*/
|
|
196
|
+
generalSearchText?: string;
|
|
197
|
+
filter?: string;
|
|
198
|
+
}
|
|
199
|
+
export interface DecisionCaseBreadcrumbDTO {
|
|
200
|
+
/** @format int32 */
|
|
201
|
+
decisionId?: number;
|
|
202
|
+
decisionNumber?: string;
|
|
203
|
+
/** @format int32 */
|
|
204
|
+
caseId?: number;
|
|
205
|
+
caseNumber?: string;
|
|
206
|
+
/** @format int32 */
|
|
207
|
+
mainApplicationId?: number;
|
|
208
|
+
mainApplicationNumber?: string;
|
|
209
|
+
}
|
|
210
|
+
export interface ClientSimpleDTO {
|
|
211
|
+
/** @format int32 */
|
|
212
|
+
id?: number;
|
|
213
|
+
nip?: string;
|
|
214
|
+
pesel?: string;
|
|
215
|
+
city?: string;
|
|
216
|
+
street?: string;
|
|
217
|
+
email?: string;
|
|
218
|
+
organizationName?: string;
|
|
219
|
+
firstName?: string;
|
|
220
|
+
lastName?: string;
|
|
221
|
+
streetNo?: string;
|
|
222
|
+
apartmentNo?: string;
|
|
223
|
+
zipCode?: string;
|
|
224
|
+
phoneNo?: string;
|
|
225
|
+
stakeholderType?: 'AGENT' | 'EXECUTOR' | 'INVESTOR' | 'RESPONSIBLE_PERSON' | 'CONSTRUCTION_MANAGER' | 'SUPERVISION_INSPECTOR' | 'OWNER' | 'COOWNER' | 'SPOUSE' | 'TO_MESSAGE' | 'PARTY_ORGANIZE';
|
|
226
|
+
}
|
|
227
|
+
export interface CaseDTO {
|
|
228
|
+
/** @format int32 */
|
|
229
|
+
id?: number;
|
|
230
|
+
number?: string;
|
|
231
|
+
type?: string;
|
|
232
|
+
status?: 'NEW' | 'IN_PROGRESS' | 'COMPLETED' | 'RESUMED';
|
|
233
|
+
inspector?: InspectorDTO;
|
|
234
|
+
street?: string;
|
|
235
|
+
comment?: string;
|
|
236
|
+
exportData?: Record<string, object>;
|
|
237
|
+
jrwa?: string;
|
|
238
|
+
inspectorDisplayName?: string;
|
|
239
|
+
inspectorInitials?: string;
|
|
240
|
+
inspectorPhone?: string;
|
|
241
|
+
controllingInspectorDisplayName?: string;
|
|
242
|
+
controllingInspectorInitials?: string;
|
|
243
|
+
controllingInspectorPhone?: string;
|
|
244
|
+
/** @format int32 */
|
|
245
|
+
typeId?: number;
|
|
246
|
+
/** @format int32 */
|
|
247
|
+
inspectorId?: number;
|
|
248
|
+
/** @format int32 */
|
|
249
|
+
controllingInspectorId?: number;
|
|
250
|
+
controllingInspector?: InspectorDTO;
|
|
251
|
+
/** @format date-time */
|
|
252
|
+
occupationFrom?: string;
|
|
253
|
+
/** @format date-time */
|
|
254
|
+
occupationTo?: string;
|
|
255
|
+
/** @format date-time */
|
|
256
|
+
startDate?: string;
|
|
257
|
+
/** @format date-time */
|
|
258
|
+
endDate?: string;
|
|
259
|
+
/** @format date-time */
|
|
260
|
+
responseDeadline?: string;
|
|
261
|
+
caseBreadcrumb?: DecisionCaseBreadcrumbDTO;
|
|
262
|
+
/** @uniqueItems true */
|
|
263
|
+
stakeholders?: ClientSimpleDTO[];
|
|
264
|
+
/** @uniqueItems true */
|
|
265
|
+
decisions?: DecisionSimpleDTO[];
|
|
266
|
+
/** @uniqueItems true */
|
|
267
|
+
attachmentIds?: number[];
|
|
268
|
+
}
|
|
269
|
+
export interface PageCaseDTO {
|
|
270
|
+
/** @format int64 */
|
|
271
|
+
totalElements?: number;
|
|
272
|
+
/** @format int32 */
|
|
273
|
+
totalPages?: number;
|
|
274
|
+
/** @format int32 */
|
|
275
|
+
size?: number;
|
|
276
|
+
content?: CaseDTO[];
|
|
277
|
+
/** @format int32 */
|
|
278
|
+
number?: number;
|
|
279
|
+
sort?: SortObject;
|
|
280
|
+
pageable?: PageableObject;
|
|
281
|
+
first?: boolean;
|
|
282
|
+
last?: boolean;
|
|
283
|
+
/** @format int32 */
|
|
284
|
+
numberOfElements?: number;
|
|
285
|
+
empty?: boolean;
|
|
286
|
+
}
|
|
287
|
+
export type UpdateMapRepresentationData = any;
|
|
288
|
+
export type DeleteMapRepresentationData = any;
|
|
289
|
+
export type QueryMapRepresentationsByCaseObjectIdData = {
|
|
290
|
+
response: MapRepresentationDTO[];
|
|
291
|
+
};
|
|
292
|
+
export type AddMapRepresentationData = any;
|
|
293
|
+
export type AssignExistingMapRepresentationData = any;
|
|
294
|
+
export interface QueryMapRepresentationsByCaseNumberParams {
|
|
295
|
+
/** Numer sprawy, wyszukanie */
|
|
296
|
+
caseNumber: string;
|
|
297
|
+
}
|
|
298
|
+
export type QueryMapRepresentationsByCaseNumberData = {
|
|
299
|
+
response: MapRepresentationDTO[];
|
|
300
|
+
};
|
|
301
|
+
export interface Search3Params extends CaseSearchCriteria, Pageable {
|
|
302
|
+
/** Kryteria wyszukiwania */
|
|
303
|
+
mine?: boolean;
|
|
304
|
+
}
|
|
305
|
+
export type Search3Data = {
|
|
306
|
+
response: PageCaseDTO;
|
|
307
|
+
};
|
|
308
|
+
export type QueryParamsType = Record<string | number, any>;
|
|
309
|
+
export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
|
|
310
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
311
|
+
secure?: boolean;
|
|
312
|
+
/** request path */
|
|
313
|
+
path: string;
|
|
314
|
+
/** content type of request body */
|
|
315
|
+
type?: ContentType;
|
|
316
|
+
/** query params */
|
|
317
|
+
query?: QueryParamsType;
|
|
318
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
319
|
+
format?: ResponseType;
|
|
320
|
+
/** request body */
|
|
321
|
+
body?: unknown;
|
|
322
|
+
}
|
|
323
|
+
export type RequestParams = Omit<FullRequestParams, 'body' | 'method' | 'query' | 'path'>;
|
|
324
|
+
export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, 'data' | 'cancelToken'> {
|
|
325
|
+
securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
326
|
+
secure?: boolean;
|
|
327
|
+
format?: ResponseType;
|
|
328
|
+
}
|
|
329
|
+
export declare enum ContentType {
|
|
330
|
+
Json = "application/json",
|
|
331
|
+
FormData = "multipart/form-data",
|
|
332
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
333
|
+
Text = "text/plain"
|
|
334
|
+
}
|
|
335
|
+
export declare class HttpClient<SecurityDataType = unknown> {
|
|
336
|
+
instance: AxiosInstance;
|
|
337
|
+
private securityData;
|
|
338
|
+
private securityWorker?;
|
|
339
|
+
private secure?;
|
|
340
|
+
private format?;
|
|
341
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
|
|
342
|
+
setSecurityData: (data: SecurityDataType | null) => void;
|
|
343
|
+
protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
|
|
344
|
+
protected stringifyFormItem(formItem: unknown): string;
|
|
345
|
+
protected createFormData(input: Record<string, unknown>): FormData;
|
|
346
|
+
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* @title SmartGem API
|
|
350
|
+
* @version dev
|
|
351
|
+
* @baseUrl /api
|
|
352
|
+
*/
|
|
353
|
+
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
354
|
+
rloV2: {
|
|
355
|
+
/**
|
|
356
|
+
* No description
|
|
357
|
+
*
|
|
358
|
+
* @tags rlo-v2/case-objects/{id}/map-representation
|
|
359
|
+
* @name UpdateMapRepresentation
|
|
360
|
+
* @summary Edycja reprezentacji na mapie
|
|
361
|
+
* @request PUT:/rlo-v2/case-objects/{id}/map-representation/{mapRepresentationId}
|
|
362
|
+
* @secure
|
|
363
|
+
* @response `201` `UpdateMapRepresentationData` Created
|
|
364
|
+
* @response `400` `string` Bad Request
|
|
365
|
+
* @response `404` `string` Not Found
|
|
366
|
+
* @response `406` `string` Not Acceptable
|
|
367
|
+
* @response `409` `string` Conflict
|
|
368
|
+
*/
|
|
369
|
+
updateMapRepresentation: (id: number, mapRepresentationId: number, data: MapRepresentationCreateDTO, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
370
|
+
/**
|
|
371
|
+
* No description
|
|
372
|
+
*
|
|
373
|
+
* @tags rlo-v2/case-objects/{id}/map-representation
|
|
374
|
+
* @name DeleteMapRepresentation
|
|
375
|
+
* @summary Usuwa powiązanie reprezentacji na mapie z objektem sprawy
|
|
376
|
+
* @request DELETE:/rlo-v2/case-objects/{id}/map-representation/{mapRepresentationId}
|
|
377
|
+
* @secure
|
|
378
|
+
* @response `201` `DeleteMapRepresentationData` Created
|
|
379
|
+
* @response `400` `string` Bad Request
|
|
380
|
+
* @response `404` `string` Not Found
|
|
381
|
+
* @response `406` `string` Not Acceptable
|
|
382
|
+
* @response `409` `string` Conflict
|
|
383
|
+
*/
|
|
384
|
+
deleteMapRepresentation: (id: number, mapRepresentationId: number, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
385
|
+
/**
|
|
386
|
+
* No description
|
|
387
|
+
*
|
|
388
|
+
* @tags rlo-v2/case-objects/{id}/map-representation
|
|
389
|
+
* @name QueryMapRepresentationsByCaseObjectId
|
|
390
|
+
* @summary Pobiera reprezentację na mapie oraz zależne od tej reprezentacji po id objektu sprawy
|
|
391
|
+
* @request GET:/rlo-v2/case-objects/{id}/map-representation
|
|
392
|
+
* @secure
|
|
393
|
+
* @response `200` `QueryMapRepresentationsByCaseObjectIdData` OK
|
|
394
|
+
* @response `400` `string` Bad Request
|
|
395
|
+
* @response `404` `string` Not Found
|
|
396
|
+
* @response `406` `string` Not Acceptable
|
|
397
|
+
* @response `409` `string` Conflict
|
|
398
|
+
*/
|
|
399
|
+
queryMapRepresentationsByCaseObjectId: (id: number, params?: RequestParams) => Promise<AxiosResponse<QueryMapRepresentationsByCaseObjectIdData, any>>;
|
|
400
|
+
/**
|
|
401
|
+
* No description
|
|
402
|
+
*
|
|
403
|
+
* @tags rlo-v2/case-objects/{id}/map-representation
|
|
404
|
+
* @name AddMapRepresentation
|
|
405
|
+
* @summary Dodaje nową reprezentację na mapie
|
|
406
|
+
* @request POST:/rlo-v2/case-objects/{id}/map-representation
|
|
407
|
+
* @secure
|
|
408
|
+
* @response `201` `AddMapRepresentationData` Created
|
|
409
|
+
* @response `400` `string` Bad Request
|
|
410
|
+
* @response `404` `string` Not Found
|
|
411
|
+
* @response `406` `string` Not Acceptable
|
|
412
|
+
* @response `409` `string` Conflict
|
|
413
|
+
*/
|
|
414
|
+
addMapRepresentation: (id: number, data: MapRepresentationCreateDTO, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
415
|
+
/**
|
|
416
|
+
* No description
|
|
417
|
+
*
|
|
418
|
+
* @tags rlo-v2/case-objects/{id}/map-representation
|
|
419
|
+
* @name AssignExistingMapRepresentation
|
|
420
|
+
* @summary Przypisuje istniejącą reprezentację na mapie do objektu sprawy
|
|
421
|
+
* @request POST:/rlo-v2/case-objects/{id}/map-representation/{mapRepresentationId}/assign
|
|
422
|
+
* @secure
|
|
423
|
+
* @response `201` `AssignExistingMapRepresentationData` Created
|
|
424
|
+
* @response `400` `string` Bad Request
|
|
425
|
+
* @response `404` `string` Not Found
|
|
426
|
+
* @response `406` `string` Not Acceptable
|
|
427
|
+
* @response `409` `string` Conflict
|
|
428
|
+
*/
|
|
429
|
+
assignExistingMapRepresentation: (id: number, mapRepresentationId: number, params?: RequestParams) => Promise<AxiosResponse<any, any>>;
|
|
430
|
+
/**
|
|
431
|
+
* No description
|
|
432
|
+
*
|
|
433
|
+
* @tags rlo-v2/map-representation
|
|
434
|
+
* @name QueryMapRepresentationsByCaseNumber
|
|
435
|
+
* @summary Pobiera reprezentację na mapie po numerze sprawy
|
|
436
|
+
* @request GET:/rlo-v2/map-representation/cases
|
|
437
|
+
* @secure
|
|
438
|
+
* @response `200` `QueryMapRepresentationsByCaseNumberData` OK
|
|
439
|
+
* @response `400` `string` Bad Request
|
|
440
|
+
* @response `404` `string` Not Found
|
|
441
|
+
* @response `406` `string` Not Acceptable
|
|
442
|
+
* @response `409` `string` Conflict
|
|
443
|
+
*/
|
|
444
|
+
queryMapRepresentationsByCaseNumber: (query: QueryMapRepresentationsByCaseNumberParams, params?: RequestParams) => Promise<AxiosResponse<QueryMapRepresentationsByCaseNumberData, any>>;
|
|
445
|
+
/**
|
|
446
|
+
* No description
|
|
447
|
+
*
|
|
448
|
+
* @tags rlo-v2/cases
|
|
449
|
+
* @name Search3
|
|
450
|
+
* @summary Wyszukuje sprawy po zadanych kryteriach
|
|
451
|
+
* @request GET:/rlo-v2/cases/search
|
|
452
|
+
* @secure
|
|
453
|
+
* @response `200` `Search3Data` OK
|
|
454
|
+
* @response `400` `string` Bad Request
|
|
455
|
+
* @response `404` `string` Not Found
|
|
456
|
+
* @response `406` `string` Not Acceptable
|
|
457
|
+
* @response `409` `string` Conflict
|
|
458
|
+
*/
|
|
459
|
+
search3: (query: Search3Params, params?: RequestParams) => Promise<AxiosResponse<Search3Data, any>>;
|
|
460
|
+
};
|
|
461
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AddressSearch(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const TooltipContainer: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@smart-factor/gem-ui-components').Theme> & {
|
|
2
|
+
hidden: boolean;
|
|
3
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
interface CaseContextualSearch<T extends FieldValues> {
|
|
3
|
+
control: Control<T>;
|
|
4
|
+
name: Path<T>;
|
|
5
|
+
label: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
disabledFetch?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function CaseContextualSearch<T extends FieldValues>(props: CaseContextualSearch<T>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CaseContextualSearch } from './CaseContextualSearch';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CaseDTO } from '../../api/services/generated/api';
|
|
2
|
+
interface UseGetCasesContextualProps {
|
|
3
|
+
disabledFetch?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const useGetCasesContextual: (props: UseGetCasesContextualProps) => {
|
|
6
|
+
options: CaseDTO[];
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
onGeneralSearchTextChange: (_: unknown, value: string) => void;
|
|
9
|
+
onLastOptionInView: () => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface DrawCreatorProps {
|
|
2
|
+
addDrawCreatorPoint: (point: {
|
|
3
|
+
angle: number;
|
|
4
|
+
length: number;
|
|
5
|
+
}) => void;
|
|
6
|
+
onDrawEnd: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const DrawCreator: ({ addDrawCreatorPoint, onDrawEnd }: DrawCreatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default DrawCreator;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const Container: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const LayersInnerContainer: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
export declare const LoaderContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const MapViewContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
4
|
+
export declare const MapContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
7
|
+
export declare const MapWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
10
|
+
export declare const ButtonsContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
12
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
13
|
+
export declare const DistanceOverlay: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
16
|
+
hidden: boolean;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export declare const ButtonWithIconWhite: import('@emotion/styled').StyledComponent<import('@smart-factor/gem-ui-components/dist/components/ButtonWithIcon/ButtonWithIcon').ButtonWithIconProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
19
|
+
export declare const DeleteButtonIcon: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
21
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
22
|
+
export declare const ToggleButtonWithIcon: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
23
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
24
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
export declare const StyledButtonWithIcon: import('@emotion/styled').StyledComponent<import('@smart-factor/gem-ui-components/dist/components/ButtonWithIcon/ButtonWithIcon').ButtonWithIconProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
}, {}, {}>;
|