@ogcio/building-blocks-sdk 0.2.11 → 0.2.13

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 (34) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +14 -0
  3. package/dist/__tests__/client/clients/base-client.test.d.ts +2 -0
  4. package/dist/__tests__/client/clients/base-client.test.d.ts.map +1 -0
  5. package/dist/__tests__/client/clients/base-client.test.js +53 -0
  6. package/dist/__tests__/client/clients/base-client.test.js.map +1 -0
  7. package/dist/__tests__/client/clients/featureFlags/index.test.js +2 -1
  8. package/dist/__tests__/client/clients/featureFlags/index.test.js.map +1 -1
  9. package/dist/__tests__/utils.d.ts +2 -0
  10. package/dist/__tests__/utils.d.ts.map +1 -0
  11. package/dist/__tests__/utils.js +20 -0
  12. package/dist/__tests__/utils.js.map +1 -0
  13. package/dist/client/base-client.d.ts +5 -0
  14. package/dist/client/base-client.d.ts.map +1 -1
  15. package/dist/client/base-client.js +45 -20
  16. package/dist/client/base-client.js.map +1 -1
  17. package/dist/client/clients/journey/index.d.ts +72 -18
  18. package/dist/client/clients/journey/index.d.ts.map +1 -1
  19. package/dist/client/clients/journey/schema.d.ts +60 -15
  20. package/dist/client/clients/journey/schema.d.ts.map +1 -1
  21. package/dist/client/clients/payments/index.d.ts +96 -24
  22. package/dist/client/clients/payments/index.d.ts.map +1 -1
  23. package/dist/client/clients/payments/schema.d.ts +93 -21
  24. package/dist/client/clients/payments/schema.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/__tests__/client/clients/base-client.test.ts +68 -0
  27. package/src/__tests__/client/clients/featureFlags/index.test.ts +2 -1
  28. package/src/__tests__/utils.ts +26 -0
  29. package/src/client/base-client.ts +50 -23
  30. package/src/client/clients/journey/open-api-definition.json +185 -20
  31. package/src/client/clients/journey/schema.ts +60 -15
  32. package/src/client/clients/payments/open-api-definition.json +305 -48
  33. package/src/client/clients/payments/schema.ts +93 -21
  34. package/vitest.config.mts +0 -1
@@ -1186,10 +1186,32 @@
1186
1186
  "type": "string"
1187
1187
  },
1188
1188
  "title": {
1189
- "type": "string"
1189
+ "type": "object",
1190
+ "properties": {
1191
+ "en": {
1192
+ "type": "string"
1193
+ },
1194
+ "ga": {
1195
+ "type": "string"
1196
+ }
1197
+ },
1198
+ "required": [
1199
+ "en"
1200
+ ]
1190
1201
  },
1191
1202
  "description": {
1192
- "type": "string"
1203
+ "type": "object",
1204
+ "properties": {
1205
+ "en": {
1206
+ "type": "string"
1207
+ },
1208
+ "ga": {
1209
+ "type": "string"
1210
+ }
1211
+ },
1212
+ "required": [
1213
+ "en"
1214
+ ]
1193
1215
  },
