ptechcore_ui 1.0.71 → 1.0.73
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 +6960 -6468
- package/dist/index.d.cts +40 -7
- package/dist/index.d.ts +40 -7
- package/dist/index.js +7094 -6606
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { ReactNode } from 'react';
|
|
1
|
+
import React$1, { ChangeEvent, ReactNode } from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
4
|
import { TReaderDocument } from '@usewaypoint/email-builder';
|
|
@@ -60,6 +60,23 @@ type FileInputProps = {
|
|
|
60
60
|
onChange: (e: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
61
61
|
};
|
|
62
62
|
declare const FileInput: React$1.FC<FileInputProps>;
|
|
63
|
+
type AmountInputProps = {
|
|
64
|
+
label?: string;
|
|
65
|
+
name: string;
|
|
66
|
+
value: string | number;
|
|
67
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
68
|
+
onBlur?: (e: React$1.FocusEvent<HTMLInputElement>) => void;
|
|
69
|
+
lang?: 'fr' | 'en';
|
|
70
|
+
required?: boolean;
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
readOnly?: boolean;
|
|
73
|
+
error?: string;
|
|
74
|
+
placeholder?: string;
|
|
75
|
+
min?: number;
|
|
76
|
+
max?: number;
|
|
77
|
+
className?: string;
|
|
78
|
+
};
|
|
79
|
+
declare const AmountInput: React$1.FC<AmountInputProps>;
|
|
63
80
|
|
|
64
81
|
interface MenuItem {
|
|
65
82
|
id: string;
|
|
@@ -983,6 +1000,12 @@ interface ApprovalWorkflowProps {
|
|
|
983
1000
|
}
|
|
984
1001
|
declare const ApprovalWorkflow: React$1.FC<ApprovalWorkflowProps>;
|
|
985
1002
|
|
|
1003
|
+
interface ApprovalRecapProps {
|
|
1004
|
+
process: string;
|
|
1005
|
+
object_id: number;
|
|
1006
|
+
}
|
|
1007
|
+
declare const ApprovalRecap: React$1.FC<ApprovalRecapProps>;
|
|
1008
|
+
|
|
986
1009
|
interface ApprovalAnswerModalProps {
|
|
987
1010
|
answer_id: number;
|
|
988
1011
|
link_token?: string;
|
|
@@ -996,6 +1019,7 @@ declare const ApprovalPreviewAnswer: React$1.FC<{
|
|
|
996
1019
|
caseData: ApprovalCase | null;
|
|
997
1020
|
}>;
|
|
998
1021
|
|
|
1022
|
+
declare const ADDRESS_IP_URL: string;
|
|
999
1023
|
declare const API_URL: string;
|
|
1000
1024
|
declare class FetchApi {
|
|
1001
1025
|
static post<T>(url: string, payload?: any, token?: string): Promise<T>;
|
|
@@ -2109,10 +2133,6 @@ declare const numberToWords: (num: number) => string;
|
|
|
2109
2133
|
* Formate une date en français
|
|
2110
2134
|
*/
|
|
2111
2135
|
declare const formatDateFR: (date: Date | string, format?: "short" | "long") => string;
|
|
2112
|
-
/**
|
|
2113
|
-
* Formate un montant en monnaie
|
|
2114
|
-
*/
|
|
2115
|
-
declare const formatCurrency: (amount: number, currency?: string, showDecimals?: boolean) => string;
|
|
2116
2136
|
|
|
2117
2137
|
declare const RewiseCard: React$1.FC<{
|
|
2118
2138
|
children: React$1.ReactNode;
|
|
@@ -2338,6 +2358,7 @@ interface PurchaseRequest {
|
|
|
2338
2358
|
evaluated_at?: string | null;
|
|
2339
2359
|
assigned_buyer?: User | number | null;
|
|
2340
2360
|
budget_approval_requested_at?: string | null;
|
|
2361
|
+
requested_by_user?: string;
|
|
2341
2362
|
items: PurchaseRequestItem[];
|
|
2342
2363
|
rfq?: number | null;
|
|
2343
2364
|
}
|
|
@@ -2349,6 +2370,16 @@ declare const FormPurchaseRequest: React$1.FC<{
|
|
|
2349
2370
|
refresh: () => void;
|
|
2350
2371
|
}>;
|
|
2351
2372
|
|
|
2373
|
+
interface PrintablePurchaseRequestProps {
|
|
2374
|
+
data: PurchaseRequest;
|
|
2375
|
+
organizationName?: string;
|
|
2376
|
+
organizationAddress?: string;
|
|
2377
|
+
organizationPhone?: string;
|
|
2378
|
+
organizationEmail?: string;
|
|
2379
|
+
organizationCity?: string;
|
|
2380
|
+
}
|
|
2381
|
+
declare const PrintablePurchaseRequest: React$1.FC<PrintablePurchaseRequestProps>;
|
|
2382
|
+
|
|
2352
2383
|
interface SelectedProductLine {
|
|
2353
2384
|
productId: number;
|
|
2354
2385
|
reference: string;
|
|
@@ -2582,7 +2613,7 @@ declare const PurchaseRequestServices: {
|
|
|
2582
2613
|
getPurchaseRequest: (id: number, token: string) => Promise<unknown>;
|
|
2583
2614
|
getPurchaseRequests: (token: string) => Promise<unknown>;
|
|
2584
2615
|
updatePurchaseRequest: (id: number, data: Partial<PurchaseRequest>, token: string) => Promise<unknown>;
|
|
2585
|
-
deletePurchaseRequest: (id: number
|
|
2616
|
+
deletePurchaseRequest: (id: number) => Promise<unknown>;
|
|
2586
2617
|
};
|
|
2587
2618
|
|
|
2588
2619
|
declare const WorkSpaceRoutes: React.FC<{
|
|
@@ -2591,6 +2622,8 @@ declare const WorkSpaceRoutes: React.FC<{
|
|
|
2591
2622
|
module_description: string;
|
|
2592
2623
|
}>;
|
|
2593
2624
|
|
|
2625
|
+
declare function formatCurrency(amount: number, currency?: string): string;
|
|
2626
|
+
|
|
2594
2627
|
type ContractType = 'cadre' | 'ponctuel' | 'framework' | 'master' | 'call_off' | 'purchase' | 'service' | 'maintenance' | 'lease' | 'license' | 'sla' | 'nda' | 'mou' | 'partnership';
|
|
2595
2628
|
type DurationUnit = 'jours' | 'mois' | 'annees';
|
|
2596
2629
|
type ContractStatus = 'brouillon' | 'draft' | 'review' | 'approved' | 'actif' | 'active' | 'suspended' | 'expire' | 'expired' | 'resilie' | 'terminated' | 'annule' | 'renewed';
|
|
@@ -3621,4 +3654,4 @@ declare function VariablePanel({ categories }: VariablePanelProps): react_jsx_ru
|
|
|
3621
3654
|
|
|
3622
3655
|
declare const DEFAULT_VARIABLE_CATEGORIES: VariableCategory[];
|
|
3623
3656
|
|
|
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 };
|
|
3657
|
+
export { ACCOUNT_TYPE_LABELS, ADDRESS_IP_URL, API_URL, type Account, type AccountListResponse, AccountServices, type AccountType, AccountingWorkspace, AssetsDashboard as ActifsPage, AddSLAEvaluationModal, AddSLAIndicatorModal, type AddSupplierPricePayload, Alert, AlertProvider, AlertsManagementModal, AmountInput, type Answer, type ApiResponse, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, type ApprovalProcessModel, ApprovalRecap, 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, PrintablePurchaseRequest, 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React$1, { ReactNode } from 'react';
|
|
1
|
+
import React$1, { ChangeEvent, ReactNode } from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { LucideIcon } from 'lucide-react';
|
|
4
4
|
import { TReaderDocument } from '@usewaypoint/email-builder';
|
|
@@ -60,6 +60,23 @@ type FileInputProps = {
|
|
|
60
60
|
onChange: (e: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
61
61
|
};
|
|
62
62
|
declare const FileInput: React$1.FC<FileInputProps>;
|
|
63
|
+
type AmountInputProps = {
|
|
64
|
+
label?: string;
|
|
65
|
+
name: string;
|
|
66
|
+
value: string | number;
|
|
67
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
68
|
+
onBlur?: (e: React$1.FocusEvent<HTMLInputElement>) => void;
|
|
69
|
+
lang?: 'fr' | 'en';
|
|
70
|
+
required?: boolean;
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
readOnly?: boolean;
|
|
73
|
+
error?: string;
|
|
74
|
+
placeholder?: string;
|
|
75
|
+
min?: number;
|
|
76
|
+
max?: number;
|
|
77
|
+
className?: string;
|
|
78
|
+
};
|
|
79
|
+
declare const AmountInput: React$1.FC<AmountInputProps>;
|
|
63
80
|
|
|
64
81
|
interface MenuItem {
|
|
65
82
|
id: string;
|
|
@@ -983,6 +1000,12 @@ interface ApprovalWorkflowProps {
|
|
|
983
1000
|
}
|
|
984
1001
|
declare const ApprovalWorkflow: React$1.FC<ApprovalWorkflowProps>;
|
|
985
1002
|
|
|
1003
|
+
interface ApprovalRecapProps {
|
|
1004
|
+
process: string;
|
|
1005
|
+
object_id: number;
|
|
1006
|
+
}
|
|
1007
|
+
declare const ApprovalRecap: React$1.FC<ApprovalRecapProps>;
|
|
1008
|
+
|
|
986
1009
|
interface ApprovalAnswerModalProps {
|
|
987
1010
|
answer_id: number;
|
|
988
1011
|
link_token?: string;
|
|
@@ -996,6 +1019,7 @@ declare const ApprovalPreviewAnswer: React$1.FC<{
|
|
|
996
1019
|
caseData: ApprovalCase | null;
|
|
997
1020
|
}>;
|
|
998
1021
|
|
|
1022
|
+
declare const ADDRESS_IP_URL: string;
|
|
999
1023
|
declare const API_URL: string;
|
|
1000
1024
|
declare class FetchApi {
|
|
1001
1025
|
static post<T>(url: string, payload?: any, token?: string): Promise<T>;
|
|
@@ -2109,10 +2133,6 @@ declare const numberToWords: (num: number) => string;
|
|
|
2109
2133
|
* Formate une date en français
|
|
2110
2134
|
*/
|
|
2111
2135
|
declare const formatDateFR: (date: Date | string, format?: "short" | "long") => string;
|
|
2112
|
-
/**
|
|
2113
|
-
* Formate un montant en monnaie
|
|
2114
|
-
*/
|
|
2115
|
-
declare const formatCurrency: (amount: number, currency?: string, showDecimals?: boolean) => string;
|
|
2116
2136
|
|
|
2117
2137
|
declare const RewiseCard: React$1.FC<{
|
|
2118
2138
|
children: React$1.ReactNode;
|
|
@@ -2338,6 +2358,7 @@ interface PurchaseRequest {
|
|
|
2338
2358
|
evaluated_at?: string | null;
|
|
2339
2359
|
assigned_buyer?: User | number | null;
|
|
2340
2360
|
budget_approval_requested_at?: string | null;
|
|
2361
|
+
requested_by_user?: string;
|
|
2341
2362
|
items: PurchaseRequestItem[];
|
|
2342
2363
|
rfq?: number | null;
|
|
2343
2364
|
}
|
|
@@ -2349,6 +2370,16 @@ declare const FormPurchaseRequest: React$1.FC<{
|
|
|
2349
2370
|
refresh: () => void;
|
|
2350
2371
|
}>;
|
|
2351
2372
|
|
|
2373
|
+
interface PrintablePurchaseRequestProps {
|
|
2374
|
+
data: PurchaseRequest;
|
|
2375
|
+
organizationName?: string;
|
|
2376
|
+
organizationAddress?: string;
|
|
2377
|
+
organizationPhone?: string;
|
|
2378
|
+
organizationEmail?: string;
|
|
2379
|
+
organizationCity?: string;
|
|
2380
|
+
}
|
|
2381
|
+
declare const PrintablePurchaseRequest: React$1.FC<PrintablePurchaseRequestProps>;
|
|
2382
|
+
|
|
2352
2383
|
interface SelectedProductLine {
|
|
2353
2384
|
productId: number;
|
|
2354
2385
|
reference: string;
|
|
@@ -2582,7 +2613,7 @@ declare const PurchaseRequestServices: {
|
|
|
2582
2613
|
getPurchaseRequest: (id: number, token: string) => Promise<unknown>;
|
|
2583
2614
|
getPurchaseRequests: (token: string) => Promise<unknown>;
|
|
2584
2615
|
updatePurchaseRequest: (id: number, data: Partial<PurchaseRequest>, token: string) => Promise<unknown>;
|
|
2585
|
-
deletePurchaseRequest: (id: number
|
|
2616
|
+
deletePurchaseRequest: (id: number) => Promise<unknown>;
|
|
2586
2617
|
};
|
|
2587
2618
|
|
|
2588
2619
|
declare const WorkSpaceRoutes: React.FC<{
|
|
@@ -2591,6 +2622,8 @@ declare const WorkSpaceRoutes: React.FC<{
|
|
|
2591
2622
|
module_description: string;
|
|
2592
2623
|
}>;
|
|
2593
2624
|
|
|
2625
|
+
declare function formatCurrency(amount: number, currency?: string): string;
|
|
2626
|
+
|
|
2594
2627
|
type ContractType = 'cadre' | 'ponctuel' | 'framework' | 'master' | 'call_off' | 'purchase' | 'service' | 'maintenance' | 'lease' | 'license' | 'sla' | 'nda' | 'mou' | 'partnership';
|
|
2595
2628
|
type DurationUnit = 'jours' | 'mois' | 'annees';
|
|
2596
2629
|
type ContractStatus = 'brouillon' | 'draft' | 'review' | 'approved' | 'actif' | 'active' | 'suspended' | 'expire' | 'expired' | 'resilie' | 'terminated' | 'annule' | 'renewed';
|
|
@@ -3621,4 +3654,4 @@ declare function VariablePanel({ categories }: VariablePanelProps): react_jsx_ru
|
|
|
3621
3654
|
|
|
3622
3655
|
declare const DEFAULT_VARIABLE_CATEGORIES: VariableCategory[];
|
|
3623
3656
|
|
|
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 };
|
|
3657
|
+
export { ACCOUNT_TYPE_LABELS, ADDRESS_IP_URL, API_URL, type Account, type AccountListResponse, AccountServices, type AccountType, AccountingWorkspace, AssetsDashboard as ActifsPage, AddSLAEvaluationModal, AddSLAIndicatorModal, type AddSupplierPricePayload, Alert, AlertProvider, AlertsManagementModal, AmountInput, type Answer, type ApiResponse, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, type ApprovalProcessModel, ApprovalRecap, 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, PrintablePurchaseRequest, 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 };
|