df-ae-forms-package 1.0.2 → 1.0.3

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/dist/index.d.ts CHANGED
@@ -789,25 +789,43 @@ interface IThresholdAlertProps {
789
789
  }
790
790
  declare const ThresholdAlert: React.FC<IThresholdAlertProps>;
791
791
 
792
+ interface IIssue {
793
+ _id?: string;
794
+ issueNumber?: string;
795
+ title?: string;
796
+ description?: string;
797
+ workOrderNumber?: string;
798
+ workOrderId?: string;
799
+ assetNumber?: string;
800
+ assetId?: string;
801
+ assetDescription?: string;
802
+ formTemplateId?: string;
803
+ formInstanceId?: string;
804
+ component?: FormComponentType;
805
+ priority?: 'High' | 'Medium' | 'Low';
806
+ status?: string;
807
+ assignee?: string;
808
+ comments?: string;
809
+ createdAt?: string;
810
+ }
792
811
  interface IRaiseIssueModalProps {
793
812
  isOpen: boolean;
794
813
  onClose: () => void;
795
- onSuccess?: (createdIssue?: any) => void;
814
+ onSuccess?: (createdIssue?: IIssue) => void;
796
815
  component?: FormComponentType;
797
816
  formTemplateId?: string;
798
817
  formInstanceId?: string;
799
818
  notes?: string;
800
819
  attachments?: File[] | null;
801
- issue?: any | null;
802
- }
803
- /**
804
- * RaiseIssueModal - Stub implementation for package
805
- *
806
- * This is a stub component that can be replaced by the consuming application
807
- * with their own implementation that integrates with their issue management system.
808
- *
809
- * For now, it simply calls onSuccess when the user "raises" an issue.
810
- */
820
+ issue?: IIssue | null;
821
+ onCreateIssue?: (issueData: any, attachments: File[]) => Promise<IIssue>;
822
+ onUpdateIssue?: (issueId: string, updateData: any) => Promise<void>;
823
+ user?: {
824
+ firstName?: string;
825
+ lastName?: string;
826
+ };
827
+ availableUsers?: string[];
828
+ }
811
829
  declare const RaiseIssueModal: React.FC<IRaiseIssueModalProps>;
812
830
 
813
831
  interface IAvailableComponent {