geonetwork-ui 2.5.0-dev.da7bc314b → 2.5.0-dev.e060bf76e

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 (220) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +11 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
  3. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +20 -17
  4. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +22 -2
  5. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  6. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  7. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +7 -4
  8. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +8 -8
  9. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +7 -4
  10. package/esm2022/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.mjs +3 -3
  11. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +2 -2
  12. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +2 -2
  13. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +2 -2
  14. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +3 -2
  15. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +2 -2
  16. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +7 -23
  17. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +2 -2
  18. package/esm2022/libs/feature/editor/src/lib/models/wizard-field.type.mjs +3 -4
  19. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
  20. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +25 -5
  21. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +10 -7
  22. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +4 -1
  23. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +7 -2
  24. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +9 -1
  25. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +19 -1
  26. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +6 -1
  27. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +6 -3
  28. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +1 -1
  29. package/esm2022/libs/ui/elements/src/lib/application-banner/application-banner.component.mjs +3 -3
  30. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +3 -3
  31. package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
  32. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +43 -3
  33. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +1 -6
  34. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +14 -4
  35. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +10 -3
  36. package/esm2022/libs/ui/widgets/src/index.mjs +1 -2
  37. package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +5 -6
  38. package/esm2022/libs/util/data-fetcher/src/lib/data-fetcher.mjs +5 -4
  39. package/esm2022/libs/util/data-fetcher/src/lib/readers/base-cache.mjs +12 -0
  40. package/esm2022/libs/util/data-fetcher/src/lib/readers/base-file.mjs +3 -3
  41. package/esm2022/libs/util/data-fetcher/src/lib/readers/base.mjs +1 -1
  42. package/esm2022/libs/util/data-fetcher/src/lib/readers/csv.mjs +2 -2
  43. package/esm2022/libs/util/data-fetcher/src/lib/readers/excel.mjs +2 -2
  44. package/esm2022/libs/util/data-fetcher/src/lib/readers/geojson.mjs +2 -2
  45. package/esm2022/libs/util/data-fetcher/src/lib/readers/gml.mjs +5 -3
  46. package/esm2022/libs/util/data-fetcher/src/lib/readers/json.mjs +2 -2
  47. package/esm2022/libs/util/data-fetcher/src/lib/readers/wfs.mjs +19 -11
  48. package/esm2022/libs/util/data-fetcher/src/lib/utils.mjs +9 -7
  49. package/esm2022/translations/de.json +4 -76
  50. package/esm2022/translations/en.json +4 -76
  51. package/esm2022/translations/es.json +3 -75
  52. package/esm2022/translations/fr.json +16 -88
  53. package/esm2022/translations/it.json +21 -92
  54. package/esm2022/translations/nl.json +3 -75
  55. package/esm2022/translations/pt.json +3 -75
  56. package/fesm2022/geonetwork-ui.mjs +398 -853
  57. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  58. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  59. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +3 -0
  60. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
  61. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -0
  62. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  63. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +2 -1
  64. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  65. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -0
  66. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  67. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +2 -1
  68. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  69. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -1
  70. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  71. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +2 -2
  72. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  73. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +2 -1
  74. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  75. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -1
  76. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
  77. package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts +1 -3
  78. package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts.map +1 -1
  79. package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts +2 -3
  80. package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts.map +1 -1
  81. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +5 -1
  82. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  83. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +3 -2
  84. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  85. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +16 -1
  86. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  87. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +5 -0
  88. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  89. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +2 -0
  90. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  91. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +4 -1
  92. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  93. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +2 -0
  94. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  95. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +2 -1
  96. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
  97. package/libs/ui/inputs/src/index.d.ts +0 -1
  98. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  99. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +16 -1
  100. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  101. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +27 -28
  102. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  103. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +4 -2
  104. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
  105. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +3 -1
  106. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  107. package/libs/ui/widgets/src/index.d.ts +0 -1
  108. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  109. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +8 -9
  110. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
  111. package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts +2 -2
  112. package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts.map +1 -1
  113. package/libs/util/data-fetcher/src/lib/readers/base-cache.d.ts +8 -0
  114. package/libs/util/data-fetcher/src/lib/readers/base-cache.d.ts.map +1 -0
  115. package/libs/util/data-fetcher/src/lib/readers/base-file.d.ts +2 -2
  116. package/libs/util/data-fetcher/src/lib/readers/base-file.d.ts.map +1 -1
  117. package/libs/util/data-fetcher/src/lib/readers/base.d.ts +2 -2
  118. package/libs/util/data-fetcher/src/lib/readers/base.d.ts.map +1 -1
  119. package/libs/util/data-fetcher/src/lib/readers/gml.d.ts +5 -3
  120. package/libs/util/data-fetcher/src/lib/readers/gml.d.ts.map +1 -1
  121. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts +7 -4
  122. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts.map +1 -1
  123. package/libs/util/data-fetcher/src/lib/utils.d.ts +2 -2
  124. package/libs/util/data-fetcher/src/lib/utils.d.ts.map +1 -1
  125. package/package.json +1 -1
  126. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +25 -0
  127. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +4 -0
  128. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +22 -16
  129. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +41 -2
  130. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +3 -1
  131. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +4 -1
  132. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +75 -0
  133. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -1
  134. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +22 -9
  135. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +2 -1
  136. package/src/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.html +1 -1
  137. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +1 -0
  138. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +1 -1
  139. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +0 -13
  140. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.ts +0 -20
  141. package/src/libs/feature/editor/src/lib/fields.config.ts +1 -1
  142. package/src/libs/feature/editor/src/lib/models/wizard-field.type.ts +0 -1
  143. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +24 -11
  144. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +26 -4
  145. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +71 -60
  146. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +6 -3
  147. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +16 -0
  148. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +21 -2
  149. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +15 -0
  150. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +30 -1
  151. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +12 -0
  152. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -0
  153. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +1 -0
  154. package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.html +2 -2
  155. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts +2 -2
  156. package/src/libs/ui/inputs/src/index.ts +0 -1
  157. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +48 -0
  158. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  159. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +37 -1
  160. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +8 -2
  161. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +2 -0
  162. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +6 -0
  163. package/src/libs/ui/widgets/src/index.ts +0 -1
  164. package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +2 -3
  165. package/src/libs/util/data-fetcher/src/lib/data-fetcher.ts +13 -4
  166. package/src/libs/util/data-fetcher/src/lib/readers/base-cache.ts +14 -0
  167. package/src/libs/util/data-fetcher/src/lib/readers/base-file.ts +2 -1
  168. package/src/libs/util/data-fetcher/src/lib/readers/base.ts +2 -2
  169. package/src/libs/util/data-fetcher/src/lib/readers/csv.ts +1 -1
  170. package/src/libs/util/data-fetcher/src/lib/readers/excel.ts +1 -1
  171. package/src/libs/util/data-fetcher/src/lib/readers/geojson.ts +1 -1
  172. package/src/libs/util/data-fetcher/src/lib/readers/gml.ts +7 -7
  173. package/src/libs/util/data-fetcher/src/lib/readers/json.ts +1 -1
  174. package/src/libs/util/data-fetcher/src/lib/readers/wfs.ts +34 -11
  175. package/src/libs/util/data-fetcher/src/lib/utils.ts +36 -32
  176. package/translations/de.json +4 -76
  177. package/translations/en.json +4 -76
  178. package/translations/es.json +3 -75
  179. package/translations/fr.json +16 -88
  180. package/translations/it.json +21 -92
  181. package/translations/nl.json +3 -75
  182. package/translations/pt.json +3 -75
  183. package/translations/sk.json +3 -75
  184. package/esm2022/libs/ui/inputs/src/lib/chips-input/chips-input.component.mjs +0 -78
  185. package/esm2022/libs/ui/widgets/src/lib/step-bar/step-bar.component.mjs +0 -55
  186. package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts +0 -33
  187. package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts.map +0 -1
  188. package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts +0 -21
  189. package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts.map +0 -1
  190. package/src/libs/data-access/datafeeder/src/index.ts +0 -1
  191. package/src/libs/data-access/datafeeder/src/openapi/api/api.ts +0 -11
  192. package/src/libs/data-access/datafeeder/src/openapi/api/config.api.service.ts +0 -168
  193. package/src/libs/data-access/datafeeder/src/openapi/api/dataPublishing.api.service.ts +0 -270
  194. package/src/libs/data-access/datafeeder/src/openapi/api/fileUpload.api.service.ts +0 -734
  195. package/src/libs/data-access/datafeeder/src/openapi/api.module.ts +0 -46
  196. package/src/libs/data-access/datafeeder/src/openapi/configuration.ts +0 -125
  197. package/src/libs/data-access/datafeeder/src/openapi/encoder.ts +0 -20
  198. package/src/libs/data-access/datafeeder/src/openapi/index.ts +0 -5
  199. package/src/libs/data-access/datafeeder/src/openapi/model/analysisStatusEnum.api.model.ts +0 -24
  200. package/src/libs/data-access/datafeeder/src/openapi/model/boundingBox.api.model.ts +0 -20
  201. package/src/libs/data-access/datafeeder/src/openapi/model/cRS.api.model.ts +0 -25
  202. package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +0 -45
  203. package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishRequest.api.model.ts +0 -39
  204. package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishingStatus.api.model.ts +0 -50
  205. package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +0 -39
  206. package/src/libs/data-access/datafeeder/src/openapi/model/models.ts +0 -13
  207. package/src/libs/data-access/datafeeder/src/openapi/model/property.api.model.ts +0 -17
  208. package/src/libs/data-access/datafeeder/src/openapi/model/publishJobStatus.api.model.ts +0 -33
  209. package/src/libs/data-access/datafeeder/src/openapi/model/publishRequest.api.model.ts +0 -16
  210. package/src/libs/data-access/datafeeder/src/openapi/model/publishStatusEnum.api.model.ts +0 -20
  211. package/src/libs/data-access/datafeeder/src/openapi/model/publishStepEnum.api.model.ts +0 -42
  212. package/src/libs/data-access/datafeeder/src/openapi/model/uploadJobStatus.api.model.ts +0 -33
  213. package/src/libs/data-access/datafeeder/src/openapi/variables.ts +0 -9
  214. package/src/libs/data-access/datafeeder/src/spec.yaml +0 -537
  215. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.css +0 -36
  216. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.html +0 -23
  217. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.ts +0 -81
  218. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.css +0 -3
  219. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.html +0 -13
  220. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.ts +0 -55
