@jrojaspin/security-map-api-cli 1.9.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 +58 -20
- package/src/apis/ArticleApi.ts +6 -6
- package/src/apis/ItemApi.ts +289 -71
- package/src/apis/JournalApi.ts +28 -28
- package/src/apis/LocationApi.ts +57 -14
- package/src/apis/LoginApi.ts +15 -15
- package/src/apis/MapApi.ts +46 -79
- package/src/apis/MultimediaApi.ts +6 -6
- package/src/apis/OrganizationApi.ts +41 -41
- package/src/apis/ReportApi.ts +37 -23
- package/src/apis/SearchApi.ts +9 -9
- package/src/apis/SourceApi.ts +17 -17
- package/src/apis/StateMachineApi.ts +6 -6
- package/src/apis/index.ts +0 -1
- package/src/models/{Def1.ts → AccountORM.ts} +15 -23
- 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/{Def57Data.ts → JournalEntryORM.ts} +25 -24
- 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/{Def44.ts → ManualLoginInput.ts} +13 -13
- package/src/models/{Def45.ts → ManualLoginPasswordUpdateInput.ts} +13 -13
- 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 -36
- package/src/models/{Def15CustomFieldValue.ts → MapItemDynamicFieldInputDto.ts} +19 -21
- 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/{Def54Data.ts → MapItemTypeORM.ts} +43 -35
- 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/{Def71Data.ts → MapORM.ts} +35 -32
- package/src/models/MapOutput.ts +74 -0
- package/src/models/MapZoneInput.ts +66 -0
- package/src/models/MapZoneORM.ts +83 -0
- 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/{Def18.ts → MultimediaORM.ts} +24 -31
- 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 -17
- package/src/models/{Def86.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/{Def83.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/{Def34RowsInner.ts → ReportDataRowORM.ts} +12 -12
- package/src/models/ReportDto.ts +75 -0
- package/src/models/ReportListOutput.ts +74 -0
- package/src/models/{Def58Data.ts → ReportORM.ts} +25 -32
- 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/{Def86Data.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/{Def98TransitionsInner.ts → StateMachineTransitionORM.ts} +18 -19
- package/src/models/{Def38.ts → StateMachineTransitionOutputDto.ts} +15 -24
- 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/{Def49.ts → UserInOrganizationDto.ts} +23 -32
- package/src/models/UserInOrganizationOutput.ts +74 -0
- package/src/models/{Def3.ts → UserORM.ts} +36 -38
- package/src/models/XAxisOptions.ts +83 -0
- package/src/models/YAxisOptions.ts +83 -0
- package/src/models/index.ts +130 -155
- package/src/apis/DefaultApi.ts +0 -224
- package/src/models/Def0.ts +0 -74
- package/src/models/Def10.ts +0 -105
- package/src/models/Def100.ts +0 -73
- package/src/models/Def100Data.ts +0 -73
- package/src/models/Def101.ts +0 -74
- package/src/models/Def101Data.ts +0 -73
- package/src/models/Def12.ts +0 -81
- package/src/models/Def15.ts +0 -90
- package/src/models/Def15CustomFieldDefinition.ts +0 -111
- 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 -128
- 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/Def33.ts +0 -66
- package/src/models/Def34.ts +0 -74
- package/src/models/Def35.ts +0 -98
- package/src/models/Def35LocationOrm.ts +0 -217
- package/src/models/Def35MapItemOrm.ts +0 -156
- package/src/models/Def36.ts +0 -84
- package/src/models/Def40.ts +0 -137
- package/src/models/Def41.ts +0 -187
- package/src/models/Def41Address.ts +0 -137
- package/src/models/Def42.ts +0 -74
- package/src/models/Def42Data.ts +0 -81
- package/src/models/Def46.ts +0 -90
- package/src/models/Def46OrganizationOrm.ts +0 -84
- package/src/models/Def46UserOrm.ts +0 -147
- package/src/models/Def47.ts +0 -74
- package/src/models/Def47UsersInner.ts +0 -75
- package/src/models/Def48.ts +0 -66
- package/src/models/Def5.ts +0 -89
- package/src/models/Def50.ts +0 -74
- package/src/models/Def50ArticlePresentationsInner.ts +0 -97
- package/src/models/Def50ArticleTypesInner.ts +0 -89
- package/src/models/Def50ArticlesInner.ts +0 -113
- package/src/models/Def50DataInner.ts +0 -138
- package/src/models/Def50MagnitudesInner.ts +0 -81
- package/src/models/Def50MeasureUnitsInner.ts +0 -97
- package/src/models/Def51.ts +0 -138
- package/src/models/Def51ArticlePresentationsInner.ts +0 -97
- package/src/models/Def51ArticleTypesInner.ts +0 -89
- package/src/models/Def51ArticlesInner.ts +0 -113
- package/src/models/Def51Data.ts +0 -138
- package/src/models/Def51MagnitudesInner.ts +0 -81
- package/src/models/Def51MeasureUnitsInner.ts +0 -97
- package/src/models/Def52.ts +0 -74
- package/src/models/Def52Data.ts +0 -138
- package/src/models/Def53.ts +0 -65
- package/src/models/Def53Data.ts +0 -127
- package/src/models/Def54.ts +0 -74
- package/src/models/Def54DataInner.ts +0 -246
- package/src/models/Def54DataInnerArticlesInner.ts +0 -105
- package/src/models/Def54DataInnerDynamicFieldsInner.ts +0 -90
- package/src/models/Def54DataInnerItemMultimediasInner.ts +0 -81
- package/src/models/Def54DataInnerLinkedItemsInner.ts +0 -105
- package/src/models/Def54DataInnerMapZoneDto.ts +0 -99
- package/src/models/Def54DataInnerMapZoneDtoLocationsInner.ts +0 -217
- package/src/models/Def55.ts +0 -74
- package/src/models/Def55DataInner.ts +0 -246
- package/src/models/Def55DataInnerArticlesInner.ts +0 -105
- package/src/models/Def55DataInnerDynamicFieldsInner.ts +0 -90
- package/src/models/Def55DataInnerItemMultimediasInner.ts +0 -81
- package/src/models/Def55DataInnerLinkedItemsInner.ts +0 -105
- package/src/models/Def55DataInnerMapZoneDto.ts +0 -99
- package/src/models/Def55DataInnerMapZoneDtoLocationsInner.ts +0 -217
- package/src/models/Def56.ts +0 -124
- package/src/models/Def57.ts +0 -66
- package/src/models/Def58.ts +0 -74
- package/src/models/Def58DataInner.ts +0 -124
- package/src/models/Def59.ts +0 -74
- package/src/models/Def59DataInner.ts +0 -124
- package/src/models/Def6.ts +0 -97
- package/src/models/Def60.ts +0 -66
- package/src/models/Def61.ts +0 -90
- package/src/models/Def61MapZoneInput.ts +0 -90
- package/src/models/Def62.ts +0 -223
- package/src/models/Def62MapZoneInput.ts +0 -90
- package/src/models/Def63.ts +0 -84
- package/src/models/Def63Data.ts +0 -121
- package/src/models/Def64.ts +0 -74
- package/src/models/Def64Data.ts +0 -121
- package/src/models/Def64DataInner.ts +0 -121
- package/src/models/Def65.ts +0 -74
- package/src/models/Def65DataInner.ts +0 -121
- package/src/models/Def66.ts +0 -246
- package/src/models/Def67.ts +0 -99
- package/src/models/Def68.ts +0 -74
- package/src/models/Def68DataInner.ts +0 -105
- package/src/models/Def69.ts +0 -74
- package/src/models/Def69DataInner.ts +0 -105
- package/src/models/Def70.ts +0 -74
- package/src/models/Def71.ts +0 -66
- package/src/models/Def72.ts +0 -74
- package/src/models/Def72Data.ts +0 -105
- package/src/models/Def73.ts +0 -74
- package/src/models/Def73Data.ts +0 -81
- package/src/models/Def73DataInner.ts +0 -128
- package/src/models/Def74.ts +0 -74
- package/src/models/Def74Data.ts +0 -128
- package/src/models/Def74DataInner.ts +0 -128
- package/src/models/Def75.ts +0 -74
- package/src/models/Def75Data.ts +0 -128
- package/src/models/Def76.ts +0 -74
- package/src/models/Def76Data.ts +0 -113
- package/src/models/Def77.ts +0 -74
- package/src/models/Def77Data.ts +0 -113
- package/src/models/Def77DataInner.ts +0 -113
- package/src/models/Def78.ts +0 -74
- package/src/models/Def78Data.ts +0 -246
- package/src/models/Def78DataInner.ts +0 -113
- package/src/models/Def79.ts +0 -74
- package/src/models/Def79Data.ts +0 -246
- package/src/models/Def8.ts +0 -156
- package/src/models/Def80.ts +0 -83
- package/src/models/Def80Data.ts +0 -83
- package/src/models/Def81.ts +0 -74
- package/src/models/Def81Data.ts +0 -83
- package/src/models/Def82.ts +0 -74
- package/src/models/Def82Data.ts +0 -113
- package/src/models/Def84.ts +0 -75
- package/src/models/Def85.ts +0 -73
- package/src/models/Def87.ts +0 -74
- package/src/models/Def87Data.ts +0 -73
- package/src/models/Def88.ts +0 -74
- package/src/models/Def88Data.ts +0 -75
- package/src/models/Def88DataInner.ts +0 -73
- package/src/models/Def89.ts +0 -74
- package/src/models/Def89DataInner.ts +0 -73
- package/src/models/Def9.ts +0 -113
- package/src/models/Def90.ts +0 -74
- package/src/models/Def90DataInner.ts +0 -75
- package/src/models/Def91.ts +0 -101
- package/src/models/Def91ItemsInner.ts +0 -101
- package/src/models/Def92.ts +0 -92
- package/src/models/Def92ItemsInner.ts +0 -101
- package/src/models/Def92SectionsInner.ts +0 -92
- package/src/models/Def93.ts +0 -74
- package/src/models/Def93Data.ts +0 -74
- package/src/models/Def93SectionsInner.ts +0 -92
- package/src/models/Def94.ts +0 -74
- package/src/models/Def94Data.ts +0 -74
- package/src/models/Def95.ts +0 -73
- package/src/models/Def95Data.ts +0 -73
- package/src/models/Def96.ts +0 -74
- package/src/models/Def96Data.ts +0 -73
- package/src/models/Def96DataInner.ts +0 -73
- package/src/models/Def97.ts +0 -74
- package/src/models/Def97DataInner.ts +0 -73
- package/src/models/Def97StatesInner.ts +0 -92
- package/src/models/Def97TransitionsInner.ts +0 -102
- package/src/models/Def98.ts +0 -116
- package/src/models/Def98DataInner.ts +0 -116
- package/src/models/Def98StatesInner.ts +0 -92
- package/src/models/Def99.ts +0 -74
- package/src/models/Def99DataInner.ts +0 -116
package/src/apis/JournalApi.ts
CHANGED
|
@@ -15,29 +15,29 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
JournalEntryListOutput,
|
|
19
|
+
JournalEntryMultimediaInput,
|
|
20
|
+
JournalEntryMultimediaOutput,
|
|
21
|
+
JournalEntryORM,
|
|
22
|
+
JournalEntryOutput,
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
25
|
+
JournalEntryListOutputFromJSON,
|
|
26
|
+
JournalEntryListOutputToJSON,
|
|
27
|
+
JournalEntryMultimediaInputFromJSON,
|
|
28
|
+
JournalEntryMultimediaInputToJSON,
|
|
29
|
+
JournalEntryMultimediaOutputFromJSON,
|
|
30
|
+
JournalEntryMultimediaOutputToJSON,
|
|
31
|
+
JournalEntryORMFromJSON,
|
|
32
|
+
JournalEntryORMToJSON,
|
|
33
|
+
JournalEntryOutputFromJSON,
|
|
34
|
+
JournalEntryOutputToJSON,
|
|
35
35
|
} from '../models/index';
|
|
36
36
|
|
|
37
37
|
export interface ApiV1JournalParentIdEntryJournalEntryIdMultimediaPostRequest {
|
|
38
38
|
parentId: string;
|
|
39
39
|
journalEntryId: string;
|
|
40
|
-
|
|
40
|
+
journalEntryMultimediaInput?: JournalEntryMultimediaInput;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export interface ApiV1JournalParentIdGetRequest {
|
|
@@ -46,7 +46,7 @@ export interface ApiV1JournalParentIdGetRequest {
|
|
|
46
46
|
|
|
47
47
|
export interface ApiV1JournalParentIdPostRequest {
|
|
48
48
|
parentId: string;
|
|
49
|
-
|
|
49
|
+
journalEntryORM?: JournalEntryORM;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
@@ -57,7 +57,7 @@ export class JournalApi extends runtime.BaseAPI {
|
|
|
57
57
|
/**
|
|
58
58
|
* Adds multiemedia to the log entry
|
|
59
59
|
*/
|
|
60
|
-
async apiV1JournalParentIdEntryJournalEntryIdMultimediaPostRaw(requestParameters: ApiV1JournalParentIdEntryJournalEntryIdMultimediaPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
60
|
+
async apiV1JournalParentIdEntryJournalEntryIdMultimediaPostRaw(requestParameters: ApiV1JournalParentIdEntryJournalEntryIdMultimediaPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JournalEntryMultimediaOutput>> {
|
|
61
61
|
if (requestParameters['parentId'] == null) {
|
|
62
62
|
throw new runtime.RequiredError(
|
|
63
63
|
'parentId',
|
|
@@ -87,16 +87,16 @@ export class JournalApi extends runtime.BaseAPI {
|
|
|
87
87
|
method: 'POST',
|
|
88
88
|
headers: headerParameters,
|
|
89
89
|
query: queryParameters,
|
|
90
|
-
body:
|
|
90
|
+
body: JournalEntryMultimediaInputToJSON(requestParameters['journalEntryMultimediaInput']),
|
|
91
91
|
}, initOverrides);
|
|
92
92
|
|
|
93
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
93
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JournalEntryMultimediaOutputFromJSON(jsonValue));
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* Adds multiemedia to the log entry
|
|
98
98
|
*/
|
|
99
|
-
async apiV1JournalParentIdEntryJournalEntryIdMultimediaPost(requestParameters: ApiV1JournalParentIdEntryJournalEntryIdMultimediaPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
99
|
+
async apiV1JournalParentIdEntryJournalEntryIdMultimediaPost(requestParameters: ApiV1JournalParentIdEntryJournalEntryIdMultimediaPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JournalEntryMultimediaOutput> {
|
|
100
100
|
const response = await this.apiV1JournalParentIdEntryJournalEntryIdMultimediaPostRaw(requestParameters, initOverrides);
|
|
101
101
|
return await response.value();
|
|
102
102
|
}
|
|
@@ -104,7 +104,7 @@ export class JournalApi extends runtime.BaseAPI {
|
|
|
104
104
|
/**
|
|
105
105
|
* List all journal entries
|
|
106
106
|
*/
|
|
107
|
-
async apiV1JournalParentIdGetRaw(requestParameters: ApiV1JournalParentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
107
|
+
async apiV1JournalParentIdGetRaw(requestParameters: ApiV1JournalParentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JournalEntryListOutput>> {
|
|
108
108
|
if (requestParameters['parentId'] == null) {
|
|
109
109
|
throw new runtime.RequiredError(
|
|
110
110
|
'parentId',
|
|
@@ -127,13 +127,13 @@ export class JournalApi extends runtime.BaseAPI {
|
|
|
127
127
|
query: queryParameters,
|
|
128
128
|
}, initOverrides);
|
|
129
129
|
|
|
130
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
130
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JournalEntryListOutputFromJSON(jsonValue));
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* List all journal entries
|
|
135
135
|
*/
|
|
136
|
-
async apiV1JournalParentIdGet(requestParameters: ApiV1JournalParentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
136
|
+
async apiV1JournalParentIdGet(requestParameters: ApiV1JournalParentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JournalEntryListOutput> {
|
|
137
137
|
const response = await this.apiV1JournalParentIdGetRaw(requestParameters, initOverrides);
|
|
138
138
|
return await response.value();
|
|
139
139
|
}
|
|
@@ -141,7 +141,7 @@ export class JournalApi extends runtime.BaseAPI {
|
|
|
141
141
|
/**
|
|
142
142
|
* Adds a journal entry to the parent object
|
|
143
143
|
*/
|
|
144
|
-
async apiV1JournalParentIdPostRaw(requestParameters: ApiV1JournalParentIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
144
|
+
async apiV1JournalParentIdPostRaw(requestParameters: ApiV1JournalParentIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JournalEntryOutput>> {
|
|
145
145
|
if (requestParameters['parentId'] == null) {
|
|
146
146
|
throw new runtime.RequiredError(
|
|
147
147
|
'parentId',
|
|
@@ -164,16 +164,16 @@ export class JournalApi extends runtime.BaseAPI {
|
|
|
164
164
|
method: 'POST',
|
|
165
165
|
headers: headerParameters,
|
|
166
166
|
query: queryParameters,
|
|
167
|
-
body:
|
|
167
|
+
body: JournalEntryORMToJSON(requestParameters['journalEntryORM']),
|
|
168
168
|
}, initOverrides);
|
|
169
169
|
|
|
170
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
170
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JournalEntryOutputFromJSON(jsonValue));
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* Adds a journal entry to the parent object
|
|
175
175
|
*/
|
|
176
|
-
async apiV1JournalParentIdPost(requestParameters: ApiV1JournalParentIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
176
|
+
async apiV1JournalParentIdPost(requestParameters: ApiV1JournalParentIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JournalEntryOutput> {
|
|
177
177
|
const response = await this.apiV1JournalParentIdPostRaw(requestParameters, initOverrides);
|
|
178
178
|
return await response.value();
|
|
179
179
|
}
|
package/src/apis/LocationApi.ts
CHANGED
|
@@ -15,18 +15,28 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
LocationORM,
|
|
19
|
+
LocationOutput,
|
|
20
|
+
MapZoneInput,
|
|
21
|
+
MapZoneOutput,
|
|
20
22
|
} from '../models/index';
|
|
21
23
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
LocationORMFromJSON,
|
|
25
|
+
LocationORMToJSON,
|
|
26
|
+
LocationOutputFromJSON,
|
|
27
|
+
LocationOutputToJSON,
|
|
28
|
+
MapZoneInputFromJSON,
|
|
29
|
+
MapZoneInputToJSON,
|
|
30
|
+
MapZoneOutputFromJSON,
|
|
31
|
+
MapZoneOutputToJSON,
|
|
26
32
|
} from '../models/index';
|
|
27
33
|
|
|
28
|
-
export interface
|
|
29
|
-
|
|
34
|
+
export interface ApiV1LocationPointPostRequest {
|
|
35
|
+
locationORM?: LocationORM;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ApiV1LocationZonePostRequest {
|
|
39
|
+
mapZoneInput?: MapZoneInput;
|
|
30
40
|
}
|
|
31
41
|
|
|
32
42
|
/**
|
|
@@ -37,7 +47,40 @@ export class LocationApi extends runtime.BaseAPI {
|
|
|
37
47
|
/**
|
|
38
48
|
* Adds a location to the system
|
|
39
49
|
*/
|
|
40
|
-
async
|
|
50
|
+
async apiV1LocationPointPostRaw(requestParameters: ApiV1LocationPointPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LocationOutput>> {
|
|
51
|
+
const queryParameters: any = {};
|
|
52
|
+
|
|
53
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
54
|
+
|
|
55
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
56
|
+
|
|
57
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
58
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const response = await this.request({
|
|
62
|
+
path: `/api/v1/location/point`,
|
|
63
|
+
method: 'POST',
|
|
64
|
+
headers: headerParameters,
|
|
65
|
+
query: queryParameters,
|
|
66
|
+
body: LocationORMToJSON(requestParameters['locationORM']),
|
|
67
|
+
}, initOverrides);
|
|
68
|
+
|
|
69
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LocationOutputFromJSON(jsonValue));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Adds a location to the system
|
|
74
|
+
*/
|
|
75
|
+
async apiV1LocationPointPost(requestParameters: ApiV1LocationPointPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LocationOutput> {
|
|
76
|
+
const response = await this.apiV1LocationPointPostRaw(requestParameters, initOverrides);
|
|
77
|
+
return await response.value();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Adds a location to the system
|
|
82
|
+
*/
|
|
83
|
+
async apiV1LocationZonePostRaw(requestParameters: ApiV1LocationZonePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapZoneOutput>> {
|
|
41
84
|
const queryParameters: any = {};
|
|
42
85
|
|
|
43
86
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -49,21 +92,21 @@ export class LocationApi extends runtime.BaseAPI {
|
|
|
49
92
|
}
|
|
50
93
|
|
|
51
94
|
const response = await this.request({
|
|
52
|
-
path: `/api/v1/location`,
|
|
95
|
+
path: `/api/v1/location/zone`,
|
|
53
96
|
method: 'POST',
|
|
54
97
|
headers: headerParameters,
|
|
55
98
|
query: queryParameters,
|
|
56
|
-
body:
|
|
99
|
+
body: MapZoneInputToJSON(requestParameters['mapZoneInput']),
|
|
57
100
|
}, initOverrides);
|
|
58
101
|
|
|
59
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapZoneOutputFromJSON(jsonValue));
|
|
60
103
|
}
|
|
61
104
|
|
|
62
105
|
/**
|
|
63
106
|
* Adds a location to the system
|
|
64
107
|
*/
|
|
65
|
-
async
|
|
66
|
-
const response = await this.
|
|
108
|
+
async apiV1LocationZonePost(requestParameters: ApiV1LocationZonePostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapZoneOutput> {
|
|
109
|
+
const response = await this.apiV1LocationZonePostRaw(requestParameters, initOverrides);
|
|
67
110
|
return await response.value();
|
|
68
111
|
}
|
|
69
112
|
|
package/src/apis/LoginApi.ts
CHANGED
|
@@ -15,31 +15,31 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
ManualLoginInput,
|
|
19
|
+
ManualLoginPasswordUpdateInput,
|
|
20
|
+
ManualRegisterInput,
|
|
21
21
|
} from '../models/index';
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
ManualLoginInputFromJSON,
|
|
24
|
+
ManualLoginInputToJSON,
|
|
25
|
+
ManualLoginPasswordUpdateInputFromJSON,
|
|
26
|
+
ManualLoginPasswordUpdateInputToJSON,
|
|
27
|
+
ManualRegisterInputFromJSON,
|
|
28
|
+
ManualRegisterInputToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
31
|
export interface ApiV1AuthManualLoginPostRequest {
|
|
32
32
|
noRedirect?: number;
|
|
33
|
-
|
|
33
|
+
manualLoginInput?: ManualLoginInput;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export interface ApiV1AuthManualPasswordPutRequest {
|
|
37
|
-
|
|
37
|
+
manualLoginPasswordUpdateInput?: ManualLoginPasswordUpdateInput;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export interface ApiV1AuthManualRegisterPostRequest {
|
|
41
41
|
noRedirect?: number;
|
|
42
|
-
|
|
42
|
+
manualRegisterInput?: ManualRegisterInput;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -197,7 +197,7 @@ export class LoginApi extends runtime.BaseAPI {
|
|
|
197
197
|
method: 'POST',
|
|
198
198
|
headers: headerParameters,
|
|
199
199
|
query: queryParameters,
|
|
200
|
-
body:
|
|
200
|
+
body: ManualLoginInputToJSON(requestParameters['manualLoginInput']),
|
|
201
201
|
}, initOverrides);
|
|
202
202
|
|
|
203
203
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
@@ -232,7 +232,7 @@ export class LoginApi extends runtime.BaseAPI {
|
|
|
232
232
|
method: 'PUT',
|
|
233
233
|
headers: headerParameters,
|
|
234
234
|
query: queryParameters,
|
|
235
|
-
body:
|
|
235
|
+
body: ManualLoginPasswordUpdateInputToJSON(requestParameters['manualLoginPasswordUpdateInput']),
|
|
236
236
|
}, initOverrides);
|
|
237
237
|
|
|
238
238
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
@@ -271,7 +271,7 @@ export class LoginApi extends runtime.BaseAPI {
|
|
|
271
271
|
method: 'POST',
|
|
272
272
|
headers: headerParameters,
|
|
273
273
|
query: queryParameters,
|
|
274
|
-
body:
|
|
274
|
+
body: ManualRegisterInputToJSON(requestParameters['manualRegisterInput']),
|
|
275
275
|
}, initOverrides);
|
|
276
276
|
|
|
277
277
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
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
|
-
Def81,
|
|
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
|
-
Def81FromJSON,
|
|
43
|
-
Def81ToJSON,
|
|
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,7 +75,7 @@ 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 = {};
|
|
@@ -94,13 +91,13 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
94
91
|
query: queryParameters,
|
|
95
92
|
}, initOverrides);
|
|
96
93
|
|
|
97
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapListOutputFromJSON(jsonValue));
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
/**
|
|
101
98
|
* List of maps for the user
|
|
102
99
|
*/
|
|
103
|
-
async apiV1MapGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
100
|
+
async apiV1MapGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapListOutput> {
|
|
104
101
|
const response = await this.apiV1MapGetRaw(initOverrides);
|
|
105
102
|
return await response.value();
|
|
106
103
|
}
|
|
@@ -108,7 +105,7 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
108
105
|
/**
|
|
109
106
|
* Loads map
|
|
110
107
|
*/
|
|
111
|
-
async apiV1MapMapIdGetRaw(requestParameters: ApiV1MapMapIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
108
|
+
async apiV1MapMapIdGetRaw(requestParameters: ApiV1MapMapIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapOutput>> {
|
|
112
109
|
if (requestParameters['mapId'] == null) {
|
|
113
110
|
throw new runtime.RequiredError(
|
|
114
111
|
'mapId',
|
|
@@ -131,13 +128,13 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
131
128
|
query: queryParameters,
|
|
132
129
|
}, initOverrides);
|
|
133
130
|
|
|
134
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
131
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapOutputFromJSON(jsonValue));
|
|
135
132
|
}
|
|
136
133
|
|
|
137
134
|
/**
|
|
138
135
|
* Loads map
|
|
139
136
|
*/
|
|
140
|
-
async apiV1MapMapIdGet(requestParameters: ApiV1MapMapIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
137
|
+
async apiV1MapMapIdGet(requestParameters: ApiV1MapMapIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapOutput> {
|
|
141
138
|
const response = await this.apiV1MapMapIdGetRaw(requestParameters, initOverrides);
|
|
142
139
|
return await response.value();
|
|
143
140
|
}
|
|
@@ -145,7 +142,7 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
145
142
|
/**
|
|
146
143
|
* Lists layers for a given map
|
|
147
144
|
*/
|
|
148
|
-
async apiV1MapMapIdLayerGetRaw(requestParameters: ApiV1MapMapIdLayerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
145
|
+
async apiV1MapMapIdLayerGetRaw(requestParameters: ApiV1MapMapIdLayerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapLayerListOutput>> {
|
|
149
146
|
if (requestParameters['mapId'] == null) {
|
|
150
147
|
throw new runtime.RequiredError(
|
|
151
148
|
'mapId',
|
|
@@ -168,13 +165,13 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
168
165
|
query: queryParameters,
|
|
169
166
|
}, initOverrides);
|
|
170
167
|
|
|
171
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
168
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapLayerListOutputFromJSON(jsonValue));
|
|
172
169
|
}
|
|
173
170
|
|
|
174
171
|
/**
|
|
175
172
|
* Lists layers for a given map
|
|
176
173
|
*/
|
|
177
|
-
async apiV1MapMapIdLayerGet(requestParameters: ApiV1MapMapIdLayerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
174
|
+
async apiV1MapMapIdLayerGet(requestParameters: ApiV1MapMapIdLayerGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapLayerListOutput> {
|
|
178
175
|
const response = await this.apiV1MapMapIdLayerGetRaw(requestParameters, initOverrides);
|
|
179
176
|
return await response.value();
|
|
180
177
|
}
|
|
@@ -182,7 +179,7 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
182
179
|
/**
|
|
183
180
|
* Loads layer by id
|
|
184
181
|
*/
|
|
185
|
-
async apiV1MapMapIdLayerLayerIdGetRaw(requestParameters: ApiV1MapMapIdLayerLayerIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
182
|
+
async apiV1MapMapIdLayerLayerIdGetRaw(requestParameters: ApiV1MapMapIdLayerLayerIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapLayerOutput>> {
|
|
186
183
|
if (requestParameters['mapId'] == null) {
|
|
187
184
|
throw new runtime.RequiredError(
|
|
188
185
|
'mapId',
|
|
@@ -212,13 +209,13 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
212
209
|
query: queryParameters,
|
|
213
210
|
}, initOverrides);
|
|
214
211
|
|
|
215
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapLayerOutputFromJSON(jsonValue));
|
|
216
213
|
}
|
|
217
214
|
|
|
218
215
|
/**
|
|
219
216
|
* Loads layer by id
|
|
220
217
|
*/
|
|
221
|
-
async apiV1MapMapIdLayerLayerIdGet(requestParameters: ApiV1MapMapIdLayerLayerIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
218
|
+
async apiV1MapMapIdLayerLayerIdGet(requestParameters: ApiV1MapMapIdLayerLayerIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapLayerOutput> {
|
|
222
219
|
const response = await this.apiV1MapMapIdLayerLayerIdGetRaw(requestParameters, initOverrides);
|
|
223
220
|
return await response.value();
|
|
224
221
|
}
|
|
@@ -226,7 +223,7 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
226
223
|
/**
|
|
227
224
|
* Loads all layer items
|
|
228
225
|
*/
|
|
229
|
-
async apiV1MapMapIdLayerLayerIdItemGetRaw(requestParameters: ApiV1MapMapIdLayerLayerIdItemGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
226
|
+
async apiV1MapMapIdLayerLayerIdItemGetRaw(requestParameters: ApiV1MapMapIdLayerLayerIdItemGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapItemListOutput>> {
|
|
230
227
|
if (requestParameters['mapId'] == null) {
|
|
231
228
|
throw new runtime.RequiredError(
|
|
232
229
|
'mapId',
|
|
@@ -256,13 +253,13 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
256
253
|
query: queryParameters,
|
|
257
254
|
}, initOverrides);
|
|
258
255
|
|
|
259
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
256
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapItemListOutputFromJSON(jsonValue));
|
|
260
257
|
}
|
|
261
258
|
|
|
262
259
|
/**
|
|
263
260
|
* Loads all layer items
|
|
264
261
|
*/
|
|
265
|
-
async apiV1MapMapIdLayerLayerIdItemGet(requestParameters: ApiV1MapMapIdLayerLayerIdItemGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
262
|
+
async apiV1MapMapIdLayerLayerIdItemGet(requestParameters: ApiV1MapMapIdLayerLayerIdItemGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapItemListOutput> {
|
|
266
263
|
const response = await this.apiV1MapMapIdLayerLayerIdItemGetRaw(requestParameters, initOverrides);
|
|
267
264
|
return await response.value();
|
|
268
265
|
}
|
|
@@ -270,7 +267,7 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
270
267
|
/**
|
|
271
268
|
* Adds layer to a map
|
|
272
269
|
*/
|
|
273
|
-
async apiV1MapMapIdLayerPostRaw(requestParameters: ApiV1MapMapIdLayerPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
270
|
+
async apiV1MapMapIdLayerPostRaw(requestParameters: ApiV1MapMapIdLayerPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapLayerOutput>> {
|
|
274
271
|
if (requestParameters['mapId'] == null) {
|
|
275
272
|
throw new runtime.RequiredError(
|
|
276
273
|
'mapId',
|
|
@@ -293,16 +290,16 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
293
290
|
method: 'POST',
|
|
294
291
|
headers: headerParameters,
|
|
295
292
|
query: queryParameters,
|
|
296
|
-
body:
|
|
293
|
+
body: MapLayerInputToJSON(requestParameters['mapLayerInput']),
|
|
297
294
|
}, initOverrides);
|
|
298
295
|
|
|
299
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
296
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapLayerOutputFromJSON(jsonValue));
|
|
300
297
|
}
|
|
301
298
|
|
|
302
299
|
/**
|
|
303
300
|
* Adds layer to a map
|
|
304
301
|
*/
|
|
305
|
-
async apiV1MapMapIdLayerPost(requestParameters: ApiV1MapMapIdLayerPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
302
|
+
async apiV1MapMapIdLayerPost(requestParameters: ApiV1MapMapIdLayerPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapLayerOutput> {
|
|
306
303
|
const response = await this.apiV1MapMapIdLayerPostRaw(requestParameters, initOverrides);
|
|
307
304
|
return await response.value();
|
|
308
305
|
}
|
|
@@ -310,7 +307,7 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
310
307
|
/**
|
|
311
308
|
* Adds map
|
|
312
309
|
*/
|
|
313
|
-
async apiV1MapPostRaw(requestParameters: ApiV1MapPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
310
|
+
async apiV1MapPostRaw(requestParameters: ApiV1MapPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MapOutput>> {
|
|
314
311
|
const queryParameters: any = {};
|
|
315
312
|
|
|
316
313
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -326,48 +323,18 @@ export class MapApi extends runtime.BaseAPI {
|
|
|
326
323
|
method: 'POST',
|
|
327
324
|
headers: headerParameters,
|
|
328
325
|
query: queryParameters,
|
|
329
|
-
body:
|
|
326
|
+
body: MapORMToJSON(requestParameters['mapORM']),
|
|
330
327
|
}, initOverrides);
|
|
331
328
|
|
|
332
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
329
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MapOutputFromJSON(jsonValue));
|
|
333
330
|
}
|
|
334
331
|
|
|
335
332
|
/**
|
|
336
333
|
* Adds map
|
|
337
334
|
*/
|
|
338
|
-
async apiV1MapPost(requestParameters: ApiV1MapPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
335
|
+
async apiV1MapPost(requestParameters: ApiV1MapPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapOutput> {
|
|
339
336
|
const response = await this.apiV1MapPostRaw(requestParameters, initOverrides);
|
|
340
337
|
return await response.value();
|
|
341
338
|
}
|
|
342
339
|
|
|
343
|
-
/**
|
|
344
|
-
* Adds an item to the map
|
|
345
|
-
*/
|
|
346
|
-
async apiV1MapSearchGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Def81>> {
|
|
347
|
-
const queryParameters: any = {};
|
|
348
|
-
|
|
349
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
350
|
-
|
|
351
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
352
|
-
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
const response = await this.request({
|
|
356
|
-
path: `/api/v1/map/search`,
|
|
357
|
-
method: 'GET',
|
|
358
|
-
headers: headerParameters,
|
|
359
|
-
query: queryParameters,
|
|
360
|
-
}, initOverrides);
|
|
361
|
-
|
|
362
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => Def81FromJSON(jsonValue));
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* Adds an item to the map
|
|
367
|
-
*/
|
|
368
|
-
async apiV1MapSearchGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Def81> {
|
|
369
|
-
const response = await this.apiV1MapSearchGetRaw(initOverrides);
|
|
370
|
-
return await response.value();
|
|
371
|
-
}
|
|
372
|
-
|
|
373
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 {
|
|
@@ -121,7 +121,7 @@ export class MultimediaApi extends runtime.BaseAPI {
|
|
|
121
121
|
* Uploads a file
|
|
122
122
|
* You need to send the file object in the file field of the form
|
|
123
123
|
*/
|
|
124
|
-
async apiV1MultimediaPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
124
|
+
async apiV1MultimediaPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MultimediaOutput>> {
|
|
125
125
|
const queryParameters: any = {};
|
|
126
126
|
|
|
127
127
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -137,14 +137,14 @@ export class MultimediaApi extends runtime.BaseAPI {
|
|
|
137
137
|
query: queryParameters,
|
|
138
138
|
}, initOverrides);
|
|
139
139
|
|
|
140
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
140
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MultimediaOutputFromJSON(jsonValue));
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Uploads a file
|
|
145
145
|
* You need to send the file object in the file field of the form
|
|
146
146
|
*/
|
|
147
|
-
async apiV1MultimediaPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
147
|
+
async apiV1MultimediaPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MultimediaOutput> {
|
|
148
148
|
const response = await this.apiV1MultimediaPostRaw(initOverrides);
|
|
149
149
|
return await response.value();
|
|
150
150
|
}
|