@konversi/konversi-client 1.5.3 → 1.5.5
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.mts +609 -1088
- package/dist/index.d.ts +609 -1088
- package/dist/index.js +0 -811
- package/dist/index.mjs +0 -752
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -198,25 +198,8 @@ interface Contact {
|
|
|
198
198
|
isDeleted: boolean;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
FIFO = "FIFO"
|
|
204
|
-
}
|
|
205
|
-
declare enum Currency {
|
|
206
|
-
IDR = "IDR",
|
|
207
|
-
USD = "USD",
|
|
208
|
-
EUR = "EUR",
|
|
209
|
-
AUD = "AUD",
|
|
210
|
-
CNY = "CNY",
|
|
211
|
-
SGD = "SGD",
|
|
212
|
-
VND = "VND",
|
|
213
|
-
THB = "THB",
|
|
214
|
-
MYR = "MYR",
|
|
215
|
-
PHP = "PHP",
|
|
216
|
-
KHR = "KHR",
|
|
217
|
-
MMK = "MMK",
|
|
218
|
-
BND = "BND"
|
|
219
|
-
}
|
|
201
|
+
type InventoryCostFlow = 'AVCO' | 'FIFO';
|
|
202
|
+
type Currency = 'IDR' | 'USD' | 'EUR' | 'AUD' | 'CNY' | 'SGD' | 'VND' | 'THB' | 'MYR' | 'PHP' | 'KHR' | 'MMK' | 'BND';
|
|
220
203
|
|
|
221
204
|
interface Order {
|
|
222
205
|
id: string;
|
|
@@ -247,12 +230,12 @@ interface CostLine {
|
|
|
247
230
|
id: string;
|
|
248
231
|
description: string;
|
|
249
232
|
amount: number;
|
|
250
|
-
deliveryJob: DeliveryJob
|
|
233
|
+
deliveryJob: Partial<DeliveryJob>;
|
|
251
234
|
}
|
|
252
235
|
|
|
253
236
|
interface FuelEntry {
|
|
254
237
|
id: string;
|
|
255
|
-
vehicle: Vehicle
|
|
238
|
+
vehicle: Partial<Vehicle>;
|
|
256
239
|
quantity: number;
|
|
257
240
|
unitPrice: number;
|
|
258
241
|
odometer: number;
|
|
@@ -267,7 +250,7 @@ interface VehicleTelemetry {
|
|
|
267
250
|
speed: number;
|
|
268
251
|
odometer: number;
|
|
269
252
|
createdAt: string | Date;
|
|
270
|
-
vehicle: Vehicle
|
|
253
|
+
vehicle: Partial<Vehicle>;
|
|
271
254
|
}
|
|
272
255
|
|
|
273
256
|
interface OrderLine {
|
|
@@ -285,21 +268,21 @@ interface OrderLine {
|
|
|
285
268
|
|
|
286
269
|
interface SalesOrderLinePrintJob {
|
|
287
270
|
id: string;
|
|
288
|
-
salesOrderLine: SalesOrderLine
|
|
289
|
-
printJob: PrintJob
|
|
271
|
+
salesOrderLine: Partial<SalesOrderLine>;
|
|
272
|
+
printJob: Partial<PrintJob>;
|
|
290
273
|
}
|
|
291
274
|
|
|
292
275
|
interface SalesOrderLine extends OrderLine {
|
|
293
|
-
salesOrder: SalesOrder
|
|
294
|
-
product: Product
|
|
295
|
-
salesOrderLinePrintJobs: SalesOrderLinePrintJob[];
|
|
276
|
+
salesOrder: Partial<SalesOrder>;
|
|
277
|
+
product: Partial<Product>;
|
|
278
|
+
salesOrderLinePrintJobs: Partial<SalesOrderLinePrintJob>[];
|
|
296
279
|
averageCost?: number;
|
|
297
280
|
}
|
|
298
281
|
|
|
299
282
|
interface InvoiceLine extends OrderLine {
|
|
300
|
-
invoice: Invoice
|
|
301
|
-
product: Product
|
|
302
|
-
productItem: ProductItem
|
|
283
|
+
invoice: Partial<Invoice>;
|
|
284
|
+
product: Partial<Product>;
|
|
285
|
+
productItem: Partial<ProductItem>;
|
|
303
286
|
startDate?: string | Date;
|
|
304
287
|
endDate?: string | Date;
|
|
305
288
|
dailyUnitPrice?: number;
|
|
@@ -309,20 +292,20 @@ interface PropertyGroup {
|
|
|
309
292
|
id: string;
|
|
310
293
|
name: string;
|
|
311
294
|
mapImage?: string;
|
|
312
|
-
properties: Property[];
|
|
295
|
+
properties: Partial<Property>[];
|
|
313
296
|
}
|
|
314
297
|
|
|
315
298
|
interface MaintenanceOrderLine extends OrderLine {
|
|
316
299
|
id: string;
|
|
317
|
-
product: Product
|
|
318
|
-
maintenanceOrder: MaintenanceOrder
|
|
300
|
+
product: Partial<Product>;
|
|
301
|
+
maintenanceOrder: Partial<MaintenanceOrder>;
|
|
319
302
|
}
|
|
320
303
|
|
|
321
304
|
interface MaintenanceOrder extends Order {
|
|
322
305
|
id: string;
|
|
323
|
-
maintenanceOrderLines: MaintenanceOrderLine[];
|
|
324
|
-
vehicle: Vehicle
|
|
325
|
-
property: Property
|
|
306
|
+
maintenanceOrderLines: Partial<MaintenanceOrderLine>[];
|
|
307
|
+
vehicle: Partial<Vehicle>;
|
|
308
|
+
property: Partial<Property>;
|
|
326
309
|
customFields: any;
|
|
327
310
|
}
|
|
328
311
|
|
|
@@ -331,23 +314,16 @@ interface Property {
|
|
|
331
314
|
name: string;
|
|
332
315
|
files: string[];
|
|
333
316
|
mapPolygon: number[][];
|
|
334
|
-
propertyGroup: PropertyGroup
|
|
335
|
-
leases: Lease[];
|
|
336
|
-
maintenanceOrders: MaintenanceOrder[];
|
|
317
|
+
propertyGroup: Partial<PropertyGroup>;
|
|
318
|
+
leases: Partial<Lease>[];
|
|
319
|
+
maintenanceOrders: Partial<MaintenanceOrder>[];
|
|
337
320
|
}
|
|
338
321
|
|
|
339
|
-
|
|
340
|
-
NOT_INVOICED = "NOT_INVOICED",
|
|
341
|
-
PARTIALLY_INVOICED = "PARTIALLY_INVOICED",
|
|
342
|
-
FULLY_INVOICED = "FULLY_INVOICED",
|
|
343
|
-
PARTIALLY_PAID = "PARTIALLY_PAID",
|
|
344
|
-
FULLY_PAID = "FULLY_PAID",
|
|
345
|
-
OVERDUE = "OVERDUE"
|
|
346
|
-
}
|
|
322
|
+
type LeasePaymentStatus = 'NOT_INVOICED' | 'PARTIALLY_INVOICED' | 'FULLY_INVOICED' | 'PARTIALLY_PAID' | 'FULLY_PAID' | 'OVERDUE';
|
|
347
323
|
interface Lease {
|
|
348
324
|
id: string;
|
|
349
|
-
properties: Property[];
|
|
350
|
-
customer: Customer
|
|
325
|
+
properties: Partial<Property>[];
|
|
326
|
+
customer: Partial<Customer>;
|
|
351
327
|
startDate?: string;
|
|
352
328
|
endDate?: string;
|
|
353
329
|
files: string[];
|
|
@@ -356,9 +332,9 @@ interface Lease {
|
|
|
356
332
|
customFields: any;
|
|
357
333
|
isProfitSharing: boolean;
|
|
358
334
|
profitSharingPercentage: number;
|
|
359
|
-
invoices: Invoice[];
|
|
335
|
+
invoices: Partial<Invoice>[];
|
|
360
336
|
createdAt: string | Date;
|
|
361
|
-
createdBy: User
|
|
337
|
+
createdBy: Partial<User>;
|
|
362
338
|
updatedAt: string | Date;
|
|
363
339
|
}
|
|
364
340
|
|
|
@@ -367,22 +343,13 @@ interface RentalOrderLine extends OrderLine {
|
|
|
367
343
|
startDate?: string | Date;
|
|
368
344
|
endDate?: string | Date;
|
|
369
345
|
dailyUnitPrice?: number;
|
|
370
|
-
rentalOrder: RentalOrder
|
|
371
|
-
productItem: ProductItem
|
|
372
|
-
product: Product
|
|
346
|
+
rentalOrder: Partial<RentalOrder>;
|
|
347
|
+
productItem: Partial<ProductItem>;
|
|
348
|
+
product: Partial<Product>;
|
|
373
349
|
}
|
|
374
350
|
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
OUTGOING = "outgoing",
|
|
378
|
-
INTERNAL = "internal"
|
|
379
|
-
}
|
|
380
|
-
declare enum DeliveryStatus {
|
|
381
|
-
PENDING = "PENDING",
|
|
382
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
383
|
-
COMPLETED = "COMPLETED",
|
|
384
|
-
CANCELLED = "CANCELLED"
|
|
385
|
-
}
|
|
351
|
+
type DeliveryType = 'incoming' | 'outgoing' | 'internal';
|
|
352
|
+
type DeliveryStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'CANCELLED';
|
|
386
353
|
interface Delivery {
|
|
387
354
|
id: string;
|
|
388
355
|
num: number;
|
|
@@ -405,15 +372,15 @@ interface DeliveryLine {
|
|
|
405
372
|
}
|
|
406
373
|
|
|
407
374
|
interface OutgoingDeliveryLine extends DeliveryLine {
|
|
408
|
-
product: Product
|
|
409
|
-
outgoingDelivery: OutgoingDelivery
|
|
410
|
-
productItem: ProductItem
|
|
375
|
+
product: Partial<Product>;
|
|
376
|
+
outgoingDelivery: Partial<OutgoingDelivery>;
|
|
377
|
+
productItem: Partial<ProductItem>;
|
|
411
378
|
}
|
|
412
379
|
|
|
413
380
|
interface WarehouseProduct {
|
|
414
381
|
id: string;
|
|
415
|
-
warehouse: Warehouse
|
|
416
|
-
product: Product
|
|
382
|
+
warehouse: Partial<Warehouse>;
|
|
383
|
+
product: Partial<Product>;
|
|
417
384
|
inStock: number;
|
|
418
385
|
}
|
|
419
386
|
|
|
@@ -423,31 +390,22 @@ interface QualityCheckpoint {
|
|
|
423
390
|
instructions: string;
|
|
424
391
|
order: number;
|
|
425
392
|
isImageRequired: boolean;
|
|
426
|
-
bomOperation: BOMOperation
|
|
427
|
-
qualityChecks: QualityCheck[];
|
|
393
|
+
bomOperation: Partial<BOMOperation>;
|
|
394
|
+
qualityChecks: Partial<QualityCheck>[];
|
|
428
395
|
}
|
|
429
396
|
|
|
430
|
-
|
|
431
|
-
PENDING = "PENDING",
|
|
432
|
-
PASS = "PASS",
|
|
433
|
-
FAIL = "FAIL"
|
|
434
|
-
}
|
|
397
|
+
type QualityCheckStatus = 'PENDING' | 'PASS' | 'FAIL';
|
|
435
398
|
interface QualityCheck {
|
|
436
399
|
id: string;
|
|
437
400
|
status: QualityCheckStatus;
|
|
438
401
|
notes: string;
|
|
439
|
-
jobCard: JobCard
|
|
440
|
-
qualityCheckpoint: QualityCheckpoint
|
|
402
|
+
jobCard: Partial<JobCard>;
|
|
403
|
+
qualityCheckpoint: Partial<QualityCheckpoint>;
|
|
441
404
|
createdAt: string | Date;
|
|
442
405
|
updatedAt: string | Date;
|
|
443
406
|
}
|
|
444
407
|
|
|
445
|
-
|
|
446
|
-
PENDING = "PENDING",
|
|
447
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
448
|
-
COMPLETED = "COMPLETED",
|
|
449
|
-
CANCELED = "CANCELED"
|
|
450
|
-
}
|
|
408
|
+
type JobCardStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'CANCELED';
|
|
451
409
|
interface JobCard {
|
|
452
410
|
id: string;
|
|
453
411
|
order: number;
|
|
@@ -457,24 +415,19 @@ interface JobCard {
|
|
|
457
415
|
identifier: string;
|
|
458
416
|
title: string;
|
|
459
417
|
status: JobCardStatus;
|
|
460
|
-
workstation: Workstation
|
|
461
|
-
productionOrder: ProductionOrder
|
|
462
|
-
qualityChecks: QualityCheck[];
|
|
463
|
-
bomOperation: BOMOperation
|
|
418
|
+
workstation: Partial<Workstation>;
|
|
419
|
+
productionOrder: Partial<ProductionOrder>;
|
|
420
|
+
qualityChecks: Partial<QualityCheck>[];
|
|
421
|
+
bomOperation: Partial<BOMOperation>;
|
|
464
422
|
createdAt: string | Date;
|
|
465
423
|
updatedAt: string | Date;
|
|
466
424
|
customFields: any;
|
|
467
425
|
}
|
|
468
426
|
|
|
469
|
-
|
|
470
|
-
'PENDING' = "PENDING",
|
|
471
|
-
'IN_PROGRESS' = "IN_PROGRESS",
|
|
472
|
-
'COMPLETED' = "COMPLETED",
|
|
473
|
-
'CANCELED' = "CANCELED"
|
|
474
|
-
}
|
|
427
|
+
type ProductionOrderStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'CANCELED';
|
|
475
428
|
interface ProductionOrder {
|
|
476
429
|
id: string;
|
|
477
|
-
product: Product
|
|
430
|
+
product: Partial<Product>;
|
|
478
431
|
num: number;
|
|
479
432
|
numMonthly: number;
|
|
480
433
|
numYearly: number;
|
|
@@ -484,41 +437,41 @@ interface ProductionOrder {
|
|
|
484
437
|
endDate: string | Date;
|
|
485
438
|
plannedQuantity: number;
|
|
486
439
|
quantity: number;
|
|
487
|
-
productItems: ProductItem[];
|
|
488
|
-
inputProductItems: ProductItem[];
|
|
489
|
-
productionOrderLines: ProductionOrderLine[];
|
|
490
|
-
billOfMaterials: BillOfMaterials
|
|
491
|
-
jobCards: JobCard[];
|
|
492
|
-
warehouse: Warehouse
|
|
440
|
+
productItems: Partial<ProductItem>[];
|
|
441
|
+
inputProductItems: Partial<ProductItem>[];
|
|
442
|
+
productionOrderLines: Partial<ProductionOrderLine>[];
|
|
443
|
+
billOfMaterials: Partial<BillOfMaterials>;
|
|
444
|
+
jobCards: Partial<JobCard>[];
|
|
445
|
+
warehouse: Partial<Warehouse>;
|
|
493
446
|
customFields: any;
|
|
494
447
|
createdAt: string | Date;
|
|
495
448
|
}
|
|
496
449
|
|
|
497
450
|
interface ProductionOrderLine {
|
|
498
451
|
id: string;
|
|
499
|
-
product: Product
|
|
452
|
+
product: Partial<Product>;
|
|
500
453
|
quantity: number;
|
|
501
|
-
productionOrder: ProductionOrder
|
|
502
|
-
bomComponent: BOMComponent
|
|
454
|
+
productionOrder: Partial<ProductionOrder>;
|
|
455
|
+
bomComponent: Partial<BOMComponent>;
|
|
503
456
|
createdAt: string | Date;
|
|
504
457
|
}
|
|
505
458
|
|
|
506
459
|
interface BOMComponent {
|
|
507
460
|
id: string;
|
|
508
|
-
product: Product
|
|
461
|
+
product: Partial<Product>;
|
|
509
462
|
quantity: number;
|
|
510
|
-
billOfMaterials: BillOfMaterials
|
|
511
|
-
productionOrderLines: ProductionOrderLine[];
|
|
463
|
+
billOfMaterials: Partial<BillOfMaterials>;
|
|
464
|
+
productionOrderLines: Partial<ProductionOrderLine>[];
|
|
512
465
|
}
|
|
513
466
|
|
|
514
467
|
interface BillOfMaterials {
|
|
515
468
|
id: string;
|
|
516
469
|
name: string;
|
|
517
|
-
product: Product
|
|
470
|
+
product: Partial<Product>;
|
|
518
471
|
quantity: number;
|
|
519
|
-
bomComponents: BOMComponent[];
|
|
520
|
-
productionOrders: ProductionOrder[];
|
|
521
|
-
bomOperations: BOMOperation[];
|
|
472
|
+
bomComponents: Partial<BOMComponent>[];
|
|
473
|
+
productionOrders: Partial<ProductionOrder>[];
|
|
474
|
+
bomOperations: Partial<BOMOperation>[];
|
|
522
475
|
}
|
|
523
476
|
|
|
524
477
|
interface BOMOperation {
|
|
@@ -527,61 +480,61 @@ interface BOMOperation {
|
|
|
527
480
|
name: string;
|
|
528
481
|
instructionText: string;
|
|
529
482
|
instructionFile?: string;
|
|
530
|
-
workstation: Workstation
|
|
531
|
-
parentBomOperation?: BOMOperation
|
|
532
|
-
childBomOperations: BOMOperation[];
|
|
533
|
-
billOfMaterials: BillOfMaterials
|
|
534
|
-
jobCards: JobCard[];
|
|
535
|
-
qualityCheckpoints: QualityCheckpoint[];
|
|
483
|
+
workstation: Partial<Workstation>;
|
|
484
|
+
parentBomOperation?: Partial<BOMOperation>;
|
|
485
|
+
childBomOperations: Partial<BOMOperation>[];
|
|
486
|
+
billOfMaterials: Partial<BillOfMaterials>;
|
|
487
|
+
jobCards: Partial<JobCard>[];
|
|
488
|
+
qualityCheckpoints: Partial<QualityCheckpoint>[];
|
|
536
489
|
}
|
|
537
490
|
|
|
538
491
|
interface WorkstationProduct {
|
|
539
492
|
id: string;
|
|
540
|
-
workstation: Workstation
|
|
541
|
-
product: Product
|
|
493
|
+
workstation: Partial<Workstation>;
|
|
494
|
+
product: Partial<Product>;
|
|
542
495
|
inStock: number;
|
|
543
496
|
}
|
|
544
497
|
|
|
545
498
|
interface WorkstationTransfer {
|
|
546
499
|
id: string;
|
|
547
|
-
sourceWorkstation: Workstation
|
|
548
|
-
destinationWorkstation: Workstation
|
|
549
|
-
product: Product
|
|
500
|
+
sourceWorkstation: Partial<Workstation>;
|
|
501
|
+
destinationWorkstation: Partial<Workstation>;
|
|
502
|
+
product: Partial<Product>;
|
|
550
503
|
quantity: number;
|
|
551
|
-
createdBy: User
|
|
504
|
+
createdBy: Partial<User>;
|
|
552
505
|
createdAt: string | Date;
|
|
553
506
|
}
|
|
554
507
|
|
|
555
508
|
interface Workstation {
|
|
556
509
|
id: string;
|
|
557
510
|
name: string;
|
|
558
|
-
bomOperations: BOMOperation[];
|
|
559
|
-
jobCards: JobCard[];
|
|
560
|
-
productLocations: ProductLocation[];
|
|
561
|
-
warehouse: Warehouse
|
|
511
|
+
bomOperations: Partial<BOMOperation>[];
|
|
512
|
+
jobCards: Partial<JobCard>[];
|
|
513
|
+
productLocations: Partial<ProductLocation>[];
|
|
514
|
+
warehouse: Partial<Warehouse>;
|
|
562
515
|
createdAt: string | Date;
|
|
563
|
-
workstationProducts: WorkstationProduct[];
|
|
564
|
-
workstationTransfersSource: WorkstationTransfer[];
|
|
565
|
-
workstationTransfersDestination: WorkstationTransfer[];
|
|
516
|
+
workstationProducts: Partial<WorkstationProduct>[];
|
|
517
|
+
workstationTransfersSource: Partial<WorkstationTransfer>[];
|
|
518
|
+
workstationTransfersDestination: Partial<WorkstationTransfer>[];
|
|
566
519
|
}
|
|
567
520
|
|
|
568
521
|
interface ProductLocationTransfer {
|
|
569
522
|
id: string;
|
|
570
|
-
productItem: ProductItem
|
|
571
|
-
sourceProductLocation: ProductLocation
|
|
572
|
-
destinationProductLocation: ProductLocation
|
|
523
|
+
productItem: Partial<ProductItem>;
|
|
524
|
+
sourceProductLocation: Partial<ProductLocation>;
|
|
525
|
+
destinationProductLocation: Partial<ProductLocation>;
|
|
573
526
|
createdAt: string | Date;
|
|
574
527
|
}
|
|
575
528
|
|
|
576
529
|
interface ProductLocation {
|
|
577
530
|
id: string;
|
|
578
531
|
name: string;
|
|
579
|
-
warehouse: Warehouse
|
|
580
|
-
workstation: Workstation
|
|
581
|
-
productItems: ProductItem[];
|
|
532
|
+
warehouse: Partial<Warehouse>;
|
|
533
|
+
workstation: Partial<Workstation>;
|
|
534
|
+
productItems: Partial<ProductItem>[];
|
|
582
535
|
createdAt: string | Date;
|
|
583
|
-
productLocationTransfersSource: ProductLocationTransfer[];
|
|
584
|
-
productLocationTransfersDestination: ProductLocationTransfer[];
|
|
536
|
+
productLocationTransfersSource: Partial<ProductLocationTransfer>[];
|
|
537
|
+
productLocationTransfersDestination: Partial<ProductLocationTransfer>[];
|
|
585
538
|
}
|
|
586
539
|
|
|
587
540
|
interface Shipment {
|
|
@@ -591,10 +544,7 @@ interface Shipment {
|
|
|
591
544
|
description: string;
|
|
592
545
|
}
|
|
593
546
|
|
|
594
|
-
|
|
595
|
-
MONTHLY = "MONTHLY",
|
|
596
|
-
YEARLY = "YEARLY"
|
|
597
|
-
}
|
|
547
|
+
type DepreciationPeriod = 'MONTHLY' | 'YEARLY';
|
|
598
548
|
interface FixedAsset {
|
|
599
549
|
id: string;
|
|
600
550
|
name: string;
|
|
@@ -605,89 +555,20 @@ interface FixedAsset {
|
|
|
605
555
|
quantity: number;
|
|
606
556
|
depreciationDuration: number;
|
|
607
557
|
depreciationPeriod?: DepreciationPeriod;
|
|
608
|
-
assetAccount: Account
|
|
609
|
-
depreciationAccount: Account
|
|
610
|
-
expenseAccount: Account
|
|
611
|
-
journalEntries: JournalEntry[];
|
|
558
|
+
assetAccount: Partial<Account>;
|
|
559
|
+
depreciationAccount: Partial<Account>;
|
|
560
|
+
expenseAccount: Partial<Account>;
|
|
561
|
+
journalEntries: Partial<JournalEntry>[];
|
|
612
562
|
}
|
|
613
563
|
|
|
614
564
|
interface ExpenseLine extends OrderLine {
|
|
615
|
-
product: Product
|
|
616
|
-
account: Account
|
|
617
|
-
expense: Expense
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
declare enum EntityType {
|
|
621
|
-
CUSTOMER = "CUSTOMER",
|
|
622
|
-
SUPPLIER = "SUPPLIER",
|
|
623
|
-
ACCOUNT = "ACCOUNT",
|
|
624
|
-
PRODUCT = "PRODUCT",
|
|
625
|
-
SERVICE = "SERVICE",
|
|
626
|
-
PRODUCT_ITEM = "PRODUCT_ITEM",
|
|
627
|
-
RENTAL_ORDER = "RENTAL_ORDER",
|
|
628
|
-
SALES_ORDER = "SALES_ORDER",
|
|
629
|
-
SALES_ORDER_LINE = "SALES_ORDER_LINE",
|
|
630
|
-
WORK_ORDER = "WORK_ORDER",
|
|
631
|
-
WORK_ORDER_LINE = "WORK_ORDER_LINE",
|
|
632
|
-
SERVICE_ORDER = "SERVICE_ORDER",
|
|
633
|
-
SERVICE_ORDER_LINE = "SERVICE_ORDER_LINE",
|
|
634
|
-
PURCHASE_ORDER = "PURCHASE_ORDER",
|
|
635
|
-
PURCHASE_ORDER_LINE = "PURCHASE_ORDER_LINE",
|
|
636
|
-
INVOICE = "INVOICE",
|
|
637
|
-
INVOICE_LINE = "INVOICE_LINE",
|
|
638
|
-
QUOTE = "QUOTE",
|
|
639
|
-
QUOTE_LINE = "QUOTE_LINE",
|
|
640
|
-
OUTGOING_DELIVERY = "OUTGOING_DELIVERY",
|
|
641
|
-
OUTGOING_DELIVERY_LINE = "OUTGOING_DELIVERY_LINE",
|
|
642
|
-
INCOMING_DELIVERY = "INCOMING_DELIVERY",
|
|
643
|
-
INCOMING_DELIVERY_LINE = "INCOMING_DELIVERY_LINE",
|
|
644
|
-
INTERNAL_DELIVERY = "INTERNAL_DELIVERY",
|
|
645
|
-
STOCK_ADJUSTMENT = "STOCK_ADJUSTMENT",
|
|
646
|
-
PAYMENT = "PAYMENT",
|
|
647
|
-
EXPENSE = "EXPENSE",
|
|
648
|
-
PRODUCTION_ORDER = "PRODUCTION_ORDER",
|
|
649
|
-
PRODUCTION_ORDER_LINE = "PRODUCTION_ORDER_LINE",
|
|
650
|
-
JOB_CARD = "JOB_CARD",
|
|
651
|
-
DELIVERY_JOB = "DELIVERY_JOB",
|
|
652
|
-
VEHICLE = "VEHICLE",
|
|
653
|
-
MAINTENANCE_ORDER = "MAINTENANCE_ORDER",
|
|
654
|
-
MAINTENANCE_ORDER_LINE = "MAINTENANCE_ORDER_LINE",
|
|
655
|
-
FUEL_ENTRY = "FUEL_ENTRY",
|
|
656
|
-
USER = "USER",
|
|
657
|
-
IDENTIFIER_GROUP = "IDENTIFIER_GROUP",
|
|
658
|
-
WAREHOUSE = "WAREHOUSE",
|
|
659
|
-
POINT_OF_SALE = "POINT_OF_SALE",
|
|
660
|
-
BANK_ACCOUNT = "BANK_ACCOUNT",
|
|
661
|
-
BANK_TRANSACTION = "BANK_TRANSACTION",
|
|
662
|
-
JOURNAL_ENTRY = "JOURNAL_ENTRY",
|
|
663
|
-
FIXED_ASSET = "FIXED_ASSET",
|
|
664
|
-
RULE = "RULE",
|
|
665
|
-
BILL = "BILL",
|
|
666
|
-
BILL_LINE = "BILL_LINE",
|
|
667
|
-
LEASE = "LEASE",
|
|
668
|
-
PROPERTY = "PROPERTY",
|
|
669
|
-
PRICELIST = "PRICELIST",
|
|
670
|
-
PRICELIST_LINE = "PRICELIST_LINE",
|
|
671
|
-
CUSTOM_REPORT = "CUSTOM_REPORT",
|
|
672
|
-
PRODUCT_LOCATION = "PRODUCT_LOCATION",
|
|
673
|
-
BOM_COMPONENT = "BOM_COMPONENT",
|
|
674
|
-
BOM_OPERATION = "BOM_OPERATION",
|
|
675
|
-
RETURN_SALES_ORDER = "RETURN_SALES_ORDER",
|
|
676
|
-
RETURN_INVOICE = "RETURN_INVOICE"
|
|
677
|
-
}
|
|
678
|
-
declare enum DataType {
|
|
679
|
-
TEXT = "TEXT",
|
|
680
|
-
NUMBER = "NUMBER",
|
|
681
|
-
CURRENCY = "CURRENCY",
|
|
682
|
-
DATE = "DATE",
|
|
683
|
-
DATETIME = "DATETIME",
|
|
684
|
-
DROPDOWN = "DROPDOWN",
|
|
685
|
-
SELECT = "SELECT",
|
|
686
|
-
JSON = "JSON",
|
|
687
|
-
BOOLEAN = "BOOLEAN",
|
|
688
|
-
FILE_ARRAY = "FILE_ARRAY",
|
|
689
|
-
REFERENCE = "REFERENCE"
|
|
565
|
+
product: Partial<Product>;
|
|
566
|
+
account: Partial<Account>;
|
|
567
|
+
expense: Partial<Expense>;
|
|
690
568
|
}
|
|
569
|
+
|
|
570
|
+
type EntityType = 'CUSTOMER' | 'SUPPLIER' | 'ACCOUNT' | 'PRODUCT' | 'SERVICE' | 'PRODUCT_ITEM' | 'RENTAL_ORDER' | 'SALES_ORDER' | 'SALES_ORDER_LINE' | 'WORK_ORDER' | 'WORK_ORDER_LINE' | 'SERVICE_ORDER' | 'SERVICE_ORDER_LINE' | 'PURCHASE_ORDER' | 'PURCHASE_ORDER_LINE' | 'INVOICE' | 'INVOICE_LINE' | 'QUOTE' | 'QUOTE_LINE' | 'OUTGOING_DELIVERY' | 'OUTGOING_DELIVERY_LINE' | 'INCOMING_DELIVERY' | 'INCOMING_DELIVERY_LINE' | 'INTERNAL_DELIVERY' | 'STOCK_ADJUSTMENT' | 'PAYMENT' | 'EXPENSE' | 'PRODUCTION_ORDER' | 'PRODUCTION_ORDER_LINE' | 'JOB_CARD' | 'DELIVERY_JOB' | 'VEHICLE' | 'MAINTENANCE_ORDER' | 'MAINTENANCE_ORDER_LINE' | 'FUEL_ENTRY' | 'USER' | 'IDENTIFIER_GROUP' | 'WAREHOUSE' | 'POINT_OF_SALE' | 'BANK_ACCOUNT' | 'BANK_TRANSACTION' | 'JOURNAL_ENTRY' | 'FIXED_ASSET' | 'RULE' | 'BILL' | 'BILL_LINE' | 'LEASE' | 'PROPERTY' | 'PRICELIST' | 'PRICELIST_LINE' | 'CUSTOM_REPORT' | 'PRODUCT_LOCATION' | 'BOM_COMPONENT' | 'BOM_OPERATION' | 'RETURN_SALES_ORDER' | 'RETURN_INVOICE';
|
|
571
|
+
type DataType = 'TEXT' | 'NUMBER' | 'CURRENCY' | 'DATE' | 'DATETIME' | 'DROPDOWN' | 'SELECT' | 'JSON' | 'BOOLEAN' | 'FILE_ARRAY' | 'REFERENCE';
|
|
691
572
|
interface CustomField {
|
|
692
573
|
id: string;
|
|
693
574
|
entityType: EntityType;
|
|
@@ -707,9 +588,9 @@ interface CustomField {
|
|
|
707
588
|
interface PointOfSale {
|
|
708
589
|
id: string;
|
|
709
590
|
name: string;
|
|
710
|
-
identifierGroup: IdentifierGroup
|
|
711
|
-
warehouse: Warehouse
|
|
712
|
-
salesOrders: SalesOrder[];
|
|
591
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
592
|
+
warehouse: Partial<Warehouse>;
|
|
593
|
+
salesOrders: Partial<SalesOrder>[];
|
|
713
594
|
}
|
|
714
595
|
|
|
715
596
|
interface IdentifierGroup {
|
|
@@ -718,31 +599,17 @@ interface IdentifierGroup {
|
|
|
718
599
|
nextNum: number;
|
|
719
600
|
nextNumMonthly: number;
|
|
720
601
|
nextNumYearly: number;
|
|
721
|
-
identifierTokens: IdentifierToken[];
|
|
602
|
+
identifierTokens: Partial<IdentifierToken>[];
|
|
722
603
|
entityType?: EntityType;
|
|
723
|
-
pointOfSales: PointOfSale[];
|
|
724
|
-
salesOrders: SalesOrder[];
|
|
725
|
-
quotes: Quote[];
|
|
726
|
-
invoices: Invoice[];
|
|
727
|
-
purchaseOrders: PurchaseOrder[];
|
|
728
|
-
bills: Bill[];
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
declare enum IdentifierTokenType {
|
|
732
|
-
SLASH = "SLASH",
|
|
733
|
-
DASH = "DASH",
|
|
734
|
-
UNDERSCORE = "UNDERSCORE",
|
|
735
|
-
DATE = "DATE",
|
|
736
|
-
YEAR = "YEAR",
|
|
737
|
-
YEAR_TWO_DIGITS = "YEAR_TWO_DIGITS",
|
|
738
|
-
MONTH = "MONTH",
|
|
739
|
-
MONTH_ROMAN = "MONTH_ROMAN",
|
|
740
|
-
DOCUMENT_NUMBER = "DOCUMENT_NUMBER",
|
|
741
|
-
DOCUMENT_NUMBER_YEARLY = "DOCUMENT_NUMBER_YEARLY",
|
|
742
|
-
DOCUMENT_NUMBER_MONTHLY = "DOCUMENT_NUMBER_MONTHLY",
|
|
743
|
-
COMPANY_PREFIX = "COMPANY_PREFIX",
|
|
744
|
-
TEXT = "TEXT"
|
|
604
|
+
pointOfSales: Partial<PointOfSale>[];
|
|
605
|
+
salesOrders: Partial<SalesOrder>[];
|
|
606
|
+
quotes: Partial<Quote>[];
|
|
607
|
+
invoices: Partial<Invoice>[];
|
|
608
|
+
purchaseOrders: Partial<PurchaseOrder>[];
|
|
609
|
+
bills: Partial<Bill>[];
|
|
745
610
|
}
|
|
611
|
+
|
|
612
|
+
type IdentifierTokenType = 'SLASH' | 'DASH' | 'UNDERSCORE' | 'DATE' | 'YEAR' | 'YEAR_TWO_DIGITS' | 'MONTH' | 'MONTH_ROMAN' | 'DOCUMENT_NUMBER' | 'DOCUMENT_NUMBER_YEARLY' | 'DOCUMENT_NUMBER_MONTHLY' | 'COMPANY_PREFIX' | 'TEXT';
|
|
746
613
|
interface IdentifierToken {
|
|
747
614
|
id: string;
|
|
748
615
|
order: number;
|
|
@@ -750,8 +617,8 @@ interface IdentifierToken {
|
|
|
750
617
|
text?: string;
|
|
751
618
|
entityType?: EntityType;
|
|
752
619
|
numberPadding: number;
|
|
753
|
-
subsidiary: Subsidiary
|
|
754
|
-
identifierGroup: IdentifierGroup
|
|
620
|
+
subsidiary: Partial<Subsidiary>;
|
|
621
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
755
622
|
}
|
|
756
623
|
|
|
757
624
|
interface Subsidiary {
|
|
@@ -759,28 +626,28 @@ interface Subsidiary {
|
|
|
759
626
|
name: string;
|
|
760
627
|
address: string;
|
|
761
628
|
documentPrefix?: string;
|
|
762
|
-
salesOrders: SalesOrder[];
|
|
763
|
-
rentalOrders: RentalOrder[];
|
|
764
|
-
deliveryJobs: DeliveryJob[];
|
|
765
|
-
quotes: Quote[];
|
|
766
|
-
purchaseOrders: PurchaseOrder[];
|
|
767
|
-
invoices: Invoice[];
|
|
768
|
-
expenses: Expense[];
|
|
769
|
-
identifierTokens: IdentifierToken[];
|
|
770
|
-
outgoingDeliveries: OutgoingDelivery[];
|
|
771
|
-
incomingDeliveries: OutgoingDelivery[];
|
|
629
|
+
salesOrders: Partial<SalesOrder>[];
|
|
630
|
+
rentalOrders: Partial<RentalOrder>[];
|
|
631
|
+
deliveryJobs: Partial<DeliveryJob>[];
|
|
632
|
+
quotes: Partial<Quote>[];
|
|
633
|
+
purchaseOrders: Partial<PurchaseOrder>[];
|
|
634
|
+
invoices: Partial<Invoice>[];
|
|
635
|
+
expenses: Partial<Expense>[];
|
|
636
|
+
identifierTokens: Partial<IdentifierToken>[];
|
|
637
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
638
|
+
incomingDeliveries: Partial<OutgoingDelivery>[];
|
|
772
639
|
}
|
|
773
640
|
|
|
774
641
|
interface Expense extends Order {
|
|
775
642
|
pphAmount: number;
|
|
776
|
-
supplier: Supplier
|
|
777
|
-
purchaseOrder: PurchaseOrder
|
|
778
|
-
expenseLines: ExpenseLine[];
|
|
779
|
-
account: Account
|
|
780
|
-
createdBy: User
|
|
781
|
-
journalEntry: JournalEntry
|
|
782
|
-
subsidiary: Subsidiary
|
|
783
|
-
payments: Payment[];
|
|
643
|
+
supplier: Partial<Supplier>;
|
|
644
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
645
|
+
expenseLines: Partial<ExpenseLine>[];
|
|
646
|
+
account: Partial<Account>;
|
|
647
|
+
createdBy: Partial<User>;
|
|
648
|
+
journalEntry: Partial<JournalEntry>;
|
|
649
|
+
subsidiary: Partial<Subsidiary>;
|
|
650
|
+
payments: Partial<Payment>[];
|
|
784
651
|
createdAt: string | Date;
|
|
785
652
|
updatedAt: string | Date;
|
|
786
653
|
}
|
|
@@ -790,91 +657,53 @@ interface BankAccount {
|
|
|
790
657
|
name: string;
|
|
791
658
|
accountNumber?: string;
|
|
792
659
|
currentBalance: number;
|
|
793
|
-
account: Account
|
|
794
|
-
bankTransactions: BankTransaction[];
|
|
660
|
+
account: Partial<Account>;
|
|
661
|
+
bankTransactions: Partial<BankTransaction>[];
|
|
795
662
|
}
|
|
796
663
|
|
|
797
664
|
interface BankTransaction {
|
|
798
665
|
id: string;
|
|
799
|
-
bankAccount: BankAccount
|
|
666
|
+
bankAccount: Partial<BankAccount>;
|
|
800
667
|
date?: string;
|
|
801
668
|
amount: number;
|
|
802
669
|
memo: string;
|
|
803
670
|
customFields: any;
|
|
804
|
-
payments: Payment[];
|
|
671
|
+
payments: Partial<Payment>[];
|
|
805
672
|
createdAt: string | Date;
|
|
806
673
|
}
|
|
807
674
|
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
DEBIT_CARD = "DEBIT_CARD",
|
|
811
|
-
CREDIT_CARD = "CREDIT_CARD",
|
|
812
|
-
QRIS = "QRIS"
|
|
813
|
-
}
|
|
814
|
-
declare enum PaymentType {
|
|
815
|
-
IN = "IN",
|
|
816
|
-
OUT = "OUT"
|
|
817
|
-
}
|
|
675
|
+
type PaymentMethodEnum = 'CASH' | 'DEBIT_CARD' | 'CREDIT_CARD' | 'QRIS';
|
|
676
|
+
type PaymentType = 'IN' | 'OUT';
|
|
818
677
|
interface Payment {
|
|
819
678
|
id: string;
|
|
820
679
|
type: PaymentType;
|
|
821
680
|
paymentMethod?: PaymentMethodEnum;
|
|
822
|
-
incomingPaymentMethod: IncomingPaymentMethod
|
|
681
|
+
incomingPaymentMethod: Partial<IncomingPaymentMethod>;
|
|
823
682
|
date?: string;
|
|
824
683
|
amount: number;
|
|
825
684
|
memo: string;
|
|
826
|
-
invoice: Invoice
|
|
827
|
-
expense: Expense
|
|
828
|
-
bill: Bill
|
|
685
|
+
invoice: Partial<Invoice>;
|
|
686
|
+
expense: Partial<Expense>;
|
|
687
|
+
bill: Partial<Bill>;
|
|
829
688
|
currency: Currency;
|
|
830
|
-
bankTransaction: BankTransaction
|
|
689
|
+
bankTransaction: Partial<BankTransaction>;
|
|
831
690
|
customFields: any;
|
|
832
|
-
journalEntry: JournalEntry
|
|
833
|
-
createdBy: User
|
|
691
|
+
journalEntry: Partial<JournalEntry>;
|
|
692
|
+
createdBy: Partial<User>;
|
|
834
693
|
}
|
|
835
694
|
|
|
836
|
-
|
|
837
|
-
QRIS = "QRIS"
|
|
838
|
-
}
|
|
695
|
+
type PaymentGatewayType = 'QRIS';
|
|
839
696
|
interface IncomingPaymentMethod {
|
|
840
697
|
id: string;
|
|
841
698
|
name: string;
|
|
842
|
-
payments: Payment[];
|
|
699
|
+
payments: Partial<Payment>[];
|
|
843
700
|
paymentGatewayType?: PaymentGatewayType;
|
|
844
|
-
account: Account
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
declare enum AccountType {
|
|
848
|
-
DIVIDEND = "DIVIDEND",
|
|
849
|
-
EXPENSE = "EXPENSE",
|
|
850
|
-
ASSET = "ASSET",
|
|
851
|
-
LIABILITY = "LIABILITY",
|
|
852
|
-
EQUITY = "EQUITY",
|
|
853
|
-
REVENUE = "REVENUE"
|
|
854
|
-
}
|
|
855
|
-
declare enum AccountDefaultEnum {
|
|
856
|
-
PRODUCT_INVENTORY = "PRODUCT_INVENTORY",
|
|
857
|
-
PRODUCT_EXPENSE = "PRODUCT_EXPENSE",
|
|
858
|
-
PRODUCT_INCOME = "PRODUCT_INCOME",
|
|
859
|
-
REVENUE = "REVENUE",
|
|
860
|
-
EXPENSE = "EXPENSE",
|
|
861
|
-
ACCOUNTS_RECEIVABLE = "ACCOUNTS_RECEIVABLE",
|
|
862
|
-
ACCOUNTS_PAYABLE = "ACCOUNTS_PAYABLE",
|
|
863
|
-
EXCHANGE_GAIN_OR_LOSS = "EXCHANGE_GAIN_OR_LOSS",
|
|
864
|
-
VAT_INPUT = "VAT_INPUT",
|
|
865
|
-
VAT_OUTPUT = "VAT_OUTPUT"
|
|
866
|
-
}
|
|
867
|
-
declare enum AccountSubtype {
|
|
868
|
-
CASH_AND_BANK = "CASH_AND_BANK",
|
|
869
|
-
CURRENT_ASSETS = "CURRENT_ASSETS",
|
|
870
|
-
NON_CURRENT_ASSETS = "NON_CURRENT_ASSETS",
|
|
871
|
-
CURRENT_LIABILITIES = "CURRENT_LIABILITIES",
|
|
872
|
-
NON_CURRENT_LIABILITIES = "NON_CURRENT_LIABILITIES",
|
|
873
|
-
OTHER_INCOME = "OTHER_INCOME",
|
|
874
|
-
COST_OF_REVENUE = "COST_OF_REVENUE",
|
|
875
|
-
DEPRECIATION = "DEPRECIATION",
|
|
876
|
-
OTHER_EXPENSES = "OTHER_EXPENSES"
|
|
701
|
+
account: Partial<Account>;
|
|
877
702
|
}
|
|
703
|
+
|
|
704
|
+
type AccountType = 'DIVIDEND' | 'EXPENSE' | 'ASSET' | 'LIABILITY' | 'EQUITY' | 'REVENUE';
|
|
705
|
+
type AccountDefaultEnum = 'PRODUCT_INVENTORY' | 'PRODUCT_EXPENSE' | 'PRODUCT_INCOME' | 'REVENUE' | 'EXPENSE' | 'ACCOUNTS_RECEIVABLE' | 'ACCOUNTS_PAYABLE' | 'EXCHANGE_GAIN_OR_LOSS' | 'VAT_INPUT' | 'VAT_OUTPUT';
|
|
706
|
+
type AccountSubtype = 'CASH_AND_BANK' | 'CURRENT_ASSETS' | 'NON_CURRENT_ASSETS' | 'CURRENT_LIABILITIES' | 'NON_CURRENT_LIABILITIES' | 'OTHER_INCOME' | 'COST_OF_REVENUE' | 'DEPRECIATION' | 'OTHER_EXPENSES';
|
|
878
707
|
interface Account {
|
|
879
708
|
id: string;
|
|
880
709
|
code: string;
|
|
@@ -882,40 +711,40 @@ interface Account {
|
|
|
882
711
|
type: AccountType;
|
|
883
712
|
subtype?: AccountSubtype;
|
|
884
713
|
default?: AccountDefaultEnum;
|
|
885
|
-
inventoryProducts: Product[];
|
|
886
|
-
incomeProducts: Product[];
|
|
887
|
-
expenseProducts: Product[];
|
|
888
|
-
assetFixedAssets: FixedAsset[];
|
|
889
|
-
depreciationFixedAssets: FixedAsset[];
|
|
890
|
-
expenseFixedAssets: FixedAsset[];
|
|
891
|
-
journalEntryLines: JournalEntryLine[];
|
|
892
|
-
incomingPaymentMethods: IncomingPaymentMethod[];
|
|
893
|
-
expenses: Expense[];
|
|
894
|
-
expenseLines: ExpenseLine[];
|
|
895
|
-
bankAccounts: BankAccount[];
|
|
714
|
+
inventoryProducts: Partial<Product>[];
|
|
715
|
+
incomeProducts: Partial<Product>[];
|
|
716
|
+
expenseProducts: Partial<Product>[];
|
|
717
|
+
assetFixedAssets: Partial<FixedAsset>[];
|
|
718
|
+
depreciationFixedAssets: Partial<FixedAsset>[];
|
|
719
|
+
expenseFixedAssets: Partial<FixedAsset>[];
|
|
720
|
+
journalEntryLines: Partial<JournalEntryLine>[];
|
|
721
|
+
incomingPaymentMethods: Partial<IncomingPaymentMethod>[];
|
|
722
|
+
expenses: Partial<Expense>[];
|
|
723
|
+
expenseLines: Partial<ExpenseLine>[];
|
|
724
|
+
bankAccounts: Partial<BankAccount>[];
|
|
896
725
|
}
|
|
897
726
|
|
|
898
727
|
interface JournalEntryLine {
|
|
899
728
|
id: string;
|
|
900
|
-
account: Account
|
|
729
|
+
account: Partial<Account>;
|
|
901
730
|
description: string;
|
|
902
731
|
debit: number;
|
|
903
732
|
credit: number;
|
|
904
|
-
journalEntry: JournalEntry
|
|
733
|
+
journalEntry: Partial<JournalEntry>;
|
|
905
734
|
}
|
|
906
735
|
|
|
907
736
|
interface JournalEntry {
|
|
908
737
|
id: string;
|
|
909
738
|
date?: string;
|
|
910
|
-
journalEntryLines: JournalEntryLine[];
|
|
911
|
-
purchaseOrder: PurchaseOrder
|
|
912
|
-
bill: Bill
|
|
913
|
-
salesOrder: SalesOrder
|
|
914
|
-
expense: Expense
|
|
915
|
-
|
|
916
|
-
invoice: Invoice
|
|
917
|
-
fixedAsset: FixedAsset
|
|
918
|
-
createdBy: User
|
|
739
|
+
journalEntryLines: Partial<JournalEntryLine>[];
|
|
740
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
741
|
+
bill: Partial<Bill>;
|
|
742
|
+
salesOrder: Partial<SalesOrder>;
|
|
743
|
+
expense: Partial<Expense>;
|
|
744
|
+
payments: Partial<Payment>[];
|
|
745
|
+
invoice: Partial<Invoice>;
|
|
746
|
+
fixedAsset: Partial<FixedAsset>;
|
|
747
|
+
createdBy: Partial<User>;
|
|
919
748
|
memo: string;
|
|
920
749
|
isAutomated: boolean;
|
|
921
750
|
createdAt: string | Date;
|
|
@@ -924,44 +753,44 @@ interface JournalEntry {
|
|
|
924
753
|
|
|
925
754
|
interface BillLine extends OrderLine {
|
|
926
755
|
id: string;
|
|
927
|
-
bill: Bill
|
|
928
|
-
product: Product
|
|
756
|
+
bill: Partial<Bill>;
|
|
757
|
+
product: Partial<Product>;
|
|
929
758
|
}
|
|
930
759
|
|
|
931
760
|
interface Bill extends Order {
|
|
932
761
|
id: string;
|
|
933
|
-
supplier: Supplier
|
|
762
|
+
supplier: Partial<Supplier>;
|
|
934
763
|
downpayment: number;
|
|
935
764
|
downpaymentDeductions: number;
|
|
936
|
-
journalEntry: JournalEntry
|
|
937
|
-
identifierGroup: IdentifierGroup
|
|
938
|
-
purchaseOrder: PurchaseOrder
|
|
939
|
-
billLines: BillLine[];
|
|
940
|
-
payments: Payment[];
|
|
765
|
+
journalEntry: Partial<JournalEntry>;
|
|
766
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
767
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
768
|
+
billLines: Partial<BillLine>[];
|
|
769
|
+
payments: Partial<Payment>[];
|
|
941
770
|
}
|
|
942
771
|
|
|
943
772
|
interface IncomingDeliveryLine extends DeliveryLine {
|
|
944
|
-
product: Product
|
|
945
|
-
incomingDelivery: IncomingDelivery
|
|
946
|
-
productItem: ProductItem
|
|
773
|
+
product: Partial<Product>;
|
|
774
|
+
incomingDelivery: Partial<IncomingDelivery>;
|
|
775
|
+
productItem: Partial<ProductItem>;
|
|
947
776
|
}
|
|
948
777
|
|
|
949
778
|
interface IncomingDelivery extends Delivery {
|
|
950
|
-
incomingDeliveryLines: IncomingDeliveryLine[];
|
|
951
|
-
destinationWarehouse: Warehouse
|
|
952
|
-
purchaseOrder: PurchaseOrder
|
|
953
|
-
salesOrder: SalesOrder
|
|
954
|
-
supplier: Supplier
|
|
955
|
-
customer: Customer
|
|
956
|
-
subsidiary: Subsidiary
|
|
957
|
-
rentalOrder: RentalOrder
|
|
958
|
-
createdBy: User
|
|
779
|
+
incomingDeliveryLines: Partial<IncomingDeliveryLine>[];
|
|
780
|
+
destinationWarehouse: Partial<Warehouse>;
|
|
781
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
782
|
+
salesOrder: Partial<SalesOrder>;
|
|
783
|
+
supplier: Partial<Supplier>;
|
|
784
|
+
customer: Partial<Customer>;
|
|
785
|
+
subsidiary: Partial<Subsidiary>;
|
|
786
|
+
rentalOrder: Partial<RentalOrder>;
|
|
787
|
+
createdBy: Partial<User>;
|
|
959
788
|
}
|
|
960
789
|
|
|
961
790
|
interface PricelistLine {
|
|
962
791
|
id: string;
|
|
963
|
-
pricelist: Pricelist
|
|
964
|
-
product: Product
|
|
792
|
+
pricelist: Partial<Pricelist>;
|
|
793
|
+
product: Partial<Product>;
|
|
965
794
|
price?: number;
|
|
966
795
|
customFields: any;
|
|
967
796
|
}
|
|
@@ -969,9 +798,9 @@ interface PricelistLine {
|
|
|
969
798
|
interface Pricelist {
|
|
970
799
|
id: string;
|
|
971
800
|
name: string;
|
|
972
|
-
customers: Customer[];
|
|
973
|
-
suppliers: Supplier[];
|
|
974
|
-
pricelistLines: PricelistLine[];
|
|
801
|
+
customers: Partial<Customer>[];
|
|
802
|
+
suppliers: Partial<Supplier>[];
|
|
803
|
+
pricelistLines: Partial<PricelistLine>[];
|
|
975
804
|
customFields: any;
|
|
976
805
|
currency: Currency;
|
|
977
806
|
}
|
|
@@ -980,23 +809,23 @@ interface ProductSupplier {
|
|
|
980
809
|
id: string;
|
|
981
810
|
quantity?: number;
|
|
982
811
|
price?: number;
|
|
983
|
-
product: Product
|
|
984
|
-
supplier: Supplier
|
|
812
|
+
product: Partial<Product>;
|
|
813
|
+
supplier: Partial<Supplier>;
|
|
985
814
|
}
|
|
986
815
|
|
|
987
816
|
interface Supplier extends Contact {
|
|
988
|
-
purchaseOrders: PurchaseOrder
|
|
989
|
-
bills: Bill[];
|
|
990
|
-
expenses: Expense[];
|
|
991
|
-
incomingDeliveries: IncomingDelivery[];
|
|
817
|
+
purchaseOrders: Partial<PurchaseOrder>;
|
|
818
|
+
bills: Partial<Bill>[];
|
|
819
|
+
expenses: Partial<Expense>[];
|
|
820
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
992
821
|
importTaxPercentage: number;
|
|
993
|
-
pricelist: Pricelist
|
|
994
|
-
productSuppliers: ProductSupplier[];
|
|
822
|
+
pricelist: Partial<Pricelist>;
|
|
823
|
+
productSuppliers: Partial<ProductSupplier>[];
|
|
995
824
|
}
|
|
996
825
|
|
|
997
826
|
interface PurchaseOrderLine extends OrderLine {
|
|
998
|
-
purchaseOrder: PurchaseOrder
|
|
999
|
-
product: Product
|
|
827
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
828
|
+
product: Partial<Product>;
|
|
1000
829
|
}
|
|
1001
830
|
|
|
1002
831
|
interface Approval {
|
|
@@ -1006,83 +835,80 @@ interface Approval {
|
|
|
1006
835
|
}
|
|
1007
836
|
|
|
1008
837
|
interface PurchaseOrderApproval extends Approval {
|
|
1009
|
-
purchaseOrder: PurchaseOrder
|
|
1010
|
-
user: User
|
|
838
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
839
|
+
user: Partial<User>;
|
|
1011
840
|
}
|
|
1012
841
|
|
|
1013
842
|
interface PurchaseOrder extends Order {
|
|
1014
843
|
exchangeRate: number;
|
|
1015
|
-
supplier: Supplier
|
|
1016
|
-
purchaseOrderLines: PurchaseOrderLine[];
|
|
1017
|
-
createdBy: User
|
|
1018
|
-
expenses: Expense[];
|
|
1019
|
-
bills: Bill[];
|
|
1020
|
-
incomingShipments: IncomingShipment[];
|
|
1021
|
-
incomingDeliveries: IncomingDelivery[];
|
|
1022
|
-
purchaseOrderApprovals: PurchaseOrderApproval
|
|
1023
|
-
journalEntry: JournalEntry
|
|
1024
|
-
identifierGroup: IdentifierGroup
|
|
1025
|
-
subsidiary: Subsidiary
|
|
1026
|
-
dropshipSalesOrder: SalesOrder
|
|
844
|
+
supplier: Partial<Supplier>;
|
|
845
|
+
purchaseOrderLines: Partial<PurchaseOrderLine>[];
|
|
846
|
+
createdBy: Partial<User>;
|
|
847
|
+
expenses: Partial<Expense>[];
|
|
848
|
+
bills: Partial<Bill>[];
|
|
849
|
+
incomingShipments: Partial<IncomingShipment>[];
|
|
850
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
851
|
+
purchaseOrderApprovals: Partial<PurchaseOrderApproval>;
|
|
852
|
+
journalEntry: Partial<JournalEntry>;
|
|
853
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
854
|
+
subsidiary: Partial<Subsidiary>;
|
|
855
|
+
dropshipSalesOrder: Partial<SalesOrder>;
|
|
1027
856
|
}
|
|
1028
857
|
|
|
1029
858
|
interface IncomingShipment extends Shipment {
|
|
1030
859
|
id: string;
|
|
1031
|
-
destinationWarehouse: Warehouse
|
|
1032
|
-
product: Product
|
|
1033
|
-
purchaseOrder: PurchaseOrder
|
|
860
|
+
destinationWarehouse: Partial<Warehouse>;
|
|
861
|
+
product: Partial<Product>;
|
|
862
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
1034
863
|
}
|
|
1035
864
|
|
|
1036
865
|
interface OutgoingShipment extends Shipment {
|
|
1037
866
|
id: string;
|
|
1038
|
-
sourceWarehouse: Warehouse
|
|
1039
|
-
product: Product
|
|
1040
|
-
salesOrder: SalesOrder
|
|
867
|
+
sourceWarehouse: Partial<Warehouse>;
|
|
868
|
+
product: Partial<Product>;
|
|
869
|
+
salesOrder: Partial<SalesOrder>;
|
|
1041
870
|
}
|
|
1042
871
|
|
|
1043
872
|
interface InternalDeliveryLine extends DeliveryLine {
|
|
1044
|
-
product: Product
|
|
1045
|
-
productItem: ProductItem
|
|
1046
|
-
internalDelivery: InternalDelivery
|
|
873
|
+
product: Partial<Product>;
|
|
874
|
+
productItem: Partial<ProductItem>;
|
|
875
|
+
internalDelivery: Partial<InternalDelivery>;
|
|
1047
876
|
}
|
|
1048
877
|
|
|
1049
878
|
interface InternalDelivery extends Delivery {
|
|
1050
|
-
internalDeliveryLines: InternalDeliveryLine[];
|
|
1051
|
-
sourceWarehouse: Warehouse
|
|
1052
|
-
destinationWarehouse: Warehouse
|
|
1053
|
-
createdBy: User
|
|
879
|
+
internalDeliveryLines: Partial<InternalDeliveryLine>[];
|
|
880
|
+
sourceWarehouse: Partial<Warehouse>;
|
|
881
|
+
destinationWarehouse: Partial<Warehouse>;
|
|
882
|
+
createdBy: Partial<User>;
|
|
1054
883
|
}
|
|
1055
884
|
|
|
1056
|
-
|
|
1057
|
-
IN = "IN",
|
|
1058
|
-
OUT = "OUT"
|
|
1059
|
-
}
|
|
885
|
+
type StockAdjustmentType = 'IN' | 'OUT';
|
|
1060
886
|
interface StockAdjustment {
|
|
1061
887
|
id: string;
|
|
1062
888
|
date?: string;
|
|
1063
|
-
warehouse: Warehouse
|
|
1064
|
-
product: Product
|
|
889
|
+
warehouse: Partial<Warehouse>;
|
|
890
|
+
product: Partial<Product>;
|
|
1065
891
|
type: StockAdjustmentType;
|
|
1066
892
|
memo: string;
|
|
1067
|
-
user: User
|
|
893
|
+
user: Partial<User>;
|
|
1068
894
|
quantity: number;
|
|
1069
895
|
createdAt: string | Date;
|
|
1070
|
-
createdBy: User
|
|
896
|
+
createdBy: Partial<User>;
|
|
1071
897
|
}
|
|
1072
898
|
|
|
1073
899
|
interface CustomEntityObject {
|
|
1074
900
|
id: string;
|
|
1075
|
-
customEntitySchema: CustomEntitySchema
|
|
1076
|
-
customEntityFieldValues: CustomEntityFieldValue[];
|
|
901
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
902
|
+
customEntityFieldValues: Partial<CustomEntityFieldValue>[];
|
|
1077
903
|
createdAt: string | Date;
|
|
1078
904
|
updatedAt: string | Date;
|
|
1079
|
-
createdBy: User
|
|
905
|
+
createdBy: Partial<User>;
|
|
1080
906
|
}
|
|
1081
907
|
|
|
1082
908
|
interface CustomEntityFieldValue {
|
|
1083
909
|
id: string;
|
|
1084
|
-
customEntityObject: CustomEntityObject
|
|
1085
|
-
customEntityField: CustomEntityField
|
|
910
|
+
customEntityObject: Partial<CustomEntityObject>;
|
|
911
|
+
customEntityField: Partial<CustomEntityField>;
|
|
1086
912
|
valueText?: string;
|
|
1087
913
|
valueNumber?: number;
|
|
1088
914
|
valueCurrency?: number;
|
|
@@ -1102,28 +928,13 @@ interface CustomEntityFieldValue {
|
|
|
1102
928
|
|
|
1103
929
|
interface CustomEntityFieldPermission {
|
|
1104
930
|
id: string;
|
|
1105
|
-
customEntityField: CustomEntityField
|
|
1106
|
-
userPersona: UserPersona
|
|
931
|
+
customEntityField: Partial<CustomEntityField>;
|
|
932
|
+
userPersona: Partial<UserPersona>;
|
|
1107
933
|
read: boolean;
|
|
1108
934
|
update: boolean;
|
|
1109
935
|
}
|
|
1110
936
|
|
|
1111
|
-
|
|
1112
|
-
TEXT = "TEXT",
|
|
1113
|
-
NUMBER = "NUMBER",
|
|
1114
|
-
CURRENCY = "CURRENCY",
|
|
1115
|
-
BOOLEAN = "BOOLEAN",
|
|
1116
|
-
FILE = "FILE",
|
|
1117
|
-
FILE_ARRAY = "FILE_ARRAY",
|
|
1118
|
-
DATE = "DATE",
|
|
1119
|
-
JSON = "JSON",
|
|
1120
|
-
LOCATION = "LOCATION",
|
|
1121
|
-
SELECT = "SELECT",
|
|
1122
|
-
REFERENCE = "REFERENCE",
|
|
1123
|
-
REFERENCE_ARRAY = "REFERENCE_ARRAY",
|
|
1124
|
-
CUSTOM_ENTITY_REFERENCE = "CUSTOM_ENTITY_REFERENCE",
|
|
1125
|
-
CUSTOM_ENTITY_REFERENCE_ARRAY = "CUSTOM_ENTITY_REFERENCE_ARRAY"
|
|
1126
|
-
}
|
|
937
|
+
type CustomEntityFieldType = 'TEXT' | 'NUMBER' | 'CURRENCY' | 'BOOLEAN' | 'FILE' | 'FILE_ARRAY' | 'DATE' | 'JSON' | 'LOCATION' | 'SELECT' | 'REFERENCE' | 'REFERENCE_ARRAY' | 'CUSTOM_ENTITY_REFERENCE' | 'CUSTOM_ENTITY_REFERENCE_ARRAY';
|
|
1127
938
|
interface CustomEntityField {
|
|
1128
939
|
id: string;
|
|
1129
940
|
key: string;
|
|
@@ -1137,41 +948,22 @@ interface CustomEntityField {
|
|
|
1137
948
|
isFilterable: boolean;
|
|
1138
949
|
isShownOnMainTable: boolean;
|
|
1139
950
|
entityType?: EntityType;
|
|
1140
|
-
customEntitySchemaReference: CustomEntitySchema
|
|
951
|
+
customEntitySchemaReference: Partial<CustomEntitySchema>;
|
|
1141
952
|
jsonSchema?: any;
|
|
1142
953
|
options: string[];
|
|
1143
|
-
customEntitySchema: CustomEntitySchema
|
|
1144
|
-
customEntityFieldValues: CustomEntityFieldValue[];
|
|
1145
|
-
customEntityFieldPermissions: CustomEntityFieldPermission[];
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
declare enum AutomationScriptTriggerName {
|
|
1149
|
-
QUOTE = "QUOTE",
|
|
1150
|
-
PURCHASE_ORDER = "PURCHASE_ORDER",
|
|
1151
|
-
SALES_ORDER = "SALES_ORDER",
|
|
1152
|
-
PURCHASE_ORDER_LINE = "PURCHASE_ORDER_LINE",
|
|
1153
|
-
SALES_ORDER_LINE = "SALES_ORDER_LINE",
|
|
1154
|
-
DELIVERY_JOB = "DELIVERY_JOB",
|
|
1155
|
-
INVOICE = "INVOICE",
|
|
1156
|
-
PRODUCT = "PRODUCT",
|
|
1157
|
-
CUSTOM_OBJECT = "CUSTOM_OBJECT",
|
|
1158
|
-
DAILY = "DAILY",
|
|
1159
|
-
HOURLY = "HOURLY",
|
|
1160
|
-
MINUTE = "MINUTE",
|
|
1161
|
-
BUSINESS_INTELLIGENCE_REPORT = "BUSINESS_INTELLIGENCE_REPORT"
|
|
954
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
955
|
+
customEntityFieldValues: Partial<CustomEntityFieldValue>[];
|
|
956
|
+
customEntityFieldPermissions: Partial<CustomEntityFieldPermission>[];
|
|
1162
957
|
}
|
|
958
|
+
|
|
959
|
+
type AutomationScriptTriggerName = 'QUOTE' | 'PURCHASE_ORDER' | 'SALES_ORDER' | 'PURCHASE_ORDER_LINE' | 'SALES_ORDER_LINE' | 'DELIVERY_JOB' | 'INVOICE' | 'PRODUCT' | 'CUSTOM_OBJECT' | 'DAILY' | 'HOURLY' | 'MINUTE' | 'BUSINESS_INTELLIGENCE_REPORT';
|
|
1163
960
|
interface AutomationScriptTriggerEntity {
|
|
1164
961
|
id: string;
|
|
1165
962
|
name: AutomationScriptTriggerName;
|
|
1166
|
-
automationScript: AutomationScript
|
|
963
|
+
automationScript: Partial<AutomationScript>;
|
|
1167
964
|
}
|
|
1168
965
|
|
|
1169
|
-
|
|
1170
|
-
PENDING = "PENDING",
|
|
1171
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
1172
|
-
COMPLETED = "COMPLETED",
|
|
1173
|
-
FAILED = "FAILED"
|
|
1174
|
-
}
|
|
966
|
+
type AutomationJobStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
|
|
1175
967
|
interface AutomationJob {
|
|
1176
968
|
id: string;
|
|
1177
969
|
stdout: string;
|
|
@@ -1182,33 +974,12 @@ interface AutomationJob {
|
|
|
1182
974
|
errorMessage?: string;
|
|
1183
975
|
createdAt: string | Date;
|
|
1184
976
|
completedAt?: string | Date;
|
|
1185
|
-
createdBy: User
|
|
1186
|
-
automationScript: AutomationScript
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
declare enum EntityEvent {
|
|
1190
|
-
CREATE = "CREATE",
|
|
1191
|
-
BEFORE_UPDATE = "BEFORE_UPDATE",
|
|
1192
|
-
AFTER_UPDATE = "AFTER_UPDATE",
|
|
1193
|
-
DELETE = "DELETE"
|
|
1194
|
-
}
|
|
1195
|
-
declare enum AutomationScriptTrigger {
|
|
1196
|
-
QUOTE = "QUOTE",
|
|
1197
|
-
PURCHASE_ORDER = "PURCHASE_ORDER",
|
|
1198
|
-
SALES_ORDER = "SALES_ORDER",
|
|
1199
|
-
PURCHASE_ORDER_LINE = "PURCHASE_ORDER_LINE",
|
|
1200
|
-
SALES_ORDER_LINE = "SALES_ORDER_LINE",
|
|
1201
|
-
DELIVERY_JOB = "DELIVERY_JOB",
|
|
1202
|
-
INVOICE = "INVOICE",
|
|
1203
|
-
PRODUCT = "PRODUCT",
|
|
1204
|
-
INCOMING_DELIVERY = "INCOMING_DELIVERY",
|
|
1205
|
-
INCOMING_DELIVERY_LINE = "INCOMING_DELIVERY_LINE",
|
|
1206
|
-
CUSTOM_OBJECT = "CUSTOM_OBJECT",
|
|
1207
|
-
DAILY = "DAILY",
|
|
1208
|
-
HOURLY = "HOURLY",
|
|
1209
|
-
MINUTE = "MINUTE",
|
|
1210
|
-
BUSINESS_INTELLIGENCE_REPORT = "BUSINESS_INTELLIGENCE_REPORT"
|
|
977
|
+
createdBy: Partial<User>;
|
|
978
|
+
automationScript: Partial<AutomationScript>;
|
|
1211
979
|
}
|
|
980
|
+
|
|
981
|
+
type EntityEvent = 'CREATE' | 'BEFORE_UPDATE' | 'AFTER_UPDATE' | 'DELETE';
|
|
982
|
+
type AutomationScriptTrigger = 'QUOTE' | 'PURCHASE_ORDER' | 'SALES_ORDER' | 'PURCHASE_ORDER_LINE' | 'SALES_ORDER_LINE' | 'DELIVERY_JOB' | 'INVOICE' | 'PRODUCT' | 'INCOMING_DELIVERY' | 'INCOMING_DELIVERY_LINE' | 'CUSTOM_OBJECT' | 'DAILY' | 'HOURLY' | 'MINUTE' | 'BUSINESS_INTELLIGENCE_REPORT';
|
|
1212
983
|
interface AutomationScript {
|
|
1213
984
|
id: string;
|
|
1214
985
|
isSync: boolean;
|
|
@@ -1216,12 +987,12 @@ interface AutomationScript {
|
|
|
1216
987
|
name: string;
|
|
1217
988
|
script: string;
|
|
1218
989
|
triggers: AutomationScriptTrigger[];
|
|
1219
|
-
automationScriptTriggers: AutomationScriptTriggerEntity[];
|
|
990
|
+
automationScriptTriggers: Partial<AutomationScriptTriggerEntity>[];
|
|
1220
991
|
customSchemaNames: string[];
|
|
1221
|
-
createdBy: User
|
|
1222
|
-
automationJobs: AutomationJob[];
|
|
1223
|
-
userActions: UserAction[];
|
|
1224
|
-
customReports: CustomReport[];
|
|
992
|
+
createdBy: Partial<User>;
|
|
993
|
+
automationJobs: Partial<AutomationJob>[];
|
|
994
|
+
userActions: Partial<UserAction>[];
|
|
995
|
+
customReports: Partial<CustomReport>[];
|
|
1225
996
|
}
|
|
1226
997
|
|
|
1227
998
|
interface CustomReport {
|
|
@@ -1230,58 +1001,40 @@ interface CustomReport {
|
|
|
1230
1001
|
description: string;
|
|
1231
1002
|
config: any;
|
|
1232
1003
|
filters: any;
|
|
1233
|
-
automationScript: AutomationScript
|
|
1234
|
-
form: Form
|
|
1004
|
+
automationScript: Partial<AutomationScript>;
|
|
1005
|
+
form: Partial<Form>;
|
|
1235
1006
|
}
|
|
1236
1007
|
|
|
1237
|
-
|
|
1238
|
-
CUSTOM_ENTITY = "CUSTOM_ENTITY",
|
|
1239
|
-
CHECKOUT = "CHECKOUT"
|
|
1240
|
-
}
|
|
1008
|
+
type FormLocation = 'CUSTOM_ENTITY' | 'CHECKOUT';
|
|
1241
1009
|
interface Form {
|
|
1242
1010
|
id: string;
|
|
1243
1011
|
name: string;
|
|
1244
1012
|
template: any;
|
|
1245
|
-
customEntitySchema: CustomEntitySchema
|
|
1246
|
-
userActions: UserAction[];
|
|
1247
|
-
customReports: CustomReport[];
|
|
1013
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
1014
|
+
userActions: Partial<UserAction>[];
|
|
1015
|
+
customReports: Partial<CustomReport>[];
|
|
1248
1016
|
}
|
|
1249
1017
|
|
|
1250
1018
|
interface CustomEntitySchemaPermission {
|
|
1251
1019
|
id: string;
|
|
1252
|
-
userPersona: UserPersona
|
|
1020
|
+
userPersona: Partial<UserPersona>;
|
|
1253
1021
|
create: boolean;
|
|
1254
1022
|
read: boolean;
|
|
1255
1023
|
update: boolean;
|
|
1256
1024
|
delete: boolean;
|
|
1257
|
-
customEntitySchema: CustomEntitySchema
|
|
1025
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
1258
1026
|
}
|
|
1259
1027
|
|
|
1260
|
-
|
|
1261
|
-
CREATE = "CREATE",
|
|
1262
|
-
READ = "READ",
|
|
1263
|
-
UPDATE = "UPDATE",
|
|
1264
|
-
DELETE = "DELETE"
|
|
1265
|
-
}
|
|
1028
|
+
type UserPersonaCustomSchemaPermissionType = 'CREATE' | 'READ' | 'UPDATE' | 'DELETE';
|
|
1266
1029
|
interface UserPersonaCustomSchemaPermission {
|
|
1267
1030
|
id: string;
|
|
1268
|
-
userPersona: UserPersona
|
|
1269
|
-
customEntitySchema: CustomEntitySchema
|
|
1031
|
+
userPersona: Partial<UserPersona>;
|
|
1032
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
1270
1033
|
type: UserPersonaCustomSchemaPermissionType;
|
|
1271
1034
|
}
|
|
1272
1035
|
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
ACCOUNTING = "ACCOUNTING",
|
|
1276
|
-
PURCHASING = "PURCHASING",
|
|
1277
|
-
INVENTORY = "INVENTORY",
|
|
1278
|
-
FLEET = "FLEET",
|
|
1279
|
-
AUTOMATION = "AUTOMATION"
|
|
1280
|
-
}
|
|
1281
|
-
declare enum CustomEntitySchemaType {
|
|
1282
|
-
LEGACY = "LEGACY",
|
|
1283
|
-
DOCUMENT = "DOCUMENT"
|
|
1284
|
-
}
|
|
1036
|
+
type Module = 'SALES' | 'ACCOUNTING' | 'PURCHASING' | 'INVENTORY' | 'FLEET' | 'AUTOMATION';
|
|
1037
|
+
type CustomEntitySchemaType = 'LEGACY' | 'DOCUMENT';
|
|
1285
1038
|
interface CustomEntitySchema {
|
|
1286
1039
|
id: string;
|
|
1287
1040
|
name: string;
|
|
@@ -1289,22 +1042,19 @@ interface CustomEntitySchema {
|
|
|
1289
1042
|
label: string;
|
|
1290
1043
|
module?: Module;
|
|
1291
1044
|
isFilterableByCreatedAt: boolean;
|
|
1292
|
-
customEntityFields: CustomEntityField[];
|
|
1293
|
-
customEntityObjects: CustomEntityObject[];
|
|
1294
|
-
forms: Form[];
|
|
1295
|
-
userActions: UserAction[];
|
|
1296
|
-
referencingCustomEntityFields: CustomEntityField[];
|
|
1297
|
-
customEntitySchemaPermissions: CustomEntitySchemaPermission[];
|
|
1298
|
-
userPersonaCustomSchemaPermissions: UserPersonaCustomSchemaPermission[];
|
|
1045
|
+
customEntityFields: Partial<CustomEntityField>[];
|
|
1046
|
+
customEntityObjects: Partial<CustomEntityObject>[];
|
|
1047
|
+
forms: Partial<Form>[];
|
|
1048
|
+
userActions: Partial<UserAction>[];
|
|
1049
|
+
referencingCustomEntityFields: Partial<CustomEntityField>[];
|
|
1050
|
+
customEntitySchemaPermissions: Partial<CustomEntitySchemaPermission>[];
|
|
1051
|
+
userPersonaCustomSchemaPermissions: Partial<UserPersonaCustomSchemaPermission>[];
|
|
1299
1052
|
}
|
|
1300
1053
|
|
|
1301
|
-
|
|
1302
|
-
LEASE_EDIT_MODAL_FOOTER = "LEASE_EDIT_MODAL_FOOTER",
|
|
1303
|
-
LEASE_EDIT_MODAL_HEADER = "LEASE_EDIT_MODAL_HEADER"
|
|
1304
|
-
}
|
|
1054
|
+
type WebComponentSlotName = 'LEASE_EDIT_MODAL_FOOTER' | 'LEASE_EDIT_MODAL_HEADER';
|
|
1305
1055
|
interface WebComponentSlot {
|
|
1306
1056
|
id: string;
|
|
1307
|
-
webComponent: WebComponent
|
|
1057
|
+
webComponent: Partial<WebComponent>;
|
|
1308
1058
|
name: WebComponentSlotName;
|
|
1309
1059
|
createdAt: string | Date;
|
|
1310
1060
|
}
|
|
@@ -1314,36 +1064,26 @@ interface WebComponent {
|
|
|
1314
1064
|
name: string;
|
|
1315
1065
|
label?: string;
|
|
1316
1066
|
code: string;
|
|
1317
|
-
slots: WebComponentSlot[];
|
|
1318
|
-
userActions: UserAction[];
|
|
1067
|
+
slots: Partial<WebComponentSlot>[];
|
|
1068
|
+
userActions: Partial<UserAction>[];
|
|
1319
1069
|
}
|
|
1320
1070
|
|
|
1321
|
-
|
|
1322
|
-
SALES_ORDER = "SALES_ORDER",
|
|
1323
|
-
QUICK_ACTION = "QUICK_ACTION",
|
|
1324
|
-
INVOICE = "INVOICE",
|
|
1325
|
-
CUSTOM_OBJECT = "CUSTOM_OBJECT"
|
|
1326
|
-
}
|
|
1071
|
+
type UserActionType = 'SALES_ORDER' | 'QUICK_ACTION' | 'INVOICE' | 'CUSTOM_OBJECT';
|
|
1327
1072
|
interface UserAction {
|
|
1328
1073
|
id: string;
|
|
1329
1074
|
type: UserActionType;
|
|
1330
|
-
customEntitySchema: CustomEntitySchema
|
|
1075
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
1331
1076
|
name: string;
|
|
1332
|
-
form: Form
|
|
1333
|
-
automationScript: AutomationScript
|
|
1334
|
-
webComponent: WebComponent
|
|
1335
|
-
userPersona: UserPersona
|
|
1077
|
+
form: Partial<Form>;
|
|
1078
|
+
automationScript: Partial<AutomationScript>;
|
|
1079
|
+
webComponent: Partial<WebComponent>;
|
|
1080
|
+
userPersona: Partial<UserPersona>;
|
|
1336
1081
|
}
|
|
1337
1082
|
|
|
1338
|
-
|
|
1339
|
-
CREATE = "CREATE",
|
|
1340
|
-
READ = "READ",
|
|
1341
|
-
UPDATE = "UPDATE",
|
|
1342
|
-
DELETE = "DELETE"
|
|
1343
|
-
}
|
|
1083
|
+
type UserPersonaEntityPermissionType = 'CREATE' | 'READ' | 'UPDATE' | 'DELETE';
|
|
1344
1084
|
interface UserPersonaEntityPermission {
|
|
1345
1085
|
id: string;
|
|
1346
|
-
userPersona: UserPersona
|
|
1086
|
+
userPersona: Partial<UserPersona>;
|
|
1347
1087
|
entityType: EntityType;
|
|
1348
1088
|
entityId?: string;
|
|
1349
1089
|
type: UserPersonaEntityPermissionType;
|
|
@@ -1356,33 +1096,33 @@ interface EntityObjectPermission {
|
|
|
1356
1096
|
read: boolean;
|
|
1357
1097
|
update: boolean;
|
|
1358
1098
|
delete: boolean;
|
|
1359
|
-
userPersona: UserPersona
|
|
1099
|
+
userPersona: Partial<UserPersona>;
|
|
1360
1100
|
}
|
|
1361
1101
|
|
|
1362
1102
|
interface UserPersonaProductPermission {
|
|
1363
1103
|
id: string;
|
|
1364
|
-
userPersona: UserPersona
|
|
1365
|
-
product: Product
|
|
1104
|
+
userPersona: Partial<UserPersona>;
|
|
1105
|
+
product: Partial<Product>;
|
|
1366
1106
|
}
|
|
1367
1107
|
|
|
1368
1108
|
interface UserPersona {
|
|
1369
1109
|
id: string;
|
|
1370
1110
|
name: string;
|
|
1371
|
-
users: User[];
|
|
1372
|
-
userActions: UserAction[];
|
|
1373
|
-
userPersonaEntityPermissions: UserPersonaEntityPermission[];
|
|
1374
|
-
customEntitySchemaPermissions: CustomEntitySchemaPermission[];
|
|
1375
|
-
customEntityFieldPermissions: CustomEntityFieldPermission[];
|
|
1376
|
-
entityObjectPermissions: EntityObjectPermission[];
|
|
1377
|
-
userPersonaCustomSchemaPermissions: UserPersonaCustomSchemaPermission[];
|
|
1378
|
-
userPersonaProductPermissions: UserPersonaProductPermission[];
|
|
1379
|
-
userPersonaWarehousePermissions: UserPersonaWarehousePermission[];
|
|
1111
|
+
users: Partial<User>[];
|
|
1112
|
+
userActions: Partial<UserAction>[];
|
|
1113
|
+
userPersonaEntityPermissions: Partial<UserPersonaEntityPermission>[];
|
|
1114
|
+
customEntitySchemaPermissions: Partial<CustomEntitySchemaPermission>[];
|
|
1115
|
+
customEntityFieldPermissions: Partial<CustomEntityFieldPermission>[];
|
|
1116
|
+
entityObjectPermissions: Partial<EntityObjectPermission>[];
|
|
1117
|
+
userPersonaCustomSchemaPermissions: Partial<UserPersonaCustomSchemaPermission>[];
|
|
1118
|
+
userPersonaProductPermissions: Partial<UserPersonaProductPermission>[];
|
|
1119
|
+
userPersonaWarehousePermissions: Partial<UserPersonaWarehousePermission>[];
|
|
1380
1120
|
}
|
|
1381
1121
|
|
|
1382
1122
|
interface UserPersonaWarehousePermission {
|
|
1383
1123
|
id: string;
|
|
1384
|
-
userPersona: UserPersona
|
|
1385
|
-
warehouse: Warehouse
|
|
1124
|
+
userPersona: Partial<UserPersona>;
|
|
1125
|
+
warehouse: Partial<Warehouse>;
|
|
1386
1126
|
}
|
|
1387
1127
|
|
|
1388
1128
|
interface Warehouse {
|
|
@@ -1390,101 +1130,97 @@ interface Warehouse {
|
|
|
1390
1130
|
name: string;
|
|
1391
1131
|
address: string;
|
|
1392
1132
|
isDefault: boolean;
|
|
1393
|
-
warehouseProducts: WarehouseProduct[];
|
|
1394
|
-
productItems: ProductItem[];
|
|
1395
|
-
productLocations: ProductLocation[];
|
|
1396
|
-
workstations: Workstation[];
|
|
1397
|
-
incomingShipments: IncomingShipment[];
|
|
1398
|
-
outgoingShipments: OutgoingShipment[];
|
|
1399
|
-
incomingDeliveries: IncomingDelivery[];
|
|
1400
|
-
outgoingDeliveries: OutgoingDelivery[];
|
|
1401
|
-
internalSourceDeliveries: InternalDelivery[];
|
|
1402
|
-
internalDestinationDeliveries: InternalDelivery[];
|
|
1403
|
-
stockAdjustments: StockAdjustment[];
|
|
1404
|
-
productionOrders: ProductionOrder[];
|
|
1405
|
-
salesOrders: SalesOrder[];
|
|
1406
|
-
pointOfSales: PointOfSale[];
|
|
1407
|
-
userPersonaWarehousePermissions: UserPersonaWarehousePermission[];
|
|
1133
|
+
warehouseProducts: Partial<WarehouseProduct>[];
|
|
1134
|
+
productItems: Partial<ProductItem>[];
|
|
1135
|
+
productLocations: Partial<ProductLocation>[];
|
|
1136
|
+
workstations: Partial<Workstation>[];
|
|
1137
|
+
incomingShipments: Partial<IncomingShipment>[];
|
|
1138
|
+
outgoingShipments: Partial<OutgoingShipment>[];
|
|
1139
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
1140
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
1141
|
+
internalSourceDeliveries: Partial<InternalDelivery>[];
|
|
1142
|
+
internalDestinationDeliveries: Partial<InternalDelivery>[];
|
|
1143
|
+
stockAdjustments: Partial<StockAdjustment>[];
|
|
1144
|
+
productionOrders: Partial<ProductionOrder>[];
|
|
1145
|
+
salesOrders: Partial<SalesOrder>[];
|
|
1146
|
+
pointOfSales: Partial<PointOfSale>[];
|
|
1147
|
+
userPersonaWarehousePermissions: Partial<UserPersonaWarehousePermission>[];
|
|
1408
1148
|
}
|
|
1409
1149
|
|
|
1410
1150
|
interface OutgoingDelivery extends Delivery {
|
|
1411
|
-
outgoingDeliveryLines: OutgoingDeliveryLine[];
|
|
1412
|
-
sourceWarehouse: Warehouse
|
|
1413
|
-
customer: Customer
|
|
1414
|
-
salesOrder: SalesOrder
|
|
1415
|
-
rentalOrder: RentalOrder
|
|
1416
|
-
subsidiary: Subsidiary
|
|
1417
|
-
createdBy: User
|
|
1151
|
+
outgoingDeliveryLines: Partial<OutgoingDeliveryLine>[];
|
|
1152
|
+
sourceWarehouse: Partial<Warehouse>;
|
|
1153
|
+
customer: Partial<Customer>;
|
|
1154
|
+
salesOrder: Partial<SalesOrder>;
|
|
1155
|
+
rentalOrder: Partial<RentalOrder>;
|
|
1156
|
+
subsidiary: Partial<Subsidiary>;
|
|
1157
|
+
createdBy: Partial<User>;
|
|
1418
1158
|
}
|
|
1419
1159
|
|
|
1420
1160
|
interface RentalOrder extends Order {
|
|
1421
1161
|
id: string;
|
|
1422
|
-
rentalOrderLines: RentalOrderLine[];
|
|
1423
|
-
customer: Customer
|
|
1424
|
-
invoices: Invoice
|
|
1425
|
-
outgoingDeliveries: OutgoingDelivery[];
|
|
1426
|
-
incomingDeliveries: IncomingDelivery[];
|
|
1427
|
-
subsidiary: Subsidiary
|
|
1162
|
+
rentalOrderLines: Partial<RentalOrderLine>[];
|
|
1163
|
+
customer: Partial<Customer>;
|
|
1164
|
+
invoices: Partial<Invoice>;
|
|
1165
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
1166
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
1167
|
+
subsidiary: Partial<Subsidiary>;
|
|
1428
1168
|
}
|
|
1429
1169
|
|
|
1430
1170
|
interface InvoiceApproval extends Approval {
|
|
1431
|
-
invoice: Invoice
|
|
1432
|
-
user: User
|
|
1171
|
+
invoice: Partial<Invoice>;
|
|
1172
|
+
user: Partial<User>;
|
|
1433
1173
|
signature?: string;
|
|
1434
1174
|
signedAt?: string | Date;
|
|
1435
1175
|
signatureMethod?: 'STORED' | 'CAPTURED';
|
|
1436
1176
|
}
|
|
1437
1177
|
|
|
1438
|
-
|
|
1439
|
-
NOT_PAID = "NOT_PAID",
|
|
1440
|
-
PARTIALLY_PAID = "PARTIALLY_PAID",
|
|
1441
|
-
FULLY_PAID = "FULLY_PAID"
|
|
1442
|
-
}
|
|
1178
|
+
type PaymentStatus = 'NOT_PAID' | 'PARTIALLY_PAID' | 'FULLY_PAID';
|
|
1443
1179
|
interface Invoice extends Order {
|
|
1444
1180
|
paymentStatus?: PaymentStatus;
|
|
1445
1181
|
pphAmount: number;
|
|
1446
1182
|
downpayment: number;
|
|
1447
1183
|
downpaymentDeductions: number;
|
|
1448
|
-
invoiceLines: InvoiceLine[];
|
|
1449
|
-
salesOrder: SalesOrder
|
|
1450
|
-
lease: Lease
|
|
1451
|
-
rentalOrder: RentalOrder
|
|
1452
|
-
customer: Customer
|
|
1453
|
-
payments: Payment[];
|
|
1454
|
-
printJobs: PrintJob[];
|
|
1455
|
-
subsidiary: Subsidiary
|
|
1456
|
-
createdBy: User
|
|
1457
|
-
identifierGroup: IdentifierGroup
|
|
1458
|
-
journalEntry: JournalEntry
|
|
1459
|
-
invoiceApprovals: InvoiceApproval[];
|
|
1184
|
+
invoiceLines: Partial<InvoiceLine>[];
|
|
1185
|
+
salesOrder: Partial<SalesOrder>;
|
|
1186
|
+
lease: Partial<Lease>;
|
|
1187
|
+
rentalOrder: Partial<RentalOrder>;
|
|
1188
|
+
customer: Partial<Customer>;
|
|
1189
|
+
payments: Partial<Payment>[];
|
|
1190
|
+
printJobs: Partial<PrintJob>[];
|
|
1191
|
+
subsidiary: Partial<Subsidiary>;
|
|
1192
|
+
createdBy: Partial<User>;
|
|
1193
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
1194
|
+
journalEntry: Partial<JournalEntry>;
|
|
1195
|
+
invoiceApprovals: Partial<InvoiceApproval>[];
|
|
1460
1196
|
}
|
|
1461
1197
|
|
|
1462
1198
|
interface SalesOrderApproval extends Approval {
|
|
1463
|
-
salesOrder: SalesOrder
|
|
1464
|
-
user: User
|
|
1199
|
+
salesOrder: Partial<SalesOrder>;
|
|
1200
|
+
user: Partial<User>;
|
|
1465
1201
|
}
|
|
1466
1202
|
|
|
1467
1203
|
interface StoreProductVariant {
|
|
1468
1204
|
id: string;
|
|
1469
|
-
storeProduct: StoreProduct
|
|
1470
|
-
storeProductAttributeValues: StoreProductAttributeValue[];
|
|
1471
|
-
product: Product
|
|
1472
|
-
cartLines: CartLine[];
|
|
1205
|
+
storeProduct: Partial<StoreProduct>;
|
|
1206
|
+
storeProductAttributeValues: Partial<StoreProductAttributeValue>[];
|
|
1207
|
+
product: Partial<Product>;
|
|
1208
|
+
cartLines: Partial<CartLine>[];
|
|
1473
1209
|
}
|
|
1474
1210
|
|
|
1475
1211
|
interface StoreProductAttributeValueMapping {
|
|
1476
1212
|
id: string;
|
|
1477
|
-
product: Product
|
|
1478
|
-
storeProductAttributeValue: StoreProductAttributeValue
|
|
1213
|
+
product: Partial<Product>;
|
|
1214
|
+
storeProductAttributeValue: Partial<StoreProductAttributeValue>;
|
|
1479
1215
|
}
|
|
1480
1216
|
|
|
1481
1217
|
interface StoreProductAttributeValue {
|
|
1482
1218
|
id: string;
|
|
1483
1219
|
name?: string;
|
|
1484
|
-
storeProductAttribute: StoreProductAttribute
|
|
1485
|
-
storeProductVariants: StoreProductVariant[];
|
|
1220
|
+
storeProductAttribute: Partial<StoreProductAttribute>;
|
|
1221
|
+
storeProductVariants: Partial<StoreProductVariant>[];
|
|
1486
1222
|
label?: string;
|
|
1487
|
-
storeProductAttributeValueMappings: StoreProductAttributeValueMapping[];
|
|
1223
|
+
storeProductAttributeValueMappings: Partial<StoreProductAttributeValueMapping>[];
|
|
1488
1224
|
}
|
|
1489
1225
|
|
|
1490
1226
|
interface StoreProductAttribute {
|
|
@@ -1492,22 +1228,22 @@ interface StoreProductAttribute {
|
|
|
1492
1228
|
label?: string;
|
|
1493
1229
|
name?: string;
|
|
1494
1230
|
order: number;
|
|
1495
|
-
storeProduct: StoreProduct
|
|
1496
|
-
storeProductAttributeValues: StoreProductAttributeValue[];
|
|
1231
|
+
storeProduct: Partial<StoreProduct>;
|
|
1232
|
+
storeProductAttributeValues: Partial<StoreProductAttributeValue>[];
|
|
1497
1233
|
}
|
|
1498
1234
|
|
|
1499
1235
|
interface StoreProductGroup {
|
|
1500
1236
|
id: string;
|
|
1501
1237
|
name: string;
|
|
1502
1238
|
ancestry?: string;
|
|
1503
|
-
store: Store
|
|
1504
|
-
storeProducts: StoreProduct[];
|
|
1239
|
+
store: Partial<Store>;
|
|
1240
|
+
storeProducts: Partial<StoreProduct>[];
|
|
1505
1241
|
}
|
|
1506
1242
|
|
|
1507
1243
|
interface StoreUser {
|
|
1508
1244
|
id: string;
|
|
1509
|
-
store: Store
|
|
1510
|
-
carts: Cart[];
|
|
1245
|
+
store: Partial<Store>;
|
|
1246
|
+
carts: Partial<Cart>[];
|
|
1511
1247
|
}
|
|
1512
1248
|
|
|
1513
1249
|
interface Store {
|
|
@@ -1516,101 +1252,89 @@ interface Store {
|
|
|
1516
1252
|
currency: Currency;
|
|
1517
1253
|
description: string;
|
|
1518
1254
|
layout: any;
|
|
1519
|
-
storeProductGroups: StoreProductGroup[];
|
|
1520
|
-
storeProducts: StoreProduct[];
|
|
1521
|
-
storeUsers: StoreUser[];
|
|
1522
|
-
carts: Cart[];
|
|
1255
|
+
storeProductGroups: Partial<StoreProductGroup>[];
|
|
1256
|
+
storeProducts: Partial<StoreProduct>[];
|
|
1257
|
+
storeUsers: Partial<StoreUser>[];
|
|
1258
|
+
carts: Partial<Cart>[];
|
|
1523
1259
|
}
|
|
1524
1260
|
|
|
1525
1261
|
interface StoreProduct {
|
|
1526
1262
|
id: string;
|
|
1527
1263
|
name: string;
|
|
1528
1264
|
description: string;
|
|
1529
|
-
product: Product
|
|
1530
|
-
storeProductAttributes: StoreProductAttribute[];
|
|
1531
|
-
storeProductVariants: StoreProductVariant[];
|
|
1265
|
+
product: Partial<Product>;
|
|
1266
|
+
storeProductAttributes: Partial<StoreProductAttribute>[];
|
|
1267
|
+
storeProductVariants: Partial<StoreProductVariant>[];
|
|
1532
1268
|
images: string[];
|
|
1533
|
-
store: Store
|
|
1534
|
-
cartLines: CartLine[];
|
|
1535
|
-
storeProductGroup: StoreProductGroup
|
|
1269
|
+
store: Partial<Store>;
|
|
1270
|
+
cartLines: Partial<CartLine>[];
|
|
1271
|
+
storeProductGroup: Partial<StoreProductGroup>;
|
|
1536
1272
|
}
|
|
1537
1273
|
|
|
1538
1274
|
interface CartLine extends OrderLine {
|
|
1539
|
-
cart: Cart
|
|
1540
|
-
storeProduct: StoreProduct
|
|
1541
|
-
storeProductVariant: StoreProductVariant
|
|
1542
|
-
product: Product
|
|
1275
|
+
cart: Partial<Cart>;
|
|
1276
|
+
storeProduct: Partial<StoreProduct>;
|
|
1277
|
+
storeProductVariant: Partial<StoreProductVariant>;
|
|
1278
|
+
product: Partial<Product>;
|
|
1543
1279
|
}
|
|
1544
1280
|
|
|
1545
1281
|
interface Cart extends Order {
|
|
1546
|
-
customer: Customer
|
|
1547
|
-
cartLines: CartLine[];
|
|
1548
|
-
storeUser: StoreUser
|
|
1549
|
-
store: Store
|
|
1550
|
-
salesOrders: SalesOrder[];
|
|
1282
|
+
customer: Partial<Customer>;
|
|
1283
|
+
cartLines: Partial<CartLine>[];
|
|
1284
|
+
storeUser: Partial<StoreUser>;
|
|
1285
|
+
store: Partial<Store>;
|
|
1286
|
+
salesOrders: Partial<SalesOrder>[];
|
|
1551
1287
|
createdAt: string | Date;
|
|
1552
1288
|
}
|
|
1553
1289
|
|
|
1554
1290
|
interface ReturnSalesOrderLine extends OrderLine {
|
|
1555
1291
|
id: string;
|
|
1556
|
-
returnSalesOrder: ReturnSalesOrder
|
|
1557
|
-
product: Product
|
|
1292
|
+
returnSalesOrder: Partial<ReturnSalesOrder>;
|
|
1293
|
+
product: Partial<Product>;
|
|
1558
1294
|
}
|
|
1559
1295
|
|
|
1560
1296
|
interface ReturnSalesOrder extends Order {
|
|
1561
1297
|
id: string;
|
|
1562
|
-
returnSalesOrderLines: ReturnSalesOrderLine[];
|
|
1563
|
-
salesOrder: SalesOrder
|
|
1298
|
+
returnSalesOrderLines: Partial<ReturnSalesOrderLine>[];
|
|
1299
|
+
salesOrder: Partial<SalesOrder>;
|
|
1564
1300
|
}
|
|
1565
1301
|
|
|
1566
|
-
|
|
1567
|
-
WORK_ORDER = "WORK_ORDER",
|
|
1568
|
-
SERVICE_ORDER = "SERVICE_ORDER"
|
|
1569
|
-
}
|
|
1302
|
+
type SalesOrderType = 'WORK_ORDER' | 'SERVICE_ORDER';
|
|
1570
1303
|
interface SalesOrder extends Order {
|
|
1571
1304
|
type?: SalesOrderType;
|
|
1572
|
-
salesOrderLines: SalesOrderLine[];
|
|
1573
|
-
createdBy: User
|
|
1574
|
-
customer: Customer
|
|
1575
|
-
invoices: Invoice[];
|
|
1576
|
-
outgoingShipments: OutgoingShipment[];
|
|
1577
|
-
outgoingDeliveries: OutgoingDelivery[];
|
|
1578
|
-
incomingDeliveries: IncomingDelivery[];
|
|
1579
|
-
salesOrderApprovals: SalesOrderApproval[];
|
|
1580
|
-
printJobs: PrintJob[];
|
|
1581
|
-
subsidiary: Subsidiary
|
|
1582
|
-
identifierGroup: IdentifierGroup
|
|
1583
|
-
journalEntry: JournalEntry
|
|
1584
|
-
parentRefundSalesOrder: SalesOrder
|
|
1585
|
-
refundSalesOrders: SalesOrder[];
|
|
1586
|
-
warehouse: Warehouse
|
|
1587
|
-
pointOfSale: PointOfSale
|
|
1588
|
-
dropshipPurchaseOrders: PurchaseOrder[];
|
|
1589
|
-
cart: Cart
|
|
1590
|
-
returnSalesOrders: ReturnSalesOrder[];
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
1596
|
-
COMPLETED = "COMPLETED",
|
|
1597
|
-
FAILED = "FAILED"
|
|
1598
|
-
}
|
|
1599
|
-
declare enum PrintJobType {
|
|
1600
|
-
INVOICE = "INVOICE",
|
|
1601
|
-
SALES_ORDER = "SALES_ORDER",
|
|
1602
|
-
REPORT = "REPORT"
|
|
1603
|
-
}
|
|
1305
|
+
salesOrderLines: Partial<SalesOrderLine>[];
|
|
1306
|
+
createdBy: Partial<User>;
|
|
1307
|
+
customer: Partial<Customer>;
|
|
1308
|
+
invoices: Partial<Invoice>[];
|
|
1309
|
+
outgoingShipments: Partial<OutgoingShipment>[];
|
|
1310
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
1311
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
1312
|
+
salesOrderApprovals: Partial<SalesOrderApproval>[];
|
|
1313
|
+
printJobs: Partial<PrintJob>[];
|
|
1314
|
+
subsidiary: Partial<Subsidiary>;
|
|
1315
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
1316
|
+
journalEntry: Partial<JournalEntry>;
|
|
1317
|
+
parentRefundSalesOrder: Partial<SalesOrder>;
|
|
1318
|
+
refundSalesOrders: Partial<SalesOrder>[];
|
|
1319
|
+
warehouse: Partial<Warehouse>;
|
|
1320
|
+
pointOfSale: Partial<PointOfSale>;
|
|
1321
|
+
dropshipPurchaseOrders: Partial<PurchaseOrder>[];
|
|
1322
|
+
cart: Partial<Cart>;
|
|
1323
|
+
returnSalesOrders: Partial<ReturnSalesOrder>[];
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
type PrintJobStatus = 'QUEUED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
|
|
1327
|
+
type PrintJobType = 'INVOICE' | 'SALES_ORDER' | 'REPORT';
|
|
1604
1328
|
interface PrintJob {
|
|
1605
1329
|
id: string;
|
|
1606
1330
|
type?: PrintJobType;
|
|
1607
1331
|
status: PrintJobStatus;
|
|
1608
|
-
thermalPrinter: ThermalPrinter
|
|
1332
|
+
thermalPrinter: Partial<ThermalPrinter>;
|
|
1609
1333
|
errorMessage?: string;
|
|
1610
|
-
salesOrder: SalesOrder
|
|
1611
|
-
salesOrderLinePrintJobs: SalesOrderLinePrintJob[];
|
|
1334
|
+
salesOrder: Partial<SalesOrder>;
|
|
1335
|
+
salesOrderLinePrintJobs: Partial<SalesOrderLinePrintJob>[];
|
|
1612
1336
|
additionalData?: any;
|
|
1613
|
-
invoice: Invoice
|
|
1337
|
+
invoice: Partial<Invoice>;
|
|
1614
1338
|
createdAt: string | Date;
|
|
1615
1339
|
}
|
|
1616
1340
|
|
|
@@ -1618,17 +1342,17 @@ interface ThermalPrinter {
|
|
|
1618
1342
|
id: string;
|
|
1619
1343
|
name: string;
|
|
1620
1344
|
ipAddress: string;
|
|
1621
|
-
printJobs: PrintJob[];
|
|
1622
|
-
products: Product[];
|
|
1623
|
-
productGroups: ProductGroup[];
|
|
1345
|
+
printJobs: Partial<PrintJob>[];
|
|
1346
|
+
products: Partial<Product>[];
|
|
1347
|
+
productGroups: Partial<ProductGroup>[];
|
|
1624
1348
|
}
|
|
1625
1349
|
|
|
1626
1350
|
interface ProductGroup {
|
|
1627
1351
|
id: string;
|
|
1628
1352
|
name: string;
|
|
1629
1353
|
ancestry?: string;
|
|
1630
|
-
products: Product[];
|
|
1631
|
-
thermalPrinter: ThermalPrinter
|
|
1354
|
+
products: Partial<Product>[];
|
|
1355
|
+
thermalPrinter: Partial<ThermalPrinter>;
|
|
1632
1356
|
}
|
|
1633
1357
|
|
|
1634
1358
|
interface UnitConversion {
|
|
@@ -1636,13 +1360,13 @@ interface UnitConversion {
|
|
|
1636
1360
|
fromUnit: string;
|
|
1637
1361
|
toUnit: string;
|
|
1638
1362
|
factor: number;
|
|
1639
|
-
product: Product
|
|
1363
|
+
product: Partial<Product>;
|
|
1640
1364
|
}
|
|
1641
1365
|
|
|
1642
1366
|
interface QuoteLine extends OrderLine {
|
|
1643
1367
|
id: string;
|
|
1644
|
-
quote: Quote
|
|
1645
|
-
product: Product
|
|
1368
|
+
quote: Partial<Quote>;
|
|
1369
|
+
product: Partial<Product>;
|
|
1646
1370
|
}
|
|
1647
1371
|
|
|
1648
1372
|
interface Product {
|
|
@@ -1657,44 +1381,44 @@ interface Product {
|
|
|
1657
1381
|
purchasePrice?: number;
|
|
1658
1382
|
price?: number;
|
|
1659
1383
|
images: string[];
|
|
1660
|
-
productGroup: ProductGroup
|
|
1661
|
-
productItems: ProductItem[];
|
|
1662
|
-
unitConversions: UnitConversion[];
|
|
1663
|
-
salesOrderLines: SalesOrderLine
|
|
1664
|
-
purchaseOrderLines: PurchaseOrderLine
|
|
1665
|
-
invoiceLines: InvoiceLine
|
|
1666
|
-
expenseLines: ExpenseLine
|
|
1667
|
-
billLines: BillLine[];
|
|
1668
|
-
maintenanceOrderLines: MaintenanceOrderLine[];
|
|
1669
|
-
quoteLines: QuoteLine
|
|
1670
|
-
rentalOrderLines: RentalOrderLine[];
|
|
1671
|
-
warehouseProducts: WarehouseProduct[];
|
|
1672
|
-
workstationProducts: WorkstationProduct[];
|
|
1673
|
-
workstationTransfers: WorkstationTransfer[];
|
|
1674
|
-
stockAdjustments: StockAdjustment[];
|
|
1675
|
-
incomingShipments: IncomingShipment[];
|
|
1676
|
-
outgoingShipments: OutgoingShipment[];
|
|
1677
|
-
incomingDeliveryLines: IncomingDeliveryLine[];
|
|
1678
|
-
outgoingDeliveryLines: OutgoingDeliveryLine[];
|
|
1679
|
-
internalDeliveryLines: InternalDeliveryLine[];
|
|
1384
|
+
productGroup: Partial<ProductGroup>;
|
|
1385
|
+
productItems: Partial<ProductItem>[];
|
|
1386
|
+
unitConversions: Partial<UnitConversion>[];
|
|
1387
|
+
salesOrderLines: Partial<SalesOrderLine>;
|
|
1388
|
+
purchaseOrderLines: Partial<PurchaseOrderLine>;
|
|
1389
|
+
invoiceLines: Partial<InvoiceLine>;
|
|
1390
|
+
expenseLines: Partial<ExpenseLine>;
|
|
1391
|
+
billLines: Partial<BillLine>[];
|
|
1392
|
+
maintenanceOrderLines: Partial<MaintenanceOrderLine>[];
|
|
1393
|
+
quoteLines: Partial<QuoteLine>;
|
|
1394
|
+
rentalOrderLines: Partial<RentalOrderLine>[];
|
|
1395
|
+
warehouseProducts: Partial<WarehouseProduct>[];
|
|
1396
|
+
workstationProducts: Partial<WorkstationProduct>[];
|
|
1397
|
+
workstationTransfers: Partial<WorkstationTransfer>[];
|
|
1398
|
+
stockAdjustments: Partial<StockAdjustment>[];
|
|
1399
|
+
incomingShipments: Partial<IncomingShipment>[];
|
|
1400
|
+
outgoingShipments: Partial<OutgoingShipment>[];
|
|
1401
|
+
incomingDeliveryLines: Partial<IncomingDeliveryLine>[];
|
|
1402
|
+
outgoingDeliveryLines: Partial<OutgoingDeliveryLine>[];
|
|
1403
|
+
internalDeliveryLines: Partial<InternalDeliveryLine>[];
|
|
1680
1404
|
incomingStock: number;
|
|
1681
1405
|
inStock: number;
|
|
1682
1406
|
outgoingStock: number;
|
|
1683
1407
|
totalCostOfAvailableStock: number;
|
|
1684
|
-
billOfMaterials: BillOfMaterials[];
|
|
1685
|
-
bomComponents: BOMComponent[];
|
|
1686
|
-
productionOrders: ProductionOrder[];
|
|
1687
|
-
productionOrderLines: ProductionOrderLine[];
|
|
1688
|
-
storeProducts: StoreProduct[];
|
|
1689
|
-
storeProductAttributeValueMappings: StoreProductAttributeValueMapping[];
|
|
1690
|
-
cartLines: CartLine[];
|
|
1691
|
-
storeProductVariants: StoreProductVariant[];
|
|
1692
|
-
thermalPrinter: ThermalPrinter
|
|
1693
|
-
inventoryAccount: Account
|
|
1694
|
-
incomeAccount: Account
|
|
1695
|
-
expenseAccount: Account
|
|
1696
|
-
userPersonaProductPermissions: UserPersonaProductPermission[];
|
|
1697
|
-
productSuppliers: ProductSupplier[];
|
|
1408
|
+
billOfMaterials: Partial<BillOfMaterials>[];
|
|
1409
|
+
bomComponents: Partial<BOMComponent>[];
|
|
1410
|
+
productionOrders: Partial<ProductionOrder>[];
|
|
1411
|
+
productionOrderLines: Partial<ProductionOrderLine>[];
|
|
1412
|
+
storeProducts: Partial<StoreProduct>[];
|
|
1413
|
+
storeProductAttributeValueMappings: Partial<StoreProductAttributeValueMapping>[];
|
|
1414
|
+
cartLines: Partial<CartLine>[];
|
|
1415
|
+
storeProductVariants: Partial<StoreProductVariant>[];
|
|
1416
|
+
thermalPrinter: Partial<ThermalPrinter>;
|
|
1417
|
+
inventoryAccount: Partial<Account>;
|
|
1418
|
+
incomeAccount: Partial<Account>;
|
|
1419
|
+
expenseAccount: Partial<Account>;
|
|
1420
|
+
userPersonaProductPermissions: Partial<UserPersonaProductPermission>[];
|
|
1421
|
+
productSuppliers: Partial<ProductSupplier>[];
|
|
1698
1422
|
isService: boolean;
|
|
1699
1423
|
isDeleted: boolean;
|
|
1700
1424
|
createdAt: string | Date;
|
|
@@ -1706,8 +1430,8 @@ interface Product {
|
|
|
1706
1430
|
isTrackable: boolean;
|
|
1707
1431
|
automatedInventoryValuationEnabled: boolean;
|
|
1708
1432
|
customFields: any;
|
|
1709
|
-
pricelistLines: PricelistLine[];
|
|
1710
|
-
returnSalesOrderLines: ReturnSalesOrderLine[];
|
|
1433
|
+
pricelistLines: Partial<PricelistLine>[];
|
|
1434
|
+
returnSalesOrderLines: Partial<ReturnSalesOrderLine>[];
|
|
1711
1435
|
}
|
|
1712
1436
|
|
|
1713
1437
|
interface ProductItem {
|
|
@@ -1715,70 +1439,62 @@ interface ProductItem {
|
|
|
1715
1439
|
serialNumber: string;
|
|
1716
1440
|
description: string;
|
|
1717
1441
|
quantity: number;
|
|
1718
|
-
product: Product
|
|
1719
|
-
warehouse: Warehouse
|
|
1442
|
+
product: Partial<Product>;
|
|
1443
|
+
warehouse: Partial<Warehouse>;
|
|
1720
1444
|
customFields: any;
|
|
1721
|
-
rentalOrderLines: RentalOrderLine[];
|
|
1722
|
-
incomingDeliveryLines: IncomingDeliveryLine[];
|
|
1723
|
-
outgoingDeliveryLines: OutgoingDeliveryLine[];
|
|
1724
|
-
internalDeliveryLines: InternalDeliveryLine[];
|
|
1725
|
-
invoiceLines: InvoiceLine[];
|
|
1726
|
-
productionOrder: ProductionOrder
|
|
1727
|
-
productLocation: ProductLocation | null;
|
|
1728
|
-
productionOrderInput: ProductionOrder | null;
|
|
1729
|
-
productLocationTransfers: ProductLocationTransfer[];
|
|
1730
|
-
vehicleTires: VehicleTire[];
|
|
1445
|
+
rentalOrderLines: Partial<RentalOrderLine>[];
|
|
1446
|
+
incomingDeliveryLines: Partial<IncomingDeliveryLine>[];
|
|
1447
|
+
outgoingDeliveryLines: Partial<OutgoingDeliveryLine>[];
|
|
1448
|
+
internalDeliveryLines: Partial<InternalDeliveryLine>[];
|
|
1449
|
+
invoiceLines: Partial<InvoiceLine>[];
|
|
1450
|
+
productionOrder: Partial<ProductionOrder>;
|
|
1451
|
+
productLocation: Partial<ProductLocation> | null;
|
|
1452
|
+
productionOrderInput: Partial<ProductionOrder> | null;
|
|
1453
|
+
productLocationTransfers: Partial<ProductLocationTransfer>[];
|
|
1454
|
+
vehicleTires: Partial<VehicleTire>[];
|
|
1731
1455
|
createdAt: string | Date;
|
|
1732
1456
|
}
|
|
1733
1457
|
|
|
1734
1458
|
interface VehicleTire {
|
|
1735
1459
|
id: string;
|
|
1736
1460
|
position: string;
|
|
1737
|
-
productItem: ProductItem
|
|
1738
|
-
vehicle: Vehicle
|
|
1461
|
+
productItem: Partial<ProductItem>;
|
|
1462
|
+
vehicle: Partial<Vehicle>;
|
|
1739
1463
|
}
|
|
1740
1464
|
|
|
1741
|
-
|
|
1742
|
-
latitude = "latitude",
|
|
1743
|
-
longitude = "longitude",
|
|
1744
|
-
odometer = "odometer"
|
|
1745
|
-
}
|
|
1465
|
+
type TelemetryAttributeKey = 'latitude' | 'longitude' | 'odometer';
|
|
1746
1466
|
interface TelemetryAttribute {
|
|
1747
1467
|
id: string;
|
|
1748
1468
|
key: TelemetryAttributeKey;
|
|
1749
1469
|
value: number;
|
|
1750
|
-
telemetryEvent: TelemetryEvent
|
|
1470
|
+
telemetryEvent: Partial<TelemetryEvent>;
|
|
1751
1471
|
}
|
|
1752
1472
|
|
|
1753
1473
|
interface TelemetryEvent {
|
|
1754
1474
|
id: string;
|
|
1755
|
-
telemetryAttributes: TelemetryAttribute[];
|
|
1756
|
-
vehicle: Vehicle
|
|
1475
|
+
telemetryAttributes: Partial<TelemetryAttribute>[];
|
|
1476
|
+
vehicle: Partial<Vehicle>;
|
|
1757
1477
|
createdAt: string | Date;
|
|
1758
1478
|
}
|
|
1759
1479
|
|
|
1760
1480
|
interface Vehicle {
|
|
1761
1481
|
id: string;
|
|
1762
1482
|
name: string;
|
|
1763
|
-
fuelEntries: FuelEntry[];
|
|
1764
|
-
driver: User
|
|
1483
|
+
fuelEntries: Partial<FuelEntry>[];
|
|
1484
|
+
driver: Partial<User>;
|
|
1765
1485
|
registrationNumber?: string;
|
|
1766
1486
|
licensePlate?: string;
|
|
1767
1487
|
vin?: string;
|
|
1768
1488
|
customFields: any;
|
|
1769
|
-
deliveryJobs: DeliveryJob[];
|
|
1489
|
+
deliveryJobs: Partial<DeliveryJob>[];
|
|
1770
1490
|
axleConfiguration?: number[];
|
|
1771
|
-
vehicleTelemetries: VehicleTelemetry[];
|
|
1772
|
-
vehicleTires: VehicleTire[];
|
|
1773
|
-
telemetryEvents: TelemetryEvent[];
|
|
1774
|
-
maintenanceOrders: MaintenanceOrder[];
|
|
1491
|
+
vehicleTelemetries: Partial<VehicleTelemetry>[];
|
|
1492
|
+
vehicleTires: Partial<VehicleTire>[];
|
|
1493
|
+
telemetryEvents: Partial<TelemetryEvent>[];
|
|
1494
|
+
maintenanceOrders: Partial<MaintenanceOrder>[];
|
|
1775
1495
|
}
|
|
1776
1496
|
|
|
1777
|
-
|
|
1778
|
-
PENDING = "PENDING",
|
|
1779
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
1780
|
-
COMPLETED = "COMPLETED"
|
|
1781
|
-
}
|
|
1497
|
+
type DeliveryJobStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED';
|
|
1782
1498
|
interface DeliveryJob {
|
|
1783
1499
|
id: string;
|
|
1784
1500
|
identifier?: string;
|
|
@@ -1792,49 +1508,28 @@ interface DeliveryJob {
|
|
|
1792
1508
|
endAddress?: string;
|
|
1793
1509
|
status: DeliveryJobStatus;
|
|
1794
1510
|
customFields: any;
|
|
1795
|
-
costLines: CostLine[];
|
|
1796
|
-
customer: Customer
|
|
1511
|
+
costLines: Partial<CostLine>[];
|
|
1512
|
+
customer: Partial<Customer>;
|
|
1797
1513
|
revenue: number;
|
|
1798
|
-
vehicle: Vehicle
|
|
1799
|
-
user: User
|
|
1800
|
-
subsidiary: Subsidiary
|
|
1514
|
+
vehicle: Partial<Vehicle>;
|
|
1515
|
+
user: Partial<User>;
|
|
1516
|
+
subsidiary: Partial<Subsidiary>;
|
|
1801
1517
|
createdAt: string | Date;
|
|
1802
1518
|
}
|
|
1803
1519
|
|
|
1804
1520
|
interface CompanyUser {
|
|
1805
1521
|
id: string;
|
|
1806
|
-
user: User
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
declare enum UserPermissionName {
|
|
1810
|
-
ADMIN = "ADMIN",
|
|
1811
|
-
PURCHASING = "PURCHASING",
|
|
1812
|
-
SALES = "SALES",
|
|
1813
|
-
INVENTORY = "INVENTORY",
|
|
1814
|
-
SERVICE = "SERVICE",
|
|
1815
|
-
ACCOUNTING = "ACCOUNTING",
|
|
1816
|
-
FINANCE = "FINANCE",
|
|
1817
|
-
MANUFACTURING = "MANUFACTURING",
|
|
1818
|
-
ECOMMERCE = "ECOMMERCE",
|
|
1819
|
-
FLEET = "FLEET",
|
|
1820
|
-
AUTOMATION = "AUTOMATION",
|
|
1821
|
-
HUMAN_RESOURCES = "HUMAN_RESOURCES",
|
|
1822
|
-
CUSTOMER_SERVICE = "CUSTOMER_SERVICE",
|
|
1823
|
-
POINT_OF_SALE = "POINT_OF_SALE",
|
|
1824
|
-
RULES_ENGINE = "RULES_ENGINE"
|
|
1522
|
+
user: Partial<User>;
|
|
1825
1523
|
}
|
|
1524
|
+
|
|
1525
|
+
type UserPermissionName = 'ADMIN' | 'PURCHASING' | 'SALES' | 'INVENTORY' | 'SERVICE' | 'ACCOUNTING' | 'FINANCE' | 'MANUFACTURING' | 'ECOMMERCE' | 'FLEET' | 'AUTOMATION' | 'HUMAN_RESOURCES' | 'CUSTOMER_SERVICE' | 'POINT_OF_SALE' | 'RULES_ENGINE';
|
|
1826
1526
|
interface UserPermission {
|
|
1827
1527
|
id: string;
|
|
1828
1528
|
name: UserPermissionName;
|
|
1829
|
-
user: User
|
|
1529
|
+
user: Partial<User>;
|
|
1830
1530
|
}
|
|
1831
1531
|
|
|
1832
|
-
|
|
1833
|
-
CREATE = "CREATE",
|
|
1834
|
-
UPDATE = "UPDATE",
|
|
1835
|
-
DELETE = "DELETE",
|
|
1836
|
-
READ = "READ"
|
|
1837
|
-
}
|
|
1532
|
+
type AuditLogAction = 'CREATE' | 'UPDATE' | 'DELETE' | 'READ';
|
|
1838
1533
|
interface AuditLog {
|
|
1839
1534
|
id: string;
|
|
1840
1535
|
action: AuditLogAction;
|
|
@@ -1844,7 +1539,7 @@ interface AuditLog {
|
|
|
1844
1539
|
relatedEntityType?: string;
|
|
1845
1540
|
relatedEntityId?: string;
|
|
1846
1541
|
relatedEntityValue?: any;
|
|
1847
|
-
user: User
|
|
1542
|
+
user: Partial<User>;
|
|
1848
1543
|
createdAt: string | Date;
|
|
1849
1544
|
}
|
|
1850
1545
|
|
|
@@ -1859,18 +1554,14 @@ interface NotificationEntity {
|
|
|
1859
1554
|
isAi: boolean;
|
|
1860
1555
|
entityId?: string;
|
|
1861
1556
|
level: string;
|
|
1862
|
-
user: User
|
|
1557
|
+
user: Partial<User>;
|
|
1863
1558
|
createdAt: string | Date;
|
|
1864
1559
|
}
|
|
1865
1560
|
|
|
1866
|
-
|
|
1867
|
-
PurchaseOrder = "PurchaseOrder",
|
|
1868
|
-
SalesOrder = "SalesOrder",
|
|
1869
|
-
Invoice = "Invoice"
|
|
1870
|
-
}
|
|
1561
|
+
type ApproverType = 'PurchaseOrder' | 'SalesOrder' | 'Invoice';
|
|
1871
1562
|
interface Approver {
|
|
1872
1563
|
id: string;
|
|
1873
|
-
user: User
|
|
1564
|
+
user: Partial<User>;
|
|
1874
1565
|
type: ApproverType;
|
|
1875
1566
|
}
|
|
1876
1567
|
|
|
@@ -1885,8 +1576,8 @@ interface Attendance {
|
|
|
1885
1576
|
latitudeOut?: number;
|
|
1886
1577
|
longitudeOut?: number;
|
|
1887
1578
|
isFaceVerified: boolean;
|
|
1888
|
-
employee: Employee
|
|
1889
|
-
geofence: Geofence
|
|
1579
|
+
employee: Partial<Employee>;
|
|
1580
|
+
geofence: Partial<Geofence>;
|
|
1890
1581
|
}
|
|
1891
1582
|
|
|
1892
1583
|
interface Geofence {
|
|
@@ -1895,34 +1586,20 @@ interface Geofence {
|
|
|
1895
1586
|
latitude?: number;
|
|
1896
1587
|
longitude?: number;
|
|
1897
1588
|
radius?: number;
|
|
1898
|
-
employees: Employee[];
|
|
1899
|
-
attendances: Attendance[];
|
|
1589
|
+
employees: Partial<Employee>[];
|
|
1590
|
+
attendances: Partial<Attendance>[];
|
|
1900
1591
|
}
|
|
1901
1592
|
|
|
1902
|
-
|
|
1903
|
-
MONDAY = "MONDAY",
|
|
1904
|
-
TUESDAY = "TUESDAY",
|
|
1905
|
-
WEDNESDAY = "WEDNESDAY",
|
|
1906
|
-
THURSDAY = "THURSDAY",
|
|
1907
|
-
FRIDAY = "FRIDAY",
|
|
1908
|
-
SATURDAY = "SATURDAY",
|
|
1909
|
-
SUNDAY = "SUNDAY"
|
|
1910
|
-
}
|
|
1593
|
+
type Day = 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
|
|
1911
1594
|
interface Shift {
|
|
1912
1595
|
id: string;
|
|
1913
1596
|
startTime: string;
|
|
1914
1597
|
endTime: string;
|
|
1915
1598
|
day: Day;
|
|
1916
|
-
employee: Employee
|
|
1599
|
+
employee: Partial<Employee>;
|
|
1917
1600
|
}
|
|
1918
1601
|
|
|
1919
|
-
|
|
1920
|
-
HOUR = "hour",
|
|
1921
|
-
DAY = "day",
|
|
1922
|
-
WEEK = "week",
|
|
1923
|
-
MONTH = "month",
|
|
1924
|
-
YEAR = "year"
|
|
1925
|
-
}
|
|
1602
|
+
type SalaryPeriod = 'hour' | 'day' | 'week' | 'month' | 'year';
|
|
1926
1603
|
interface Employee {
|
|
1927
1604
|
id: string;
|
|
1928
1605
|
firstName: string;
|
|
@@ -1933,31 +1610,22 @@ interface Employee {
|
|
|
1933
1610
|
images: string[];
|
|
1934
1611
|
salaryAmount?: number;
|
|
1935
1612
|
salaryPeriod?: SalaryPeriod;
|
|
1936
|
-
assignedLocation: Geofence
|
|
1937
|
-
user: User
|
|
1938
|
-
attendances: Attendance[];
|
|
1939
|
-
shifts: Shift[];
|
|
1613
|
+
assignedLocation: Partial<Geofence>;
|
|
1614
|
+
user: Partial<User>;
|
|
1615
|
+
attendances: Partial<Attendance>[];
|
|
1616
|
+
shifts: Partial<Shift>[];
|
|
1940
1617
|
}
|
|
1941
1618
|
|
|
1942
|
-
|
|
1943
|
-
QUEUED = "QUEUED",
|
|
1944
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
1945
|
-
COMPLETED = "COMPLETED",
|
|
1946
|
-
FAILED = "FAILED"
|
|
1947
|
-
}
|
|
1619
|
+
type IotJobStatus = 'QUEUED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
|
|
1948
1620
|
interface IotJob {
|
|
1949
1621
|
id: string;
|
|
1950
1622
|
status: IotJobStatus;
|
|
1951
1623
|
data: any;
|
|
1952
|
-
iotDevice: IotDevice
|
|
1624
|
+
iotDevice: Partial<IotDevice>;
|
|
1953
1625
|
createdAt: string | Date;
|
|
1954
1626
|
}
|
|
1955
1627
|
|
|
1956
|
-
|
|
1957
|
-
BARCODE_SCANNER = "BARCODE_SCANNER",
|
|
1958
|
-
BRACELET_PRINTER = "BRACELET_PRINTER",
|
|
1959
|
-
THERMAL_PRINTER = "THERMAL_PRINTER"
|
|
1960
|
-
}
|
|
1628
|
+
type IotDeviceType = 'BARCODE_SCANNER' | 'BRACELET_PRINTER' | 'THERMAL_PRINTER';
|
|
1961
1629
|
interface IotDevice {
|
|
1962
1630
|
id: string;
|
|
1963
1631
|
name: string;
|
|
@@ -1967,17 +1635,17 @@ interface IotDevice {
|
|
|
1967
1635
|
type: IotDeviceType;
|
|
1968
1636
|
lastActive?: string | Date;
|
|
1969
1637
|
properties: any;
|
|
1970
|
-
iotJobs: IotJob[];
|
|
1638
|
+
iotJobs: Partial<IotJob>[];
|
|
1971
1639
|
lastActiveAt: string | Date;
|
|
1972
1640
|
lastJobStatus?: IotJobStatus;
|
|
1973
|
-
user: User
|
|
1641
|
+
user: Partial<User>;
|
|
1974
1642
|
}
|
|
1975
1643
|
|
|
1976
1644
|
interface Conversation {
|
|
1977
1645
|
id: string;
|
|
1978
1646
|
title?: string;
|
|
1979
|
-
conversationMessages: ConversationMessage[];
|
|
1980
|
-
customer: Customer
|
|
1647
|
+
conversationMessages: Partial<ConversationMessage>[];
|
|
1648
|
+
customer: Partial<Customer>;
|
|
1981
1649
|
createdAt: string | Date;
|
|
1982
1650
|
}
|
|
1983
1651
|
|
|
@@ -1985,17 +1653,17 @@ interface ConversationMessage {
|
|
|
1985
1653
|
id: string;
|
|
1986
1654
|
files: string[];
|
|
1987
1655
|
content: string;
|
|
1988
|
-
conversation: Conversation
|
|
1656
|
+
conversation: Partial<Conversation>;
|
|
1989
1657
|
isDelivered: boolean;
|
|
1990
|
-
user: User
|
|
1991
|
-
customer: Customer
|
|
1658
|
+
user: Partial<User>;
|
|
1659
|
+
customer: Partial<Customer>;
|
|
1992
1660
|
time?: string | Date;
|
|
1993
1661
|
createdAt: string | Date;
|
|
1994
1662
|
}
|
|
1995
1663
|
|
|
1996
1664
|
interface UserLog {
|
|
1997
1665
|
id: string;
|
|
1998
|
-
user: User
|
|
1666
|
+
user: Partial<User>;
|
|
1999
1667
|
method: string;
|
|
2000
1668
|
path: string;
|
|
2001
1669
|
query?: Record<string, any>;
|
|
@@ -2011,26 +1679,21 @@ interface UserLog {
|
|
|
2011
1679
|
interface ImportJobRow {
|
|
2012
1680
|
id: string;
|
|
2013
1681
|
status: ImportJobStatus;
|
|
2014
|
-
importJob: ImportJob
|
|
1682
|
+
importJob: Partial<ImportJob>;
|
|
2015
1683
|
errorMessage?: string;
|
|
2016
1684
|
errorColumnName?: string;
|
|
2017
1685
|
index: number;
|
|
2018
1686
|
data: any;
|
|
2019
1687
|
}
|
|
2020
1688
|
|
|
2021
|
-
|
|
2022
|
-
PENDING = "PENDING",
|
|
2023
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
2024
|
-
COMPLETED = "COMPLETED",
|
|
2025
|
-
FAILED = "FAILED"
|
|
2026
|
-
}
|
|
1689
|
+
type ImportJobStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
|
|
2027
1690
|
interface ImportJob {
|
|
2028
1691
|
id: string;
|
|
2029
1692
|
status: ImportJobStatus;
|
|
2030
|
-
importJobRows: ImportJobRow[];
|
|
1693
|
+
importJobRows: Partial<ImportJobRow>[];
|
|
2031
1694
|
entityType: EntityType;
|
|
2032
1695
|
createdAt: string | Date;
|
|
2033
|
-
createdBy: User
|
|
1696
|
+
createdBy: Partial<User>;
|
|
2034
1697
|
}
|
|
2035
1698
|
|
|
2036
1699
|
interface User {
|
|
@@ -2045,107 +1708,85 @@ interface User {
|
|
|
2045
1708
|
driverLicenseNo?: string;
|
|
2046
1709
|
ktpNo?: string;
|
|
2047
1710
|
password: string;
|
|
2048
|
-
deliveryJobs: DeliveryJob[];
|
|
2049
|
-
companyUsers: CompanyUser[];
|
|
2050
|
-
userPermissions: UserPermission[];
|
|
2051
|
-
auditLogs: AuditLog[];
|
|
2052
|
-
notifications: NotificationEntity[];
|
|
2053
|
-
approvers: Approver[];
|
|
2054
|
-
purchaseOrderApprovals: PurchaseOrderApproval[];
|
|
2055
|
-
salesOrderApprovals: SalesOrderApproval[];
|
|
2056
|
-
invoiceApprovals: InvoiceApproval[];
|
|
2057
|
-
salesOrders: SalesOrder[];
|
|
2058
|
-
purchaseOrders: PurchaseOrder[];
|
|
2059
|
-
quotes: Quote[];
|
|
2060
|
-
invoices: Invoice[];
|
|
2061
|
-
payments: Payment[];
|
|
2062
|
-
journalEntries: JournalEntry[];
|
|
2063
|
-
workstationTransfers: WorkstationTransfer[];
|
|
2064
|
-
internalDeliveries: InternalDelivery[];
|
|
2065
|
-
leases: Lease[];
|
|
2066
|
-
stockAdjustments: StockAdjustment[];
|
|
2067
|
-
employees: Employee[];
|
|
2068
|
-
vehicles: Vehicle[];
|
|
2069
|
-
automationScripts: AutomationScript[];
|
|
2070
|
-
automationJobs: AutomationJob[];
|
|
2071
|
-
iotDevices: IotDevice[];
|
|
2072
|
-
userPersonas: UserPersona[];
|
|
2073
|
-
conversationMessages: ConversationMessage[];
|
|
2074
|
-
userLogs: UserLog[];
|
|
1711
|
+
deliveryJobs: Partial<DeliveryJob>[];
|
|
1712
|
+
companyUsers: Partial<CompanyUser>[];
|
|
1713
|
+
userPermissions: Partial<UserPermission>[];
|
|
1714
|
+
auditLogs: Partial<AuditLog>[];
|
|
1715
|
+
notifications: Partial<NotificationEntity>[];
|
|
1716
|
+
approvers: Partial<Approver>[];
|
|
1717
|
+
purchaseOrderApprovals: Partial<PurchaseOrderApproval>[];
|
|
1718
|
+
salesOrderApprovals: Partial<SalesOrderApproval>[];
|
|
1719
|
+
invoiceApprovals: Partial<InvoiceApproval>[];
|
|
1720
|
+
salesOrders: Partial<SalesOrder>[];
|
|
1721
|
+
purchaseOrders: Partial<PurchaseOrder>[];
|
|
1722
|
+
quotes: Partial<Quote>[];
|
|
1723
|
+
invoices: Partial<Invoice>[];
|
|
1724
|
+
payments: Partial<Payment>[];
|
|
1725
|
+
journalEntries: Partial<JournalEntry>[];
|
|
1726
|
+
workstationTransfers: Partial<WorkstationTransfer>[];
|
|
1727
|
+
internalDeliveries: Partial<InternalDelivery>[];
|
|
1728
|
+
leases: Partial<Lease>[];
|
|
1729
|
+
stockAdjustments: Partial<StockAdjustment>[];
|
|
1730
|
+
employees: Partial<Employee>[];
|
|
1731
|
+
vehicles: Partial<Vehicle>[];
|
|
1732
|
+
automationScripts: Partial<AutomationScript>[];
|
|
1733
|
+
automationJobs: Partial<AutomationJob>[];
|
|
1734
|
+
iotDevices: Partial<IotDevice>[];
|
|
1735
|
+
userPersonas: Partial<UserPersona>[];
|
|
1736
|
+
conversationMessages: Partial<ConversationMessage>[];
|
|
1737
|
+
userLogs: Partial<UserLog>[];
|
|
2075
1738
|
signature?: string;
|
|
2076
1739
|
expoPushToken?: string;
|
|
2077
1740
|
createdAt: string | Date;
|
|
2078
1741
|
updatedAt: string | Date;
|
|
2079
|
-
customEntityObjects: CustomEntityObject[];
|
|
2080
|
-
createdStockAdjustments: StockAdjustment[];
|
|
2081
|
-
incomingDeliveries: IncomingDelivery[];
|
|
2082
|
-
outgoingDeliveries: OutgoingDelivery[];
|
|
2083
|
-
importJobs: ImportJob[];
|
|
1742
|
+
customEntityObjects: Partial<CustomEntityObject>[];
|
|
1743
|
+
createdStockAdjustments: Partial<StockAdjustment>[];
|
|
1744
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
1745
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
1746
|
+
importJobs: Partial<ImportJob>[];
|
|
2084
1747
|
}
|
|
2085
1748
|
|
|
2086
1749
|
interface Quote extends Order {
|
|
2087
1750
|
id: string;
|
|
2088
1751
|
validUntil?: string;
|
|
2089
|
-
createdBy: User
|
|
2090
|
-
quoteLines: QuoteLine[];
|
|
2091
|
-
customer: Customer
|
|
2092
|
-
subsidiary: Subsidiary
|
|
2093
|
-
identifierGroup: IdentifierGroup
|
|
1752
|
+
createdBy: Partial<User>;
|
|
1753
|
+
quoteLines: Partial<QuoteLine>[];
|
|
1754
|
+
customer: Partial<Customer>;
|
|
1755
|
+
subsidiary: Partial<Subsidiary>;
|
|
1756
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
2094
1757
|
}
|
|
2095
1758
|
|
|
2096
|
-
|
|
2097
|
-
LINKEDIN_CONNECTION_REQUEST = "LINKEDIN_CONNECTION_REQUEST",
|
|
2098
|
-
LINKEDIN_MESSAGE = "LINKEDIN_MESSAGE"
|
|
2099
|
-
}
|
|
1759
|
+
type CustomerEventType = 'LINKEDIN_CONNECTION_REQUEST' | 'LINKEDIN_MESSAGE';
|
|
2100
1760
|
interface CustomerEvent {
|
|
2101
1761
|
id: string;
|
|
2102
1762
|
type: CustomerEventType;
|
|
2103
1763
|
message?: string;
|
|
2104
|
-
customer: Customer
|
|
1764
|
+
customer: Partial<Customer>;
|
|
2105
1765
|
}
|
|
2106
1766
|
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
declare enum LifecycleStage {
|
|
2110
|
-
LEAD = "LEAD",
|
|
2111
|
-
OPPORTUNITY = "OPPORTUNITY",
|
|
2112
|
-
CUSTOMER = "CUSTOMER",
|
|
2113
|
-
WHATSAPP = "WhatsApp",
|
|
2114
|
-
TOKO = "Toko",
|
|
2115
|
-
MODERN_TRADE = "Modern Trade",
|
|
2116
|
-
END_USER_MARKETPLACE = "End User Marketplace",
|
|
2117
|
-
END_USER_OFFLINE = "End User Offline",
|
|
2118
|
-
RESELLER = "Reseller",
|
|
2119
|
-
CUSTOM = "Customize",
|
|
2120
|
-
INSTAGRAM = "Instagram",
|
|
2121
|
-
WEBSITE = "Website"
|
|
2122
|
-
}
|
|
1767
|
+
type CustomerSourceChannel = any;
|
|
1768
|
+
type LifecycleStage = 'LEAD' | 'OPPORTUNITY' | 'CUSTOMER' | 'WhatsApp' | 'Toko' | 'Modern Trade' | 'End User Marketplace' | 'End User Offline' | 'Reseller' | 'Customize' | 'Instagram' | 'Website';
|
|
2123
1769
|
interface Customer extends Contact {
|
|
2124
1770
|
lifecycleStage?: string;
|
|
2125
|
-
quotes: Quote[];
|
|
2126
|
-
salesOrders: SalesOrder[];
|
|
2127
|
-
rentalOrders: RentalOrder[];
|
|
2128
|
-
carts: Cart[];
|
|
2129
|
-
invoices: Invoice[];
|
|
2130
|
-
outgoingDeliveries: OutgoingDelivery[];
|
|
2131
|
-
customerEvents: CustomerEvent[];
|
|
2132
|
-
deliveryJobs: DeliveryJob[];
|
|
2133
|
-
activities: Activity[];
|
|
2134
|
-
incomingDeliveries: IncomingDelivery[];
|
|
1771
|
+
quotes: Partial<Quote>[];
|
|
1772
|
+
salesOrders: Partial<SalesOrder>[];
|
|
1773
|
+
rentalOrders: Partial<RentalOrder>[];
|
|
1774
|
+
carts: Partial<Cart>[];
|
|
1775
|
+
invoices: Partial<Invoice>[];
|
|
1776
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
1777
|
+
customerEvents: Partial<CustomerEvent>[];
|
|
1778
|
+
deliveryJobs: Partial<DeliveryJob>[];
|
|
1779
|
+
activities: Partial<Activity>[];
|
|
1780
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
2135
1781
|
sourceChannel?: CustomerSourceChannel;
|
|
2136
|
-
conversationMessages: ConversationMessage[];
|
|
2137
|
-
pricelist: Pricelist
|
|
2138
|
-
conversations: Conversation[];
|
|
2139
|
-
leases: Lease[];
|
|
1782
|
+
conversationMessages: Partial<ConversationMessage>[];
|
|
1783
|
+
pricelist: Partial<Pricelist>;
|
|
1784
|
+
conversations: Partial<Conversation>[];
|
|
1785
|
+
leases: Partial<Lease>[];
|
|
2140
1786
|
isDefaultSalesOrderCustomer: boolean;
|
|
2141
1787
|
}
|
|
2142
1788
|
|
|
2143
|
-
|
|
2144
|
-
CALL = "CALL",
|
|
2145
|
-
MEETING = "MEETING",
|
|
2146
|
-
EMAIL = "EMAIL",
|
|
2147
|
-
WHATSAPP = "WHATSAPP"
|
|
2148
|
-
}
|
|
1789
|
+
type ActivityType = 'CALL' | 'MEETING' | 'EMAIL' | 'WHATSAPP';
|
|
2149
1790
|
interface Activity {
|
|
2150
1791
|
id: string;
|
|
2151
1792
|
type: ActivityType;
|
|
@@ -2153,7 +1794,7 @@ interface Activity {
|
|
|
2153
1794
|
description: string;
|
|
2154
1795
|
startTime?: string | Date;
|
|
2155
1796
|
endTime?: string | Date;
|
|
2156
|
-
customer: Customer
|
|
1797
|
+
customer: Partial<Customer>;
|
|
2157
1798
|
createdAt: string | Date;
|
|
2158
1799
|
}
|
|
2159
1800
|
|
|
@@ -2161,14 +1802,7 @@ interface Deal {
|
|
|
2161
1802
|
id: string;
|
|
2162
1803
|
}
|
|
2163
1804
|
|
|
2164
|
-
|
|
2165
|
-
MATRIX_BEARER_TOKEN = "MATRIX_BEARER_TOKEN",
|
|
2166
|
-
MATRIX_WHATSAPP_BOT_ROOM_ID = "MATRIX_WHATSAPP_BOT_ROOM_ID",
|
|
2167
|
-
MATRIX_USERNAME = "MATRIX_USERNAME",
|
|
2168
|
-
MATRIX_PASSWORD = "MATRIX_PASSWORD",
|
|
2169
|
-
MATRIX_NEXT_BATCH = "MATRIX_NEXT_BATCH",
|
|
2170
|
-
ACCESS_CONTROL_POLICY_CSV = "ACCESS_CONTROL_POLICY_CSV"
|
|
2171
|
-
}
|
|
1805
|
+
type CompanyVariableName = 'MATRIX_BEARER_TOKEN' | 'MATRIX_WHATSAPP_BOT_ROOM_ID' | 'MATRIX_USERNAME' | 'MATRIX_PASSWORD' | 'MATRIX_NEXT_BATCH' | 'ACCESS_CONTROL_POLICY_CSV';
|
|
2172
1806
|
interface CompanyVariable {
|
|
2173
1807
|
id: string;
|
|
2174
1808
|
name: CompanyVariableName;
|
|
@@ -2178,129 +1812,27 @@ interface CompanyVariable {
|
|
|
2178
1812
|
updatedAt: string | Date;
|
|
2179
1813
|
}
|
|
2180
1814
|
|
|
2181
|
-
|
|
2182
|
-
DATE_LOCALIZATION = "DATE_LOCALIZATION"
|
|
2183
|
-
}
|
|
1815
|
+
type CompanyFeatureName = 'DATE_LOCALIZATION';
|
|
2184
1816
|
interface CompanyFeature {
|
|
2185
1817
|
id: string;
|
|
2186
1818
|
name: CompanyFeatureName;
|
|
2187
1819
|
}
|
|
2188
1820
|
|
|
2189
|
-
|
|
2190
|
-
AUTOCREATE_PRODUCTION_ORDER = "AUTOCREATE_PRODUCTION_ORDER",
|
|
2191
|
-
AUTOUPDATE_INVOICE = "AUTOUPDATE_INVOICE",
|
|
2192
|
-
PRODUCT_CATALOG = "PRODUCT_CATALOG",
|
|
2193
|
-
HIDE_CUSTOMER_OVERDUE_BALANCE = "HIDE_CUSTOMER_OVERDUE_BALANCE",
|
|
2194
|
-
DISABLE_PRODUCT_DELETION = "DISABLE_PRODUCT_DELETION",
|
|
2195
|
-
DISABLE_AUTOREMOVE_QUOTE_DURING_ORDER_CONVERSION = "DISABLE_AUTOREMOVE_QUOTE_DURING_ORDER_CONVERSION",
|
|
2196
|
-
ONLY_ADMINS_CAN_DELETE_INVOICE = "ONLY_ADMINS_CAN_DELETE_INVOICE",
|
|
2197
|
-
ONLY_ADMINS_CAN_EDIT_ORDER_DATE = "ONLY_ADMINS_CAN_EDIT_ORDER_DATE",
|
|
2198
|
-
VAT_DEFAULT_ZERO = "VAT_DEFAULT_ZERO",
|
|
2199
|
-
DEFAULT_DISCOUNT_AMOUNT = "DEFAULT_DISCOUNT_AMOUNT",
|
|
2200
|
-
NO_LETTERHEAD_DOCS = "NO_LETTERHEAD_DOCS",
|
|
2201
|
-
SHOW_CUSTOM_FIELDS_IN_MAIN_TABLE = "SHOW_CUSTOM_FIELDS_IN_MAIN_TABLE",
|
|
2202
|
-
LINES_PER_PAGE_INVOICE = "LINES_PER_PAGE_INVOICE",
|
|
2203
|
-
LINES_PER_PAGE_RENTAL_ORDER = "LINES_PER_PAGE_RENTAL_ORDER",
|
|
2204
|
-
LINES_PER_PAGE_SALES_ORDER = "LINES_PER_PAGE_SALES_ORDER",
|
|
2205
|
-
LINES_PER_PAGE_PURCHASE_ORDER = "LINES_PER_PAGE_PURCHASE_ORDER",
|
|
2206
|
-
LINES_PER_PAGE_QUOTATION = "LINES_PER_PAGE_QUOTATION",
|
|
2207
|
-
LINES_PER_PAGE_DELIVERY_ORDER = "LINES_PER_PAGE_DELIVERY_ORDER",
|
|
2208
|
-
NO_FOOTER = "NO_FOOTER",
|
|
2209
|
-
HIDE_DELIVERIES = "HIDE_DELIVERIES",
|
|
2210
|
-
PRODUCT_ACCESS_BY_PERSONA = "PRODUCT_ACCESS_BY_PERSONA",
|
|
2211
|
-
SIMPLE_UI = "SIMPLE_UI",
|
|
2212
|
-
LANDSCAPE_DELIVERY_ORDERS = "LANDSCAPE_DELIVERY_ORDERS",
|
|
2213
|
-
MULTI_PAGE_DOCS = "MULTI_PAGE_DOCS",
|
|
2214
|
-
SMALL_SOURCE_DOCS = "SMALL_SOURCE_DOCS",
|
|
2215
|
-
HIDE_DASHBOARD = "HIDE_DASHBOARD",
|
|
2216
|
-
DESCRIPTION_LINE = "DESCRIPTION_LINE",
|
|
2217
|
-
MOVEUP_TABLE = "MOVEUP_TABLE",
|
|
2218
|
-
CUSTOM_LINES_PER_PAGE_MULT = "CUSTOM_LINES_PER_PAGE_MULT",
|
|
2219
|
-
MOVEDOWN_TABLE = "MOVEDOWN_TABLE",
|
|
2220
|
-
INVOICE_DOWNPAYMENT_DEDUCTION_PROPORTIONAL = "INVOICE_DOWNPAYMENT_DEDUCTION_PROPORTIONAL",
|
|
2221
|
-
AUTO_DELIVER_SALES_ORDER = "AUTO_DELIVER_SALES_ORDER",
|
|
2222
|
-
AUTO_INVOICE_SALES_ORDER = "AUTO_INVOICE_SALES_ORDER",
|
|
2223
|
-
HIDE_CUSTOMER_FIELD_DELIVERY_JOB = "HIDE_CUSTOMER_FIELD_DELIVERY_JOB",
|
|
2224
|
-
HIDE_DISCOUNTS = "HIDE DISCOUNTS",
|
|
2225
|
-
MOVEUP_TABLE_INVOICE = "MOVEUP_TABLE_INVOICE",
|
|
2226
|
-
HIDE_VAT_PERCENTAGE_ON_INVOICE = "HIDE_VAT_PERCENTAGE_ON_INVOICE",
|
|
2227
|
-
REMOVE_BRAND = "REMOVE_BRAND",
|
|
2228
|
-
MERGE_JOURNAL_ENTRIES = "MERGE_JOURNAL_ENTRIES",
|
|
2229
|
-
MOVEDOWN_INVOICE = "MOVEDOWN_INVOICE",
|
|
2230
|
-
BILL = "BILL",
|
|
2231
|
-
BILL_DEBITS_INVENTORY_ACCOUNT = "BILL_DEBITS_INVENTORY_ACCOUNT",
|
|
2232
|
-
HIDE_DELIVERY_JOB_COST_LINES = "HIDE_DELIVERY_JOB_COST_LINES",
|
|
2233
|
-
HIDE_DELIVERY_JOB_ADDRESS = "HIDE_DELIVERY_JOB_ADDRESS",
|
|
2234
|
-
HIDE_INVOICE_FOR_SALES = "HIDE_INVOICE_FOR_SALES",
|
|
2235
|
-
HIDE_MAINTAINANCE_ORDER = "HIDE_MAINTAINANCE_ORDER",
|
|
2236
|
-
PAYMENT_DOCGEN_SHOWS_JOURNAL_ENTRIES = "PAYMENT_DOCGEN_SHOWS_JOURNAL_ENTRIES",
|
|
2237
|
-
HIDE_EDIT_DELIVERY = "HIDE_EDIT_DELIVERY",
|
|
2238
|
-
EXPENSE_VAT_ZERO = "EXPENSE_VAT_ZERO",
|
|
2239
|
-
SHOW_IN_STOCK_ON_DELIVERIES = "SHOW_IN_STOCK_ON_DELIVERIES",
|
|
2240
|
-
SHOW_SKU = "SHOW_SKU",
|
|
2241
|
-
DELIVERY_COST = "DELIVERY_COST",
|
|
2242
|
-
AUTOMATION_TRIGGER_V2 = "AUTOMATION_TRIGGER_V2",
|
|
2243
|
-
ACCESS_CONTROL_ADMIN_DEFAULT_UNALLOW = "ACCESS_CONTROL_ADMIN_DEFAULT_UNALLOW",
|
|
2244
|
-
REMOVE_QTY_IN_INVOICES = "REMOVE_QTY_IN_INVOICES",
|
|
2245
|
-
DEFAULT_CUSTOM_ENTITY_SCHEMA_TYPE_DOCUMENT = "DEFAULT_CUSTOM_ENTITY_SCHEMA_TYPE_DOCUMENT",
|
|
2246
|
-
HIDE_ALL_REPORTS = "HIDE_ALL_REPORTS",
|
|
2247
|
-
RETURN_SALES_ORDER = "RETURN_SALES_ORDER",
|
|
2248
|
-
SHOW_LINE_DISCOUNT = "SHOW_LINE_DISCOUNT"
|
|
2249
|
-
}
|
|
1821
|
+
type CompanyOptionName = 'AUTOCREATE_PRODUCTION_ORDER' | 'AUTOUPDATE_INVOICE' | 'PRODUCT_CATALOG' | 'HIDE_CUSTOMER_OVERDUE_BALANCE' | 'DISABLE_PRODUCT_DELETION' | 'DISABLE_AUTOREMOVE_QUOTE_DURING_ORDER_CONVERSION' | 'ONLY_ADMINS_CAN_DELETE_INVOICE' | 'ONLY_ADMINS_CAN_EDIT_ORDER_DATE' | 'VAT_DEFAULT_ZERO' | 'DEFAULT_DISCOUNT_AMOUNT' | 'NO_LETTERHEAD_DOCS' | 'SHOW_CUSTOM_FIELDS_IN_MAIN_TABLE' | 'LINES_PER_PAGE_INVOICE' | 'LINES_PER_PAGE_RENTAL_ORDER' | 'LINES_PER_PAGE_SALES_ORDER' | 'LINES_PER_PAGE_PURCHASE_ORDER' | 'LINES_PER_PAGE_QUOTATION' | 'LINES_PER_PAGE_DELIVERY_ORDER' | 'NO_FOOTER' | 'HIDE_DELIVERIES' | 'PRODUCT_ACCESS_BY_PERSONA' | 'SIMPLE_UI' | 'LANDSCAPE_DELIVERY_ORDERS' | 'MULTI_PAGE_DOCS' | 'SMALL_SOURCE_DOCS' | 'HIDE_DASHBOARD' | 'DESCRIPTION_LINE' | 'MOVEUP_TABLE' | 'CUSTOM_LINES_PER_PAGE_MULT' | 'MOVEDOWN_TABLE' | 'INVOICE_DOWNPAYMENT_DEDUCTION_PROPORTIONAL' | 'AUTO_DELIVER_SALES_ORDER' | 'AUTO_INVOICE_SALES_ORDER' | 'HIDE_CUSTOMER_FIELD_DELIVERY_JOB' | 'HIDE DISCOUNTS' | 'MOVEUP_TABLE_INVOICE' | 'HIDE_VAT_PERCENTAGE_ON_INVOICE' | 'REMOVE_BRAND' | 'MERGE_JOURNAL_ENTRIES' | 'MOVEDOWN_INVOICE' | 'BILL' | 'BILL_DEBITS_INVENTORY_ACCOUNT' | 'HIDE_DELIVERY_JOB_COST_LINES' | 'HIDE_DELIVERY_JOB_ADDRESS' | 'HIDE_INVOICE_FOR_SALES' | 'HIDE_MAINTAINANCE_ORDER' | 'PAYMENT_DOCGEN_SHOWS_JOURNAL_ENTRIES' | 'HIDE_EDIT_DELIVERY' | 'EXPENSE_VAT_ZERO' | 'SHOW_IN_STOCK_ON_DELIVERIES' | 'SHOW_SKU' | 'DELIVERY_COST' | 'AUTOMATION_TRIGGER_V2' | 'ACCESS_CONTROL_ADMIN_DEFAULT_UNALLOW' | 'REMOVE_QTY_IN_INVOICES' | 'DEFAULT_CUSTOM_ENTITY_SCHEMA_TYPE_DOCUMENT' | 'HIDE_ALL_REPORTS' | 'RETURN_SALES_ORDER' | 'SHOW_LINE_DISCOUNT';
|
|
2250
1822
|
interface CompanyOption {
|
|
2251
1823
|
id: string;
|
|
2252
1824
|
name: CompanyOptionName;
|
|
2253
1825
|
valueNumber?: number;
|
|
2254
1826
|
}
|
|
2255
1827
|
|
|
2256
|
-
|
|
2257
|
-
ACCOUNTING = "ACCOUNTING",
|
|
2258
|
-
INVENTORY = "INVENTORY",
|
|
2259
|
-
MULTIWAREHOUSE = "MULTIWAREHOUSE",
|
|
2260
|
-
RENTAL = "RENTAL",
|
|
2261
|
-
ECOMMERCE = "ECOMMERCE",
|
|
2262
|
-
MANUFACTURING = "MANUFACTURING",
|
|
2263
|
-
PRICELIST = "PRICELIST",
|
|
2264
|
-
SERVICE = "SERVICE",
|
|
2265
|
-
QUOTE = "QUOTE",
|
|
2266
|
-
WORK_ORDER = "WORK_ORDER",
|
|
2267
|
-
SERVICE_ORDER = "SERVICE_ORDER",
|
|
2268
|
-
SERIAL_NUMBERS = "SERIAL_NUMBERS",
|
|
2269
|
-
THERMAL_PRINTER = "THERMAL_PRINTER",
|
|
2270
|
-
THERMAL_PRINTER_WIRED = "THERMAL_PRINTER_WIRED",
|
|
2271
|
-
CHECKOUT = "CHECKOUT",
|
|
2272
|
-
SERVICE_CHARGE = "SERVICE_CHARGE",
|
|
2273
|
-
SUBSIDIARY = "SUBSIDIARY",
|
|
2274
|
-
MULTICURRENCY = "MULTICURRENCY",
|
|
2275
|
-
CRM = "CRM",
|
|
2276
|
-
IMPORTS = "IMPORTS",
|
|
2277
|
-
POINT_OF_SALE = "POINT_OF_SALE",
|
|
2278
|
-
FLEET = "FLEET",
|
|
2279
|
-
AUTOMATION = "AUTOMATION",
|
|
2280
|
-
DROPSHIP = "DROPSHIP",
|
|
2281
|
-
HUMAN_RESOURCES = "HUMAN_RESOURCES",
|
|
2282
|
-
BUSINESS_INTELLIGENCE = "BUSINESS_INTELLIGENCE",
|
|
2283
|
-
ARTIFICIAL_INTELLIGENCE = "ARTIFICIAL_INTELLIGENCE",
|
|
2284
|
-
RULES_ENGINE = "RULES_ENGINE",
|
|
2285
|
-
PROPERTY_MANAGEMENT = "PROPERTY_MANAGEMENT",
|
|
2286
|
-
CUSTOMER_SERVICE = "CUSTOMER_SERVICE",
|
|
2287
|
-
CHAT = "CHAT",
|
|
2288
|
-
ACCESS_CONTROL = "ACCESS_CONTROL",
|
|
2289
|
-
QUALITY = "QUALITY"
|
|
2290
|
-
}
|
|
1828
|
+
type CompanyPermissionName = 'ACCOUNTING' | 'INVENTORY' | 'MULTIWAREHOUSE' | 'RENTAL' | 'ECOMMERCE' | 'MANUFACTURING' | 'PRICELIST' | 'SERVICE' | 'QUOTE' | 'WORK_ORDER' | 'SERVICE_ORDER' | 'SERIAL_NUMBERS' | 'THERMAL_PRINTER' | 'THERMAL_PRINTER_WIRED' | 'CHECKOUT' | 'SERVICE_CHARGE' | 'SUBSIDIARY' | 'MULTICURRENCY' | 'CRM' | 'IMPORTS' | 'POINT_OF_SALE' | 'FLEET' | 'AUTOMATION' | 'DROPSHIP' | 'HUMAN_RESOURCES' | 'BUSINESS_INTELLIGENCE' | 'ARTIFICIAL_INTELLIGENCE' | 'RULES_ENGINE' | 'PROPERTY_MANAGEMENT' | 'CUSTOMER_SERVICE' | 'CHAT' | 'ACCESS_CONTROL' | 'QUALITY';
|
|
2291
1829
|
interface CompanyPermission {
|
|
2292
1830
|
id: string;
|
|
2293
1831
|
name: CompanyPermissionName;
|
|
2294
1832
|
}
|
|
2295
1833
|
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
LANDSCAPE = "LANDSCAPE"
|
|
2299
|
-
}
|
|
2300
|
-
declare enum CustomDocumentType {
|
|
2301
|
-
PDF = "PDF",
|
|
2302
|
-
XLSX = "XLSX"
|
|
2303
|
-
}
|
|
1834
|
+
type CustomDocumentOrientation = 'PORTRAIT' | 'LANDSCAPE';
|
|
1835
|
+
type CustomDocumentType = 'PDF' | 'XLSX';
|
|
2304
1836
|
interface CustomDocument {
|
|
2305
1837
|
id: string;
|
|
2306
1838
|
headerPdfDocId?: string;
|
|
@@ -2355,37 +1887,31 @@ interface View {
|
|
|
2355
1887
|
interface ChatSession {
|
|
2356
1888
|
id: string;
|
|
2357
1889
|
title?: string;
|
|
2358
|
-
chatMessages: ChatMessage[];
|
|
1890
|
+
chatMessages: Partial<ChatMessage>[];
|
|
2359
1891
|
createdAt: string | Date;
|
|
2360
1892
|
}
|
|
2361
1893
|
|
|
2362
|
-
|
|
2363
|
-
USER = "user",
|
|
2364
|
-
AI = "ai"
|
|
2365
|
-
}
|
|
1894
|
+
type ChatMessageRole = 'user' | 'ai';
|
|
2366
1895
|
interface ChatMessage {
|
|
2367
1896
|
id: string;
|
|
2368
1897
|
role: ChatMessageRole;
|
|
2369
1898
|
files: string[];
|
|
2370
1899
|
content: string;
|
|
2371
1900
|
metadata: any;
|
|
2372
|
-
chatSession: ChatSession
|
|
1901
|
+
chatSession: Partial<ChatSession>;
|
|
2373
1902
|
createdAt: string | Date;
|
|
2374
1903
|
}
|
|
2375
1904
|
|
|
2376
1905
|
interface BusinessIntelligenceDashboard {
|
|
2377
1906
|
}
|
|
2378
1907
|
|
|
2379
|
-
|
|
2380
|
-
AI_NOTIFICATION = "AI_NOTIFICATION",
|
|
2381
|
-
BULK = "BULK"
|
|
2382
|
-
}
|
|
1908
|
+
type RuleEventType = 'AI_NOTIFICATION' | 'BULK';
|
|
2383
1909
|
interface Rule {
|
|
2384
1910
|
id: string;
|
|
2385
1911
|
name: string;
|
|
2386
1912
|
description: string;
|
|
2387
1913
|
trigger?: AutomationScriptTrigger;
|
|
2388
|
-
businessIntelligenceReport: BusinessIntelligenceReport
|
|
1914
|
+
businessIntelligenceReport: Partial<BusinessIntelligenceReport>;
|
|
2389
1915
|
precomputedFacts: any;
|
|
2390
1916
|
data?: any;
|
|
2391
1917
|
isActive: boolean;
|
|
@@ -2396,12 +1922,10 @@ interface BusinessIntelligenceReport {
|
|
|
2396
1922
|
name: string;
|
|
2397
1923
|
config?: any;
|
|
2398
1924
|
sql?: string;
|
|
2399
|
-
rules: Rule[];
|
|
1925
|
+
rules: Partial<Rule>[];
|
|
2400
1926
|
}
|
|
2401
1927
|
|
|
2402
|
-
|
|
2403
|
-
serialNumber = "serialNumber"
|
|
2404
|
-
}
|
|
1928
|
+
type FieldName = 'serialNumber';
|
|
2405
1929
|
interface CompanyAlias {
|
|
2406
1930
|
id: string;
|
|
2407
1931
|
entityType: EntityType;
|
|
@@ -2426,10 +1950,7 @@ interface ReturnInvoiceLine {
|
|
|
2426
1950
|
id: string;
|
|
2427
1951
|
}
|
|
2428
1952
|
|
|
2429
|
-
|
|
2430
|
-
WINDOWS = "WINDOWS",
|
|
2431
|
-
LINUX = "LINUX"
|
|
2432
|
-
}
|
|
1953
|
+
type IotHubPlatform = 'WINDOWS' | 'LINUX';
|
|
2433
1954
|
interface IotHub {
|
|
2434
1955
|
id: string;
|
|
2435
1956
|
name: string;
|
|
@@ -3248,4 +2769,4 @@ declare const konversiAPI: {
|
|
|
3248
2769
|
|
|
3249
2770
|
declare const Entity: typeof crudEndpoints;
|
|
3250
2771
|
|
|
3251
|
-
export { type Account, AccountDefaultEnum, AccountSubtype, AccountType, type Activity, ActivityType, type Approval, type Approver, ApproverType, type Attendance, type AuditLog, AuditLogAction, type AutomationJob, AutomationJobStatus, type AutomationScript, AutomationScriptTrigger, type AutomationScriptTriggerEntity, AutomationScriptTriggerName, type BOMComponent, type BOMOperation, type BankAccount, type BankTransaction, type Bill, type BillLine, type BillOfMaterials, type BusinessIntelligenceDashboard, type BusinessIntelligenceReport, type Cart, type CartLine, type ChatMessage, ChatMessageRole, type ChatSession, type CompanyAlias, type CompanyFeature, CompanyFeatureName, type CompanyOption, CompanyOptionName, type CompanyPermission, CompanyPermissionName, type CompanyUser, type CompanyVariable, CompanyVariableName, type Contact, type Conversation, type ConversationMessage, type CostLine, Currency, type CustomDocument, CustomDocumentOrientation, CustomDocumentType, type CustomEntityField, type CustomEntityFieldPermission, CustomEntityFieldType, type CustomEntityFieldValue, type CustomEntityObject, type CustomEntitySchema, type CustomEntitySchemaPermission, CustomEntitySchemaType, type CustomField, type CustomReport, type Customer, type CustomerEvent, CustomerEventType, CustomerSourceChannel, DataType, Day, type Deal, type Delivery, type DeliveryJob, DeliveryJobStatus, type DeliveryLine, DeliveryStatus, DeliveryType, DepreciationPeriod, type Employee, Entity, EntityEvent, type EntityFieldPermission, type EntityObjectPermission, type EntityPermission, EntityType, type ExchangeRate, type Expense, type ExpenseLine, FieldName, type FixedAsset, type Form, FormLocation, type FuelEntry, type Geofence, type IdentifierGroup, type IdentifierToken, IdentifierTokenType, type ImportJob, type ImportJobRow, ImportJobStatus, type IncomingDelivery, type IncomingDeliveryLine, type IncomingPaymentMethod, type IncomingShipment, type InternalDelivery, type InternalDeliveryLine, InventoryCostFlow, type Invitation, type Invoice, type InvoiceApproval, type InvoiceLine, type IotDevice, IotDeviceType, type IotHub, IotHubPlatform, type IotJob, IotJobStatus, type JobCard, JobCardStatus, type JournalEntry, type JournalEntryLine, type Lease, LeasePaymentStatus, LifecycleStage, type MaintenanceOrder, type MaintenanceOrderLine, Module, type NotificationEntity, type Order, type OrderLine, type OutgoingDelivery, type OutgoingDeliveryLine, type OutgoingShipment, type Payment, PaymentGatewayType, PaymentMethodEnum, PaymentStatus, PaymentType, type PointOfSale, type Pricelist, type PricelistLine, type PrintJob, PrintJobStatus, PrintJobType, type Product, type ProductGroup, type ProductItem, type ProductLocation, type ProductLocationTransfer, type ProductSupplier, type ProductionOrder, type ProductionOrderLine, ProductionOrderStatus, type Property, type PropertyGroup, type PurchaseOrder, type PurchaseOrderApproval, type PurchaseOrderLine, type QualityCheck, QualityCheckStatus, type QualityCheckpoint, type Quote, type QuoteLine, type RentalOrder, type RentalOrderLine, type ReturnInvoice, type ReturnInvoiceLine, type ReturnSalesOrder, type ReturnSalesOrderLine, type Rule, RuleEventType, SalaryPeriod, type SalesOrder, type SalesOrderApproval, type SalesOrderLine, type SalesOrderLinePrintJob, SalesOrderType, type Shift, type Shipment, type StockAdjustment, StockAdjustmentType, type Store, type StoreProduct, type StoreProductAttribute, type StoreProductAttributeValue, type StoreProductAttributeValueMapping, type StoreProductGroup, type StoreProductVariant, type StoreUser, type Subsidiary, type Supplier, type TelemetryAttribute, TelemetryAttributeKey, type TelemetryEvent, type ThermalPrinter, type UnitConversion, type User, type UserAction, UserActionType, type UserLog, type UserPermission, UserPermissionName, type UserPersona, type UserPersonaCustomSchemaPermission, UserPersonaCustomSchemaPermissionType, type UserPersonaEntityAccessStatus, type UserPersonaEntityPermission, UserPersonaEntityPermissionType, type UserPersonaProductPermission, type UserPersonaWarehousePermission, type Vehicle, type VehicleTelemetry, type VehicleTire, type View, type Warehouse, type WarehouseProduct, type WebComponent, type WebComponentSlot, WebComponentSlotName, type WhatsappAccount, type Workstation, type WorkstationProduct, type WorkstationTransfer, createCustomObject, createObject, konversiAPI as default, deleteCustomObject, deleteObject, getAllObjects, getObjectById, runScript, updateObject };
|
|
2772
|
+
export { type Account, type AccountDefaultEnum, type AccountSubtype, type AccountType, type Activity, type ActivityType, type Approval, type Approver, type ApproverType, type Attendance, type AuditLog, type AuditLogAction, type AutomationJob, type AutomationJobStatus, type AutomationScript, type AutomationScriptTrigger, type AutomationScriptTriggerEntity, type AutomationScriptTriggerName, type BOMComponent, type BOMOperation, type BankAccount, type BankTransaction, type Bill, type BillLine, type BillOfMaterials, type BusinessIntelligenceDashboard, type BusinessIntelligenceReport, type Cart, type CartLine, type ChatMessage, type ChatMessageRole, type ChatSession, type CompanyAlias, type CompanyFeature, type CompanyFeatureName, type CompanyOption, type CompanyOptionName, type CompanyPermission, type CompanyPermissionName, type CompanyUser, type CompanyVariable, type CompanyVariableName, type Contact, type Conversation, type ConversationMessage, type CostLine, type Currency, type CustomDocument, type CustomDocumentOrientation, type CustomDocumentType, type CustomEntityField, type CustomEntityFieldPermission, type CustomEntityFieldType, type CustomEntityFieldValue, type CustomEntityObject, type CustomEntitySchema, type CustomEntitySchemaPermission, type CustomEntitySchemaType, type CustomField, type CustomReport, type Customer, type CustomerEvent, type CustomerEventType, type CustomerSourceChannel, type DataType, type Day, type Deal, type Delivery, type DeliveryJob, type DeliveryJobStatus, type DeliveryLine, type DeliveryStatus, type DeliveryType, type DepreciationPeriod, type Employee, Entity, type EntityEvent, type EntityFieldPermission, type EntityObjectPermission, type EntityPermission, type EntityType, type ExchangeRate, type Expense, type ExpenseLine, type FieldName, type FixedAsset, type Form, type FormLocation, type FuelEntry, type Geofence, type IdentifierGroup, type IdentifierToken, type IdentifierTokenType, type ImportJob, type ImportJobRow, type ImportJobStatus, type IncomingDelivery, type IncomingDeliveryLine, type IncomingPaymentMethod, type IncomingShipment, type InternalDelivery, type InternalDeliveryLine, type InventoryCostFlow, type Invitation, type Invoice, type InvoiceApproval, type InvoiceLine, type IotDevice, type IotDeviceType, type IotHub, type IotHubPlatform, type IotJob, type IotJobStatus, type JobCard, type JobCardStatus, type JournalEntry, type JournalEntryLine, type Lease, type LeasePaymentStatus, type LifecycleStage, type MaintenanceOrder, type MaintenanceOrderLine, type Module, type NotificationEntity, type Order, type OrderLine, type OutgoingDelivery, type OutgoingDeliveryLine, type OutgoingShipment, type Payment, type PaymentGatewayType, type PaymentMethodEnum, type PaymentStatus, type PaymentType, type PointOfSale, type Pricelist, type PricelistLine, type PrintJob, type PrintJobStatus, type PrintJobType, type Product, type ProductGroup, type ProductItem, type ProductLocation, type ProductLocationTransfer, type ProductSupplier, type ProductionOrder, type ProductionOrderLine, type ProductionOrderStatus, type Property, type PropertyGroup, type PurchaseOrder, type PurchaseOrderApproval, type PurchaseOrderLine, type QualityCheck, type QualityCheckStatus, type QualityCheckpoint, type Quote, type QuoteLine, type RentalOrder, type RentalOrderLine, type ReturnInvoice, type ReturnInvoiceLine, type ReturnSalesOrder, type ReturnSalesOrderLine, type Rule, type RuleEventType, type SalaryPeriod, type SalesOrder, type SalesOrderApproval, type SalesOrderLine, type SalesOrderLinePrintJob, type SalesOrderType, type Shift, type Shipment, type StockAdjustment, type StockAdjustmentType, type Store, type StoreProduct, type StoreProductAttribute, type StoreProductAttributeValue, type StoreProductAttributeValueMapping, type StoreProductGroup, type StoreProductVariant, type StoreUser, type Subsidiary, type Supplier, type TelemetryAttribute, type TelemetryAttributeKey, type TelemetryEvent, type ThermalPrinter, type UnitConversion, type User, type UserAction, type UserActionType, type UserLog, type UserPermission, type UserPermissionName, type UserPersona, type UserPersonaCustomSchemaPermission, type UserPersonaCustomSchemaPermissionType, type UserPersonaEntityAccessStatus, type UserPersonaEntityPermission, type UserPersonaEntityPermissionType, type UserPersonaProductPermission, type UserPersonaWarehousePermission, type Vehicle, type VehicleTelemetry, type VehicleTire, type View, type Warehouse, type WarehouseProduct, type WebComponent, type WebComponentSlot, type WebComponentSlotName, type WhatsappAccount, type Workstation, type WorkstationProduct, type WorkstationTransfer, createCustomObject, createObject, konversiAPI as default, deleteCustomObject, deleteObject, getAllObjects, getObjectById, runScript, updateObject };
|