@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.
Files changed (229) hide show
  1. package/package.json +3 -3
  2. package/src/apis/AccountApi.ts +56 -46
  3. package/src/apis/ArticleApi.ts +10 -6
  4. package/src/apis/HealthcheckApi.ts +4 -0
  5. package/src/apis/ItemApi.ts +359 -66
  6. package/src/apis/JournalApi.ts +40 -25
  7. package/src/apis/LocationApi.ts +61 -14
  8. package/src/apis/LoginApi.ts +86 -10
  9. package/src/apis/MapApi.ts +74 -75
  10. package/src/apis/MultimediaApi.ts +18 -6
  11. package/src/apis/OrganizationApi.ts +269 -0
  12. package/src/apis/ReportApi.ts +49 -23
  13. package/src/apis/SearchApi.ts +38 -10
  14. package/src/apis/SourceApi.ts +25 -17
  15. package/src/apis/StateMachineApi.ts +10 -6
  16. package/src/apis/index.ts +1 -1
  17. package/src/models/{Def1.ts → AccountORM.ts} +13 -21
  18. package/src/models/AccountOutput.ts +74 -0
  19. package/src/models/AddUserToOrganizationDto.ts +74 -0
  20. package/src/models/{Def4.ts → ArticleORM.ts} +26 -31
  21. package/src/models/ArticlePresentationORM.ts +83 -0
  22. package/src/models/ArticleTypeORM.ts +74 -0
  23. package/src/models/AutoCompleteORM.ts +98 -0
  24. package/src/models/AvailableArticlesDto.ts +138 -0
  25. package/src/models/AvailableArticlesOutput.ts +74 -0
  26. package/src/models/AxisTitle.ts +75 -0
  27. package/src/models/ChartConfiguration.ts +99 -0
  28. package/src/models/ChartData.ts +74 -0
  29. package/src/models/ChartDataset.ts +131 -0
  30. package/src/models/ChartLegend.ts +79 -0
  31. package/src/models/ChartOptions.ts +99 -0
  32. package/src/models/ChartPlugins.ts +90 -0
  33. package/src/models/ChartScales.ts +90 -0
  34. package/src/models/ChartTitle.ts +75 -0
  35. package/src/models/DataPoint.ts +75 -0
  36. package/src/models/ItemLayerLinkInputDto.ts +66 -0
  37. package/src/models/ItemLinkToLayerOutput.ts +66 -0
  38. package/src/models/ItemTypeFormDto.ts +106 -0
  39. package/src/models/ItemTypeFormOutput.ts +74 -0
  40. package/src/models/{Def16.ts → ItemTypeORM.ts} +19 -38
  41. package/src/models/ItemTypeOutput.ts +74 -0
  42. package/src/models/ItemsOutput.ts +74 -0
  43. package/src/models/JournalBookORM.ts +84 -0
  44. package/src/models/JournalEntryArticleORM.ts +110 -0
  45. package/src/models/JournalEntryListOutput.ts +74 -0
  46. package/src/models/JournalEntryMultimediaInput.ts +66 -0
  47. package/src/models/JournalEntryMultimediaORM.ts +83 -0
  48. package/src/models/JournalEntryMultimediaOutput.ts +66 -0
  49. package/src/models/{Def18.ts → JournalEntryORM.ts} +25 -23
  50. package/src/models/JournalEntryOutput.ts +74 -0
  51. package/src/models/JournalEntryOutputDto.ts +75 -0
  52. package/src/models/LegendPosition.ts +55 -0
  53. package/src/models/LocationORM.ts +218 -0
  54. package/src/models/LocationOutput.ts +74 -0
  55. package/src/models/MagnitudeORM.ts +74 -0
  56. package/src/models/ManualLoginInput.ts +75 -0
  57. package/src/models/ManualLoginPasswordUpdateInput.ts +75 -0
  58. package/src/models/{Def43.ts → ManualRegisterInput.ts} +14 -14
  59. package/src/models/MapItemArticleInputDto.ts +109 -0
  60. package/src/models/MapItemArticleORM.ts +110 -0
  61. package/src/models/{Def14.ts → MapItemCustomFieldDefinitionORM.ts} +17 -18
  62. package/src/models/MapItemDynamicFieldInputDto.ts +91 -0
  63. package/src/models/{Def13.ts → MapItemDynamicFieldORM.ts} +17 -18
  64. package/src/models/MapItemDynamicFieldWithDefinitionORM.ts +90 -0
  65. package/src/models/MapItemInput.ts +191 -0
  66. package/src/models/{Def11.ts → MapItemLinkORM.ts} +26 -23
  67. package/src/models/MapItemLinkOutput.ts +74 -0
  68. package/src/models/MapItemListOutput.ts +74 -0
  69. package/src/models/MapItemMultimediaORM.ts +83 -0
  70. package/src/models/MapItemMultimediaOutput.ts +74 -0
  71. package/src/models/MapItemNearByORM.ts +75 -0
  72. package/src/models/MapItemORM.ts +133 -0
  73. package/src/models/MapItemOutput.ts +74 -0
  74. package/src/models/MapItemOutputDto.ts +225 -0
  75. package/src/models/MapItemOutputDtoProps.ts +225 -0
  76. package/src/models/MapItemTypeDynamicFieldDefinitionOutput.ts +74 -0
  77. package/src/models/MapItemTypeDynamicFieldDefinitionValuesOutput.ts +66 -0
  78. package/src/models/MapItemTypeFormORM.ts +83 -0
  79. package/src/models/MapItemTypeFormSectionDto.ts +90 -0
  80. package/src/models/MapItemTypeFormSectionFieldORM.ts +101 -0
  81. package/src/models/MapItemTypeFormSectionORM.ts +92 -0
  82. package/src/models/MapItemTypeORM.ts +135 -0
  83. package/src/models/MapItemTypeOutput.ts +74 -0
  84. package/src/models/MapLayerInput.ts +84 -0
  85. package/src/models/MapLayerItemListOutput.ts +74 -0
  86. package/src/models/MapLayerItemORM.ts +101 -0
  87. package/src/models/MapLayerItemOutput.ts +74 -0
  88. package/src/models/MapLayerListOutput.ts +74 -0
  89. package/src/models/{Def7.ts → MapLayerORM.ts} +27 -33
  90. package/src/models/MapLayerOutput.ts +74 -0
  91. package/src/models/MapLayerOutputDto.ts +118 -0
  92. package/src/models/MapListOutput.ts +74 -0
  93. package/src/models/MapORM.ts +108 -0
  94. package/src/models/MapOutput.ts +74 -0
  95. package/src/models/MapZoneInput.ts +66 -0
  96. package/src/models/{Def62.ts → MapZoneORM.ts} +17 -25
  97. package/src/models/MapZoneOutput.ts +74 -0
  98. package/src/models/MapZoneOutputDto.ts +100 -0
  99. package/src/models/MapZonePointORM.ts +83 -0
  100. package/src/models/MeasureUnitORM.ts +92 -0
  101. package/src/models/ModelRequestContext.ts +74 -0
  102. package/src/models/MultimediaORM.ts +99 -0
  103. package/src/models/MultimediaOutput.ts +74 -0
  104. package/src/models/NominatimAddressORM.ts +147 -0
  105. package/src/models/NominatimORM.ts +192 -0
  106. package/src/models/{Def2.ts → OrganizationORM.ts} +16 -16
  107. package/src/models/{Def81.ts → ReportAvailableColumnDto.ts} +13 -13
  108. package/src/models/ReportAvailableColumnsListOutput.ts +74 -0
  109. package/src/models/ReportColumnFilterORM.ts +101 -0
  110. package/src/models/ReportColumnORM.ts +135 -0
  111. package/src/models/{Def78.ts → ReportConfigurationDto.ts} +13 -22
  112. package/src/models/ReportDataCSVDto.ts +66 -0
  113. package/src/models/ReportDataDto.ts +88 -0
  114. package/src/models/ReportDataJSONDto.ts +74 -0
  115. package/src/models/ReportDataORM.ts +74 -0
  116. package/src/models/ReportDataOutput.ts +74 -0
  117. package/src/models/{Def33.ts → ReportDataRowORM.ts} +12 -12
  118. package/src/models/ReportDto.ts +75 -0
  119. package/src/models/ReportListOutput.ts +74 -0
  120. package/src/models/ReportORM.ts +99 -0
  121. package/src/models/ReportOutput.ts +74 -0
  122. package/src/models/SearchORM.ts +84 -0
  123. package/src/models/SearchOutput.ts +74 -0
  124. package/src/models/SearchResultDto.ts +74 -0
  125. package/src/models/SearchResultSectionDto.ts +92 -0
  126. package/src/models/SearchResultSectionItem.ts +100 -0
  127. package/src/models/{Def90.ts → SourceDto.ts} +16 -15
  128. package/src/models/SourceListOutput.ts +74 -0
  129. package/src/models/SourceOutput.ts +74 -0
  130. package/src/models/StateMachineDefinitionListOutput.ts +74 -0
  131. package/src/models/StateMachineDefinitionOutputDto.ts +117 -0
  132. package/src/models/StateMachineORM.ts +82 -0
  133. package/src/models/{Def37.ts → StateMachineStateORM.ts} +20 -20
  134. package/src/models/StateMachineStateOutputDto.ts +84 -0
  135. package/src/models/{Def39.ts → StateMachineTransitionLogORM.ts} +20 -22
  136. package/src/models/{Def38.ts → StateMachineTransitionORM.ts} +18 -19
  137. package/src/models/StateMachineTransitionOutputDto.ts +93 -0
  138. package/src/models/UpdateUserInOrganizationPasswordDto.ts +66 -0
  139. package/src/models/UploadDto.ts +75 -0
  140. package/src/models/UploadOutput.ts +74 -0
  141. package/src/models/UserDto.ts +83 -0
  142. package/src/models/UserInOrganizationDto.ts +129 -0
  143. package/src/models/UserInOrganizationOutput.ts +74 -0
  144. package/src/models/{Def3.ts → UserORM.ts} +44 -34
  145. package/src/models/XAxisOptions.ts +83 -0
  146. package/src/models/YAxisOptions.ts +83 -0
  147. package/src/models/index.ts +130 -96
  148. package/src/.openapi-generator/FILES +0 -7
  149. package/src/.openapi-generator/VERSION +0 -1
  150. package/src/.openapi-generator-ignore +0 -23
  151. package/src/apis/DefaultApi.ts +0 -200
  152. package/src/models/Def0.ts +0 -73
  153. package/src/models/Def10.ts +0 -105
  154. package/src/models/Def12.ts +0 -81
  155. package/src/models/Def15.ts +0 -75
  156. package/src/models/Def17.ts +0 -81
  157. package/src/models/Def19.ts +0 -81
  158. package/src/models/Def20.ts +0 -105
  159. package/src/models/Def21.ts +0 -81
  160. package/src/models/Def22.ts +0 -217
  161. package/src/models/Def23.ts +0 -97
  162. package/src/models/Def24.ts +0 -127
  163. package/src/models/Def25.ts +0 -81
  164. package/src/models/Def26.ts +0 -81
  165. package/src/models/Def27.ts +0 -105
  166. package/src/models/Def28.ts +0 -121
  167. package/src/models/Def29.ts +0 -97
  168. package/src/models/Def30.ts +0 -113
  169. package/src/models/Def31.ts +0 -116
  170. package/src/models/Def32.ts +0 -121
  171. package/src/models/Def34.ts +0 -66
  172. package/src/models/Def35.ts +0 -81
  173. package/src/models/Def36.ts +0 -84
  174. package/src/models/Def40.ts +0 -137
  175. package/src/models/Def41.ts +0 -178
  176. package/src/models/Def42.ts +0 -66
  177. package/src/models/Def44.ts +0 -75
  178. package/src/models/Def45.ts +0 -74
  179. package/src/models/Def46.ts +0 -102
  180. package/src/models/Def47.ts +0 -66
  181. package/src/models/Def48.ts +0 -65
  182. package/src/models/Def49.ts +0 -66
  183. package/src/models/Def5.ts +0 -89
  184. package/src/models/Def50.ts +0 -66
  185. package/src/models/Def51.ts +0 -123
  186. package/src/models/Def52.ts +0 -66
  187. package/src/models/Def53.ts +0 -66
  188. package/src/models/Def54.ts +0 -66
  189. package/src/models/Def56.ts +0 -90
  190. package/src/models/Def57.ts +0 -182
  191. package/src/models/Def58.ts +0 -84
  192. package/src/models/Def59.ts +0 -66
  193. package/src/models/Def6.ts +0 -97
  194. package/src/models/Def60.ts +0 -66
  195. package/src/models/Def61.ts +0 -189
  196. package/src/models/Def63.ts +0 -66
  197. package/src/models/Def64.ts +0 -66
  198. package/src/models/Def65.ts +0 -66
  199. package/src/models/Def66.ts +0 -66
  200. package/src/models/Def67.ts +0 -66
  201. package/src/models/Def68.ts +0 -66
  202. package/src/models/Def69.ts +0 -66
  203. package/src/models/Def70.ts +0 -66
  204. package/src/models/Def71.ts +0 -66
  205. package/src/models/Def72.ts +0 -66
  206. package/src/models/Def73.ts +0 -66
  207. package/src/models/Def74.ts +0 -66
  208. package/src/models/Def75.ts +0 -75
  209. package/src/models/Def76.ts +0 -66
  210. package/src/models/Def77.ts +0 -66
  211. package/src/models/Def79.ts +0 -75
  212. package/src/models/Def8.ts +0 -137
  213. package/src/models/Def80.ts +0 -73
  214. package/src/models/Def82.ts +0 -66
  215. package/src/models/Def83.ts +0 -66
  216. package/src/models/Def84.ts +0 -66
  217. package/src/models/Def85.ts +0 -66
  218. package/src/models/Def86.ts +0 -92
  219. package/src/models/Def87.ts +0 -84
  220. package/src/models/Def88.ts +0 -66
  221. package/src/models/Def89.ts +0 -66
  222. package/src/models/Def9.ts +0 -113
  223. package/src/models/Def91.ts +0 -66
  224. package/src/models/Def92.ts +0 -66
  225. package/src/models/Def93.ts +0 -101
  226. package/src/models/Def94.ts +0 -66
  227. package/src/models/Def95.ts +0 -73
  228. package/src/models/Def96.ts +0 -66
  229. package/src/models/User.ts +0 -91
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jrojaspin/security-map-api-cli",
3
- "version": "1.8.0",
3
+ "version": "2.0.0",
4
4
  "description": "Backend API",
