@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,57 +0,0 @@
1
- import { CdkDrag, CdkDragDrop, CdkDropList } from '@angular/cdk/drag-drop';
2
- import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
3
- import { FormControl } from '@angular/forms';
4
- import { MatDialog } from '@angular/material/dialog';
5
- import { ApiType, ConnectorInfo, FlowExecution } from '../../models';
6
- import { FlowGroupVM, FlowVM } from '../../policy-studio/gio-policy-studio.model';
7
- import * as i0 from "@angular/core";
8
- interface FlowGroupMenuVM extends FlowGroupVM {
9
- flows: FlowMenuVM[];
10
- }
11
- interface FlowMenuVM extends FlowVM {
12
- selected: boolean;
13
- mouseOver: boolean;
14
- badges: {
15
- label: string;
16
- class: string;
17
- }[];
18
- pathOrChannelLabel: string;
19
- hasCondition: boolean;
20
- }
21
- export declare class GioPolicyStudioFlowsMenuComponent implements OnChanges, OnDestroy {
22
- private readonly matDialog;
23
- readOnly: boolean;
24
- loading: boolean;
25
- apiType: ApiType;
26
- flowExecution: FlowExecution;
27
- flowsGroups: FlowGroupVM[];
28
- selectedFlowId?: string;
29
- entrypoints: ConnectorInfo[];
30
- entrypointsInfo: ConnectorInfo[];
31
- selectedFlowIdChange: EventEmitter<string>;
32
- flowsGroupsChange: EventEmitter<FlowGroupVM[]>;
33
- flowExecutionChange: EventEmitter<FlowExecution>;
34
- deleteFlow: EventEmitter<FlowVM>;
35
- flowGroupMenuItems: FlowGroupMenuVM[];
36
- searchControl: FormControl<string | null>;
37
- filteredFlowGroupMenuItems: FlowGroupMenuVM[];
38
- private unsubscribe$;
39
- enterPredicate: (drag: CdkDrag<FlowGroupMenuVM>, drop: CdkDropList<FlowGroupMenuVM>) => boolean;
40
- constructor(matDialog: MatDialog);
41
- ngOnChanges(changes: SimpleChanges): void;
42
- ngOnDestroy(): void;
43
- private applyFilter;
44
- resetSearchTerm(): void;
45
- private selectorMatches;
46
- selectFlow(groupId: string, flowId: string): void;
47
- onAddFlow(flowGroup: FlowGroupVM): void;
48
- onConfigureExecution(flowExecution: FlowExecution): void;
49
- onDisableFlow(flowId: string): void;
50
- onDropFlow(event: CdkDragDrop<FlowGroupMenuVM>): void;
51
- onEditFlow(flowId: string): void;
52
- onDeleteFlow(flowId: string): void;
53
- onDuplicateFlow(flowGroupId: string, flowId: string): void;
54
- static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioFlowsMenuComponent, never>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioFlowsMenuComponent, "gio-ps-flows-menu", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "apiType": { "alias": "apiType"; "required": false; }; "flowExecution": { "alias": "flowExecution"; "required": false; }; "flowsGroups": { "alias": "flowsGroups"; "required": false; }; "selectedFlowId": { "alias": "selectedFlowId"; "required": false; }; "entrypoints": { "alias": "entrypoints"; "required": false; }; "entrypointsInfo": { "alias": "entrypointsInfo"; "required": false; }; }, { "selectedFlowIdChange": "selectedFlowIdChange"; "flowsGroupsChange": "flowsGroupsChange"; "flowExecutionChange": "flowExecutionChange"; "deleteFlow": "deleteFlow"; }, never, never, true, never>;
56
- }
57
- export {};
@@ -1,47 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { MatDialogRef } from '@angular/material/dialog';
3
- import { UntypedFormGroup } from '@angular/forms';
4
- import { ApiType, FlowPhase, GenericPolicy, Step } from '../../models';
5
- import * as i0 from "@angular/core";
6
- export type GioPolicyStudioPoliciesCatalogDialogData = {
7
- genericPolicies: GenericPolicy[];
8
- flowPhase: FlowPhase;
9
- apiType: ApiType;
10
- trialUrl?: string;
11
- };
12
- export type GioPolicyStudioPoliciesCatalogDialogResult = undefined | Step;
13
- type PolicyVM = {
14
- _id: string;
15
- genericPolicy: GenericPolicy;
16
- name: string;
17
- description?: string;
18
- icon?: string;
19
- deployed?: boolean;
20
- category: string;
21
- };
22
- export declare class GioPolicyStudioPoliciesCatalogDialogComponent implements OnDestroy {
23
- dialogRef: MatDialogRef<GioPolicyStudioPoliciesCatalogDialogComponent, GioPolicyStudioPoliciesCatalogDialogResult>;
24
- policies: PolicyVM[];
25
- flowPhase: FlowPhase;
26
- flowPhaseLabel: string;
27
- selectedPolicy?: GenericPolicy;
28
- stepToAdd?: Step;
29
- categories: string[];
30
- isValid: boolean;
31
- filtersForm: UntypedFormGroup;
32
- private allPolicies;
33
- private unsubscribe$;
34
- isUnlicensed: boolean;
35
- trialUrl?: string;
36
- apiType: ApiType;
37
- constructor(dialogRef: MatDialogRef<GioPolicyStudioPoliciesCatalogDialogComponent, GioPolicyStudioPoliciesCatalogDialogResult>, flowDialogData: GioPolicyStudioPoliciesCatalogDialogData);
38
- ngOnDestroy(): void;
39
- onSelectPolicy(policy: PolicyVM): void;
40
- onStepChange(step: Step): void;
41
- onIsValid(isValid: boolean): void;
42
- onAddPolicy(): void;
43
- onGoBack(): void;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioPoliciesCatalogDialogComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioPoliciesCatalogDialogComponent, "gio-ps-policies-catalog-dialog", never, {}, {}, never, never, true, never>;
46
- }
47
- export {};
@@ -1,24 +0,0 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
- import { FlowPhase, Step, GenericPolicy, ApiType } from '../../models';
3
- import * as i0 from "@angular/core";
4
- export type GioPolicyStudioStepEditDialogData = {
5
- genericPolicy: GenericPolicy;
6
- step: Step;
7
- flowPhase: FlowPhase;
8
- apiType: ApiType;
9
- readOnly?: boolean;
10
- };
11
- export type GioPolicyStudioStepEditDialogResult = undefined | Step;
12
- export declare class GioPolicyStudioStepEditDialogComponent {
13
- dialogRef: MatDialogRef<GioPolicyStudioStepEditDialogComponent, GioPolicyStudioStepEditDialogResult>;
14
- genericPolicy: GenericPolicy;
15
- step: Step;
16
- flowPhase: FlowPhase;
17
- apiType: ApiType;
18
- isValid: boolean;
19
- readOnly: boolean;
20
- constructor(dialogRef: MatDialogRef<GioPolicyStudioStepEditDialogComponent, GioPolicyStudioStepEditDialogResult>, flowDialogData: GioPolicyStudioStepEditDialogData);
21
- onSave(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioStepEditDialogComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioStepEditDialogComponent, "gio-ps-step-edit-dialog", never, {}, {}, never, never, true, never>;
24
- }
@@ -1,35 +0,0 @@
1
- import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
- import { UntypedFormGroup } from '@angular/forms';
3
- import { Observable } from 'rxjs';
4
- import { GioJsonSchema, GioJsonSchemaContext } from '@gravitee/ui-particles-angular';
5
- import { ApiType, FlowPhase, GenericPolicy, Step } from '../../models';
6
- import { GioPolicyStudioService } from '../../policy-studio/gio-policy-studio.service';
7
- import { PolicyDocumentation } from '../../policy-studio/gio-policy-studio.model';
8
- import * as i0 from "@angular/core";
9
- export declare class GioPolicyStudioStepFormComponent implements OnChanges, OnInit, OnDestroy {
10
- private readonly policyStudioService;
11
- private readonly noDocumentationAvailable;
12
- readOnly: boolean;
13
- step?: Step;
14
- flowPhase: FlowPhase;
15
- apiType: ApiType;
16
- genericPolicy: GenericPolicy;
17
- stepChange: EventEmitter<Step>;
18
- isValid: EventEmitter<boolean>;
19
- policySchema$?: Observable<GioJsonSchema | null | undefined>;
20
- policyDocumentation$?: Observable<PolicyDocumentation>;
21
- infoBanner?: string;
22
- stepForm?: UntypedFormGroup;
23
- context?: GioJsonSchemaContext;
24
- private unsubscribe$;
25
- isMessage: boolean;
26
- constructor(policyStudioService: GioPolicyStudioService);
27
- ngOnChanges(changes: SimpleChanges): void;
28
- ngOnInit(): void;
29
- ngOnDestroy(): void;
30
- private initStepForm;
31
- onJsonSchemaReady(isReady: boolean): void;
32
- emitStepChange(): void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioStepFormComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioStepFormComponent, "gio-ps-step-form", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "step": { "alias": "step"; "required": false; }; "flowPhase": { "alias": "flowPhase"; "required": true; }; "apiType": { "alias": "apiType"; "required": true; }; "genericPolicy": { "alias": "genericPolicy"; "required": false; }; }, { "stepChange": "stepChange"; "isValid": "isValid"; }, never, never, true, never>;
35
- }
@@ -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,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,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
- 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
- export * from './Flow';
2
- export * from './FlowExecution';
3
- export * from './HttpMethod';
4
- export * from './Selector';
5
- export * from './Step';
@@ -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 +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,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,3 +0,0 @@
1
- export * from './Policy';
2
- export * from './SharedPolicyGroupPolicy';
3
- export * from './GenericPolicy';
@@ -1,70 +0,0 @@
1
- import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- import { ApiType, ConnectorInfo, ExecutionPhase, FlowPhase, GenericPolicy, Policy, PolicyDocumentationFetcher, PolicyInput, PolicySchemaFetcher, Step } from '../models';
3
- import { GioPolicyStudioService } from '../policy-studio/gio-policy-studio.service';
4
- import * as i0 from "@angular/core";
5
- export type PolicyGroupOutput = Step[];
6
- export type PolicyGroupInput = Step[];
7
- type PolicyGroupVM = {
8
- name: string;
9
- description: string;
10
- startConnectorName: string;
11
- endConnectorName: string;
12
- };
13
- export declare class GioPolicyGroupStudioComponent implements OnChanges {
14
- private readonly policyStudioService;
15
- /**
16
- * List of policies usable in the studio
17
- */
18
- set policies(value: (PolicyInput | Policy)[]);
19
- get policies(): Policy[];
20
- private _policies;
21
- /**
22
- * Whether the Policy Group Studio is in read-only mode
23
- */
24
- readOnly: boolean;
25
- /**
26
- * Type of the API targeted by the Policy Group Studio
27
- */
28
- apiType: ApiType;
29
- /**
30
- * Execution phase targeted by the Policy Group Studio
31
- * @deprecated Use `flowPhase` instead. To keep as long as we support APIM < 4.6
32
- */
33
- set executionPhase(value: ExecutionPhase);
34
- /**
35
- * Execution phase targeted by the Policy Group Studio
36
- */
37
- flowPhase: FlowPhase;
38
- /**
39
- * Called when Policy Group Studio needs to fetch the policy schema
40
- * @returns Observable of the policy schema
41
- */
42
- policySchemaFetcher: PolicySchemaFetcher;
43
- /**
44
- * Called when Policy Group Studio needs to fetch the policy documentation
45
- * @returns Observable of the policy documentation
46
- */
47
- policyDocumentationFetcher: PolicyDocumentationFetcher;
48
- policyGroup: PolicyGroupInput;
49
- /**
50
- * Output event when the Policy Group Studio changes
51
- */
52
- policyGroupChange: EventEmitter<PolicyGroupOutput>;
53
- protected isLoading: boolean;
54
- protected createStartConnector: (name: string) => ConnectorInfo[];
55
- protected createEndConnector: (name: string) => ConnectorInfo[];
56
- protected policyGroupVM?: PolicyGroupVM;
57
- protected steps: Step[];
58
- protected trialUrl: string | undefined;
59
- protected genericPolicies: GenericPolicy[];
60
- protected startConnector: ConnectorInfo[];
61
- protected endConnector: ConnectorInfo[];
62
- private phases;
63
- constructor(policyStudioService: GioPolicyStudioService);
64
- ngOnChanges(changes: SimpleChanges): void;
65
- protected onStepsChange(steps: Step[]): void;
66
- static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyGroupStudioComponent, never>;
67
- static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyGroupStudioComponent, "gio-policy-group-studio", never, { "policies": { "alias": "policies"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "apiType": { "alias": "apiType"; "required": true; }; "executionPhase": { "alias": "executionPhase"; "required": false; }; "flowPhase": { "alias": "flowPhase"; "required": false; }; "policySchemaFetcher": { "alias": "policySchemaFetcher"; "required": true; }; "policyDocumentationFetcher": { "alias": "policyDocumentationFetcher"; "required": true; }; "policyGroup": { "alias": "policyGroup"; "required": false; }; }, { "policyGroupChange": "policyGroupChange"; }, never, never, true, never>;
68
- static ngAcceptInputType_policies: unknown;
69
- }
70
- export {};
@@ -1,98 +0,0 @@
1
- import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
- import { ConnectorInfo, Flow, FlowExecution, Plan, Policy, PolicyDocumentationFetcher, PolicySchemaFetcher, SaveOutput, SharedPolicyGroupPolicy, GenericPolicy, PolicyInput, ApiType } from '../models';
3
- import { FlowGroupVM, FlowVM } from './gio-policy-studio.model';
4
- import { GioPolicyStudioService } from './gio-policy-studio.service';
5
- import * as i0 from "@angular/core";
6
- export type FlowSelection = {
7
- planIndex: number;
8
- flowIndex: number;
9
- };
10
- export declare class GioPolicyStudioComponent implements OnChanges, OnDestroy {
11
- private readonly policyStudioService;
12
- /**
13
- * May be set to `true` if the API is not manageable from the UI (e.g. kubernetes operator APIs)
14
- */
15
- readOnly: boolean;
16
- /**
17
- * API type (required)
18
- */
19
- apiType: ApiType;
20
- /**
21
- * Flow execution config (required)
22
- */
23
- flowExecution: FlowExecution;
24
- /**
25
- * List of entrypoints to display
26
- */
27
- entrypointsInfo: ConnectorInfo[];
28
- /**
29
- * List of endpoints to display
30
- */
31
- endpointsInfo: ConnectorInfo[];
32
- /**
33
- * List of common flows to add to common flows group
34
- */
35
- commonFlows: Flow[];
36
- /**
37
- * List of plans with their flows
38
- */
39
- plans: Plan[];
40
- /**
41
- * List of policies usable in the policy studio
42
- */
43
- set policies(value: (PolicyInput | Policy)[]);
44
- get policies(): Policy[];
45
- private _policies;
46
- /**
47
- * List of SharedPolicyGroups usable in the studio
48
- */
49
- sharedPolicyGroupPolicies: SharedPolicyGroupPolicy[];
50
- /**
51
- * When a policy is not available with the current license,
52
- * this URL is used to redirect the user to the trial page.
53
- */
54
- trialUrl?: string;
55
- /**
56
- * Loading state
57
- */
58
- loading: boolean;
59
- /**
60
- * Called when Policy Studio needs to fetch the policy schema
61
- * @returns Observable of the policy schema
62
- */
63
- policySchemaFetcher: PolicySchemaFetcher;
64
- /**
65
- * Called when Policy Studio needs to fetch the policy documentation
66
- * @returns Observable of the policy documentation
67
- */
68
- policyDocumentationFetcher: PolicyDocumentationFetcher;
69
- selectedFlowIndexes: FlowSelection;
70
- selectedFlowChanged: EventEmitter<FlowSelection>;
71
- /**
72
- * Return what is needed to save.
73
- **/
74
- save: EventEmitter<SaveOutput>;
75
- connectorsTooltip: string;
76
- selectedFlow?: FlowVM;
77
- flowsGroups: FlowGroupVM[];
78
- disableSaveButton: boolean;
79
- saving: boolean;
80
- private initialFlowsGroups;
81
- private hasFlowExecutionChanged;
82
- private unSavingButtonSubscription?;
83
- enableSavingTimer: boolean;
84
- protected genericPolicies: GenericPolicy[];
85
- constructor(policyStudioService: GioPolicyStudioService);
86
- ngOnChanges(changes: SimpleChanges): void;
87
- ngOnDestroy(): void;
88
- onFlowExecutionChange(flowExecution: FlowExecution): void;
89
- onFlowsGroupsChange(flowsGroups: FlowGroupVM[]): void;
90
- onSelectedFlowChange(flow: FlowVM): void;
91
- onSelectFlow(flowId: string): void;
92
- onDeleteSelectedFlow(flow: FlowVM): void;
93
- onSave(): void;
94
- private initGenericPolicies;
95
- static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioComponent, never>;
96
- static ɵcmp: i0.ɵɵComponentDeclaration<GioPolicyStudioComponent, "gio-policy-studio", never, { "readOnly": { "alias": "readOnly"; "required": false; }; "apiType": { "alias": "apiType"; "required": false; }; "flowExecution": { "alias": "flowExecution"; "required": false; }; "entrypointsInfo": { "alias": "entrypointsInfo"; "required": false; }; "endpointsInfo": { "alias": "endpointsInfo"; "required": false; }; "commonFlows": { "alias": "commonFlows"; "required": false; }; "plans": { "alias": "plans"; "required": false; }; "policies": { "alias": "policies"; "required": false; }; "sharedPolicyGroupPolicies": { "alias": "sharedPolicyGroupPolicies"; "required": false; }; "trialUrl": { "alias": "trialUrl"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "policySchemaFetcher": { "alias": "policySchemaFetcher"; "required": false; }; "policyDocumentationFetcher": { "alias": "policyDocumentationFetcher"; "required": false; }; "selectedFlowIndexes": { "alias": "selectedFlowIndexes"; "required": false; }; }, { "selectedFlowChanged": "selectedFlowChanged"; "save": "save"; }, never, never, true, never>;
97
- static ngAcceptInputType_policies: unknown;
98
- }
@@ -1,17 +0,0 @@
1
- import { Flow } from '../models';
2
- export interface FlowVM extends Flow {
3
- _id: string;
4
- _hasChanged: boolean;
5
- _parentFlowGroupName?: string;
6
- }
7
- export interface FlowGroupVM {
8
- _id: string;
9
- _planId?: string;
10
- _isPlan: boolean;
11
- name: string;
12
- flows: FlowVM[];
13
- }
14
- export interface PolicyDocumentation {
15
- content: string;
16
- language: 'MARKDOWN' | 'ASCIIDOC';
17
- }
@@ -1,30 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { Policy, PolicyDocumentationFetcher, PolicySchemaFetcher } from '../models';
3
- import { PolicyDocumentation } from './gio-policy-studio.model';
4
- import * as i0 from "@angular/core";
5
- export declare class GioPolicyStudioService {
6
- private schemasCache;
7
- private documentationsCache;
8
- private policySchemaFetcher?;
9
- private policyDocumentationFetcher?;
10
- setPolicySchemaFetcher(policySchemaFetcher: PolicySchemaFetcher): void;
11
- setPolicyDocumentationFetcher(policyDocumentationFetcher: PolicyDocumentationFetcher): void;
12
- /**
13
- * Call the policy schema fetcher to get the schema for the given policy. If the
14
- * schema has already been fetched, it will be returned from the cache.
15
- *
16
- * @param policy to get the schema for
17
- * @returns the schema for the policy
18
- */
19
- getPolicySchema(policy: Policy): Observable<unknown>;
20
- /**
21
- * Call the policy documentation fetcher to get the documentation for the given policy. If the
22
- * documentation has already been fetched, it will be returned from the cache.
23
- *
24
- * @param policy to get the documentation for
25
- * @returns the documentation for the policy
26
- */
27
- getPolicyDocumentation(policy: Policy): Observable<PolicyDocumentation | string>;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<GioPolicyStudioService, never>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<GioPolicyStudioService>;
30
- }
package/public-api.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './lib/models';
2
- export { GioPolicyStudioComponent } from './lib/policy-studio/gio-policy-studio.component';
3
- export * from './lib/policy-group-studio/gio-policy-group-studio.component';
@@ -1,12 +0,0 @@
1
- import { ComponentHarness } from '@angular/cdk/testing';
2
- export declare class GioPolicyStudioDetailsHarness extends ComponentHarness {
3
- static hostSelector: string;
4
- isDisplayEmptyFlow(): Promise<boolean>;
5
- isDisabledFlow(): Promise<boolean>;
6
- getFlowInfos(): Promise<Record<string, (string | null)[]>>;
7
- matchText(matcher: RegExp): Promise<boolean>;
8
- isReadOnly(): Promise<boolean>;
9
- clickEditFlowBtn(): Promise<void>;
10
- clickDeleteFlowBtn(): Promise<void>;
11
- clickEnableDisableFlowBtn(): Promise<void>;
12
- }