@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
@@ -15,26 +15,29 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- Def18,
19
- Def52,
20
- Def53,
21
- Def54,
18
+ JournalEntryListOutput,
19
+ JournalEntryMultimediaInput,
20
+ JournalEntryMultimediaOutput,
21
+ JournalEntryORM,
22
+ JournalEntryOutput,
22
23
  } from '../models/index';
23
24
  import {
24
- Def18FromJSON,
25
- Def18ToJSON,
26
- Def52FromJSON,
27
- Def52ToJSON,
28
- Def53FromJSON,
29
- Def53ToJSON,
30
- Def54FromJSON,
31
- Def54ToJSON,
25
+ JournalEntryListOutputFromJSON,
26
+ JournalEntryListOutputToJSON,
27
+ JournalEntryMultimediaInputFromJSON,
28
+ JournalEntryMultimediaInputToJSON,
29
+ JournalEntryMultimediaOutputFromJSON,
30
+ JournalEntryMultimediaOutputToJSON,
31
+ JournalEntryORMFromJSON,
32
+ JournalEntryORMToJSON,
33
+ JournalEntryOutputFromJSON,
34
+ JournalEntryOutputToJSON,
32
35
  } from '../models/index';
33
36
 
34
37
  export interface ApiV1JournalParentIdEntryJournalEntryIdMultimediaPostRequest {
35
38
  parentId: string;
36
39
  journalEntryId: string;
37
- body?: Def52;
40
+ journalEntryMultimediaInput?: JournalEntryMultimediaInput;
38
41
  }
39
42
 
