@konversi/konversi-client 1.5.2 → 1.5.4
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 +541 -541
- package/dist/index.d.ts +541 -541
- package/dist/index.js +29 -25
- package/dist/index.mjs +29 -25
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -247,12 +247,12 @@ interface CostLine {
|
|
|
247
247
|
id: string;
|
|
248
248
|
description: string;
|
|
249
249
|
amount: number;
|
|
250
|
-
deliveryJob: DeliveryJob
|
|
250
|
+
deliveryJob: Partial<DeliveryJob>;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
interface FuelEntry {
|
|
254
254
|
id: string;
|
|
255
|
-
vehicle: Vehicle
|
|
255
|
+
vehicle: Partial<Vehicle>;
|
|
256
256
|
quantity: number;
|
|
257
257
|
unitPrice: number;
|
|
258
258
|
odometer: number;
|
|
@@ -267,7 +267,7 @@ interface VehicleTelemetry {
|
|
|
267
267
|
speed: number;
|
|
268
268
|
odometer: number;
|
|
269
269
|
createdAt: string | Date;
|
|
270
|
-
vehicle: Vehicle
|
|
270
|
+
vehicle: Partial<Vehicle>;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
interface OrderLine {
|
|
@@ -285,21 +285,21 @@ interface OrderLine {
|
|
|
285
285
|
|
|
286
286
|
interface SalesOrderLinePrintJob {
|
|
287
287
|
id: string;
|
|
288
|
-
salesOrderLine: SalesOrderLine
|
|
289
|
-
printJob: PrintJob
|
|
288
|
+
salesOrderLine: Partial<SalesOrderLine>;
|
|
289
|
+
printJob: Partial<PrintJob>;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
interface SalesOrderLine extends OrderLine {
|
|
293
|
-
salesOrder: SalesOrder
|
|
294
|
-
product: Product
|
|
295
|
-
salesOrderLinePrintJobs: SalesOrderLinePrintJob[];
|
|
293
|
+
salesOrder: Partial<SalesOrder>;
|
|
294
|
+
product: Partial<Product>;
|
|
295
|
+
salesOrderLinePrintJobs: Partial<SalesOrderLinePrintJob>[];
|
|
296
296
|
averageCost?: number;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
interface InvoiceLine extends OrderLine {
|
|
300
|
-
invoice: Invoice
|
|
301
|
-
product: Product
|
|
302
|
-
productItem: ProductItem
|
|
300
|
+
invoice: Partial<Invoice>;
|
|
301
|
+
product: Partial<Product>;
|
|
302
|
+
productItem: Partial<ProductItem>;
|
|
303
303
|
startDate?: string | Date;
|
|
304
304
|
endDate?: string | Date;
|
|
305
305
|
dailyUnitPrice?: number;
|
|
@@ -309,20 +309,20 @@ interface PropertyGroup {
|
|
|
309
309
|
id: string;
|
|
310
310
|
name: string;
|
|
311
311
|
mapImage?: string;
|
|
312
|
-
properties: Property[];
|
|
312
|
+
properties: Partial<Property>[];
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
interface MaintenanceOrderLine extends OrderLine {
|
|
316
316
|
id: string;
|
|
317
|
-
product: Product
|
|
318
|
-
maintenanceOrder: MaintenanceOrder
|
|
317
|
+
product: Partial<Product>;
|
|
318
|
+
maintenanceOrder: Partial<MaintenanceOrder>;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
interface MaintenanceOrder extends Order {
|
|
322
322
|
id: string;
|
|
323
|
-
maintenanceOrderLines: MaintenanceOrderLine[];
|
|
324
|
-
vehicle: Vehicle
|
|
325
|
-
property: Property
|
|
323
|
+
maintenanceOrderLines: Partial<MaintenanceOrderLine>[];
|
|
324
|
+
vehicle: Partial<Vehicle>;
|
|
325
|
+
property: Partial<Property>;
|
|
326
326
|
customFields: any;
|
|
327
327
|
}
|
|
328
328
|
|
|
@@ -331,9 +331,9 @@ interface Property {
|
|
|
331
331
|
name: string;
|
|
332
332
|
files: string[];
|
|
333
333
|
mapPolygon: number[][];
|
|
334
|
-
propertyGroup: PropertyGroup
|
|
335
|
-
leases: Lease[];
|
|
336
|
-
maintenanceOrders: MaintenanceOrder[];
|
|
334
|
+
propertyGroup: Partial<PropertyGroup>;
|
|
335
|
+
leases: Partial<Lease>[];
|
|
336
|
+
maintenanceOrders: Partial<MaintenanceOrder>[];
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
declare enum LeasePaymentStatus {
|
|
@@ -346,8 +346,8 @@ declare enum LeasePaymentStatus {
|
|
|
346
346
|
}
|
|
347
347
|
interface Lease {
|
|
348
348
|
id: string;
|
|
349
|
-
properties: Property[];
|
|
350
|
-
customer: Customer
|
|
349
|
+
properties: Partial<Property>[];
|
|
350
|
+
customer: Partial<Customer>;
|
|
351
351
|
startDate?: string;
|
|
352
352
|
endDate?: string;
|
|
353
353
|
files: string[];
|
|
@@ -356,9 +356,9 @@ interface Lease {
|
|
|
356
356
|
customFields: any;
|
|
357
357
|
isProfitSharing: boolean;
|
|
358
358
|
profitSharingPercentage: number;
|
|
359
|
-
invoices: Invoice[];
|
|
359
|
+
invoices: Partial<Invoice>[];
|
|
360
360
|
createdAt: string | Date;
|
|
361
|
-
createdBy: User
|
|
361
|
+
createdBy: Partial<User>;
|
|
362
362
|
updatedAt: string | Date;
|
|
363
363
|
}
|
|
364
364
|
|
|
@@ -367,9 +367,9 @@ interface RentalOrderLine extends OrderLine {
|
|
|
367
367
|
startDate?: string | Date;
|
|
368
368
|
endDate?: string | Date;
|
|
369
369
|
dailyUnitPrice?: number;
|
|
370
|
-
rentalOrder: RentalOrder
|
|
371
|
-
productItem: ProductItem
|
|
372
|
-
product: Product
|
|
370
|
+
rentalOrder: Partial<RentalOrder>;
|
|
371
|
+
productItem: Partial<ProductItem>;
|
|
372
|
+
product: Partial<Product>;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
declare enum DeliveryType {
|
|
@@ -405,15 +405,15 @@ interface DeliveryLine {
|
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
interface OutgoingDeliveryLine extends DeliveryLine {
|
|
408
|
-
product: Product
|
|
409
|
-
outgoingDelivery: OutgoingDelivery
|
|
410
|
-
productItem: ProductItem
|
|
408
|
+
product: Partial<Product>;
|
|
409
|
+
outgoingDelivery: Partial<OutgoingDelivery>;
|
|
410
|
+
productItem: Partial<ProductItem>;
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
interface WarehouseProduct {
|
|
414
414
|
id: string;
|
|
415
|
-
warehouse: Warehouse
|
|
416
|
-
product: Product
|
|
415
|
+
warehouse: Partial<Warehouse>;
|
|
416
|
+
product: Partial<Product>;
|
|
417
417
|
inStock: number;
|
|
418
418
|
}
|
|
419
419
|
|
|
@@ -423,8 +423,8 @@ interface QualityCheckpoint {
|
|
|
423
423
|
instructions: string;
|
|
424
424
|
order: number;
|
|
425
425
|
isImageRequired: boolean;
|
|
426
|
-
bomOperation: BOMOperation
|
|
427
|
-
qualityChecks: QualityCheck[];
|
|
426
|
+
bomOperation: Partial<BOMOperation>;
|
|
427
|
+
qualityChecks: Partial<QualityCheck>[];
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
declare enum QualityCheckStatus {
|
|
@@ -436,8 +436,8 @@ interface QualityCheck {
|
|
|
436
436
|
id: string;
|
|
437
437
|
status: QualityCheckStatus;
|
|
438
438
|
notes: string;
|
|
439
|
-
jobCard: JobCard
|
|
440
|
-
qualityCheckpoint: QualityCheckpoint
|
|
439
|
+
jobCard: Partial<JobCard>;
|
|
440
|
+
qualityCheckpoint: Partial<QualityCheckpoint>;
|
|
441
441
|
createdAt: string | Date;
|
|
442
442
|
updatedAt: string | Date;
|
|
443
443
|
}
|
|
@@ -457,10 +457,10 @@ interface JobCard {
|
|
|
457
457
|
identifier: string;
|
|
458
458
|
title: string;
|
|
459
459
|
status: JobCardStatus;
|
|
460
|
-
workstation: Workstation
|
|
461
|
-
productionOrder: ProductionOrder
|
|
462
|
-
qualityChecks: QualityCheck[];
|
|
463
|
-
bomOperation: BOMOperation
|
|
460
|
+
workstation: Partial<Workstation>;
|
|
461
|
+
productionOrder: Partial<ProductionOrder>;
|
|
462
|
+
qualityChecks: Partial<QualityCheck>[];
|
|
463
|
+
bomOperation: Partial<BOMOperation>;
|
|
464
464
|
createdAt: string | Date;
|
|
465
465
|
updatedAt: string | Date;
|
|
466
466
|
customFields: any;
|
|
@@ -474,7 +474,7 @@ declare enum ProductionOrderStatus {
|
|
|
474
474
|
}
|
|
475
475
|
interface ProductionOrder {
|
|
476
476
|
id: string;
|
|
477
|
-
product: Product
|
|
477
|
+
product: Partial<Product>;
|
|
478
478
|
num: number;
|
|
479
479
|
numMonthly: number;
|
|
480
480
|
numYearly: number;
|
|
@@ -484,41 +484,41 @@ interface ProductionOrder {
|
|
|
484
484
|
endDate: string | Date;
|
|
485
485
|
plannedQuantity: number;
|
|
486
486
|
quantity: number;
|
|
487
|
-
productItems: ProductItem[];
|
|
488
|
-
inputProductItems: ProductItem[];
|
|
489
|
-
productionOrderLines: ProductionOrderLine[];
|
|
490
|
-
billOfMaterials: BillOfMaterials
|
|
491
|
-
jobCards: JobCard[];
|
|
492
|
-
warehouse: Warehouse
|
|
487
|
+
productItems: Partial<ProductItem>[];
|
|
488
|
+
inputProductItems: Partial<ProductItem>[];
|
|
489
|
+
productionOrderLines: Partial<ProductionOrderLine>[];
|
|
490
|
+
billOfMaterials: Partial<BillOfMaterials>;
|
|
491
|
+
jobCards: Partial<JobCard>[];
|
|
492
|
+
warehouse: Partial<Warehouse>;
|
|
493
493
|
customFields: any;
|
|
494
494
|
createdAt: string | Date;
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
interface ProductionOrderLine {
|
|
498
498
|
id: string;
|
|
499
|
-
product: Product
|
|
499
|
+
product: Partial<Product>;
|
|
500
500
|
quantity: number;
|
|
501
|
-
productionOrder: ProductionOrder
|
|
502
|
-
bomComponent: BOMComponent
|
|
501
|
+
productionOrder: Partial<ProductionOrder>;
|
|
502
|
+
bomComponent: Partial<BOMComponent>;
|
|
503
503
|
createdAt: string | Date;
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
interface BOMComponent {
|
|
507
507
|
id: string;
|
|
508
|
-
product: Product
|
|
508
|
+
product: Partial<Product>;
|
|
509
509
|
quantity: number;
|
|
510
|
-
billOfMaterials: BillOfMaterials
|
|
511
|
-
productionOrderLines: ProductionOrderLine[];
|
|
510
|
+
billOfMaterials: Partial<BillOfMaterials>;
|
|
511
|
+
productionOrderLines: Partial<ProductionOrderLine>[];
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
interface BillOfMaterials {
|
|
515
515
|
id: string;
|
|
516
516
|
name: string;
|
|
517
|
-
product: Product
|
|
517
|
+
product: Partial<Product>;
|
|
518
518
|
quantity: number;
|
|
519
|
-
bomComponents: BOMComponent[];
|
|
520
|
-
productionOrders: ProductionOrder[];
|
|
521
|
-
bomOperations: BOMOperation[];
|
|
519
|
+
bomComponents: Partial<BOMComponent>[];
|
|
520
|
+
productionOrders: Partial<ProductionOrder>[];
|
|
521
|
+
bomOperations: Partial<BOMOperation>[];
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
interface BOMOperation {
|
|
@@ -527,61 +527,61 @@ interface BOMOperation {
|
|
|
527
527
|
name: string;
|
|
528
528
|
instructionText: string;
|
|
529
529
|
instructionFile?: string;
|
|
530
|
-
workstation: Workstation
|
|
531
|
-
parentBomOperation?: BOMOperation
|
|
532
|
-
childBomOperations: BOMOperation[];
|
|
533
|
-
billOfMaterials: BillOfMaterials
|
|
534
|
-
jobCards: JobCard[];
|
|
535
|
-
qualityCheckpoints: QualityCheckpoint[];
|
|
530
|
+
workstation: Partial<Workstation>;
|
|
531
|
+
parentBomOperation?: Partial<BOMOperation>;
|
|
532
|
+
childBomOperations: Partial<BOMOperation>[];
|
|
533
|
+
billOfMaterials: Partial<BillOfMaterials>;
|
|
534
|
+
jobCards: Partial<JobCard>[];
|
|
535
|
+
qualityCheckpoints: Partial<QualityCheckpoint>[];
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
interface WorkstationProduct {
|
|
539
539
|
id: string;
|
|
540
|
-
workstation: Workstation
|
|
541
|
-
product: Product
|
|
540
|
+
workstation: Partial<Workstation>;
|
|
541
|
+
product: Partial<Product>;
|
|
542
542
|
inStock: number;
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
interface WorkstationTransfer {
|
|
546
546
|
id: string;
|
|
547
|
-
sourceWorkstation: Workstation
|
|
548
|
-
destinationWorkstation: Workstation
|
|
549
|
-
product: Product
|
|
547
|
+
sourceWorkstation: Partial<Workstation>;
|
|
548
|
+
destinationWorkstation: Partial<Workstation>;
|
|
549
|
+
product: Partial<Product>;
|
|
550
550
|
quantity: number;
|
|
551
|
-
createdBy: User
|
|
551
|
+
createdBy: Partial<User>;
|
|
552
552
|
createdAt: string | Date;
|
|
553
553
|
}
|
|
554
554
|
|
|
555
555
|
interface Workstation {
|
|
556
556
|
id: string;
|
|
557
557
|
name: string;
|
|
558
|
-
bomOperations: BOMOperation[];
|
|
559
|
-
jobCards: JobCard[];
|
|
560
|
-
productLocations: ProductLocation[];
|
|
561
|
-
warehouse: Warehouse
|
|
558
|
+
bomOperations: Partial<BOMOperation>[];
|
|
559
|
+
jobCards: Partial<JobCard>[];
|
|
560
|
+
productLocations: Partial<ProductLocation>[];
|
|
561
|
+
warehouse: Partial<Warehouse>;
|
|
562
562
|
createdAt: string | Date;
|
|
563
|
-
workstationProducts: WorkstationProduct[];
|
|
564
|
-
workstationTransfersSource: WorkstationTransfer[];
|
|
565
|
-
workstationTransfersDestination: WorkstationTransfer[];
|
|
563
|
+
workstationProducts: Partial<WorkstationProduct>[];
|
|
564
|
+
workstationTransfersSource: Partial<WorkstationTransfer>[];
|
|
565
|
+
workstationTransfersDestination: Partial<WorkstationTransfer>[];
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
interface ProductLocationTransfer {
|
|
569
569
|
id: string;
|
|
570
|
-
productItem: ProductItem
|
|
571
|
-
sourceProductLocation: ProductLocation
|
|
572
|
-
destinationProductLocation: ProductLocation
|
|
570
|
+
productItem: Partial<ProductItem>;
|
|
571
|
+
sourceProductLocation: Partial<ProductLocation>;
|
|
572
|
+
destinationProductLocation: Partial<ProductLocation>;
|
|
573
573
|
createdAt: string | Date;
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
interface ProductLocation {
|
|
577
577
|
id: string;
|
|
578
578
|
name: string;
|
|
579
|
-
warehouse: Warehouse
|
|
580
|
-
workstation: Workstation
|
|
581
|
-
productItems: ProductItem[];
|
|
579
|
+
warehouse: Partial<Warehouse>;
|
|
580
|
+
workstation: Partial<Workstation>;
|
|
581
|
+
productItems: Partial<ProductItem>[];
|
|
582
582
|
createdAt: string | Date;
|
|
583
|
-
productLocationTransfersSource: ProductLocationTransfer[];
|
|
584
|
-
productLocationTransfersDestination: ProductLocationTransfer[];
|
|
583
|
+
productLocationTransfersSource: Partial<ProductLocationTransfer>[];
|
|
584
|
+
productLocationTransfersDestination: Partial<ProductLocationTransfer>[];
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
interface Shipment {
|
|
@@ -605,16 +605,16 @@ interface FixedAsset {
|
|
|
605
605
|
quantity: number;
|
|
606
606
|
depreciationDuration: number;
|
|
607
607
|
depreciationPeriod?: DepreciationPeriod;
|
|
608
|
-
assetAccount: Account
|
|
609
|
-
depreciationAccount: Account
|
|
610
|
-
expenseAccount: Account
|
|
611
|
-
journalEntries: JournalEntry[];
|
|
608
|
+
assetAccount: Partial<Account>;
|
|
609
|
+
depreciationAccount: Partial<Account>;
|
|
610
|
+
expenseAccount: Partial<Account>;
|
|
611
|
+
journalEntries: Partial<JournalEntry>[];
|
|
612
612
|
}
|
|
613
613
|
|
|
614
614
|
interface ExpenseLine extends OrderLine {
|
|
615
|
-
product: Product
|
|
616
|
-
account: Account
|
|
617
|
-
expense: Expense
|
|
615
|
+
product: Partial<Product>;
|
|
616
|
+
account: Partial<Account>;
|
|
617
|
+
expense: Partial<Expense>;
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
declare enum EntityType {
|
|
@@ -707,9 +707,9 @@ interface CustomField {
|
|
|
707
707
|
interface PointOfSale {
|
|
708
708
|
id: string;
|
|
709
709
|
name: string;
|
|
710
|
-
identifierGroup: IdentifierGroup
|
|
711
|
-
warehouse: Warehouse
|
|
712
|
-
salesOrders: SalesOrder[];
|
|
710
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
711
|
+
warehouse: Partial<Warehouse>;
|
|
712
|
+
salesOrders: Partial<SalesOrder>[];
|
|
713
713
|
}
|
|
714
714
|
|
|
715
715
|
interface IdentifierGroup {
|
|
@@ -718,14 +718,14 @@ interface IdentifierGroup {
|
|
|
718
718
|
nextNum: number;
|
|
719
719
|
nextNumMonthly: number;
|
|
720
720
|
nextNumYearly: number;
|
|
721
|
-
identifierTokens: IdentifierToken[];
|
|
721
|
+
identifierTokens: Partial<IdentifierToken>[];
|
|
722
722
|
entityType?: EntityType;
|
|
723
|
-
pointOfSales: PointOfSale[];
|
|
724
|
-
salesOrders: SalesOrder[];
|
|
725
|
-
quotes: Quote[];
|
|
726
|
-
invoices: Invoice[];
|
|
727
|
-
purchaseOrders: PurchaseOrder[];
|
|
728
|
-
bills: Bill[];
|
|
723
|
+
pointOfSales: Partial<PointOfSale>[];
|
|
724
|
+
salesOrders: Partial<SalesOrder>[];
|
|
725
|
+
quotes: Partial<Quote>[];
|
|
726
|
+
invoices: Partial<Invoice>[];
|
|
727
|
+
purchaseOrders: Partial<PurchaseOrder>[];
|
|
728
|
+
bills: Partial<Bill>[];
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
declare enum IdentifierTokenType {
|
|
@@ -750,8 +750,8 @@ interface IdentifierToken {
|
|
|
750
750
|
text?: string;
|
|
751
751
|
entityType?: EntityType;
|
|
752
752
|
numberPadding: number;
|
|
753
|
-
subsidiary: Subsidiary
|
|
754
|
-
identifierGroup: IdentifierGroup
|
|
753
|
+
subsidiary: Partial<Subsidiary>;
|
|
754
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
755
755
|
}
|
|
756
756
|
|
|
757
757
|
interface Subsidiary {
|
|
@@ -759,28 +759,28 @@ interface Subsidiary {
|
|
|
759
759
|
name: string;
|
|
760
760
|
address: string;
|
|
761
761
|
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[];
|
|
762
|
+
salesOrders: Partial<SalesOrder>[];
|
|
763
|
+
rentalOrders: Partial<RentalOrder>[];
|
|
764
|
+
deliveryJobs: Partial<DeliveryJob>[];
|
|
765
|
+
quotes: Partial<Quote>[];
|
|
766
|
+
purchaseOrders: Partial<PurchaseOrder>[];
|
|
767
|
+
invoices: Partial<Invoice>[];
|
|
768
|
+
expenses: Partial<Expense>[];
|
|
769
|
+
identifierTokens: Partial<IdentifierToken>[];
|
|
770
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
771
|
+
incomingDeliveries: Partial<OutgoingDelivery>[];
|
|
772
772
|
}
|
|
773
773
|
|
|
774
774
|
interface Expense extends Order {
|
|
775
775
|
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[];
|
|
776
|
+
supplier: Partial<Supplier>;
|
|
777
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
778
|
+
expenseLines: Partial<ExpenseLine>[];
|
|
779
|
+
account: Partial<Account>;
|
|
780
|
+
createdBy: Partial<User>;
|
|
781
|
+
journalEntry: Partial<JournalEntry>;
|
|
782
|
+
subsidiary: Partial<Subsidiary>;
|
|
783
|
+
payments: Partial<Payment>[];
|
|
784
784
|
createdAt: string | Date;
|
|
785
785
|
updatedAt: string | Date;
|
|
786
786
|
}
|
|
@@ -790,18 +790,18 @@ interface BankAccount {
|
|
|
790
790
|
name: string;
|
|
791
791
|
accountNumber?: string;
|
|
792
792
|
currentBalance: number;
|
|
793
|
-
account: Account
|
|
794
|
-
bankTransactions: BankTransaction[];
|
|
793
|
+
account: Partial<Account>;
|
|
794
|
+
bankTransactions: Partial<BankTransaction>[];
|
|
795
795
|
}
|
|
796
796
|
|
|
797
797
|
interface BankTransaction {
|
|
798
798
|
id: string;
|
|
799
|
-
bankAccount: BankAccount
|
|
799
|
+
bankAccount: Partial<BankAccount>;
|
|
800
800
|
date?: string;
|
|
801
801
|
amount: number;
|
|
802
802
|
memo: string;
|
|
803
803
|
customFields: any;
|
|
804
|
-
payments: Payment[];
|
|
804
|
+
payments: Partial<Payment>[];
|
|
805
805
|
createdAt: string | Date;
|
|
806
806
|
}
|
|
807
807
|
|
|
@@ -819,18 +819,18 @@ interface Payment {
|
|
|
819
819
|
id: string;
|
|
820
820
|
type: PaymentType;
|
|
821
821
|
paymentMethod?: PaymentMethodEnum;
|
|
822
|
-
incomingPaymentMethod: IncomingPaymentMethod
|
|
822
|
+
incomingPaymentMethod: Partial<IncomingPaymentMethod>;
|
|
823
823
|
date?: string;
|
|
824
824
|
amount: number;
|
|
825
825
|
memo: string;
|
|
826
|
-
invoice: Invoice
|
|
827
|
-
expense: Expense
|
|
828
|
-
bill: Bill
|
|
826
|
+
invoice: Partial<Invoice>;
|
|
827
|
+
expense: Partial<Expense>;
|
|
828
|
+
bill: Partial<Bill>;
|
|
829
829
|
currency: Currency;
|
|
830
|
-
bankTransaction: BankTransaction
|
|
830
|
+
bankTransaction: Partial<BankTransaction>;
|
|
831
831
|
customFields: any;
|
|
832
|
-
journalEntry: JournalEntry
|
|
833
|
-
createdBy: User
|
|
832
|
+
journalEntry: Partial<JournalEntry>;
|
|
833
|
+
createdBy: Partial<User>;
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
declare enum PaymentGatewayType {
|
|
@@ -839,9 +839,9 @@ declare enum PaymentGatewayType {
|
|
|
839
839
|
interface IncomingPaymentMethod {
|
|
840
840
|
id: string;
|
|
841
841
|
name: string;
|
|
842
|
-
payments: Payment[];
|
|
842
|
+
payments: Partial<Payment>[];
|
|
843
843
|
paymentGatewayType?: PaymentGatewayType;
|
|
844
|
-
account: Account
|
|
844
|
+
account: Partial<Account>;
|
|
845
845
|
}
|
|
846
846
|
|
|
847
847
|
declare enum AccountType {
|
|
@@ -882,40 +882,40 @@ interface Account {
|
|
|
882
882
|
type: AccountType;
|
|
883
883
|
subtype?: AccountSubtype;
|
|
884
884
|
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[];
|
|
885
|
+
inventoryProducts: Partial<Product>[];
|
|
886
|
+
incomeProducts: Partial<Product>[];
|
|
887
|
+
expenseProducts: Partial<Product>[];
|
|
888
|
+
assetFixedAssets: Partial<FixedAsset>[];
|
|
889
|
+
depreciationFixedAssets: Partial<FixedAsset>[];
|
|
890
|
+
expenseFixedAssets: Partial<FixedAsset>[];
|
|
891
|
+
journalEntryLines: Partial<JournalEntryLine>[];
|
|
892
|
+
incomingPaymentMethods: Partial<IncomingPaymentMethod>[];
|
|
893
|
+
expenses: Partial<Expense>[];
|
|
894
|
+
expenseLines: Partial<ExpenseLine>[];
|
|
895
|
+
bankAccounts: Partial<BankAccount>[];
|
|
896
896
|
}
|
|
897
897
|
|
|
898
898
|
interface JournalEntryLine {
|
|
899
899
|
id: string;
|
|
900
|
-
account: Account
|
|
900
|
+
account: Partial<Account>;
|
|
901
901
|
description: string;
|
|
902
902
|
debit: number;
|
|
903
903
|
credit: number;
|
|
904
|
-
journalEntry: JournalEntry
|
|
904
|
+
journalEntry: Partial<JournalEntry>;
|
|
905
905
|
}
|
|
906
906
|
|
|
907
907
|
interface JournalEntry {
|
|
908
908
|
id: string;
|
|
909
909
|
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
|
|
910
|
+
journalEntryLines: Partial<JournalEntryLine>[];
|
|
911
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
912
|
+
bill: Partial<Bill>;
|
|
913
|
+
salesOrder: Partial<SalesOrder>;
|
|
914
|
+
expense: Partial<Expense>;
|
|
915
|
+
payments: Partial<Payment>[];
|
|
916
|
+
invoice: Partial<Invoice>;
|
|
917
|
+
fixedAsset: Partial<FixedAsset>;
|
|
918
|
+
createdBy: Partial<User>;
|
|
919
919
|
memo: string;
|
|
920
920
|
isAutomated: boolean;
|
|
921
921
|
createdAt: string | Date;
|
|
@@ -924,44 +924,44 @@ interface JournalEntry {
|
|
|
924
924
|
|
|
925
925
|
interface BillLine extends OrderLine {
|
|
926
926
|
id: string;
|
|
927
|
-
bill: Bill
|
|
928
|
-
product: Product
|
|
927
|
+
bill: Partial<Bill>;
|
|
928
|
+
product: Partial<Product>;
|
|
929
929
|
}
|
|
930
930
|
|
|
931
931
|
interface Bill extends Order {
|
|
932
932
|
id: string;
|
|
933
|
-
supplier: Supplier
|
|
933
|
+
supplier: Partial<Supplier>;
|
|
934
934
|
downpayment: number;
|
|
935
935
|
downpaymentDeductions: number;
|
|
936
|
-
journalEntry: JournalEntry
|
|
937
|
-
identifierGroup: IdentifierGroup
|
|
938
|
-
purchaseOrder: PurchaseOrder
|
|
939
|
-
billLines: BillLine[];
|
|
940
|
-
payments: Payment[];
|
|
936
|
+
journalEntry: Partial<JournalEntry>;
|
|
937
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
938
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
939
|
+
billLines: Partial<BillLine>[];
|
|
940
|
+
payments: Partial<Payment>[];
|
|
941
941
|
}
|
|
942
942
|
|
|
943
943
|
interface IncomingDeliveryLine extends DeliveryLine {
|
|
944
|
-
product: Product
|
|
945
|
-
incomingDelivery: IncomingDelivery
|
|
946
|
-
productItem: ProductItem
|
|
944
|
+
product: Partial<Product>;
|
|
945
|
+
incomingDelivery: Partial<IncomingDelivery>;
|
|
946
|
+
productItem: Partial<ProductItem>;
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
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
|
|
950
|
+
incomingDeliveryLines: Partial<IncomingDeliveryLine>[];
|
|
951
|
+
destinationWarehouse: Partial<Warehouse>;
|
|
952
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
953
|
+
salesOrder: Partial<SalesOrder>;
|
|
954
|
+
supplier: Partial<Supplier>;
|
|
955
|
+
customer: Partial<Customer>;
|
|
956
|
+
subsidiary: Partial<Subsidiary>;
|
|
957
|
+
rentalOrder: Partial<RentalOrder>;
|
|
958
|
+
createdBy: Partial<User>;
|
|
959
959
|
}
|
|
960
960
|
|
|
961
961
|
interface PricelistLine {
|
|
962
962
|
id: string;
|
|
963
|
-
pricelist: Pricelist
|
|
964
|
-
product: Product
|
|
963
|
+
pricelist: Partial<Pricelist>;
|
|
964
|
+
product: Partial<Product>;
|
|
965
965
|
price?: number;
|
|
966
966
|
customFields: any;
|
|
967
967
|
}
|
|
@@ -969,9 +969,9 @@ interface PricelistLine {
|
|
|
969
969
|
interface Pricelist {
|
|
970
970
|
id: string;
|
|
971
971
|
name: string;
|
|
972
|
-
customers: Customer[];
|
|
973
|
-
suppliers: Supplier[];
|
|
974
|
-
pricelistLines: PricelistLine[];
|
|
972
|
+
customers: Partial<Customer>[];
|
|
973
|
+
suppliers: Partial<Supplier>[];
|
|
974
|
+
pricelistLines: Partial<PricelistLine>[];
|
|
975
975
|
customFields: any;
|
|
976
976
|
currency: Currency;
|
|
977
977
|
}
|
|
@@ -980,23 +980,23 @@ interface ProductSupplier {
|
|
|
980
980
|
id: string;
|
|
981
981
|
quantity?: number;
|
|
982
982
|
price?: number;
|
|
983
|
-
product: Product
|
|
984
|
-
supplier: Supplier
|
|
983
|
+
product: Partial<Product>;
|
|
984
|
+
supplier: Partial<Supplier>;
|
|
985
985
|
}
|
|
986
986
|
|
|
987
987
|
interface Supplier extends Contact {
|
|
988
|
-
purchaseOrders: PurchaseOrder
|
|
989
|
-
bills: Bill[];
|
|
990
|
-
expenses: Expense[];
|
|
991
|
-
incomingDeliveries: IncomingDelivery[];
|
|
988
|
+
purchaseOrders: Partial<PurchaseOrder>;
|
|
989
|
+
bills: Partial<Bill>[];
|
|
990
|
+
expenses: Partial<Expense>[];
|
|
991
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
992
992
|
importTaxPercentage: number;
|
|
993
|
-
pricelist: Pricelist
|
|
994
|
-
productSuppliers: ProductSupplier[];
|
|
993
|
+
pricelist: Partial<Pricelist>;
|
|
994
|
+
productSuppliers: Partial<ProductSupplier>[];
|
|
995
995
|
}
|
|
996
996
|
|
|
997
997
|
interface PurchaseOrderLine extends OrderLine {
|
|
998
|
-
purchaseOrder: PurchaseOrder
|
|
999
|
-
product: Product
|
|
998
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
999
|
+
product: Partial<Product>;
|
|
1000
1000
|
}
|
|
1001
1001
|
|
|
1002
1002
|
interface Approval {
|
|
@@ -1006,51 +1006,51 @@ interface Approval {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
interface PurchaseOrderApproval extends Approval {
|
|
1009
|
-
purchaseOrder: PurchaseOrder
|
|
1010
|
-
user: User
|
|
1009
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
1010
|
+
user: Partial<User>;
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
1013
|
interface PurchaseOrder extends Order {
|
|
1014
1014
|
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
|
|
1015
|
+
supplier: Partial<Supplier>;
|
|
1016
|
+
purchaseOrderLines: Partial<PurchaseOrderLine>[];
|
|
1017
|
+
createdBy: Partial<User>;
|
|
1018
|
+
expenses: Partial<Expense>[];
|
|
1019
|
+
bills: Partial<Bill>[];
|
|
1020
|
+
incomingShipments: Partial<IncomingShipment>[];
|
|
1021
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
1022
|
+
purchaseOrderApprovals: Partial<PurchaseOrderApproval>;
|
|
1023
|
+
journalEntry: Partial<JournalEntry>;
|
|
1024
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
1025
|
+
subsidiary: Partial<Subsidiary>;
|
|
1026
|
+
dropshipSalesOrder: Partial<SalesOrder>;
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
1029
|
interface IncomingShipment extends Shipment {
|
|
1030
1030
|
id: string;
|
|
1031
|
-
destinationWarehouse: Warehouse
|
|
1032
|
-
product: Product
|
|
1033
|
-
purchaseOrder: PurchaseOrder
|
|
1031
|
+
destinationWarehouse: Partial<Warehouse>;
|
|
1032
|
+
product: Partial<Product>;
|
|
1033
|
+
purchaseOrder: Partial<PurchaseOrder>;
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
interface OutgoingShipment extends Shipment {
|
|
1037
1037
|
id: string;
|
|
1038
|
-
sourceWarehouse: Warehouse
|
|
1039
|
-
product: Product
|
|
1040
|
-
salesOrder: SalesOrder
|
|
1038
|
+
sourceWarehouse: Partial<Warehouse>;
|
|
1039
|
+
product: Partial<Product>;
|
|
1040
|
+
salesOrder: Partial<SalesOrder>;
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
1043
|
interface InternalDeliveryLine extends DeliveryLine {
|
|
1044
|
-
product: Product
|
|
1045
|
-
productItem: ProductItem
|
|
1046
|
-
internalDelivery: InternalDelivery
|
|
1044
|
+
product: Partial<Product>;
|
|
1045
|
+
productItem: Partial<ProductItem>;
|
|
1046
|
+
internalDelivery: Partial<InternalDelivery>;
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
1049
|
interface InternalDelivery extends Delivery {
|
|
1050
|
-
internalDeliveryLines: InternalDeliveryLine[];
|
|
1051
|
-
sourceWarehouse: Warehouse
|
|
1052
|
-
destinationWarehouse: Warehouse
|
|
1053
|
-
createdBy: User
|
|
1050
|
+
internalDeliveryLines: Partial<InternalDeliveryLine>[];
|
|
1051
|
+
sourceWarehouse: Partial<Warehouse>;
|
|
1052
|
+
destinationWarehouse: Partial<Warehouse>;
|
|
1053
|
+
createdBy: Partial<User>;
|
|
1054
1054
|
}
|
|
1055
1055
|
|
|
1056
1056
|
declare enum StockAdjustmentType {
|
|
@@ -1060,29 +1060,29 @@ declare enum StockAdjustmentType {
|
|
|
1060
1060
|
interface StockAdjustment {
|
|
1061
1061
|
id: string;
|
|
1062
1062
|
date?: string;
|
|
1063
|
-
warehouse: Warehouse
|
|
1064
|
-
product: Product
|
|
1063
|
+
warehouse: Partial<Warehouse>;
|
|
1064
|
+
product: Partial<Product>;
|
|
1065
1065
|
type: StockAdjustmentType;
|
|
1066
1066
|
memo: string;
|
|
1067
|
-
user: User
|
|
1067
|
+
user: Partial<User>;
|
|
1068
1068
|
quantity: number;
|
|
1069
1069
|
createdAt: string | Date;
|
|
1070
|
-
createdBy: User
|
|
1070
|
+
createdBy: Partial<User>;
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
1073
|
interface CustomEntityObject {
|
|
1074
1074
|
id: string;
|
|
1075
|
-
customEntitySchema: CustomEntitySchema
|
|
1076
|
-
customEntityFieldValues: CustomEntityFieldValue[];
|
|
1075
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
1076
|
+
customEntityFieldValues: Partial<CustomEntityFieldValue>[];
|
|
1077
1077
|
createdAt: string | Date;
|
|
1078
1078
|
updatedAt: string | Date;
|
|
1079
|
-
createdBy: User
|
|
1079
|
+
createdBy: Partial<User>;
|
|
1080
1080
|
}
|
|
1081
1081
|
|
|
1082
1082
|
interface CustomEntityFieldValue {
|
|
1083
1083
|
id: string;
|
|
1084
|
-
customEntityObject: CustomEntityObject
|
|
1085
|
-
customEntityField: CustomEntityField
|
|
1084
|
+
customEntityObject: Partial<CustomEntityObject>;
|
|
1085
|
+
customEntityField: Partial<CustomEntityField>;
|
|
1086
1086
|
valueText?: string;
|
|
1087
1087
|
valueNumber?: number;
|
|
1088
1088
|
valueCurrency?: number;
|
|
@@ -1102,8 +1102,8 @@ interface CustomEntityFieldValue {
|
|
|
1102
1102
|
|
|
1103
1103
|
interface CustomEntityFieldPermission {
|
|
1104
1104
|
id: string;
|
|
1105
|
-
customEntityField: CustomEntityField
|
|
1106
|
-
userPersona: UserPersona
|
|
1105
|
+
customEntityField: Partial<CustomEntityField>;
|
|
1106
|
+
userPersona: Partial<UserPersona>;
|
|
1107
1107
|
read: boolean;
|
|
1108
1108
|
update: boolean;
|
|
1109
1109
|
}
|
|
@@ -1137,12 +1137,12 @@ interface CustomEntityField {
|
|
|
1137
1137
|
isFilterable: boolean;
|
|
1138
1138
|
isShownOnMainTable: boolean;
|
|
1139
1139
|
entityType?: EntityType;
|
|
1140
|
-
customEntitySchemaReference: CustomEntitySchema
|
|
1140
|
+
customEntitySchemaReference: Partial<CustomEntitySchema>;
|
|
1141
1141
|
jsonSchema?: any;
|
|
1142
1142
|
options: string[];
|
|
1143
|
-
customEntitySchema: CustomEntitySchema
|
|
1144
|
-
customEntityFieldValues: CustomEntityFieldValue[];
|
|
1145
|
-
customEntityFieldPermissions: CustomEntityFieldPermission[];
|
|
1143
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
1144
|
+
customEntityFieldValues: Partial<CustomEntityFieldValue>[];
|
|
1145
|
+
customEntityFieldPermissions: Partial<CustomEntityFieldPermission>[];
|
|
1146
1146
|
}
|
|
1147
1147
|
|
|
1148
1148
|
declare enum AutomationScriptTriggerName {
|
|
@@ -1163,7 +1163,7 @@ declare enum AutomationScriptTriggerName {
|
|
|
1163
1163
|
interface AutomationScriptTriggerEntity {
|
|
1164
1164
|
id: string;
|
|
1165
1165
|
name: AutomationScriptTriggerName;
|
|
1166
|
-
automationScript: AutomationScript
|
|
1166
|
+
automationScript: Partial<AutomationScript>;
|
|
1167
1167
|
}
|
|
1168
1168
|
|
|
1169
1169
|
declare enum AutomationJobStatus {
|
|
@@ -1182,8 +1182,8 @@ interface AutomationJob {
|
|
|
1182
1182
|
errorMessage?: string;
|
|
1183
1183
|
createdAt: string | Date;
|
|
1184
1184
|
completedAt?: string | Date;
|
|
1185
|
-
createdBy: User
|
|
1186
|
-
automationScript: AutomationScript
|
|
1185
|
+
createdBy: Partial<User>;
|
|
1186
|
+
automationScript: Partial<AutomationScript>;
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
1189
|
declare enum EntityEvent {
|
|
@@ -1216,12 +1216,12 @@ interface AutomationScript {
|
|
|
1216
1216
|
name: string;
|
|
1217
1217
|
script: string;
|
|
1218
1218
|
triggers: AutomationScriptTrigger[];
|
|
1219
|
-
automationScriptTriggers: AutomationScriptTriggerEntity[];
|
|
1219
|
+
automationScriptTriggers: Partial<AutomationScriptTriggerEntity>[];
|
|
1220
1220
|
customSchemaNames: string[];
|
|
1221
|
-
createdBy: User
|
|
1222
|
-
automationJobs: AutomationJob[];
|
|
1223
|
-
userActions: UserAction[];
|
|
1224
|
-
customReports: CustomReport[];
|
|
1221
|
+
createdBy: Partial<User>;
|
|
1222
|
+
automationJobs: Partial<AutomationJob>[];
|
|
1223
|
+
userActions: Partial<UserAction>[];
|
|
1224
|
+
customReports: Partial<CustomReport>[];
|
|
1225
1225
|
}
|
|
1226
1226
|
|
|
1227
1227
|
interface CustomReport {
|
|
@@ -1230,8 +1230,8 @@ interface CustomReport {
|
|
|
1230
1230
|
description: string;
|
|
1231
1231
|
config: any;
|
|
1232
1232
|
filters: any;
|
|
1233
|
-
automationScript: AutomationScript
|
|
1234
|
-
form: Form
|
|
1233
|
+
automationScript: Partial<AutomationScript>;
|
|
1234
|
+
form: Partial<Form>;
|
|
1235
1235
|
}
|
|
1236
1236
|
|
|
1237
1237
|
declare enum FormLocation {
|
|
@@ -1242,19 +1242,19 @@ interface Form {
|
|
|
1242
1242
|
id: string;
|
|
1243
1243
|
name: string;
|
|
1244
1244
|
template: any;
|
|
1245
|
-
customEntitySchema: CustomEntitySchema
|
|
1246
|
-
userActions: UserAction[];
|
|
1247
|
-
customReports: CustomReport[];
|
|
1245
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
1246
|
+
userActions: Partial<UserAction>[];
|
|
1247
|
+
customReports: Partial<CustomReport>[];
|
|
1248
1248
|
}
|
|
1249
1249
|
|
|
1250
1250
|
interface CustomEntitySchemaPermission {
|
|
1251
1251
|
id: string;
|
|
1252
|
-
userPersona: UserPersona
|
|
1252
|
+
userPersona: Partial<UserPersona>;
|
|
1253
1253
|
create: boolean;
|
|
1254
1254
|
read: boolean;
|
|
1255
1255
|
update: boolean;
|
|
1256
1256
|
delete: boolean;
|
|
1257
|
-
customEntitySchema: CustomEntitySchema
|
|
1257
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
1260
|
declare enum UserPersonaCustomSchemaPermissionType {
|
|
@@ -1265,8 +1265,8 @@ declare enum UserPersonaCustomSchemaPermissionType {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
interface UserPersonaCustomSchemaPermission {
|
|
1267
1267
|
id: string;
|
|
1268
|
-
userPersona: UserPersona
|
|
1269
|
-
customEntitySchema: CustomEntitySchema
|
|
1268
|
+
userPersona: Partial<UserPersona>;
|
|
1269
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
1270
1270
|
type: UserPersonaCustomSchemaPermissionType;
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
@@ -1289,13 +1289,13 @@ interface CustomEntitySchema {
|
|
|
1289
1289
|
label: string;
|
|
1290
1290
|
module?: Module;
|
|
1291
1291
|
isFilterableByCreatedAt: boolean;
|
|
1292
|
-
customEntityFields: CustomEntityField[];
|
|
1293
|
-
customEntityObjects: CustomEntityObject[];
|
|
1294
|
-
forms: Form[];
|
|
1295
|
-
userActions: UserAction[];
|
|
1296
|
-
referencingCustomEntityFields: CustomEntityField[];
|
|
1297
|
-
customEntitySchemaPermissions: CustomEntitySchemaPermission[];
|
|
1298
|
-
userPersonaCustomSchemaPermissions: UserPersonaCustomSchemaPermission[];
|
|
1292
|
+
customEntityFields: Partial<CustomEntityField>[];
|
|
1293
|
+
customEntityObjects: Partial<CustomEntityObject>[];
|
|
1294
|
+
forms: Partial<Form>[];
|
|
1295
|
+
userActions: Partial<UserAction>[];
|
|
1296
|
+
referencingCustomEntityFields: Partial<CustomEntityField>[];
|
|
1297
|
+
customEntitySchemaPermissions: Partial<CustomEntitySchemaPermission>[];
|
|
1298
|
+
userPersonaCustomSchemaPermissions: Partial<UserPersonaCustomSchemaPermission>[];
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
1301
|
declare enum WebComponentSlotName {
|
|
@@ -1304,7 +1304,7 @@ declare enum WebComponentSlotName {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
interface WebComponentSlot {
|
|
1306
1306
|
id: string;
|
|
1307
|
-
webComponent: WebComponent
|
|
1307
|
+
webComponent: Partial<WebComponent>;
|
|
1308
1308
|
name: WebComponentSlotName;
|
|
1309
1309
|
createdAt: string | Date;
|
|
1310
1310
|
}
|
|
@@ -1314,8 +1314,8 @@ interface WebComponent {
|
|
|
1314
1314
|
name: string;
|
|
1315
1315
|
label?: string;
|
|
1316
1316
|
code: string;
|
|
1317
|
-
slots: WebComponentSlot[];
|
|
1318
|
-
userActions: UserAction[];
|
|
1317
|
+
slots: Partial<WebComponentSlot>[];
|
|
1318
|
+
userActions: Partial<UserAction>[];
|
|
1319
1319
|
}
|
|
1320
1320
|
|
|
1321
1321
|
declare enum UserActionType {
|
|
@@ -1327,12 +1327,12 @@ declare enum UserActionType {
|
|
|
1327
1327
|
interface UserAction {
|
|
1328
1328
|
id: string;
|
|
1329
1329
|
type: UserActionType;
|
|
1330
|
-
customEntitySchema: CustomEntitySchema
|
|
1330
|
+
customEntitySchema: Partial<CustomEntitySchema>;
|
|
1331
1331
|
name: string;
|
|
1332
|
-
form: Form
|
|
1333
|
-
automationScript: AutomationScript
|
|
1334
|
-
webComponent: WebComponent
|
|
1335
|
-
userPersona: UserPersona
|
|
1332
|
+
form: Partial<Form>;
|
|
1333
|
+
automationScript: Partial<AutomationScript>;
|
|
1334
|
+
webComponent: Partial<WebComponent>;
|
|
1335
|
+
userPersona: Partial<UserPersona>;
|
|
1336
1336
|
}
|
|
1337
1337
|
|
|
1338
1338
|
declare enum UserPersonaEntityPermissionType {
|
|
@@ -1343,7 +1343,7 @@ declare enum UserPersonaEntityPermissionType {
|
|
|
1343
1343
|
}
|
|
1344
1344
|
interface UserPersonaEntityPermission {
|
|
1345
1345
|
id: string;
|
|
1346
|
-
userPersona: UserPersona
|
|
1346
|
+
userPersona: Partial<UserPersona>;
|
|
1347
1347
|
entityType: EntityType;
|
|
1348
1348
|
entityId?: string;
|
|
1349
1349
|
type: UserPersonaEntityPermissionType;
|
|
@@ -1356,33 +1356,33 @@ interface EntityObjectPermission {
|
|
|
1356
1356
|
read: boolean;
|
|
1357
1357
|
update: boolean;
|
|
1358
1358
|
delete: boolean;
|
|
1359
|
-
userPersona: UserPersona
|
|
1359
|
+
userPersona: Partial<UserPersona>;
|
|
1360
1360
|
}
|
|
1361
1361
|
|
|
1362
1362
|
interface UserPersonaProductPermission {
|
|
1363
1363
|
id: string;
|
|
1364
|
-
userPersona: UserPersona
|
|
1365
|
-
product: Product
|
|
1364
|
+
userPersona: Partial<UserPersona>;
|
|
1365
|
+
product: Partial<Product>;
|
|
1366
1366
|
}
|
|
1367
1367
|
|
|
1368
1368
|
interface UserPersona {
|
|
1369
1369
|
id: string;
|
|
1370
1370
|
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[];
|
|
1371
|
+
users: Partial<User>[];
|
|
1372
|
+
userActions: Partial<UserAction>[];
|
|
1373
|
+
userPersonaEntityPermissions: Partial<UserPersonaEntityPermission>[];
|
|
1374
|
+
customEntitySchemaPermissions: Partial<CustomEntitySchemaPermission>[];
|
|
1375
|
+
customEntityFieldPermissions: Partial<CustomEntityFieldPermission>[];
|
|
1376
|
+
entityObjectPermissions: Partial<EntityObjectPermission>[];
|
|
1377
|
+
userPersonaCustomSchemaPermissions: Partial<UserPersonaCustomSchemaPermission>[];
|
|
1378
|
+
userPersonaProductPermissions: Partial<UserPersonaProductPermission>[];
|
|
1379
|
+
userPersonaWarehousePermissions: Partial<UserPersonaWarehousePermission>[];
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
1382
|
interface UserPersonaWarehousePermission {
|
|
1383
1383
|
id: string;
|
|
1384
|
-
userPersona: UserPersona
|
|
1385
|
-
warehouse: Warehouse
|
|
1384
|
+
userPersona: Partial<UserPersona>;
|
|
1385
|
+
warehouse: Partial<Warehouse>;
|
|
1386
1386
|
}
|
|
1387
1387
|
|
|
1388
1388
|
interface Warehouse {
|
|
@@ -1390,46 +1390,46 @@ interface Warehouse {
|
|
|
1390
1390
|
name: string;
|
|
1391
1391
|
address: string;
|
|
1392
1392
|
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[];
|
|
1393
|
+
warehouseProducts: Partial<WarehouseProduct>[];
|
|
1394
|
+
productItems: Partial<ProductItem>[];
|
|
1395
|
+
productLocations: Partial<ProductLocation>[];
|
|
1396
|
+
workstations: Partial<Workstation>[];
|
|
1397
|
+
incomingShipments: Partial<IncomingShipment>[];
|
|
1398
|
+
outgoingShipments: Partial<OutgoingShipment>[];
|
|
1399
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
1400
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
1401
|
+
internalSourceDeliveries: Partial<InternalDelivery>[];
|
|
1402
|
+
internalDestinationDeliveries: Partial<InternalDelivery>[];
|
|
1403
|
+
stockAdjustments: Partial<StockAdjustment>[];
|
|
1404
|
+
productionOrders: Partial<ProductionOrder>[];
|
|
1405
|
+
salesOrders: Partial<SalesOrder>[];
|
|
1406
|
+
pointOfSales: Partial<PointOfSale>[];
|
|
1407
|
+
userPersonaWarehousePermissions: Partial<UserPersonaWarehousePermission>[];
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
1410
|
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
|
|
1411
|
+
outgoingDeliveryLines: Partial<OutgoingDeliveryLine>[];
|
|
1412
|
+
sourceWarehouse: Partial<Warehouse>;
|
|
1413
|
+
customer: Partial<Customer>;
|
|
1414
|
+
salesOrder: Partial<SalesOrder>;
|
|
1415
|
+
rentalOrder: Partial<RentalOrder>;
|
|
1416
|
+
subsidiary: Partial<Subsidiary>;
|
|
1417
|
+
createdBy: Partial<User>;
|
|
1418
1418
|
}
|
|
1419
1419
|
|
|
1420
1420
|
interface RentalOrder extends Order {
|
|
1421
1421
|
id: string;
|
|
1422
|
-
rentalOrderLines: RentalOrderLine[];
|
|
1423
|
-
customer: Customer
|
|
1424
|
-
invoices: Invoice
|
|
1425
|
-
outgoingDeliveries: OutgoingDelivery[];
|
|
1426
|
-
incomingDeliveries: IncomingDelivery[];
|
|
1427
|
-
subsidiary: Subsidiary
|
|
1422
|
+
rentalOrderLines: Partial<RentalOrderLine>[];
|
|
1423
|
+
customer: Partial<Customer>;
|
|
1424
|
+
invoices: Partial<Invoice>;
|
|
1425
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
1426
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
1427
|
+
subsidiary: Partial<Subsidiary>;
|
|
1428
1428
|
}
|
|
1429
1429
|
|
|
1430
1430
|
interface InvoiceApproval extends Approval {
|
|
1431
|
-
invoice: Invoice
|
|
1432
|
-
user: User
|
|
1431
|
+
invoice: Partial<Invoice>;
|
|
1432
|
+
user: Partial<User>;
|
|
1433
1433
|
signature?: string;
|
|
1434
1434
|
signedAt?: string | Date;
|
|
1435
1435
|
signatureMethod?: 'STORED' | 'CAPTURED';
|
|
@@ -1445,46 +1445,46 @@ interface Invoice extends Order {
|
|
|
1445
1445
|
pphAmount: number;
|
|
1446
1446
|
downpayment: number;
|
|
1447
1447
|
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[];
|
|
1448
|
+
invoiceLines: Partial<InvoiceLine>[];
|
|
1449
|
+
salesOrder: Partial<SalesOrder>;
|
|
1450
|
+
lease: Partial<Lease>;
|
|
1451
|
+
rentalOrder: Partial<RentalOrder>;
|
|
1452
|
+
customer: Partial<Customer>;
|
|
1453
|
+
payments: Partial<Payment>[];
|
|
1454
|
+
printJobs: Partial<PrintJob>[];
|
|
1455
|
+
subsidiary: Partial<Subsidiary>;
|
|
1456
|
+
createdBy: Partial<User>;
|
|
1457
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
1458
|
+
journalEntry: Partial<JournalEntry>;
|
|
1459
|
+
invoiceApprovals: Partial<InvoiceApproval>[];
|
|
1460
1460
|
}
|
|
1461
1461
|
|
|
1462
1462
|
interface SalesOrderApproval extends Approval {
|
|
1463
|
-
salesOrder: SalesOrder
|
|
1464
|
-
user: User
|
|
1463
|
+
salesOrder: Partial<SalesOrder>;
|
|
1464
|
+
user: Partial<User>;
|
|
1465
1465
|
}
|
|
1466
1466
|
|
|
1467
1467
|
interface StoreProductVariant {
|
|
1468
1468
|
id: string;
|
|
1469
|
-
storeProduct: StoreProduct
|
|
1470
|
-
storeProductAttributeValues: StoreProductAttributeValue[];
|
|
1471
|
-
product: Product
|
|
1472
|
-
cartLines: CartLine[];
|
|
1469
|
+
storeProduct: Partial<StoreProduct>;
|
|
1470
|
+
storeProductAttributeValues: Partial<StoreProductAttributeValue>[];
|
|
1471
|
+
product: Partial<Product>;
|
|
1472
|
+
cartLines: Partial<CartLine>[];
|
|
1473
1473
|
}
|
|
1474
1474
|
|
|
1475
1475
|
interface StoreProductAttributeValueMapping {
|
|
1476
1476
|
id: string;
|
|
1477
|
-
product: Product
|
|
1478
|
-
storeProductAttributeValue: StoreProductAttributeValue
|
|
1477
|
+
product: Partial<Product>;
|
|
1478
|
+
storeProductAttributeValue: Partial<StoreProductAttributeValue>;
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
1481
1481
|
interface StoreProductAttributeValue {
|
|
1482
1482
|
id: string;
|
|
1483
1483
|
name?: string;
|
|
1484
|
-
storeProductAttribute: StoreProductAttribute
|
|
1485
|
-
storeProductVariants: StoreProductVariant[];
|
|
1484
|
+
storeProductAttribute: Partial<StoreProductAttribute>;
|
|
1485
|
+
storeProductVariants: Partial<StoreProductVariant>[];
|
|
1486
1486
|
label?: string;
|
|
1487
|
-
storeProductAttributeValueMappings: StoreProductAttributeValueMapping[];
|
|
1487
|
+
storeProductAttributeValueMappings: Partial<StoreProductAttributeValueMapping>[];
|
|
1488
1488
|
}
|
|
1489
1489
|
|
|
1490
1490
|
interface StoreProductAttribute {
|
|
@@ -1492,22 +1492,22 @@ interface StoreProductAttribute {
|
|
|
1492
1492
|
label?: string;
|
|
1493
1493
|
name?: string;
|
|
1494
1494
|
order: number;
|
|
1495
|
-
storeProduct: StoreProduct
|
|
1496
|
-
storeProductAttributeValues: StoreProductAttributeValue[];
|
|
1495
|
+
storeProduct: Partial<StoreProduct>;
|
|
1496
|
+
storeProductAttributeValues: Partial<StoreProductAttributeValue>[];
|
|
1497
1497
|
}
|
|
1498
1498
|
|
|
1499
1499
|
interface StoreProductGroup {
|
|
1500
1500
|
id: string;
|
|
1501
1501
|
name: string;
|
|
1502
1502
|
ancestry?: string;
|
|
1503
|
-
store: Store
|
|
1504
|
-
storeProducts: StoreProduct[];
|
|
1503
|
+
store: Partial<Store>;
|
|
1504
|
+
storeProducts: Partial<StoreProduct>[];
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
1507
|
interface StoreUser {
|
|
1508
1508
|
id: string;
|
|
1509
|
-
store: Store
|
|
1510
|
-
carts: Cart[];
|
|
1509
|
+
store: Partial<Store>;
|
|
1510
|
+
carts: Partial<Cart>[];
|
|
1511
1511
|
}
|
|
1512
1512
|
|
|
1513
1513
|
interface Store {
|
|
@@ -1516,51 +1516,51 @@ interface Store {
|
|
|
1516
1516
|
currency: Currency;
|
|
1517
1517
|
description: string;
|
|
1518
1518
|
layout: any;
|
|
1519
|
-
storeProductGroups: StoreProductGroup[];
|
|
1520
|
-
storeProducts: StoreProduct[];
|
|
1521
|
-
storeUsers: StoreUser[];
|
|
1522
|
-
carts: Cart[];
|
|
1519
|
+
storeProductGroups: Partial<StoreProductGroup>[];
|
|
1520
|
+
storeProducts: Partial<StoreProduct>[];
|
|
1521
|
+
storeUsers: Partial<StoreUser>[];
|
|
1522
|
+
carts: Partial<Cart>[];
|
|
1523
1523
|
}
|
|
1524
1524
|
|
|
1525
1525
|
interface StoreProduct {
|
|
1526
1526
|
id: string;
|
|
1527
1527
|
name: string;
|
|
1528
1528
|
description: string;
|
|
1529
|
-
product: Product
|
|
1530
|
-
storeProductAttributes: StoreProductAttribute[];
|
|
1531
|
-
storeProductVariants: StoreProductVariant[];
|
|
1529
|
+
product: Partial<Product>;
|
|
1530
|
+
storeProductAttributes: Partial<StoreProductAttribute>[];
|
|
1531
|
+
storeProductVariants: Partial<StoreProductVariant>[];
|
|
1532
1532
|
images: string[];
|
|
1533
|
-
store: Store
|
|
1534
|
-
cartLines: CartLine[];
|
|
1535
|
-
storeProductGroup: StoreProductGroup
|
|
1533
|
+
store: Partial<Store>;
|
|
1534
|
+
cartLines: Partial<CartLine>[];
|
|
1535
|
+
storeProductGroup: Partial<StoreProductGroup>;
|
|
1536
1536
|
}
|
|
1537
1537
|
|
|
1538
1538
|
interface CartLine extends OrderLine {
|
|
1539
|
-
cart: Cart
|
|
1540
|
-
storeProduct: StoreProduct
|
|
1541
|
-
storeProductVariant: StoreProductVariant
|
|
1542
|
-
product: Product
|
|
1539
|
+
cart: Partial<Cart>;
|
|
1540
|
+
storeProduct: Partial<StoreProduct>;
|
|
1541
|
+
storeProductVariant: Partial<StoreProductVariant>;
|
|
1542
|
+
product: Partial<Product>;
|
|
1543
1543
|
}
|
|
1544
1544
|
|
|
1545
1545
|
interface Cart extends Order {
|
|
1546
|
-
customer: Customer
|
|
1547
|
-
cartLines: CartLine[];
|
|
1548
|
-
storeUser: StoreUser
|
|
1549
|
-
store: Store
|
|
1550
|
-
salesOrders: SalesOrder[];
|
|
1546
|
+
customer: Partial<Customer>;
|
|
1547
|
+
cartLines: Partial<CartLine>[];
|
|
1548
|
+
storeUser: Partial<StoreUser>;
|
|
1549
|
+
store: Partial<Store>;
|
|
1550
|
+
salesOrders: Partial<SalesOrder>[];
|
|
1551
1551
|
createdAt: string | Date;
|
|
1552
1552
|
}
|
|
1553
1553
|
|
|
1554
1554
|
interface ReturnSalesOrderLine extends OrderLine {
|
|
1555
1555
|
id: string;
|
|
1556
|
-
returnSalesOrder: ReturnSalesOrder
|
|
1557
|
-
product: Product
|
|
1556
|
+
returnSalesOrder: Partial<ReturnSalesOrder>;
|
|
1557
|
+
product: Partial<Product>;
|
|
1558
1558
|
}
|
|
1559
1559
|
|
|
1560
1560
|
interface ReturnSalesOrder extends Order {
|
|
1561
1561
|
id: string;
|
|
1562
|
-
returnSalesOrderLines: ReturnSalesOrderLine[];
|
|
1563
|
-
salesOrder: SalesOrder
|
|
1562
|
+
returnSalesOrderLines: Partial<ReturnSalesOrderLine>[];
|
|
1563
|
+
salesOrder: Partial<SalesOrder>;
|
|
1564
1564
|
}
|
|
1565
1565
|
|
|
1566
1566
|
declare enum SalesOrderType {
|
|
@@ -1569,25 +1569,25 @@ declare enum SalesOrderType {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
interface SalesOrder extends Order {
|
|
1571
1571
|
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[];
|
|
1572
|
+
salesOrderLines: Partial<SalesOrderLine>[];
|
|
1573
|
+
createdBy: Partial<User>;
|
|
1574
|
+
customer: Partial<Customer>;
|
|
1575
|
+
invoices: Partial<Invoice>[];
|
|
1576
|
+
outgoingShipments: Partial<OutgoingShipment>[];
|
|
1577
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
1578
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
1579
|
+
salesOrderApprovals: Partial<SalesOrderApproval>[];
|
|
1580
|
+
printJobs: Partial<PrintJob>[];
|
|
1581
|
+
subsidiary: Partial<Subsidiary>;
|
|
1582
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
1583
|
+
journalEntry: Partial<JournalEntry>;
|
|
1584
|
+
parentRefundSalesOrder: Partial<SalesOrder>;
|
|
1585
|
+
refundSalesOrders: Partial<SalesOrder>[];
|
|
1586
|
+
warehouse: Partial<Warehouse>;
|
|
1587
|
+
pointOfSale: Partial<PointOfSale>;
|
|
1588
|
+
dropshipPurchaseOrders: Partial<PurchaseOrder>[];
|
|
1589
|
+
cart: Partial<Cart>;
|
|
1590
|
+
returnSalesOrders: Partial<ReturnSalesOrder>[];
|
|
1591
1591
|
}
|
|
1592
1592
|
|
|
1593
1593
|
declare enum PrintJobStatus {
|
|
@@ -1605,12 +1605,12 @@ interface PrintJob {
|
|
|
1605
1605
|
id: string;
|
|
1606
1606
|
type?: PrintJobType;
|
|
1607
1607
|
status: PrintJobStatus;
|
|
1608
|
-
thermalPrinter: ThermalPrinter
|
|
1608
|
+
thermalPrinter: Partial<ThermalPrinter>;
|
|
1609
1609
|
errorMessage?: string;
|
|
1610
|
-
salesOrder: SalesOrder
|
|
1611
|
-
salesOrderLinePrintJobs: SalesOrderLinePrintJob[];
|
|
1610
|
+
salesOrder: Partial<SalesOrder>;
|
|
1611
|
+
salesOrderLinePrintJobs: Partial<SalesOrderLinePrintJob>[];
|
|
1612
1612
|
additionalData?: any;
|
|
1613
|
-
invoice: Invoice
|
|
1613
|
+
invoice: Partial<Invoice>;
|
|
1614
1614
|
createdAt: string | Date;
|
|
1615
1615
|
}
|
|
1616
1616
|
|
|
@@ -1618,17 +1618,17 @@ interface ThermalPrinter {
|
|
|
1618
1618
|
id: string;
|
|
1619
1619
|
name: string;
|
|
1620
1620
|
ipAddress: string;
|
|
1621
|
-
printJobs: PrintJob[];
|
|
1622
|
-
products: Product[];
|
|
1623
|
-
productGroups: ProductGroup[];
|
|
1621
|
+
printJobs: Partial<PrintJob>[];
|
|
1622
|
+
products: Partial<Product>[];
|
|
1623
|
+
productGroups: Partial<ProductGroup>[];
|
|
1624
1624
|
}
|
|
1625
1625
|
|
|
1626
1626
|
interface ProductGroup {
|
|
1627
1627
|
id: string;
|
|
1628
1628
|
name: string;
|
|
1629
1629
|
ancestry?: string;
|
|
1630
|
-
products: Product[];
|
|
1631
|
-
thermalPrinter: ThermalPrinter
|
|
1630
|
+
products: Partial<Product>[];
|
|
1631
|
+
thermalPrinter: Partial<ThermalPrinter>;
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
1634
|
interface UnitConversion {
|
|
@@ -1636,13 +1636,13 @@ interface UnitConversion {
|
|
|
1636
1636
|
fromUnit: string;
|
|
1637
1637
|
toUnit: string;
|
|
1638
1638
|
factor: number;
|
|
1639
|
-
product: Product
|
|
1639
|
+
product: Partial<Product>;
|
|
1640
1640
|
}
|
|
1641
1641
|
|
|
1642
1642
|
interface QuoteLine extends OrderLine {
|
|
1643
1643
|
id: string;
|
|
1644
|
-
quote: Quote
|
|
1645
|
-
product: Product
|
|
1644
|
+
quote: Partial<Quote>;
|
|
1645
|
+
product: Partial<Product>;
|
|
1646
1646
|
}
|
|
1647
1647
|
|
|
1648
1648
|
interface Product {
|
|
@@ -1657,44 +1657,44 @@ interface Product {
|
|
|
1657
1657
|
purchasePrice?: number;
|
|
1658
1658
|
price?: number;
|
|
1659
1659
|
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[];
|
|
1660
|
+
productGroup: Partial<ProductGroup>;
|
|
1661
|
+
productItems: Partial<ProductItem>[];
|
|
1662
|
+
unitConversions: Partial<UnitConversion>[];
|
|
1663
|
+
salesOrderLines: Partial<SalesOrderLine>;
|
|
1664
|
+
purchaseOrderLines: Partial<PurchaseOrderLine>;
|
|
1665
|
+
invoiceLines: Partial<InvoiceLine>;
|
|
1666
|
+
expenseLines: Partial<ExpenseLine>;
|
|
1667
|
+
billLines: Partial<BillLine>[];
|
|
1668
|
+
maintenanceOrderLines: Partial<MaintenanceOrderLine>[];
|
|
1669
|
+
quoteLines: Partial<QuoteLine>;
|
|
1670
|
+
rentalOrderLines: Partial<RentalOrderLine>[];
|
|
1671
|
+
warehouseProducts: Partial<WarehouseProduct>[];
|
|
1672
|
+
workstationProducts: Partial<WorkstationProduct>[];
|
|
1673
|
+
workstationTransfers: Partial<WorkstationTransfer>[];
|
|
1674
|
+
stockAdjustments: Partial<StockAdjustment>[];
|
|
1675
|
+
incomingShipments: Partial<IncomingShipment>[];
|
|
1676
|
+
outgoingShipments: Partial<OutgoingShipment>[];
|
|
1677
|
+
incomingDeliveryLines: Partial<IncomingDeliveryLine>[];
|
|
1678
|
+
outgoingDeliveryLines: Partial<OutgoingDeliveryLine>[];
|
|
1679
|
+
internalDeliveryLines: Partial<InternalDeliveryLine>[];
|
|
1680
1680
|
incomingStock: number;
|
|
1681
1681
|
inStock: number;
|
|
1682
1682
|
outgoingStock: number;
|
|
1683
1683
|
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[];
|
|
1684
|
+
billOfMaterials: Partial<BillOfMaterials>[];
|
|
1685
|
+
bomComponents: Partial<BOMComponent>[];
|
|
1686
|
+
productionOrders: Partial<ProductionOrder>[];
|
|
1687
|
+
productionOrderLines: Partial<ProductionOrderLine>[];
|
|
1688
|
+
storeProducts: Partial<StoreProduct>[];
|
|
1689
|
+
storeProductAttributeValueMappings: Partial<StoreProductAttributeValueMapping>[];
|
|
1690
|
+
cartLines: Partial<CartLine>[];
|
|
1691
|
+
storeProductVariants: Partial<StoreProductVariant>[];
|
|
1692
|
+
thermalPrinter: Partial<ThermalPrinter>;
|
|
1693
|
+
inventoryAccount: Partial<Account>;
|
|
1694
|
+
incomeAccount: Partial<Account>;
|
|
1695
|
+
expenseAccount: Partial<Account>;
|
|
1696
|
+
userPersonaProductPermissions: Partial<UserPersonaProductPermission>[];
|
|
1697
|
+
productSuppliers: Partial<ProductSupplier>[];
|
|
1698
1698
|
isService: boolean;
|
|
1699
1699
|
isDeleted: boolean;
|
|
1700
1700
|
createdAt: string | Date;
|
|
@@ -1706,8 +1706,8 @@ interface Product {
|
|
|
1706
1706
|
isTrackable: boolean;
|
|
1707
1707
|
automatedInventoryValuationEnabled: boolean;
|
|
1708
1708
|
customFields: any;
|
|
1709
|
-
pricelistLines: PricelistLine[];
|
|
1710
|
-
returnSalesOrderLines: ReturnSalesOrderLine[];
|
|
1709
|
+
pricelistLines: Partial<PricelistLine>[];
|
|
1710
|
+
returnSalesOrderLines: Partial<ReturnSalesOrderLine>[];
|
|
1711
1711
|
}
|
|
1712
1712
|
|
|
1713
1713
|
interface ProductItem {
|
|
@@ -1715,27 +1715,27 @@ interface ProductItem {
|
|
|
1715
1715
|
serialNumber: string;
|
|
1716
1716
|
description: string;
|
|
1717
1717
|
quantity: number;
|
|
1718
|
-
product: Product
|
|
1719
|
-
warehouse: Warehouse
|
|
1718
|
+
product: Partial<Product>;
|
|
1719
|
+
warehouse: Partial<Warehouse>;
|
|
1720
1720
|
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[];
|
|
1721
|
+
rentalOrderLines: Partial<RentalOrderLine>[];
|
|
1722
|
+
incomingDeliveryLines: Partial<IncomingDeliveryLine>[];
|
|
1723
|
+
outgoingDeliveryLines: Partial<OutgoingDeliveryLine>[];
|
|
1724
|
+
internalDeliveryLines: Partial<InternalDeliveryLine>[];
|
|
1725
|
+
invoiceLines: Partial<InvoiceLine>[];
|
|
1726
|
+
productionOrder: Partial<ProductionOrder>;
|
|
1727
|
+
productLocation: Partial<ProductLocation> | null;
|
|
1728
|
+
productionOrderInput: Partial<ProductionOrder> | null;
|
|
1729
|
+
productLocationTransfers: Partial<ProductLocationTransfer>[];
|
|
1730
|
+
vehicleTires: Partial<VehicleTire>[];
|
|
1731
1731
|
createdAt: string | Date;
|
|
1732
1732
|
}
|
|
1733
1733
|
|
|
1734
1734
|
interface VehicleTire {
|
|
1735
1735
|
id: string;
|
|
1736
1736
|
position: string;
|
|
1737
|
-
productItem: ProductItem
|
|
1738
|
-
vehicle: Vehicle
|
|
1737
|
+
productItem: Partial<ProductItem>;
|
|
1738
|
+
vehicle: Partial<Vehicle>;
|
|
1739
1739
|
}
|
|
1740
1740
|
|
|
1741
1741
|
declare enum TelemetryAttributeKey {
|
|
@@ -1747,31 +1747,31 @@ interface TelemetryAttribute {
|
|
|
1747
1747
|
id: string;
|
|
1748
1748
|
key: TelemetryAttributeKey;
|
|
1749
1749
|
value: number;
|
|
1750
|
-
telemetryEvent: TelemetryEvent
|
|
1750
|
+
telemetryEvent: Partial<TelemetryEvent>;
|
|
1751
1751
|
}
|
|
1752
1752
|
|
|
1753
1753
|
interface TelemetryEvent {
|
|
1754
1754
|
id: string;
|
|
1755
|
-
telemetryAttributes: TelemetryAttribute[];
|
|
1756
|
-
vehicle: Vehicle
|
|
1755
|
+
telemetryAttributes: Partial<TelemetryAttribute>[];
|
|
1756
|
+
vehicle: Partial<Vehicle>;
|
|
1757
1757
|
createdAt: string | Date;
|
|
1758
1758
|
}
|
|
1759
1759
|
|
|
1760
1760
|
interface Vehicle {
|
|
1761
1761
|
id: string;
|
|
1762
1762
|
name: string;
|
|
1763
|
-
fuelEntries: FuelEntry[];
|
|
1764
|
-
driver: User
|
|
1763
|
+
fuelEntries: Partial<FuelEntry>[];
|
|
1764
|
+
driver: Partial<User>;
|
|
1765
1765
|
registrationNumber?: string;
|
|
1766
1766
|
licensePlate?: string;
|
|
1767
1767
|
vin?: string;
|
|
1768
1768
|
customFields: any;
|
|
1769
|
-
deliveryJobs: DeliveryJob[];
|
|
1769
|
+
deliveryJobs: Partial<DeliveryJob>[];
|
|
1770
1770
|
axleConfiguration?: number[];
|
|
1771
|
-
vehicleTelemetries: VehicleTelemetry[];
|
|
1772
|
-
vehicleTires: VehicleTire[];
|
|
1773
|
-
telemetryEvents: TelemetryEvent[];
|
|
1774
|
-
maintenanceOrders: MaintenanceOrder[];
|
|
1771
|
+
vehicleTelemetries: Partial<VehicleTelemetry>[];
|
|
1772
|
+
vehicleTires: Partial<VehicleTire>[];
|
|
1773
|
+
telemetryEvents: Partial<TelemetryEvent>[];
|
|
1774
|
+
maintenanceOrders: Partial<MaintenanceOrder>[];
|
|
1775
1775
|
}
|
|
1776
1776
|
|
|
1777
1777
|
declare enum DeliveryJobStatus {
|
|
@@ -1792,18 +1792,18 @@ interface DeliveryJob {
|
|
|
1792
1792
|
endAddress?: string;
|
|
1793
1793
|
status: DeliveryJobStatus;
|
|
1794
1794
|
customFields: any;
|
|
1795
|
-
costLines: CostLine[];
|
|
1796
|
-
customer: Customer
|
|
1795
|
+
costLines: Partial<CostLine>[];
|
|
1796
|
+
customer: Partial<Customer>;
|
|
1797
1797
|
revenue: number;
|
|
1798
|
-
vehicle: Vehicle
|
|
1799
|
-
user: User
|
|
1800
|
-
subsidiary: Subsidiary
|
|
1798
|
+
vehicle: Partial<Vehicle>;
|
|
1799
|
+
user: Partial<User>;
|
|
1800
|
+
subsidiary: Partial<Subsidiary>;
|
|
1801
1801
|
createdAt: string | Date;
|
|
1802
1802
|
}
|
|
1803
1803
|
|
|
1804
1804
|
interface CompanyUser {
|
|
1805
1805
|
id: string;
|
|
1806
|
-
user: User
|
|
1806
|
+
user: Partial<User>;
|
|
1807
1807
|
}
|
|
1808
1808
|
|
|
1809
1809
|
declare enum UserPermissionName {
|
|
@@ -1826,7 +1826,7 @@ declare enum UserPermissionName {
|
|
|
1826
1826
|
interface UserPermission {
|
|
1827
1827
|
id: string;
|
|
1828
1828
|
name: UserPermissionName;
|
|
1829
|
-
user: User
|
|
1829
|
+
user: Partial<User>;
|
|
1830
1830
|
}
|
|
1831
1831
|
|
|
1832
1832
|
declare enum AuditLogAction {
|
|
@@ -1844,7 +1844,7 @@ interface AuditLog {
|
|
|
1844
1844
|
relatedEntityType?: string;
|
|
1845
1845
|
relatedEntityId?: string;
|
|
1846
1846
|
relatedEntityValue?: any;
|
|
1847
|
-
user: User
|
|
1847
|
+
user: Partial<User>;
|
|
1848
1848
|
createdAt: string | Date;
|
|
1849
1849
|
}
|
|
1850
1850
|
|
|
@@ -1859,7 +1859,7 @@ interface NotificationEntity {
|
|
|
1859
1859
|
isAi: boolean;
|
|
1860
1860
|
entityId?: string;
|
|
1861
1861
|
level: string;
|
|
1862
|
-
user: User
|
|
1862
|
+
user: Partial<User>;
|
|
1863
1863
|
createdAt: string | Date;
|
|
1864
1864
|
}
|
|
1865
1865
|
|
|
@@ -1870,7 +1870,7 @@ declare enum ApproverType {
|
|
|
1870
1870
|
}
|
|
1871
1871
|
interface Approver {
|
|
1872
1872
|
id: string;
|
|
1873
|
-
user: User
|
|
1873
|
+
user: Partial<User>;
|
|
1874
1874
|
type: ApproverType;
|
|
1875
1875
|
}
|
|
1876
1876
|
|
|
@@ -1885,8 +1885,8 @@ interface Attendance {
|
|
|
1885
1885
|
latitudeOut?: number;
|
|
1886
1886
|
longitudeOut?: number;
|
|
1887
1887
|
isFaceVerified: boolean;
|
|
1888
|
-
employee: Employee
|
|
1889
|
-
geofence: Geofence
|
|
1888
|
+
employee: Partial<Employee>;
|
|
1889
|
+
geofence: Partial<Geofence>;
|
|
1890
1890
|
}
|
|
1891
1891
|
|
|
1892
1892
|
interface Geofence {
|
|
@@ -1895,8 +1895,8 @@ interface Geofence {
|
|
|
1895
1895
|
latitude?: number;
|
|
1896
1896
|
longitude?: number;
|
|
1897
1897
|
radius?: number;
|
|
1898
|
-
employees: Employee[];
|
|
1899
|
-
attendances: Attendance[];
|
|
1898
|
+
employees: Partial<Employee>[];
|
|
1899
|
+
attendances: Partial<Attendance>[];
|
|
1900
1900
|
}
|
|
1901
1901
|
|
|
1902
1902
|
declare enum Day {
|
|
@@ -1913,7 +1913,7 @@ interface Shift {
|
|
|
1913
1913
|
startTime: string;
|
|
1914
1914
|
endTime: string;
|
|
1915
1915
|
day: Day;
|
|
1916
|
-
employee: Employee
|
|
1916
|
+
employee: Partial<Employee>;
|
|
1917
1917
|
}
|
|
1918
1918
|
|
|
1919
1919
|
declare enum SalaryPeriod {
|
|
@@ -1933,10 +1933,10 @@ interface Employee {
|
|
|
1933
1933
|
images: string[];
|
|
1934
1934
|
salaryAmount?: number;
|
|
1935
1935
|
salaryPeriod?: SalaryPeriod;
|
|
1936
|
-
assignedLocation: Geofence
|
|
1937
|
-
user: User
|
|
1938
|
-
attendances: Attendance[];
|
|
1939
|
-
shifts: Shift[];
|
|
1936
|
+
assignedLocation: Partial<Geofence>;
|
|
1937
|
+
user: Partial<User>;
|
|
1938
|
+
attendances: Partial<Attendance>[];
|
|
1939
|
+
shifts: Partial<Shift>[];
|
|
1940
1940
|
}
|
|
1941
1941
|
|
|
1942
1942
|
declare enum IotJobStatus {
|
|
@@ -1949,7 +1949,7 @@ interface IotJob {
|
|
|
1949
1949
|
id: string;
|
|
1950
1950
|
status: IotJobStatus;
|
|
1951
1951
|
data: any;
|
|
1952
|
-
iotDevice: IotDevice
|
|
1952
|
+
iotDevice: Partial<IotDevice>;
|
|
1953
1953
|
createdAt: string | Date;
|
|
1954
1954
|
}
|
|
1955
1955
|
|
|
@@ -1967,17 +1967,17 @@ interface IotDevice {
|
|
|
1967
1967
|
type: IotDeviceType;
|
|
1968
1968
|
lastActive?: string | Date;
|
|
1969
1969
|
properties: any;
|
|
1970
|
-
iotJobs: IotJob[];
|
|
1970
|
+
iotJobs: Partial<IotJob>[];
|
|
1971
1971
|
lastActiveAt: string | Date;
|
|
1972
1972
|
lastJobStatus?: IotJobStatus;
|
|
1973
|
-
user: User
|
|
1973
|
+
user: Partial<User>;
|
|
1974
1974
|
}
|
|
1975
1975
|
|
|
1976
1976
|
interface Conversation {
|
|
1977
1977
|
id: string;
|
|
1978
1978
|
title?: string;
|
|
1979
|
-
conversationMessages: ConversationMessage[];
|
|
1980
|
-
customer: Customer
|
|
1979
|
+
conversationMessages: Partial<ConversationMessage>[];
|
|
1980
|
+
customer: Partial<Customer>;
|
|
1981
1981
|
createdAt: string | Date;
|
|
1982
1982
|
}
|
|
1983
1983
|
|
|
@@ -1985,17 +1985,17 @@ interface ConversationMessage {
|
|
|
1985
1985
|
id: string;
|
|
1986
1986
|
files: string[];
|
|
1987
1987
|
content: string;
|
|
1988
|
-
conversation: Conversation
|
|
1988
|
+
conversation: Partial<Conversation>;
|
|
1989
1989
|
isDelivered: boolean;
|
|
1990
|
-
user: User
|
|
1991
|
-
customer: Customer
|
|
1990
|
+
user: Partial<User>;
|
|
1991
|
+
customer: Partial<Customer>;
|
|
1992
1992
|
time?: string | Date;
|
|
1993
1993
|
createdAt: string | Date;
|
|
1994
1994
|
}
|
|
1995
1995
|
|
|
1996
1996
|
interface UserLog {
|
|
1997
1997
|
id: string;
|
|
1998
|
-
user: User
|
|
1998
|
+
user: Partial<User>;
|
|
1999
1999
|
method: string;
|
|
2000
2000
|
path: string;
|
|
2001
2001
|
query?: Record<string, any>;
|
|
@@ -2011,7 +2011,7 @@ interface UserLog {
|
|
|
2011
2011
|
interface ImportJobRow {
|
|
2012
2012
|
id: string;
|
|
2013
2013
|
status: ImportJobStatus;
|
|
2014
|
-
importJob: ImportJob
|
|
2014
|
+
importJob: Partial<ImportJob>;
|
|
2015
2015
|
errorMessage?: string;
|
|
2016
2016
|
errorColumnName?: string;
|
|
2017
2017
|
index: number;
|
|
@@ -2027,10 +2027,10 @@ declare enum ImportJobStatus {
|
|
|
2027
2027
|
interface ImportJob {
|
|
2028
2028
|
id: string;
|
|
2029
2029
|
status: ImportJobStatus;
|
|
2030
|
-
importJobRows: ImportJobRow[];
|
|
2030
|
+
importJobRows: Partial<ImportJobRow>[];
|
|
2031
2031
|
entityType: EntityType;
|
|
2032
2032
|
createdAt: string | Date;
|
|
2033
|
-
createdBy: User
|
|
2033
|
+
createdBy: Partial<User>;
|
|
2034
2034
|
}
|
|
2035
2035
|
|
|
2036
2036
|
interface User {
|
|
@@ -2045,52 +2045,52 @@ interface User {
|
|
|
2045
2045
|
driverLicenseNo?: string;
|
|
2046
2046
|
ktpNo?: string;
|
|
2047
2047
|
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[];
|
|
2048
|
+
deliveryJobs: Partial<DeliveryJob>[];
|
|
2049
|
+
companyUsers: Partial<CompanyUser>[];
|
|
2050
|
+
userPermissions: Partial<UserPermission>[];
|
|
2051
|
+
auditLogs: Partial<AuditLog>[];
|
|
2052
|
+
notifications: Partial<NotificationEntity>[];
|
|
2053
|
+
approvers: Partial<Approver>[];
|
|
2054
|
+
purchaseOrderApprovals: Partial<PurchaseOrderApproval>[];
|
|
2055
|
+
salesOrderApprovals: Partial<SalesOrderApproval>[];
|
|
2056
|
+
invoiceApprovals: Partial<InvoiceApproval>[];
|
|
2057
|
+
salesOrders: Partial<SalesOrder>[];
|
|
2058
|
+
purchaseOrders: Partial<PurchaseOrder>[];
|
|
2059
|
+
quotes: Partial<Quote>[];
|
|
2060
|
+
invoices: Partial<Invoice>[];
|
|
2061
|
+
payments: Partial<Payment>[];
|
|
2062
|
+
journalEntries: Partial<JournalEntry>[];
|
|
2063
|
+
workstationTransfers: Partial<WorkstationTransfer>[];
|
|
2064
|
+
internalDeliveries: Partial<InternalDelivery>[];
|
|
2065
|
+
leases: Partial<Lease>[];
|
|
2066
|
+
stockAdjustments: Partial<StockAdjustment>[];
|
|
2067
|
+
employees: Partial<Employee>[];
|
|
2068
|
+
vehicles: Partial<Vehicle>[];
|
|
2069
|
+
automationScripts: Partial<AutomationScript>[];
|
|
2070
|
+
automationJobs: Partial<AutomationJob>[];
|
|
2071
|
+
iotDevices: Partial<IotDevice>[];
|
|
2072
|
+
userPersonas: Partial<UserPersona>[];
|
|
2073
|
+
conversationMessages: Partial<ConversationMessage>[];
|
|
2074
|
+
userLogs: Partial<UserLog>[];
|
|
2075
2075
|
signature?: string;
|
|
2076
2076
|
expoPushToken?: string;
|
|
2077
2077
|
createdAt: string | Date;
|
|
2078
2078
|
updatedAt: string | Date;
|
|
2079
|
-
customEntityObjects: CustomEntityObject[];
|
|
2080
|
-
createdStockAdjustments: StockAdjustment[];
|
|
2081
|
-
incomingDeliveries: IncomingDelivery[];
|
|
2082
|
-
outgoingDeliveries: OutgoingDelivery[];
|
|
2083
|
-
importJobs: ImportJob[];
|
|
2079
|
+
customEntityObjects: Partial<CustomEntityObject>[];
|
|
2080
|
+
createdStockAdjustments: Partial<StockAdjustment>[];
|
|
2081
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
2082
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
2083
|
+
importJobs: Partial<ImportJob>[];
|
|
2084
2084
|
}
|
|
2085
2085
|
|
|
2086
2086
|
interface Quote extends Order {
|
|
2087
2087
|
id: string;
|
|
2088
2088
|
validUntil?: string;
|
|
2089
|
-
createdBy: User
|
|
2090
|
-
quoteLines: QuoteLine[];
|
|
2091
|
-
customer: Customer
|
|
2092
|
-
subsidiary: Subsidiary
|
|
2093
|
-
identifierGroup: IdentifierGroup
|
|
2089
|
+
createdBy: Partial<User>;
|
|
2090
|
+
quoteLines: Partial<QuoteLine>[];
|
|
2091
|
+
customer: Partial<Customer>;
|
|
2092
|
+
subsidiary: Partial<Subsidiary>;
|
|
2093
|
+
identifierGroup: Partial<IdentifierGroup>;
|
|
2094
2094
|
}
|
|
2095
2095
|
|
|
2096
2096
|
declare enum CustomerEventType {
|
|
@@ -2101,7 +2101,7 @@ interface CustomerEvent {
|
|
|
2101
2101
|
id: string;
|
|
2102
2102
|
type: CustomerEventType;
|
|
2103
2103
|
message?: string;
|
|
2104
|
-
customer: Customer
|
|
2104
|
+
customer: Partial<Customer>;
|
|
2105
2105
|
}
|
|
2106
2106
|
|
|
2107
2107
|
declare enum CustomerSourceChannel {
|
|
@@ -2122,21 +2122,21 @@ declare enum LifecycleStage {
|
|
|
2122
2122
|
}
|
|
2123
2123
|
interface Customer extends Contact {
|
|
2124
2124
|
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[];
|
|
2125
|
+
quotes: Partial<Quote>[];
|
|
2126
|
+
salesOrders: Partial<SalesOrder>[];
|
|
2127
|
+
rentalOrders: Partial<RentalOrder>[];
|
|
2128
|
+
carts: Partial<Cart>[];
|
|
2129
|
+
invoices: Partial<Invoice>[];
|
|
2130
|
+
outgoingDeliveries: Partial<OutgoingDelivery>[];
|
|
2131
|
+
customerEvents: Partial<CustomerEvent>[];
|
|
2132
|
+
deliveryJobs: Partial<DeliveryJob>[];
|
|
2133
|
+
activities: Partial<Activity>[];
|
|
2134
|
+
incomingDeliveries: Partial<IncomingDelivery>[];
|
|
2135
2135
|
sourceChannel?: CustomerSourceChannel;
|
|
2136
|
-
conversationMessages: ConversationMessage[];
|
|
2137
|
-
pricelist: Pricelist
|
|
2138
|
-
conversations: Conversation[];
|
|
2139
|
-
leases: Lease[];
|
|
2136
|
+
conversationMessages: Partial<ConversationMessage>[];
|
|
2137
|
+
pricelist: Partial<Pricelist>;
|
|
2138
|
+
conversations: Partial<Conversation>[];
|
|
2139
|
+
leases: Partial<Lease>[];
|
|
2140
2140
|
isDefaultSalesOrderCustomer: boolean;
|
|
2141
2141
|
}
|
|
2142
2142
|
|
|
@@ -2153,7 +2153,7 @@ interface Activity {
|
|
|
2153
2153
|
description: string;
|
|
2154
2154
|
startTime?: string | Date;
|
|
2155
2155
|
endTime?: string | Date;
|
|
2156
|
-
customer: Customer
|
|
2156
|
+
customer: Partial<Customer>;
|
|
2157
2157
|
createdAt: string | Date;
|
|
2158
2158
|
}
|
|
2159
2159
|
|
|
@@ -2355,7 +2355,7 @@ interface View {
|
|
|
2355
2355
|
interface ChatSession {
|
|
2356
2356
|
id: string;
|
|
2357
2357
|
title?: string;
|
|
2358
|
-
chatMessages: ChatMessage[];
|
|
2358
|
+
chatMessages: Partial<ChatMessage>[];
|
|
2359
2359
|
createdAt: string | Date;
|
|
2360
2360
|
}
|
|
2361
2361
|
|
|
@@ -2369,7 +2369,7 @@ interface ChatMessage {
|
|
|
2369
2369
|
files: string[];
|
|
2370
2370
|
content: string;
|
|
2371
2371
|
metadata: any;
|
|
2372
|
-
chatSession: ChatSession
|
|
2372
|
+
chatSession: Partial<ChatSession>;
|
|
2373
2373
|
createdAt: string | Date;
|
|
2374
2374
|
}
|
|
2375
2375
|
|
|
@@ -2385,7 +2385,7 @@ interface Rule {
|
|
|
2385
2385
|
name: string;
|
|
2386
2386
|
description: string;
|
|
2387
2387
|
trigger?: AutomationScriptTrigger;
|
|
2388
|
-
businessIntelligenceReport: BusinessIntelligenceReport
|
|
2388
|
+
businessIntelligenceReport: Partial<BusinessIntelligenceReport>;
|
|
2389
2389
|
precomputedFacts: any;
|
|
2390
2390
|
data?: any;
|
|
2391
2391
|
isActive: boolean;
|
|
@@ -2396,7 +2396,7 @@ interface BusinessIntelligenceReport {
|
|
|
2396
2396
|
name: string;
|
|
2397
2397
|
config?: any;
|
|
2398
2398
|
sql?: string;
|
|
2399
|
-
rules: Rule[];
|
|
2399
|
+
rules: Partial<Rule>[];
|
|
2400
2400
|
}
|
|
2401
2401
|
|
|
2402
2402
|
declare enum FieldName {
|