@@ -1,168 +0,0 @@
1
- /**
2
- * DataFeeder API
3
- * This API covers dataset upload and publishing features of the application
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: psc@georchestra.org
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /* tslint:disable:no-unused-variable member-ordering */
13
-
14
- import { Inject, Injectable, Optional } from '@angular/core'
15
- import {
16
- HttpClient,
17
- HttpHeaders,
18
- HttpParams,
19
- HttpResponse,
20
- HttpEvent,
21
- HttpParameterCodec,
22
- } from '@angular/common/http'
23
- import { CustomHttpParameterCodec } from '../encoder'
24
- import { Observable } from 'rxjs'
25
-
26
- import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
27
- import { Configuration } from '../configuration'
28
-
29
- @Injectable({
30
- providedIn: 'root',
31
- })
32
- export class ConfigApiService {
33
- protected basePath = 'https://localhost:8080'
34
- public defaultHeaders = new HttpHeaders()
35
- public configuration = new Configuration()
36
- public encoder: HttpParameterCodec
37
-
38
- constructor(
39
- protected httpClient: HttpClient,
40
- @Optional() @Inject(BASE_PATH) basePath: string,
41
- @Optional() configuration: Configuration
42
- ) {
43
- if (configuration) {
44
- this.configuration = configuration
45
- }
46
- if (typeof this.configuration.basePath !== 'string') {
47
- if (typeof basePath !== 'string') {
48
- basePath = this.basePath
49
- }
50
- this.configuration.basePath = basePath
51
- }
52
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec()
53
- }
54
-
55
- private addToHttpParams(
56
- httpParams: HttpParams,
57
- value: any,
58
- key?: string
59
- ): HttpParams {
60
- if (typeof value === 'object' && value instanceof Date === false) {
61
- httpParams = this.addToHttpParamsRecursive(httpParams, value)
62
- } else {
63
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key)
64
- }
65
- return httpParams
66
- }
67
-
68
- private addToHttpParamsRecursive(
69
- httpParams: HttpParams,
70
- value?: any,
71
- key?: string
72
- ): HttpParams {
73
- if (value == null) {
74
- return httpParams
75
- }
76
-
77
- if (typeof value === 'object') {
78
- if (Array.isArray(value)) {
79
- ;(value as any[]).forEach(
80
- (elem) =>
81
- (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key))
82
- )
83
- } else if (value instanceof Date) {
84
- if (key != null) {
85
- httpParams = httpParams.append(
86
- key,
87
- (value as Date).toISOString().substr(0, 10)
88
- )
89
- } else {
90
- throw Error('key may not be null if value is Date')
91
- }
92
- } else {
93
- Object.keys(value).forEach(
94
- (k) =>
95
- (httpParams = this.addToHttpParamsRecursive(
96
- httpParams,
97
- value[k],
98
- key != null ? `${key}.${k}` : k
99
- ))
100
- )
101
- }
102
- } else if (key != null) {
103
- httpParams = httpParams.append(key, value)
104
- } else {
105
- throw Error('key may not be null if value is not object or array')
106
- }
107
- return httpParams
108
- }
109
-
110
- /**
111
- * Get the front-end application configuration object
112
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
113
- * @param reportProgress flag to report request and response progress.
114
- */
115
- public getFrontendConfig(
116
- observe?: 'body',
117
- reportProgress?: boolean,
118
- options?: { httpHeaderAccept?: 'application/json' }
119
- ): Observable<object>
120
- public getFrontendConfig(
121
- observe?: 'response',
122
- reportProgress?: boolean,
123
- options?: { httpHeaderAccept?: 'application/json' }
124
- ): Observable<HttpResponse<object>>
125
- public getFrontendConfig(
126
- observe?: 'events',
127
- reportProgress?: boolean,
128
- options?: { httpHeaderAccept?: 'application/json' }
129
- ): Observable<HttpEvent<object>>
130
- public getFrontendConfig(
131
- observe: any = 'body',
132
- reportProgress: boolean = false,
133
- options?: { httpHeaderAccept?: 'application/json' }
134
- ): Observable<any> {
135
- let headers = this.defaultHeaders
136
-
137
- let httpHeaderAcceptSelected: string | undefined =
138
- options && options.httpHeaderAccept
139
- if (httpHeaderAcceptSelected === undefined) {
140
- // to determine the Accept header
141
- const httpHeaderAccepts: string[] = ['application/json']
142
- httpHeaderAcceptSelected =
143
- this.configuration.selectHeaderAccept(httpHeaderAccepts)
144
- }
145
- if (httpHeaderAcceptSelected !== undefined) {
146
- headers = headers.set('Accept', httpHeaderAcceptSelected)
147
- }
148
-
149
- let responseType_: 'text' | 'json' = 'json'
150
- if (
151
- httpHeaderAcceptSelected &&
152
- httpHeaderAcceptSelected.startsWith('text')
153
- ) {
154
- responseType_ = 'text'
155
- }
156
-
157
- return this.httpClient.get<object>(
158
- `${this.configuration.basePath}/config/frontend`,
159
- {
160
- responseType: <any>responseType_,
161
- withCredentials: this.configuration.withCredentials,
162
- headers: headers,
163
- observe: observe,
164
- reportProgress: reportProgress,
165
- }
166
- )
167
- }
168
- }
@@ -1,270 +0,0 @@
1
- /**
2
- * DataFeeder API
3
- * This API covers dataset upload and publishing features of the application
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: psc@georchestra.org
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /* tslint:disable:no-unused-variable member-ordering */
13
-
14
- import { Inject, Injectable, Optional } from '@angular/core'
15
- import {
16
- HttpClient,
17
- HttpHeaders,
18
- HttpParams,
19
- HttpResponse,
20
- HttpEvent,
21
- HttpParameterCodec,
22
- } from '@angular/common/http'
23
- import { CustomHttpParameterCodec } from '../encoder'
24
- import { Observable } from 'rxjs'
25
-
26
- import { PublishJobStatusApiModel } from '../model/models'
27
- import { PublishRequestApiModel } from '../model/models'
28
-
29
- import { BASE_PATH, COLLECTION_FORMATS } from '../variables'
30
- import { Configuration } from '../configuration'
31
-
32
- @Injectable({
33
- providedIn: 'root',
34
- })
35
- export class DataPublishingApiService {
36
- protected basePath = 'https://localhost:8080'
37
- public defaultHeaders = new HttpHeaders()
38
- public configuration = new Configuration()
39
- public encoder: HttpParameterCodec
40
-
41
- constructor(
42
- protected httpClient: HttpClient,
43
- @Optional() @Inject(BASE_PATH) basePath: string,
44
- @Optional() configuration: Configuration
45
- ) {
46
- if (configuration) {
47
- this.configuration = configuration
48
- }
49
- if (typeof this.configuration.basePath !== 'string') {
50
- if (typeof basePath !== 'string') {
51
- basePath = this.basePath
52
- }
53
- this.configuration.basePath = basePath
54
- }
55
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec()
56
- }
57
-
58
- private addToHttpParams(
59
- httpParams: HttpParams,
60
- value: any,
61
- key?: string
62
- ): HttpParams {
63
- if (typeof value === 'object' && value instanceof Date === false) {
64
- httpParams = this.addToHttpParamsRecursive(httpParams, value)
65
- } else {
66
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key)
67
- }
68
- return httpParams
69
- }
70
-
71
- private addToHttpParamsRecursive(
72
- httpParams: HttpParams,
73
- value?: any,
74
- key?: string
75
- ): HttpParams {
76
- if (value == null) {
77
- return httpParams
78
- }
79
-
80
- if (typeof value === 'object') {
81
- if (Array.isArray(value)) {
82
- ;(value as any[]).forEach(
83
- (elem) =>
84
- (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key))
85
- )
86
- } else if (value instanceof Date) {
87
- if (key != null) {
88
- httpParams = httpParams.append(
89
- key,
90
- (value as Date).toISOString().substr(0, 10)
91
- )
92
- } else {
93
- throw Error('key may not be null if value is Date')
94
- }
95
- } else {
96
- Object.keys(value).forEach(
97
- (k) =>
98
- (httpParams = this.addToHttpParamsRecursive(
99
- httpParams,
100
- value[k],
101
- key != null ? `${key}.${k}` : k
102
- ))
103
- )
104
- }
105
- } else if (key != null) {
106
- httpParams = httpParams.append(key, value)
107
- } else {
108
- throw Error('key may not be null if value is not object or array')
109
- }
110
- return httpParams
111
- }
112
-
113
- /**
114
- * Poll the publishing staus of the given job
115
- * @param jobId Unique job identifier
116
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
117
- * @param reportProgress flag to report request and response progress.
118
- */
119
- public getPublishingStatus(
120
- jobId: string,
121
- observe?: 'body',
122
- reportProgress?: boolean,
123
- options?: { httpHeaderAccept?: 'application/json' }
124
- ): Observable<PublishJobStatusApiModel>
125
- public getPublishingStatus(
126
- jobId: string,
127
- observe?: 'response',
128
- reportProgress?: boolean,
129
- options?: { httpHeaderAccept?: 'application/json' }
130
- ): Observable<HttpResponse<PublishJobStatusApiModel>>
131
- public getPublishingStatus(
132
- jobId: string,
133
- observe?: 'events',
134
- reportProgress?: boolean,
135
- options?: { httpHeaderAccept?: 'application/json' }
136
- ): Observable<HttpEvent<PublishJobStatusApiModel>>
137
- public getPublishingStatus(
138
- jobId: string,
139
- observe: any = 'body',
140
- reportProgress: boolean = false,
141
- options?: { httpHeaderAccept?: 'application/json' }
142
- ): Observable<any> {
143
- if (jobId === null || jobId === undefined) {
144
- throw new Error(
145
- 'Required parameter jobId was null or undefined when calling getPublishingStatus.'
146
- )
147
- }
148
-
149
- let headers = this.defaultHeaders
150
-
151
- let httpHeaderAcceptSelected: string | undefined =
152
- options && options.httpHeaderAccept
153
- if (httpHeaderAcceptSelected === undefined) {
154
- // to determine the Accept header
155
- const httpHeaderAccepts: string[] = ['application/json']
156
- httpHeaderAcceptSelected =
157
- this.configuration.selectHeaderAccept(httpHeaderAccepts)
158
- }
159
- if (httpHeaderAcceptSelected !== undefined) {
160
- headers = headers.set('Accept', httpHeaderAcceptSelected)
161
- }
162
-
163
- let responseType_: 'text' | 'json' = 'json'
164
- if (
165
- httpHeaderAcceptSelected &&
166
- httpHeaderAcceptSelected.startsWith('text')
167
- ) {
168
- responseType_ = 'text'
169
- }
170
-
171
- return this.httpClient.get<PublishJobStatusApiModel>(
172
- `${this.configuration.basePath}/upload/${encodeURIComponent(
173
- String(jobId)
174
- )}/publish`,
175
- {
176
- responseType: <any>responseType_,
177
- withCredentials: this.configuration.withCredentials,
178
- headers: headers,
179
- observe: observe,
180
- reportProgress: reportProgress,
181
- }
182
- )
183
- }
184
-
185
- /**
186
- * Publish the dataset(s) from the given upload
187
- * @param jobId Unique job identifier
188
- * @param publishRequestApiModel
189
- * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
190
- * @param reportProgress flag to report request and response progress.
191
- */
192
- public publish(
193
- jobId: string,
194
- publishRequestApiModel?: PublishRequestApiModel,
195
- observe?: 'body',
196
- reportProgress?: boolean,
197
- options?: { httpHeaderAccept?: 'application/json' }
198
- ): Observable<PublishJobStatusApiModel>
199
- public publish(
200
- jobId: string,
201
- publishRequestApiModel?: PublishRequestApiModel,
202
- observe?: 'response',
203
- reportProgress?: boolean,
204
- options?: { httpHeaderAccept?: 'application/json' }
205
- ): Observable<HttpResponse<PublishJobStatusApiModel>>
206
- public publish(
207
- jobId: string,
208
- publishRequestApiModel?: PublishRequestApiModel,
209
- observe?: 'events',
210
- reportProgress?: boolean,
211
- options?: { httpHeaderAccept?: 'application/json' }
212
- ): Observable<HttpEvent<PublishJobStatusApiModel>>
213
- public publish(
214
- jobId: string,
215
- publishRequestApiModel?: PublishRequestApiModel,
216
- observe: any = 'body',
217
- reportProgress: boolean = false,
218
- options?: { httpHeaderAccept?: 'application/json' }
219
- ): Observable<any> {
220
- if (jobId === null || jobId === undefined) {
221
- throw new Error(
222
- 'Required parameter jobId was null or undefined when calling publish.'
223
- )
224
- }
225
-
226
- let headers = this.defaultHeaders
227
-
228
- let httpHeaderAcceptSelected: string | undefined =
229
- options && options.httpHeaderAccept
230
- if (httpHeaderAcceptSelected === undefined) {
231
- // to determine the Accept header
232
- const httpHeaderAccepts: string[] = ['application/json']
233
- httpHeaderAcceptSelected =
234
- this.configuration.selectHeaderAccept(httpHeaderAccepts)
235
- }
236
- if (httpHeaderAcceptSelected !== undefined) {
237
- headers = headers.set('Accept', httpHeaderAcceptSelected)
238
- }
239
-
240
- // to determine the Content-Type header
241
- const consumes: string[] = ['application/json']
242
- const httpContentTypeSelected: string | undefined =
243
- this.configuration.selectHeaderContentType(consumes)
244
- if (httpContentTypeSelected !== undefined) {
245
- headers = headers.set('Content-Type', httpContentTypeSelected)
246
- }
247
-
248
- let responseType_: 'text' | 'json' = 'json'
249
- if (
250
- httpHeaderAcceptSelected &&
251
- httpHeaderAcceptSelected.startsWith('text')
252
- ) {
253
- responseType_ = 'text'
254
- }
255
-
256
- return this.httpClient.post<PublishJobStatusApiModel>(
257
- `${this.configuration.basePath}/upload/${encodeURIComponent(
258
- String(jobId)
259
- )}/publish`,
260
- publishRequestApiModel,
261
- {
262
- responseType: <any>responseType_,
263
- withCredentials: this.configuration.withCredentials,
264
- headers: headers,
265
- observe: observe,
266
- reportProgress: reportProgress,
267
- }
268
- )
269
- }
270
- }