@jrojaspin/security-map-api-cli 1.8.0 → 2.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/package.json +3 -3
- package/src/apis/AccountApi.ts +56 -46
- package/src/apis/ArticleApi.ts +10 -6
- package/src/apis/HealthcheckApi.ts +4 -0
- package/src/apis/ItemApi.ts +359 -66
- package/src/apis/JournalApi.ts +40 -25
- package/src/apis/LocationApi.ts +61 -14
- package/src/apis/LoginApi.ts +86 -10
- package/src/apis/MapApi.ts +74 -75
- package/src/apis/MultimediaApi.ts +18 -6
- package/src/apis/OrganizationApi.ts +269 -0
- package/src/apis/ReportApi.ts +49 -23
- package/src/apis/SearchApi.ts +38 -10
- package/src/apis/SourceApi.ts +25 -17
- package/src/apis/StateMachineApi.ts +10 -6
- package/src/apis/index.ts +1 -1
- package/src/models/{Def1.ts → AccountORM.ts} +13 -21
- package/src/models/AccountOutput.ts +74 -0
- package/src/models/AddUserToOrganizationDto.ts +74 -0
- package/src/models/{Def4.ts → ArticleORM.ts} +26 -31
- package/src/models/ArticlePresentationORM.ts +83 -0
- package/src/models/ArticleTypeORM.ts +74 -0
- package/src/models/AutoCompleteORM.ts +98 -0
- package/src/models/AvailableArticlesDto.ts +138 -0
- package/src/models/AvailableArticlesOutput.ts +74 -0
- package/src/models/AxisTitle.ts +75 -0
- package/src/models/ChartConfiguration.ts +99 -0
- package/src/models/ChartData.ts +74 -0
- package/src/models/ChartDataset.ts +131 -0
- package/src/models/ChartLegend.ts +79 -0
- package/src/models/ChartOptions.ts +99 -0
- package/src/models/ChartPlugins.ts +90 -0
- package/src/models/ChartScales.ts +90 -0
- package/src/models/ChartTitle.ts +75 -0
- package/src/models/DataPoint.ts +75 -0
- package/src/models/ItemLayerLinkInputDto.ts +66 -0
- package/src/models/ItemLinkToLayerOutput.ts +66 -0
- package/src/models/ItemTypeFormDto.ts +106 -0
- package/src/models/ItemTypeFormOutput.ts +74 -0
- package/src/models/{Def16.ts → ItemTypeORM.ts} +19 -38
- package/src/models/ItemTypeOutput.ts +74 -0
- package/src/models/ItemsOutput.ts +74 -0
- package/src/models/JournalBookORM.ts +84 -0
- package/src/models/JournalEntryArticleORM.ts +110 -0
- package/src/models/JournalEntryListOutput.ts +74 -0
- package/src/models/JournalEntryMultimediaInput.ts +66 -0
- package/src/models/JournalEntryMultimediaORM.ts +83 -0
- package/src/models/JournalEntryMultimediaOutput.ts +66 -0
- package/src/models/{Def18.ts → JournalEntryORM.ts} +25 -23
- package/src/models/JournalEntryOutput.ts +74 -0
- package/src/models/JournalEntryOutputDto.ts +75 -0
- package/src/models/LegendPosition.ts +55 -0
- package/src/models/LocationORM.ts +218 -0
- package/src/models/LocationOutput.ts +74 -0
- package/src/models/MagnitudeORM.ts +74 -0
- package/src/models/ManualLoginInput.ts +75 -0
- package/src/models/ManualLoginPasswordUpdateInput.ts +75 -0
- package/src/models/{Def43.ts → ManualRegisterInput.ts} +14 -14
- package/src/models/MapItemArticleInputDto.ts +109 -0
- package/src/models/MapItemArticleORM.ts +110 -0
- package/src/models/{Def14.ts → MapItemCustomFieldDefinitionORM.ts} +17 -18
- package/src/models/MapItemDynamicFieldInputDto.ts +91 -0
- package/src/models/{Def13.ts → MapItemDynamicFieldORM.ts} +17 -18
- package/src/models/MapItemDynamicFieldWithDefinitionORM.ts +90 -0
- package/src/models/MapItemInput.ts +191 -0
- package/src/models/{Def11.ts → MapItemLinkORM.ts} +26 -23
- package/src/models/MapItemLinkOutput.ts +74 -0
- package/src/models/MapItemListOutput.ts +74 -0
- package/src/models/MapItemMultimediaORM.ts +83 -0
- package/src/models/MapItemMultimediaOutput.ts +74 -0
- package/src/models/MapItemNearByORM.ts +75 -0
- package/src/models/MapItemORM.ts +133 -0
- package/src/models/MapItemOutput.ts +74 -0
- package/src/models/MapItemOutputDto.ts +225 -0
- package/src/models/MapItemOutputDtoProps.ts +225 -0
- package/src/models/MapItemTypeDynamicFieldDefinitionOutput.ts +74 -0
- package/src/models/MapItemTypeDynamicFieldDefinitionValuesOutput.ts +66 -0
- package/src/models/MapItemTypeFormORM.ts +83 -0
- package/src/models/MapItemTypeFormSectionDto.ts +90 -0
- package/src/models/MapItemTypeFormSectionFieldORM.ts +101 -0
- package/src/models/MapItemTypeFormSectionORM.ts +92 -0
- package/src/models/MapItemTypeORM.ts +135 -0
- package/src/models/MapItemTypeOutput.ts +74 -0
- package/src/models/MapLayerInput.ts +84 -0
- package/src/models/MapLayerItemListOutput.ts +74 -0
- package/src/models/MapLayerItemORM.ts +101 -0
- package/src/models/MapLayerItemOutput.ts +74 -0
- package/src/models/MapLayerListOutput.ts +74 -0
- package/src/models/{Def7.ts → MapLayerORM.ts} +27 -33
- package/src/models/MapLayerOutput.ts +74 -0
- package/src/models/MapLayerOutputDto.ts +118 -0
- package/src/models/MapListOutput.ts +74 -0
- package/src/models/MapORM.ts +108 -0
- package/src/models/MapOutput.ts +74 -0
- package/src/models/MapZoneInput.ts +66 -0
- package/src/models/{Def62.ts → MapZoneORM.ts} +17 -25
- package/src/models/MapZoneOutput.ts +74 -0
- package/src/models/MapZoneOutputDto.ts +100 -0
- package/src/models/MapZonePointORM.ts +83 -0
- package/src/models/MeasureUnitORM.ts +92 -0
- package/src/models/ModelRequestContext.ts +74 -0
- package/src/models/MultimediaORM.ts +99 -0
- package/src/models/MultimediaOutput.ts +74 -0
- package/src/models/NominatimAddressORM.ts +147 -0
- package/src/models/NominatimORM.ts +192 -0
- package/src/models/{Def2.ts → OrganizationORM.ts} +16 -16
- package/src/models/{Def81.ts → ReportAvailableColumnDto.ts} +13 -13
- package/src/models/ReportAvailableColumnsListOutput.ts +74 -0
- package/src/models/ReportColumnFilterORM.ts +101 -0
- package/src/models/ReportColumnORM.ts +135 -0
- package/src/models/{Def78.ts → ReportConfigurationDto.ts} +13 -22
- package/src/models/ReportDataCSVDto.ts +66 -0
- package/src/models/ReportDataDto.ts +88 -0
- package/src/models/ReportDataJSONDto.ts +74 -0
- package/src/models/ReportDataORM.ts +74 -0
- package/src/models/ReportDataOutput.ts +74 -0
- package/src/models/{Def33.ts → ReportDataRowORM.ts} +12 -12
- package/src/models/ReportDto.ts +75 -0
- package/src/models/ReportListOutput.ts +74 -0
- package/src/models/ReportORM.ts +99 -0
- package/src/models/ReportOutput.ts +74 -0
- package/src/models/SearchORM.ts +84 -0
- package/src/models/SearchOutput.ts +74 -0
- package/src/models/SearchResultDto.ts +74 -0
- package/src/models/SearchResultSectionDto.ts +92 -0
- package/src/models/SearchResultSectionItem.ts +100 -0
- package/src/models/{Def90.ts → SourceDto.ts} +16 -15
- package/src/models/SourceListOutput.ts +74 -0
- package/src/models/SourceOutput.ts +74 -0
- package/src/models/StateMachineDefinitionListOutput.ts +74 -0
- package/src/models/StateMachineDefinitionOutputDto.ts +117 -0
- package/src/models/StateMachineORM.ts +82 -0
- package/src/models/{Def37.ts → StateMachineStateORM.ts} +20 -20
- package/src/models/StateMachineStateOutputDto.ts +84 -0
- package/src/models/{Def39.ts → StateMachineTransitionLogORM.ts} +20 -22
- package/src/models/{Def38.ts → StateMachineTransitionORM.ts} +18 -19
- package/src/models/StateMachineTransitionOutputDto.ts +93 -0
- package/src/models/UpdateUserInOrganizationPasswordDto.ts +66 -0
- package/src/models/UploadDto.ts +75 -0
- package/src/models/UploadOutput.ts +74 -0
- package/src/models/UserDto.ts +83 -0
- package/src/models/UserInOrganizationDto.ts +129 -0
- package/src/models/UserInOrganizationOutput.ts +74 -0
- package/src/models/{Def3.ts → UserORM.ts} +44 -34
- package/src/models/XAxisOptions.ts +83 -0
- package/src/models/YAxisOptions.ts +83 -0
- package/src/models/index.ts +130 -96
- package/src/.openapi-generator/FILES +0 -7
- package/src/.openapi-generator/VERSION +0 -1
- package/src/.openapi-generator-ignore +0 -23
- package/src/apis/DefaultApi.ts +0 -200
- package/src/models/Def0.ts +0 -73
- package/src/models/Def10.ts +0 -105
- package/src/models/Def12.ts +0 -81
- package/src/models/Def15.ts +0 -75
- package/src/models/Def17.ts +0 -81
- package/src/models/Def19.ts +0 -81
- package/src/models/Def20.ts +0 -105
- package/src/models/Def21.ts +0 -81
- package/src/models/Def22.ts +0 -217
- package/src/models/Def23.ts +0 -97
- package/src/models/Def24.ts +0 -127
- package/src/models/Def25.ts +0 -81
- package/src/models/Def26.ts +0 -81
- package/src/models/Def27.ts +0 -105
- package/src/models/Def28.ts +0 -121
- package/src/models/Def29.ts +0 -97
- package/src/models/Def30.ts +0 -113
- package/src/models/Def31.ts +0 -116
- package/src/models/Def32.ts +0 -121
- package/src/models/Def34.ts +0 -66
- package/src/models/Def35.ts +0 -81
- package/src/models/Def36.ts +0 -84
- package/src/models/Def40.ts +0 -137
- package/src/models/Def41.ts +0 -178
- package/src/models/Def42.ts +0 -66
- package/src/models/Def44.ts +0 -75
- package/src/models/Def45.ts +0 -74
- package/src/models/Def46.ts +0 -102
- package/src/models/Def47.ts +0 -66
- package/src/models/Def48.ts +0 -65
- package/src/models/Def49.ts +0 -66
- package/src/models/Def5.ts +0 -89
- package/src/models/Def50.ts +0 -66
- package/src/models/Def51.ts +0 -123
- package/src/models/Def52.ts +0 -66
- package/src/models/Def53.ts +0 -66
- package/src/models/Def54.ts +0 -66
- package/src/models/Def56.ts +0 -90
- package/src/models/Def57.ts +0 -182
- package/src/models/Def58.ts +0 -84
- package/src/models/Def59.ts +0 -66
- package/src/models/Def6.ts +0 -97
- package/src/models/Def60.ts +0 -66
- package/src/models/Def61.ts +0 -189
- package/src/models/Def63.ts +0 -66
- package/src/models/Def64.ts +0 -66
- package/src/models/Def65.ts +0 -66
- package/src/models/Def66.ts +0 -66
- package/src/models/Def67.ts +0 -66
- package/src/models/Def68.ts +0 -66
- package/src/models/Def69.ts +0 -66
- package/src/models/Def70.ts +0 -66
- package/src/models/Def71.ts +0 -66
- package/src/models/Def72.ts +0 -66
- package/src/models/Def73.ts +0 -66
- package/src/models/Def74.ts +0 -66
- package/src/models/Def75.ts +0 -75
- package/src/models/Def76.ts +0 -66
- package/src/models/Def77.ts +0 -66
- package/src/models/Def79.ts +0 -75
- package/src/models/Def8.ts +0 -137
- package/src/models/Def80.ts +0 -73
- package/src/models/Def82.ts +0 -66
- package/src/models/Def83.ts +0 -66
- package/src/models/Def84.ts +0 -66
- package/src/models/Def85.ts +0 -66
- package/src/models/Def86.ts +0 -92
- package/src/models/Def87.ts +0 -84
- package/src/models/Def88.ts +0 -66
- package/src/models/Def89.ts +0 -66
- package/src/models/Def9.ts +0 -113
- package/src/models/Def91.ts +0 -66
- package/src/models/Def92.ts +0 -66
- package/src/models/Def93.ts +0 -101
- package/src/models/Def94.ts +0 -66
- package/src/models/Def95.ts +0 -73
- package/src/models/Def96.ts +0 -66
- package/src/models/User.ts +0 -91
package/src/apis/MapApi.ts
CHANGED
|
@@ -15,32 +15,29 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Def76,
|
|
18
|
+
MapItemListOutput,
|
|
19
|
+
MapLayerInput,
|
|
20
|
+
MapLayerListOutput,
|
|
21
|
+
MapLayerOutput,
|
|
22
|
+
MapListOutput,
|
|
23
|
+
MapORM,
|
|
24
|
+
MapOutput,
|
|
26
25
|
} from '../models/index';
|
|
27
26
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Def76FromJSON,
|
|
43
|
-
Def76ToJSON,
|
|
27
|
+
MapItemListOutputFromJSON,
|
|
28
|
+
MapItemListOutputToJSON,
|
|
29
|
+
MapLayerInputFromJSON,
|
|
30
|
+
MapLayerInputToJSON,
|
|
31
|
+
MapLayerListOutputFromJSON,
|
|
32
|
+
MapLayerListOutputToJSON,
|
|
33
|
+
MapLayerOutputFromJSON,
|
|
34
|
+
MapLayerOutputToJSON,
|
|
35
|
+
MapListOutputFromJSON,
|
|
36
|
+
MapListOutputToJSON,
|
|
37
|
+
MapORMFromJSON,
|
|
38
|
+
MapORMToJSON,
|
|
39
|
+
MapOutputFromJSON,
|
|
40
|
+
MapOutputToJSON,
|
|
44
41
|
} from '../models/index';
|
|
45
42
|
|
|
46
43
|
export interface ApiV1MapMapIdGetRequest {
|
|
@@ -63,11 +60,11 @@ export interface ApiV1MapMapIdLayerLayerIdItemGetRequest {
|
|
|
63
60
|
|
|
64
61
|
export interface ApiV1MapMapIdLayerPostRequest {
|
|
65
62
|
mapId: string;
|
|
66
|
-
|
|
63
|
+
mapLayerInput?: MapLayerInput;
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
export interface ApiV1MapPostRequest {
|
|
70
|
-
|
|
67
|
+
mapORM?: MapORM;
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
/**
|
|
@@ -78,11 +75,15 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
78
75
|
/**
|
|
79
76
|
* List of maps for the user
|
|
80
77
|
*/
|
|
81
|
-
async apiV1MapGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
78
|
+
async apiV1MapGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapListOutput>> {
|
|
82
79
|
const queryParameters: any = {};
|
|
83
80
|
|
|
84
81
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
85
82
|
|
|
83
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
84
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
85
|
+
}
|
|
86
|
+
|
|
86
87
|
const response = await this.request({
|
|
87
88
|
path: `/api/v1/map`,
|
|
88
89
|
method: 'GET',
|
|
@@ -90,13 +91,13 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
90
91
|
query: queryParameters,
|
|
91
92
|
}, initOverrides);
|
|
92
93
|
|
|
93
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapListOutputFromJSON(jsonValue));
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
/**
|
|
97
98
|
* List of maps for the user
|
|
98
99
|
*/
|
|
99
|
-
async apiV1MapGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
100
|
+
async apiV1MapGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapListOutput> {
|
|
100
101
|
const response = await this.apiV1MapGetRaw(initOverrides);
|
|
101
102
|
return await response.value();
|
|
102
103
|
}
|
|
@@ -104,7 +105,7 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
104
105
|
/**
|
|
105
106
|
* Loads map
|
|
106
107
|
*/
|
|
107
|
-
async apiV1MapMapIdGetRaw(requestParameters: ApiV1MapMapIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
108
|
+
async apiV1MapMapIdGetRaw(requestParameters: ApiV1MapMapIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapOutput>> {
|
|
108
109
|
if (requestParameters['mapId'] == null) {
|
|
109
110
|
throw new runtime.RequiredError(
|
|
110
111
|
'mapId',
|
|
@@ -116,6 +117,10 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
116
117
|
|
|
117
118
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
118
119
|
|
|
120
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
121
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
122
|
+
}
|
|
123
|
+
|
|
119
124
|
const response = await this.request({
|
|
120
125
|
path: `/api/v1/map/{mapId}`.replace(`{${"mapId"}}`, encodeURIComponent(String(requestParameters['mapId']))),
|
|
121
126
|
method: 'GET',
|
|
@@ -123,13 +128,13 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
123
128
|
query: queryParameters,
|
|
124
129
|
}, initOverrides);
|
|
125
130
|
|
|
126
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
131
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapOutputFromJSON(jsonValue));
|
|
127
132
|
}
|
|
128
133
|
|
|
129
134
|
/**
|
|
130
135
|
* Loads map
|
|
131
136
|
*/
|
|
132
|
-
async apiV1MapMapIdGet(requestParameters: ApiV1MapMapIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
137
|
+
async apiV1MapMapIdGet(requestParameters: ApiV1MapMapIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapOutput> {
|
|
133
138
|
const response = await this.apiV1MapMapIdGetRaw(requestParameters, initOverrides);
|
|
134
139
|
return await response.value();
|
|
135
140
|
}
|
|
@@ -137,7 +142,7 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
137
142
|
/**
|
|
138
143
|
* Lists layers for a given map
|
|
139
144
|
*/
|
|
140
|
-
async apiV1MapMapIdLayerGetRaw(requestParameters: ApiV1MapMapIdLayerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
145
|
+
async apiV1MapMapIdLayerGetRaw(requestParameters: ApiV1MapMapIdLayerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapLayerListOutput>> {
|
|
141
146
|
if (requestParameters['mapId'] == null) {
|
|
142
147
|
throw new runtime.RequiredError(
|
|
143
148
|
'mapId',
|
|
@@ -149,6 +154,10 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
149
154
|
|
|
150
155
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
156
|
|
|
157
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
158
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
159
|
+
}
|
|
160
|
+
|
|
152
161
|
const response = await this.request({
|
|
153
162
|
path: `/api/v1/map/{mapId}/layer`.replace(`{${"mapId"}}`, encodeURIComponent(String(requestParameters['mapId']))),
|
|
154
163
|
method: 'GET',
|
|
@@ -156,13 +165,13 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
156
165
|
query: queryParameters,
|
|
157
166
|
}, initOverrides);
|
|
158
167
|
|
|
159
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
168
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapLayerListOutputFromJSON(jsonValue));
|
|
160
169
|
}
|
|
161
170
|
|
|
162
171
|
/**
|
|
163
172
|
* Lists layers for a given map
|
|
164
173
|
*/
|
|
165
|
-
async apiV1MapMapIdLayerGet(requestParameters: ApiV1MapMapIdLayerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
174
|
+
async apiV1MapMapIdLayerGet(requestParameters: ApiV1MapMapIdLayerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapLayerListOutput> {
|
|
166
175
|
const response = await this.apiV1MapMapIdLayerGetRaw(requestParameters, initOverrides);
|
|
167
176
|
return await response.value();
|
|
168
177
|
}
|
|
@@ -170,7 +179,7 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
170
179
|
/**
|
|
171
180
|
* Loads layer by id
|
|
172
181
|
*/
|
|
173
|
-
async apiV1MapMapIdLayerLayerIdGetRaw(requestParameters: ApiV1MapMapIdLayerLayerIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
182
|
+
async apiV1MapMapIdLayerLayerIdGetRaw(requestParameters: ApiV1MapMapIdLayerLayerIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapLayerOutput>> {
|
|
174
183
|
if (requestParameters['mapId'] == null) {
|
|
175
184
|
throw new runtime.RequiredError(
|
|
176
185
|
'mapId',
|
|
@@ -189,6 +198,10 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
189
198
|
|
|
190
199
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
191
200
|
|
|
201
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
202
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
203
|
+
}
|
|
204
|
+
|
|
192
205
|
const response = await this.request({
|
|
193
206
|
path: `/api/v1/map/{mapId}/layer/{layerId}`.replace(`{${"mapId"}}`, encodeURIComponent(String(requestParameters['mapId']))).replace(`{${"layerId"}}`, encodeURIComponent(String(requestParameters['layerId']))),
|
|
194
207
|
method: 'GET',
|
|
@@ -196,13 +209,13 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
196
209
|
query: queryParameters,
|
|
197
210
|
}, initOverrides);
|
|
198
211
|
|
|
199
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapLayerOutputFromJSON(jsonValue));
|
|
200
213
|
}
|
|
201
214
|
|
|
202
215
|
/**
|
|
203
216
|
* Loads layer by id
|
|
204
217
|
*/
|
|
205
|
-
async apiV1MapMapIdLayerLayerIdGet(requestParameters: ApiV1MapMapIdLayerLayerIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
218
|
+
async apiV1MapMapIdLayerLayerIdGet(requestParameters: ApiV1MapMapIdLayerLayerIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapLayerOutput> {
|
|
206
219
|
const response = await this.apiV1MapMapIdLayerLayerIdGetRaw(requestParameters, initOverrides);
|
|
207
220
|
return await response.value();
|
|
208
221
|
}
|
|
@@ -210,7 +223,7 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
210
223
|
/**
|
|
211
224
|
* Loads all layer items
|
|
212
225
|
*/
|
|
213
|
-
async apiV1MapMapIdLayerLayerIdItemGetRaw(requestParameters: ApiV1MapMapIdLayerLayerIdItemGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
226
|
+
async apiV1MapMapIdLayerLayerIdItemGetRaw(requestParameters: ApiV1MapMapIdLayerLayerIdItemGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapItemListOutput>> {
|
|
214
227
|
if (requestParameters['mapId'] == null) {
|
|
215
228
|
throw new runtime.RequiredError(
|
|
216
229
|
'mapId',
|
|
@@ -229,6 +242,10 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
229
242
|
|
|
230
243
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
231
244
|
|
|
245
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
246
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
247
|
+
}
|
|
248
|
+
|
|
232
249
|
const response = await this.request({
|
|
233
250
|
path: `/api/v1/map/{mapId}/layer/{layerId}/item`.replace(`{${"mapId"}}`, encodeURIComponent(String(requestParameters['mapId']))).replace(`{${"layerId"}}`, encodeURIComponent(String(requestParameters['layerId']))),
|
|
234
251
|
method: 'GET',
|
|
@@ -236,13 +253,13 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
236
253
|
query: queryParameters,
|
|
237
254
|
}, initOverrides);
|
|
238
255
|
|
|
239
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
256
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapItemListOutputFromJSON(jsonValue));
|
|
240
257
|
}
|
|
241
258
|
|
|
242
259
|
/**
|
|
243
260
|
* Loads all layer items
|
|
244
261
|
*/
|
|
245
|
-
async apiV1MapMapIdLayerLayerIdItemGet(requestParameters: ApiV1MapMapIdLayerLayerIdItemGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
262
|
+
async apiV1MapMapIdLayerLayerIdItemGet(requestParameters: ApiV1MapMapIdLayerLayerIdItemGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapItemListOutput> {
|
|
246
263
|
const response = await this.apiV1MapMapIdLayerLayerIdItemGetRaw(requestParameters, initOverrides);
|
|
247
264
|
return await response.value();
|
|
248
265
|
}
|
|
@@ -250,7 +267,7 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
250
267
|
/**
|
|
251
268
|
* Adds layer to a map
|
|
252
269
|
*/
|
|
253
|
-
async apiV1MapMapIdLayerPostRaw(requestParameters: ApiV1MapMapIdLayerPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
270
|
+
async apiV1MapMapIdLayerPostRaw(requestParameters: ApiV1MapMapIdLayerPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapLayerOutput>> {
|
|
254
271
|
if (requestParameters['mapId'] == null) {
|
|
255
272
|
throw new runtime.RequiredError(
|
|
256
273
|
'mapId',
|
|
@@ -264,21 +281,25 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
264
281
|
|
|
265
282
|
headerParameters['Content-Type'] = 'application/json';
|
|
266
283
|
|
|
284
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
285
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
286
|
+
}
|
|
287
|
+
|
|
267
288
|
const response = await this.request({
|
|
268
289
|
path: `/api/v1/map/{mapId}/layer`.replace(`{${"mapId"}}`, encodeURIComponent(String(requestParameters['mapId']))),
|
|
269
290
|
method: 'POST',
|
|
270
291
|
headers: headerParameters,
|
|
271
292
|
query: queryParameters,
|
|
272
|
-
body:
|
|
293
|
+
body: MapLayerInputToJSON(requestParameters['mapLayerInput']),
|
|
273
294
|
}, initOverrides);
|
|
274
295
|
|
|
275
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
296
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapLayerOutputFromJSON(jsonValue));
|
|
276
297
|
}
|
|
277
298
|
|
|
278
299
|
/**
|
|
279
300
|
* Adds layer to a map
|
|
280
301
|
*/
|
|
281
|
-
async apiV1MapMapIdLayerPost(requestParameters: ApiV1MapMapIdLayerPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
302
|
+
async apiV1MapMapIdLayerPost(requestParameters: ApiV1MapMapIdLayerPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapLayerOutput> {
|
|
282
303
|
const response = await this.apiV1MapMapIdLayerPostRaw(requestParameters, initOverrides);
|
|
283
304
|
return await response.value();
|
|
284
305
|
}
|
|
@@ -286,56 +307,34 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
286
307
|
/**
|
|
287
308
|
* Adds map
|
|
288
309
|
*/
|
|
289
|
-
async apiV1MapPostRaw(requestParameters: ApiV1MapPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
310
|
+
async apiV1MapPostRaw(requestParameters: ApiV1MapPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapOutput>> {
|
|
290
311
|
const queryParameters: any = {};
|
|
291
312
|
|
|
292
313
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
293
314
|
|
|
294
315
|
headerParameters['Content-Type'] = 'application/json';
|
|
295
316
|
|
|
317
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
318
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
319
|
+
}
|
|
320
|
+
|
|
296
321
|
const response = await this.request({
|
|
297
322
|
path: `/api/v1/map`,
|
|
298
323
|
method: 'POST',
|
|
299
324
|
headers: headerParameters,
|
|
300
325
|
query: queryParameters,
|
|
301
|
-
body:
|
|
326
|
+
body: MapORMToJSON(requestParameters['mapORM']),
|
|
302
327
|
}, initOverrides);
|
|
303
328
|
|
|
304
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
329
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapOutputFromJSON(jsonValue));
|
|
305
330
|
}
|
|
306
331
|
|
|
307
332
|
/**
|
|
308
333
|
* Adds map
|
|
309
334
|
*/
|
|
310
|
-
async apiV1MapPost(requestParameters: ApiV1MapPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
335
|
+
async apiV1MapPost(requestParameters: ApiV1MapPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapOutput> {
|
|
311
336
|
const response = await this.apiV1MapPostRaw(requestParameters, initOverrides);
|
|
312
337
|
return await response.value();
|
|
313
338
|
}
|
|
314
339
|
|
|
315
|
-
/**
|
|
316
|
-
* Adds an item to the map
|
|
317
|
-
*/
|
|
318
|
-
async apiV1MapSearchGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Def76>> {
|
|
319
|
-
const queryParameters: any = {};
|
|
320
|
-
|
|
321
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
322
|
-
|
|
323
|
-
const response = await this.request({
|
|
324
|
-
path: `/api/v1/map/search`,
|
|
325
|
-
method: 'GET',
|
|
326
|
-
headers: headerParameters,
|
|
327
|
-
query: queryParameters,
|
|
328
|
-
}, initOverrides);
|
|
329
|
-
|
|
330
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => Def76FromJSON(jsonValue));
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Adds an item to the map
|
|
335
|
-
*/
|
|
336
|
-
async apiV1MapSearchGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Def76> {
|
|
337
|
-
const response = await this.apiV1MapSearchGetRaw(initOverrides);
|
|
338
|
-
return await response.value();
|
|
339
|
-
}
|
|
340
|
-
|
|
341
340
|
}
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
MultimediaOutput,
|
|
19
19
|
} from '../models/index';
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
MultimediaOutputFromJSON,
|
|
22
|
+
MultimediaOutputToJSON,
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
export interface ApiV1MultimediaContentTypeRelativeUrlGetRequest {
|
|
@@ -59,6 +59,10 @@ export class MultimediaApi extends runtime.BaseAPI {
|
|
|
59
59
|
|
|
60
60
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
61
61
|
|
|
62
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
63
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
64
|
+
}
|
|
65
|
+
|
|
62
66
|
const response = await this.request({
|
|
63
67
|
path: `/api/v1/multimedia/{contentType}/{relativeUrl}`.replace(`{${"contentType"}}`, encodeURIComponent(String(requestParameters['contentType']))).replace(`{${"relativeUrl"}}`, encodeURIComponent(String(requestParameters['relativeUrl']))),
|
|
64
68
|
method: 'GET',
|
|
@@ -92,6 +96,10 @@ export class MultimediaApi extends runtime.BaseAPI {
|
|
|
92
96
|
|
|
93
97
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
94
98
|
|
|
99
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
100
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
101
|
+
}
|
|
102
|
+
|
|
95
103
|
const response = await this.request({
|
|
96
104
|
path: `/api/v1/multimedia/{multimediaId}`.replace(`{${"multimediaId"}}`, encodeURIComponent(String(requestParameters['multimediaId']))),
|
|
97
105
|
method: 'GET',
|
|
@@ -113,11 +121,15 @@ export class MultimediaApi extends runtime.BaseAPI {
|
|
|
113
121
|
* Uploads a file
|
|
114
122
|
* You need to send the file object in the file field of the form
|
|
115
123
|
*/
|
|
116
|
-
async apiV1MultimediaPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
124
|
+
async apiV1MultimediaPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MultimediaOutput>> {
|
|
117
125
|
const queryParameters: any = {};
|
|
118
126
|
|
|
119
127
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
120
128
|
|
|
129
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
130
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
131
|
+
}
|
|
132
|
+
|
|
121
133
|
const response = await this.request({
|
|
122
134
|
path: `/api/v1/multimedia`,
|
|
123
135
|
method: 'POST',
|
|
@@ -125,14 +137,14 @@ export class MultimediaApi extends runtime.BaseAPI {
|
|
|
125
137
|
query: queryParameters,
|
|
126
138
|
}, initOverrides);
|
|
127
139
|
|
|
128
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
140
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MultimediaOutputFromJSON(jsonValue));
|
|
129
141
|
}
|
|
130
142
|
|
|
131
143
|
/**
|
|
132
144
|
* Uploads a file
|
|
133
145
|
* You need to send the file object in the file field of the form
|
|
134
146
|
*/
|
|
135
|
-
async apiV1MultimediaPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
147
|
+
async apiV1MultimediaPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MultimediaOutput> {
|
|
136
148
|
const response = await this.apiV1MultimediaPostRaw(initOverrides);
|
|
137
149
|
return await response.value();
|
|
138
150
|
}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Security Map API
|
|
5
|
+
* Security Map API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
AccountOutput,
|
|
19
|
+
AddUserToOrganizationDto,
|
|
20
|
+
OrganizationORM,
|
|
21
|
+
UpdateUserInOrganizationPasswordDto,
|
|
22
|
+
UserInOrganizationOutput,
|
|
23
|
+
} from '../models/index';
|
|
24
|
+
import {
|
|
25
|
+
AccountOutputFromJSON,
|
|
26
|
+
AccountOutputToJSON,
|
|
27
|
+
AddUserToOrganizationDtoFromJSON,
|
|
28
|
+
AddUserToOrganizationDtoToJSON,
|
|
29
|
+
OrganizationORMFromJSON,
|
|
30
|
+
OrganizationORMToJSON,
|
|
31
|
+
UpdateUserInOrganizationPasswordDtoFromJSON,
|
|
32
|
+
UpdateUserInOrganizationPasswordDtoToJSON,
|
|
33
|
+
UserInOrganizationOutputFromJSON,
|
|
34
|
+
UserInOrganizationOutputToJSON,
|
|
35
|
+
} from '../models/index';
|
|
36
|
+
|
|
37
|
+
export interface ApiV1OrganizationPostRequest {
|
|
38
|
+
organizationORM?: OrganizationORM;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ApiV1OrganizationPutRequest {
|
|
42
|
+
organizationORM?: OrganizationORM;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ApiV1OrganizationUserPostRequest {
|
|
46
|
+
addUserToOrganizationDto?: AddUserToOrganizationDto;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface ApiV1OrganizationUserUserIdDeleteRequest {
|
|
50
|
+
userId: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface ApiV1OrganizationUserUserIdPasswordPutRequest {
|
|
54
|
+
userId: string;
|
|
55
|
+
updateUserInOrganizationPasswordDto?: UpdateUserInOrganizationPasswordDto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
export class OrganizationApi extends runtime.BaseAPI {
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Adds account organization
|
|
65
|
+
*/
|
|
66
|
+
async apiV1OrganizationPostRaw(requestParameters: ApiV1OrganizationPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOutput>> {
|
|
67
|
+
const queryParameters: any = {};
|
|
68
|
+
|
|
69
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
70
|
+
|
|
71
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
72
|
+
|
|
73
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
74
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const response = await this.request({
|
|
78
|
+
path: `/api/v1/organization`,
|
|
79
|
+
method: 'POST',
|
|
80
|
+
headers: headerParameters,
|
|
81
|
+
query: queryParameters,
|
|
82
|
+
body: OrganizationORMToJSON(requestParameters['organizationORM']),
|
|
83
|
+
}, initOverrides);
|
|
84
|
+
|
|
85
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountOutputFromJSON(jsonValue));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Adds account organization
|
|
90
|
+
*/
|
|
91
|
+
async apiV1OrganizationPost(requestParameters: ApiV1OrganizationPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOutput> {
|
|
92
|
+
const response = await this.apiV1OrganizationPostRaw(requestParameters, initOverrides);
|
|
93
|
+
return await response.value();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* updates account organization
|
|
98
|
+
*/
|
|
99
|
+
async apiV1OrganizationPutRaw(requestParameters: ApiV1OrganizationPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOutput>> {
|
|
100
|
+
const queryParameters: any = {};
|
|
101
|
+
|
|
102
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
103
|
+
|
|
104
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
105
|
+
|
|
106
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
107
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const response = await this.request({
|
|
111
|
+
path: `/api/v1/organization`,
|
|
112
|
+
method: 'PUT',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
body: OrganizationORMToJSON(requestParameters['organizationORM']),
|
|
116
|
+
}, initOverrides);
|
|
117
|
+
|
|
118
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountOutputFromJSON(jsonValue));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* updates account organization
|
|
123
|
+
*/
|
|
124
|
+
async apiV1OrganizationPut(requestParameters: ApiV1OrganizationPutRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOutput> {
|
|
125
|
+
const response = await this.apiV1OrganizationPutRaw(requestParameters, initOverrides);
|
|
126
|
+
return await response.value();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* list all users in organization
|
|
131
|
+
*/
|
|
132
|
+
async apiV1OrganizationUserGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserInOrganizationOutput>> {
|
|
133
|
+
const queryParameters: any = {};
|
|
134
|
+
|
|
135
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
136
|
+
|
|
137
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
138
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const response = await this.request({
|
|
142
|
+
path: `/api/v1/organization/user`,
|
|
143
|
+
method: 'GET',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
}, initOverrides);
|
|
147
|
+
|
|
148
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserInOrganizationOutputFromJSON(jsonValue));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* list all users in organization
|
|
153
|
+
*/
|
|
154
|
+
async apiV1OrganizationUserGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserInOrganizationOutput> {
|
|
155
|
+
const response = await this.apiV1OrganizationUserGetRaw(initOverrides);
|
|
156
|
+
return await response.value();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* updates account organization
|
|
161
|
+
*/
|
|
162
|
+
async apiV1OrganizationUserPostRaw(requestParameters: ApiV1OrganizationUserPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOutput>> {
|
|
163
|
+
const queryParameters: any = {};
|
|
164
|
+
|
|
165
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
166
|
+
|
|
167
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
168
|
+
|
|
169
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
170
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const response = await this.request({
|
|
174
|
+
path: `/api/v1/organization/user`,
|
|
175
|
+
method: 'POST',
|
|
176
|
+
headers: headerParameters,
|
|
177
|
+
query: queryParameters,
|
|
178
|
+
body: AddUserToOrganizationDtoToJSON(requestParameters['addUserToOrganizationDto']),
|
|
179
|
+
}, initOverrides);
|
|
180
|
+
|
|
181
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountOutputFromJSON(jsonValue));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* updates account organization
|
|
186
|
+
*/
|
|
187
|
+
async apiV1OrganizationUserPost(requestParameters: ApiV1OrganizationUserPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOutput> {
|
|
188
|
+
const response = await this.apiV1OrganizationUserPostRaw(requestParameters, initOverrides);
|
|
189
|
+
return await response.value();
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* delete user from organization (and forever)
|
|
194
|
+
*/
|
|
195
|
+
async apiV1OrganizationUserUserIdDeleteRaw(requestParameters: ApiV1OrganizationUserUserIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOutput>> {
|
|
196
|
+
if (requestParameters['userId'] == null) {
|
|
197
|
+
throw new runtime.RequiredError(
|
|
198
|
+
'userId',
|
|
199
|
+
'Required parameter "userId" was null or undefined when calling apiV1OrganizationUserUserIdDelete().'
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const queryParameters: any = {};
|
|
204
|
+
|
|
205
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
206
|
+
|
|
207
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
208
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const response = await this.request({
|
|
212
|
+
path: `/api/v1/organization/user/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
213
|
+
method: 'DELETE',
|
|
214
|
+
headers: headerParameters,
|
|
215
|
+
query: queryParameters,
|
|
216
|
+
}, initOverrides);
|
|
217
|
+
|
|
218
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountOutputFromJSON(jsonValue));
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* delete user from organization (and forever)
|
|
223
|
+
*/
|
|
224
|
+
async apiV1OrganizationUserUserIdDelete(requestParameters: ApiV1OrganizationUserUserIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOutput> {
|
|
225
|
+
const response = await this.apiV1OrganizationUserUserIdDeleteRaw(requestParameters, initOverrides);
|
|
226
|
+
return await response.value();
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* updates account organization
|
|
231
|
+
*/
|
|
232
|
+
async apiV1OrganizationUserUserIdPasswordPutRaw(requestParameters: ApiV1OrganizationUserUserIdPasswordPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOutput>> {
|
|
233
|
+
if (requestParameters['userId'] == null) {
|
|
234
|
+
throw new runtime.RequiredError(
|
|
235
|
+
'userId',
|
|
236
|
+
'Required parameter "userId" was null or undefined when calling apiV1OrganizationUserUserIdPasswordPut().'
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
const queryParameters: any = {};
|
|
241
|
+
|
|
242
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
243
|
+
|
|
244
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
245
|
+
|
|
246
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
247
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
const response = await this.request({
|
|
251
|
+
path: `/api/v1/organization/user/{userId}/password`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
252
|
+
method: 'PUT',
|
|
253
|
+
headers: headerParameters,
|
|
254
|
+
query: queryParameters,
|
|
255
|
+
body: UpdateUserInOrganizationPasswordDtoToJSON(requestParameters['updateUserInOrganizationPasswordDto']),
|
|
256
|
+
}, initOverrides);
|
|
257
|
+
|
|
258
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountOutputFromJSON(jsonValue));
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* updates account organization
|
|
263
|
+
*/
|
|
264
|
+
async apiV1OrganizationUserUserIdPasswordPut(requestParameters: ApiV1OrganizationUserUserIdPasswordPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOutput> {
|
|
265
|
+
const response = await this.apiV1OrganizationUserUserIdPasswordPutRaw(requestParameters, initOverrides);
|
|
266
|
+
return await response.value();
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
}
|