wt-front-shared 1.0.86 → 1.0.87
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/esm2020/lib/core/+state/static-data/static-data.actions.mjs +1 -1
- package/esm2020/lib/core/+state/static-data/static-data.facade.mjs +4 -3
- package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.mjs +1 -1
- package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.mjs +8 -2
- package/fesm2015/wt-front-shared.mjs +10 -3
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +10 -3
- package/fesm2020/wt-front-shared.mjs.map +1 -1
- package/lib/core/+state/static-data/static-data.actions.d.ts +1 -0
- package/lib/core/+state/static-data/static-data.facade.d.ts +1 -1
- package/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1257,7 +1257,13 @@ class StaticDataSubRoutingGetRequest extends GetRequest {
|
|
|
1257
1257
|
this.config = config;
|
|
1258
1258
|
}
|
|
1259
1259
|
get url() {
|
|
1260
|
-
|
|
1260
|
+
let queryString = '';
|
|
1261
|
+
if (this.config.data) {
|
|
1262
|
+
queryString = '?' + Object.keys(this.config.data)
|
|
1263
|
+
.map(field => `${field}=${this.config.data[field]}`)
|
|
1264
|
+
.join('&');
|
|
1265
|
+
}
|
|
1266
|
+
return `${this.domain}/api/static-data/${this.config.contentType}/r/${this.config.routing}/${queryString}`;
|
|
1261
1267
|
}
|
|
1262
1268
|
get headers() {
|
|
1263
1269
|
return this.addAuthHeaders(this.config.headers);
|
|
@@ -6293,11 +6299,12 @@ class StaticDataFacade {
|
|
|
6293
6299
|
}));
|
|
6294
6300
|
});
|
|
6295
6301
|
}
|
|
6296
|
-
loadStaticDataSubRouting(contentType, routing) {
|
|
6302
|
+
loadStaticDataSubRouting(contentType, routing, data) {
|
|
6297
6303
|
this.store.dispatch(StaticDataGetSubRouting({
|
|
6298
6304
|
payload: {
|
|
6299
6305
|
contentType,
|
|
6300
|
-
routing
|
|
6306
|
+
routing,
|
|
6307
|
+
data
|
|
6301
6308
|
}
|
|
6302
6309
|
}));
|
|
6303
6310
|
}
|