@ogcio/building-blocks-sdk 0.2.72 → 0.2.74

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.
@@ -132,7 +132,11 @@ export interface paths {
132
132
  delete: operations["deleteJourney"];
133
133
  options?: never;
134
134
  head?: never;
135
- patch?: never;
135
+ /**
136
+ * Update journey status
137
+ * @description Update an existing journey status
138
+ */
139
+ patch: operations["updateJourneyStatus"];
136
140
  trace?: never;
137
141
  };
138
142
  "/api/v1/journeys/{journeyId}/public-info": {
@@ -574,6 +578,7 @@ export interface operations {
574
578
  limit?: number;
575
579
  ids?: string | string[];
576
580
  search?: string;
581
+ status?: "active" | "inactive";
577
582
  from?: string;
578
583
  to?: string;
579
584
  };
@@ -602,7 +607,7 @@ export interface operations {
602
607
  initialStepId: string;
603
608
  createdAt: string;
604
609
  updatedAt: string;
605
- allowedAuthMethods: string[];
610
+ allowedAuthMethods: ("email_otp" | "social:mygovid")[];
606
611
  userName: string;
607
612
  }[];
608
613
  metadata?: {
@@ -665,7 +670,7 @@ export interface operations {
665
670
  en: string;
666
671
  ga?: string;
667
672
  };
668
- allowedAuthMethods: string[];
673
+ allowedAuthMethods: ("email_otp" | "social:mygovid")[];
669
674
  organizationId: string;
670
675
  userId: string;
671
676
  };
@@ -679,6 +684,11 @@ export interface operations {
679
684
  };
680
685
  content: {
681
686
  "application/json": {
687
+ /**
688
+ * @example {
689
+ * "id": "db28c9c2-984c-4295-9a89-ee93f4b9f059"
690
+ * }
691
+ */
682
692
  data: {
683
693
  id: string;
684
694
  };
@@ -774,7 +784,7 @@ export interface operations {
774
784
  createdAt: string;
775
785
  updatedAt: string;
776
786
  initialStepId: string;
777
- allowedAuthMethods: string[];
787
+ allowedAuthMethods: ("email_otp" | "social:mygovid")[];
778
788
  steps: {
779
789
  id: string;
780
790
  journeyId: string;
@@ -892,9 +902,9 @@ export interface operations {
892
902
  en: string;
893
903
  ga?: string;
894
904
  };
905
+ allowedAuthMethods: ("email_otp" | "social:mygovid")[];
895
906
  status: "active" | "inactive" | "draft";
896
907
  initialStepId: string;
897
- allowedAuthMethods: string[];
898
908
  };
899
909
  };
900
910
  };
@@ -906,6 +916,11 @@ export interface operations {
906
916
  };
907
917
  content: {
908
918
  "application/json": {
919
+ /**
920
+ * @example {
921
+ * "id": "db28c9c2-984c-4295-9a89-ee93f4b9f059"
922
+ * }
923
+ */
909
924
  data: {
910
925
  id: string;
911
926
  };
@@ -989,6 +1004,11 @@ export interface operations {
989
1004
  };
990
1005
  content: {
991
1006
  "application/json": {
1007
+ /**
1008
+ * @example {
1009
+ * "ok": true
1010
+ * }
1011
+ */
992
1012
  data: {
993
1013
  ok: boolean;
994
1014
  };
@@ -1054,6 +1074,95 @@ export interface operations {
1054
1074
  };
1055
1075
  };
1056
1076
  };
1077
+ updateJourneyStatus: {
1078
+ parameters: {
1079
+ query?: never;
1080
+ header?: never;
1081
+ path: {
1082
+ journeyId: string;
1083
+ };
1084
+ cookie?: never;
1085
+ };
1086
+ requestBody: {
1087
+ content: {
1088
+ "application/json": {
1089
+ status: "active" | "inactive";
1090
+ };
1091
+ };
1092
+ };
1093
+ responses: {
1094
+ /** @description Default Response */
1095
+ 200: {
1096
+ headers: {
1097
+ [name: string]: unknown;
1098
+ };
1099
+ content: {
1100
+ "application/json": {
1101
+ data: {
1102
+ status: "active" | "inactive";
1103
+ };
1104
+ metadata?: {
1105
+ links?: {
1106
+ self: {
1107
+ href?: string;
1108
+ };
1109
+ next?: {
1110
+ href?: string;
1111
+ };
1112
+ prev?: {
1113
+ href?: string;
1114
+ };
1115
+ first: {
1116
+ href?: string;
1117
+ };
1118
+ last: {
1119
+ href?: string;
1120
+ };
1121
+ pages: {
1122
+ [key: string]: {
1123
+ href?: string;
1124
+ };
1125
+ };
1126
+ };
1127
+ totalCount?: number;
1128
+ };
1129
+ };
1130
+ };
1131
+ };
1132
+ /** @description Default Response */
1133
+ 401: {
1134
+ headers: {
1135
+ [name: string]: unknown;
1136
+ };
1137
+ content: {
1138
+ "application/json": {
1139
+ code: string;
1140
+ detail: string;
1141
+ requestId: string;
1142
+ name: string;
1143
+ validation?: unknown;
1144
+ validationContext?: string;
1145
+ };
1146
+ };
1147
+ };
1148
+ /** @description Default Response */
1149
+ 500: {
1150
+ headers: {
1151
+ [name: string]: unknown;
1152
+ };
1153
+ content: {
1154
+ "application/json": {
1155
+ code: string;
1156
+ detail: string;
1157
+ requestId: string;
1158
+ name: string;
1159
+ validation?: unknown;
1160
+ validationContext?: string;
1161
+ };
1162
+ };
1163
+ };
1164
+ };
1165
+ };
1057
1166
  getJourneyPublicInfo: {
1058
1167
  parameters: {
1059
1168
  query?: never;
@@ -1072,6 +1181,25 @@ export interface operations {
1072
1181
  };
1073
1182
  content: {
1074
1183
  "application/json": {
1184
+ /**
1185
+ * @example {
1186
+ * "id": "journey_1234567890abcdef",
1187
+ * "title": {
1188
+ * "en": "Test messaging",
1189
+ * "ga": "Teistphostú"
1190
+ * },
1191
+ * "userId": "user_1234567890abcdef",
1192
+ * "organizationId": "org_1234567890abcdef",
1193
+ * "status": "active",
1194
+ * "createdAt": "2025-10-09T15:02:00.000Z",
1195
+ * "updatedAt": "2025-10-09T15:02:00.000Z",
1196
+ * "initialStepId": "step_title_001",
1197
+ * "allowedAuthMethods": [
1198
+ * "email_otp",
1199
+ * "social:mygovid"
1200
+ * ]
1201
+ * }
1202
+ */
1075
1203
  data: {
1076
1204
  id: string;
1077
1205
  title: {
@@ -1082,7 +1210,7 @@ export interface operations {
1082
1210
  initialStepId: string;
1083
1211
  createdAt: string;
1084
1212
  updatedAt: string;
1085
- allowedAuthMethods: string[];
1213
+ allowedAuthMethods: ("email_otp" | "social:mygovid")[];
1086
1214
  };
1087
1215
  metadata?: {
1088
1216
  links?: {
@@ -1246,6 +1374,13 @@ export interface operations {
1246
1374
  };
1247
1375
  content: {
1248
1376
  "application/json": {
1377
+ /**
1378
+ * @example {
1379
+ * "id": "conn_1234567890abcdef",
1380
+ * "sourceStepId": "step_title_001",
1381
+ * "destinationStepId": "step_form_002"
1382
+ * }
1383
+ */
1249
1384
  data: {
1250
1385
  id: string;
1251
1386
  sourceStepId: string;
@@ -1418,6 +1553,13 @@ export interface operations {
1418
1553
  };
1419
1554
  content: {
1420
1555
  "application/json": {
1556
+ /**
1557
+ * @example {
1558
+ * "id": "conn_1234567890abcdef",
1559
+ * "sourceStepId": "step_title_001",
1560
+ * "destinationStepId": "step_form_002"
1561
+ * }
1562
+ */
1421
1563
  data: {
1422
1564
  id: string;
1423
1565
  sourceStepId: string;
@@ -1503,6 +1645,21 @@ export interface operations {
1503
1645
  };
1504
1646
  content: {
1505
1647
  "application/json": {
1648
+ /**
1649
+ * @example {
1650
+ * "id": "step_title_001",
1651
+ * "journeyId": "journey_1234567890abcdef",
1652
+ * "stepType": "title",
1653
+ * "stepData": {
1654
+ * "uiConfig": {
1655
+ * "setupPageVersion": "citizen-notification"
1656
+ * }
1657
+ * },
1658
+ * "configured": true,
1659
+ * "createdAt": "2025-10-09T15:02:00.000Z",
1660
+ * "updatedAt": "2025-10-09T15:02:00.000Z"
1661
+ * }
1662
+ */
1506
1663
  data: {
1507
1664
  id: string;
1508
1665
  journeyId: string;
@@ -1646,6 +1803,21 @@ export interface operations {
1646
1803
  };
1647
1804
  content: {
1648
1805
  "application/json": {
1806
+ /**
1807
+ * @example {
1808
+ * "id": "step_title_001",
1809
+ * "journeyId": "journey_1234567890abcdef",
1810
+ * "stepType": "title",
1811
+ * "stepData": {
1812
+ * "uiConfig": {
1813
+ * "setupPageVersion": "citizen-notification"
1814
+ * }
1815
+ * },
1816
+ * "configured": true,
1817
+ * "createdAt": "2025-10-09T15:02:00.000Z",
1818
+ * "updatedAt": "2025-10-09T15:02:00.000Z"
1819
+ * }
1820
+ */
1649
1821
  data: {
1650
1822
  id: string;
1651
1823
  journeyId: string;
@@ -1869,6 +2041,21 @@ export interface operations {
1869
2041
  };
1870
2042
  content: {
1871
2043
  "application/json": {
2044
+ /**
2045
+ * @example {
2046
+ * "id": "step_title_001",
2047
+ * "journeyId": "journey_1234567890abcdef",
2048
+ * "stepType": "title",
2049
+ * "stepData": {
2050
+ * "uiConfig": {
2051
+ * "setupPageVersion": "citizen-notification"
2052
+ * }
2053
+ * },
2054
+ * "configured": true,
2055
+ * "createdAt": "2025-10-09T15:02:00.000Z",
2056
+ * "updatedAt": "2025-10-09T15:02:00.000Z"
2057
+ * }
2058
+ */
1872
2059
  data: {
1873
2060
  id: string;
1874
2061
  journeyId: string;
@@ -2053,6 +2240,51 @@ export interface operations {
2053
2240
  };
2054
2241
  content: {
2055
2242
  "application/json": {
2243
+ /**
2244
+ * @example {
2245
+ * "id": "970B0547",
2246
+ * "userId": "user_1234567890abcdef",
2247
+ * "journeyId": "journey_1234567890abcdef",
2248
+ * "status": "submitted",
2249
+ * "tags": [
2250
+ * "urgent",
2251
+ * "priority"
2252
+ * ],
2253
+ * "createdAt": "2025-10-09T15:02:00.000Z",
2254
+ * "updatedAt": "2025-10-09T15:03:00.000Z",
2255
+ * "steps": [
2256
+ * {
2257
+ * "id": "run_step_001",
2258
+ * "runId": "970B0547",
2259
+ * "stepId": "step_form_002",
2260
+ * "stepType": "form",
2261
+ * "status": "completed",
2262
+ * "data": {
2263
+ * "formSubmissionId": "68e7ce9c41ee8b6cfd77a68e",
2264
+ * "amount": 25
2265
+ * },
2266
+ * "createdAt": "2025-10-09T15:02:00.000Z",
2267
+ * "updatedAt": "2025-10-09T15:02:30.000Z"
2268
+ * },
2269
+ * {
2270
+ * "id": "run_step_002",
2271
+ * "runId": "970B0547",
2272
+ * "stepId": "step_payment_003",
2273
+ * "stepType": "payment",
2274
+ * "status": "completed",
2275
+ * "data": {
2276
+ * "transactionId": "txn_1234567890abcdef",
2277
+ * "amount": 25,
2278
+ * "date": "2025-10-09T15:03:00.000Z",
2279
+ * "provider": "stripe"
2280
+ * },
2281
+ * "createdAt": "2025-10-09T15:02:30.000Z",
2282
+ * "updatedAt": "2025-10-09T15:03:00.000Z"
2283
+ * }
2284
+ * ],
2285
+ * "choosenAuthMethod": "email_otp"
2286
+ * }
2287
+ */
2056
2288
  data: {
2057
2289
  id: string;
2058
2290
  userId: string;
@@ -2421,6 +2653,51 @@ export interface operations {
2421
2653
  };
2422
2654
  requestBody: {
2423
2655
  content: {
2656
+ /**
2657
+ * @example {
2658
+ * "id": "970B0547",
2659
+ * "userId": "user_1234567890abcdef",
2660
+ * "journeyId": "journey_1234567890abcdef",
2661
+ * "status": "submitted",
2662
+ * "tags": [
2663
+ * "urgent",
2664
+ * "priority"
2665
+ * ],
2666
+ * "createdAt": "2025-10-09T15:02:00.000Z",
2667
+ * "updatedAt": "2025-10-09T15:03:00.000Z",
2668
+ * "steps": [
2669
+ * {
2670
+ * "id": "run_step_001",
2671
+ * "runId": "970B0547",
2672
+ * "stepId": "step_form_002",
2673
+ * "stepType": "form",
2674
+ * "status": "completed",
2675
+ * "data": {
2676
+ * "formSubmissionId": "68e7ce9c41ee8b6cfd77a68e",
2677
+ * "amount": 25
2678
+ * },
2679
+ * "createdAt": "2025-10-09T15:02:00.000Z",
2680
+ * "updatedAt": "2025-10-09T15:02:30.000Z"
2681
+ * },
2682
+ * {
2683
+ * "id": "run_step_002",
2684
+ * "runId": "970B0547",
2685
+ * "stepId": "step_payment_003",
2686
+ * "stepType": "payment",
2687
+ * "status": "completed",
2688
+ * "data": {
2689
+ * "transactionId": "txn_1234567890abcdef",
2690
+ * "amount": 25,
2691
+ * "date": "2025-10-09T15:03:00.000Z",
2692
+ * "provider": "stripe"
2693
+ * },
2694
+ * "createdAt": "2025-10-09T15:02:30.000Z",
2695
+ * "updatedAt": "2025-10-09T15:03:00.000Z"
2696
+ * }
2697
+ * ],
2698
+ * "choosenAuthMethod": "email_otp"
2699
+ * }
2700
+ */
2424
2701
  "application/json": {
2425
2702
  status: "initiated" | "submitted" | "processing" | "completed" | "cancelled";
2426
2703
  };
@@ -2434,6 +2711,51 @@ export interface operations {
2434
2711
  };
2435
2712
  content: {
2436
2713
  "application/json": {
2714
+ /**
2715
+ * @example {
2716
+ * "id": "970B0547",
2717
+ * "userId": "user_1234567890abcdef",
2718
+ * "journeyId": "journey_1234567890abcdef",
2719
+ * "status": "submitted",
2720
+ * "tags": [
2721
+ * "urgent",
2722
+ * "priority"
2723
+ * ],
2724
+ * "createdAt": "2025-10-09T15:02:00.000Z",
2725
+ * "updatedAt": "2025-10-09T15:03:00.000Z",
2726
+ * "steps": [
2727
+ * {
2728
+ * "id": "run_step_001",
2729
+ * "runId": "970B0547",
2730
+ * "stepId": "step_form_002",
2731
+ * "stepType": "form",
2732
+ * "status": "completed",
2733
+ * "data": {
2734
+ * "formSubmissionId": "68e7ce9c41ee8b6cfd77a68e",
2735
+ * "amount": 25
2736
+ * },
2737
+ * "createdAt": "2025-10-09T15:02:00.000Z",
2738
+ * "updatedAt": "2025-10-09T15:02:30.000Z"
2739
+ * },
2740
+ * {
2741
+ * "id": "run_step_002",
2742
+ * "runId": "970B0547",
2743
+ * "stepId": "step_payment_003",
2744
+ * "stepType": "payment",
2745
+ * "status": "completed",
2746
+ * "data": {
2747
+ * "transactionId": "txn_1234567890abcdef",
2748
+ * "amount": 25,
2749
+ * "date": "2025-10-09T15:03:00.000Z",
2750
+ * "provider": "stripe"
2751
+ * },
2752
+ * "createdAt": "2025-10-09T15:02:30.000Z",
2753
+ * "updatedAt": "2025-10-09T15:03:00.000Z"
2754
+ * }
2755
+ * ],
2756
+ * "choosenAuthMethod": "email_otp"
2757
+ * }
2758
+ */
2437
2759
  data: {
2438
2760
  status: "initiated" | "submitted" | "processing" | "completed" | "cancelled";
2439
2761
  };
@@ -2711,6 +3033,11 @@ export interface operations {
2711
3033
  };
2712
3034
  content: {
2713
3035
  "application/json": {
3036
+ /**
3037
+ * @example {
3038
+ * "id": "db28c9c2-984c-4295-9a89-ee93f4b9f059"
3039
+ * }
3040
+ */
2714
3041
  data: {
2715
3042
  id: string;
2716
3043
  };
@@ -2816,6 +3143,13 @@ export interface operations {
2816
3143
  };
2817
3144
  content: {
2818
3145
  "application/json": {
3146
+ /**
3147
+ * @example {
3148
+ * "url": "https://forms.uat.services.gov.ie/admin/form/68ca7425d5fe2c00124268f6/results/68e7ce9c41ee8b6cfd77a68e",
3149
+ * "stepId": "step_form_002",
3150
+ * "stepType": "form"
3151
+ * }
3152
+ */
2819
3153
  data: {
2820
3154
  url: string;
2821
3155
  stepId: string;
@@ -2925,6 +3259,13 @@ export interface operations {
2925
3259
  };
2926
3260
  content: {
2927
3261
  "application/json": {
3262
+ /**
3263
+ * @example {
3264
+ * "url": "https://forms.uat.services.gov.ie/admin/form/68ca7425d5fe2c00124268f6/results/68e7ce9c41ee8b6cfd77a68e",
3265
+ * "stepId": "step_form_002",
3266
+ * "stepType": "form"
3267
+ * }
3268
+ */
2928
3269
  data: {
2929
3270
  url: string;
2930
3271
  stepId: string;
@@ -3031,6 +3372,21 @@ export interface operations {
3031
3372
  };
3032
3373
  content: {
3033
3374
  "application/json": {
3375
+ /**
3376
+ * @example {
3377
+ * "runId": "970B0547",
3378
+ * "title": {
3379
+ * "en": "Test messaging",
3380
+ * "ga": "Teistphostú"
3381
+ * },
3382
+ * "createdAt": "2025-10-09T15:02:00.000Z",
3383
+ * "actionLabel": {
3384
+ * "en": "View Submission",
3385
+ * "ga": "Féach ar an gCur isteach"
3386
+ * },
3387
+ * "returnUrl": "https://services.gov.ie/dashboard/submissions/970B0547"
3388
+ * }
3389
+ */
3034
3390
  data: {
3035
3391
  runId: string;
3036
3392
  title: {
@@ -3168,6 +3524,7 @@ export interface operations {
3168
3524
  resource?: string;
3169
3525
  resourceId?: string;
3170
3526
  action?: string;
3527
+ userId?: string;
3171
3528
  from?: string;
3172
3529
  to?: string;
3173
3530
  };
@@ -126,6 +126,15 @@ export class Profile extends BaseClient<paths> {
126
126
  );
127
127
  }
128
128
 
129
+ async deleteProfile(
130
+ params: paths["/api/v1/profiles/{profileId}"]["delete"]["parameters"]["path"],
131
+ ) {
132
+ throwIfEmpty(params.profileId);
133
+ return this.client.DELETE("/api/v1/profiles/{profileId}", {
134
+ params: { path: params },
135
+ });
136
+ }
137
+
129
138
  async findProfile(
130
139
  query: Omit<
131
140
  paths["/api/v1/profiles/find-profile"]["get"]["parameters"]["query"],
@@ -325,7 +334,7 @@ export class Profile extends BaseClient<paths> {
325
334
  throwIfEmpty(organisationId);
326
335
  return this.client.GET("/api/v1/organisations/{organisationId}", {
327
336
  params: {
328
- query: includeCustomData ? { includeCustomData } : undefined,
337
+ query: includeCustomData ? { includeCustomData: "true" } : undefined,
329
338
  path: { organisationId },
330
339
  },
331
340
  });