@gravitee/ui-policy-studio-angular 15.13.0 → 16.0.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.
Files changed (171) hide show
  1. package/fesm2022/gravitee-ui-policy-studio-angular-testing.mjs +1 -1
  2. package/fesm2022/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
  3. package/fesm2022/gravitee-ui-policy-studio-angular.mjs +92 -95
  4. package/fesm2022/gravitee-ui-policy-studio-angular.mjs.map +1 -1
  5. package/index.d.ts +404 -3
  6. package/package.json +7 -11
  7. package/testing/index.d.ts +369 -3
  8. package/esm2022/gravitee-ui-policy-studio-angular.mjs +0 -5
  9. package/esm2022/lib/components/filter-pipe/gio-flter-connectors-by-mode.pipe.mjs +0 -43
  10. package/esm2022/lib/components/flow-details/gio-ps-flow-details.component.mjs +0 -184
  11. package/esm2022/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.component.mjs +0 -115
  12. package/esm2022/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.mjs +0 -179
  13. package/esm2022/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.component.mjs +0 -162
  14. package/esm2022/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.mjs +0 -81
  15. package/esm2022/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.component.mjs +0 -109
  16. package/esm2022/lib/components/flow-form-dialog/flow-native-form-dialog/gio-ps-flow-native-form-dialog.component.mjs +0 -89
  17. package/esm2022/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.component.mjs +0 -135
  18. package/esm2022/lib/components/flow-form-dialog/gio-ps-flow-form-dialog-result.model.mjs +0 -2
  19. package/esm2022/lib/components/flows-menu/gio-ps-flows-menu.component.mjs +0 -432
  20. package/esm2022/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.mjs +0 -165
  21. package/esm2022/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.component.mjs +0 -53
  22. package/esm2022/lib/components/step-form/gio-ps-step-form.component.mjs +0 -158
  23. package/esm2022/lib/models/ApiProtocolType.mjs +0 -17
  24. package/esm2022/lib/models/ApiType.mjs +0 -17
  25. package/esm2022/lib/models/ConnectorsInfo.mjs +0 -2
  26. package/esm2022/lib/models/PolicySchemaFetcher.mjs +0 -2
  27. package/esm2022/lib/models/SaveOutput.mjs +0 -2
  28. package/esm2022/lib/models/flow/Flow.mjs +0 -2
  29. package/esm2022/lib/models/flow/FlowExecution.mjs +0 -17
  30. package/esm2022/lib/models/flow/HttpMethod.mjs +0 -43
  31. package/esm2022/lib/models/flow/Selector.mjs +0 -2
  32. package/esm2022/lib/models/flow/Step.mjs +0 -2
  33. package/esm2022/lib/models/flow/index.mjs +0 -21
  34. package/esm2022/lib/models/index.mjs +0 -24
  35. package/esm2022/lib/models/plan/Plan.mjs +0 -17
  36. package/esm2022/lib/models/plan/index.mjs +0 -17
  37. package/esm2022/lib/models/policy/GenericPolicy.mjs +0 -24
  38. package/esm2022/lib/models/policy/Policy.mjs +0 -44
  39. package/esm2022/lib/models/policy/SharedPolicyGroupPolicy.mjs +0 -17
  40. package/esm2022/lib/models/policy/index.mjs +0 -19
  41. package/esm2022/lib/policy-group-studio/gio-policy-group-studio.component.mjs +0 -228
  42. package/esm2022/lib/policy-studio/gio-policy-studio.component.mjs +0 -304
  43. package/esm2022/lib/policy-studio/gio-policy-studio.model.mjs +0 -17
  44. package/esm2022/lib/policy-studio/gio-policy-studio.service.mjs +0 -74
  45. package/esm2022/public-api.mjs +0 -22
  46. package/esm2022/testing/gravitee-ui-policy-studio-angular-testing.mjs +0 -5
  47. package/esm2022/testing/lib/components/flow-details/gio-ps-flow-details.harness.mjs +0 -56
  48. package/esm2022/testing/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.harness.mjs +0 -35
  49. package/esm2022/testing/lib/components/flow-details-phase/gio-ps-flow-details-phase.harness.mjs +0 -155
  50. package/esm2022/testing/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.harness.mjs +0 -69
  51. package/esm2022/testing/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.harness.mjs +0 -60
  52. package/esm2022/testing/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.harness.mjs +0 -128
  53. package/esm2022/testing/lib/components/flow-form-dialog/flow-native-form-dialog/gio-ps-flow-native-form-dialog.harness.mjs +0 -50
  54. package/esm2022/testing/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.harness.mjs +0 -98
  55. package/esm2022/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.mjs +0 -91
  56. package/esm2022/testing/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.harness.mjs +0 -87
  57. package/esm2022/testing/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.harness.mjs +0 -30
  58. package/esm2022/testing/lib/components/step-form/gio-ps-step-form.harness.mjs +0 -56
  59. package/esm2022/testing/lib/models/ApiProtocolType.mjs +0 -17
  60. package/esm2022/testing/lib/models/ApiType.mjs +0 -17
  61. package/esm2022/testing/lib/models/ConnectorsInfo.fixture.mjs +0 -182
  62. package/esm2022/testing/lib/models/ConnectorsInfo.mjs +0 -2
  63. package/esm2022/testing/lib/models/PolicySchemaFetcher.mjs +0 -2
  64. package/esm2022/testing/lib/models/SaveOutput.mjs +0 -2
  65. package/esm2022/testing/lib/models/flow/Flow.fixture.mjs +0 -122
  66. package/esm2022/testing/lib/models/flow/Flow.mjs +0 -2
  67. package/esm2022/testing/lib/models/flow/FlowExecution.fixture.mjs +0 -43
  68. package/esm2022/testing/lib/models/flow/FlowExecution.mjs +0 -17
  69. package/esm2022/testing/lib/models/flow/HttpMethod.mjs +0 -43
  70. package/esm2022/testing/lib/models/flow/Selector.mjs +0 -2
  71. package/esm2022/testing/lib/models/flow/Step.fixture.mjs +0 -92
  72. package/esm2022/testing/lib/models/flow/Step.mjs +0 -2
  73. package/esm2022/testing/lib/models/flow/index-testing.mjs +0 -19
  74. package/esm2022/testing/lib/models/flow/index.mjs +0 -21
  75. package/esm2022/testing/lib/models/index-testing.mjs +0 -20
  76. package/esm2022/testing/lib/models/index.mjs +0 -24
  77. package/esm2022/testing/lib/models/plan/Plan.fixture.mjs +0 -31
  78. package/esm2022/testing/lib/models/plan/Plan.mjs +0 -17
  79. package/esm2022/testing/lib/models/plan/index-testing.mjs +0 -17
  80. package/esm2022/testing/lib/models/plan/index.mjs +0 -17
  81. package/esm2022/testing/lib/models/policy/GenericPolicy.mjs +0 -24
  82. package/esm2022/testing/lib/models/policy/Policy.fixture.mjs +0 -194
  83. package/esm2022/testing/lib/models/policy/Policy.mjs +0 -44
  84. package/esm2022/testing/lib/models/policy/SharedPolicyGroupPolicy.mjs +0 -17
  85. package/esm2022/testing/lib/models/policy/index-testing.mjs +0 -17
  86. package/esm2022/testing/lib/models/policy/index.mjs +0 -19
  87. package/esm2022/testing/lib/policy-group-studio/gio-policy-group-studio.harness.mjs +0 -52
  88. package/esm2022/testing/lib/policy-studio/gio-policy-studio.harness.mjs +0 -202
  89. package/esm2022/testing/lib/policy-studio/gio-policy-studio.model.mjs +0 -17
  90. package/esm2022/testing/public-testing-api.mjs +0 -19
  91. package/lib/components/filter-pipe/gio-flter-connectors-by-mode.pipe.d.ts +0 -8
  92. package/lib/components/flow-details/gio-ps-flow-details.component.d.ts +0 -29
  93. package/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.component.d.ts +0 -20
  94. package/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.d.ts +0 -47
  95. package/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.component.d.ts +0 -33
  96. package/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.d.ts +0 -18
  97. package/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.component.d.ts +0 -21
  98. package/lib/components/flow-form-dialog/flow-native-form-dialog/gio-ps-flow-native-form-dialog.component.d.ts +0 -21
  99. package/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.component.d.ts +0 -24
  100. package/lib/components/flow-form-dialog/gio-ps-flow-form-dialog-result.model.d.ts +0 -2
  101. package/lib/components/flows-menu/gio-ps-flows-menu.component.d.ts +0 -57
  102. package/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.d.ts +0 -47
  103. package/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.component.d.ts +0 -24
  104. package/lib/components/step-form/gio-ps-step-form.component.d.ts +0 -35
  105. package/lib/models/ApiProtocolType.d.ts +0 -1
  106. package/lib/models/ApiType.d.ts +0 -1
  107. package/lib/models/ConnectorsInfo.d.ts +0 -7
  108. package/lib/models/PolicySchemaFetcher.d.ts +0 -5
  109. package/lib/models/SaveOutput.d.ts +0 -7
  110. package/lib/models/flow/Flow.d.ts +0 -24
  111. package/lib/models/flow/FlowExecution.d.ts +0 -11
  112. package/lib/models/flow/HttpMethod.d.ts +0 -3
  113. package/lib/models/flow/Selector.d.ts +0 -37
  114. package/lib/models/flow/Step.d.ts +0 -34
  115. package/lib/models/flow/index.d.ts +0 -5
  116. package/lib/models/index.d.ts +0 -8
  117. package/lib/models/plan/Plan.d.ts +0 -6
  118. package/lib/models/plan/index.d.ts +0 -1
  119. package/lib/models/policy/GenericPolicy.d.ts +0 -22
  120. package/lib/models/policy/Policy.d.ts +0 -28
  121. package/lib/models/policy/SharedPolicyGroupPolicy.d.ts +0 -11
  122. package/lib/models/policy/index.d.ts +0 -3
  123. package/lib/policy-group-studio/gio-policy-group-studio.component.d.ts +0 -70
  124. package/lib/policy-studio/gio-policy-studio.component.d.ts +0 -98
  125. package/lib/policy-studio/gio-policy-studio.model.d.ts +0 -17
  126. package/lib/policy-studio/gio-policy-studio.service.d.ts +0 -30
  127. package/public-api.d.ts +0 -3
  128. package/testing/lib/components/flow-details/gio-ps-flow-details.harness.d.ts +0 -12
  129. package/testing/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.harness.d.ts +0 -5
  130. package/testing/lib/components/flow-details-phase/gio-ps-flow-details-phase.harness.d.ts +0 -69
  131. package/testing/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.harness.d.ts +0 -21
  132. package/testing/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.harness.d.ts +0 -13
  133. package/testing/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.harness.d.ts +0 -37
  134. package/testing/lib/components/flow-form-dialog/flow-native-form-dialog/gio-ps-flow-native-form-dialog.harness.d.ts +0 -17
  135. package/testing/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.harness.d.ts +0 -33
  136. package/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.d.ts +0 -31
  137. package/testing/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.harness.d.ts +0 -20
  138. package/testing/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.harness.d.ts +0 -8
  139. package/testing/lib/components/step-form/gio-ps-step-form.harness.d.ts +0 -18
  140. package/testing/lib/models/ApiProtocolType.d.ts +0 -1
  141. package/testing/lib/models/ApiType.d.ts +0 -1
  142. package/testing/lib/models/ConnectorsInfo.d.ts +0 -7
  143. package/testing/lib/models/ConnectorsInfo.fixture.d.ts +0 -12
  144. package/testing/lib/models/PolicySchemaFetcher.d.ts +0 -5
  145. package/testing/lib/models/SaveOutput.d.ts +0 -7
  146. package/testing/lib/models/flow/Flow.d.ts +0 -24
  147. package/testing/lib/models/flow/Flow.fixture.d.ts +0 -6
  148. package/testing/lib/models/flow/FlowExecution.d.ts +0 -11
  149. package/testing/lib/models/flow/FlowExecution.fixture.d.ts +0 -3
  150. package/testing/lib/models/flow/HttpMethod.d.ts +0 -3
  151. package/testing/lib/models/flow/Selector.d.ts +0 -37
  152. package/testing/lib/models/flow/Step.d.ts +0 -34
  153. package/testing/lib/models/flow/Step.fixture.d.ts +0 -5
  154. package/testing/lib/models/flow/index-testing.d.ts +0 -3
  155. package/testing/lib/models/flow/index.d.ts +0 -5
  156. package/testing/lib/models/index-testing.d.ts +0 -4
  157. package/testing/lib/models/index.d.ts +0 -8
  158. package/testing/lib/models/plan/Plan.d.ts +0 -6
  159. package/testing/lib/models/plan/Plan.fixture.d.ts +0 -2
  160. package/testing/lib/models/plan/index-testing.d.ts +0 -1
  161. package/testing/lib/models/plan/index.d.ts +0 -1
  162. package/testing/lib/models/policy/GenericPolicy.d.ts +0 -22
  163. package/testing/lib/models/policy/Policy.d.ts +0 -28
  164. package/testing/lib/models/policy/Policy.fixture.d.ts +0 -4
  165. package/testing/lib/models/policy/SharedPolicyGroupPolicy.d.ts +0 -11
  166. package/testing/lib/models/policy/index-testing.d.ts +0 -1
  167. package/testing/lib/models/policy/index.d.ts +0 -3
  168. package/testing/lib/policy-group-studio/gio-policy-group-studio.harness.d.ts +0 -20
  169. package/testing/lib/policy-studio/gio-policy-studio.harness.d.ts +0 -78
  170. package/testing/lib/policy-studio/gio-policy-studio.model.d.ts +0 -17
  171. package/testing/public-testing-api.d.ts +0 -3
