@veloceapps/api 11.0.0-51 → 11.0.0-52
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/v2/services/functions-admin-api.service.mjs +3 -14
- package/esm2020/v2/services/orchestrations-admin-api.service.mjs +1 -1
- package/esm2020/v2/types/function.types.mjs +1 -1
- package/esm2020/v2/types/procedure.types.mjs +1 -1
- package/fesm2015/veloceapps-api-v2.mjs +2 -13
- package/fesm2015/veloceapps-api-v2.mjs.map +1 -1
- package/fesm2020/veloceapps-api-v2.mjs +2 -13
- package/fesm2020/veloceapps-api-v2.mjs.map +1 -1
- package/package.json +1 -1
- package/v2/services/functions-admin-api.service.d.ts +2 -3
- package/v2/services/orchestrations-admin-api.service.d.ts +2 -2
- package/v2/types/function.types.d.ts +0 -4
- package/v2/types/procedure.types.d.ts +56 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { BaseHttpService, Expression, FunctionDataSet, HeaderField, NewRule, Rule } from '@veloceapps/core';
|
2
2
|
import { Observable } from 'rxjs';
|
3
|
-
import { CloneRequest, FunctionExecuteRequest
|
3
|
+
import { CloneRequest, FunctionExecuteRequest } from '../types';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class FunctionsAdminApiService {
|
6
6
|
private baseHttpService;
|
@@ -15,10 +15,9 @@ export declare class FunctionsAdminApiService {
|
|
15
15
|
restore$: (id: string) => Observable<string>;
|
16
16
|
fetch$(id: string): Observable<Rule>;
|
17
17
|
fetchHeaderFields$(): Observable<HeaderField[]>;
|
18
|
-
execute$(body:
|
18
|
+
execute$(body: FunctionExecuteRequest): Observable<string[]>;
|
19
19
|
executeExtractFunction$(body: FunctionExecuteRequest): Observable<string[]>;
|
20
20
|
fetchFunctionDatasets$(): Observable<FunctionDataSet[]>;
|
21
|
-
private getExecuteRuleUrl;
|
22
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<FunctionsAdminApiService, never>;
|
23
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<FunctionsAdminApiService>;
|
24
23
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { BaseHttpService, Expression, NewProcedure, Procedure
|
1
|
+
import { BaseHttpService, Expression, NewProcedure, Procedure } from '@veloceapps/core';
|
2
2
|
import { Observable } from 'rxjs';
|
3
|
-
import { CloneRequest } from '../types';
|
3
|
+
import { CloneRequest, ProcedureExecuteRequest } from '../types';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class OrchestrationsAdminApiService {
|
6
6
|
private baseHttpService;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { SalesTransaction } from '@veloceapps/core';
|
1
|
+
import { ExtractRuleMapper, ExtractRuleQuery, ExtractRuleRequest, MetricRuleMapper, Procedure, RuleCondition, RuleMapper, RuleTypes, SalesTransaction } from '@veloceapps/core';
|
2
2
|
export interface ProcedureApplyRequest {
|
3
3
|
procedureName?: string;
|
4
4
|
salesTransaction: SalesTransaction;
|
@@ -8,3 +8,58 @@ export interface ProcedureApplyResponse {
|
|
8
8
|
salesTransaction: SalesTransaction;
|
9
9
|
catalogProducts: unknown;
|
10
10
|
}
|
11
|
+
export interface OrchestrationNew {
|
12
|
+
id: string;
|
13
|
+
name: string;
|
14
|
+
description: string;
|
15
|
+
type?: string;
|
16
|
+
active: boolean;
|
17
|
+
deployStartDateGradually: boolean;
|
18
|
+
deployEndDateGradually: boolean;
|
19
|
+
contextDefinitionId?: string;
|
20
|
+
steps?: OrchestrationStepNew[];
|
21
|
+
}
|
22
|
+
export interface OrchestrationStepNew {
|
23
|
+
id?: string;
|
24
|
+
name: string;
|
25
|
+
active: boolean;
|
26
|
+
sequence?: number;
|
27
|
+
orchestrationId?: string;
|
28
|
+
parentStepId?: string;
|
29
|
+
functionId?: string;
|
30
|
+
function?: FunctionRule;
|
31
|
+
steps?: OrchestrationStepNew[];
|
32
|
+
}
|
33
|
+
export interface NewFunctionRule {
|
34
|
+
name: string;
|
35
|
+
sequence: number;
|
36
|
+
description: string;
|
37
|
+
parentId: string;
|
38
|
+
active: boolean;
|
39
|
+
type?: RuleTypes;
|
40
|
+
cached?: boolean;
|
41
|
+
duration?: number;
|
42
|
+
}
|
43
|
+
export interface FunctionRule extends NewFunctionRule {
|
44
|
+
id: string;
|
45
|
+
contextDefinitionId?: string;
|
46
|
+
contextMappingId?: string;
|
47
|
+
procedure: ProcedureInvocation;
|
48
|
+
conditions: RuleCondition[];
|
49
|
+
queries: ExtractRuleQuery[];
|
50
|
+
requests: ExtractRuleRequest[];
|
51
|
+
actions: RuleMapper[] | MetricRuleMapper[] | ExtractRuleMapper[];
|
52
|
+
transformations: any[];
|
53
|
+
parentName: string;
|
54
|
+
parentType: RuleTypes;
|
55
|
+
isDefault: boolean;
|
56
|
+
}
|
57
|
+
export interface ProcedureInvocation {
|
58
|
+
id?: string;
|
59
|
+
functionId: string;
|
60
|
+
pricingProcedureId: string;
|
61
|
+
}
|
62
|
+
export interface ProcedureExecuteRequest {
|
63
|
+
orchestration: Procedure;
|
64
|
+
data: any;
|
65
|
+
}
|