@ogcio/building-blocks-sdk 0.2.30 → 0.2.32
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/client/clients/journey/index.d.ts +86 -0
- package/dist/client/clients/journey/index.d.ts.map +1 -1
- package/dist/client/clients/journey/index.js +12 -0
- package/dist/client/clients/journey/index.js.map +1 -1
- package/dist/client/clients/journey/schema.d.ts +83 -1
- package/dist/client/clients/journey/schema.d.ts.map +1 -1
- package/dist/client/clients/profile/index.d.ts +148 -0
- package/dist/client/clients/profile/index.d.ts.map +1 -1
- package/dist/client/clients/profile/index.js +13 -0
- package/dist/client/clients/profile/index.js.map +1 -1
- package/dist/client/clients/profile/schema.d.ts +6 -0
- package/dist/client/clients/profile/schema.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client/clients/journey/index.ts +18 -0
- package/src/client/clients/journey/open-api-definition.json +181 -0
- package/src/client/clients/journey/schema.ts +83 -1
- package/src/client/clients/profile/index.ts +26 -0
- package/src/client/clients/profile/open-api-definition.json +12 -0
- package/src/client/clients/profile/schema.ts +6 -0
|
@@ -4910,6 +4910,187 @@
|
|
|
4910
4910
|
}
|
|
4911
4911
|
}
|
|
4912
4912
|
},
|
|
4913
|
+
"delete": {
|
|
4914
|
+
"tags": [
|
|
4915
|
+
"Executor"
|
|
4916
|
+
],
|
|
4917
|
+
"parameters": [
|
|
4918
|
+
{
|
|
4919
|
+
"schema": {
|
|
4920
|
+
"type": "string"
|
|
4921
|
+
},
|
|
4922
|
+
"in": "path",
|
|
4923
|
+
"name": "runId",
|
|
4924
|
+
"required": true
|
|
4925
|
+
}
|
|
4926
|
+
],
|
|
4927
|
+
"responses": {
|
|
4928
|
+
"200": {
|
|
4929
|
+
"description": "Default Response",
|
|
4930
|
+
"content": {
|
|
4931
|
+
"application/json": {
|
|
4932
|
+
"schema": {
|
|
4933
|
+
"type": "object",
|
|
4934
|
+
"properties": {
|
|
4935
|
+
"data": {
|
|
4936
|
+
"type": "object",
|
|
4937
|
+
"properties": {
|
|
4938
|
+
"success": {
|
|
4939
|
+
"type": "boolean"
|
|
4940
|
+
}
|
|
4941
|
+
},
|
|
4942
|
+
"required": [
|
|
4943
|
+
"success"
|
|
4944
|
+
]
|
|
4945
|
+
},
|
|
4946
|
+
"metadata": {
|
|
4947
|
+
"type": "object",
|
|
4948
|
+
"properties": {
|
|
4949
|
+
"links": {
|
|
4950
|
+
"type": "object",
|
|
4951
|
+
"properties": {
|
|
4952
|
+
"self": {
|
|
4953
|
+
"type": "object",
|
|
4954
|
+
"properties": {
|
|
4955
|
+
"href": {
|
|
4956
|
+
"type": "string"
|
|
4957
|
+
}
|
|
4958
|
+
}
|
|
4959
|
+
},
|
|
4960
|
+
"next": {
|
|
4961
|
+
"type": "object",
|
|
4962
|
+
"properties": {
|
|
4963
|
+
"href": {
|
|
4964
|
+
"type": "string"
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
},
|
|
4968
|
+
"prev": {
|
|
4969
|
+
"type": "object",
|
|
4970
|
+
"properties": {
|
|
4971
|
+
"href": {
|
|
4972
|
+
"type": "string"
|
|
4973
|
+
}
|
|
4974
|
+
}
|
|
4975
|
+
},
|
|
4976
|
+
"first": {
|
|
4977
|
+
"type": "object",
|
|
4978
|
+
"properties": {
|
|
4979
|
+
"href": {
|
|
4980
|
+
"type": "string"
|
|
4981
|
+
}
|
|
4982
|
+
}
|
|
4983
|
+
},
|
|
4984
|
+
"last": {
|
|
4985
|
+
"type": "object",
|
|
4986
|
+
"properties": {
|
|
4987
|
+
"href": {
|
|
4988
|
+
"type": "string"
|
|
4989
|
+
}
|
|
4990
|
+
}
|
|
4991
|
+
},
|
|
4992
|
+
"pages": {
|
|
4993
|
+
"type": "object",
|
|
4994
|
+
"additionalProperties": {
|
|
4995
|
+
"type": "object",
|
|
4996
|
+
"properties": {
|
|
4997
|
+
"href": {
|
|
4998
|
+
"type": "string"
|
|
4999
|
+
}
|
|
5000
|
+
}
|
|
5001
|
+
}
|
|
5002
|
+
}
|
|
5003
|
+
},
|
|
5004
|
+
"required": [
|
|
5005
|
+
"self",
|
|
5006
|
+
"first",
|
|
5007
|
+
"last",
|
|
5008
|
+
"pages"
|
|
5009
|
+
]
|
|
5010
|
+
},
|
|
5011
|
+
"totalCount": {
|
|
5012
|
+
"type": "number"
|
|
5013
|
+
}
|
|
5014
|
+
}
|
|
5015
|
+
}
|
|
5016
|
+
},
|
|
5017
|
+
"required": [
|
|
5018
|
+
"data"
|
|
5019
|
+
]
|
|
5020
|
+
}
|
|
5021
|
+
}
|
|
5022
|
+
}
|
|
5023
|
+
},
|
|
5024
|
+
"401": {
|
|
5025
|
+
"description": "Default Response",
|
|
5026
|
+
"content": {
|
|
5027
|
+
"application/json": {
|
|
5028
|
+
"schema": {
|
|
5029
|
+
"type": "object",
|
|
5030
|
+
"properties": {
|
|
5031
|
+
"code": {
|
|
5032
|
+
"type": "string"
|
|
5033
|
+
},
|
|
5034
|
+
"detail": {
|
|
5035
|
+
"type": "string"
|
|
5036
|
+
},
|
|
5037
|
+
"requestId": {
|
|
5038
|
+
"type": "string"
|
|
5039
|
+
},
|
|
5040
|
+
"name": {
|
|
5041
|
+
"type": "string"
|
|
5042
|
+
},
|
|
5043
|
+
"validation": {},
|
|
5044
|
+
"validationContext": {
|
|
5045
|
+
"type": "string"
|
|
5046
|
+
}
|
|
5047
|
+
},
|
|
5048
|
+
"required": [
|
|
5049
|
+
"code",
|
|
5050
|
+
"detail",
|
|
5051
|
+
"requestId",
|
|
5052
|
+
"name"
|
|
5053
|
+
]
|
|
5054
|
+
}
|
|
5055
|
+
}
|
|
5056
|
+
}
|
|
5057
|
+
},
|
|
5058
|
+
"404": {
|
|
5059
|
+
"description": "Default Response",
|
|
5060
|
+
"content": {
|
|
5061
|
+
"application/json": {
|
|
5062
|
+
"schema": {
|
|
5063
|
+
"type": "object",
|
|
5064
|
+
"properties": {
|
|
5065
|
+
"code": {
|
|
5066
|
+
"type": "string"
|
|
5067
|
+
},
|
|
5068
|
+
"detail": {
|
|
5069
|
+
"type": "string"
|
|
5070
|
+
},
|
|
5071
|
+
"requestId": {
|
|
5072
|
+
"type": "string"
|
|
5073
|
+
},
|
|
5074
|
+
"name": {
|
|
5075
|
+
"type": "string"
|
|
5076
|
+
},
|
|
5077
|
+
"validation": {},
|
|
5078
|
+
"validationContext": {
|
|
5079
|
+
"type": "string"
|
|
5080
|
+
}
|
|
5081
|
+
},
|
|
5082
|
+
"required": [
|
|
5083
|
+
"code",
|
|
5084
|
+
"detail",
|
|
5085
|
+
"requestId",
|
|
5086
|
+
"name"
|
|
5087
|
+
]
|
|
5088
|
+
}
|
|
5089
|
+
}
|
|
5090
|
+
}
|
|
5091
|
+
}
|
|
5092
|
+
}
|
|
5093
|
+
},
|
|
4913
5094
|
"patch": {
|
|
4914
5095
|
"tags": [
|
|
4915
5096
|
"Executor"
|
|
@@ -1865,7 +1865,89 @@ export interface paths {
|
|
|
1865
1865
|
};
|
|
1866
1866
|
put?: never;
|
|
1867
1867
|
post?: never;
|
|
1868
|
-
delete
|
|
1868
|
+
delete: {
|
|
1869
|
+
parameters: {
|
|
1870
|
+
query?: never;
|
|
1871
|
+
header?: never;
|
|
1872
|
+
path: {
|
|
1873
|
+
runId: string;
|
|
1874
|
+
};
|
|
1875
|
+
cookie?: never;
|
|
1876
|
+
};
|
|
1877
|
+
requestBody?: never;
|
|
1878
|
+
responses: {
|
|
1879
|
+
/** @description Default Response */
|
|
1880
|
+
200: {
|
|
1881
|
+
headers: {
|
|
1882
|
+
[name: string]: unknown;
|
|
1883
|
+
};
|
|
1884
|
+
content: {
|
|
1885
|
+
"application/json": {
|
|
1886
|
+
data: {
|
|
1887
|
+
success: boolean;
|
|
1888
|
+
};
|
|
1889
|
+
metadata?: {
|
|
1890
|
+
links?: {
|
|
1891
|
+
self: {
|
|
1892
|
+
href?: string;
|
|
1893
|
+
};
|
|
1894
|
+
next?: {
|
|
1895
|
+
href?: string;
|
|
1896
|
+
};
|
|
1897
|
+
prev?: {
|
|
1898
|
+
href?: string;
|
|
1899
|
+
};
|
|
1900
|
+
first: {
|
|
1901
|
+
href?: string;
|
|
1902
|
+
};
|
|
1903
|
+
last: {
|
|
1904
|
+
href?: string;
|
|
1905
|
+
};
|
|
1906
|
+
pages: {
|
|
1907
|
+
[key: string]: {
|
|
1908
|
+
href?: string;
|
|
1909
|
+
};
|
|
1910
|
+
};
|
|
1911
|
+
};
|
|
1912
|
+
totalCount?: number;
|
|
1913
|
+
};
|
|
1914
|
+
};
|
|
1915
|
+
};
|
|
1916
|
+
};
|
|
1917
|
+
/** @description Default Response */
|
|
1918
|
+
401: {
|
|
1919
|
+
headers: {
|
|
1920
|
+
[name: string]: unknown;
|
|
1921
|
+
};
|
|
1922
|
+
content: {
|
|
1923
|
+
"application/json": {
|
|
1924
|
+
code: string;
|
|
1925
|
+
detail: string;
|
|
1926
|
+
requestId: string;
|
|
1927
|
+
name: string;
|
|
1928
|
+
validation?: unknown;
|
|
1929
|
+
validationContext?: string;
|
|
1930
|
+
};
|
|
1931
|
+
};
|
|
1932
|
+
};
|
|
1933
|
+
/** @description Default Response */
|
|
1934
|
+
404: {
|
|
1935
|
+
headers: {
|
|
1936
|
+
[name: string]: unknown;
|
|
1937
|
+
};
|
|
1938
|
+
content: {
|
|
1939
|
+
"application/json": {
|
|
1940
|
+
code: string;
|
|
1941
|
+
detail: string;
|
|
1942
|
+
requestId: string;
|
|
1943
|
+
name: string;
|
|
1944
|
+
validation?: unknown;
|
|
1945
|
+
validationContext?: string;
|
|
1946
|
+
};
|
|
1947
|
+
};
|
|
1948
|
+
};
|
|
1949
|
+
};
|
|
1950
|
+
};
|
|
1869
1951
|
options?: never;
|
|
1870
1952
|
head?: never;
|
|
1871
1953
|
patch: {
|
|
@@ -210,6 +210,32 @@ export class Profile extends BaseClient<paths> {
|
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
async importPPSNOnlyProfiles(
|
|
214
|
+
ppsnOnlyProfiles: NonNullable<
|
|
215
|
+
paths["/api/v1/profiles/import-profiles"]["post"]["requestBody"]
|
|
216
|
+
>["content"]["application/json"]["ppsnOnlyProfiles"],
|
|
217
|
+
privateDetails = false,
|
|
218
|
+
onlyPrivateDetails = false,
|
|
219
|
+
) {
|
|
220
|
+
const query = {
|
|
221
|
+
privateDetails: (privateDetails ? "true" : "false") as "true" | "false",
|
|
222
|
+
onlyPrivateDetails: (onlyPrivateDetails ? "true" : "false") as
|
|
223
|
+
| "true"
|
|
224
|
+
| "false",
|
|
225
|
+
importType: "ppsn-only" as const,
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
return this.client
|
|
229
|
+
.POST("/api/v1/profiles/import-profiles", {
|
|
230
|
+
body: { ppsnOnlyProfiles },
|
|
231
|
+
params: { query },
|
|
232
|
+
})
|
|
233
|
+
.then(
|
|
234
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
235
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
|
|
213
239
|
async downloadProfilesCsvTemplate() {
|
|
214
240
|
return this.client
|
|
215
241
|
.GET("/api/v1/profiles/imports/template", {
|
|
@@ -1086,6 +1086,10 @@
|
|
|
1086
1086
|
},
|
|
1087
1087
|
"externalId": {
|
|
1088
1088
|
"type": "string"
|
|
1089
|
+
},
|
|
1090
|
+
"dateOfBirth": {
|
|
1091
|
+
"format": "date",
|
|
1092
|
+
"type": "string"
|
|
1089
1093
|
}
|
|
1090
1094
|
},
|
|
1091
1095
|
"required": [
|
|
@@ -1173,6 +1177,10 @@
|
|
|
1173
1177
|
},
|
|
1174
1178
|
"externalId": {
|
|
1175
1179
|
"type": "string"
|
|
1180
|
+
},
|
|
1181
|
+
"dateOfBirth": {
|
|
1182
|
+
"format": "date",
|
|
1183
|
+
"type": "string"
|
|
1176
1184
|
}
|
|
1177
1185
|
},
|
|
1178
1186
|
"required": [
|
|
@@ -1260,6 +1268,10 @@
|
|
|
1260
1268
|
},
|
|
1261
1269
|
"externalId": {
|
|
1262
1270
|
"type": "string"
|
|
1271
|
+
},
|
|
1272
|
+
"dateOfBirth": {
|
|
1273
|
+
"format": "date",
|
|
1274
|
+
"type": "string"
|
|
1263
1275
|
}
|
|
1264
1276
|
},
|
|
1265
1277
|
"required": [
|
|
@@ -595,6 +595,8 @@ export interface operations {
|
|
|
595
595
|
ppsnOnlyProfiles?: {
|
|
596
596
|
ppsn: string;
|
|
597
597
|
externalId?: string;
|
|
598
|
+
/** Format: date */
|
|
599
|
+
dateOfBirth?: string;
|
|
598
600
|
}[];
|
|
599
601
|
file?: unknown;
|
|
600
602
|
};
|
|
@@ -619,6 +621,8 @@ export interface operations {
|
|
|
619
621
|
ppsnOnlyProfiles?: {
|
|
620
622
|
ppsn: string;
|
|
621
623
|
externalId?: string;
|
|
624
|
+
/** Format: date */
|
|
625
|
+
dateOfBirth?: string;
|
|
622
626
|
}[];
|
|
623
627
|
file?: unknown;
|
|
624
628
|
};
|
|
@@ -643,6 +647,8 @@ export interface operations {
|
|
|
643
647
|
ppsnOnlyProfiles?: {
|
|
644
648
|
ppsn: string;
|
|
645
649
|
externalId?: string;
|
|
650
|
+
/** Format: date */
|
|
651
|
+
dateOfBirth?: string;
|
|
646
652
|
}[];
|
|
647
653
|
file?: unknown;
|
|
648
654
|
};
|