@ogcio/building-blocks-sdk 0.2.64 → 0.2.66
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/.azure/pipeline.yaml +15 -5
- package/.azure/templates/pnpm-install.yaml +3 -3
- package/.release-please-manifest.json +1 -1
- package/.vscode/settings.json +1 -2
- package/CHANGELOG.md +14 -0
- package/biome.jsonc +9 -10
- package/dist/__tests__/client/clients/base-client.test.js.map +1 -1
- package/dist/client/clients/journey/index.d.ts +14 -12
- package/dist/client/clients/journey/index.d.ts.map +1 -1
- package/dist/client/clients/journey/schema.d.ts +12 -11
- package/dist/client/clients/journey/schema.d.ts.map +1 -1
- package/dist/client/clients/messaging/index.d.ts +3 -1
- package/dist/client/clients/messaging/index.d.ts.map +1 -1
- package/dist/client/clients/messaging/index.js +0 -1
- package/dist/client/clients/messaging/index.js.map +1 -1
- package/dist/client/utils/client-utils.js +3 -3
- package/dist/client/utils/client-utils.js.map +1 -1
- package/package.json +14 -14
- package/src/__tests__/client/clients/base-client.test.ts +1 -1
- package/src/cli/outdated-clients-command.ts +4 -2
- package/src/cli/update-clients-command.ts +5 -2
- package/src/client/clients/journey/open-api-definition.json +74 -1
- package/src/client/clients/journey/schema.ts +12 -11
- package/src/client/clients/messaging/index.ts +2 -3
- package/src/client/utils/client-utils.ts +3 -3
|
@@ -838,6 +838,12 @@
|
|
|
838
838
|
"title"
|
|
839
839
|
]
|
|
840
840
|
},
|
|
841
|
+
{
|
|
842
|
+
"type": "string",
|
|
843
|
+
"enum": [
|
|
844
|
+
"auth-method"
|
|
845
|
+
]
|
|
846
|
+
},
|
|
841
847
|
{
|
|
842
848
|
"type": "string",
|
|
843
849
|
"enum": [
|
|
@@ -1337,12 +1343,19 @@
|
|
|
1337
1343
|
},
|
|
1338
1344
|
"initialStepId": {
|
|
1339
1345
|
"type": "string"
|
|
1346
|
+
},
|
|
1347
|
+
"allowedAuthMethods": {
|
|
1348
|
+
"type": "array",
|
|
1349
|
+
"items": {
|
|
1350
|
+
"type": "string"
|
|
1351
|
+
}
|
|
1340
1352
|
}
|
|
1341
1353
|
},
|
|
1342
1354
|
"required": [
|
|
1343
1355
|
"title",
|
|
1344
1356
|
"status",
|
|
1345
|
-
"initialStepId"
|
|
1357
|
+
"initialStepId",
|
|
1358
|
+
"allowedAuthMethods"
|
|
1346
1359
|
]
|
|
1347
1360
|
}
|
|
1348
1361
|
}
|
|
@@ -2223,6 +2236,12 @@
|
|
|
2223
2236
|
"title"
|
|
2224
2237
|
]
|
|
2225
2238
|
},
|
|
2239
|
+
{
|
|
2240
|
+
"type": "string",
|
|
2241
|
+
"enum": [
|
|
2242
|
+
"auth-method"
|
|
2243
|
+
]
|
|
2244
|
+
},
|
|
2226
2245
|
{
|
|
2227
2246
|
"type": "string",
|
|
2228
2247
|
"enum": [
|
|
@@ -3437,6 +3456,12 @@
|
|
|
3437
3456
|
"title"
|
|
3438
3457
|
]
|
|
3439
3458
|
},
|
|
3459
|
+
{
|
|
3460
|
+
"type": "string",
|
|
3461
|
+
"enum": [
|
|
3462
|
+
"auth-method"
|
|
3463
|
+
]
|
|
3464
|
+
},
|
|
3440
3465
|
{
|
|
3441
3466
|
"type": "string",
|
|
3442
3467
|
"enum": [
|
|
@@ -4247,6 +4272,12 @@
|
|
|
4247
4272
|
"title"
|
|
4248
4273
|
]
|
|
4249
4274
|
},
|
|
4275
|
+
{
|
|
4276
|
+
"type": "string",
|
|
4277
|
+
"enum": [
|
|
4278
|
+
"auth-method"
|
|
4279
|
+
]
|
|
4280
|
+
},
|
|
4250
4281
|
{
|
|
4251
4282
|
"type": "string",
|
|
4252
4283
|
"enum": [
|
|
@@ -4319,6 +4350,12 @@
|
|
|
4319
4350
|
"title"
|
|
4320
4351
|
]
|
|
4321
4352
|
},
|
|
4353
|
+
{
|
|
4354
|
+
"type": "string",
|
|
4355
|
+
"enum": [
|
|
4356
|
+
"auth-method"
|
|
4357
|
+
]
|
|
4358
|
+
},
|
|
4322
4359
|
{
|
|
4323
4360
|
"type": "string",
|
|
4324
4361
|
"enum": [
|
|
@@ -4745,6 +4782,12 @@
|
|
|
4745
4782
|
"title"
|
|
4746
4783
|
]
|
|
4747
4784
|
},
|
|
4785
|
+
{
|
|
4786
|
+
"type": "string",
|
|
4787
|
+
"enum": [
|
|
4788
|
+
"auth-method"
|
|
4789
|
+
]
|
|
4790
|
+
},
|
|
4748
4791
|
{
|
|
4749
4792
|
"type": "string",
|
|
4750
4793
|
"enum": [
|
|
@@ -4929,6 +4972,12 @@
|
|
|
4929
4972
|
"title"
|
|
4930
4973
|
]
|
|
4931
4974
|
},
|
|
4975
|
+
{
|
|
4976
|
+
"type": "string",
|
|
4977
|
+
"enum": [
|
|
4978
|
+
"auth-method"
|
|
4979
|
+
]
|
|
4980
|
+
},
|
|
4932
4981
|
{
|
|
4933
4982
|
"type": "string",
|
|
4934
4983
|
"enum": [
|
|
@@ -5690,6 +5739,12 @@
|
|
|
5690
5739
|
"title"
|
|
5691
5740
|
]
|
|
5692
5741
|
},
|
|
5742
|
+
{
|
|
5743
|
+
"type": "string",
|
|
5744
|
+
"enum": [
|
|
5745
|
+
"auth-method"
|
|
5746
|
+
]
|
|
5747
|
+
},
|
|
5693
5748
|
{
|
|
5694
5749
|
"type": "string",
|
|
5695
5750
|
"enum": [
|
|
@@ -6436,6 +6491,12 @@
|
|
|
6436
6491
|
"title"
|
|
6437
6492
|
]
|
|
6438
6493
|
},
|
|
6494
|
+
{
|
|
6495
|
+
"type": "string",
|
|
6496
|
+
"enum": [
|
|
6497
|
+
"auth-method"
|
|
6498
|
+
]
|
|
6499
|
+
},
|
|
6439
6500
|
{
|
|
6440
6501
|
"type": "string",
|
|
6441
6502
|
"enum": [
|
|
@@ -8727,6 +8788,12 @@
|
|
|
8727
8788
|
"title"
|
|
8728
8789
|
]
|
|
8729
8790
|
},
|
|
8791
|
+
{
|
|
8792
|
+
"type": "string",
|
|
8793
|
+
"enum": [
|
|
8794
|
+
"auth-method"
|
|
8795
|
+
]
|
|
8796
|
+
},
|
|
8730
8797
|
{
|
|
8731
8798
|
"type": "string",
|
|
8732
8799
|
"enum": [
|
|
@@ -9163,6 +9230,12 @@
|
|
|
9163
9230
|
"title"
|
|
9164
9231
|
]
|
|
9165
9232
|
},
|
|
9233
|
+
{
|
|
9234
|
+
"type": "string",
|
|
9235
|
+
"enum": [
|
|
9236
|
+
"auth-method"
|
|
9237
|
+
]
|
|
9238
|
+
},
|
|
9166
9239
|
{
|
|
9167
9240
|
"type": "string",
|
|
9168
9241
|
"enum": [
|
|
@@ -778,7 +778,7 @@ export interface operations {
|
|
|
778
778
|
steps: {
|
|
779
779
|
id: string;
|
|
780
780
|
journeyId: string;
|
|
781
|
-
stepType: "title" | "form" | "payment" | "messaging" | "complete";
|
|
781
|
+
stepType: "title" | "auth-method" | "form" | "payment" | "messaging" | "complete";
|
|
782
782
|
stepData: {
|
|
783
783
|
formId: string;
|
|
784
784
|
} | {
|
|
@@ -894,6 +894,7 @@ export interface operations {
|
|
|
894
894
|
};
|
|
895
895
|
status: "active" | "inactive" | "draft";
|
|
896
896
|
initialStepId: string;
|
|
897
|
+
allowedAuthMethods: string[];
|
|
897
898
|
};
|
|
898
899
|
};
|
|
899
900
|
};
|
|
@@ -1155,7 +1156,7 @@ export interface operations {
|
|
|
1155
1156
|
};
|
|
1156
1157
|
steps: {
|
|
1157
1158
|
stepId: string;
|
|
1158
|
-
type: "title" | "form" | "payment" | "messaging" | "complete";
|
|
1159
|
+
type: "title" | "auth-method" | "form" | "payment" | "messaging" | "complete";
|
|
1159
1160
|
resourceId: string;
|
|
1160
1161
|
stepSchema?: unknown;
|
|
1161
1162
|
}[];
|
|
@@ -1505,7 +1506,7 @@ export interface operations {
|
|
|
1505
1506
|
data: {
|
|
1506
1507
|
id: string;
|
|
1507
1508
|
journeyId: string;
|
|
1508
|
-
stepType: "title" | "form" | "payment" | "messaging" | "complete";
|
|
1509
|
+
stepType: "title" | "auth-method" | "form" | "payment" | "messaging" | "complete";
|
|
1509
1510
|
stepData: {
|
|
1510
1511
|
formId: string;
|
|
1511
1512
|
} | {
|
|
@@ -1633,7 +1634,7 @@ export interface operations {
|
|
|
1633
1634
|
};
|
|
1634
1635
|
};
|
|
1635
1636
|
configured: boolean;
|
|
1636
|
-
stepType: "title" | "form" | "payment" | "messaging" | "complete";
|
|
1637
|
+
stepType: "title" | "auth-method" | "form" | "payment" | "messaging" | "complete";
|
|
1637
1638
|
};
|
|
1638
1639
|
};
|
|
1639
1640
|
};
|
|
@@ -1648,7 +1649,7 @@ export interface operations {
|
|
|
1648
1649
|
data: {
|
|
1649
1650
|
id: string;
|
|
1650
1651
|
journeyId: string;
|
|
1651
|
-
stepType: "title" | "form" | "payment" | "messaging" | "complete";
|
|
1652
|
+
stepType: "title" | "auth-method" | "form" | "payment" | "messaging" | "complete";
|
|
1652
1653
|
stepData: {
|
|
1653
1654
|
formId: string;
|
|
1654
1655
|
} | {
|
|
@@ -1831,7 +1832,7 @@ export interface operations {
|
|
|
1831
1832
|
content: {
|
|
1832
1833
|
"application/json": {
|
|
1833
1834
|
journeyId: string;
|
|
1834
|
-
stepType: "title" | "form" | "payment" | "messaging" | "complete";
|
|
1835
|
+
stepType: "title" | "auth-method" | "form" | "payment" | "messaging" | "complete";
|
|
1835
1836
|
configured: boolean;
|
|
1836
1837
|
stepData: {
|
|
1837
1838
|
formId: string;
|
|
@@ -1871,7 +1872,7 @@ export interface operations {
|
|
|
1871
1872
|
data: {
|
|
1872
1873
|
id: string;
|
|
1873
1874
|
journeyId: string;
|
|
1874
|
-
stepType: "title" | "form" | "payment" | "messaging" | "complete";
|
|
1875
|
+
stepType: "title" | "auth-method" | "form" | "payment" | "messaging" | "complete";
|
|
1875
1876
|
stepData: {
|
|
1876
1877
|
formId: string;
|
|
1877
1878
|
} | {
|
|
@@ -2064,7 +2065,7 @@ export interface operations {
|
|
|
2064
2065
|
id: string;
|
|
2065
2066
|
runId: string;
|
|
2066
2067
|
stepId: string;
|
|
2067
|
-
stepType: "title" | "form" | "payment" | "messaging" | "complete";
|
|
2068
|
+
stepType: "title" | "auth-method" | "form" | "payment" | "messaging" | "complete";
|
|
2068
2069
|
status: "pending" | "in_progress" | "failed" | "completed";
|
|
2069
2070
|
data?: {
|
|
2070
2071
|
formSubmissionId: string;
|
|
@@ -2246,7 +2247,7 @@ export interface operations {
|
|
|
2246
2247
|
id: string;
|
|
2247
2248
|
runId: string;
|
|
2248
2249
|
stepId: string;
|
|
2249
|
-
stepType: "title" | "form" | "payment" | "messaging" | "complete";
|
|
2250
|
+
stepType: "title" | "auth-method" | "form" | "payment" | "messaging" | "complete";
|
|
2250
2251
|
status: "pending" | "in_progress" | "failed" | "completed";
|
|
2251
2252
|
data?: {
|
|
2252
2253
|
formSubmissionId: string;
|
|
@@ -2818,7 +2819,7 @@ export interface operations {
|
|
|
2818
2819
|
data: {
|
|
2819
2820
|
url: string;
|
|
2820
2821
|
stepId: string;
|
|
2821
|
-
stepType: "title" | "form" | "payment" | "messaging" | "complete";
|
|
2822
|
+
stepType: "title" | "auth-method" | "form" | "payment" | "messaging" | "complete";
|
|
2822
2823
|
};
|
|
2823
2824
|
metadata?: {
|
|
2824
2825
|
links?: {
|
|
@@ -2927,7 +2928,7 @@ export interface operations {
|
|
|
2927
2928
|
data: {
|
|
2928
2929
|
url: string;
|
|
2929
2930
|
stepId: string;
|
|
2930
|
-
stepType: "title" | "form" | "payment" | "messaging" | "complete";
|
|
2931
|
+
stepType: "title" | "auth-method" | "form" | "payment" | "messaging" | "complete";
|
|
2931
2932
|
};
|
|
2932
2933
|
metadata?: {
|
|
2933
2934
|
links?: {
|
|
@@ -3,9 +3,9 @@ import type createClient from "openapi-fetch";
|
|
|
3
3
|
import { MESSAGING } from "../../../types/index.js";
|
|
4
4
|
import { BaseClient } from "../../base-client.js";
|
|
5
5
|
import {
|
|
6
|
-
type PaginationParams,
|
|
7
6
|
formatError,
|
|
8
7
|
formatResponse,
|
|
8
|
+
type PaginationParams,
|
|
9
9
|
preparePaginationParams,
|
|
10
10
|
throwIfEmpty,
|
|
11
11
|
} from "../../utils/client-utils.js";
|
|
@@ -349,8 +349,7 @@ export class Messaging extends BaseClient<paths> {
|
|
|
349
349
|
throwIfEmpty(providerId);
|
|
350
350
|
return this.client
|
|
351
351
|
.DELETE("/api/v1/providers/{providerId}", {
|
|
352
|
-
|
|
353
|
-
params: { path: { providerId }, query: { type: "email" } as any },
|
|
352
|
+
params: { path: { providerId }, query: { type: "email" } },
|
|
354
353
|
})
|
|
355
354
|
.then(
|
|
356
355
|
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
@@ -50,14 +50,14 @@ export function preparePaginationParams(paginationParams?: PaginationParams): {
|
|
|
50
50
|
return output;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
// biome-ignore lint/suspicious/noExplicitAny:
|
|
53
|
+
// biome-ignore lint/suspicious/noExplicitAny: Needed for unknown types from responses
|
|
54
54
|
export function formatResponse<G extends Record<string | number, any>, O>(
|
|
55
55
|
response: FetchResponse<G, O, "application/json">,
|
|
56
56
|
serviceName: string,
|
|
57
57
|
logger?: Logger,
|
|
58
58
|
): DataResponseValue<G, O> {
|
|
59
|
-
let outputData
|
|
60
|
-
let outputMetadata
|
|
59
|
+
let outputData: unknown;
|
|
60
|
+
let outputMetadata: unknown;
|
|
61
61
|
|
|
62
62
|
if (!response) {
|
|
63
63
|
logger?.trace(`${serviceName} - Undefined response`);
|