@ogcio/building-blocks-sdk 0.0.5 → 0.0.7

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 (42) hide show
  1. package/README.md +2 -18
  2. package/dist/client/base-client.d.ts +2 -3
  3. package/dist/client/base-client.d.ts.map +1 -1
  4. package/dist/client/base-client.js +0 -3
  5. package/dist/client/base-client.js.map +1 -1
  6. package/dist/client/clients/messaging/index.d.ts +1 -1
  7. package/dist/client/clients/messaging/index.d.ts.map +1 -1
  8. package/dist/client/clients/payments/index.d.ts +59 -41
  9. package/dist/client/clients/payments/index.d.ts.map +1 -1
  10. package/dist/client/clients/payments/schema.d.ts +519 -47
  11. package/dist/client/clients/payments/schema.d.ts.map +1 -1
  12. package/dist/client/clients/profile/index.d.ts +1 -1
  13. package/dist/client/clients/profile/index.d.ts.map +1 -1
  14. package/dist/client/clients/scheduler/index.d.ts +1 -1
  15. package/dist/client/clients/scheduler/index.d.ts.map +1 -1
  16. package/dist/client/clients/upload/index.d.ts +70 -136
  17. package/dist/client/clients/upload/index.d.ts.map +1 -1
  18. package/dist/client/clients/upload/index.js +15 -27
  19. package/dist/client/clients/upload/index.js.map +1 -1
  20. package/dist/clients-configurations/clients-configuration.json +0 -8
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +2 -6
  24. package/dist/index.js.map +1 -1
  25. package/dist/types/index.d.ts +9 -12
  26. package/dist/types/index.d.ts.map +1 -1
  27. package/dist/types/index.js +0 -1
  28. package/dist/types/index.js.map +1 -1
  29. package/package.json +7 -13
  30. package/src/client/base-client.ts +2 -6
  31. package/src/client/clients/messaging/index.ts +1 -1
  32. package/src/client/clients/payments/index.ts +1 -1
  33. package/src/client/clients/payments/open-api-definition.json +983 -179
  34. package/src/client/clients/payments/schema.ts +519 -47
  35. package/src/client/clients/profile/index.ts +1 -1
  36. package/src/client/clients/scheduler/index.ts +1 -1
  37. package/src/client/clients/upload/index.ts +24 -46
  38. package/src/clients-configurations/clients-configuration.json +0 -8
  39. package/src/index.ts +3 -8
  40. package/src/types/index.ts +8 -14
  41. package/.github/dependabot.yaml +0 -12
  42. package/.husky/pre-commit +0 -2
