@gravitee/ui-policy-studio-angular 16.0.1 → 16.1.0

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/index.d.ts CHANGED
@@ -8,7 +8,7 @@ declare const toHttpMethod: (value: string) => HttpMethod | undefined;
8
8
 
9
9
  type Operation = 'PUBLISH' | 'SUBSCRIBE';
10
10
  type Operator = 'EQUALS' | 'STARTS_WITH';
11
- type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION';
11
+ type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION' | 'MCP';
12
12
  interface BaseSelector {
13
13
  /**
14
14
  * Selector type.
@@ -41,7 +41,10 @@ interface ConditionSelector extends BaseSelector {
41
41
  */
42
42
  condition: string;
43
43
  }
44
- type Selector = HttpSelector | ChannelSelector | ConditionSelector;
44
+ interface McpSelector extends BaseSelector {
45
+ methods?: string[];
46
+ }
47
+ type Selector = HttpSelector | ChannelSelector | ConditionSelector | McpSelector;
45
48
 
46
49
  interface Step {
47
50
  /**
@@ -119,7 +122,7 @@ interface Plan {
119
122
  flows: Flow[];
120
123
  }
121
124
 
122
- type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'NATIVE_KAFKA';
125
+ type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'HTTP_MCP_PROXY' | 'NATIVE_KAFKA';
123
126
 
124
127
  type FlowPhase = 'REQUEST' | 'RESPONSE' | 'INTERACT' | 'CONNECT' | 'PUBLISH' | 'SUBSCRIBE';
125
128
  interface Policy {
@@ -316,6 +319,7 @@ declare class GioPolicyStudioComponent implements OnChanges, OnDestroy {
316
319
  flowsGroups: FlowGroupVM[];
317
320
  disableSaveButton: boolean;
318
321
  saving: boolean;
322
+ apiTypeDisplayable: i0.Signal<string>;
319
323
  private initialFlowsGroups;
320
324
  private hasFlowExecutionChanged;
321
325
  private unSavingButtonSubscription?;
@@ -403,4 +407,4 @@ declare class GioPolicyGroupStudioComponent implements OnChanges {
403
407
  }
404
408
 
405
409
  export { GioPolicyGroupStudioComponent, GioPolicyStudioComponent, HttpMethods, fromExecutionPhase, fromPolicyInput, isPolicy, isSharedPolicyGroupPolicy, toGenericPolicies, toHttpMethod, toPolicy };
406
- export type { ApiProtocolType, ApiType, BaseSelector, BaseSelectorTypeEnum, ChannelSelector, ConditionSelector, ConnectorInfo, ConnectorMode, ExecutionPhase, Flow, FlowExecution, FlowMode, FlowPhase, GenericPolicy, GenericPolicyPolicy, GenericPolicySharedPolicyGroupPolicy, HttpMethod, HttpSelector, Operation, Operator, Plan, Policy, PolicyDocumentationFetcher, PolicyGroupInput, PolicyGroupOutput, PolicyInput, PolicySchemaFetcher, SaveOutput, Selector, SharedPolicyGroupPolicy, Step };
410
+ export type { ApiProtocolType, ApiType, BaseSelector, BaseSelectorTypeEnum, ChannelSelector, ConditionSelector, ConnectorInfo, ConnectorMode, ExecutionPhase, Flow, FlowExecution, FlowMode, FlowPhase, GenericPolicy, GenericPolicyPolicy, GenericPolicySharedPolicyGroupPolicy, HttpMethod, HttpSelector, McpSelector, Operation, Operator, Plan, Policy, PolicyDocumentationFetcher, PolicyGroupInput, PolicyGroupOutput, PolicyInput, PolicySchemaFetcher, SaveOutput, Selector, SharedPolicyGroupPolicy, Step };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/ui-policy-studio-angular",
3
- "version": "16.0.1",
3
+ "version": "16.1.0",
4
4
  "description": "Gravitee.io - UI Policy Studio Angular",
5
5
  "repository": {
6
6
  "type": "git",
@@ -6,7 +6,7 @@ type HttpMethod = (typeof HttpMethods)[number];
6
6
 
7
7
  type Operation = 'PUBLISH' | 'SUBSCRIBE';
8
8
  type Operator = 'EQUALS' | 'STARTS_WITH';
9
- type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION';
9
+ type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION' | 'MCP';
10
10
  interface BaseSelector {
11
11
  /**
12
12
  * Selector type.
@@ -39,7 +39,10 @@ interface ConditionSelector extends BaseSelector {
39
39
  */
40
40
  condition: string;
41
41
  }
