@veloceapps/api 4.0.8 → 4.0.10
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/bundles/veloce-api.umd.js +16 -42
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/configuration-settings-api.service.js +18 -40
- package/esm2015/lib/services/flows-api.service.js +2 -2
- package/fesm2015/veloce-api.js +18 -41
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/services/configuration-settings-api.service.d.ts +8 -8
- package/package.json +1 -1
@@ -1126,56 +1126,33 @@
|
|
1126
1126
|
this.httpService = httpService;
|
1127
1127
|
this.SERVICE_URL = '/configuration-settings';
|
1128
1128
|
}
|
1129
|
-
ConfigurationSettingsApiService.prototype.fetchSettings = function () {
|
1129
|
+
ConfigurationSettingsApiService.prototype.fetchSettings = function (options) {
|
1130
1130
|
return this.httpService
|
1131
|
-
.api({
|
1132
|
-
url: "" + this.SERVICE_URL,
|
1133
|
-
method: 'get',
|
1134
|
-
})
|
1131
|
+
.api(Object.assign({ url: "" + this.SERVICE_URL, method: 'get' }, options))
|
1135
1132
|
.pipe(operators.map(function (settings) { return settings.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting); }); }));
|
1136
1133
|
};
|
1137
|
-
ConfigurationSettingsApiService.prototype.fetchSetting = function (settingsKey) {
|
1134
|
+
ConfigurationSettingsApiService.prototype.fetchSetting = function (settingsKey, options) {
|
1138
1135
|
return this.httpService
|
1139
|
-
.api({
|
1140
|
-
|
1141
|
-
method: 'get',
|
1142
|
-
})
|
1143
|
-
.pipe(operators.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting, settingsKey); }));
|
1136
|
+
.api(Object.assign({ url: this.SERVICE_URL + "/byKey/" + settingsKey, method: 'get' }, options))
|
1137
|
+
.pipe(operators.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting, settingsKey); }), operators.catchError(function () { return rxjs.of(null); }));
|
1144
1138
|
};
|
1145
|
-
ConfigurationSettingsApiService.prototype.createSetting = function (setting) {
|
1139
|
+
ConfigurationSettingsApiService.prototype.createSetting = function (setting, options) {
|
1146
1140
|
var request = ConfigurationSettingsDTO.toDTO(setting);
|
1147
|
-
return this.httpService.api({
|
1148
|
-
url: "" + this.SERVICE_URL,
|
1149
|
-
method: 'post',
|
1150
|
-
body: Object.assign({}, request),
|
1151
|
-
});
|
1141
|
+
return this.httpService.api(Object.assign({ url: "" + this.SERVICE_URL, method: 'post', body: Object.assign({}, request) }, options));
|
1152
1142
|
};
|
1153
|
-
ConfigurationSettingsApiService.prototype.updateSetting = function (setting) {
|
1143
|
+
ConfigurationSettingsApiService.prototype.updateSetting = function (setting, options) {
|
1154
1144
|
var request = ConfigurationSettingsDTO.toDTO(setting);
|
1155
|
-
return this.httpService.api({
|
1156
|
-
url: this.SERVICE_URL + "/" + request.id,
|
1157
|
-
method: 'put',
|
1158
|
-
body: Object.assign({}, request),
|
1159
|
-
});
|
1145
|
+
return this.httpService.api(Object.assign({ url: this.SERVICE_URL + "/" + request.id, method: 'put', body: Object.assign({}, request) }, options));
|
1160
1146
|
};
|
1161
|
-
ConfigurationSettingsApiService.prototype.removeSetting = function (setting) {
|
1147
|
+
ConfigurationSettingsApiService.prototype.removeSetting = function (setting, options) {
|
1162
1148
|
var request = ConfigurationSettingsDTO.toDTO(setting);
|
1163
|
-
return this.httpService.api({
|
1164
|
-
url: this.SERVICE_URL + "/" + request.id,
|
1165
|
-
method: 'delete',
|
1166
|
-
});
|
1149
|
+
return this.httpService.api(Object.assign({ url: this.SERVICE_URL + "/" + request.id, method: 'delete' }, options));
|
1167
1150
|
};
|
1168
|
-
ConfigurationSettingsApiService.prototype.restoreSetting = function (settingId) {
|
1169
|
-
return this.httpService.api({
|
1170
|
-
url: this.SERVICE_URL + "/" + settingId + "/restore",
|
1171
|
-
method: 'patch',
|
1172
|
-
});
|
1151
|
+
ConfigurationSettingsApiService.prototype.restoreSetting = function (settingId, options) {
|
1152
|
+
return this.httpService.api(Object.assign({ url: this.SERVICE_URL + "/" + settingId + "/restore", method: 'patch' }, options));
|
1173
1153
|
};
|
1174
|
-
ConfigurationSettingsApiService.prototype.clear = function (name) {
|
1175
|
-
return this.httpService.api({
|
1176
|
-
method: 'get',
|
1177
|
-
url: '/cache/evict/' + name,
|
1178
|
-
});
|
1154
|
+
ConfigurationSettingsApiService.prototype.clear = function (name, options) {
|
1155
|
+
return this.httpService.api(Object.assign({ method: 'get', url: '/cache/evict/' + name }, options));
|
1179
1156
|
};
|
1180
1157
|
return ConfigurationSettingsApiService;
|
1181
1158
|
}());
|
@@ -1686,10 +1663,7 @@
|
|
1686
1663
|
FlowsApiService.prototype.fetchFlows = function () {
|
1687
1664
|
return this.configurationSettingsApiService
|
1688
1665
|
.fetchSetting(this.flowsKey)
|
1689
|
-
.pipe(operators.map(function (
|
1690
|
-
var value = _a.value;
|
1691
|
-
return (value ? JSON.parse(value) : []);
|
1692
|
-
}));
|
1666
|
+
.pipe(operators.map(function (flow) { return ((flow === null || flow === void 0 ? void 0 : flow.value) ? JSON.parse(flow.value) : []); }));
|
1693
1667
|
};
|
1694
1668
|
return FlowsApiService;
|
1695
1669
|
}());
|