ptechcore_ui 1.0.69 → 1.0.71

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.cts CHANGED
@@ -39,13 +39,13 @@ type TextInputProps = InputProps & {
39
39
  declare const TextInput: React$1.FC<TextInputProps>;
40
40
  declare const NumberInput: React$1.FC<TextInputProps>;
41
41
  declare const DateInput: React$1.FC<TextInputProps>;
42
- type Option = {
42
+ type Option$1 = {
43
43
  label: string;
44
44
  value: string | number;
45
45
  };
46
46
  type SelectInputProps = React$1.SelectHTMLAttributes<HTMLSelectElement> & {
47
47
  label?: string;
48
- options: Option[];
48
+ options: Option$1[];
49
49
  error?: string;
50
50
  };
51
51
  declare const SelectInput: React$1.FC<SelectInputProps>;
@@ -875,6 +875,35 @@ interface BadgeProps {
875
875
  }
876
876
  declare const Badge: ({ children, variant, className }: BadgeProps) => react_jsx_runtime.JSX.Element;
877
877
 
878
+ type Status = 'draft' | 'submitted' | 'approved' | 'rejected' | 'in_sourcing' | 'completed' | 'cancelled';
879
+ interface StatusBadgeProps {
880
+ status: Status;
881
+ className?: string;
882
+ }
883
+ declare const StatusBadge: ({ status, className }: StatusBadgeProps) => react_jsx_runtime.JSX.Element;
884
+
885
+ interface SearchableSelectOption {
886
+ value: string | number;
887
+ label: string;
888
+ object?: any;
889
+ content?: React$1.ReactNode;
890
+ image?: string;
891
+ }
892
+ interface SearchableSelectProps {
893
+ options: SearchableSelectOption[];
894
+ value?: string | number;
895
+ placeholder?: string;
896
+ searchPlaceholder?: string;
897
+ onSelect: (option: SearchableSelectOption) => void;
898
+ onRemove?: () => void;
899
+ disabled?: boolean;
900
+ allowClear?: boolean;
901
+ filterFunction?: (option: SearchableSelectOption, searchTerm: string) => boolean;
902
+ addElement?: () => void;
903
+ refresh?: () => void;
904
+ }
905
+ declare const SearchableSelect: React$1.FC<SearchableSelectProps>;
906
+
878
907
  type ImportField = {
879
908
  value: string;
880
909
  label: string;
@@ -888,10 +917,8 @@ type FDrawerColumn = {
888
917
  label: string;
889
918
  type: 'text' | 'number' | 'date' | 'boolean' | 'custom';
890
919
  filterable?: boolean;
891
- filter_options?: {
892
- value: string;
893
- label: string;
894
- }[];
920
+ filter_options?: SearchableSelectOption[];
921
+ filter_endpoint?: string;
895
922
  sortable?: boolean;
896
923
  search_name: string;
897
924
  formule?: (item: any) => any | null;
@@ -1018,28 +1045,6 @@ declare const usePermissions: () => {
1018
1045
  permissions: string[];
1019
1046
  };
1020
1047
 
1021
- interface SearchableSelectOption {
1022
- value: string | number;
1023
- label: string;
1024
- object?: any;
1025
- content?: React$1.ReactNode;
1026
- image?: string;
1027
- }
1028
- interface SearchableSelectProps {
1029
- options: SearchableSelectOption[];
1030
- value?: string | number;
1031
- placeholder?: string;
1032
- searchPlaceholder?: string;
1033
- onSelect: (option: SearchableSelectOption) => void;
1034
- onRemove?: () => void;
1035
- disabled?: boolean;
1036
- allowClear?: boolean;
1037
- filterFunction?: (option: SearchableSelectOption, searchTerm: string) => boolean;
1038
- addElement?: () => void;
1039
- refresh?: () => void;
1040
- }
1041
- declare const SearchableSelect: React$1.FC<SearchableSelectProps>;
1042
-
1043
1048
  interface SelectProps$1 {
1044
1049
  value?: any;
1045
1050
  onSelect: (option: SearchableSelectOption) => void;
@@ -1062,6 +1067,8 @@ declare const SelectAccount: React.FC<SelectAccountProps>;
1062
1067
  declare const SelectCountry: React.FC<SelectProps$1>;
1063
1068
  declare const SelectLegalForm: React.FC<SelectProps$1>;
1064
1069
  declare const SelectClient: React.FC<SelectProps$1>;
1070
+ declare const SelectDas: React.FC<SelectProps$1>;
1071
+ declare const SelectLeadNeed: React.FC<SelectProps$1>;
1065
1072
 
1066
1073
  interface SelectProps {
1067
1074
  value?: any;
@@ -2204,6 +2211,11 @@ interface RecentActivity {
2204
2211
  description: string;
2205
2212
  timestamp: string | null;
2206
2213
  status: 'info' | 'success' | 'warning' | 'error';
2214
+ user?: {
2215
+ id: number;
2216
+ full_name: string;
2217
+ } | null;
2218
+ detail?: Record<string, any> | null;
2207
2219
  }
2208
2220
  interface PendingTask {
2209
2221
  id: string;
@@ -3457,6 +3469,123 @@ declare const PriceScheduleServices: {
3457
3469
  bulkCreate: (items: CreatePriceScheduleItemPayload[]) => Promise<PriceScheduleItem[]>;
3458
3470
  };
3459
3471
 
3472
+ type TypeStep = 'verification' | 'validation';
3473
+ interface ProcessWorkflowStep {
3474
+ id?: number;
3475
+ rank: number;
3476
+ process?: number;
3477
+ condition?: string;
3478
+ type_step: TypeStep;
3479
+ actor?: string;
3480
+ description?: string;
3481
+ user?: number;
3482
+ user_detail?: User$1;
3483
+ business_entity?: number;
3484
+ }
3485
+ interface ApprovalProcessModel extends TrackableModel {
3486
+ code?: string;
3487
+ name?: string;
3488
+ description?: string;
3489
+ preview?: string;
3490
+ concerned_model?: string;
3491
+ content_type?: number;
3492
+ status_waiting_approval?: string;
3493
+ status_after_approval?: string;
3494
+ status_after_refusal?: string;
3495
+ active?: boolean;
3496
+ }
3497
+ declare const TYPE_STEP_CHOICES: {
3498
+ value: string;
3499
+ label: string;
3500
+ }[];
3501
+
3502
+ declare const ProcessServices: {
3503
+ create: (data: Partial<ApprovalProcessModel>) => Promise<unknown>;
3504
+ get: (id: number) => Promise<unknown>;
3505
+ list: (params?: any) => Promise<unknown>;
3506
+ update: (id: number, data: Partial<ApprovalProcessModel>) => Promise<unknown>;
3507
+ delete: (id: number) => Promise<unknown>;
3508
+ };
3509
+ declare const WorkflowStepServices: {
3510
+ create: (data: Partial<ProcessWorkflowStep>) => Promise<unknown>;
3511
+ get: (id: number) => Promise<unknown>;
3512
+ list: (params?: any) => Promise<unknown>;
3513
+ update: (id: number, data: Partial<ProcessWorkflowStep>) => Promise<unknown>;
3514
+ delete: (id: number) => Promise<unknown>;
3515
+ };
3516
+
3517
+ /**
3518
+ * Survey module types
3519
+ */
3520
+ type QuestionType = 'TEXT' | 'PARAGRAPH' | 'SINGLE' | 'MULTIPLE' | 'DROPDOWN' | 'DATE' | 'FILE' | 'SCALE';
3521
+ type FormType = 'LEAD_QUALIFICATION' | 'LEASE_DUE_DILIGENCE' | 'LEASE_CLOSING' | 'OTHER';
3522
+ interface Option {
3523
+ id?: number;
3524
+ question?: number;
3525
+ text: string;
3526
+ }
3527
+ interface Question {
3528
+ id?: number;
3529
+ form?: number;
3530
+ text: string;
3531
+ type: QuestionType;
3532
+ required: boolean;
3533
+ order: number;
3534
+ options?: Option[];
3535
+ }
3536
+ interface Form extends TrackableModel, BusinessEntityAbstract {
3537
+ title: string;
3538
+ type: FormType;
3539
+ description?: string;
3540
+ owner?: number;
3541
+ is_published?: boolean;
3542
+ questions?: Question[];
3543
+ }
3544
+ interface Answer {
3545
+ id?: number;
3546
+ response?: number;
3547
+ question?: number;
3548
+ value?: string;
3549
+ }
3550
+ interface SurveyResponse {
3551
+ id?: number;
3552
+ form?: number;
3553
+ submitted_at?: string;
3554
+ content_type?: number;
3555
+ object_id?: number;
3556
+ answers?: Answer[];
3557
+ }
3558
+ declare const QUESTION_TYPE_CHOICES: {
3559
+ value: string;
3560
+ label: string;
3561
+ }[];
3562
+ declare const FORM_TYPE_CHOICES: {
3563
+ value: string;
3564
+ label: string;
3565
+ }[];
3566
+
3567
+ declare const FormServices: {
3568
+ create: (data: Partial<Form>) => Promise<unknown>;
3569
+ get: (id: number) => Promise<unknown>;
3570
+ list: (params?: any) => Promise<unknown>;
3571
+ update: (id: number, data: Partial<Form>) => Promise<unknown>;
3572
+ delete: (id: number) => Promise<unknown>;
3573
+ };
3574
+ declare const QuestionServices: {
3575
+ create: (data: Partial<Question>) => Promise<unknown>;
3576
+ get: (id: number) => Promise<unknown>;
3577
+ list: (params?: any) => Promise<unknown>;
3578
+ update: (id: number, data: Partial<Question>) => Promise<unknown>;
3579
+ delete: (id: number) => Promise<unknown>;
3580
+ };
3581
+ declare const OptionServices: {
3582
+ create: (data: Partial<Option>) => Promise<unknown>;
3583
+ get: (id: number) => Promise<unknown>;
3584
+ list: (params?: any) => Promise<unknown>;
3585
+ update: (id: number, data: Partial<Option>) => Promise<unknown>;
3586
+ delete: (id: number) => Promise<unknown>;
3587
+ };
3588
+
3460
3589
  type TEditorConfiguration = TReaderDocument;
3461
3590
  interface TemplateVariable {
3462
3591
  key: string;
@@ -3492,4 +3621,4 @@ declare function VariablePanel({ categories }: VariablePanelProps): react_jsx_ru
3492
3621
 
3493
3622
  declare const DEFAULT_VARIABLE_CATEGORIES: VariableCategory[];
3494
3623
 
3495
- export { ACCOUNT_TYPE_LABELS, API_URL, type Account, type AccountListResponse, AccountServices, type AccountType, AccountingWorkspace, AssetsDashboard as ActifsPage, AddSLAEvaluationModal, AddSLAIndicatorModal, type AddSupplierPricePayload, Alert, AlertProvider, AlertsManagementModal, type ApiResponse, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AttachmentUploader, type AttachmentUploaderProps, AuthServices, BALANCE_TYPE_LABELS, type BackendFile, type BackendFolder, Badge, type BalanceType, Breadcrumb, BudgetPage, type BulkEvaluationItem, BulkSLAEvaluationModal, CHOICES, CONTRACT_NOTE_TYPE_OPTIONS, CONTRACT_STATUS_OPTIONS, CONTRACT_TYPE_OPTIONS, CURRENCY_OPTIONS, CardBody, CardHeader, type CatalogueProduct, type CatalogueProductListItem, type CatalogueProductListResponse, CatalogueProductSelector, CatalogueProductServices, type CatalogueSupplierPrice, type CatalogueSupplierPriceListResponse, CatalogueSupplierPriceServices, TeamChat as ChatEquipePage, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, ContextMenu, type ContextMenuAction, type ContextMenuPosition, type Contract$1 as Contract, ContractForm, type ContractListResponse, ContractModal, type ContractNote, type ContractNoteType, ContractReportsModal, ContractServices, type ContractStatus, type ContractType, ContractsPage, CountrySelector, type CreateBulkEvaluationPayload, type CreateCatalogueProductPayload, type CreateContractNotePayload, type CreateContractPayload, type CreatePriceScheduleItemPayload, type CreateSLAEvaluationPayload, type CreateSLAIndicatorPayload, CrmWorkspace, DEFAULT_VARIABLE_CATEGORIES, DURATION_UNIT_OPTIONS, DataTable, DateInput, DocumentFooter, DocumentHeader, type DocumentType, type DurationUnit, EmailTemplateEditor, type EmailTemplateEditorProps, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, type FMServiceType, type FMSite, FM_SERVICE_LABELS, FM_SLA_TEMPLATES, FROM_MODULE_CHOICES, FacilityWorkspace, FetchApi, FileCard, FileGrid, FileInput, type FileItem, FileList, FileManager, type FileManagerContextValue, type FileManagerProps, FileManagerProvider, type FileManagerTexts, FolderTree, ForeignCurrencySelector, FormClient, FormPurchaseRequest, FormVendor, type FromModule, HRConnectPage, type HomologationConfig, HomologationConfigServices, type HomologationRejectionPayload, type HomologationRequestPayload, type HomologationStatus, HtmlExportPanel, INCOTERM_OPTIONS, type Incoterm, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, MEASUREMENT_FREQUENCY_OPTIONS, type MeasurementFrequency, MeetingHubPage, type MenuItem, MinimalVendorForm, Modal, ModernCard, type ModuleConfig, type ModuleType, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, type PendingTask, TeamCalendar as PlanningPage, type PriceScheduleItem, type PriceScheduleItemListResponse, PriceScheduleServices, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, type ProcurementWorkspaceStats, type ProductDocument, ProductDocumentServices, type ProductNote, ProductNoteServices, type ProductSpecification, type ProductStatus, type ProductType, type PurchaseRequest, type PurchaseRequestItem, PurchaseRequestServices, type PurchaseRequestStatus, PurchaseRequestsPage, PurchaseWorkspace, RISK_LEVEL_OPTIONS, type RecentActivity, RewiseBasicCard, RewiseCard, RewiseLayout, type RiskLevel, RootFileManager, type SLACategory, type SLADashboard, type SLAEvaluation, SLAEvaluationForm, type SLAEvaluationListResponse, SLAEvaluationServices, type SLAEvaluationSession, type SLAEvaluationSessionListResponse, SLAEvaluationSessionServices, type SLAIndicator, SLAIndicatorForm, type SLAIndicatorListResponse, SLAIndicatorServices, SLAManagementModal, type SLAStatus, type SLATemplate, SLA_CATEGORY_OPTIONS, SYSCOHADA_CLASSES, SearchableSelect, type SearchableSelectOption, SecondaryButton, SelectAccount, SelectClient, SelectCostCenter, SelectCountry, SelectDepartment, SelectInput, SelectLegalForm, SelectUnit, SelectUser, SelectVendor, type SelectedProductLine, SessionProvider, SignatureSection, StatCard, TEMPLATE_FNE_CHOICES, type TEditorConfiguration, type Tab, Tabs, type TabsProps, TaskPilot, TaxSelector, type TemplateFNE, TemplateFNESelector, TemplatePreview, type TemplateVariable, TextInput, type Theme, type ThemeColors, type ThemeContextValue, ThemeProvider, type ThemeType, ToastContainer, ToastProvider, Toolbar, TotalsSection, type Unit, UnitServices, type UpdateCatalogueProductPayload, type UpdateContractPayload, type UrgencyLevel, type UseFileManagerApiReturn, type User$1 as User, UserServices, type VariableCategory, VariablePanel, type Vendor, type VendorListResponse, VendorServices, ViewContractContent, type ViewMode, WorkSpace, WorkSpaceRoutes, WorkspaceServices, defaultTheme, exportToHtml, fileManagerApi, findFolderById, formatCurrency, formatDate, formatDateFR, formatDateTime, formatFileSize, getAllFolders, getAllSLATemplates, getDefaultSLATemplates, getFileExtension, getFileIcon, getFileIconColor, getMimeTypeFromExtension, getRecommendedPenaltyCap, getSLATemplatesForServices, getThemeCSSVariables, isImageFile, numberToWords, themes, useAlert, useFileManager, useFileManagerApi, usePermissions, useRootFileManagerApi, useSession, useTheme, useToast };
3624
+ export { ACCOUNT_TYPE_LABELS, API_URL, type Account, type AccountListResponse, AccountServices, type AccountType, AccountingWorkspace, AssetsDashboard as ActifsPage, AddSLAEvaluationModal, AddSLAIndicatorModal, type AddSupplierPricePayload, Alert, AlertProvider, AlertsManagementModal, type Answer, type ApiResponse, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, type ApprovalProcessModel, ApprovalServices, ApprovalWorkflow, AttachmentUploader, type AttachmentUploaderProps, AuthServices, BALANCE_TYPE_LABELS, type BackendFile, type BackendFolder, Badge, type BalanceType, Breadcrumb, BudgetPage, type BulkEvaluationItem, BulkSLAEvaluationModal, CHOICES, CONTRACT_NOTE_TYPE_OPTIONS, CONTRACT_STATUS_OPTIONS, CONTRACT_TYPE_OPTIONS, CURRENCY_OPTIONS, CardBody, CardHeader, type CatalogueProduct, type CatalogueProductListItem, type CatalogueProductListResponse, CatalogueProductSelector, CatalogueProductServices, type CatalogueSupplierPrice, type CatalogueSupplierPriceListResponse, CatalogueSupplierPriceServices, TeamChat as ChatEquipePage, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, ContextMenu, type ContextMenuAction, type ContextMenuPosition, type Contract$1 as Contract, ContractForm, type ContractListResponse, ContractModal, type ContractNote, type ContractNoteType, ContractReportsModal, ContractServices, type ContractStatus, type ContractType, ContractsPage, CountrySelector, type CreateBulkEvaluationPayload, type CreateCatalogueProductPayload, type CreateContractNotePayload, type CreateContractPayload, type CreatePriceScheduleItemPayload, type CreateSLAEvaluationPayload, type CreateSLAIndicatorPayload, CrmWorkspace, DEFAULT_VARIABLE_CATEGORIES, DURATION_UNIT_OPTIONS, DataTable, DateInput, DocumentFooter, DocumentHeader, type DocumentType, type DurationUnit, EmailTemplateEditor, type EmailTemplateEditorProps, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, type FMServiceType, type FMSite, FM_SERVICE_LABELS, FM_SLA_TEMPLATES, FORM_TYPE_CHOICES, FROM_MODULE_CHOICES, FacilityWorkspace, FetchApi, FileCard, FileGrid, FileInput, type FileItem, FileList, FileManager, type FileManagerContextValue, type FileManagerProps, FileManagerProvider, type FileManagerTexts, FolderTree, ForeignCurrencySelector, FormClient, FormPurchaseRequest, FormServices, type FormType, FormVendor, type FromModule, HRConnectPage, type HomologationConfig, HomologationConfigServices, type HomologationRejectionPayload, type HomologationRequestPayload, type HomologationStatus, HtmlExportPanel, INCOTERM_OPTIONS, type Incoterm, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, MEASUREMENT_FREQUENCY_OPTIONS, type MeasurementFrequency, MeetingHubPage, type MenuItem, MinimalVendorForm, Modal, ModernCard, type ModuleConfig, type ModuleType, NumberInput, OptionServices, PRINT_GREEN, Pages, PaymentMethodSelector, type PendingTask, TeamCalendar as PlanningPage, type PriceScheduleItem, type PriceScheduleItemListResponse, PriceScheduleServices, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, ProcessServices, type ProcessWorkflowStep, type ProcurementWorkspaceStats, type ProductDocument, ProductDocumentServices, type ProductNote, ProductNoteServices, type ProductSpecification, type ProductStatus, type ProductType, type PurchaseRequest, type PurchaseRequestItem, PurchaseRequestServices, type PurchaseRequestStatus, PurchaseRequestsPage, PurchaseWorkspace, QUESTION_TYPE_CHOICES, type Question, QuestionServices, type QuestionType, RISK_LEVEL_OPTIONS, type RecentActivity, RewiseBasicCard, RewiseCard, RewiseLayout, type RiskLevel, RootFileManager, type SLACategory, type SLADashboard, type SLAEvaluation, SLAEvaluationForm, type SLAEvaluationListResponse, SLAEvaluationServices, type SLAEvaluationSession, type SLAEvaluationSessionListResponse, SLAEvaluationSessionServices, type SLAIndicator, SLAIndicatorForm, type SLAIndicatorListResponse, SLAIndicatorServices, SLAManagementModal, type SLAStatus, type SLATemplate, SLA_CATEGORY_OPTIONS, SYSCOHADA_CLASSES, SearchableSelect, type SearchableSelectOption, SecondaryButton, SelectAccount, SelectClient, SelectCostCenter, SelectCountry, SelectDas, SelectDepartment, SelectInput, SelectLeadNeed, SelectLegalForm, SelectUnit, SelectUser, SelectVendor, type SelectedProductLine, SessionProvider, SignatureSection, StatCard, type Status, StatusBadge, type StatusBadgeProps, type Form as SurveyForm, type Option as SurveyOption, type SurveyResponse, TEMPLATE_FNE_CHOICES, type TEditorConfiguration, TYPE_STEP_CHOICES, type Tab, Tabs, type TabsProps, TaskPilot, TaxSelector, type TemplateFNE, TemplateFNESelector, TemplatePreview, type TemplateVariable, TextInput, type Theme, type ThemeColors, type ThemeContextValue, ThemeProvider, type ThemeType, ToastContainer, ToastProvider, Toolbar, TotalsSection, type TypeStep, type Unit, UnitServices, type UpdateCatalogueProductPayload, type UpdateContractPayload, type UrgencyLevel, type UseFileManagerApiReturn, type User$1 as User, UserServices, type VariableCategory, VariablePanel, type Vendor, type VendorListResponse, VendorServices, ViewContractContent, type ViewMode, WorkSpace, WorkSpaceRoutes, WorkflowStepServices, WorkspaceServices, defaultTheme, exportToHtml, fileManagerApi, findFolderById, formatCurrency, formatDate, formatDateFR, formatDateTime, formatFileSize, getAllFolders, getAllSLATemplates, getDefaultSLATemplates, getFileExtension, getFileIcon, getFileIconColor, getMimeTypeFromExtension, getRecommendedPenaltyCap, getSLATemplatesForServices, getThemeCSSVariables, isImageFile, numberToWords, themes, useAlert, useFileManager, useFileManagerApi, usePermissions, useRootFileManagerApi, useSession, useTheme, useToast };
package/dist/index.d.ts CHANGED
@@ -39,13 +39,13 @@ type TextInputProps = InputProps & {
39
39
  declare const TextInput: React$1.FC<TextInputProps>;
40
40
  declare const NumberInput: React$1.FC<TextInputProps>;
41
41
  declare const DateInput: React$1.FC<TextInputProps>;
42
- type Option = {
42
+ type Option$1 = {
43
43
  label: string;
44
44
  value: string | number;
45
45
  };
46
46
  type SelectInputProps = React$1.SelectHTMLAttributes<HTMLSelectElement> & {
47
47
  label?: string;
48
- options: Option[];
48
+ options: Option$1[];
49
49
  error?: string;
50
50
  };
51
51
  declare const SelectInput: React$1.FC<SelectInputProps>;
@@ -875,6 +875,35 @@ interface BadgeProps {
875
875
  }
876
876
  declare const Badge: ({ children, variant, className }: BadgeProps) => react_jsx_runtime.JSX.Element;
877
877
 
878
+ type Status = 'draft' | 'submitted' | 'approved' | 'rejected' | 'in_sourcing' | 'completed' | 'cancelled';
879
+ interface StatusBadgeProps {
880
+ status: Status;
881
+ className?: string;
882
+ }
883
+ declare const StatusBadge: ({ status, className }: StatusBadgeProps) => react_jsx_runtime.JSX.Element;
884
+
885
+ interface SearchableSelectOption {
886
+ value: string | number;
887
+ label: string;
888
+ object?: any;
889
+ content?: React$1.ReactNode;
890
+ image?: string;
891
+ }
892
+ interface SearchableSelectProps {
893
+ options: SearchableSelectOption[];
894
+ value?: string | number;
895
+ placeholder?: string;
896
+ searchPlaceholder?: string;
897
+ onSelect: (option: SearchableSelectOption) => void;
898
+ onRemove?: () => void;
899
+ disabled?: boolean;
900
+ allowClear?: boolean;
901
+ filterFunction?: (option: SearchableSelectOption, searchTerm: string) => boolean;
902
+ addElement?: () => void;
903
+ refresh?: () => void;
904
+ }
905
+ declare const SearchableSelect: React$1.FC<SearchableSelectProps>;
906
+
878
907
  type ImportField = {
879
908
  value: string;
880
909
  label: string;
@@ -888,10 +917,8 @@ type FDrawerColumn = {
888
917
  label: string;
889
918
  type: 'text' | 'number' | 'date' | 'boolean' | 'custom';
890
919
  filterable?: boolean;
891
- filter_options?: {
892
- value: string;
893
- label: string;
894
- }[];
920
+ filter_options?: SearchableSelectOption[];
921
+ filter_endpoint?: string;
895
922
  sortable?: boolean;
896
923
  search_name: string;
897
924
  formule?: (item: any) => any | null;
@@ -1018,28 +1045,6 @@ declare const usePermissions: () => {
1018
1045
  permissions: string[];
1019
1046
  };
1020
1047
 
1021
- interface SearchableSelectOption {
1022
- value: string | number;
1023
- label: string;
1024
- object?: any;
1025
- content?: React$1.ReactNode;
1026
- image?: string;
1027
- }
1028
- interface SearchableSelectProps {
1029
- options: SearchableSelectOption[];
1030
- value?: string | number;
1031
- placeholder?: string;
1032
- searchPlaceholder?: string;
1033
- onSelect: (option: SearchableSelectOption) => void;
1034
- onRemove?: () => void;
1035
- disabled?: boolean;
1036
- allowClear?: boolean;
1037
- filterFunction?: (option: SearchableSelectOption, searchTerm: string) => boolean;
1038
- addElement?: () => void;
1039
- refresh?: () => void;
1040
- }
1041
- declare const SearchableSelect: React$1.FC<SearchableSelectProps>;
1042
-
1043
1048
  interface SelectProps$1 {
1044
1049
  value?: any;
1045
1050
  onSelect: (option: SearchableSelectOption) => void;
@@ -1062,6 +1067,8 @@ declare const SelectAccount: React.FC<SelectAccountProps>;
1062
1067
  declare const SelectCountry: React.FC<SelectProps$1>;
1063
1068
  declare const SelectLegalForm: React.FC<SelectProps$1>;
1064
1069
  declare const SelectClient: React.FC<SelectProps$1>;
1070
+ declare const SelectDas: React.FC<SelectProps$1>;
1071
+ declare const SelectLeadNeed: React.FC<SelectProps$1>;
1065
1072
 
1066
1073
  interface SelectProps {
1067
1074
  value?: any;
@@ -2204,6 +2211,11 @@ interface RecentActivity {
2204
2211
  description: string;
2205
2212
  timestamp: string | null;
2206
2213
  status: 'info' | 'success' | 'warning' | 'error';
2214
+ user?: {
2215
+ id: number;
2216
+ full_name: string;
2217
+ } | null;
2218
+ detail?: Record<string, any> | null;
2207
2219
  }
2208
2220
  interface PendingTask {
2209
2221
  id: string;
@@ -3457,6 +3469,123 @@ declare const PriceScheduleServices: {
3457
3469
  bulkCreate: (items: CreatePriceScheduleItemPayload[]) => Promise<PriceScheduleItem[]>;
3458
3470
  };
3459
3471
 
3472
+ type TypeStep = 'verification' | 'validation';
3473
+ interface ProcessWorkflowStep {
3474
+ id?: number;
3475
+ rank: number;
3476
+ process?: number;
3477
+ condition?: string;
3478
+ type_step: TypeStep;
3479
+ actor?: string;
3480
+ description?: string;
3481
+ user?: number;
3482
+ user_detail?: User$1;
3483
+ business_entity?: number;
3484
+ }
3485
+ interface ApprovalProcessModel extends TrackableModel {
3486
+ code?: string;
3487
+ name?: string;
3488
+ description?: string;
3489
+ preview?: string;
3490
+ concerned_model?: string;
3491
+ content_type?: number;
3492
+ status_waiting_approval?: string;
3493
+ status_after_approval?: string;
3494
+ status_after_refusal?: string;
3495
+ active?: boolean;
3496
+ }
3497
+ declare const TYPE_STEP_CHOICES: {
3498
+ value: string;
3499
+ label: string;
3500
+ }[];
3501
+
3502
+ declare const ProcessServices: {
3503
+ create: (data: Partial<ApprovalProcessModel>) => Promise<unknown>;
3504
+ get: (id: number) => Promise<unknown>;
3505
+ list: (params?: any) => Promise<unknown>;
3506
+ update: (id: number, data: Partial<ApprovalProcessModel>) => Promise<unknown>;
3507
+ delete: (id: number) => Promise<unknown>;
3508
+ };
3509
+ declare const WorkflowStepServices: {
3510
+ create: (data: Partial<ProcessWorkflowStep>) => Promise<unknown>;
3511
+ get: (id: number) => Promise<unknown>;
3512
+ list: (params?: any) => Promise<unknown>;
3513
+ update: (id: number, data: Partial<ProcessWorkflowStep>) => Promise<unknown>;
3514
+ delete: (id: number) => Promise<unknown>;
3515
+ };
3516
+
3517
+ /**
3518
+ * Survey module types
3519
+ */
3520
+ type QuestionType = 'TEXT' | 'PARAGRAPH' | 'SINGLE' | 'MULTIPLE' | 'DROPDOWN' | 'DATE' | 'FILE' | 'SCALE';
3521
+ type FormType = 'LEAD_QUALIFICATION' | 'LEASE_DUE_DILIGENCE' | 'LEASE_CLOSING' | 'OTHER';
3522
+ interface Option {
3523
+ id?: number;
3524
+ question?: number;
3525
+ text: string;
3526
+ }
3527
+ interface Question {
3528
+ id?: number;
3529
+ form?: number;
3530
+ text: string;
3531
+ type: QuestionType;
3532
+ required: boolean;
3533
+ order: number;
3534
+ options?: Option[];
3535
+ }
3536
+ interface Form extends TrackableModel, BusinessEntityAbstract {
3537
+ title: string;
3538
+ type: FormType;
3539
+ description?: string;
3540
+ owner?: number;
3541
+ is_published?: boolean;
3542
+ questions?: Question[];
3543
+ }
3544
+ interface Answer {
3545
+ id?: number;
3546
+ response?: number;
3547
+ question?: number;
3548
+ value?: string;
3549
+ }
3550
+ interface SurveyResponse {
3551
+ id?: number;
3552
+ form?: number;
3553
+ submitted_at?: string;
3554
+ content_type?: number;
3555
+ object_id?: number;
3556
+ answers?: Answer[];
3557
+ }
3558
+ declare const QUESTION_TYPE_CHOICES: {
3559
+ value: string;
3560
+ label: string;
3561
+ }[];
3562
+ declare const FORM_TYPE_CHOICES: {
3563
+ value: string;
3564
+ label: string;
3565
+ }[];
3566
+
3567
+ declare const FormServices: {
3568
+ create: (data: Partial<Form>) => Promise<unknown>;
3569
+ get: (id: number) => Promise<unknown>;
3570
+ list: (params?: any) => Promise<unknown>;
3571
+ update: (id: number, data: Partial<Form>) => Promise<unknown>;
3572
+ delete: (id: number) => Promise<unknown>;
3573
+ };
3574
+ declare const QuestionServices: {
3575
+ create: (data: Partial<Question>) => Promise<unknown>;
3576
+ get: (id: number) => Promise<unknown>;
3577
+ list: (params?: any) => Promise<unknown>;
3578
+ update: (id: number, data: Partial<Question>) => Promise<unknown>;
3579
+ delete: (id: number) => Promise<unknown>;
3580
+ };
3581
+ declare const OptionServices: {
3582
+ create: (data: Partial<Option>) => Promise<unknown>;
3583
+ get: (id: number) => Promise<unknown>;
3584
+ list: (params?: any) => Promise<unknown>;
3585
+ update: (id: number, data: Partial<Option>) => Promise<unknown>;
3586
+ delete: (id: number) => Promise<unknown>;
3587
+ };
3588
+
3460
3589
  type TEditorConfiguration = TReaderDocument;
3461
3590
  interface TemplateVariable {
3462
3591
  key: string;
@@ -3492,4 +3621,4 @@ declare function VariablePanel({ categories }: VariablePanelProps): react_jsx_ru
3492
3621
 
3493
3622
  declare const DEFAULT_VARIABLE_CATEGORIES: VariableCategory[];
3494
3623
 
3495
- export { ACCOUNT_TYPE_LABELS, API_URL, type Account, type AccountListResponse, AccountServices, type AccountType, AccountingWorkspace, AssetsDashboard as ActifsPage, AddSLAEvaluationModal, AddSLAIndicatorModal, type AddSupplierPricePayload, Alert, AlertProvider, AlertsManagementModal, type ApiResponse, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AttachmentUploader, type AttachmentUploaderProps, AuthServices, BALANCE_TYPE_LABELS, type BackendFile, type BackendFolder, Badge, type BalanceType, Breadcrumb, BudgetPage, type BulkEvaluationItem, BulkSLAEvaluationModal, CHOICES, CONTRACT_NOTE_TYPE_OPTIONS, CONTRACT_STATUS_OPTIONS, CONTRACT_TYPE_OPTIONS, CURRENCY_OPTIONS, CardBody, CardHeader, type CatalogueProduct, type CatalogueProductListItem, type CatalogueProductListResponse, CatalogueProductSelector, CatalogueProductServices, type CatalogueSupplierPrice, type CatalogueSupplierPriceListResponse, CatalogueSupplierPriceServices, TeamChat as ChatEquipePage, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, ContextMenu, type ContextMenuAction, type ContextMenuPosition, type Contract$1 as Contract, ContractForm, type ContractListResponse, ContractModal, type ContractNote, type ContractNoteType, ContractReportsModal, ContractServices, type ContractStatus, type ContractType, ContractsPage, CountrySelector, type CreateBulkEvaluationPayload, type CreateCatalogueProductPayload, type CreateContractNotePayload, type CreateContractPayload, type CreatePriceScheduleItemPayload, type CreateSLAEvaluationPayload, type CreateSLAIndicatorPayload, CrmWorkspace, DEFAULT_VARIABLE_CATEGORIES, DURATION_UNIT_OPTIONS, DataTable, DateInput, DocumentFooter, DocumentHeader, type DocumentType, type DurationUnit, EmailTemplateEditor, type EmailTemplateEditorProps, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, type FMServiceType, type FMSite, FM_SERVICE_LABELS, FM_SLA_TEMPLATES, FROM_MODULE_CHOICES, FacilityWorkspace, FetchApi, FileCard, FileGrid, FileInput, type FileItem, FileList, FileManager, type FileManagerContextValue, type FileManagerProps, FileManagerProvider, type FileManagerTexts, FolderTree, ForeignCurrencySelector, FormClient, FormPurchaseRequest, FormVendor, type FromModule, HRConnectPage, type HomologationConfig, HomologationConfigServices, type HomologationRejectionPayload, type HomologationRequestPayload, type HomologationStatus, HtmlExportPanel, INCOTERM_OPTIONS, type Incoterm, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, MEASUREMENT_FREQUENCY_OPTIONS, type MeasurementFrequency, MeetingHubPage, type MenuItem, MinimalVendorForm, Modal, ModernCard, type ModuleConfig, type ModuleType, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, type PendingTask, TeamCalendar as PlanningPage, type PriceScheduleItem, type PriceScheduleItemListResponse, PriceScheduleServices, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, type ProcurementWorkspaceStats, type ProductDocument, ProductDocumentServices, type ProductNote, ProductNoteServices, type ProductSpecification, type ProductStatus, type ProductType, type PurchaseRequest, type PurchaseRequestItem, PurchaseRequestServices, type PurchaseRequestStatus, PurchaseRequestsPage, PurchaseWorkspace, RISK_LEVEL_OPTIONS, type RecentActivity, RewiseBasicCard, RewiseCard, RewiseLayout, type RiskLevel, RootFileManager, type SLACategory, type SLADashboard, type SLAEvaluation, SLAEvaluationForm, type SLAEvaluationListResponse, SLAEvaluationServices, type SLAEvaluationSession, type SLAEvaluationSessionListResponse, SLAEvaluationSessionServices, type SLAIndicator, SLAIndicatorForm, type SLAIndicatorListResponse, SLAIndicatorServices, SLAManagementModal, type SLAStatus, type SLATemplate, SLA_CATEGORY_OPTIONS, SYSCOHADA_CLASSES, SearchableSelect, type SearchableSelectOption, SecondaryButton, SelectAccount, SelectClient, SelectCostCenter, SelectCountry, SelectDepartment, SelectInput, SelectLegalForm, SelectUnit, SelectUser, SelectVendor, type SelectedProductLine, SessionProvider, SignatureSection, StatCard, TEMPLATE_FNE_CHOICES, type TEditorConfiguration, type Tab, Tabs, type TabsProps, TaskPilot, TaxSelector, type TemplateFNE, TemplateFNESelector, TemplatePreview, type TemplateVariable, TextInput, type Theme, type ThemeColors, type ThemeContextValue, ThemeProvider, type ThemeType, ToastContainer, ToastProvider, Toolbar, TotalsSection, type Unit, UnitServices, type UpdateCatalogueProductPayload, type UpdateContractPayload, type UrgencyLevel, type UseFileManagerApiReturn, type User$1 as User, UserServices, type VariableCategory, VariablePanel, type Vendor, type VendorListResponse, VendorServices, ViewContractContent, type ViewMode, WorkSpace, WorkSpaceRoutes, WorkspaceServices, defaultTheme, exportToHtml, fileManagerApi, findFolderById, formatCurrency, formatDate, formatDateFR, formatDateTime, formatFileSize, getAllFolders, getAllSLATemplates, getDefaultSLATemplates, getFileExtension, getFileIcon, getFileIconColor, getMimeTypeFromExtension, getRecommendedPenaltyCap, getSLATemplatesForServices, getThemeCSSVariables, isImageFile, numberToWords, themes, useAlert, useFileManager, useFileManagerApi, usePermissions, useRootFileManagerApi, useSession, useTheme, useToast };
3624
+ export { ACCOUNT_TYPE_LABELS, API_URL, type Account, type AccountListResponse, AccountServices, type AccountType, AccountingWorkspace, AssetsDashboard as ActifsPage, AddSLAEvaluationModal, AddSLAIndicatorModal, type AddSupplierPricePayload, Alert, AlertProvider, AlertsManagementModal, type Answer, type ApiResponse, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, type ApprovalProcessModel, ApprovalServices, ApprovalWorkflow, AttachmentUploader, type AttachmentUploaderProps, AuthServices, BALANCE_TYPE_LABELS, type BackendFile, type BackendFolder, Badge, type BalanceType, Breadcrumb, BudgetPage, type BulkEvaluationItem, BulkSLAEvaluationModal, CHOICES, CONTRACT_NOTE_TYPE_OPTIONS, CONTRACT_STATUS_OPTIONS, CONTRACT_TYPE_OPTIONS, CURRENCY_OPTIONS, CardBody, CardHeader, type CatalogueProduct, type CatalogueProductListItem, type CatalogueProductListResponse, CatalogueProductSelector, CatalogueProductServices, type CatalogueSupplierPrice, type CatalogueSupplierPriceListResponse, CatalogueSupplierPriceServices, TeamChat as ChatEquipePage, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, ContextMenu, type ContextMenuAction, type ContextMenuPosition, type Contract$1 as Contract, ContractForm, type ContractListResponse, ContractModal, type ContractNote, type ContractNoteType, ContractReportsModal, ContractServices, type ContractStatus, type ContractType, ContractsPage, CountrySelector, type CreateBulkEvaluationPayload, type CreateCatalogueProductPayload, type CreateContractNotePayload, type CreateContractPayload, type CreatePriceScheduleItemPayload, type CreateSLAEvaluationPayload, type CreateSLAIndicatorPayload, CrmWorkspace, DEFAULT_VARIABLE_CATEGORIES, DURATION_UNIT_OPTIONS, DataTable, DateInput, DocumentFooter, DocumentHeader, type DocumentType, type DurationUnit, EmailTemplateEditor, type EmailTemplateEditorProps, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, type FMServiceType, type FMSite, FM_SERVICE_LABELS, FM_SLA_TEMPLATES, FORM_TYPE_CHOICES, FROM_MODULE_CHOICES, FacilityWorkspace, FetchApi, FileCard, FileGrid, FileInput, type FileItem, FileList, FileManager, type FileManagerContextValue, type FileManagerProps, FileManagerProvider, type FileManagerTexts, FolderTree, ForeignCurrencySelector, FormClient, FormPurchaseRequest, FormServices, type FormType, FormVendor, type FromModule, HRConnectPage, type HomologationConfig, HomologationConfigServices, type HomologationRejectionPayload, type HomologationRequestPayload, type HomologationStatus, HtmlExportPanel, INCOTERM_OPTIONS, type Incoterm, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, MEASUREMENT_FREQUENCY_OPTIONS, type MeasurementFrequency, MeetingHubPage, type MenuItem, MinimalVendorForm, Modal, ModernCard, type ModuleConfig, type ModuleType, NumberInput, OptionServices, PRINT_GREEN, Pages, PaymentMethodSelector, type PendingTask, TeamCalendar as PlanningPage, type PriceScheduleItem, type PriceScheduleItemListResponse, PriceScheduleServices, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, ProcessServices, type ProcessWorkflowStep, type ProcurementWorkspaceStats, type ProductDocument, ProductDocumentServices, type ProductNote, ProductNoteServices, type ProductSpecification, type ProductStatus, type ProductType, type PurchaseRequest, type PurchaseRequestItem, PurchaseRequestServices, type PurchaseRequestStatus, PurchaseRequestsPage, PurchaseWorkspace, QUESTION_TYPE_CHOICES, type Question, QuestionServices, type QuestionType, RISK_LEVEL_OPTIONS, type RecentActivity, RewiseBasicCard, RewiseCard, RewiseLayout, type RiskLevel, RootFileManager, type SLACategory, type SLADashboard, type SLAEvaluation, SLAEvaluationForm, type SLAEvaluationListResponse, SLAEvaluationServices, type SLAEvaluationSession, type SLAEvaluationSessionListResponse, SLAEvaluationSessionServices, type SLAIndicator, SLAIndicatorForm, type SLAIndicatorListResponse, SLAIndicatorServices, SLAManagementModal, type SLAStatus, type SLATemplate, SLA_CATEGORY_OPTIONS, SYSCOHADA_CLASSES, SearchableSelect, type SearchableSelectOption, SecondaryButton, SelectAccount, SelectClient, SelectCostCenter, SelectCountry, SelectDas, SelectDepartment, SelectInput, SelectLeadNeed, SelectLegalForm, SelectUnit, SelectUser, SelectVendor, type SelectedProductLine, SessionProvider, SignatureSection, StatCard, type Status, StatusBadge, type StatusBadgeProps, type Form as SurveyForm, type Option as SurveyOption, type SurveyResponse, TEMPLATE_FNE_CHOICES, type TEditorConfiguration, TYPE_STEP_CHOICES, type Tab, Tabs, type TabsProps, TaskPilot, TaxSelector, type TemplateFNE, TemplateFNESelector, TemplatePreview, type TemplateVariable, TextInput, type Theme, type ThemeColors, type ThemeContextValue, ThemeProvider, type ThemeType, ToastContainer, ToastProvider, Toolbar, TotalsSection, type TypeStep, type Unit, UnitServices, type UpdateCatalogueProductPayload, type UpdateContractPayload, type UrgencyLevel, type UseFileManagerApiReturn, type User$1 as User, UserServices, type VariableCategory, VariablePanel, type Vendor, type VendorListResponse, VendorServices, ViewContractContent, type ViewMode, WorkSpace, WorkSpaceRoutes, WorkflowStepServices, WorkspaceServices, defaultTheme, exportToHtml, fileManagerApi, findFolderById, formatCurrency, formatDate, formatDateFR, formatDateTime, formatFileSize, getAllFolders, getAllSLATemplates, getDefaultSLATemplates, getFileExtension, getFileIcon, getFileIconColor, getMimeTypeFromExtension, getRecommendedPenaltyCap, getSLATemplatesForServices, getThemeCSSVariables, isImageFile, numberToWords, themes, useAlert, useFileManager, useFileManagerApi, usePermissions, useRootFileManagerApi, useSession, useTheme, useToast };