@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.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/__tests__/client/clients/base-client.test.d.ts +2 -0
- package/dist/__tests__/client/clients/base-client.test.d.ts.map +1 -0
- package/dist/__tests__/client/clients/base-client.test.js +53 -0
- package/dist/__tests__/client/clients/base-client.test.js.map +1 -0
- package/dist/__tests__/client/clients/featureFlags/index.test.js +2 -1
- package/dist/__tests__/client/clients/featureFlags/index.test.js.map +1 -1
- package/dist/__tests__/utils.d.ts +2 -0
- package/dist/__tests__/utils.d.ts.map +1 -0
- package/dist/__tests__/utils.js +20 -0
- package/dist/__tests__/utils.js.map +1 -0
- package/dist/client/base-client.d.ts +5 -0
- package/dist/client/base-client.d.ts.map +1 -1
- package/dist/client/base-client.js +45 -20
- package/dist/client/base-client.js.map +1 -1
- package/dist/client/clients/journey/index.d.ts +72 -18
- package/dist/client/clients/journey/index.d.ts.map +1 -1
- package/dist/client/clients/journey/schema.d.ts +60 -15
- package/dist/client/clients/journey/schema.d.ts.map +1 -1
- package/dist/client/clients/payments/index.d.ts +96 -24
- package/dist/client/clients/payments/index.d.ts.map +1 -1
- package/dist/client/clients/payments/schema.d.ts +93 -21
- package/dist/client/clients/payments/schema.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/client/clients/base-client.test.ts +68 -0
- package/src/__tests__/client/clients/featureFlags/index.test.ts +2 -1
- package/src/__tests__/utils.ts +26 -0
- package/src/client/base-client.ts +50 -23
- package/src/client/clients/journey/open-api-definition.json +185 -20
- package/src/client/clients/journey/schema.ts +60 -15
- package/src/client/clients/payments/open-api-definition.json +305 -48
- package/src/client/clients/payments/schema.ts +93 -21
- package/vitest.config.mts +0 -1
|
@@ -541,8 +541,14 @@ export interface paths {
|
|
|
541
541
|
"application/json": {
|
|
542
542
|
data: {
|
|
543
543
|
paymentRequestId: string;
|
|
544
|
-
title:
|
|
545
|
-
|
|
544
|
+
title: {
|
|
545
|
+
en: string;
|
|
546
|
+
ga?: string;
|
|
547
|
+
};
|
|
548
|
+
description?: {
|
|
549
|
+
en: string;
|
|
550
|
+
ga?: string;
|
|
551
|
+
};
|
|
546
552
|
amount?: number;
|
|
547
553
|
reference?: string;
|
|
548
554
|
providers: {
|
|
@@ -603,8 +609,14 @@ export interface paths {
|
|
|
603
609
|
requestBody: {
|
|
604
610
|
content: {
|
|
605
611
|
"application/json": {
|
|
606
|
-
title:
|
|
607
|
-
|
|
612
|
+
title: {
|
|
613
|
+
en: string;
|
|
614
|
+
ga?: string;
|
|
615
|
+
};
|
|
616
|
+
description: {
|
|
617
|
+
en: string | null;
|
|
618
|
+
ga?: string;
|
|
619
|
+
};
|
|
608
620
|
reference: string | null;
|
|
609
621
|
amount: number | null;
|
|
610
622
|
redirectUrl: string | null;
|
|
@@ -711,8 +723,14 @@ export interface paths {
|
|
|
711
723
|
requestBody: {
|
|
712
724
|
content: {
|
|
713
725
|
"application/json": {
|
|
714
|
-
title:
|
|
715
|
-
|
|
726
|
+
title: {
|
|
727
|
+
en: string;
|
|
728
|
+
ga?: string;
|
|
729
|
+
};
|
|
730
|
+
description: {
|
|
731
|
+
en: string | null;
|
|
732
|
+
ga?: string;
|
|
733
|
+
};
|
|
716
734
|
reference: string | null;
|
|
717
735
|
amount: number | null;
|
|
718
736
|
redirectUrl: string | null;
|
|
@@ -838,8 +856,14 @@ export interface paths {
|
|
|
838
856
|
"application/json": {
|
|
839
857
|
data: {
|
|
840
858
|
paymentRequestId: string;
|
|
841
|
-
title:
|
|
842
|
-
|
|
859
|
+
title: {
|
|
860
|
+
en: string;
|
|
861
|
+
ga?: string;
|
|
862
|
+
};
|
|
863
|
+
description?: {
|
|
864
|
+
en: string;
|
|
865
|
+
ga?: string;
|
|
866
|
+
};
|
|
843
867
|
amount?: number;
|
|
844
868
|
allowAmountOverride: boolean;
|
|
845
869
|
createdAt: string;
|
|
@@ -917,8 +941,14 @@ export interface paths {
|
|
|
917
941
|
"application/json": {
|
|
918
942
|
data: {
|
|
919
943
|
paymentRequestId: string;
|
|
920
|
-
title:
|
|
921
|
-
|
|
944
|
+
title: {
|
|
945
|
+
en: string;
|
|
946
|
+
ga?: string;
|
|
947
|
+
};
|
|
948
|
+
description?: {
|
|
949
|
+
en: string;
|
|
950
|
+
ga?: string;
|
|
951
|
+
};
|
|
922
952
|
amount?: number;
|
|
923
953
|
reference?: string;
|
|
924
954
|
providers: {
|
|
@@ -1076,8 +1106,14 @@ export interface paths {
|
|
|
1076
1106
|
"application/json": {
|
|
1077
1107
|
data: {
|
|
1078
1108
|
paymentRequestId: string;
|
|
1079
|
-
title:
|
|
1080
|
-
|
|
1109
|
+
title: {
|
|
1110
|
+
en: string;
|
|
1111
|
+
ga?: string;
|
|
1112
|
+
};
|
|
1113
|
+
description?: {
|
|
1114
|
+
en: string;
|
|
1115
|
+
ga?: string;
|
|
1116
|
+
};
|
|
1081
1117
|
amount: number;
|
|
1082
1118
|
reference: string;
|
|
1083
1119
|
providers: {
|
|
@@ -1309,7 +1345,10 @@ export interface paths {
|
|
|
1309
1345
|
extPaymentId: string;
|
|
1310
1346
|
paymentProviderId: string;
|
|
1311
1347
|
updatedAt: string;
|
|
1312
|
-
title:
|
|
1348
|
+
title: {
|
|
1349
|
+
en: string;
|
|
1350
|
+
ga?: string;
|
|
1351
|
+
};
|
|
1313
1352
|
}[];
|
|
1314
1353
|
metadata?: {
|
|
1315
1354
|
/** @description Object containing the links to the related endpoints */
|
|
@@ -1421,7 +1460,10 @@ export interface paths {
|
|
|
1421
1460
|
extPaymentId: string;
|
|
1422
1461
|
paymentProviderId: string;
|
|
1423
1462
|
updatedAt: string;
|
|
1424
|
-
title:
|
|
1463
|
+
title: {
|
|
1464
|
+
en: string;
|
|
1465
|
+
ga?: string;
|
|
1466
|
+
};
|
|
1425
1467
|
userId: string;
|
|
1426
1468
|
metadata: {
|
|
1427
1469
|
runId?: string;
|
|
@@ -1430,7 +1472,10 @@ export interface paths {
|
|
|
1430
1472
|
redirectUrl?: string;
|
|
1431
1473
|
amount?: string;
|
|
1432
1474
|
};
|
|
1433
|
-
description:
|
|
1475
|
+
description: {
|
|
1476
|
+
en: string;
|
|
1477
|
+
ga?: string;
|
|
1478
|
+
};
|
|
1434
1479
|
providerName: string;
|
|
1435
1480
|
providerType: string;
|
|
1436
1481
|
paymentRequestId: string;
|
|
@@ -1667,7 +1712,10 @@ export interface paths {
|
|
|
1667
1712
|
extPaymentId: string;
|
|
1668
1713
|
paymentProviderId: string;
|
|
1669
1714
|
updatedAt: string;
|
|
1670
|
-
title:
|
|
1715
|
+
title: {
|
|
1716
|
+
en: string;
|
|
1717
|
+
ga?: string;
|
|
1718
|
+
};
|
|
1671
1719
|
userId: string;
|
|
1672
1720
|
metadata: {
|
|
1673
1721
|
runId?: string;
|
|
@@ -1676,7 +1724,10 @@ export interface paths {
|
|
|
1676
1724
|
redirectUrl?: string;
|
|
1677
1725
|
amount?: string;
|
|
1678
1726
|
};
|
|
1679
|
-
description:
|
|
1727
|
+
description: {
|
|
1728
|
+
en: string;
|
|
1729
|
+
ga?: string;
|
|
1730
|
+
};
|
|
1680
1731
|
providerName: string;
|
|
1681
1732
|
providerType: string;
|
|
1682
1733
|
paymentRequestId: string;
|
|
@@ -1917,6 +1968,15 @@ export interface paths {
|
|
|
1917
1968
|
};
|
|
1918
1969
|
paymentRequestTitle?: {
|
|
1919
1970
|
type?: string;
|
|
1971
|
+
properties?: {
|
|
1972
|
+
en?: {
|
|
1973
|
+
type?: string;
|
|
1974
|
+
};
|
|
1975
|
+
ga?: {
|
|
1976
|
+
type?: string;
|
|
1977
|
+
};
|
|
1978
|
+
};
|
|
1979
|
+
required?: string[];
|
|
1920
1980
|
};
|
|
1921
1981
|
amount?: {
|
|
1922
1982
|
minimum?: number;
|
|
@@ -2076,7 +2136,10 @@ export interface paths {
|
|
|
2076
2136
|
userId: string;
|
|
2077
2137
|
transactionId: string;
|
|
2078
2138
|
paymentRequestId: string;
|
|
2079
|
-
paymentRequestTitle:
|
|
2139
|
+
paymentRequestTitle: {
|
|
2140
|
+
en: string;
|
|
2141
|
+
ga?: string;
|
|
2142
|
+
};
|
|
2080
2143
|
amount: number;
|
|
2081
2144
|
extReferenceCode: string;
|
|
2082
2145
|
paymentMethod: string;
|
|
@@ -2619,7 +2682,10 @@ export interface paths {
|
|
|
2619
2682
|
data: {
|
|
2620
2683
|
transactionId: string;
|
|
2621
2684
|
status: "initiated" | "pending" | "succeeded" | "cancelled" | "cancellation_requested" | "failed" | "refunded" | "refund_failed";
|
|
2622
|
-
title:
|
|
2685
|
+
title: {
|
|
2686
|
+
en: string;
|
|
2687
|
+
ga?: string;
|
|
2688
|
+
};
|
|
2623
2689
|
updatedAt: string;
|
|
2624
2690
|
extPaymentId: string;
|
|
2625
2691
|
amount: number;
|
|
@@ -2750,7 +2816,10 @@ export interface paths {
|
|
|
2750
2816
|
extPaymentId: string;
|
|
2751
2817
|
paymentProviderId: string;
|
|
2752
2818
|
updatedAt: string;
|
|
2753
|
-
title:
|
|
2819
|
+
title: {
|
|
2820
|
+
en: string;
|
|
2821
|
+
ga?: string;
|
|
2822
|
+
};
|
|
2754
2823
|
userId: string;
|
|
2755
2824
|
metadata: {
|
|
2756
2825
|
runId?: string;
|
|
@@ -2759,7 +2828,10 @@ export interface paths {
|
|
|
2759
2828
|
redirectUrl?: string;
|
|
2760
2829
|
amount?: string;
|
|
2761
2830
|
};
|
|
2762
|
-
description:
|
|
2831
|
+
description: {
|
|
2832
|
+
en: string;
|
|
2833
|
+
ga?: string;
|
|
2834
|
+
};
|
|
2763
2835
|
providerName: string;
|
|
2764
2836
|
providerType: string;
|
|
2765
2837
|
paymentRequestId: string;
|
package/vitest.config.mts
CHANGED
|
@@ -11,7 +11,6 @@ export default defineConfig({
|
|
|
11
11
|
include: [
|
|
12
12
|
"**/@(test?(s)|__test?(s)__)/**/*.test.@(js|cjs|mjs|tap|cts|jsx|mts|ts|tsx)",
|
|
13
13
|
"**/*.@(test?(s)|spec).@(js|cjs|mjs|tap|cts|jsx|mts|ts|tsx)",
|
|
14
|
-
"**/test?(s).@(js|cjs|mjs|tap|cts|jsx|mts|ts|tsx)",
|
|
15
14
|
],
|
|
16
15
|
exclude: ["**/@(fixture*(s)|dist|node_modules)/**"],
|
|
17
16
|
maxConcurrency: 1,
|