@@ -1,5 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- export declare class GioPolicyStudioDetailsInfoBarHarness extends ComponentHarness {
3
- static hostSelector: string;
4
- getInfos(): Promise<Record<string, (string | null)[]>>;
5
- }
@@ -1,69 +0,0 @@
1
- import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
2
- import { GioPolicyStudioDetailsPhaseStepHarness } from '../flow-details-phase-step/gio-ps-flow-details-phase-step.harness';
3
- import { StepForm } from '../step-form/gio-ps-step-form.harness';
4
- export type PhaseType = 'INTERACT' | 'REQUEST' | 'RESPONSE' | 'PUBLISH' | 'SUBSCRIBE';
5
- export type GioPolicyStudioDetailsPhaseHarnessFilters = BaseHarnessFilters & {
6
- type?: PhaseType;
7
- };
8
- export type StepCard = {
9
- name: string;
10
- type: 'connector';
11
- } | {
12
- name: string;
13
- description?: string;
14
- hasCondition: boolean;
15
- type: 'step';
16
- };
17
- export declare class GioPolicyStudioDetailsPhaseHarness extends ComponentHarness {
18
- static hostSelector: string;
19
- private getHeaderName;
20
- /**
21
- * Get Harness with the given filter.
22
- *
23
- * @param options Options for filtering which input instances are considered a match.
24
- * @return a `HarnessPredicate` configured with the given options.
25
- */
26
- static with(options?: GioPolicyStudioDetailsPhaseHarnessFilters): HarnessPredicate<GioPolicyStudioDetailsPhaseHarness>;
27
- getSteps(): Promise<StepCard[] | 'DISABLED'>;
28
- getStep(index: number): Promise<GioPolicyStudioDetailsPhaseStepHarness>;
29
- clickAddStep(index: number): Promise<void>;
30
- /**
31
- * Add a step to a phase
32
- * @param index Index where to add the step. (Add button index)
33
- * @param stepConfig Step to add
34
- */
35
- addStep(index: number, stepConfig: {
36
- policyName: string;
37
- } & StepForm): Promise<void>;
38
- /**
39
- * Edit a step configuration
40
- * @param index Index of the policy step to edit
41
- * @param stepConfig Step configuration
42
- */
43
- editStep(index: number, stepConfig: StepForm): Promise<void>;
44
- /**
45
- * Delete a step
46
- * @param index Index of the policy step to delete
47
- */
48
- deleteStep(index: number): Promise<void>;
49
- /**
50
- * Disable a step
51
- * @param index Index of the policy step to disable
52
- */
53
- disableEnableStep(index: number): Promise<void>;
54
- /**
55
- * Duplicate a step
56
- * @param index Index of the policy step to duplicate
57
- */
58
- duplicateStep(index: number): Promise<void>;
59
- /**
60
- * Move a step to the right
61
- * @param index Index of the policy step to move
62
- */
63
- moveStepRight(index: number): Promise<void>;
64
- /**
65
- * Move a step to the left
66
- * @param index Index of the policy step to move
67
- */
68
- moveStepLeft(index: number): Promise<void>;
69
- }
@@ -1,21 +0,0 @@
1
- import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
2
- export type GioPolicyStudioDetailsPhaseStepHarnessFilters = BaseHarnessFilters;
3
- export declare class GioPolicyStudioDetailsPhaseStepHarness extends ComponentHarness {
4
- static hostSelector: string;
5
- /**
6
- * Get Harness with the given filter.
7
- *
8
- * @param options Options for filtering which input instances are considered a match.
9
- * @return a `HarnessPredicate` configured with the given options.
10
- */
11
- static with(options?: GioPolicyStudioDetailsPhaseStepHarnessFilters): HarnessPredicate<GioPolicyStudioDetailsPhaseStepHarness>;
12
- getName(): Promise<string>;
13
- getDescription(): Promise<string | undefined>;
14
- getInfoMessage(): Promise<string | undefined>;
15
- clickOnEdit(): Promise<void>;
16
- clickOnDelete(): Promise<void>;
17
- clickOnDisableEnable(): Promise<void>;
18
- clickOnDuplicate(): Promise<void>;
19
- clickOnMoveRight(): Promise<void>;
20
- clickOnMoveLeft(): Promise<void>;
21
- }
@@ -1,13 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- import { FlowMode } from '../../models';
3
- export declare class GioPolicyStudioFlowExecutionFormDialogHarness extends ComponentHarness {
4
- static hostSelector: string;
5
- private getSaveBtn;
6
- private getCancelBtn;
7
- setFlowFormValues(flowExecution: {
8
- mode?: FlowMode;
9
- matchRequired?: boolean;
10
- }): Promise<void>;
11
- save(): Promise<void>;
12
- cancel(): Promise<void>;
13
- }
@@ -1,37 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- export type GioPolicyStudioFlowMessageHarnessData = {
3
- name: string;
4
- channelOperator: string;
5
- channel: string;
6
- entrypoints: string[];
7
- operations: string[];
8
- condition: string;
9
- };
10
- export declare class GioPolicyStudioFlowMessageFormDialogHarness extends ComponentHarness {
11
- static hostSelector: string;
12
- private getSaveBtn;
13
- private getCancelBtn;
14
- private nameInput;
15
- private channelOperatorInput;
16
- private channelInput;
17
- private operationsInput;
18
- private entrypointsInput;
19
- private conditionInput;
20
- setFlowFormValues(flow: {
21
- name?: string;
22
- channelOperator?: string;
23
- channel?: string;
24
- operations?: string[];
25
- entrypoints?: string[];
26
- condition?: string;
27
- }): Promise<void>;
28
- getName(): Promise<string>;
29
- getChannelOperator(): Promise<string>;
30
- getChannel(): Promise<string>;
31
- getOperations(): Promise<string>;
32
- getEntrypoints(): Promise<string>;
33
- getCondition(): Promise<string>;
34
- save(): Promise<void>;
35
- cancel(): Promise<void>;
36
- getFormValues(): Promise<GioPolicyStudioFlowMessageHarnessData>;
37
- }
@@ -1,17 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- export type GioPolicyStudioFlowNativeHarnessData = {
3
- name: string;
4
- };
5
- export declare class GioPolicyStudioFlowNativeFormDialogHarness extends ComponentHarness {
6
- static hostSelector: string;
7
- private getSaveBtn;
8
- private getCancelBtn;
9
- private nameInput;
10
- setFlowFormValues(flow: {
11
- name?: string;
12
- }): Promise<void>;
13
- getFlowFormValues(): Promise<GioPolicyStudioFlowNativeHarnessData>;
14
- getFlowName(): Promise<string>;
15
- save(): Promise<void>;
16
- cancel(): Promise<void>;
17
- }
@@ -1,33 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- export type GioPolicyStudioFlowProxyHarnessData = {
3
- name: string;
4
- pathOperator: string;
5
- path: string;
6
- methods: string[];
7
- condition: string;
8
- };
9
- export declare class GioPolicyStudioFlowProxyFormDialogHarness extends ComponentHarness {
10
- static hostSelector: string;
11
- private getSaveBtn;
12
- private getCancelBtn;
13
- private nameInput;
14
- private pathOperatorInput;
15
- private pathInput;
16
- private methodsInput;
17
- private conditionInput;
18
- setFlowFormValues(flow: {
19
- name?: string;
20
- pathOperator?: string;
21
- path?: string;
22
- methods?: string[];
23
- condition?: string;
24
- }): Promise<void>;
25
- getFlowFormValues(): Promise<GioPolicyStudioFlowProxyHarnessData>;
26
- getFlowName(): Promise<string>;
27
- getFlowPath(): Promise<string>;
28
- getPathOperator(): Promise<string>;
29
- getMethods(): Promise<string[]>;
30
- getCondition(): Promise<string>;
31
- save(): Promise<void>;
32
- cancel(): Promise<void>;
33
- }
@@ -1,31 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- import { DivHarness } from '@gravitee/ui-particles-angular/testing';
3
- import { MatInputHarness } from '@angular/material/input/testing';
4
- export declare class GioPolicyStudioFlowsMenuHarness extends ComponentHarness {
5
- static hostSelector: string;
6
- private locateFlowsGroups;
7
- private locateFlowByText;
8
- locateGroupByText: (text: string | RegExp) => import("@angular/cdk/harness-environment.d-4d615248").A<DivHarness | null>;
9
- private locateSelectedFlow;
10
- getAllFlowsGroups(): Promise<{
11
- name: string | null;
12
- flows: {
13
- name: string | null;
14
- isSelected: boolean;
15
- infos: string | null;
16
- hasCondition: boolean;
17
- }[];
18
- }[]>;
19
- getSelectedFlow(): Promise<{
20
- name: string | null;
21
- } | null>;
22
- /**
23
- * Select a flow by it's text content
24
- */
25
- selectFlow(flowText: string | RegExp): Promise<void>;
26
- addFlow(groupName: string | RegExp): Promise<void>;
27
- isReadOnly(): Promise<boolean>;
28
- openFlowExecutionConfig(): Promise<void>;
29
- clickDuplicateFlowBtn(flowText: string | RegExp): Promise<void>;
30
- getSearchInput(): Promise<MatInputHarness>;
31
- }
@@ -1,20 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- import { GioPolicyStudioStepFormHarness } from '../step-form/gio-ps-step-form.harness';
3
- export declare class GioPolicyStudioPoliciesCatalogDialogHarness extends ComponentHarness {
4
- static hostSelector: string;
5
- private policiesLocator;
6
- private getCategoriesFilter;
7
- getPhase(): Promise<string>;
8
- getPoliciesName(): Promise<string[]>;
9
- selectPolicy(policyName: string): Promise<void>;
10
- getSelectedPolicyName(): Promise<string>;
11
- hasRequestUpgradeButton(): Promise<boolean>;
12
- clickAddPolicyButton(): Promise<void>;
13
- getStepForm(): Promise<GioPolicyStudioStepFormHarness>;
14
- getCategoriesSelection(): Promise<{
15
- name: string;
16
- selected: boolean;
17
- }[]>;
18
- selectCategoryFilter(categoryName: string): Promise<void>;
19
- searchFilter(search: string): Promise<void>;
20
- }
@@ -1,8 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- import { GioPolicyStudioStepFormHarness } from '../step-form/gio-ps-step-form.harness';
3
- export declare class GioPolicyStudioStepEditDialogHarness extends ComponentHarness {
4
- static hostSelector: string;
5
- getPolicyName(): Promise<string>;
6
- getStepForm(): Promise<GioPolicyStudioStepFormHarness>;
7
- save(): Promise<void>;
8
- }
@@ -1,18 +0,0 @@
1
- import { ComponentHarness, LocatorFactory } from '@angular/cdk/testing';
2
- export type StepForm = {
3
- description?: string;
4
- condition?: string;
5
- messageCondition?: string;
6
- waitForPolicyFormCompletionCb?: (locator: LocatorFactory) => Promise<void>;
7
- waitForInitHttpRequestCompletionCb?: () => void;
8
- };
9
- export declare class GioPolicyStudioStepFormHarness extends ComponentHarness {
10
- static hostSelector: string;
11
- private getDescriptionInput;
12
- private getConditionInput;
13
- setStepForm(stepForm: StepForm): Promise<void>;
14
- getStepFormValue(): Promise<{
15
- description?: string;
16
- }>;
17
- getDocumentation(): Promise<string | null>;
18
- }
@@ -1 +0,0 @@
1
- export type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'NATIVE_KAFKA';
@@ -1 +0,0 @@
1
- export type ApiType = 'MESSAGE' | 'LLM_PROXY' | 'MCP_PROXY' | 'PROXY' | 'NATIVE';
@@ -1,7 +0,0 @@
1
- export interface ConnectorInfo {
2
- name: string;
3
- type: string;
4
- icon: string;
5
- supportedModes: ConnectorMode[];
6
- }
7
- export type ConnectorMode = 'CONNECT' | 'INTERACT' | 'SUBSCRIBE' | 'PUBLISH' | 'REQUEST_RESPONSE';
@@ -1,12 +0,0 @@
1
- import { ConnectorInfo } from './ConnectorsInfo';
2
- export declare function fakeSSEMessageEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
3
- export declare function fakeWebsocketMessageEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
4
- export declare function fakeHTTPPostMessageEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
5
- export declare function fakeHTTPGetMessageEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
6
- export declare function fakeWebhookMessageEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
7
- export declare function fakeHTTPProxyEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
8
- export declare function fakeMockMessageEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
9
- export declare function fakeKafkaMessageEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
10
- export declare function fakeHTTPProxyEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
11
- export declare function fakeKafkaNativeEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
12
- export declare function fakeKafkaNativeEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
@@ -1,5 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { PolicyDocumentation } from '../policy-studio/gio-policy-studio.model';
3
- import { Policy } from './policy/Policy';
4
- export type PolicySchemaFetcher = (policy: Policy) => Observable<unknown>;
5
- export type PolicyDocumentationFetcher = (policy: Policy) => Observable<PolicyDocumentation | string>;
@@ -1,7 +0,0 @@
1
- import { Flow, FlowExecution } from './flow';
2
- import { Plan } from './plan';
3
- export type SaveOutput = {
4
- commonFlows?: Flow[];
5
- plansToUpdate?: Plan[];
6
- flowExecution?: FlowExecution;
7
- };
@@ -1,24 +0,0 @@
1
- import { Selector } from './Selector';
2
- import { Step } from './Step';
3
- export interface Flow {
4
- id?: string;
5
- /**
6
- * Flow's name.
7
- */
8
- name?: string;
9
- /**
10
- * Is the flow enabled.
11
- */
12
- enabled?: boolean;
13
- selectors?: Selector[];
14
- connect?: Step[];
15
- interact?: Step[];
16
- request?: Step[];
17
- response?: Step[];
18
- subscribe?: Step[];
19
- publish?: Step[];
20
- /**
21
- * Flow's tags.
22
- */
23
- tags?: string[];
24
- }
@@ -1,6 +0,0 @@
1
- import { Flow } from './Flow';
2
- export declare function fakeChannelFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
3
- export declare function fakeConditionedChannelFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
4
- export declare function fakeHttpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
5
- export declare function fakeConditionedHttpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
6
- export declare function fakeNativeFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
@@ -1,11 +0,0 @@
1
- /**
2
- * API's flow mode.
3
- */
4
- export type FlowMode = 'BEST_MATCH' | 'DEFAULT';
5
- export interface FlowExecution {
6
- mode?: FlowMode;
7
- /**
8
- * Is the flow execution match required.
9
- */
10
- matchRequired?: boolean;
11
- }
@@ -1,3 +0,0 @@
1
- import { FlowExecution } from './FlowExecution';
2
- export declare function fakeBestMatchFlowExecution(modifier?: Partial<FlowExecution> | ((baseApi: FlowExecution) => FlowExecution)): FlowExecution;
3
- export declare function fakeDefaultFlowExecution(modifier?: Partial<FlowExecution> | ((baseApi: FlowExecution) => FlowExecution)): FlowExecution;
@@ -1,3 +0,0 @@
1
- export declare const HttpMethods: readonly ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE", "OTHER"];
2
- export type HttpMethod = (typeof HttpMethods)[number];
3
- export declare const toHttpMethod: (value: string) => HttpMethod | undefined;
@@ -1,37 +0,0 @@
1
- import { HttpMethod } from './HttpMethod';
2
- export type Operation = 'PUBLISH' | 'SUBSCRIBE';
3
- export type Operator = 'EQUALS' | 'STARTS_WITH';
4
- export type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION';
5
- export interface BaseSelector {
6
- /**
7
- * Selector type.
8
- */
9
- type?: BaseSelectorTypeEnum;
10
- }
11
- export interface HttpSelector extends BaseSelector {
12
- /**
13
- * The path of the selector
14
- */
15
- path: string;
16
- pathOperator: Operator;
17
- methods?: HttpMethod[];
18
- }
19
- export interface ChannelSelector extends BaseSelector {
20
- /**
21
- * The list of operations associated with this channel selector.
22
- */
23
- operations?: Operation[];
24
- /**
25
- * The channel of the selector
26
- */
27
- channel: string;
28
- channelOperator: Operator;
29
- entrypoints?: string[];
30
- }
31
- export interface ConditionSelector extends BaseSelector {
32
- /**
33
- * The condition of the selector
34
- */
35
- condition: string;
36
- }
37
- export type Selector = HttpSelector | ChannelSelector | ConditionSelector;
@@ -1,34 +0,0 @@
1
- export interface Step {
2
- /**
3
- * The name of the step
4
- */
5
- name?: string;
6
- /**
7
- * The description of the step
8
- */
9
- description?: string;
10
- /**
11
- * Is the step enabled or not.
12
- */
13
- enabled?: boolean;
14
- /**
15
- * The policy of the step
16
- */
17
- policy?: string;
18
- /**
19
- * The configuration of the step
20
- */
21
- configuration?: unknown;
22
- /**
23
- * The condition of the step
24
- */
25
- condition?: string;
26
- /**
27
- * The message condition of the step
28
- */
29
- messageCondition?: string;
30
- /**
31
- * Is the policy deployed or not.
32
- */
33
- deployed?: boolean;
34
- }
@@ -1,5 +0,0 @@
1
- import { Step } from './Step';
2
- export declare function fakeTestPolicyStep(modifier?: Partial<Step> | ((base: Step) => Step)): Step;
3
- export declare function fakeRateLimitStep(modifier?: Partial<Step> | ((base: Step) => Step)): Step;
4
- export declare function fakeJsonToXmlStep(modifier?: Partial<Step> | ((base: Step) => Step)): Step;
5
- export declare function fakeSharedPolicyGroupPolicyStep(modifier?: Partial<Step> | ((base: Step) => Step)): Step;
@@ -1,3 +0,0 @@
1
- export * from './Flow.fixture';
2
- export * from './FlowExecution.fixture';
3
- export * from './Step.fixture';
@@ -1,5 +0,0 @@
1
- export * from './Flow';
2
- export * from './FlowExecution';
3
- export * from './HttpMethod';
4
- export * from './Selector';
5
- export * from './Step';
@@ -1,4 +0,0 @@
1
- export * from './flow/index-testing';
2
- export * from './plan/index-testing';
3
- export * from './policy/index-testing';
4
- export * from './ConnectorsInfo.fixture';
@@ -1,8 +0,0 @@
1
- export * from './flow';
2
- export * from './plan';
3
- export * from './policy';
4
- export * from './ConnectorsInfo';
5
- export * from './SaveOutput';
6
- export * from './PolicySchemaFetcher';
7
- export * from './ApiProtocolType';
8
- export * from './ApiType';
@@ -1,6 +0,0 @@
1
- import { Flow } from '../flow';
2
- export interface Plan {
3
- id: string;
4
- name: string;
5
- flows: Flow[];
6
- }
@@ -1,2 +0,0 @@
1
- import { Plan } from './Plan';
2
- export declare function fakePlan(modifier?: Partial<Plan> | ((base: Plan) => Plan)): Plan;
@@ -1 +0,0 @@
1
- export * from './Plan.fixture';
@@ -1 +0,0 @@
1
- export * from './Plan';
@@ -1,22 +0,0 @@
1
- import { SharedPolicyGroupPolicy } from './SharedPolicyGroupPolicy';
2
- import { Policy } from './Policy';
3
- type CommonGenericPolicy = {
4
- _id: string;
5
- policyId: string;
6
- icon?: string;
7
- category?: string;
8
- type: 'POLICY' | 'SHARED_POLICY_GROUP';
9
- };
10
- export type GenericPolicyPolicy = CommonGenericPolicy & {
11
- type: 'POLICY';
12
- } & Omit<Policy, 'id'>;
13
- export type GenericPolicySharedPolicyGroupPolicy = CommonGenericPolicy & {
14
- type: 'SHARED_POLICY_GROUP';
15
- sharedPolicyGroupId: string;
16
- } & Omit<SharedPolicyGroupPolicy, 'id'>;
17
- export type GenericPolicy = GenericPolicyPolicy | GenericPolicySharedPolicyGroupPolicy;
18
- export declare const isSharedPolicyGroupPolicy: (policy: GenericPolicy) => policy is GenericPolicySharedPolicyGroupPolicy;
19
- export declare const isPolicy: (policy: GenericPolicy) => policy is GenericPolicyPolicy;
20
- export declare const toGenericPolicies: (policies: Policy[], sharedPolicyGroupPolicies?: SharedPolicyGroupPolicy[]) => GenericPolicy[];
21
- export declare const toPolicy: (genericPolicy: GenericPolicy) => Policy;
22
- export {};
@@ -1,28 +0,0 @@
1
- import { ApiProtocolType } from '../ApiProtocolType';
2
- export type FlowPhase = 'REQUEST' | 'RESPONSE' | 'INTERACT' | 'CONNECT' | 'PUBLISH' | 'SUBSCRIBE';
3
- export interface Policy {
4
- id: string;
5
- name: string;
6
- icon?: string;
7
- description?: string;
8
- category?: string;
9
- version?: string;
10
- flowPhaseCompatibility?: Partial<Record<ApiProtocolType, FlowPhase[]>>;
11
- deployed?: boolean;
12
- }
13
- /**
14
- * @Deprecated to keep as long as we support APIM < 4.6
15
- */
16
- export type ExecutionPhase = 'REQUEST' | 'RESPONSE' | 'MESSAGE_REQUEST' | 'MESSAGE_RESPONSE';
17
- export type PolicyInput = Omit<Policy, 'proxy' | 'message'> & {
18
- proxy?: ExecutionPhase[];
19
- message?: ExecutionPhase[];
20
- };
21
- /**
22
- * @Deprecated to keep as long as we support APIM < 4.6
23
- */
24
- export declare const fromPolicyInput: (policy: PolicyInput | Policy) => Policy;
25
- /**
26
- * @Deprecated to keep as long as we support APIM < 4.6
27
- */
28
- export declare const fromExecutionPhase: (phase: ExecutionPhase | FlowPhase) => FlowPhase;
@@ -1,4 +0,0 @@
1
- import { Policy, PolicyInput } from './Policy';
2
- export declare const POLICIES_V4_UNREGISTERED_ICON: Policy[];
3
- export declare function fakeTestPolicy(modifier?: Partial<Policy> | ((base: Policy) => Policy)): Policy;
4
- export declare function fakeAllPolicies(): (PolicyInput | Policy)[];
@@ -1,11 +0,0 @@
1
- import { ApiType } from '../ApiType';
2
- import { FlowPhase } from './Policy';
3
- export type SharedPolicyGroupPolicy = {
4
- id: string;
5
- policyId: string;
6
- name: string;
7
- description?: string;
8
- prerequisiteMessage?: string;
9
- apiType: ApiType;
10
- phase: FlowPhase;
11
- };
@@ -1 +0,0 @@
1
- export * from './Policy.fixture';
@@ -1,3 +0,0 @@
1
- export * from './Policy';
2
- export * from './SharedPolicyGroupPolicy';
3
- export * from './GenericPolicy';
@@ -1,20 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- import { GioPolicyStudioDetailsPhaseHarness } from '../components/flow-details-phase/gio-ps-flow-details-phase.harness';
3
- import { StepForm } from '../components/step-form/gio-ps-step-form.harness';
4
- export declare class GioPolicyGroupStudioHarness extends ComponentHarness {
5
- static hostSelector: string;
6
- private phaseHarness;
7
- /**
8
- * Get Policy Group phase harness
9
- */
10
- getPolicyGroupPhase(): Promise<GioPolicyStudioDetailsPhaseHarness>;
11
- clickAddStep(index: number): Promise<void>;
12
- /**
13
- * Add a step to a policy-group
14
- * @param index Index where to add the step. (Add button index)
15
- * @param stepConfig Step to add
16
- */
17
- addStep(index: number, stepConfig: {
18
- policyName: string;
19
- } & StepForm): Promise<void>;
20
- }