@@ -1,4 +1,70 @@
1
1
  export interface paths {
2
+ "/.well-known/jwks.json": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ get: {
10
+ parameters: {
11
+ query?: never;
12
+ header?: never;
13
+ path?: never;
14
+ cookie?: never;
15
+ };
16
+ requestBody?: never;
17
+ responses: {
18
+ /** @description Default Response */
19
+ 200: {
20
+ headers: {
21
+ [name: string]: unknown;
22
+ };
23
+ content?: never;
24
+ };
25
+ };
26
+ };
27
+ put?: never;
28
+ post?: never;
29
+ delete?: never;
30
+ options?: never;
31
+ head?: never;
32
+ patch?: never;
33
+ trace?: never;
34
+ };
35
+ "/token": {
36
+ parameters: {
37
+ query?: never;
38
+ header?: never;
39
+ path?: never;
40
+ cookie?: never;
41
+ };
42
+ get: {
43
+ parameters: {
44
+ query?: never;
45
+ header?: never;
46
+ path?: never;
47
+ cookie?: never;
48
+ };
49
+ requestBody?: never;
50
+ responses: {
51
+ /** @description Default Response */
52
+ 200: {
53
+ headers: {
54
+ [name: string]: unknown;
55
+ };
56
+ content?: never;
57
+ };
58
+ };
59
+ };
60
+ put?: never;
61
+ post?: never;
62
+ delete?: never;
63
+ options?: never;
64
+ head?: never;
65
+ patch?: never;
66
+ trace?: never;
67
+ };
2
68
  "/health": {
3
69
  parameters: {
4
70
  query?: never;
@@ -1110,6 +1176,119 @@ export interface paths {
1110
1176
  patch?: never;
1111
1177
  trace?: never;
1112
1178
  };
1179
+ "/api/v1/requests/decode": {
1180
+ parameters: {
1181
+ query?: never;
1182
+ header?: never;
1183
+ path?: never;
1184
+ cookie?: never;
1185
+ };
1186
+ get?: never;
1187
+ put?: never;
1188
+ post: {
1189
+ parameters: {
1190
+ query?: never;
1191
+ header?: never;
1192
+ path?: never;
1193
+ cookie?: never;
1194
+ };
1195
+ requestBody: {
1196
+ content: {
1197
+ "application/json": {
1198
+ token: string;
1199
+ };
1200
+ };
1201
+ };
1202
+ responses: {
1203
+ /** @description Default Response */
1204
+ 200: {
1205
+ headers: {
1206
+ [name: string]: unknown;
1207
+ };
1208
+ content: {
1209
+ "application/json": {
1210
+ data: {
1211
+ amount?: number;
1212
+ runId: string;
1213
+ journeyId: string;
1214
+ redirectUrl: string;
1215
+ };
1216
+ metadata?: {
1217
+ /** @description Object containing the links to the related endpoints */
1218
+ links?: {
1219
+ self: {
1220
+ /** @description URL pointing to the request itself */
1221
+ href?: string;
1222
+ };
1223
+ next?: {
1224
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
1225
+ href?: string;
1226
+ };
1227
+ prev?: {
1228
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
1229
+ href?: string;
1230
+ };
1231
+ first: {
1232
+ /** @description URL pointing to the first page of results in a paginated response */
1233
+ href?: string;
1234
+ };
1235
+ last: {
1236
+ /** @description URL pointing to the first page of results in a paginated response */
1237
+ href?: string;
1238
+ };
1239
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
1240
+ pages: {
1241
+ [key: string]: {
1242
+ href?: string;
1243
+ };
1244
+ };
1245
+ };
1246
+ /** @description Number representing the total number of available items */
1247
+ totalCount?: number;
1248
+ };
1249
+ };
1250
+ };
1251
+ };
1252
+ /** @description Default Response */
1253
+ 401: {
1254
+ headers: {
1255
+ [name: string]: unknown;
1256
+ };
1257
+ content: {
1258
+ "application/json": {
1259
+ code: string;
1260
+ detail: string;
1261
+ requestId: string;
1262
+ name: string;
1263
+ validation?: unknown;
1264
+ validationContext?: string;
1265
+ };
1266
+ };
1267
+ };
1268
+ /** @description Default Response */
1269
+ 500: {
1270
+ headers: {
1271
+ [name: string]: unknown;
1272
+ };
1273
+ content: {
1274
+ "application/json": {
1275
+ code: string;
1276
+ detail: string;
1277
+ requestId: string;
1278
+ name: string;
1279
+ validation?: unknown;
1280
+ validationContext?: string;
1281
+ };
1282
+ };
1283
+ };
1284
+ };
1285
+ };
1286
+ delete?: never;
1287
+ options?: never;
1288
+ head?: never;
1289
+ patch?: never;
1290
+ trace?: never;
1291
+ };
1113
1292
  "/api/v1/requests/{requestId}/transactions": {
1114
1293
  parameters: {
1115
1294
  query?: never;
@@ -1183,6 +1362,38 @@ export interface paths {
1183
1362
  };
1184
1363
  };
1185
1364
  };
1365
+ /** @description Default Response */
1366
+ "4XX": {
1367
+ headers: {
1368
+ [name: string]: unknown;
1369
+ };
1370
+ content: {
1371
+ "application/json": {
1372
+ code: string;
1373
+ detail: string;
1374
+ requestId: string;
1375
+ name: string;
1376
+ validation?: unknown;
1377
+ validationContext?: string;
1378
+ };
1379
+ };
1380
+ };
1381
+ /** @description Default Response */
1382
+ "5XX": {
1383
+ headers: {
1384
+ [name: string]: unknown;
1385
+ };
1386
+ content: {
1387
+ "application/json": {
1388
+ code: string;
1389
+ detail: string;
1390
+ requestId: string;
1391
+ name: string;
1392
+ validation?: unknown;
1393
+ validationContext?: string;
1394
+ };
1395
+ };
1396
+ };
1186
1397
  };
1187
1398
  };
