@veloceapps/api 7.0.2-72 → 7.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.
- package/esm2020/index.mjs +2 -1
- package/esm2020/lib/api.module.mjs +4 -1
- package/esm2020/lib/services/configuration-api.service.mjs +3 -8
- package/esm2020/lib/services/stateful-configuration-api.mjs +51 -0
- package/esm2020/lib/types/index.mjs +1 -1
- package/esm2020/lib/types/stateful-configuration.types.mjs +2 -0
- package/fesm2015/veloceapps-api.mjs +53 -8
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +53 -8
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/services/stateful-configuration-api.d.ts +30 -0
- package/lib/types/index.d.ts +0 -1
- package/lib/types/stateful-configuration.types.d.ts +11 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -26,6 +26,7 @@ export { RulesApiService } from './lib/services/rules-api.service';
|
|
26
26
|
export { SalesforceApiService } from './lib/services/salesforce-api.service';
|
27
27
|
export { ScriptsApiService } from './lib/services/scripts-api.service';
|
28
28
|
export { ShoppingCartSettingsApiService } from './lib/services/shopping-cart-settings-api.service';
|
29
|
+
export { StatefulConfigurationApiService } from './lib/services/stateful-configuration-api';
|
29
30
|
export { UIDefinitionsApiService } from './lib/services/ui-definitions-api.service';
|
30
31
|
export { UITemplatesApiService } from './lib/services/ui-templates-api.service';
|
31
32
|
export { VeloceObjectsApiService } from './lib/services/veloce-objects-api.service';
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { BaseHttpService, ConfigurationExecuteRequest, ConfigurationExecuteResponse, StatefulConfigurationState } from '@veloceapps/core';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import { StatefulConfigurationRequest } from '../types/stateful-configuration.types';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class StatefulConfigurationApiService {
|
6
|
+
private httpService;
|
7
|
+
private readonly SERVICE_URL;
|
8
|
+
constructor(httpService: BaseHttpService);
|
9
|
+
/**
|
10
|
+
* Initialize configuration state
|
11
|
+
* @param request Request
|
12
|
+
* @returns ID of new configuration state
|
13
|
+
*/
|
14
|
+
init(request: StatefulConfigurationRequest): Observable<string>;
|
15
|
+
/**
|
16
|
+
* Get existing state by ID
|
17
|
+
* @param id ID
|
18
|
+
* @returns Configuration State
|
19
|
+
*/
|
20
|
+
get(id: string): Observable<StatefulConfigurationState>;
|
21
|
+
/**
|
22
|
+
* Execute actions/selectors
|
23
|
+
* @param id State ID
|
24
|
+
* @param request Request
|
25
|
+
* @returns Execute result
|
26
|
+
*/
|
27
|
+
execute(id: string, request: ConfigurationExecuteRequest): Observable<ConfigurationExecuteResponse>;
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatefulConfigurationApiService, never>;
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StatefulConfigurationApiService>;
|
30
|
+
}
|
package/lib/types/index.d.ts
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ConfigurationRequest } from '@veloceapps/core';
|
2
|
+
interface ConfigurationProcessorOverride {
|
3
|
+
name: string;
|
4
|
+
script: string;
|
5
|
+
}
|
6
|
+
export interface StatefulConfigurationRequest {
|
7
|
+
request: ConfigurationRequest;
|
8
|
+
actions?: ConfigurationProcessorOverride[];
|
9
|
+
selectors?: ConfigurationProcessorOverride[];
|
10
|
+
}
|
11
|
+
export {};
|