ptechcore_ui 1.0.31 → 1.0.33
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.cjs +4640 -3584
- package/dist/index.d.cts +112 -3
- package/dist/index.d.ts +112 -3
- package/dist/index.js +4649 -3588
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -94,6 +94,9 @@ interface TrackableModel {
|
|
|
94
94
|
created_at?: string;
|
|
95
95
|
updated_at?: string;
|
|
96
96
|
}
|
|
97
|
+
interface BusinessEntityAbstract {
|
|
98
|
+
business_entity?: number;
|
|
99
|
+
}
|
|
97
100
|
|
|
98
101
|
interface Module$1 {
|
|
99
102
|
id: number;
|
|
@@ -214,7 +217,7 @@ interface User {
|
|
|
214
217
|
centers_access?: Entity[];
|
|
215
218
|
}
|
|
216
219
|
|
|
217
|
-
type FromModule = 'accounting' | 'crm' | 'procurement';
|
|
220
|
+
type FromModule$1 = 'accounting' | 'crm' | 'procurement';
|
|
218
221
|
interface Vendor {
|
|
219
222
|
id?: number;
|
|
220
223
|
legal_name: string;
|
|
@@ -249,7 +252,7 @@ interface Vendor {
|
|
|
249
252
|
bank_phone?: string | null;
|
|
250
253
|
iban?: string | null;
|
|
251
254
|
rib?: string | null;
|
|
252
|
-
from_module?: FromModule | null;
|
|
255
|
+
from_module?: FromModule$1 | null;
|
|
253
256
|
vendor_number: string;
|
|
254
257
|
}
|
|
255
258
|
|
|
@@ -606,6 +609,94 @@ declare const UnitServices: {
|
|
|
606
609
|
delete: (id: number) => Promise<unknown>;
|
|
607
610
|
};
|
|
608
611
|
|
|
612
|
+
interface VendorListResponse {
|
|
613
|
+
data: Vendor[];
|
|
614
|
+
paginate: {
|
|
615
|
+
total_pages: number;
|
|
616
|
+
current_page: number;
|
|
617
|
+
count: number;
|
|
618
|
+
next: string | null;
|
|
619
|
+
previous: string | null;
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
declare const VendorServices: {
|
|
623
|
+
createVendor: (data: Partial<Vendor>, token: string) => Promise<unknown>;
|
|
624
|
+
getVendor: (id: number, token: string) => Promise<unknown>;
|
|
625
|
+
getVendors: (token: string, params?: any) => Promise<unknown>;
|
|
626
|
+
listVendors: (params?: Record<string, any>) => Promise<VendorListResponse>;
|
|
627
|
+
updateVendor: (id: number, data: Partial<Vendor>, token: string) => Promise<unknown>;
|
|
628
|
+
deleteVendor: (id: number, token: string) => Promise<unknown>;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
type FromModule = 'accounting' | 'crm' | 'procurement';
|
|
632
|
+
type TemplateFNE = 'B2B' | 'B2F' | 'B2G' | 'B2C';
|
|
633
|
+
interface Client extends TrackableModel, BusinessEntityAbstract {
|
|
634
|
+
client_number?: string;
|
|
635
|
+
from_module?: FromModule;
|
|
636
|
+
legal_name?: string;
|
|
637
|
+
trading_name?: string | null;
|
|
638
|
+
phone?: string | null;
|
|
639
|
+
email?: string | null;
|
|
640
|
+
logo?: string | null;
|
|
641
|
+
year_founded?: string | null;
|
|
642
|
+
activity_sector?: string | null;
|
|
643
|
+
description?: string | null;
|
|
644
|
+
country?: string | null;
|
|
645
|
+
city?: string | null;
|
|
646
|
+
address?: string | null;
|
|
647
|
+
accounting_account_number?: string | null;
|
|
648
|
+
capital?: number | null;
|
|
649
|
+
annual_turnover?: number | null;
|
|
650
|
+
payment_delay?: number;
|
|
651
|
+
legal_form?: string | null;
|
|
652
|
+
tax_regime?: string | null;
|
|
653
|
+
tax_account?: string | null;
|
|
654
|
+
rccm?: string | null;
|
|
655
|
+
legal_representative_name?: string | null;
|
|
656
|
+
legal_representative_email?: string | null;
|
|
657
|
+
legal_representative_phone?: string | null;
|
|
658
|
+
legal_representative_address?: string | null;
|
|
659
|
+
legal_representative_position?: string | null;
|
|
660
|
+
legal_representative_id_card?: string | null;
|
|
661
|
+
bank_name?: string | null;
|
|
662
|
+
bank_address?: string | null;
|
|
663
|
+
bank_email?: string | null;
|
|
664
|
+
bank_phone?: string | null;
|
|
665
|
+
iban?: string | null;
|
|
666
|
+
rib?: string | null;
|
|
667
|
+
template_fne?: TemplateFNE;
|
|
668
|
+
project_description?: string | null;
|
|
669
|
+
business_provider?: string | null;
|
|
670
|
+
target_clients?: string | null;
|
|
671
|
+
}
|
|
672
|
+
declare const TEMPLATE_FNE_CHOICES: {
|
|
673
|
+
value: string;
|
|
674
|
+
label: string;
|
|
675
|
+
}[];
|
|
676
|
+
declare const FROM_MODULE_CHOICES: {
|
|
677
|
+
value: string;
|
|
678
|
+
label: string;
|
|
679
|
+
}[];
|
|
680
|
+
|
|
681
|
+
interface ClientListResponse {
|
|
682
|
+
data: Client[];
|
|
683
|
+
paginate: {
|
|
684
|
+
total_pages: number;
|
|
685
|
+
current_page: number;
|
|
686
|
+
count: number;
|
|
687
|
+
next: string | null;
|
|
688
|
+
previous: string | null;
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
declare const ClientServices: {
|
|
692
|
+
createClient: (data: Partial<Client>, token: string) => Promise<unknown>;
|
|
693
|
+
getClient: (id: number, token: string) => Promise<Client>;
|
|
694
|
+
getClients: (token: string, params?: any) => Promise<unknown>;
|
|
695
|
+
listClients: (params?: Record<string, any>) => Promise<ClientListResponse>;
|
|
696
|
+
updateClient: (id: number, data: Partial<Client>, token: string) => Promise<unknown>;
|
|
697
|
+
deleteClient: (id: number, token: string) => Promise<unknown>;
|
|
698
|
+
};
|
|
699
|
+
|
|
609
700
|
type ImportField = {
|
|
610
701
|
value: string;
|
|
611
702
|
label: string;
|
|
@@ -648,6 +739,24 @@ interface FDrawerProps {
|
|
|
648
739
|
}
|
|
649
740
|
declare const FDrawer: React$1.FC<FDrawerProps>;
|
|
650
741
|
|
|
742
|
+
interface FormVendorProps {
|
|
743
|
+
isOpen: boolean;
|
|
744
|
+
onClose: () => void;
|
|
745
|
+
object: Vendor | null;
|
|
746
|
+
refresh: () => void;
|
|
747
|
+
from?: FromModule$1;
|
|
748
|
+
}
|
|
749
|
+
declare const FormVendor: React$1.FC<FormVendorProps>;
|
|
750
|
+
declare const MinimalVendorForm: React$1.FC<FormVendorProps>;
|
|
751
|
+
|
|
752
|
+
interface FormClientProps {
|
|
753
|
+
isOpen: boolean;
|
|
754
|
+
onClose: () => void;
|
|
755
|
+
object: Client | null;
|
|
756
|
+
refresh: () => void;
|
|
757
|
+
}
|
|
758
|
+
declare const FormClient: React$1.FC<FormClientProps>;
|
|
759
|
+
|
|
651
760
|
interface ApprovalWorkflowProps {
|
|
652
761
|
process: string;
|
|
653
762
|
object_id: number;
|
|
@@ -1498,4 +1607,4 @@ declare const formatDateFR: (date: Date | string, format?: "short" | "long") =>
|
|
|
1498
1607
|
*/
|
|
1499
1608
|
declare const formatCurrency: (amount: number, currency?: string, showDecimals?: boolean) => string;
|
|
1500
1609
|
|
|
1501
|
-
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AuthServices, type BackendFile, type BackendFolder, CHOICES, type ConfirmOptions, CountrySelector, DataTable, DateInput, DocumentFooter, DocumentHeader, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, FetchApi, FileInput, type FileItem, FileManager, type FileManagerProps, FileManagerProvider, type FileManagerTexts, ForeignCurrencySelector, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, Modal, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUnit, SelectUser, SelectVendor, SessionProvider, SignatureSection, TaxSelector, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, TotalsSection, type Unit, UnitServices, type UseFileManagerApiReturn, type User, UserServices, type ViewMode, fileManagerApi, formatCurrency, formatDate, formatDateFR, formatFileSize, getFileIcon, numberToWords, useAlert, useFileManager, useFileManagerApi, useSession, useToast };
|
|
1610
|
+
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AuthServices, type BackendFile, type BackendFolder, CHOICES, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, CountrySelector, DataTable, DateInput, DocumentFooter, DocumentHeader, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, FROM_MODULE_CHOICES, FetchApi, FileInput, type FileItem, FileManager, type FileManagerProps, FileManagerProvider, type FileManagerTexts, ForeignCurrencySelector, FormClient, FormVendor, type FromModule, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, MinimalVendorForm, Modal, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUnit, SelectUser, SelectVendor, SessionProvider, SignatureSection, TEMPLATE_FNE_CHOICES, TaxSelector, type TemplateFNE, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, TotalsSection, type Unit, UnitServices, type UseFileManagerApiReturn, type User, UserServices, type Vendor, type VendorListResponse, VendorServices, type ViewMode, fileManagerApi, formatCurrency, formatDate, formatDateFR, formatFileSize, getFileIcon, numberToWords, useAlert, useFileManager, useFileManagerApi, useSession, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -94,6 +94,9 @@ interface TrackableModel {
|
|
|
94
94
|
created_at?: string;
|
|
95
95
|
updated_at?: string;
|
|
96
96
|
}
|
|
97
|
+
interface BusinessEntityAbstract {
|
|
98
|
+
business_entity?: number;
|
|
99
|
+
}
|
|
97
100
|
|
|
98
101
|
interface Module$1 {
|
|
99
102
|
id: number;
|
|
@@ -214,7 +217,7 @@ interface User {
|
|
|
214
217
|
centers_access?: Entity[];
|
|
215
218
|
}
|
|
216
219
|
|
|
217
|
-
type FromModule = 'accounting' | 'crm' | 'procurement';
|
|
220
|
+
type FromModule$1 = 'accounting' | 'crm' | 'procurement';
|
|
218
221
|
interface Vendor {
|
|
219
222
|
id?: number;
|
|
220
223
|
legal_name: string;
|
|
@@ -249,7 +252,7 @@ interface Vendor {
|
|
|
249
252
|
bank_phone?: string | null;
|
|
250
253
|
iban?: string | null;
|
|
251
254
|
rib?: string | null;
|
|
252
|
-
from_module?: FromModule | null;
|
|
255
|
+
from_module?: FromModule$1 | null;
|
|
253
256
|
vendor_number: string;
|
|
254
257
|
}
|
|
255
258
|
|
|
@@ -606,6 +609,94 @@ declare const UnitServices: {
|
|
|
606
609
|
delete: (id: number) => Promise<unknown>;
|
|
607
610
|
};
|
|
608
611
|
|
|
612
|
+
interface VendorListResponse {
|
|
613
|
+
data: Vendor[];
|
|
614
|
+
paginate: {
|
|
615
|
+
total_pages: number;
|
|
616
|
+
current_page: number;
|
|
617
|
+
count: number;
|
|
618
|
+
next: string | null;
|
|
619
|
+
previous: string | null;
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
declare const VendorServices: {
|
|
623
|
+
createVendor: (data: Partial<Vendor>, token: string) => Promise<unknown>;
|
|
624
|
+
getVendor: (id: number, token: string) => Promise<unknown>;
|
|
625
|
+
getVendors: (token: string, params?: any) => Promise<unknown>;
|
|
626
|
+
listVendors: (params?: Record<string, any>) => Promise<VendorListResponse>;
|
|
627
|
+
updateVendor: (id: number, data: Partial<Vendor>, token: string) => Promise<unknown>;
|
|
628
|
+
deleteVendor: (id: number, token: string) => Promise<unknown>;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
type FromModule = 'accounting' | 'crm' | 'procurement';
|
|
632
|
+
type TemplateFNE = 'B2B' | 'B2F' | 'B2G' | 'B2C';
|
|
633
|
+
interface Client extends TrackableModel, BusinessEntityAbstract {
|
|
634
|
+
client_number?: string;
|
|
635
|
+
from_module?: FromModule;
|
|
636
|
+
legal_name?: string;
|
|
637
|
+
trading_name?: string | null;
|
|
638
|
+
phone?: string | null;
|
|
639
|
+
email?: string | null;
|
|
640
|
+
logo?: string | null;
|
|
641
|
+
year_founded?: string | null;
|
|
642
|
+
activity_sector?: string | null;
|
|
643
|
+
description?: string | null;
|
|
644
|
+
country?: string | null;
|
|
645
|
+
city?: string | null;
|
|
646
|
+
address?: string | null;
|
|
647
|
+
accounting_account_number?: string | null;
|
|
648
|
+
capital?: number | null;
|
|
649
|
+
annual_turnover?: number | null;
|
|
650
|
+
payment_delay?: number;
|
|
651
|
+
legal_form?: string | null;
|
|
652
|
+
tax_regime?: string | null;
|
|
653
|
+
tax_account?: string | null;
|
|
654
|
+
rccm?: string | null;
|
|
655
|
+
legal_representative_name?: string | null;
|
|
656
|
+
legal_representative_email?: string | null;
|
|
657
|
+
legal_representative_phone?: string | null;
|
|
658
|
+
legal_representative_address?: string | null;
|
|
659
|
+
legal_representative_position?: string | null;
|
|
660
|
+
legal_representative_id_card?: string | null;
|
|
661
|
+
bank_name?: string | null;
|
|
662
|
+
bank_address?: string | null;
|
|
663
|
+
bank_email?: string | null;
|
|
664
|
+
bank_phone?: string | null;
|
|
665
|
+
iban?: string | null;
|
|
666
|
+
rib?: string | null;
|
|
667
|
+
template_fne?: TemplateFNE;
|
|
668
|
+
project_description?: string | null;
|
|
669
|
+
business_provider?: string | null;
|
|
670
|
+
target_clients?: string | null;
|
|
671
|
+
}
|
|
672
|
+
declare const TEMPLATE_FNE_CHOICES: {
|
|
673
|
+
value: string;
|
|
674
|
+
label: string;
|
|
675
|
+
}[];
|
|
676
|
+
declare const FROM_MODULE_CHOICES: {
|
|
677
|
+
value: string;
|
|
678
|
+
label: string;
|
|
679
|
+
}[];
|
|
680
|
+
|
|
681
|
+
interface ClientListResponse {
|
|
682
|
+
data: Client[];
|
|
683
|
+
paginate: {
|
|
684
|
+
total_pages: number;
|
|
685
|
+
current_page: number;
|
|
686
|
+
count: number;
|
|
687
|
+
next: string | null;
|
|
688
|
+
previous: string | null;
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
declare const ClientServices: {
|
|
692
|
+
createClient: (data: Partial<Client>, token: string) => Promise<unknown>;
|
|
693
|
+
getClient: (id: number, token: string) => Promise<Client>;
|
|
694
|
+
getClients: (token: string, params?: any) => Promise<unknown>;
|
|
695
|
+
listClients: (params?: Record<string, any>) => Promise<ClientListResponse>;
|
|
696
|
+
updateClient: (id: number, data: Partial<Client>, token: string) => Promise<unknown>;
|
|
697
|
+
deleteClient: (id: number, token: string) => Promise<unknown>;
|
|
698
|
+
};
|
|
699
|
+
|
|
609
700
|
type ImportField = {
|
|
610
701
|
value: string;
|
|
611
702
|
label: string;
|
|
@@ -648,6 +739,24 @@ interface FDrawerProps {
|
|
|
648
739
|
}
|
|
649
740
|
declare const FDrawer: React$1.FC<FDrawerProps>;
|
|
650
741
|
|
|
742
|
+
interface FormVendorProps {
|
|
743
|
+
isOpen: boolean;
|
|
744
|
+
onClose: () => void;
|
|
745
|
+
object: Vendor | null;
|
|
746
|
+
refresh: () => void;
|
|
747
|
+
from?: FromModule$1;
|
|
748
|
+
}
|
|
749
|
+
declare const FormVendor: React$1.FC<FormVendorProps>;
|
|
750
|
+
declare const MinimalVendorForm: React$1.FC<FormVendorProps>;
|
|
751
|
+
|
|
752
|
+
interface FormClientProps {
|
|
753
|
+
isOpen: boolean;
|
|
754
|
+
onClose: () => void;
|
|
755
|
+
object: Client | null;
|
|
756
|
+
refresh: () => void;
|
|
757
|
+
}
|
|
758
|
+
declare const FormClient: React$1.FC<FormClientProps>;
|
|
759
|
+
|
|
651
760
|
interface ApprovalWorkflowProps {
|
|
652
761
|
process: string;
|
|
653
762
|
object_id: number;
|
|
@@ -1498,4 +1607,4 @@ declare const formatDateFR: (date: Date | string, format?: "short" | "long") =>
|
|
|
1498
1607
|
*/
|
|
1499
1608
|
declare const formatCurrency: (amount: number, currency?: string, showDecimals?: boolean) => string;
|
|
1500
1609
|
|
|
1501
|
-
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AuthServices, type BackendFile, type BackendFolder, CHOICES, type ConfirmOptions, CountrySelector, DataTable, DateInput, DocumentFooter, DocumentHeader, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, FetchApi, FileInput, type FileItem, FileManager, type FileManagerProps, FileManagerProvider, type FileManagerTexts, ForeignCurrencySelector, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, Modal, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUnit, SelectUser, SelectVendor, SessionProvider, SignatureSection, TaxSelector, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, TotalsSection, type Unit, UnitServices, type UseFileManagerApiReturn, type User, UserServices, type ViewMode, fileManagerApi, formatCurrency, formatDate, formatDateFR, formatFileSize, getFileIcon, numberToWords, useAlert, useFileManager, useFileManagerApi, useSession, useToast };
|
|
1610
|
+
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AuthServices, type BackendFile, type BackendFolder, CHOICES, type Client, type ClientListResponse, ClientServices, type ConfirmOptions, CountrySelector, DataTable, DateInput, DocumentFooter, DocumentHeader, EntityFileManager, type EntityFileManagerProps, type EntityType, FDrawer, FROM_MODULE_CHOICES, FetchApi, FileInput, type FileItem, FileManager, type FileManagerProps, FileManagerProvider, type FileManagerTexts, ForeignCurrencySelector, FormClient, FormVendor, type FromModule, InfoBox, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, MinimalVendorForm, Modal, NumberInput, PRINT_GREEN, Pages, PaymentMethodSelector, PrimaryButton, PrintPreview, type PrintPreviewProps, PrintableDocument, type PrintableDocumentProps, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUnit, SelectUser, SelectVendor, SessionProvider, SignatureSection, TEMPLATE_FNE_CHOICES, TaxSelector, type TemplateFNE, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, TotalsSection, type Unit, UnitServices, type UseFileManagerApiReturn, type User, UserServices, type Vendor, type VendorListResponse, VendorServices, type ViewMode, fileManagerApi, formatCurrency, formatDate, formatDateFR, formatFileSize, getFileIcon, numberToWords, useAlert, useFileManager, useFileManagerApi, useSession, useToast };
|