5
5
  "repository": "https://github.com/security-map/map-api",
6
6
  "license": "MIT",
@@ -54,7 +54,6 @@
54
54
  "reflect-metadata": "^0.2.1",
55
55
  "request": "^2.88.2",
56
56
  "rollup-plugin-dts": "^6.1.1",
57
- "typescript": "^5.3.3",
58
57
  "uuidv4": "^6.2.13",
59
58
  "yarn": "^1.22.21"
60
59
  },
@@ -95,7 +94,8 @@
95
94
  "rollup": "^4.19.0",
96
95
  "rollup-plugin-typescript2": "^0.36.0",
97
96
  "sinon": "^9.0.3",
98
- "ts-jest": "^29.1.1"
97
+ "ts-jest": "^29.1.1",
98
+ "typescript": "^5.3.3"
99
99
  },
100
100
  "publishConfig": {
101
101
  "access": "public"
@@ -15,29 +15,25 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- Def1,
19
- Def2,
20
- Def42,
18
+ AccountORM,
19
+ AccountOutput,
20
+ UserInOrganizationOutput,
21
21
  } from '../models/index';
22
22
  import {
23
- Def1FromJSON,
24
- Def1ToJSON,
25
- Def2FromJSON,
26
- Def2ToJSON,
27
- Def42FromJSON,
28
- Def42ToJSON,
23
+ AccountORMFromJSON,
24
+ AccountORMToJSON,
25
+ AccountOutputFromJSON,
26
+ AccountOutputToJSON,
27
+ UserInOrganizationOutputFromJSON,
28
+ UserInOrganizationOutputToJSON,
29
29
  } from '../models/index';