1188
1399
  put?: never;
@@ -1227,9 +1438,12 @@ export interface paths {
1227
1438
  updatedAt: string;
1228
1439
  title: string;
1229
1440
  userId: string;
1230
- userData: {
1441
+ metadata: {
1231
1442
  name: string;
1232
1443
  email: string;
1444
+ runId?: string;
1445
+ journeyId?: string;
1446
+ journeyTitle?: string;
1233
1447
  };
1234
1448
  description: string;
1235
1449
  providerName: string;
@@ -1376,9 +1590,12 @@ export interface paths {
1376
1590
  updatedAt: string;
1377
1591
  title: string;
1378
1592
  userId: string;
1379
- userData: {
1593
+ metadata: {
1380
1594
  name: string;
1381
1595
  email: string;
1596
+ runId?: string;
1597
+ journeyId?: string;
1598
+ journeyTitle?: string;
1382
1599
  };
1383
1600
  description: string;
1384
1601
  providerName: string;
@@ -1487,9 +1704,12 @@ export interface paths {
1487
1704
  integrationReference: string;
1488
1705
  amount: number;
1489
1706
  paymentProviderId: string;
1490
- userData: {
1707
+ metadata: {
1491
1708
  name: string;
1492
1709
  email: string;
1710
+ runId?: string;
1711
+ journeyId?: string;
1712
+ journeyTitle?: string;
1493
1713
  };
1494
1714
  };
1495
1715
  };
@@ -1581,6 +1801,84 @@ export interface paths {
1581
1801
  patch?: never;
1582
1802
  trace?: never;
1583
1803
  };
1804
+ "/api/v1/transactions/schema": {
1805
+ parameters: {
1806
+ query?: never;
1807
+ header?: never;
1808
+ path?: never;
1809
+ cookie?: never;
1810
+ };
1811
+ get: {
1812
+ parameters: {
1813
+ query?: never;
1814
+ header?: never;
1815
+ path?: never;
1816
+ cookie?: never;
1817
+ };
1818
+ requestBody?: never;
1819
+ responses: {
1820
+ /** @description Default Response */
1821
+ 200: {
1822
+ headers: {
1823
+ [name: string]: unknown;
1824
+ };
1825
+ content: {
1826
+ "application/json": {
1827
+ type?: string;
1828
+ properties?: {
1829
+ userId?: {
1830
+ type?: string;
1831
+ };
1832
+ transactionId?: {
1833
+ type?: string;
1834
+ };
1835
+ paymentRequestId?: {
1836
+ type?: string;
1837
+ };
1838
+ paymentRequestTitle?: {
1839
+ type?: string;
1840
+ };
1841
+ amount?: {
1842
+ minimum?: number;
1843
+ maximum?: number;
1844
+ type?: string;
1845
+ };
1846
+ extReferenceCode?: {
1847
+ type?: string;
1848
+ };
1849
+ paymentMethod?: {
1850
+ type?: string;
1851
+ };
1852
+ paymentProviderName?: {
1853
+ type?: string;
1854
+ };
1855
+ status?: {
1856
+ anyOf?: {
1857
+ const?: string;
1858
+ type?: string;
1859
+ }[];
1860
+ };
1861
+ createdAt?: {
1862
+ type?: string;
1863
+ };
1864
+ updatedAt?: {
1865
+ type?: string;
1866
+ };
1867
+ };
1868
+ required?: string[];
1869
+ };
1870
+ };
1871
+ };
1872
+ };
1873
+ };
1874
+ put?: never;
1875
+ post?: never;
1876
+ delete?: never;
1877
+ options?: never;
1878
+ head?: never;
1879
+ patch?: never;
1880
+ trace?: never;
1881
+ };
1584
1882
  "/api/v1/transactions/generatePaymentIntentId": {
1585
1883
  parameters: {
1586
1884
  query?: never;
@@ -1669,6 +1967,212 @@ export interface paths {
1669
1967
  patch?: never;
1670
1968
  trace?: never;
1671
1969
  };
1970
+ "/api/v1/transactions/data/{transactionId}": {
1971
+ parameters: {
1972
+ query?: never;
1973
+ header?: never;
1974
+ path?: never;
1975
+ cookie?: never;
1976
+ };
1977
+ get: {
1978
+ parameters: {
1979
+ query?: never;
1980
+ header?: never;
1981
+ path: {
1982
+ transactionId: string;
1983
+ };
1984
+ cookie?: never;
1985
+ };
1986
+ requestBody?: never;
1987
+ responses: {
1988
+ /** @description Default Response */
1989
+ 200: {
1990
+ headers: {
1991
+ [name: string]: unknown;
1992
+ };
1993
+ content: {
1994
+ "application/json": {
1995
+ data: {
1996
+ userId: string;
1997
+ transactionId: string;
1998
+ paymentRequestId: string;
1999
+ paymentRequestTitle: string;
2000
+ amount: number;
2001
+ extReferenceCode: string;
2002
+ paymentMethod: string;
2003
+ paymentProviderName: string;
2004
+ status: "initiated" | "pending" | "succeeded" | "cancelled" | "failed";
2005
+ createdAt: string;
2006
+ updatedAt: string;
2007
+ };
2008
+ metadata?: {
2009
+ /** @description Object containing the links to the related endpoints */
2010
+ links?: {
2011
+ self: {
2012
+ /** @description URL pointing to the request itself */
2013
+ href?: string;
2014
+ };
2015
+ next?: {
2016
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
2017
+ href?: string;
2018
+ };
2019
+ prev?: {
2020
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
2021
+ href?: string;
2022
+ };
2023
+ first: {
2024
+ /** @description URL pointing to the first page of results in a paginated response */
2025
+ href?: string;
2026
+ };
2027
+ last: {
2028
+ /** @description URL pointing to the first page of results in a paginated response */
2029
+ href?: string;
2030
+ };
2031
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
2032
+ pages: {
2033
+ [key: string]: {
2034
+ href?: string;
2035
+ };
2036
+ };
2037
+ };
2038
+ /** @description Number representing the total number of available items */
2039
+ totalCount?: number;
2040
+ };
2041
+ };
2042
+ };
2043
+ };
2044
+ /** @description Default Response */
2045
+ 404: {
2046
+ headers: {
2047
+ [name: string]: unknown;
2048
+ };
2049
+ content: {
2050
+ "application/json": {
2051
+ code: string;
2052
+ detail: string;
2053
+ requestId: string;
2054
+ name: string;
2055
+ validation?: unknown;
2056
+ validationContext?: string;
2057
+ };
2058
+ };
2059
+ };
2060
+ };
2061
+ };
2062
+ put?: never;
2063
+ post?: never;
2064
+ delete?: never;
2065
+ options?: never;
2066
+ head?: never;
2067
+ patch?: never;
2068
+ trace?: never;
2069
+ };
2070
+ "/api/v1/transactions/{transactionId}/token": {
2071
+ parameters: {
2072
+ query?: never;
2073
+ header?: never;
2074
+ path?: never;
2075
+ cookie?: never;
2076
+ };
2077
+ get: {
2078
+ parameters: {
2079
+ query?: never;
2080
+ header?: never;
2081
+ path: {
2082
+ transactionId: string;
2083
+ };
2084
+ cookie?: never;
2085
+ };
2086
+ requestBody?: never;
2087
+ responses: {
2088
+ /** @description Default Response */
2089
+ 200: {
2090
+ headers: {
2091
+ [name: string]: unknown;
2092
+ };
2093
+ content: {
2094
+ "application/json": {
2095
+ data: {
2096
+ token: string;
2097
+ };
2098
+ metadata?: {
2099
+ /** @description Object containing the links to the related endpoints */
2100
+ links?: {
2101
+ self: {
2102
+ /** @description URL pointing to the request itself */
2103
+ href?: string;
2104
+ };
2105
+ next?: {
2106
+ /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
2107
+ href?: string;
2108
+ };
2109
+ prev?: {
2110
+ /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
2111
+ href?: string;
2112
+ };
2113
+ first: {
2114
+ /** @description URL pointing to the first page of results in a paginated response */
2115
+ href?: string;
2116
+ };
2117
+ last: {
2118
+ /** @description URL pointing to the first page of results in a paginated response */
2119
+ href?: string;
2120
+ };
2121
+ /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
2122
+ pages: {
2123
+ [key: string]: {
2124
+ href?: string;
2125
+ };
2126
+ };
2127
+ };
2128
+ /** @description Number representing the total number of available items */
2129
+ totalCount?: number;
2130
+ };
2131
+ };
2132
+ };
2133
+ };
2134
+ /** @description Default Response */
2135
+ 401: {
2136
+ headers: {
2137
+ [name: string]: unknown;
2138
+ };
2139
+ content: {
2140
+ "application/json": {
2141
+ code: string;
2142
+ detail: string;
2143
+ requestId: string;
2144
+ name: string;
2145
+ validation?: unknown;
2146
+ validationContext?: string;
2147
+ };
2148
+ };
2149
+ };
2150
+ /** @description Default Response */
2151
+ 500: {
2152
+ headers: {
2153
+ [name: string]: unknown;
2154
+ };
2155
+ content: {
2156
+ "application/json": {
2157
+ code: string;
2158
+ detail: string;
2159
+ requestId: string;
2160
+ name: string;
2161
+ validation?: unknown;
2162
+ validationContext?: string;
2163
+ };
2164
+ };
2165
+ };
2166
+ };
2167
+ };
2168
+ put?: never;
2169
+ post?: never;
2170
+ delete?: never;
2171
+ options?: never;
2172
+ head?: never;
2173
+ patch?: never;
2174
+ trace?: never;
2175
+ };
1672
2176
  "/api/v1/citizen/transactions": {
1673
2177
  parameters: {
1674
2178
  query?: never;
@@ -1831,9 +2335,12 @@ export interface paths {
1831
2335
  updatedAt: string;
1832
2336
  title: string;
1833
2337
  userId: string;
1834
- userData: {
2338
+ metadata: {
1835
2339
  name: string;
1836
2340
  email: string;
2341
+ runId?: string;
2342
+ journeyId?: string;
2343
+ journeyTitle?: string;
1837
2344
  };
1838
2345
  description: string;
1839
2346
  providerName: string;
@@ -1929,49 +2436,14 @@ export interface paths {
1929
2436
  };
1930
2437
  content: {
1931
2438
  "application/json": {
1932
- data: {
1933
- ACCOUNT: string;
1934
- AMOUNT: string;
1935
- CURRENCY: string;
1936
- MERCHANT_ID: string;
1937
- ORDER_ID: string;
1938
- TIMESTAMP: string;
1939
- URL: string;
1940
- SHA256HASH: string;
1941
- };
1942
- metadata?: {
1943
- /** @description Object containing the links to the related endpoints */
1944
- links?: {
1945
- self: {
1946
- /** @description URL pointing to the request itself */
1947
- href?: string;
1948
- };
1949
- next?: {
1950
- /** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
1951
- href?: string;
1952
- };
1953
- prev?: {
1954
- /** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
1955
- href?: string;
1956
- };
1957
- first: {
1958
- /** @description URL pointing to the first page of results in a paginated response */
1959
- href?: string;
1960
- };
1961
- last: {
1962
- /** @description URL pointing to the first page of results in a paginated response */
1963
- href?: string;
1964
- };
1965
- /** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
1966
- pages: {
1967
- [key: string]: {
1968
- href?: string;
1969
- };
1970
- };
1971
- };
1972
- /** @description Number representing the total number of available items */
1973
- totalCount?: number;
1974
- };
2439
+ ACCOUNT: string;
2440
+ AMOUNT: string;
2441
+ CURRENCY: string;
2442
+ MERCHANT_ID: string;
2443
+ ORDER_ID: string;
2444
+ TIMESTAMP: string;
2445
+ URL: string;
2446
+ SHA256HASH: string;
1975
2447
  };
1976
2448
  };
1977
2449
  };