@bratislava/ginis-sdk 1.3.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -2
- package/dist/index.d.ts +296 -2731
- package/dist/index.js +833 -367
- package/package.json +30 -30
package/README.md
CHANGED
|
@@ -87,11 +87,20 @@ const detailDokumentuRequestProperties = [
|
|
|
87
87
|
] as const
|
|
88
88
|
|
|
89
89
|
export type DetailDokumentuRequest = {
|
|
90
|
-
[K in (typeof detailDokumentuRequestProperties)[number] as K]?:
|
|
90
|
+
[K in (typeof detailDokumentuRequestProperties)[number] as K]?: RequestParamType
|
|
91
91
|
}
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
Currently, all request properties are marked as optional strings regardless of their actual type or if they are required by the endpoint. There is no input validation on the library side and all requests are ultimately accepted or rejected directly by the underlying Ginis API.
|
|
94
|
+
Currently, all request properties are marked as optional strings regardless of their actual type or if they are required by the endpoint. There is also a way to include XML tag attributes. There is no input validation on the library side and all requests are ultimately accepted or rejected directly by the underlying Ginis API.
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
export interface RequestParamValue {
|
|
98
|
+
value: string
|
|
99
|
+
attributes: string[]
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type RequestParamType = string | undefined | RequestParamValue
|
|
103
|
+
```
|
|
95
104
|
|
|
96
105
|
#### Response type
|
|
97
106
|
|