40
43
  export interface ApiV1JournalParentIdGetRequest {
@@ -43,7 +46,7 @@ export interface ApiV1JournalParentIdGetRequest {
43
46
 
44
47
  export interface ApiV1JournalParentIdPostRequest {
45
48
  parentId: string;
46
- body?: Def18;
49
+ journalEntryORM?: JournalEntryORM;
47
50
  }
48
51
 
49
52
  /**
@@ -54,7 +57,7 @@ export class JournalApi extends runtime.BaseAPI {
54
57
  /**
55
58
  * Adds multiemedia to the log entry
56
59
  */
57
- async apiV1JournalParentIdEntryJournalEntryIdMultimediaPostRaw(requestParameters: ApiV1JournalParentIdEntryJournalEntryIdMultimediaPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
60
+ async apiV1JournalParentIdEntryJournalEntryIdMultimediaPostRaw(requestParameters: ApiV1JournalParentIdEntryJournalEntryIdMultimediaPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JournalEntryMultimediaOutput>> {
58
61
  if (requestParameters['parentId'] == null) {
59
62
  throw new runtime.RequiredError(
60
63
  'parentId',
@@ -75,21 +78,25 @@ export class JournalApi extends runtime.BaseAPI {
75
78
 
76
79
  headerParameters['Content-Type'] = 'application/json';
77
80
 
81
+ if (this.configuration && this.configuration.apiKey) {
82
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
83
+ }
84
+
78
85
  const response = await this.request({
79
86
  path: `/api/v1/journal/{parentId}/entry/{journalEntryId}/multimedia`.replace(`{${"parentId"}}`, encodeURIComponent(String(requestParameters['parentId']))).replace(`{${"journalEntryId"}}`, encodeURIComponent(String(requestParameters['journalEntryId']))),
80
87
  method: 'POST',
81
88
  headers: headerParameters,
82
89
  query: queryParameters,
83
- body: Def52ToJSON(requestParameters['body']),
90
+ body: JournalEntryMultimediaInputToJSON(requestParameters['journalEntryMultimediaInput']),
84
91
  }, initOverrides);
85
92
 
86
- return new runtime.JSONApiResponse<any>(response);
93
+ return new runtime.JSONApiResponse(response, (jsonValue) => JournalEntryMultimediaOutputFromJSON(jsonValue));
87
94
  }
88
95
 
89
96
  /**
90
97
  * Adds multiemedia to the log entry
91
98
  */
92
- async apiV1JournalParentIdEntryJournalEntryIdMultimediaPost(requestParameters: ApiV1JournalParentIdEntryJournalEntryIdMultimediaPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
99
+ async apiV1JournalParentIdEntryJournalEntryIdMultimediaPost(requestParameters: ApiV1JournalParentIdEntryJournalEntryIdMultimediaPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JournalEntryMultimediaOutput> {
93
100
  const response = await this.apiV1JournalParentIdEntryJournalEntryIdMultimediaPostRaw(requestParameters, initOverrides);
94
101
  return await response.value();
95
102
  }
@@ -97,7 +104,7 @@ export class JournalApi extends runtime.BaseAPI {
97
104
  /**
98
105
  * List all journal entries
99
106
  */
100
- async apiV1JournalParentIdGetRaw(requestParameters: ApiV1JournalParentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Def54>> {
107
+ async apiV1JournalParentIdGetRaw(requestParameters: ApiV1JournalParentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JournalEntryListOutput>> {
101
108
  if (requestParameters['parentId'] == null) {
102
109
  throw new runtime.RequiredError(
103
110
  'parentId',
@@ -109,6 +116,10 @@ export class JournalApi extends runtime.BaseAPI {
109
116
 
110
117
  const headerParameters: runtime.HTTPHeaders = {};
111
118
 
119
+ if (this.configuration && this.configuration.apiKey) {
120
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
121
+ }
122
+
112
123
  const response = await this.request({
113
124
  path: `/api/v1/journal/{parentId}`.replace(`{${"parentId"}}`, encodeURIComponent(String(requestParameters['parentId']))),
114
125
  method: 'GET',
@@ -116,13 +127,13 @@ export class JournalApi extends runtime.BaseAPI {
116
127
  query: queryParameters,
117
128
  }, initOverrides);
118
129
 
119
- return new runtime.JSONApiResponse(response, (jsonValue) => Def54FromJSON(jsonValue));
130
+ return new runtime.JSONApiResponse(response, (jsonValue) => JournalEntryListOutputFromJSON(jsonValue));
120
131
  }
121
132
 
122
133
  /**
123
134
  * List all journal entries
124
135
  */
125
- async apiV1JournalParentIdGet(requestParameters: ApiV1JournalParentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Def54> {
136
+ async apiV1JournalParentIdGet(requestParameters: ApiV1JournalParentIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JournalEntryListOutput> {
126
137
  const response = await this.apiV1JournalParentIdGetRaw(requestParameters, initOverrides);
127
138
  return await response.value();
128
139
  }
@@ -130,7 +141,7 @@ export class JournalApi extends runtime.BaseAPI {
130
141
  /**
131
142
  * Adds a journal entry to the parent object
132
143
  */
133
- async apiV1JournalParentIdPostRaw(requestParameters: ApiV1JournalParentIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Def53>> {
144
+ async apiV1JournalParentIdPostRaw(requestParameters: ApiV1JournalParentIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JournalEntryOutput>> {
134
145
  if (requestParameters['parentId'] == null) {
135
146
  throw new runtime.RequiredError(
136
147
  'parentId',
@@ -144,21 +155,25 @@ export class JournalApi extends runtime.BaseAPI {
144
155
 
145
156
  headerParameters['Content-Type'] = 'application/json';
146
157
 
158
+ if (this.configuration && this.configuration.apiKey) {
159
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
160
+ }
161
+
147
162
  const response = await this.request({
148
163
  path: `/api/v1/journal/{parentId}`.replace(`{${"parentId"}}`, encodeURIComponent(String(requestParameters['parentId']))),
149
164
  method: 'POST',
150
165
  headers: headerParameters,
151
166
  query: queryParameters,
152
- body: Def18ToJSON(requestParameters['body']),
167
+ body: JournalEntryORMToJSON(requestParameters['journalEntryORM']),
153
168
  }, initOverrides);
154
169
 
155
- return new runtime.JSONApiResponse(response, (jsonValue) => Def53FromJSON(jsonValue));
170
+ return new runtime.JSONApiResponse(response, (jsonValue) => JournalEntryOutputFromJSON(jsonValue));
156
171
  }
157
172
 
158
173
  /**
159
174
  * Adds a journal entry to the parent object
160
175
  */
161
- async apiV1JournalParentIdPost(requestParameters: ApiV1JournalParentIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Def53> {
176
+ async apiV1JournalParentIdPost(requestParameters: ApiV1JournalParentIdPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JournalEntryOutput> {
162
177
  const response = await this.apiV1JournalParentIdPostRaw(requestParameters, initOverrides);
163
178
  return await response.value();
164
179
  }
@@ -15,18 +15,28 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- Def22,
19
- Def71,
18
+ LocationORM,
19
+ LocationOutput,
20
+ MapZoneInput,
21
+ MapZoneOutput,
20
22
  } from '../models/index';
21
23
  import {
22
- Def22FromJSON,
23
- Def22ToJSON,
24
- Def71FromJSON,
25
- Def71ToJSON,
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 ApiV1LocationPostRequest {
29
- body?: Def22;
34
+ export interface ApiV1LocationPointPostRequest {
35
+ locationORM?: LocationORM;
36
+ }
37
+
38
+ export interface ApiV1LocationZonePostRequest {
39
+ mapZoneInput?: MapZoneInput;
30
40
  }
31
41
 
32
42
  /**
@@ -37,29 +47,66 @@ export class LocationApi extends runtime.BaseAPI {
37
47
  /**
38
48
  * Adds a location to the system
39
49
  */
40
- async apiV1LocationPostRaw(requestParameters: ApiV1LocationPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Def71>> {
50
+ async apiV1LocationPointPostRaw(requestParameters: ApiV1LocationPointPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LocationOutput>> {
41
51
  const queryParameters: any = {};
42
52
 
43
53
  const headerParameters: runtime.HTTPHeaders = {};
44
54
 
45
55
  headerParameters['Content-Type'] = 'application/json';
46
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>> {
84
+ const queryParameters: any = {};
85
+
86
+ const headerParameters: runtime.HTTPHeaders = {};
87
+
88
+ headerParameters['Content-Type'] = 'application/json';
89
+
90
+ if (this.configuration && this.configuration.apiKey) {
91
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
92
+ }
93
+
47
94
  const response = await this.request({
48
- path: `/api/v1/location`,
95
+ path: `/api/v1/location/zone`,
49
96
  method: 'POST',
50
97
  headers: headerParameters,
51
98
  query: queryParameters,
52
- body: Def22ToJSON(requestParameters['body']),
99
+ body: MapZoneInputToJSON(requestParameters['mapZoneInput']),
53
100
  }, initOverrides);
54
101
 
55
- return new runtime.JSONApiResponse(response, (jsonValue) => Def71FromJSON(jsonValue));
102
+ return new runtime.JSONApiResponse(response, (jsonValue) => MapZoneOutputFromJSON(jsonValue));
56
103
  }
57
104
 
58
105
  /**
59
106
  * Adds a location to the system
60
107
  */
61
- async apiV1LocationPost(requestParameters: ApiV1LocationPostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Def71> {
62
- const response = await this.apiV1LocationPostRaw(requestParameters, initOverrides);
108
+ async apiV1LocationZonePost(requestParameters: ApiV1LocationZonePostRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MapZoneOutput> {
109
+ const response = await this.apiV1LocationZonePostRaw(requestParameters, initOverrides);
63
110
  return await response.value();
64
111
  }
65
112
 
@@ -15,22 +15,31 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- Def43,
19
- Def44,
18
+ ManualLoginInput,
19
+ ManualLoginPasswordUpdateInput,
20
+ ManualRegisterInput,
20
21
  } from '../models/index';
21
22
  import {
22
- Def43FromJSON,
23
- Def43ToJSON,
24
- Def44FromJSON,
25
- Def44ToJSON,
23
+ ManualLoginInputFromJSON,
24
+ ManualLoginInputToJSON,
25
+ ManualLoginPasswordUpdateInputFromJSON,
26
+ ManualLoginPasswordUpdateInputToJSON,
27
+ ManualRegisterInputFromJSON,
28
+ ManualRegisterInputToJSON,
26
29
  } from '../models/index';
27
30
 
28
31
  export interface ApiV1AuthManualLoginPostRequest {
29
- body?: Def44;
32
+ noRedirect?: number;
33
+ manualLoginInput?: ManualLoginInput;
34
+ }
35
+
36
+ export interface ApiV1AuthManualPasswordPutRequest {
37
+ manualLoginPasswordUpdateInput?: ManualLoginPasswordUpdateInput;
30
38
  }
31
39
 
32
40
  export interface ApiV1AuthManualRegisterPostRequest {
33
- body?: Def43;
41
+ noRedirect?: number;
42
+ manualRegisterInput?: ManualRegisterInput;
34
43
  }
35
44
 
36
45
  /**
@@ -45,6 +54,10 @@ export class LoginApi extends runtime.BaseAPI {
45
54
 
46
55
  const headerParameters: runtime.HTTPHeaders = {};
47
56
 
57
+ if (this.configuration && this.configuration.apiKey) {
58
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
59
+ }
60
+
48
61
  const response = await this.request({
49
62
  path: `/api/v1/auth/google/callback`,
50
63
  method: 'GET',
@@ -73,6 +86,10 @@ export class LoginApi extends runtime.BaseAPI {
73
86
 
74
87
  const headerParameters: runtime.HTTPHeaders = {};
75
88
 
89
+ if (this.configuration && this.configuration.apiKey) {
90
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
91
+ }
92
+
76
93
  const response = await this.request({
77
94
  path: `/api/v1/auth/google/callback`,
78
95
  method: 'POST',
@@ -101,6 +118,10 @@ export class LoginApi extends runtime.BaseAPI {
101
118
 
102
119
  const headerParameters: runtime.HTTPHeaders = {};
103
120
 
121
+ if (this.configuration && this.configuration.apiKey) {
122
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
123
+ }
124
+
104
125
  const response = await this.request({
105
126
  path: `/api/v1/auth/google/login`,
106
127
  method: 'GET',
@@ -129,6 +150,10 @@ export class LoginApi extends runtime.BaseAPI {
129
150
 
130
151
  const headerParameters: runtime.HTTPHeaders = {};
131
152
 
153
+ if (this.configuration && this.configuration.apiKey) {
154
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
155
+ }
156
+
132
157
  const response = await this.request({
133
158
  path: `/api/v1/auth/google/login`,
134
159
  method: 'POST',
@@ -155,16 +180,24 @@ export class LoginApi extends runtime.BaseAPI {
155
180
  async apiV1AuthManualLoginPostRaw(requestParameters: ApiV1AuthManualLoginPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
156
181
  const queryParameters: any = {};
157
182
 
183
+ if (requestParameters['noRedirect'] != null) {
184
+ queryParameters['noRedirect'] = requestParameters['noRedirect'];
185
+ }
186
+
158
187
  const headerParameters: runtime.HTTPHeaders = {};
159
188
 
160
189
  headerParameters['Content-Type'] = 'application/json';
161
190
 
191
+ if (this.configuration && this.configuration.apiKey) {
192
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
193
+ }
194
+
162
195
  const response = await this.request({
163
196
  path: `/api/v1/auth/manual/login`,
164
197
  method: 'POST',
165
198
  headers: headerParameters,
166
199
  query: queryParameters,
167
- body: Def44ToJSON(requestParameters['body']),
200
+ body: ManualLoginInputToJSON(requestParameters['manualLoginInput']),
168
201
  }, initOverrides);
169
202
 
170
203
  if (this.isJsonMime(response.headers.get('content-type'))) {
@@ -181,21 +214,64 @@ export class LoginApi extends runtime.BaseAPI {
181
214
  return await response.value();
182
215
  }
183
216
 
217
+ /**
218
+ */
219
+ async apiV1AuthManualPasswordPutRaw(requestParameters: ApiV1AuthManualPasswordPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
220
+ const queryParameters: any = {};
221
+
222
+ const headerParameters: runtime.HTTPHeaders = {};
223
+
224
+ headerParameters['Content-Type'] = 'application/json';
225
+
226
+ if (this.configuration && this.configuration.apiKey) {
227
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
228
+ }
229
+
230
+ const response = await this.request({
231
+ path: `/api/v1/auth/manual/password`,
232
+ method: 'PUT',
233
+ headers: headerParameters,
234
+ query: queryParameters,
235
+ body: ManualLoginPasswordUpdateInputToJSON(requestParameters['manualLoginPasswordUpdateInput']),
236
+ }, initOverrides);
237
+
238
+ if (this.isJsonMime(response.headers.get('content-type'))) {
239
+ return new runtime.JSONApiResponse<string>(response);
240
+ } else {
241
+ return new runtime.TextApiResponse(response) as any;
242
+ }
243
+ }
244
+
245
+ /**
246
+ */
247
+ async apiV1AuthManualPasswordPut(requestParameters: ApiV1AuthManualPasswordPutRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
248
+ const response = await this.apiV1AuthManualPasswordPutRaw(requestParameters, initOverrides);
249
+ return await response.value();
250
+ }
251
+
184
252
  /**
185
253
  */
186
254
  async apiV1AuthManualRegisterPostRaw(requestParameters: ApiV1AuthManualRegisterPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
187
255
  const queryParameters: any = {};
188
256
 
257
+ if (requestParameters['noRedirect'] != null) {
258
+ queryParameters['noRedirect'] = requestParameters['noRedirect'];
259
+ }
260
+
189
261
  const headerParameters: runtime.HTTPHeaders = {};
190
262
 
191
263
  headerParameters['Content-Type'] = 'application/json';
192
264
 
265
+ if (this.configuration && this.configuration.apiKey) {
266
+ headerParameters["apiKey"] = await this.configuration.apiKey("apiKey"); // apiKey authentication
267
+ }
268
+
193
269
  const response = await this.request({
194
270
  path: `/api/v1/auth/manual/register`,
195
271
  method: 'POST',
196
272
  headers: headerParameters,
197
273
  query: queryParameters,
198
- body: Def43ToJSON(requestParameters['body']),
274
+ body: ManualRegisterInputToJSON(requestParameters['manualRegisterInput']),
199
275
  }, initOverrides);
200
276
 
201
277
  if (this.isJsonMime(response.headers.get('content-type'))) {