@veloceapps/api 12.0.0-11 → 12.0.0-13
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/endpoints-admin-api.service.mjs +6 -4
- package/esm2020/v2/services/orchestrations-admin-api.service.mjs +1 -1
- package/esm2020/v2/types/endpoint.types.mjs +2 -0
- package/esm2020/v2/types/event-logs.types.mjs +2 -0
- package/esm2020/v2/types/function.types.mjs +1 -1
- package/esm2020/v2/types/index.mjs +3 -1
- package/esm2020/v2/types/procedure.types.mjs +1 -1
- package/fesm2015/veloceapps-api-v2.mjs +4 -3
- package/fesm2015/veloceapps-api-v2.mjs.map +1 -1
- package/fesm2020/veloceapps-api-v2.mjs +4 -3
- package/fesm2020/veloceapps-api-v2.mjs.map +1 -1
- package/package.json +1 -1
- package/v2/services/endpoints-admin-api.service.d.ts +3 -3
- package/v2/services/orchestrations-admin-api.service.d.ts +2 -2
- package/v2/types/endpoint.types.d.ts +15 -0
- package/v2/types/event-logs.types.d.ts +9 -0
- package/v2/types/function.types.d.ts +3 -0
- package/v2/types/index.d.ts +2 -0
- package/v2/types/procedure.types.d.ts +13 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { BaseHttpService, Endpoint,
|
1
|
+
import { BaseHttpService, Endpoint, Expression, NewEndpoint } from '@veloceapps/core';
|
2
2
|
import { Observable } from 'rxjs';
|
3
|
-
import { CloneRequest } from '../types
|
3
|
+
import { CloneRequest, EndpointExecuteRequest, EndpointExecuteResponse } from '../types';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class EndpointsAdminApiService {
|
6
6
|
private baseHttpService;
|
@@ -14,7 +14,7 @@ export declare class EndpointsAdminApiService {
|
|
14
14
|
createEndpoint$(body: NewEndpoint): Observable<Endpoint>;
|
15
15
|
updateEndpoint$(body: Endpoint): Observable<Endpoint>;
|
16
16
|
duplicateEndpoint$(cloneRequest: CloneRequest): Observable<Endpoint>;
|
17
|
-
executeEndpoint$(body: EndpointExecuteRequest): Observable<
|
17
|
+
executeEndpoint$(body: EndpointExecuteRequest): Observable<EndpointExecuteResponse>;
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<EndpointsAdminApiService, never>;
|
19
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<EndpointsAdminApiService>;
|
20
20
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { BaseHttpService, Expression, NewProcedure, Procedure } from '@veloceapps/core';
|
2
2
|
import { Observable } from 'rxjs';
|
3
|
-
import { CloneRequest, ProcedureExecuteRequest } from '../types';
|
3
|
+
import { CloneRequest, ProcedureExecuteRequest, ProcedureExecuteResponse } from '../types';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class OrchestrationsAdminApiService {
|
6
6
|
private baseHttpService;
|
@@ -14,7 +14,7 @@ export declare class OrchestrationsAdminApiService {
|
|
14
14
|
remove$: (id: string) => Observable<string>;
|
15
15
|
restore$: (id: string) => Observable<string>;
|
16
16
|
fetch$(id: string): Observable<Procedure>;
|
17
|
-
execute$(body: ProcedureExecuteRequest): Observable<
|
17
|
+
execute$(body: ProcedureExecuteRequest): Observable<ProcedureExecuteResponse>;
|
18
18
|
catalogExecute$(body: ProcedureExecuteRequest): Observable<string[]>;
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrchestrationsAdminApiService, never>;
|
20
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<OrchestrationsAdminApiService>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Endpoint, EndpointExecuteData, RequestMethod } from '@veloceapps/core';
|
2
|
+
import { EventLog } from './event-logs.types';
|
3
|
+
export interface EndpointExecuteRequest {
|
4
|
+
apiEndpoint: Endpoint;
|
5
|
+
apiRequest: EndpointExecuteData;
|
6
|
+
enableEventLogs: boolean;
|
7
|
+
}
|
8
|
+
export interface EndpointExecuteResponse {
|
9
|
+
body: any;
|
10
|
+
headers: Record<string, string[]>;
|
11
|
+
httpMethod: RequestMethod;
|
12
|
+
params: Record<string, string[]>;
|
13
|
+
requestURI: string;
|
14
|
+
eventLogs?: EventLog[];
|
15
|
+
}
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import { ContextNode, Rule, TransactionContext } from '@veloceapps/core';
|
2
|
+
import { EventLog } from './event-logs.types';
|
2
3
|
export interface FunctionExecuteRequest {
|
3
4
|
function: Rule;
|
4
5
|
data: FunctionExecuteRequestData;
|
6
|
+
enableEventLogs: boolean;
|
5
7
|
}
|
6
8
|
export interface FunctionExecuteRequestData {
|
7
9
|
context?: TransactionContext;
|
@@ -11,4 +13,5 @@ export interface FunctionExecuteRequestData {
|
|
11
13
|
deployEndDateGradually?: boolean;
|
12
14
|
events?: unknown[];
|
13
15
|
logs?: string[];
|
16
|
+
eventLogs?: EventLog[];
|
14
17
|
}
|
package/v2/types/index.d.ts
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
export * from './attachment.types';
|
2
2
|
export * from './clone-request.types';
|
3
|
+
export * from './event-logs.types';
|
3
4
|
export * from './function.types';
|
4
5
|
export * from './procedure.types';
|
5
6
|
export * from './sales-transaction.types';
|
6
7
|
export * from './search-request.types';
|
8
|
+
export * from './endpoint.types';
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { ExtractRuleMapper, ExtractRuleQuery, ExtractRuleRequest, MetricRuleMapper, Procedure, RuleCondition, RuleMapper, RuleTypes, TransactionContext } from '@veloceapps/core';
|
1
|
+
import { ContextNode, ExtractRuleMapper, ExtractRuleQuery, ExtractRuleRequest, MetricRuleMapper, Procedure, RuleCondition, RuleMapper, RuleTypes, TransactionContext } from '@veloceapps/core';
|
2
|
+
import { EventLog } from './event-logs.types';
|
2
3
|
export interface ProcedureApplyRequest {
|
3
4
|
transactionContext: TransactionContext;
|
4
5
|
orchestrationName?: string;
|
@@ -58,4 +59,15 @@ export interface ProcedureInvocation {
|
|
58
59
|
export interface ProcedureExecuteRequest {
|
59
60
|
orchestration: Procedure;
|
60
61
|
context: any;
|
62
|
+
enableEventLogs: boolean;
|
63
|
+
}
|
64
|
+
export interface ProcedureExecuteResponse {
|
65
|
+
context?: TransactionContext;
|
66
|
+
dataSets?: Record<string, ContextNode[]>;
|
67
|
+
doNotAlignEndDates?: boolean;
|
68
|
+
deployStartDateGradually?: boolean;
|
69
|
+
deployEndDateGradually?: boolean;
|
70
|
+
events?: unknown[];
|
71
|
+
logs?: string[];
|
72
|
+
eventLogs?: EventLog[];
|
61
73
|
}
|