ptechcore_ui 1.0.18 → 1.0.19
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 +156 -90
- package/dist/index.d.cts +202 -38
- package/dist/index.d.ts +202 -38
- package/dist/index.js +171 -93
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -204,45 +204,45 @@ declare const UserServices: {
|
|
|
204
204
|
addUserToEntity: (entityId: number, userId: number, token: string) => Promise<unknown>;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
label: string;
|
|
210
|
-
type: 'text' | 'number' | 'date' | 'boolean' | 'custom';
|
|
211
|
-
filterable?: boolean;
|
|
212
|
-
filter_options?: {
|
|
213
|
-
value: string;
|
|
214
|
-
label: string;
|
|
215
|
-
}[];
|
|
216
|
-
sortable?: boolean;
|
|
217
|
-
search_name: string;
|
|
218
|
-
formule?: (item: any) => any | null;
|
|
219
|
-
};
|
|
220
|
-
type FDrawerLineAction = {
|
|
221
|
-
label: string;
|
|
222
|
-
permission: string;
|
|
223
|
-
navigate?: string;
|
|
224
|
-
onclick?: (item: any) => any;
|
|
225
|
-
};
|
|
226
|
-
interface FDrawerProps {
|
|
227
|
-
children?: React$1.ReactNode;
|
|
228
|
-
apiEndpoint: string;
|
|
229
|
-
columns: FDrawerColumn[];
|
|
230
|
-
actions: FDrawerLineAction[];
|
|
231
|
-
ordering: string;
|
|
232
|
-
toggle?: boolean;
|
|
207
|
+
interface SendOtpPayload {
|
|
208
|
+
email: string;
|
|
233
209
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
process: string;
|
|
238
|
-
object_id: number;
|
|
239
|
-
title?: string;
|
|
240
|
-
readOnly?: boolean;
|
|
241
|
-
CustomBtn?: React$1.ComponentType<{
|
|
242
|
-
onClick?: () => void;
|
|
243
|
-
}>;
|
|
210
|
+
interface VerifyOtpPayload {
|
|
211
|
+
email: string;
|
|
212
|
+
otp: string;
|
|
244
213
|
}
|
|
245
|
-
|
|
214
|
+
interface CompleteRegistrationPayload {
|
|
215
|
+
email: string;
|
|
216
|
+
password: string;
|
|
217
|
+
confirmed_password: string;
|
|
218
|
+
firstname?: string;
|
|
219
|
+
lastname?: string;
|
|
220
|
+
phonenumber?: string;
|
|
221
|
+
}
|
|
222
|
+
interface LoginPayload {
|
|
223
|
+
username: string;
|
|
224
|
+
password: string;
|
|
225
|
+
}
|
|
226
|
+
declare const AuthServices: {
|
|
227
|
+
sendOtp: (payload: SendOtpPayload) => Promise<unknown>;
|
|
228
|
+
verifyOtp: (payload: VerifyOtpPayload) => Promise<unknown>;
|
|
229
|
+
completeRegistration: (payload: CompleteRegistrationPayload) => Promise<unknown>;
|
|
230
|
+
getInvitations: (token: string) => Promise<unknown>;
|
|
231
|
+
respondInvitationEmail: (payload: {
|
|
232
|
+
email: string;
|
|
233
|
+
token: string;
|
|
234
|
+
answer: string;
|
|
235
|
+
}) => Promise<unknown>;
|
|
236
|
+
change_password: (payload: {
|
|
237
|
+
token: string;
|
|
238
|
+
password: string;
|
|
239
|
+
confirmed_password: string;
|
|
240
|
+
}) => Promise<unknown>;
|
|
241
|
+
addUser: (payload: User) => Promise<unknown>;
|
|
242
|
+
login: (payload: LoginPayload) => Promise<unknown>;
|
|
243
|
+
getUserInformations: (token: string) => Promise<unknown>;
|
|
244
|
+
logout: () => Promise<unknown>;
|
|
245
|
+
};
|
|
246
246
|
|
|
247
247
|
declare enum ApprovalStatus {
|
|
248
248
|
CANCEL = "cancel",
|
|
@@ -293,6 +293,170 @@ interface ApprovalCase {
|
|
|
293
293
|
validations?: ApprovalAnswer[];
|
|
294
294
|
object_detail?: any;
|
|
295
295
|
}
|
|
296
|
+
interface ApprovalCaseCreatePayload {
|
|
297
|
+
title?: string;
|
|
298
|
+
process?: string;
|
|
299
|
+
object_id?: number;
|
|
300
|
+
status?: ApprovalStatus;
|
|
301
|
+
description?: string;
|
|
302
|
+
verifications?: Partial<ApprovalAnswer>[];
|
|
303
|
+
validations?: Partial<ApprovalAnswer>[];
|
|
304
|
+
}
|
|
305
|
+
interface ApprovalCaseUpdatePayload extends Partial<ApprovalCaseCreatePayload> {
|
|
306
|
+
id: number;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare const ApprovalServices: {
|
|
310
|
+
/**
|
|
311
|
+
* Créer un nouveau cas d'approbation avec vérifications et validations
|
|
312
|
+
*/
|
|
313
|
+
create: (data: ApprovalCaseCreatePayload, token: string) => Promise<{
|
|
314
|
+
success: boolean;
|
|
315
|
+
message: string;
|
|
316
|
+
data: {
|
|
317
|
+
case: ApprovalCase;
|
|
318
|
+
items: any[];
|
|
319
|
+
};
|
|
320
|
+
}>;
|
|
321
|
+
/**
|
|
322
|
+
* Obtenir tous les cas d'approbation
|
|
323
|
+
*/
|
|
324
|
+
list: (token: string) => Promise<{
|
|
325
|
+
success: boolean;
|
|
326
|
+
message: string;
|
|
327
|
+
data: ApprovalCase[];
|
|
328
|
+
}>;
|
|
329
|
+
/**
|
|
330
|
+
* Obtenir les détails d'un cas d'approbation par process et object_id
|
|
331
|
+
*/
|
|
332
|
+
getDetails: (process: string, object_id: number, token: string) => Promise<{
|
|
333
|
+
success: boolean;
|
|
334
|
+
message: string;
|
|
335
|
+
data: ApprovalCase;
|
|
336
|
+
}>;
|
|
337
|
+
getAnswerDetails: (link_token: string) => Promise<{
|
|
338
|
+
success: boolean;
|
|
339
|
+
message: string;
|
|
340
|
+
data: {
|
|
341
|
+
case: ApprovalCase;
|
|
342
|
+
answer_id: number;
|
|
343
|
+
};
|
|
344
|
+
}>;
|
|
345
|
+
/**
|
|
346
|
+
* Obtenir l'historique des versions d'un cas d'approbation
|
|
347
|
+
*/
|
|
348
|
+
getHistory: (process: string, object_id: number, token: string) => Promise<{
|
|
349
|
+
success: boolean;
|
|
350
|
+
message: string;
|
|
351
|
+
data: ApprovalCase[];
|
|
352
|
+
}>;
|
|
353
|
+
/**
|
|
354
|
+
* Mettre à jour un cas d'approbation
|
|
355
|
+
*/
|
|
356
|
+
update: (id: number, data: ApprovalCaseUpdatePayload, token: string) => Promise<{
|
|
357
|
+
success: boolean;
|
|
358
|
+
message: string;
|
|
359
|
+
data: {
|
|
360
|
+
case: ApprovalCase;
|
|
361
|
+
items: any[];
|
|
362
|
+
};
|
|
363
|
+
}>;
|
|
364
|
+
/**
|
|
365
|
+
* Démarrer le processus d'approbation d'un cas
|
|
366
|
+
*/
|
|
367
|
+
start: (id: number, token: string) => Promise<{
|
|
368
|
+
success: boolean;
|
|
369
|
+
message: string;
|
|
370
|
+
data: {};
|
|
371
|
+
}>;
|
|
372
|
+
/**
|
|
373
|
+
* Annuler un cas d'approbation
|
|
374
|
+
*/
|
|
375
|
+
cancel: (id: number, token: string) => Promise<{
|
|
376
|
+
success: boolean;
|
|
377
|
+
message: string;
|
|
378
|
+
data: {};
|
|
379
|
+
}>;
|
|
380
|
+
/**
|
|
381
|
+
* Redémarrer un cas d'approbation (nouvelle version)
|
|
382
|
+
*/
|
|
383
|
+
restart: (id: number, token: string) => Promise<{
|
|
384
|
+
success: boolean;
|
|
385
|
+
message: string;
|
|
386
|
+
data: {};
|
|
387
|
+
}>;
|
|
388
|
+
/**
|
|
389
|
+
* Supprimer un cas d'approbation
|
|
390
|
+
*/
|
|
391
|
+
delete: (id: number, token: string) => Promise<{
|
|
392
|
+
success: boolean;
|
|
393
|
+
message: string;
|
|
394
|
+
}>;
|
|
395
|
+
/**
|
|
396
|
+
* Approuver une réponse d'approbation
|
|
397
|
+
*/
|
|
398
|
+
approve: (answerId: number, note?: string) => Promise<{
|
|
399
|
+
success: boolean;
|
|
400
|
+
message: string;
|
|
401
|
+
data: {};
|
|
402
|
+
}>;
|
|
403
|
+
/**
|
|
404
|
+
* Rejeter une réponse d'approbation
|
|
405
|
+
*/
|
|
406
|
+
reject: (answerId: number, note?: string) => Promise<{
|
|
407
|
+
success: boolean;
|
|
408
|
+
message: string;
|
|
409
|
+
data: {};
|
|
410
|
+
}>;
|
|
411
|
+
/**
|
|
412
|
+
* Suggérer une correction pour une réponse d'approbation
|
|
413
|
+
*/
|
|
414
|
+
suggestChange: (answerId: number, note?: string) => Promise<{
|
|
415
|
+
success: boolean;
|
|
416
|
+
message: string;
|
|
417
|
+
data: {};
|
|
418
|
+
}>;
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
type FDrawerColumn = {
|
|
422
|
+
key: string;
|
|
423
|
+
label: string;
|
|
424
|
+
type: 'text' | 'number' | 'date' | 'boolean' | 'custom';
|
|
425
|
+
filterable?: boolean;
|
|
426
|
+
filter_options?: {
|
|
427
|
+
value: string;
|
|
428
|
+
label: string;
|
|
429
|
+
}[];
|
|
430
|
+
sortable?: boolean;
|
|
431
|
+
search_name: string;
|
|
432
|
+
formule?: (item: any) => any | null;
|
|
433
|
+
};
|
|
434
|
+
type FDrawerLineAction = {
|
|
435
|
+
label: string;
|
|
436
|
+
permission: string;
|
|
437
|
+
navigate?: string;
|
|
438
|
+
onclick?: (item: any) => any;
|
|
439
|
+
};
|
|
440
|
+
interface FDrawerProps {
|
|
441
|
+
children?: React$1.ReactNode;
|
|
442
|
+
apiEndpoint: string;
|
|
443
|
+
columns: FDrawerColumn[];
|
|
444
|
+
actions: FDrawerLineAction[];
|
|
445
|
+
ordering: string;
|
|
446
|
+
toggle?: boolean;
|
|
447
|
+
}
|
|
448
|
+
declare const FDrawer: React$1.FC<FDrawerProps>;
|
|
449
|
+
|
|
450
|
+
interface ApprovalWorkflowProps {
|
|
451
|
+
process: string;
|
|
452
|
+
object_id: number;
|
|
453
|
+
title?: string;
|
|
454
|
+
readOnly?: boolean;
|
|
455
|
+
CustomBtn?: React$1.ComponentType<{
|
|
456
|
+
onClick?: () => void;
|
|
457
|
+
}>;
|
|
458
|
+
}
|
|
459
|
+
declare const ApprovalWorkflow: React$1.FC<ApprovalWorkflowProps>;
|
|
296
460
|
|
|
297
461
|
interface ApprovalAnswerModalProps {
|
|
298
462
|
answer_id: number;
|
|
@@ -440,4 +604,4 @@ declare const TaxSelector: React$1.FC<TaxSelectProps>;
|
|
|
440
604
|
declare const LegalFormSelector: React$1.FC<ChoiceSelectProps>;
|
|
441
605
|
declare const CountrySelector: React$1.FC<ChoiceSelectProps>;
|
|
442
606
|
|
|
443
|
-
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalWorkflow, CHOICES, CountrySelector, DateInput, FDrawer, FetchApi, FileInput, ForeignCurrencySelector, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, Modal, NumberInput, Pages, PaymentMethodSelector, PrimaryButton, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUser, SelectVendor, SessionProvider, TaxSelector, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, type User, UserServices, useAlert, useSession, useToast };
|
|
607
|
+
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AuthServices, CHOICES, CountrySelector, DateInput, FDrawer, FetchApi, FileInput, ForeignCurrencySelector, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, Modal, NumberInput, Pages, PaymentMethodSelector, PrimaryButton, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUser, SelectVendor, SessionProvider, TaxSelector, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, type User, UserServices, useAlert, useSession, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -204,45 +204,45 @@ declare const UserServices: {
|
|
|
204
204
|
addUserToEntity: (entityId: number, userId: number, token: string) => Promise<unknown>;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
label: string;
|
|
210
|
-
type: 'text' | 'number' | 'date' | 'boolean' | 'custom';
|
|
211
|
-
filterable?: boolean;
|
|
212
|
-
filter_options?: {
|
|
213
|
-
value: string;
|
|
214
|
-
label: string;
|
|
215
|
-
}[];
|
|
216
|
-
sortable?: boolean;
|
|
217
|
-
search_name: string;
|
|
218
|
-
formule?: (item: any) => any | null;
|
|
219
|
-
};
|
|
220
|
-
type FDrawerLineAction = {
|
|
221
|
-
label: string;
|
|
222
|
-
permission: string;
|
|
223
|
-
navigate?: string;
|
|
224
|
-
onclick?: (item: any) => any;
|
|
225
|
-
};
|
|
226
|
-
interface FDrawerProps {
|
|
227
|
-
children?: React$1.ReactNode;
|
|
228
|
-
apiEndpoint: string;
|
|
229
|
-
columns: FDrawerColumn[];
|
|
230
|
-
actions: FDrawerLineAction[];
|
|
231
|
-
ordering: string;
|
|
232
|
-
toggle?: boolean;
|
|
207
|
+
interface SendOtpPayload {
|
|
208
|
+
email: string;
|
|
233
209
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
process: string;
|
|
238
|
-
object_id: number;
|
|
239
|
-
title?: string;
|
|
240
|
-
readOnly?: boolean;
|
|
241
|
-
CustomBtn?: React$1.ComponentType<{
|
|
242
|
-
onClick?: () => void;
|
|
243
|
-
}>;
|
|
210
|
+
interface VerifyOtpPayload {
|
|
211
|
+
email: string;
|
|
212
|
+
otp: string;
|
|
244
213
|
}
|
|
245
|
-
|
|
214
|
+
interface CompleteRegistrationPayload {
|
|
215
|
+
email: string;
|
|
216
|
+
password: string;
|
|
217
|
+
confirmed_password: string;
|
|
218
|
+
firstname?: string;
|
|
219
|
+
lastname?: string;
|
|
220
|
+
phonenumber?: string;
|
|
221
|
+
}
|
|
222
|
+
interface LoginPayload {
|
|
223
|
+
username: string;
|
|
224
|
+
password: string;
|
|
225
|
+
}
|
|
226
|
+
declare const AuthServices: {
|
|
227
|
+
sendOtp: (payload: SendOtpPayload) => Promise<unknown>;
|
|
228
|
+
verifyOtp: (payload: VerifyOtpPayload) => Promise<unknown>;
|
|
229
|
+
completeRegistration: (payload: CompleteRegistrationPayload) => Promise<unknown>;
|
|
230
|
+
getInvitations: (token: string) => Promise<unknown>;
|
|
231
|
+
respondInvitationEmail: (payload: {
|
|
232
|
+
email: string;
|
|
233
|
+
token: string;
|
|
234
|
+
answer: string;
|
|
235
|
+
}) => Promise<unknown>;
|
|
236
|
+
change_password: (payload: {
|
|
237
|
+
token: string;
|
|
238
|
+
password: string;
|
|
239
|
+
confirmed_password: string;
|
|
240
|
+
}) => Promise<unknown>;
|
|
241
|
+
addUser: (payload: User) => Promise<unknown>;
|
|
242
|
+
login: (payload: LoginPayload) => Promise<unknown>;
|
|
243
|
+
getUserInformations: (token: string) => Promise<unknown>;
|
|
244
|
+
logout: () => Promise<unknown>;
|
|
245
|
+
};
|
|
246
246
|
|
|
247
247
|
declare enum ApprovalStatus {
|
|
248
248
|
CANCEL = "cancel",
|
|
@@ -293,6 +293,170 @@ interface ApprovalCase {
|
|
|
293
293
|
validations?: ApprovalAnswer[];
|
|
294
294
|
object_detail?: any;
|
|
295
295
|
}
|
|
296
|
+
interface ApprovalCaseCreatePayload {
|
|
297
|
+
title?: string;
|
|
298
|
+
process?: string;
|
|
299
|
+
object_id?: number;
|
|
300
|
+
status?: ApprovalStatus;
|
|
301
|
+
description?: string;
|
|
302
|
+
verifications?: Partial<ApprovalAnswer>[];
|
|
303
|
+
validations?: Partial<ApprovalAnswer>[];
|
|
304
|
+
}
|
|
305
|
+
interface ApprovalCaseUpdatePayload extends Partial<ApprovalCaseCreatePayload> {
|
|
306
|
+
id: number;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare const ApprovalServices: {
|
|
310
|
+
/**
|
|
311
|
+
* Créer un nouveau cas d'approbation avec vérifications et validations
|
|
312
|
+
*/
|
|
313
|
+
create: (data: ApprovalCaseCreatePayload, token: string) => Promise<{
|
|
314
|
+
success: boolean;
|
|
315
|
+
message: string;
|
|
316
|
+
data: {
|
|
317
|
+
case: ApprovalCase;
|
|
318
|
+
items: any[];
|
|
319
|
+
};
|
|
320
|
+
}>;
|
|
321
|
+
/**
|
|
322
|
+
* Obtenir tous les cas d'approbation
|
|
323
|
+
*/
|
|
324
|
+
list: (token: string) => Promise<{
|
|
325
|
+
success: boolean;
|
|
326
|
+
message: string;
|
|
327
|
+
data: ApprovalCase[];
|
|
328
|
+
}>;
|
|
329
|
+
/**
|
|
330
|
+
* Obtenir les détails d'un cas d'approbation par process et object_id
|
|
331
|
+
*/
|
|
332
|
+
getDetails: (process: string, object_id: number, token: string) => Promise<{
|
|
333
|
+
success: boolean;
|
|
334
|
+
message: string;
|
|
335
|
+
data: ApprovalCase;
|
|
336
|
+
}>;
|
|
337
|
+
getAnswerDetails: (link_token: string) => Promise<{
|
|
338
|
+
success: boolean;
|
|
339
|
+
message: string;
|
|
340
|
+
data: {
|
|
341
|
+
case: ApprovalCase;
|
|
342
|
+
answer_id: number;
|
|
343
|
+
};
|
|
344
|
+
}>;
|
|
345
|
+
/**
|
|
346
|
+
* Obtenir l'historique des versions d'un cas d'approbation
|
|
347
|
+
*/
|
|
348
|
+
getHistory: (process: string, object_id: number, token: string) => Promise<{
|
|
349
|
+
success: boolean;
|
|
350
|
+
message: string;
|
|
351
|
+
data: ApprovalCase[];
|
|
352
|
+
}>;
|
|
353
|
+
/**
|
|
354
|
+
* Mettre à jour un cas d'approbation
|
|
355
|
+
*/
|
|
356
|
+
update: (id: number, data: ApprovalCaseUpdatePayload, token: string) => Promise<{
|
|
357
|
+
success: boolean;
|
|
358
|
+
message: string;
|
|
359
|
+
data: {
|
|
360
|
+
case: ApprovalCase;
|
|
361
|
+
items: any[];
|
|
362
|
+
};
|
|
363
|
+
}>;
|
|
364
|
+
/**
|
|
365
|
+
* Démarrer le processus d'approbation d'un cas
|
|
366
|
+
*/
|
|
367
|
+
start: (id: number, token: string) => Promise<{
|
|
368
|
+
success: boolean;
|
|
369
|
+
message: string;
|
|
370
|
+
data: {};
|
|
371
|
+
}>;
|
|
372
|
+
/**
|
|
373
|
+
* Annuler un cas d'approbation
|
|
374
|
+
*/
|
|
375
|
+
cancel: (id: number, token: string) => Promise<{
|
|
376
|
+
success: boolean;
|
|
377
|
+
message: string;
|
|
378
|
+
data: {};
|
|
379
|
+
}>;
|
|
380
|
+
/**
|
|
381
|
+
* Redémarrer un cas d'approbation (nouvelle version)
|
|
382
|
+
*/
|
|
383
|
+
restart: (id: number, token: string) => Promise<{
|
|
384
|
+
success: boolean;
|
|
385
|
+
message: string;
|
|
386
|
+
data: {};
|
|
387
|
+
}>;
|
|
388
|
+
/**
|
|
389
|
+
* Supprimer un cas d'approbation
|
|
390
|
+
*/
|
|
391
|
+
delete: (id: number, token: string) => Promise<{
|
|
392
|
+
success: boolean;
|
|
393
|
+
message: string;
|
|
394
|
+
}>;
|
|
395
|
+
/**
|
|
396
|
+
* Approuver une réponse d'approbation
|
|
397
|
+
*/
|
|
398
|
+
approve: (answerId: number, note?: string) => Promise<{
|
|
399
|
+
success: boolean;
|
|
400
|
+
message: string;
|
|
401
|
+
data: {};
|
|
402
|
+
}>;
|
|
403
|
+
/**
|
|
404
|
+
* Rejeter une réponse d'approbation
|
|
405
|
+
*/
|
|
406
|
+
reject: (answerId: number, note?: string) => Promise<{
|
|
407
|
+
success: boolean;
|
|
408
|
+
message: string;
|
|
409
|
+
data: {};
|
|
410
|
+
}>;
|
|
411
|
+
/**
|
|
412
|
+
* Suggérer une correction pour une réponse d'approbation
|
|
413
|
+
*/
|
|
414
|
+
suggestChange: (answerId: number, note?: string) => Promise<{
|
|
415
|
+
success: boolean;
|
|
416
|
+
message: string;
|
|
417
|
+
data: {};
|
|
418
|
+
}>;
|
|
419
|
+
};
|
|
420
|
+
|
|
421
|
+
type FDrawerColumn = {
|
|
422
|
+
key: string;
|
|
423
|
+
label: string;
|
|
424
|
+
type: 'text' | 'number' | 'date' | 'boolean' | 'custom';
|
|
425
|
+
filterable?: boolean;
|
|
426
|
+
filter_options?: {
|
|
427
|
+
value: string;
|
|
428
|
+
label: string;
|
|
429
|
+
}[];
|
|
430
|
+
sortable?: boolean;
|
|
431
|
+
search_name: string;
|
|
432
|
+
formule?: (item: any) => any | null;
|
|
433
|
+
};
|
|
434
|
+
type FDrawerLineAction = {
|
|
435
|
+
label: string;
|
|
436
|
+
permission: string;
|
|
437
|
+
navigate?: string;
|
|
438
|
+
onclick?: (item: any) => any;
|
|
439
|
+
};
|
|
440
|
+
interface FDrawerProps {
|
|
441
|
+
children?: React$1.ReactNode;
|
|
442
|
+
apiEndpoint: string;
|
|
443
|
+
columns: FDrawerColumn[];
|
|
444
|
+
actions: FDrawerLineAction[];
|
|
445
|
+
ordering: string;
|
|
446
|
+
toggle?: boolean;
|
|
447
|
+
}
|
|
448
|
+
declare const FDrawer: React$1.FC<FDrawerProps>;
|
|
449
|
+
|
|
450
|
+
interface ApprovalWorkflowProps {
|
|
451
|
+
process: string;
|
|
452
|
+
object_id: number;
|
|
453
|
+
title?: string;
|
|
454
|
+
readOnly?: boolean;
|
|
455
|
+
CustomBtn?: React$1.ComponentType<{
|
|
456
|
+
onClick?: () => void;
|
|
457
|
+
}>;
|
|
458
|
+
}
|
|
459
|
+
declare const ApprovalWorkflow: React$1.FC<ApprovalWorkflowProps>;
|
|
296
460
|
|
|
297
461
|
interface ApprovalAnswerModalProps {
|
|
298
462
|
answer_id: number;
|
|
@@ -440,4 +604,4 @@ declare const TaxSelector: React$1.FC<TaxSelectProps>;
|
|
|
440
604
|
declare const LegalFormSelector: React$1.FC<ChoiceSelectProps>;
|
|
441
605
|
declare const CountrySelector: React$1.FC<ChoiceSelectProps>;
|
|
442
606
|
|
|
443
|
-
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalWorkflow, CHOICES, CountrySelector, DateInput, FDrawer, FetchApi, FileInput, ForeignCurrencySelector, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, Modal, NumberInput, Pages, PaymentMethodSelector, PrimaryButton, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUser, SelectVendor, SessionProvider, TaxSelector, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, type User, UserServices, useAlert, useSession, useToast };
|
|
607
|
+
export { Alert, AlertProvider, ApprovalAnswerModal, ApprovalAnswerPage, ApprovalPreviewAnswer, ApprovalServices, ApprovalWorkflow, AuthServices, CHOICES, CountrySelector, DateInput, FDrawer, FetchApi, FileInput, ForeignCurrencySelector, InputField, InvoiceTypeSelector, LegalFormSelector, type MenuItem, Modal, NumberInput, Pages, PaymentMethodSelector, PrimaryButton, RewiseLayout, SecondaryButton, SelectCostCenter, SelectDepartment, SelectInput, SelectUser, SelectVendor, SessionProvider, TaxSelector, TemplateFNESelector, TextInput, ThemeProvider, ToastContainer, ToastProvider, type User, UserServices, useAlert, useSession, useToast };
|