@veloceapps/api 8.0.0-117 → 8.0.0-119
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/services/flow-state-api.mjs +63 -1
- package/fesm2015/veloceapps-api.mjs +62 -0
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +62 -0
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/lib/services/flow-state-api.d.ts +37 -1
- package/package.json +1 -1
@@ -1268,6 +1268,68 @@ class FlowStateApiService {
|
|
1268
1268
|
url: `${this.SERVICE_URL}/quote/${id}/cancel`,
|
1269
1269
|
});
|
1270
1270
|
}
|
1271
|
+
/**
|
1272
|
+
* Initialize stateful configuration
|
1273
|
+
* @param stateId string
|
1274
|
+
* @param request Request
|
1275
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1276
|
+
*/
|
1277
|
+
newConfiguration(stateId, request) {
|
1278
|
+
return this.httpService.api({
|
1279
|
+
method: 'post',
|
1280
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/new`,
|
1281
|
+
body: request,
|
1282
|
+
});
|
1283
|
+
}
|
1284
|
+
/**
|
1285
|
+
* Start stateful configuration
|
1286
|
+
* @param stateId string
|
1287
|
+
* @param request Request
|
1288
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1289
|
+
*/
|
1290
|
+
startConfiguration(stateId, request) {
|
1291
|
+
return this.httpService.api({
|
1292
|
+
method: 'post',
|
1293
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/start`,
|
1294
|
+
body: request,
|
1295
|
+
});
|
1296
|
+
}
|
1297
|
+
/**
|
1298
|
+
* Execute stateful configuration
|
1299
|
+
* @param stateId string
|
1300
|
+
* @param configurationId string
|
1301
|
+
* @param request Request
|
1302
|
+
* @returns Flow initialization response, which contains session ID and result of selectors
|
1303
|
+
*/
|
1304
|
+
executeConfiguration(stateId, configurationId, request) {
|
1305
|
+
return this.httpService.api({
|
1306
|
+
method: 'post',
|
1307
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/execute`,
|
1308
|
+
body: request,
|
1309
|
+
});
|
1310
|
+
}
|
1311
|
+
/**
|
1312
|
+
* Save stateful configuration
|
1313
|
+
* @param stateId string
|
1314
|
+
* @param configurationId string
|
1315
|
+
*/
|
1316
|
+
saveConfiguration(stateId, configurationId) {
|
1317
|
+
return this.httpService.api({
|
1318
|
+
method: 'post',
|
1319
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/save`,
|
1320
|
+
});
|
1321
|
+
}
|
1322
|
+
/**
|
1323
|
+
* Cancel stateful configuration
|
1324
|
+
* @param stateId string
|
1325
|
+
* @param configurationId string
|
1326
|
+
*/
|
1327
|
+
cancelConfiguration(stateId, configurationId) {
|
1328
|
+
return this.httpService.api({
|
1329
|
+
method: 'post',
|
1330
|
+
url: `${this.SERVICE_URL}/quote/${stateId}/configuration/${configurationId}/cancel`,
|
1331
|
+
});
|
1332
|
+
}
|
1271
1333
|
}
|
1272
1334
|
FlowStateApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
1273
1335
|
FlowStateApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FlowStateApiService });
|