mcgilman commented on code in PR #11112:
URL: https://github.com/apache/nifi/pull/11112#discussion_r3052886130
##########
nifi-frontend/src/main/frontend/libs/shared/src/types/index.ts:
##########
@@ -218,3 +218,63 @@ export function isDefinedAndNotNull<T>() {
})
);
}
+
+export interface Bundle {
+ artifact: string;
+ group: string;
+ version: string;
+}
+
+export type ConnectorActionName =
+ | 'START'
+ | 'STOP'
+ | 'CONFIGURE'
+ | 'DISCARD_WORKING_CONFIGURATION'
+ | 'PURGE_FLOWFILES'
+ | 'DRAIN_FLOWFILES'
+ | 'CANCEL_DRAIN_FLOWFILES'
+ | 'APPLY_UPDATES'
+ | 'DELETE';
+
+export interface ConnectorAction {
+ name: ConnectorActionName;
+ description: string;
+ allowed: boolean;
+ reasonNotAllowed?: string;
+}
+
+export enum ConnectorState {
+ STARTING = 'STARTING',
+ RUNNING = 'RUNNING',
+ STOPPING = 'STOPPING',
+ STOPPED = 'STOPPED',
+ DRAINING = 'DRAINING',
+ DISABLED = 'DISABLED',
+ PREPARING_FOR_UPDATE = 'PREPARING_FOR_UPDATE',
+ UPDATING = 'UPDATING',
+ UPDATE_FAILED = 'UPDATE_FAILED'
+}
+
+export interface ConnectorComponent {
+ id: string;
+ name: string;
+ type: string;
+ state: string;
+ bundle: Bundle;
+ validationErrors?: string[];
+ validationStatus?: string;
+ multipleVersionsAvailable?: boolean;
+ availableActions: ConnectorAction[];
+ managedProcessGroupId: string;
+}
+
+export interface ConnectorEntity {
+ permissions: Permissions;
+ operatePermissions?: Permissions;
+ revision: Revision;
+ bulletins: BulletinEntity[];
+ id: string;
+ uri: string;
+ status: any;
Review Comment:
I don't think this was updated in your latest commit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]