@jrojaspin/security-map-api-cli 1.9.0 → 2.1.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 +6 -4
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jrojaspin/security-map-api-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Backend API",
|
|
5
5
|
"repository": "https://github.com/security-map/map-api",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
+
"import": "./dist/index.mjs",
|
|
16
17
|
"require": "./dist/index.cjs",
|
|
17
|
-
"
|
|
18
|
+
"default": "./dist/index.mjs",
|
|
19
|
+
"types": "./dist/index.d.ts"
|
|
18
20
|
}
|
|
19
21
|
},
|
|
20
22
|
"dependencies": {
|
|
@@ -54,7 +56,6 @@
|
|
|
54
56
|
"reflect-metadata": "^0.2.1",
|
|
55
57
|
"request": "^2.88.2",
|
|
56
58
|
"rollup-plugin-dts": "^6.1.1",
|
|
57
|
-
"typescript": "^5.3.3",
|
|
58
59
|
"uuidv4": "^6.2.13",
|
|
59
60
|
"yarn": "^1.22.21"
|
|
60
61
|
},
|
|
@@ -95,7 +96,8 @@
|
|
|
95
96
|
"rollup": "^4.19.0",
|
|
96
97
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
97
98
|
"sinon": "^9.0.3",
|
|
98
|
-
"ts-jest": "^29.1.1"
|
|
99
|
+
"ts-jest": "^29.1.1",
|
|
100
|
+
"typescript": "^5.3.3"
|
|
99
101
|
},
|
|
100
102
|
"publishConfig": {
|
|
101
103
|
"access": "public"
|
package/src/apis/AccountApi.ts
CHANGED
|
@@ -15,21 +15,25 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
AccountORM,
|
|
19
|
+
AccountOutput,
|
|
20
|
+
UserInOrganizationOutput,
|
|
21
21
|
} from '../models/index';
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
AccountORMFromJSON,
|
|
24
|
+
AccountORMToJSON,
|
|
25
|
+
AccountOutputFromJSON,
|
|
26
|
+
AccountOutputToJSON,
|
|
27
|
+
UserInOrganizationOutputFromJSON,
|
|
28
|
+
UserInOrganizationOutputToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
31
|
export interface ApiV1AccountPostRequest {
|
|
32
|
-
|
|
32
|
+
accountORM?: AccountORM;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface ApiV1AccountSearchHistoryDeleteRequest {
|
|
36
|
+
q?: string;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
/**
|
|
@@ -40,7 +44,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
40
44
|
/**
|
|
41
45
|
* Loads account
|
|
42
46
|
*/
|
|
43
|
-
async apiV1AccountGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
47
|
+
async apiV1AccountGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOutput>> {
|
|
44
48
|
const queryParameters: any = {};
|
|
45
49
|
|
|
46
50
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -56,13 +60,13 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
56
60
|
query: queryParameters,
|
|
57
61
|
}, initOverrides);
|
|
58
62
|
|
|
59
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
63
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountOutputFromJSON(jsonValue));
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
/**
|
|
63
67
|
* Loads account
|
|
64
68
|
*/
|
|
65
|
-
async apiV1AccountGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
69
|
+
async apiV1AccountGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOutput> {
|
|
66
70
|
const response = await this.apiV1AccountGetRaw(initOverrides);
|
|
67
71
|
return await response.value();
|
|
68
72
|
}
|
|
@@ -70,7 +74,7 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
70
74
|
/**
|
|
71
75
|
* Adds account
|
|
72
76
|
*/
|
|
73
|
-
async apiV1AccountPostRaw(requestParameters: ApiV1AccountPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
77
|
+
async apiV1AccountPostRaw(requestParameters: ApiV1AccountPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOutput>> {
|
|
74
78
|
const queryParameters: any = {};
|
|
75
79
|
|
|
76
80
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -86,24 +90,58 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
86
90
|
method: 'POST',
|
|
87
91
|
headers: headerParameters,
|
|
88
92
|
query: queryParameters,
|
|
89
|
-
body:
|
|
93
|
+
body: AccountORMToJSON(requestParameters['accountORM']),
|
|
90
94
|
}, initOverrides);
|
|
91
95
|
|
|
92
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
96
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountOutputFromJSON(jsonValue));
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
/**
|
|
96
100
|
* Adds account
|
|
97
101
|
*/
|
|
98
|
-
async apiV1AccountPost(requestParameters: ApiV1AccountPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
102
|
+
async apiV1AccountPost(requestParameters: ApiV1AccountPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOutput> {
|
|
99
103
|
const response = await this.apiV1AccountPostRaw(requestParameters, initOverrides);
|
|
100
104
|
return await response.value();
|
|
101
105
|
}
|
|
102
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Removes search entry from user search history.
|
|
109
|
+
*/
|
|
110
|
+
async apiV1AccountSearchHistoryDeleteRaw(requestParameters: ApiV1AccountSearchHistoryDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOutput>> {
|
|
111
|
+
const queryParameters: any = {};
|
|
112
|
+
|
|
113
|
+
if (requestParameters['q'] != null) {
|
|
114
|
+
queryParameters['q'] = requestParameters['q'];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
118
|
+
|
|
119
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
120
|
+
headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const response = await this.request({
|
|
124
|
+
path: `/api/v1/account/search/history`,
|
|
125
|
+
method: 'DELETE',
|
|
126
|
+
headers: headerParameters,
|
|
127
|
+
query: queryParameters,
|
|
128
|
+
}, initOverrides);
|
|
129
|
+
|
|
130
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountOutputFromJSON(jsonValue));
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Removes search entry from user search history.
|
|
135
|
+
*/
|
|
136
|
+
async apiV1AccountSearchHistoryDelete(requestParameters: ApiV1AccountSearchHistoryDeleteRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOutput> {
|
|
137
|
+
const response = await this.apiV1AccountSearchHistoryDeleteRaw(requestParameters, initOverrides);
|
|
138
|
+
return await response.value();
|
|
139
|
+
}
|
|
140
|
+
|
|
103
141
|
/**
|
|
104
142
|
* list all users in organization
|
|
105
143
|
*/
|
|
106
|
-
async apiV1BackofficeUserGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
144
|
+
async apiV1BackofficeUserGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserInOrganizationOutput>> {
|
|
107
145
|
const queryParameters: any = {};
|
|
108
146
|
|
|
109
147
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -119,13 +157,13 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
119
157
|
query: queryParameters,
|
|
120
158
|
}, initOverrides);
|
|
121
159
|
|
|
122
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
160
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserInOrganizationOutputFromJSON(jsonValue));
|
|
123
161
|
}
|
|
124
162
|
|
|
125
163
|
/**
|
|
126
164
|
* list all users in organization
|
|
127
165
|
*/
|
|
128
|
-
async apiV1BackofficeUserGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
166
|
+
async apiV1BackofficeUserGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserInOrganizationOutput> {
|
|
129
167
|
const response = await this.apiV1BackofficeUserGetRaw(initOverrides);
|
|
130
168
|
return await response.value();
|
|
131
169
|
}
|
package/src/apis/ArticleApi.ts
CHANGED
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
AvailableArticlesOutput,
|
|
19
19
|
} from '../models/index';
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
AvailableArticlesOutputFromJSON,
|
|
22
|
+
AvailableArticlesOutputToJSON,
|
|
23
23
|
} from '../models/index';
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -31,7 +31,7 @@ export class ArticleApi extends runtime.BaseAPI {
|
|
|
31
31
|
* Lists all article types
|
|
32
32
|
* It retuns all related data to articles. Article types, messure units, etc
|
|
33
33
|
*/
|
|
34
|
-
async apiV1ArticleGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
34
|
+
async apiV1ArticleGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AvailableArticlesOutput>> {
|
|
35
35
|
const queryParameters: any = {};
|
|
36
36
|
|
|
37
37
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -47,14 +47,14 @@ export class ArticleApi extends runtime.BaseAPI {
|
|
|
47
47
|
query: queryParameters,
|
|
48
48
|
}, initOverrides);
|
|
49
49
|
|
|
50
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
50
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AvailableArticlesOutputFromJSON(jsonValue));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Lists all article types
|
|
55
55
|
* It retuns all related data to articles. Article types, messure units, etc
|
|
56
56
|
*/
|
|
57
|
-
async apiV1ArticleGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
57
|
+
async apiV1ArticleGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AvailableArticlesOutput> {
|
|
58
58
|
const response = await this.apiV1ArticleGetRaw(initOverrides);
|
|
59
59
|
return await response.value();
|
|
60
60
|
}
|