1194
1216
  "amount": {
1195
1217
  "type": "number"
@@ -1405,25 +1427,47 @@
1405
1427
  "type": "object",
1406
1428
  "properties": {
1407
1429
  "title": {
1408
- "validator": "RequiredValidator",
1409
- "type": "string"
1410
- },
1411
- "description": {
1412
- "validator": {
1413
- "name": "OptionalRequiredValidator",
1414
- "options": {
1415
- "field": "status",
1416
- "operation": "notEqual",
1417
- "value": "draft"
1430
+ "type": "object",
1431
+ "properties": {
1432
+ "en": {
1433
+ "validator": "RequiredValidator",
1434
+ "type": "string"
1435
+ },
1436
+ "ga": {
1437
+ "type": "string"
1418
1438
  }
1419
1439
  },
1420
- "anyOf": [
1421
- {
1422
- "type": "string"
1440
+ "required": [
1441
+ "en"
1442
+ ]
1443
+ },
1444
+ "description": {
1445
+ "type": "object",
1446
+ "properties": {
1447
+ "en": {
1448
+ "validator": {
1449
+ "name": "OptionalRequiredValidator",
1450
+ "options": {
1451
+ "field": "status",
1452
+ "operation": "notEqual",
1453
+ "value": "draft"
1454
+ }
1455
+ },
1456
+ "anyOf": [
1457
+ {
1458
+ "type": "string"
1459
+ },
1460
+ {
1461
+ "type": "null"
1462
+ }
1463
+ ]
1423
1464
  },
1424
- {
1425
- "type": "null"
1465
+ "ga": {
1466
+ "type": "string"
1426
1467
  }
1468
+ },
1469
+ "required": [
1470
+ "en"
1427
1471
  ]
1428
1472
  },
1429
1473
  "reference": {
@@ -1720,25 +1764,47 @@
1720
1764
  "type": "object",
1721
1765
  "properties": {
1722
1766
  "title": {
1723
- "validator": "RequiredValidator",
1724
- "type": "string"
1725
- },
1726
- "description": {
1727
- "validator": {
1728
- "name": "OptionalRequiredValidator",
1729
- "options": {
1730
- "field": "status",
1731
- "operation": "notEqual",
1732
- "value": "draft"
1767
+ "type": "object",
1768
+ "properties": {
1769
+ "en": {
1770
+ "validator": "RequiredValidator",
1771
+ "type": "string"
1772
+ },
1773
+ "ga": {
1774
+ "type": "string"
1733
1775
  }
1734
1776
  },
1735
- "anyOf": [
1736
- {
1737
- "type": "string"
1777
+ "required": [
1778
+ "en"
1779
+ ]
1780
+ },
1781
+ "description": {
1782
+ "type": "object",
1783
+ "properties": {
1784
+ "en": {
1785
+ "validator": {
1786
+ "name": "OptionalRequiredValidator",
1787
+ "options": {
1788
+ "field": "status",
1789
+ "operation": "notEqual",
1790
+ "value": "draft"
1791
+ }
1792
+ },
1793
+ "anyOf": [
1794
+ {
1795
+ "type": "string"
1796
+ },
1797
+ {
1798
+ "type": "null"
1799
+ }
1800
+ ]
1738
1801
  },
1739
- {
1740
- "type": "null"
1802
+ "ga": {
1803
+ "type": "string"
1741
1804
  }
1805
+ },
1806
+ "required": [
1807
+ "en"
1742
1808
  ]
1743
1809
  },
1744
1810
  "reference": {
@@ -2097,10 +2163,32 @@
2097
2163
  "type": "string"
2098
2164
  },
2099
2165
  "title": {
2100
- "type": "string"
2166
+ "type": "object",
2167
+ "properties": {
2168
+ "en": {
2169
+ "type": "string"
2170
+ },
2171
+ "ga": {
2172
+ "type": "string"
2173
+ }
2174
+ },
2175
+ "required": [
2176
+ "en"
2177
+ ]
2101
2178
  },
2102
2179
  "description": {
2103
- "type": "string"
2180
+ "type": "object",
2181
+ "properties": {
2182
+ "en": {
2183
+ "type": "string"
2184
+ },
2185
+ "ga": {
2186
+ "type": "string"
2187
+ }
2188
+ },
2189
+ "required": [
2190
+ "en"
2191
+ ]
2104
2192
  },
2105
2193
  "amount": {
2106
2194
  "type": "number"
@@ -2239,10 +2327,32 @@
2239
2327
  "type": "string"
2240
2328
  },
2241
2329
  "title": {
2242
- "type": "string"
2330
+ "type": "object",
2331
+ "properties": {
2332
+ "en": {
2333
+ "type": "string"
2334
+ },
2335
+ "ga": {
2336
+ "type": "string"
2337
+ }
2338
+ },
2339
+ "required": [
2340
+ "en"
2341
+ ]
2243
2342
  },
2244
2343
  "description": {
2245
- "type": "string"
2344
+ "type": "object",
2345
+ "properties": {
2346
+ "en": {
2347
+ "type": "string"
2348
+ },
2349
+ "ga": {
2350
+ "type": "string"
2351
+ }
2352
+ },
2353
+ "required": [
2354
+ "en"
2355
+ ]
2246
2356
  },
2247
2357
  "amount": {
2248
2358
  "type": "number"
@@ -2618,10 +2728,32 @@
2618
2728
  "type": "string"
2619
2729
  },
2620
2730
  "title": {
2621
- "type": "string"
2731
+ "type": "object",
2732
+ "properties": {
2733
+ "en": {
2734
+ "type": "string"
2735
+ },
2736
+ "ga": {
2737
+ "type": "string"
2738
+ }
2739
+ },
2740
+ "required": [
2741
+ "en"
2742
+ ]
2622
2743
  },
2623
2744
  "description": {
2624
- "type": "string"
2745
+ "type": "object",
2746
+ "properties": {
2747
+ "en": {
2748
+ "type": "string"
2749
+ },
2750
+ "ga": {
2751
+ "type": "string"
2752
+ }
2753
+ },
2754
+ "required": [
2755
+ "en"
2756
+ ]
2625
2757
  },
2626
2758
  "amount": {
2627
2759
  "type": "number"
@@ -2777,7 +2909,6 @@
2777
2909
  "required": [
2778
2910
  "paymentRequestId",
2779
2911
  "title",
2780
- "description",
2781
2912
  "amount",
2782
2913
  "reference",
2783
2914
  "providers",
@@ -3240,7 +3371,18 @@
3240
3371
  "type": "string"
3241
3372
  },
3242
3373
  "title": {
3243
- "type": "string"
3374
+ "type": "object",
3375
+ "properties": {
3376
+ "en": {
3377
+ "type": "string"
3378
+ },
3379
+ "ga": {
3380
+ "type": "string"
3381
+ }
3382
+ },
3383
+ "required": [
3384
+ "en"
3385
+ ]
3244
3386
  }
3245
3387
  },
3246
3388
  "required": [
@@ -3514,7 +3656,18 @@
3514
3656
  "type": "string"
3515
3657
  },
3516
3658
  "title": {
3517
- "type": "string"
3659
+ "type": "object",
3660
+ "properties": {
3661
+ "en": {
3662
+ "type": "string"
3663
+ },
3664
+ "ga": {
3665
+ "type": "string"
3666
+ }
3667
+ },
3668
+ "required": [
3669
+ "en"
3670
+ ]
3518
3671
  },
3519
3672
  "userId": {
3520
3673
  "type": "string"
@@ -3540,7 +3693,18 @@
3540
3693
  }
3541
3694
  },
3542
3695
  "description": {
3543
- "type": "string"
3696
+ "type": "object",
3697
+ "properties": {
3698
+ "en": {
3699
+ "type": "string"
3700
+ },
3701
+ "ga": {
3702
+ "type": "string"
3703
+ }
3704
+ },
3705
+ "required": [
3706
+ "en"
3707
+ ]
3544
3708
  },
3545
3709
  "providerName": {
3546
3710
  "type": "string"
@@ -4112,7 +4276,18 @@
4112
4276
  "type": "string"
4113
4277
  },
4114
4278
  "title": {
4115
- "type": "string"
4279
+ "type": "object",
4280
+ "properties": {
4281
+ "en": {
4282
+ "type": "string"
4283
+ },
4284
+ "ga": {
4285
+ "type": "string"
4286
+ }
4287
+ },
4288
+ "required": [
4289
+ "en"
4290
+ ]
4116
4291
  },
4117
4292
  "userId": {
4118
4293
  "type": "string"
@@ -4138,7 +4313,18 @@
4138
4313
  }
4139
4314
  },
4140
4315
  "description": {
4141
- "type": "string"
4316
+ "type": "object",
4317
+ "properties": {
4318
+ "en": {
4319
+ "type": "string"
4320
+ },
4321
+ "ga": {
4322
+ "type": "string"
4323
+ }
4324
+ },
4325
+ "required": [
4326
+ "en"
4327
+ ]
4142
4328
  },
4143
4329
  "providerName": {
4144
4330
  "type": "string"
@@ -4645,6 +4831,33 @@
4645
4831
  "properties": {
4646
4832
  "type": {
4647
4833
  "type": "string"
4834
+ },
4835
+ "properties": {
4836
+ "type": "object",
4837
+ "properties": {
4838
+ "en": {
4839
+ "type": "object",
4840
+ "properties": {
4841
+ "type": {
4842
+ "type": "string"
4843
+ }
4844
+ }
4845
+ },
4846
+ "ga": {
4847
+ "type": "object",
4848
+ "properties": {
4849
+ "type": {
4850
+ "type": "string"
4851
+ }
4852
+ }
4853
+ }
4854
+ }
4855
+ },
4856
+ "required": {
4857
+ "type": "array",
4858
+ "items": {
4859
+ "type": "string"
4860
+ }
4648
4861
  }
4649
4862
  }
4650
4863
  },
@@ -4920,7 +5133,18 @@
4920
5133
  "type": "string"
4921
5134
  },
4922
5135
  "paymentRequestTitle": {
4923
- "type": "string"
5136
+ "type": "object",
5137
+ "properties": {
5138
+ "en": {
5139
+ "type": "string"
5140
+ },
5141
+ "ga": {
5142
+ "type": "string"
5143
+ }
5144
+ },
5145
+ "required": [
5146
+ "en"
5147
+ ]
4924
5148
  },
4925
5149
  "amount": {
4926
5150
  "minimum": 1,
@@ -6126,7 +6350,18 @@
6126
6350
  ]
6127
6351
  },
6128
6352
  "title": {
6129
- "type": "string"
6353
+ "type": "object",
6354
+ "properties": {
6355
+ "en": {
6356
+ "type": "string"
6357
+ },
6358
+ "ga": {
6359
+ "type": "string"
6360
+ }
6361
+ },
6362
+ "required": [
6363
+ "en"
6364
+ ]
6130
6365
  },
6131
6366
  "updatedAt": {
6132
6367
  "type": "string"
@@ -6444,7 +6679,18 @@
6444
6679
  "type": "string"
6445
6680
  },
6446
6681
  "title": {
6447
- "type": "string"
6682
+ "type": "object",
6683
+ "properties": {
6684
+ "en": {
6685
+ "type": "string"
6686
+ },
6687
+ "ga": {
6688
+ "type": "string"
6689
+ }
6690
+ },
6691
+ "required": [
6692
+ "en"
6693
+ ]
6448
6694
  },
6449
6695
  "userId": {
6450
6696
  "type": "string"
@@ -6470,7 +6716,18 @@
6470
6716
  }
6471
6717
  },
6472
6718
  "description": {
6473
- "type": "string"
6719
+ "type": "object",
6720
+ "properties": {
6721
+ "en": {
6722
+ "type": "string"
6723
+ },
6724
+ "ga": {
6725
+ "type": "string"
6726
+ }
6727
+ },
6728
+ "required": [
6729
+ "en"
6730
+ ]
6474
6731
  },
6475
6732
  "providerName": {
6476
6733
  "type": "string"