30
30
 
31
- export interface ApiV1AccountOrganizationPostRequest {
32
- body?: Def2;
31
+ export interface ApiV1AccountPostRequest {
32
+ accountORM?: AccountORM;
33
33
  }
34
34
 
35
- export interface ApiV1AccountOrganizationPutRequest {
36
- body?: Def2;
37
- }
38
-
39
- export interface ApiV1AccountPostRequest {
40
- body?: Def1;
35
+ export interface ApiV1AccountSearchHistoryDeleteRequest {
36
+ q?: string;
41
37
  }
42
38
 
43
39
  /**
@@ -48,11 +44,15 @@ export class AccountApi extends runtime.BaseAPI {
48
44
  /**
49
45
  * Loads account
50
46
  */
51
- async apiV1AccountGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Def42>> {
47
+ async apiV1AccountGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOutput>> {
52
48
  const queryParameters: any = {};
53
49
 
54
50
  const headerParameters: runtime.HTTPHeaders = {};
55
51
 
52
+ if (this.configuration && this.configuration.apiKey) {
53
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
54
+ }
55
+
56
56
  const response = await this.request({
57
57
  path: `/api/v1/account`,
58
58
  method: 'GET',
@@ -60,13 +60,13 @@ export class AccountApi extends runtime.BaseAPI {
60
60
  query: queryParameters,
61
61
  }, initOverrides);
62
62
 
63
- return new runtime.JSONApiResponse(response, (jsonValue) => Def42FromJSON(jsonValue));
63
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccountOutputFromJSON(jsonValue));
64
64
  }
65
65
 
66
66
  /**
67
67
  * Loads account
68
68
  */
69
- async apiV1AccountGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Def42> {
69
+ async apiV1AccountGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOutput> {
70
70
  const response = await this.apiV1AccountGetRaw(initOverrides);
71
71
  return await response.value();
72
72
  }
@@ -74,87 +74,97 @@ export class AccountApi extends runtime.BaseAPI {
74
74
  /**
75
75
  * Adds account
76
76
  */
77
- async apiV1AccountOrganizationPostRaw(requestParameters: ApiV1AccountOrganizationPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Def42>> {
77
+ async apiV1AccountPostRaw(requestParameters: ApiV1AccountPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOutput>> {
78
78
  const queryParameters: any = {};
79
79
 
80
80
  const headerParameters: runtime.HTTPHeaders = {};
81
81
 
82
82
  headerParameters['Content-Type'] = 'application/json';
83
83
 
84
+ if (this.configuration && this.configuration.apiKey) {
85
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
86
+ }
87
+
84
88
  const response = await this.request({
85
- path: `/api/v1/account/organization`,
89
+ path: `/api/v1/account`,
86
90
  method: 'POST',
87
91
  headers: headerParameters,
88
92
  query: queryParameters,
89
- body: Def2ToJSON(requestParameters['body']),
93
+ body: AccountORMToJSON(requestParameters['accountORM']),
90
94
  }, initOverrides);
91
95
 
92
- return new runtime.JSONApiResponse(response, (jsonValue) => Def42FromJSON(jsonValue));
96
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccountOutputFromJSON(jsonValue));
93
97
  }
94
98
 
95
99
  /**
96
100
  * Adds account
97
101
  */
98
- async apiV1AccountOrganizationPost(requestParameters: ApiV1AccountOrganizationPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Def42> {
99
- const response = await this.apiV1AccountOrganizationPostRaw(requestParameters, initOverrides);
102
+ async apiV1AccountPost(requestParameters: ApiV1AccountPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOutput> {
103
+ const response = await this.apiV1AccountPostRaw(requestParameters, initOverrides);
100
104
  return await response.value();
101
105
  }
102
106
 
103
107
  /**
104
- * Adds account
108
+ * Removes search entry from user search history.
105
109
  */
106
- async apiV1AccountOrganizationPutRaw(requestParameters: ApiV1AccountOrganizationPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Def42>> {
110
+ async apiV1AccountSearchHistoryDeleteRaw(requestParameters: ApiV1AccountSearchHistoryDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountOutput>> {
107
111
  const queryParameters: any = {};
108
112
 
113
+ if (requestParameters['q'] != null) {
114
+ queryParameters['q'] = requestParameters['q'];
115
+ }
116
+
109
117
  const headerParameters: runtime.HTTPHeaders = {};
110
118
 
111
- headerParameters['Content-Type'] = 'application/json';
119
+ if (this.configuration && this.configuration.apiKey) {
120
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
121
+ }
112
122
 
113
123
  const response = await this.request({
114
- path: `/api/v1/account/organization`,
115
- method: 'PUT',
124
+ path: `/api/v1/account/search/history`,
125
+ method: 'DELETE',
116
126
  headers: headerParameters,
117
127
  query: queryParameters,
118
- body: Def2ToJSON(requestParameters['body']),
119
128
  }, initOverrides);
120
129
 
121
- return new runtime.JSONApiResponse(response, (jsonValue) => Def42FromJSON(jsonValue));
130
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccountOutputFromJSON(jsonValue));
122
131
  }
123
132
 
124
133
  /**
125
- * Adds account
134
+ * Removes search entry from user search history.
126
135
  */
127
- async apiV1AccountOrganizationPut(requestParameters: ApiV1AccountOrganizationPutRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Def42> {
128
- const response = await this.apiV1AccountOrganizationPutRaw(requestParameters, initOverrides);
136
+ async apiV1AccountSearchHistoryDelete(requestParameters: ApiV1AccountSearchHistoryDeleteRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountOutput> {
137
+ const response = await this.apiV1AccountSearchHistoryDeleteRaw(requestParameters, initOverrides);
129
138
  return await response.value();
130
139
  }
131
140
 
132
141
  /**
133
- * Adds account
142
+ * list all users in organization
134
143
  */
135
- async apiV1AccountPostRaw(requestParameters: ApiV1AccountPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Def42>> {
144
+ async apiV1BackofficeUserGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserInOrganizationOutput>> {
136
145
  const queryParameters: any = {};
137
146
 
138
147
  const headerParameters: runtime.HTTPHeaders = {};
139
148
 
140
- headerParameters['Content-Type'] = 'application/json';
149
+ if (this.configuration && this.configuration.apiKey) {
150
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
151
+ }
141
152
 
142
153
  const response = await this.request({
143
- path: `/api/v1/account`,
144
- method: 'POST',
154
+ path: `/api/v1/backoffice/user`,
155
+ method: 'GET',
145
156
  headers: headerParameters,
146
157
  query: queryParameters,
147
- body: Def1ToJSON(requestParameters['body']),
148
158
  }, initOverrides);
149
159
 
150
- return new runtime.JSONApiResponse(response, (jsonValue) => Def42FromJSON(jsonValue));
160
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserInOrganizationOutputFromJSON(jsonValue));
151
161
  }
152
162
 
153
163
  /**
154
- * Adds account
164
+ * list all users in organization
155
165
  */
156
- async apiV1AccountPost(requestParameters: ApiV1AccountPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Def42> {
157
- const response = await this.apiV1AccountPostRaw(requestParameters, initOverrides);
166
+ async apiV1BackofficeUserGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserInOrganizationOutput> {
167
+ const response = await this.apiV1BackofficeUserGetRaw(initOverrides);
158
168
  return await response.value();
159
169
  }
160
170
 
@@ -15,11 +15,11 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- Def47,
18
+ AvailableArticlesOutput,
19
19
  } from '../models/index';
20
20
  import {
21
- Def47FromJSON,
22
- Def47ToJSON,
21
+ AvailableArticlesOutputFromJSON,
22
+ AvailableArticlesOutputToJSON,
23
23
  } from '../models/index';
24
24
 
25
25
  /**
@@ -31,11 +31,15 @@ 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<Def47>> {
34
+ async apiV1ArticleGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AvailableArticlesOutput>> {
35
35
  const queryParameters: any = {};
36
36
 
37
37
  const headerParameters: runtime.HTTPHeaders = {};
38
38
 
39
+ if (this.configuration && this.configuration.apiKey) {
40
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
41
+ }
42
+
39
43
  const response = await this.request({
40
44
  path: `/api/v1/article`,
41
45
  method: 'GET',
@@ -43,14 +47,14 @@ export class ArticleApi extends runtime.BaseAPI {
43
47
  query: queryParameters,
44
48
  }, initOverrides);
45
49
 
46
- return new runtime.JSONApiResponse(response, (jsonValue) => Def47FromJSON(jsonValue));
50
+ return new runtime.JSONApiResponse(response, (jsonValue) => AvailableArticlesOutputFromJSON(jsonValue));
47
51
  }
48
52
 
49
53
  /**
50
54
  * Lists all article types
51
55
  * It retuns all related data to articles. Article types, messure units, etc
52
56
  */
53
- async apiV1ArticleGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Def47> {
57
+ async apiV1ArticleGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AvailableArticlesOutput> {
54
58
  const response = await this.apiV1ArticleGetRaw(initOverrides);
55
59
  return await response.value();
56
60
  }
@@ -27,6 +27,10 @@ export class HealthcheckApi extends runtime.BaseAPI {
27
27
 
28
28
  const headerParameters: runtime.HTTPHeaders = {};
29
29
 
30
+ if (this.configuration && this.configuration.apiKey) {
31
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
32
+ }
33
+
30
34
  const response = await this.request({
31
35
  path: `/api/v1/healthcheck`,
32
36
  method: 'GET',