42
- type Selector = HttpSelector | ChannelSelector | ConditionSelector;
42
+ interface McpSelector extends BaseSelector {
43
+ methods?: string[];
44
+ }
45
+ type Selector = HttpSelector | ChannelSelector | ConditionSelector | McpSelector;
43
46
 
44
47
  interface Step {
45
48
  /**
@@ -104,6 +107,7 @@ declare function fakeConditionedChannelFlow(modifier?: Partial<Flow> | ((baseApi
104
107
  declare function fakeHttpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
105
108
  declare function fakeConditionedHttpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
106
109
  declare function fakeNativeFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
110
+ declare function fakeMcpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
107
111
 
108
112
  /**
109
113
  * API's flow mode.
@@ -133,7 +137,7 @@ interface Plan {
133
137
 
134
138
  declare function fakePlan(modifier?: Partial<Plan> | ((base: Plan) => Plan)): Plan;
135
139
 
136
- type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'NATIVE_KAFKA';
140
+ type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'HTTP_MCP_PROXY' | 'NATIVE_KAFKA';
137
141
 
138
142
  type FlowPhase = 'REQUEST' | 'RESPONSE' | 'INTERACT' | 'CONNECT' | 'PUBLISH' | 'SUBSCRIBE';
139
143
  interface Policy {
@@ -178,6 +182,8 @@ declare function fakeKafkaMessageEndpoint(modifier?: Partial<ConnectorInfo> | ((
178
182
  declare function fakeHTTPProxyEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
179
183
  declare function fakeKafkaNativeEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
180
184
  declare function fakeKafkaNativeEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
185
+ declare function fakeMCPProxyEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
186
+ declare function fakeMCPProxyEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
181
187
 
182
188
  type GioPolicyStudioDetailsPhaseStepHarnessFilters = BaseHarnessFilters;
183
189
  declare class GioPolicyStudioDetailsPhaseStepHarness extends ComponentHarness {
@@ -368,4 +374,4 @@ declare class GioPolicyGroupStudioHarness extends ComponentHarness {
368
374
  } & StepForm): Promise<void>;
369
375
  }
370
376
 
371
- export { GioPolicyGroupStudioHarness, GioPolicyStudioHarness, POLICIES_V4_UNREGISTERED_ICON, fakeAllPolicies, fakeBestMatchFlowExecution, fakeChannelFlow, fakeConditionedChannelFlow, fakeConditionedHttpFlow, fakeDefaultFlowExecution, fakeHTTPGetMessageEntrypoint, fakeHTTPPostMessageEntrypoint, fakeHTTPProxyEndpoint, fakeHTTPProxyEntrypoint, fakeHttpFlow, fakeJsonToXmlStep, fakeKafkaMessageEndpoint, fakeKafkaNativeEndpoint, fakeKafkaNativeEntrypoint, fakeMockMessageEndpoint, fakeNativeFlow, fakePlan, fakeRateLimitStep, fakeSSEMessageEntrypoint, fakeSharedPolicyGroupPolicyStep, fakeTestPolicy, fakeTestPolicyStep, fakeWebhookMessageEntrypoint, fakeWebsocketMessageEntrypoint };
377
+ export { GioPolicyGroupStudioHarness, GioPolicyStudioHarness, POLICIES_V4_UNREGISTERED_ICON, fakeAllPolicies, fakeBestMatchFlowExecution, fakeChannelFlow, fakeConditionedChannelFlow, fakeConditionedHttpFlow, fakeDefaultFlowExecution, fakeHTTPGetMessageEntrypoint, fakeHTTPPostMessageEntrypoint, fakeHTTPProxyEndpoint, fakeHTTPProxyEntrypoint, fakeHttpFlow, fakeJsonToXmlStep, fakeKafkaMessageEndpoint, fakeKafkaNativeEndpoint, fakeKafkaNativeEntrypoint, fakeMCPProxyEndpoint, fakeMCPProxyEntrypoint, fakeMcpFlow, fakeMockMessageEndpoint, fakeNativeFlow, fakePlan, fakeRateLimitStep, fakeSSEMessageEntrypoint, fakeSharedPolicyGroupPolicyStep, fakeTestPolicy, fakeTestPolicyStep, fakeWebhookMessageEntrypoint, fakeWebsocketMessageEntrypoint };