@konversi/konversi-client 1.4.11 → 1.5.1

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 CHANGED
@@ -170,6 +170,2279 @@ declare namespace crudEndpoints {
170
170
  export { crudEndpoints_ACCOUNT as ACCOUNT, crudEndpoints_ATTENDANCE as ATTENDANCE, crudEndpoints_AUDIT_LOG as AUDIT_LOG, crudEndpoints_AUTOMATION_JOB as AUTOMATION_JOB, crudEndpoints_AUTOMATION_SCRIPT as AUTOMATION_SCRIPT, crudEndpoints_BILL_OF_MATERIALS as BILL_OF_MATERIALS, crudEndpoints_BOM_COMPONENT as BOM_COMPONENT, crudEndpoints_BOM_OPERATION as BOM_OPERATION, crudEndpoints_COMPANY_ALIAS as COMPANY_ALIAS, crudEndpoints_COMPANY_OPTION as COMPANY_OPTION, crudEndpoints_COMPANY_PERMISSION as COMPANY_PERMISSION, crudEndpoints_CUSTOMER as CUSTOMER, crudEndpoints_CUSTOM_DOCUMENT as CUSTOM_DOCUMENT, crudEndpoints_CUSTOM_ENTITY_FIELD as CUSTOM_ENTITY_FIELD, crudEndpoints_CUSTOM_ENTITY_OBJECT as CUSTOM_ENTITY_OBJECT, crudEndpoints_CUSTOM_ENTITY_SCHEMA as CUSTOM_ENTITY_SCHEMA, crudEndpoints_CUSTOM_FIELD as CUSTOM_FIELD, crudEndpoints_CUSTOM_REPORT as CUSTOM_REPORT, crudEndpoints_DELIVERY_JOB as DELIVERY_JOB, crudEndpoints_EMPLOYEE as EMPLOYEE, crudEndpoints_EXPENSE as EXPENSE, crudEndpoints_EXPENSE_LINE as EXPENSE_LINE, crudEndpoints_FIXED_ASSET as FIXED_ASSET, crudEndpoints_FORM as FORM, crudEndpoints_GEOFENCE as GEOFENCE, crudEndpoints_IDENTIFIER_GROUP as IDENTIFIER_GROUP, crudEndpoints_IDENTIFIER_TOKEN as IDENTIFIER_TOKEN, crudEndpoints_INCOMING_DELIVERY as INCOMING_DELIVERY, crudEndpoints_INCOMING_DELIVERY_LINE as INCOMING_DELIVERY_LINE, crudEndpoints_INCOMING_PAYMENT_METHOD as INCOMING_PAYMENT_METHOD, crudEndpoints_INCOMING_SHIPMENT as INCOMING_SHIPMENT, crudEndpoints_INTERNAL_DELIVERY as INTERNAL_DELIVERY, crudEndpoints_INTERNAL_DELIVERY_LINE as INTERNAL_DELIVERY_LINE, crudEndpoints_INVITATION as INVITATION, crudEndpoints_INVOICE as INVOICE, crudEndpoints_INVOICE_LINE as INVOICE_LINE, crudEndpoints_IOT_DEVICE as IOT_DEVICE, crudEndpoints_IOT_JOB as IOT_JOB, crudEndpoints_JOB_CARD as JOB_CARD, crudEndpoints_JOURNAL_ENTRY as JOURNAL_ENTRY, crudEndpoints_JOURNAL_ENTRY_LINE as JOURNAL_ENTRY_LINE, crudEndpoints_NOTIFICATION as NOTIFICATION, crudEndpoints_OUTGOING_DELIVERY as OUTGOING_DELIVERY, crudEndpoints_OUTGOING_DELIVERY_LINE as OUTGOING_DELIVERY_LINE, crudEndpoints_OUTGOING_SHIPMENT as OUTGOING_SHIPMENT, crudEndpoints_PAYMENT as PAYMENT, crudEndpoints_PRINT_JOB as PRINT_JOB, crudEndpoints_PRODUCT as PRODUCT, crudEndpoints_PRODUCTION_ORDER as PRODUCTION_ORDER, crudEndpoints_PRODUCTION_ORDER_LINE as PRODUCTION_ORDER_LINE, crudEndpoints_PRODUCT_GROUP as PRODUCT_GROUP, crudEndpoints_PRODUCT_ITEM as PRODUCT_ITEM, crudEndpoints_PRODUCT_SUPPLIER as PRODUCT_SUPPLIER, crudEndpoints_PURCHASE_ORDER as PURCHASE_ORDER, crudEndpoints_PURCHASE_ORDER_APPROVER as PURCHASE_ORDER_APPROVER, crudEndpoints_PURCHASE_ORDER_LINE as PURCHASE_ORDER_LINE, crudEndpoints_QUOTE as QUOTE, crudEndpoints_QUOTE_LINE as QUOTE_LINE, crudEndpoints_RENTAL_ORDER as RENTAL_ORDER, crudEndpoints_RENTAL_ORDER_LINE as RENTAL_ORDER_LINE, crudEndpoints_SALES_ORDER as SALES_ORDER, crudEndpoints_SALES_ORDER_APPROVER as SALES_ORDER_APPROVER, crudEndpoints_SALES_ORDER_LINE as SALES_ORDER_LINE, crudEndpoints_SERVICE_ORDER as SERVICE_ORDER, crudEndpoints_SHIFT as SHIFT, crudEndpoints_STOCK_ADJUSTMENT as STOCK_ADJUSTMENT, crudEndpoints_STORE as STORE, crudEndpoints_STORE_PRODUCT as STORE_PRODUCT, crudEndpoints_STORE_PRODUCT_ATTRIBUTE as STORE_PRODUCT_ATTRIBUTE, crudEndpoints_STORE_PRODUCT_ATTRIBUTE_VALUE as STORE_PRODUCT_ATTRIBUTE_VALUE, crudEndpoints_STORE_PRODUCT_GROUP as STORE_PRODUCT_GROUP, crudEndpoints_SUBSIDIARY as SUBSIDIARY, crudEndpoints_SUPPLIER as SUPPLIER, crudEndpoints_USER_ACTION as USER_ACTION, crudEndpoints_USER_PERSONA as USER_PERSONA, crudEndpoints_USER_PERSONA_CUSTOM_SCHEMA_PERMISSION as USER_PERSONA_CUSTOM_SCHEMA_PERMISSION, crudEndpoints_USER_PERSONA_ENTITY_ACCESS_STATUS as USER_PERSONA_ENTITY_ACCESS_STATUS, crudEndpoints_USER_PERSONA_ENTITY_PERMISSION as USER_PERSONA_ENTITY_PERMISSION, crudEndpoints_VEHICLE as VEHICLE, crudEndpoints_WAREHOUSE as WAREHOUSE, crudEndpoints_WORKSTATION as WORKSTATION, crudEndpoints_WORK_ORDER as WORK_ORDER };
171
171
  }
172
172
 
173
+ interface Contact {
174
+ id: string;
175
+ firstName: string;
176
+ lastName?: string;
177
+ companyName?: string;
178
+ jobTitle?: string;
179
+ email?: string;
180
+ website?: string;
181
+ mobile?: string;
182
+ whatsApp?: string;
183
+ phone?: string;
184
+ address?: string;
185
+ notes: string;
186
+ taxId?: string;
187
+ paymentTerm?: string;
188
+ linkedin?: string;
189
+ googleMaps?: string;
190
+ facebook: string;
191
+ twitter: string;
192
+ instagram: string;
193
+ createdDate: string | Date;
194
+ createdAt: string | Date;
195
+ updatedDate: string | Date;
196
+ updatedAt: string | Date;
197
+ customFields: any;
198
+ isDeleted: boolean;
199
+ }
200
+
201
+ declare enum InventoryCostFlow {
202
+ AVCO = "AVCO",
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
+ }
220
+
221
+ interface Order {
222
+ id: string;
223
+ num: number;
224
+ numMonthly: number;
225
+ numYearly: number;
226
+ identifier: string;
227
+ currency: Currency;
228
+ date?: string;
229
+ dueDate?: string;
230
+ subtotal: number;
231
+ discountPercentage: number;
232
+ discountAmount: number;
233
+ vatTaxPercentage: number;
234
+ serviceChargePercentage: number;
235
+ importTaxPercentage: number;
236
+ deliveryCost: number;
237
+ totalAmount: number;
238
+ customFields: any;
239
+ memo: string;
240
+ createdAt: string | Date;
241
+ files: string[];
242
+ updatedAt: string | Date;
243
+ subsidiary: any;
244
+ }
245
+
246
+ interface CostLine {
247
+ id: string;
248
+ description: string;
249
+ amount: number;
250
+ deliveryJob: DeliveryJob;
251
+ }
252
+
253
+ interface FuelEntry {
254
+ id: string;
255
+ vehicle: Vehicle;
256
+ quantity: number;
257
+ unitPrice: number;
258
+ odometer: number;
259
+ time?: string | Date;
260
+ createdAt: string | Date;
261
+ }
262
+
263
+ interface VehicleTelemetry {
264
+ id: string;
265
+ latitude: number;
266
+ longitude: number;
267
+ speed: number;
268
+ odometer: number;
269
+ createdAt: string | Date;
270
+ vehicle: Vehicle;
271
+ }
272
+
273
+ interface OrderLine {
274
+ id: string;
275
+ lineNumber: number;
276
+ description: string;
277
+ quantity: number;
278
+ unitPrice: number;
279
+ discountPercentage: number;
280
+ totalAmount?: number;
281
+ createdAt: string | Date;
282
+ updatedAt: string | Date;
283
+ customFields: any;
284
+ }
285
+
286
+ interface SalesOrderLinePrintJob {
287
+ id: string;
288
+ salesOrderLine: SalesOrderLine;
289
+ printJob: PrintJob;
290
+ }
291
+
292
+ interface SalesOrderLine extends OrderLine {
293
+ salesOrder: SalesOrder;
294
+ product: Product;
295
+ salesOrderLinePrintJobs: SalesOrderLinePrintJob[];
296
+ averageCost?: number;
297
+ }
298
+
299
+ interface InvoiceLine extends OrderLine {
300
+ invoice: Invoice;
301
+ product: Product;
302
+ productItem: ProductItem;
303
+ startDate?: string | Date;
304
+ endDate?: string | Date;
305
+ dailyUnitPrice?: number;
306
+ }
307
+
308
+ interface PropertyGroup {
309
+ id: string;
310
+ name: string;
311
+ mapImage?: string;
312
+ properties: Property[];
313
+ }
314
+
315
+ interface MaintenanceOrderLine extends OrderLine {
316
+ id: string;
317
+ product: Product;
318
+ maintenanceOrder: MaintenanceOrder;
319
+ }
320
+
321
+ interface MaintenanceOrder extends Order {
322
+ id: string;
323
+ maintenanceOrderLines: MaintenanceOrderLine[];
324
+ vehicle: Vehicle;
325
+ property: Property;
326
+ customFields: any;
327
+ }
328
+
329
+ interface Property {
330
+ id: string;
331
+ name: string;
332
+ files: string[];
333
+ mapPolygon: number[][];
334
+ propertyGroup: PropertyGroup;
335
+ leases: Lease[];
336
+ maintenanceOrders: MaintenanceOrder[];
337
+ }
338
+
339
+ declare enum LeasePaymentStatus {
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
+ }
347
+ interface Lease {
348
+ id: string;
349
+ properties: Property[];
350
+ customer: Customer;
351
+ startDate?: string;
352
+ endDate?: string;
353
+ files: string[];
354
+ totalAmount: number;
355
+ paymentStatus?: LeasePaymentStatus;
356
+ customFields: any;
357
+ isProfitSharing: boolean;
358
+ profitSharingPercentage: number;
359
+ invoices: Invoice[];
360
+ createdAt: string | Date;
361
+ createdBy: User;
362
+ updatedAt: string | Date;
363
+ }
364
+
365
+ interface RentalOrderLine extends OrderLine {
366
+ id: string;
367
+ startDate?: string | Date;
368
+ endDate?: string | Date;
369
+ dailyUnitPrice?: number;
370
+ rentalOrder: RentalOrder;
371
+ productItem: ProductItem;
372
+ product: Product;
373
+ }
374
+
375
+ declare enum DeliveryType {
376
+ INCOMING = "incoming",
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
+ }
386
+ interface Delivery {
387
+ id: string;
388
+ num: number;
389
+ status: DeliveryStatus;
390
+ numMonthly: number;
391
+ numYearly: number;
392
+ identifier: string;
393
+ date?: string;
394
+ customFields: any;
395
+ memo: string;
396
+ }
397
+
398
+ interface DeliveryLine {
399
+ id: string;
400
+ quantity: number;
401
+ lineNumber: number;
402
+ description: string;
403
+ customFields: any;
404
+ createdAt: string | Date;
405
+ }
406
+
407
+ interface OutgoingDeliveryLine extends DeliveryLine {
408
+ product: Product;
409
+ outgoingDelivery: OutgoingDelivery;
410
+ productItem: ProductItem;
411
+ }
412
+
413
+ interface WarehouseProduct {
414
+ id: string;
415
+ warehouse: Warehouse;
416
+ product: Product;
417
+ inStock: number;
418
+ }
419
+
420
+ interface QualityCheckpoint {
421
+ id: string;
422
+ title: string;
423
+ instructions: string;
424
+ order: number;
425
+ isImageRequired: boolean;
426
+ bomOperation: BOMOperation;
427
+ qualityChecks: QualityCheck[];
428
+ }
429
+
430
+ declare enum QualityCheckStatus {
431
+ PENDING = "PENDING",
432
+ PASS = "PASS",
433
+ FAIL = "FAIL"
434
+ }
435
+ interface QualityCheck {
436
+ id: string;
437
+ status: QualityCheckStatus;
438
+ notes: string;
439
+ jobCard: JobCard;
440
+ qualityCheckpoint: QualityCheckpoint;
441
+ createdAt: string | Date;
442
+ updatedAt: string | Date;
443
+ }
444
+
445
+ declare enum JobCardStatus {
446
+ PENDING = "PENDING",
447
+ IN_PROGRESS = "IN_PROGRESS",
448
+ COMPLETED = "COMPLETED",
449
+ CANCELED = "CANCELED"
450
+ }
451
+ interface JobCard {
452
+ id: string;
453
+ order: number;
454
+ num: number;
455
+ numMonthly: number;
456
+ numYearly: number;
457
+ identifier: string;
458
+ title: string;
459
+ status: JobCardStatus;
460
+ workstation: Workstation;
461
+ productionOrder: ProductionOrder;
462
+ qualityChecks: QualityCheck[];
463
+ bomOperation: BOMOperation;
464
+ createdAt: string | Date;
465
+ updatedAt: string | Date;
466
+ customFields: any;
467
+ }
468
+
469
+ declare enum ProductionOrderStatus {
470
+ 'PENDING' = "PENDING",
471
+ 'IN_PROGRESS' = "IN_PROGRESS",
472
+ 'COMPLETED' = "COMPLETED",
473
+ 'CANCELED' = "CANCELED"
474
+ }
475
+ interface ProductionOrder {
476
+ id: string;
477
+ product: Product;
478
+ num: number;
479
+ numMonthly: number;
480
+ numYearly: number;
481
+ identifier?: string;
482
+ status: ProductionOrderStatus;
483
+ startDate: string | Date;
484
+ endDate: string | Date;
485
+ plannedQuantity: number;
486
+ quantity: number;
487
+ productItems: ProductItem[];
488
+ inputProductItems: ProductItem[];
489
+ productionOrderLines: ProductionOrderLine[];
490
+ billOfMaterials: BillOfMaterials;
491
+ jobCards: JobCard[];
492
+ warehouse: Warehouse;
493
+ customFields: any;
494
+ createdAt: string | Date;
495
+ }
496
+
497
+ interface ProductionOrderLine {
498
+ id: string;
499
+ product: Product;
500
+ quantity: number;
501
+ productionOrder: ProductionOrder;
502
+ bomComponent: BOMComponent;
503
+ createdAt: string | Date;
504
+ }
505
+
506
+ interface BOMComponent {
507
+ id: string;
508
+ product: Product;
509
+ quantity: number;
510
+ billOfMaterials: BillOfMaterials;
511
+ productionOrderLines: ProductionOrderLine[];
512
+ }
513
+
514
+ interface BillOfMaterials {
515
+ id: string;
516
+ name: string;
517
+ product: Product;
518
+ quantity: number;
519
+ bomComponents: BOMComponent[];
520
+ productionOrders: ProductionOrder[];
521
+ bomOperations: BOMOperation[];
522
+ }
523
+
524
+ interface BOMOperation {
525
+ id: string;
526
+ order: number;
527
+ name: string;
528
+ instructionText: string;
529
+ instructionFile?: string;
530
+ workstation: Workstation;
531
+ parentBomOperation?: BOMOperation;
532
+ childBomOperations: BOMOperation[];
533
+ billOfMaterials: BillOfMaterials;
534
+ jobCards: JobCard[];
535
+ qualityCheckpoints: QualityCheckpoint[];
536
+ }
537
+
538
+ interface WorkstationProduct {
539
+ id: string;
540
+ workstation: Workstation;
541
+ product: Product;
542
+ inStock: number;
543
+ }
544
+
545
+ interface WorkstationTransfer {
546
+ id: string;
547
+ sourceWorkstation: Workstation;
548
+ destinationWorkstation: Workstation;
549
+ product: Product;
550
+ quantity: number;
551
+ createdBy: User;
552
+ createdAt: string | Date;
553
+ }
554
+
555
+ interface Workstation {
556
+ id: string;
557
+ name: string;
558
+ bomOperations: BOMOperation[];
559
+ jobCards: JobCard[];
560
+ productLocations: ProductLocation[];
561
+ warehouse: Warehouse;
562
+ createdAt: string | Date;
563
+ workstationProducts: WorkstationProduct[];
564
+ workstationTransfersSource: WorkstationTransfer[];
565
+ workstationTransfersDestination: WorkstationTransfer[];
566
+ }
567
+
568
+ interface ProductLocationTransfer {
569
+ id: string;
570
+ productItem: ProductItem;
571
+ sourceProductLocation: ProductLocation;
572
+ destinationProductLocation: ProductLocation;
573
+ createdAt: string | Date;
574
+ }
575
+
576
+ interface ProductLocation {
577
+ id: string;
578
+ name: string;
579
+ warehouse: Warehouse;
580
+ workstation: Workstation;
581
+ productItems: ProductItem[];
582
+ createdAt: string | Date;
583
+ productLocationTransfersSource: ProductLocationTransfer[];
584
+ productLocationTransfersDestination: ProductLocationTransfer[];
585
+ }
586
+
587
+ interface Shipment {
588
+ id: string;
589
+ date: string | Date;
590
+ quantity: number;
591
+ description: string;
592
+ }
593
+
594
+ declare enum DepreciationPeriod {
595
+ MONTHLY = "MONTHLY",
596
+ YEARLY = "YEARLY"
597
+ }
598
+ interface FixedAsset {
599
+ id: string;
600
+ name: string;
601
+ date?: string;
602
+ description: string;
603
+ purchasePrice: number;
604
+ nonDepreciableValue: number;
605
+ quantity: number;
606
+ depreciationDuration: number;
607
+ depreciationPeriod?: DepreciationPeriod;
608
+ assetAccount: Account;
609
+ depreciationAccount: Account;
610
+ expenseAccount: Account;
611
+ journalEntries: JournalEntry[];
612
+ }
613
+
614
+ 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"
690
+ }
691
+ interface CustomField {
692
+ id: string;
693
+ entityType: EntityType;
694
+ dataType: DataType;
695
+ label: string;
696
+ key: string;
697
+ referenceEntityType?: EntityType;
698
+ jsonSchema?: any;
699
+ dropdownOptions: string[];
700
+ docgenFieldName?: string;
701
+ showOnMainTable: boolean;
702
+ isHidden: boolean;
703
+ isReadOnly: boolean;
704
+ isRequired: boolean;
705
+ }
706
+
707
+ interface PointOfSale {
708
+ id: string;
709
+ name: string;
710
+ identifierGroup: IdentifierGroup;
711
+ warehouse: Warehouse;
712
+ salesOrders: SalesOrder[];
713
+ }
714
+
715
+ interface IdentifierGroup {
716
+ id: string;
717
+ name: string;
718
+ nextNum: number;
719
+ nextNumMonthly: number;
720
+ nextNumYearly: number;
721
+ identifierTokens: IdentifierToken[];
722
+ 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"
745
+ }
746
+ interface IdentifierToken {
747
+ id: string;
748
+ order: number;
749
+ type: IdentifierTokenType;
750
+ text?: string;
751
+ entityType?: EntityType;
752
+ numberPadding: number;
753
+ subsidiary: Subsidiary;
754
+ identifierGroup: IdentifierGroup;
755
+ }
756
+
757
+ interface Subsidiary {
758
+ id: string;
759
+ name: string;
760
+ address: string;
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[];
772
+ }
773
+
774
+ interface Expense extends Order {
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[];
784
+ createdAt: string | Date;
785
+ updatedAt: string | Date;
786
+ }
787
+
788
+ interface BankAccount {
789
+ id: string;
790
+ name: string;
791
+ accountNumber?: string;
792
+ currentBalance: number;
793
+ account: Account;
794
+ bankTransactions: BankTransaction[];
795
+ }
796
+
797
+ interface BankTransaction {
798
+ id: string;
799
+ bankAccount: BankAccount;
800
+ date?: string;
801
+ amount: number;
802
+ memo: string;
803
+ customFields: any;
804
+ payments: Payment[];
805
+ createdAt: string | Date;
806
+ }
807
+
808
+ declare enum PaymentMethodEnum {
809
+ CASH = "CASH",
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
+ }
818
+ interface Payment {
819
+ id: string;
820
+ type: PaymentType;
821
+ paymentMethod?: PaymentMethodEnum;
822
+ incomingPaymentMethod: IncomingPaymentMethod;
823
+ date?: string;
824
+ amount: number;
825
+ memo: string;
826
+ invoice: Invoice;
827
+ expense: Expense;
828
+ bill: Bill;
829
+ currency: Currency;
830
+ bankTransaction: BankTransaction;
831
+ customFields: any;
832
+ journalEntry: JournalEntry;
833
+ createdBy: User;
834
+ }
835
+
836
+ declare enum PaymentGatewayType {
837
+ QRIS = "QRIS"
838
+ }
839
+ interface IncomingPaymentMethod {
840
+ id: string;
841
+ name: string;
842
+ payments: Payment[];
843
+ 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"
877
+ }
878
+ interface Account {
879
+ id: string;
880
+ code: string;
881
+ name: string;
882
+ type: AccountType;
883
+ subtype?: AccountSubtype;
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[];
896
+ }
897
+
898
+ interface JournalEntryLine {
899
+ id: string;
900
+ account: Account;
901
+ description: string;
902
+ debit: number;
903
+ credit: number;
904
+ journalEntry: JournalEntry;
905
+ }
906
+
907
+ interface JournalEntry {
908
+ id: string;
909
+ date?: string;
910
+ journalEntryLines: JournalEntryLine[];
911
+ purchaseOrder: PurchaseOrder;
912
+ bill: Bill;
913
+ salesOrder: SalesOrder;
914
+ expense: Expense;
915
+ payment: Payment;
916
+ invoice: Invoice;
917
+ fixedAsset: FixedAsset;
918
+ createdBy: User;
919
+ memo: string;
920
+ isAutomated: boolean;
921
+ createdAt: string | Date;
922
+ updatedAt: string | Date;
923
+ }
924
+
925
+ interface BillLine extends OrderLine {
926
+ id: string;
927
+ bill: Bill;
928
+ product: Product;
929
+ }
930
+
931
+ interface Bill extends Order {
932
+ id: string;
933
+ supplier: Supplier;
934
+ downpayment: number;
935
+ downpaymentDeductions: number;
936
+ journalEntry: JournalEntry;
937
+ identifierGroup: IdentifierGroup;
938
+ purchaseOrder: PurchaseOrder;
939
+ billLines: BillLine[];
940
+ payments: Payment[];
941
+ }
942
+
943
+ interface IncomingDeliveryLine extends DeliveryLine {
944
+ product: Product;
945
+ incomingDelivery: IncomingDelivery;
946
+ productItem: ProductItem;
947
+ }
948
+
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;
959
+ }
960
+
961
+ interface PricelistLine {
962
+ id: string;
963
+ pricelist: Pricelist;
964
+ product: Product;
965
+ price?: number;
966
+ customFields: any;
967
+ }
968
+
969
+ interface Pricelist {
970
+ id: string;
971
+ name: string;
972
+ customers: Customer[];
973
+ suppliers: Supplier[];
974
+ pricelistLines: PricelistLine[];
975
+ customFields: any;
976
+ currency: Currency;
977
+ }
978
+
979
+ interface ProductSupplier {
980
+ id: string;
981
+ quantity?: number;
982
+ price?: number;
983
+ product: Product;
984
+ supplier: Supplier;
985
+ }
986
+
987
+ interface Supplier extends Contact {
988
+ purchaseOrders: PurchaseOrder;
989
+ bills: Bill[];
990
+ expenses: Expense[];
991
+ incomingDeliveries: IncomingDelivery[];
992
+ importTaxPercentage: number;
993
+ pricelist: Pricelist;
994
+ productSuppliers: ProductSupplier[];
995
+ }
996
+
997
+ interface PurchaseOrderLine extends OrderLine {
998
+ purchaseOrder: PurchaseOrder;
999
+ product: Product;
1000
+ }
1001
+
1002
+ interface Approval {
1003
+ id: string;
1004
+ createdAt: string | Date;
1005
+ updatedAt?: string | Date;
1006
+ }
1007
+
1008
+ interface PurchaseOrderApproval extends Approval {
1009
+ purchaseOrder: PurchaseOrder;
1010
+ user: User;
1011
+ }
1012
+
1013
+ interface PurchaseOrder extends Order {
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;
1027
+ }
1028
+
1029
+ interface IncomingShipment extends Shipment {
1030
+ id: string;
1031
+ destinationWarehouse: Warehouse;
1032
+ product: Product;
1033
+ purchaseOrder: PurchaseOrder;
1034
+ }
1035
+
1036
+ interface OutgoingShipment extends Shipment {
1037
+ id: string;
1038
+ sourceWarehouse: Warehouse;
1039
+ product: Product;
1040
+ salesOrder: SalesOrder;
1041
+ }
1042
+
1043
+ interface InternalDeliveryLine extends DeliveryLine {
1044
+ product: Product;
1045
+ productItem: ProductItem;
1046
+ internalDelivery: InternalDelivery;
1047
+ }
1048
+
1049
+ interface InternalDelivery extends Delivery {
1050
+ internalDeliveryLines: InternalDeliveryLine[];
1051
+ sourceWarehouse: Warehouse;
1052
+ destinationWarehouse: Warehouse;
1053
+ createdBy: User;
1054
+ }
1055
+
1056
+ declare enum StockAdjustmentType {
1057
+ IN = "IN",
1058
+ OUT = "OUT"
1059
+ }
1060
+ interface StockAdjustment {
1061
+ id: string;
1062
+ date?: string;
1063
+ warehouse: Warehouse;
1064
+ product: Product;
1065
+ type: StockAdjustmentType;
1066
+ memo: string;
1067
+ user: User;
1068
+ quantity: number;
1069
+ createdAt: string | Date;
1070
+ createdBy: User;
1071
+ }
1072
+
1073
+ interface CustomEntityObject {
1074
+ id: string;
1075
+ customEntitySchema: CustomEntitySchema;
1076
+ customEntityFieldValues: CustomEntityFieldValue[];
1077
+ createdAt: string | Date;
1078
+ updatedAt: string | Date;
1079
+ createdBy: User;
1080
+ }
1081
+
1082
+ interface CustomEntityFieldValue {
1083
+ id: string;
1084
+ customEntityObject: CustomEntityObject;
1085
+ customEntityField: CustomEntityField;
1086
+ valueText?: string;
1087
+ valueNumber?: number;
1088
+ valueCurrency?: number;
1089
+ valueBoolean?: boolean;
1090
+ valueDate?: string | Date;
1091
+ valueJson?: any;
1092
+ valueFile?: string;
1093
+ valueFileArray: string[];
1094
+ valueLatitude?: number;
1095
+ valueLongitude?: number;
1096
+ valueSelect?: string;
1097
+ valueReferenceId?: string;
1098
+ valueReferenceIds: string[];
1099
+ valueCustomReferenceId?: string;
1100
+ valueCustomReferenceIds: string[];
1101
+ }
1102
+
1103
+ interface CustomEntityFieldPermission {
1104
+ id: string;
1105
+ customEntityField: CustomEntityField;
1106
+ userPersona: UserPersona;
1107
+ read: boolean;
1108
+ update: boolean;
1109
+ }
1110
+
1111
+ declare enum CustomEntityFieldType {
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
+ }
1127
+ interface CustomEntityField {
1128
+ id: string;
1129
+ key: string;
1130
+ order: number;
1131
+ type: CustomEntityFieldType;
1132
+ label: string;
1133
+ description: string;
1134
+ isReadOnly: boolean;
1135
+ isHidden: boolean;
1136
+ isRequired: boolean;
1137
+ isFilterable: boolean;
1138
+ isShownOnMainTable: boolean;
1139
+ entityType?: EntityType;
1140
+ customEntitySchemaReference: CustomEntitySchema;
1141
+ jsonSchema?: any;
1142
+ 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"
1162
+ }
1163
+ interface AutomationScriptTriggerEntity {
1164
+ id: string;
1165
+ name: AutomationScriptTriggerName;
1166
+ automationScript: AutomationScript;
1167
+ }
1168
+
1169
+ declare enum AutomationJobStatus {
1170
+ PENDING = "PENDING",
1171
+ IN_PROGRESS = "IN_PROGRESS",
1172
+ COMPLETED = "COMPLETED",
1173
+ FAILED = "FAILED"
1174
+ }
1175
+ interface AutomationJob {
1176
+ id: string;
1177
+ stdout: string;
1178
+ stderr: string;
1179
+ status: AutomationJobStatus;
1180
+ input: any;
1181
+ output: any;
1182
+ errorMessage?: string;
1183
+ createdAt: string | Date;
1184
+ 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"
1211
+ }
1212
+ interface AutomationScript {
1213
+ id: string;
1214
+ isSync: boolean;
1215
+ isTimeoutDisabled: boolean;
1216
+ name: string;
1217
+ script: string;
1218
+ triggers: AutomationScriptTrigger[];
1219
+ automationScriptTriggers: AutomationScriptTriggerEntity[];
1220
+ customSchemaNames: string[];
1221
+ createdBy: User;
1222
+ automationJobs: AutomationJob[];
1223
+ userActions: UserAction[];
1224
+ customReports: CustomReport[];
1225
+ }
1226
+
1227
+ interface CustomReport {
1228
+ id: string;
1229
+ title: string;
1230
+ description: string;
1231
+ config: any;
1232
+ filters: any;
1233
+ automationScript: AutomationScript;
1234
+ form: Form;
1235
+ }
1236
+
1237
+ declare enum FormLocation {
1238
+ CUSTOM_ENTITY = "CUSTOM_ENTITY",
1239
+ CHECKOUT = "CHECKOUT"
1240
+ }
1241
+ interface Form {
1242
+ id: string;
1243
+ name: string;
1244
+ template: any;
1245
+ customEntitySchema: CustomEntitySchema;
1246
+ userActions: UserAction[];
1247
+ customReports: CustomReport[];
1248
+ }
1249
+
1250
+ interface CustomEntitySchemaPermission {
1251
+ id: string;
1252
+ userPersona: UserPersona;
1253
+ create: boolean;
1254
+ read: boolean;
1255
+ update: boolean;
1256
+ delete: boolean;
1257
+ customEntitySchema: CustomEntitySchema;
1258
+ }
1259
+
1260
+ declare enum UserPersonaCustomSchemaPermissionType {
1261
+ CREATE = "CREATE",
1262
+ READ = "READ",
1263
+ UPDATE = "UPDATE",
1264
+ DELETE = "DELETE"
1265
+ }
1266
+ interface UserPersonaCustomSchemaPermission {
1267
+ id: string;
1268
+ userPersona: UserPersona;
1269
+ customEntitySchema: CustomEntitySchema;
1270
+ type: UserPersonaCustomSchemaPermissionType;
1271
+ }
1272
+
1273
+ declare enum Module {
1274
+ SALES = "SALES",
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
+ }
1285
+ interface CustomEntitySchema {
1286
+ id: string;
1287
+ name: string;
1288
+ type: CustomEntitySchemaType;
1289
+ label: string;
1290
+ module?: Module;
1291
+ isFilterableByCreatedAt: boolean;
1292
+ customEntityFields: CustomEntityField[];
1293
+ customEntityObjects: CustomEntityObject[];
1294
+ forms: Form[];
1295
+ userActions: UserAction[];
1296
+ referencingCustomEntityFields: CustomEntityField[];
1297
+ customEntitySchemaPermissions: CustomEntitySchemaPermission[];
1298
+ userPersonaCustomSchemaPermissions: UserPersonaCustomSchemaPermission[];
1299
+ }
1300
+
1301
+ declare enum WebComponentSlotName {
1302
+ LEASE_EDIT_MODAL_FOOTER = "LEASE_EDIT_MODAL_FOOTER",
1303
+ LEASE_EDIT_MODAL_HEADER = "LEASE_EDIT_MODAL_HEADER"
1304
+ }
1305
+ interface WebComponentSlot {
1306
+ id: string;
1307
+ webComponent: WebComponent;
1308
+ name: WebComponentSlotName;
1309
+ createdAt: string | Date;
1310
+ }
1311
+
1312
+ interface WebComponent {
1313
+ id: string;
1314
+ name: string;
1315
+ label?: string;
1316
+ code: string;
1317
+ slots: WebComponentSlot[];
1318
+ userActions: UserAction[];
1319
+ }
1320
+
1321
+ declare enum UserActionType {
1322
+ SALES_ORDER = "SALES_ORDER",
1323
+ QUICK_ACTION = "QUICK_ACTION",
1324
+ INVOICE = "INVOICE",
1325
+ CUSTOM_OBJECT = "CUSTOM_OBJECT"
1326
+ }
1327
+ interface UserAction {
1328
+ id: string;
1329
+ type: UserActionType;
1330
+ customEntitySchema: CustomEntitySchema;
1331
+ name: string;
1332
+ form: Form;
1333
+ automationScript: AutomationScript;
1334
+ webComponent: WebComponent;
1335
+ userPersona: UserPersona;
1336
+ }
1337
+
1338
+ declare enum UserPersonaEntityPermissionType {
1339
+ CREATE = "CREATE",
1340
+ READ = "READ",
1341
+ UPDATE = "UPDATE",
1342
+ DELETE = "DELETE"
1343
+ }
1344
+ interface UserPersonaEntityPermission {
1345
+ id: string;
1346
+ userPersona: UserPersona;
1347
+ entityType: EntityType;
1348
+ entityId?: string;
1349
+ type: UserPersonaEntityPermissionType;
1350
+ }
1351
+
1352
+ interface EntityObjectPermission {
1353
+ id: string;
1354
+ entityType: EntityType;
1355
+ entityId: string;
1356
+ read: boolean;
1357
+ update: boolean;
1358
+ delete: boolean;
1359
+ userPersona: UserPersona;
1360
+ }
1361
+
1362
+ interface UserPersonaProductPermission {
1363
+ id: string;
1364
+ userPersona: UserPersona;
1365
+ product: Product;
1366
+ }
1367
+
1368
+ interface UserPersona {
1369
+ id: string;
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[];
1380
+ }
1381
+
1382
+ interface UserPersonaWarehousePermission {
1383
+ id: string;
1384
+ userPersona: UserPersona;
1385
+ warehouse: Warehouse;
1386
+ }
1387
+
1388
+ interface Warehouse {
1389
+ id: string;
1390
+ name: string;
1391
+ address: string;
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[];
1408
+ }
1409
+
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;
1418
+ }
1419
+
1420
+ interface RentalOrder extends Order {
1421
+ id: string;
1422
+ rentalOrderLines: RentalOrderLine[];
1423
+ customer: Customer;
1424
+ invoices: Invoice;
1425
+ outgoingDeliveries: OutgoingDelivery[];
1426
+ incomingDeliveries: IncomingDelivery[];
1427
+ subsidiary: Subsidiary;
1428
+ }
1429
+
1430
+ interface InvoiceApproval extends Approval {
1431
+ invoice: Invoice;
1432
+ user: User;
1433
+ signature?: string;
1434
+ signedAt?: string | Date;
1435
+ signatureMethod?: 'STORED' | 'CAPTURED';
1436
+ }
1437
+
1438
+ declare enum PaymentStatus {
1439
+ NOT_PAID = "NOT_PAID",
1440
+ PARTIALLY_PAID = "PARTIALLY_PAID",
1441
+ FULLY_PAID = "FULLY_PAID"
1442
+ }
1443
+ interface Invoice extends Order {
1444
+ paymentStatus?: PaymentStatus;
1445
+ pphAmount: number;
1446
+ downpayment: number;
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[];
1460
+ }
1461
+
1462
+ interface SalesOrderApproval extends Approval {
1463
+ salesOrder: SalesOrder;
1464
+ user: User;
1465
+ }
1466
+
1467
+ interface StoreProductVariant {
1468
+ id: string;
1469
+ storeProduct: StoreProduct;
1470
+ storeProductAttributeValues: StoreProductAttributeValue[];
1471
+ product: Product;
1472
+ cartLines: CartLine[];
1473
+ }
1474
+
1475
+ interface StoreProductAttributeValueMapping {
1476
+ id: string;
1477
+ product: Product;
1478
+ storeProductAttributeValue: StoreProductAttributeValue;
1479
+ }
1480
+
1481
+ interface StoreProductAttributeValue {
1482
+ id: string;
1483
+ name?: string;
1484
+ storeProductAttribute: StoreProductAttribute;
1485
+ storeProductVariants: StoreProductVariant[];
1486
+ label?: string;
1487
+ storeProductAttributeValueMappings: StoreProductAttributeValueMapping[];
1488
+ }
1489
+
1490
+ interface StoreProductAttribute {
1491
+ id: string;
1492
+ label?: string;
1493
+ name?: string;
1494
+ order: number;
1495
+ storeProduct: StoreProduct;
1496
+ storeProductAttributeValues: StoreProductAttributeValue[];
1497
+ }
1498
+
1499
+ interface StoreProductGroup {
1500
+ id: string;
1501
+ name: string;
1502
+ ancestry?: string;
1503
+ store: Store;
1504
+ storeProducts: StoreProduct[];
1505
+ }
1506
+
1507
+ interface StoreUser {
1508
+ id: string;
1509
+ store: Store;
1510
+ carts: Cart[];
1511
+ }
1512
+
1513
+ interface Store {
1514
+ id: string;
1515
+ name: string;
1516
+ currency: Currency;
1517
+ description: string;
1518
+ layout: any;
1519
+ storeProductGroups: StoreProductGroup[];
1520
+ storeProducts: StoreProduct[];
1521
+ storeUsers: StoreUser[];
1522
+ carts: Cart[];
1523
+ }
1524
+
1525
+ interface StoreProduct {
1526
+ id: string;
1527
+ name: string;
1528
+ description: string;
1529
+ product: Product;
1530
+ storeProductAttributes: StoreProductAttribute[];
1531
+ storeProductVariants: StoreProductVariant[];
1532
+ images: string[];
1533
+ store: Store;
1534
+ cartLines: CartLine[];
1535
+ storeProductGroup: StoreProductGroup;
1536
+ }
1537
+
1538
+ interface CartLine extends OrderLine {
1539
+ cart: Cart;
1540
+ storeProduct: StoreProduct;
1541
+ storeProductVariant: StoreProductVariant;
1542
+ product: Product;
1543
+ }
1544
+
1545
+ interface Cart extends Order {
1546
+ customer: Customer;
1547
+ cartLines: CartLine[];
1548
+ storeUser: StoreUser;
1549
+ store: Store;
1550
+ salesOrders: SalesOrder[];
1551
+ createdAt: string | Date;
1552
+ }
1553
+
1554
+ interface ReturnSalesOrderLine extends OrderLine {
1555
+ id: string;
1556
+ returnSalesOrder: ReturnSalesOrder;
1557
+ product: Product;
1558
+ }
1559
+
1560
+ interface ReturnSalesOrder extends Order {
1561
+ id: string;
1562
+ returnSalesOrderLines: ReturnSalesOrderLine[];
1563
+ salesOrder: SalesOrder;
1564
+ }
1565
+
1566
+ declare enum SalesOrderType {
1567
+ WORK_ORDER = "WORK_ORDER",
1568
+ SERVICE_ORDER = "SERVICE_ORDER"
1569
+ }
1570
+ interface SalesOrder extends Order {
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[];
1591
+ }
1592
+
1593
+ declare enum PrintJobStatus {
1594
+ QUEUED = "QUEUED",
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
+ }
1604
+ interface PrintJob {
1605
+ id: string;
1606
+ type?: PrintJobType;
1607
+ status: PrintJobStatus;
1608
+ thermalPrinter: ThermalPrinter;
1609
+ errorMessage?: string;
1610
+ salesOrder: SalesOrder;
1611
+ salesOrderLinePrintJobs: SalesOrderLinePrintJob[];
1612
+ additionalData?: any;
1613
+ invoice: Invoice;
1614
+ createdAt: string | Date;
1615
+ }
1616
+
1617
+ interface ThermalPrinter {
1618
+ id: string;
1619
+ name: string;
1620
+ ipAddress: string;
1621
+ printJobs: PrintJob[];
1622
+ products: Product[];
1623
+ productGroups: ProductGroup[];
1624
+ }
1625
+
1626
+ interface ProductGroup {
1627
+ id: string;
1628
+ name: string;
1629
+ ancestry?: string;
1630
+ products: Product[];
1631
+ thermalPrinter: ThermalPrinter;
1632
+ }
1633
+
1634
+ interface UnitConversion {
1635
+ id: string;
1636
+ fromUnit: string;
1637
+ toUnit: string;
1638
+ factor: number;
1639
+ product: Product;
1640
+ }
1641
+
1642
+ interface QuoteLine extends OrderLine {
1643
+ id: string;
1644
+ quote: Quote;
1645
+ product: Product;
1646
+ }
1647
+
1648
+ interface Product {
1649
+ id: string;
1650
+ productCode: string;
1651
+ name: string;
1652
+ barcode: string;
1653
+ description: string;
1654
+ unit: string;
1655
+ minQuantity?: number;
1656
+ status?: string;
1657
+ purchasePrice?: number;
1658
+ price?: number;
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[];
1680
+ incomingStock: number;
1681
+ inStock: number;
1682
+ outgoingStock: number;
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[];
1698
+ isService: boolean;
1699
+ isDeleted: boolean;
1700
+ createdAt: string | Date;
1701
+ updatedAt: string | Date;
1702
+ isSellable: boolean;
1703
+ isPurchasable: boolean;
1704
+ isRentable: boolean;
1705
+ isManufacturable: boolean;
1706
+ isTrackable: boolean;
1707
+ automatedInventoryValuationEnabled: boolean;
1708
+ customFields: any;
1709
+ pricelistLines: PricelistLine[];
1710
+ returnSalesOrderLines: ReturnSalesOrderLine[];
1711
+ }
1712
+
1713
+ interface ProductItem {
1714
+ id: string;
1715
+ serialNumber: string;
1716
+ description: string;
1717
+ quantity: number;
1718
+ product: Product;
1719
+ warehouse: Warehouse;
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[];
1731
+ createdAt: string | Date;
1732
+ }
1733
+
1734
+ interface VehicleTire {
1735
+ id: string;
1736
+ position: string;
1737
+ productItem: ProductItem;
1738
+ vehicle: Vehicle;
1739
+ }
1740
+
1741
+ declare enum TelemetryAttributeKey {
1742
+ latitude = "latitude",
1743
+ longitude = "longitude",
1744
+ odometer = "odometer"
1745
+ }
1746
+ interface TelemetryAttribute {
1747
+ id: string;
1748
+ key: TelemetryAttributeKey;
1749
+ value: number;
1750
+ telemetryEvent: TelemetryEvent;
1751
+ }
1752
+
1753
+ interface TelemetryEvent {
1754
+ id: string;
1755
+ telemetryAttributes: TelemetryAttribute[];
1756
+ vehicle: Vehicle;
1757
+ createdAt: string | Date;
1758
+ }
1759
+
1760
+ interface Vehicle {
1761
+ id: string;
1762
+ name: string;
1763
+ fuelEntries: FuelEntry[];
1764
+ driver: User;
1765
+ registrationNumber?: string;
1766
+ licensePlate?: string;
1767
+ vin?: string;
1768
+ customFields: any;
1769
+ deliveryJobs: DeliveryJob[];
1770
+ axleConfiguration?: number[];
1771
+ vehicleTelemetries: VehicleTelemetry[];
1772
+ vehicleTires: VehicleTire[];
1773
+ telemetryEvents: TelemetryEvent[];
1774
+ maintenanceOrders: MaintenanceOrder[];
1775
+ }
1776
+
1777
+ declare enum DeliveryJobStatus {
1778
+ PENDING = "PENDING",
1779
+ IN_PROGRESS = "IN_PROGRESS",
1780
+ COMPLETED = "COMPLETED"
1781
+ }
1782
+ interface DeliveryJob {
1783
+ id: string;
1784
+ identifier?: string;
1785
+ date?: string;
1786
+ startTime?: string | Date;
1787
+ endTime?: string | Date;
1788
+ num: number;
1789
+ numMonthly: number;
1790
+ numYearly: number;
1791
+ startAddress?: string;
1792
+ endAddress?: string;
1793
+ status: DeliveryJobStatus;
1794
+ customFields: any;
1795
+ costLines: CostLine[];
1796
+ customer: Customer;
1797
+ revenue: number;
1798
+ vehicle: Vehicle;
1799
+ user: User;
1800
+ subsidiary: Subsidiary;
1801
+ createdAt: string | Date;
1802
+ }
1803
+
1804
+ interface CompanyUser {
1805
+ 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"
1825
+ }
1826
+ interface UserPermission {
1827
+ id: string;
1828
+ name: UserPermissionName;
1829
+ user: User;
1830
+ }
1831
+
1832
+ declare enum AuditLogAction {
1833
+ CREATE = "CREATE",
1834
+ UPDATE = "UPDATE",
1835
+ DELETE = "DELETE",
1836
+ READ = "READ"
1837
+ }
1838
+ interface AuditLog {
1839
+ id: string;
1840
+ action: AuditLogAction;
1841
+ entityType: string;
1842
+ entityId: string;
1843
+ entityValue?: any;
1844
+ relatedEntityType?: string;
1845
+ relatedEntityId?: string;
1846
+ relatedEntityValue?: any;
1847
+ user: User;
1848
+ createdAt: string | Date;
1849
+ }
1850
+
1851
+ interface NotificationEntity {
1852
+ id: string;
1853
+ isDismissed: boolean;
1854
+ isRead: boolean;
1855
+ title: string;
1856
+ files: string[];
1857
+ description: string;
1858
+ icon?: string;
1859
+ isAi: boolean;
1860
+ entityId?: string;
1861
+ level: string;
1862
+ user: User;
1863
+ createdAt: string | Date;
1864
+ }
1865
+
1866
+ declare enum ApproverType {
1867
+ PurchaseOrder = "PurchaseOrder",
1868
+ SalesOrder = "SalesOrder",
1869
+ Invoice = "Invoice"
1870
+ }
1871
+ interface Approver {
1872
+ id: string;
1873
+ user: User;
1874
+ type: ApproverType;
1875
+ }
1876
+
1877
+ interface Attendance {
1878
+ id: string;
1879
+ imageIn: string;
1880
+ imageOut?: string;
1881
+ timeIn: string | Date;
1882
+ timeOut?: string | Date;
1883
+ latitudeIn?: number;
1884
+ longitudeIn?: number;
1885
+ latitudeOut?: number;
1886
+ longitudeOut?: number;
1887
+ isFaceVerified: boolean;
1888
+ employee: Employee;
1889
+ geofence: Geofence;
1890
+ }
1891
+
1892
+ interface Geofence {
1893
+ id: string;
1894
+ name: string;
1895
+ latitude?: number;
1896
+ longitude?: number;
1897
+ radius?: number;
1898
+ employees: Employee[];
1899
+ attendances: Attendance[];
1900
+ }
1901
+
1902
+ declare enum Day {
1903
+ MONDAY = "MONDAY",
1904
+ TUESDAY = "TUESDAY",
1905
+ WEDNESDAY = "WEDNESDAY",
1906
+ THURSDAY = "THURSDAY",
1907
+ FRIDAY = "FRIDAY",
1908
+ SATURDAY = "SATURDAY",
1909
+ SUNDAY = "SUNDAY"
1910
+ }
1911
+ interface Shift {
1912
+ id: string;
1913
+ startTime: string;
1914
+ endTime: string;
1915
+ day: Day;
1916
+ employee: Employee;
1917
+ }
1918
+
1919
+ declare enum SalaryPeriod {
1920
+ HOUR = "hour",
1921
+ DAY = "day",
1922
+ WEEK = "week",
1923
+ MONTH = "month",
1924
+ YEAR = "year"
1925
+ }
1926
+ interface Employee {
1927
+ id: string;
1928
+ firstName: string;
1929
+ lastName: string;
1930
+ employeeId?: string;
1931
+ phone?: string;
1932
+ email?: string;
1933
+ images: string[];
1934
+ salaryAmount?: number;
1935
+ salaryPeriod?: SalaryPeriod;
1936
+ assignedLocation: Geofence;
1937
+ user: User;
1938
+ attendances: Attendance[];
1939
+ shifts: Shift[];
1940
+ }
1941
+
1942
+ declare enum IotJobStatus {
1943
+ QUEUED = "QUEUED",
1944
+ IN_PROGRESS = "IN_PROGRESS",
1945
+ COMPLETED = "COMPLETED",
1946
+ FAILED = "FAILED"
1947
+ }
1948
+ interface IotJob {
1949
+ id: string;
1950
+ status: IotJobStatus;
1951
+ data: any;
1952
+ iotDevice: IotDevice;
1953
+ createdAt: string | Date;
1954
+ }
1955
+
1956
+ declare enum IotDeviceType {
1957
+ BARCODE_SCANNER = "BARCODE_SCANNER",
1958
+ BRACELET_PRINTER = "BRACELET_PRINTER",
1959
+ THERMAL_PRINTER = "THERMAL_PRINTER"
1960
+ }
1961
+ interface IotDevice {
1962
+ id: string;
1963
+ name: string;
1964
+ vendorId?: number;
1965
+ productId?: number;
1966
+ serialNumber?: string;
1967
+ type: IotDeviceType;
1968
+ lastActive?: string | Date;
1969
+ properties: any;
1970
+ iotJobs: IotJob[];
1971
+ lastActiveAt: string | Date;
1972
+ lastJobStatus?: IotJobStatus;
1973
+ user: User;
1974
+ }
1975
+
1976
+ interface Conversation {
1977
+ id: string;
1978
+ title?: string;
1979
+ conversationMessages: ConversationMessage[];
1980
+ customer: Customer;
1981
+ createdAt: string | Date;
1982
+ }
1983
+
1984
+ interface ConversationMessage {
1985
+ id: string;
1986
+ files: string[];
1987
+ content: string;
1988
+ conversation: Conversation;
1989
+ isDelivered: boolean;
1990
+ user: User;
1991
+ customer: Customer;
1992
+ time?: string | Date;
1993
+ createdAt: string | Date;
1994
+ }
1995
+
1996
+ interface UserLog {
1997
+ id: string;
1998
+ user: User;
1999
+ method: string;
2000
+ path: string;
2001
+ query?: Record<string, any>;
2002
+ params?: Record<string, any>;
2003
+ body?: Record<string, any>;
2004
+ ipAddress?: string;
2005
+ createdAt: string | Date;
2006
+ response?: any;
2007
+ statusCode?: number;
2008
+ responseTime?: number;
2009
+ }
2010
+
2011
+ interface ImportJobRow {
2012
+ id: string;
2013
+ status: ImportJobStatus;
2014
+ importJob: ImportJob;
2015
+ errorMessage?: string;
2016
+ errorColumnName?: string;
2017
+ index: number;
2018
+ data: any;
2019
+ }
2020
+
2021
+ declare enum ImportJobStatus {
2022
+ PENDING = "PENDING",
2023
+ IN_PROGRESS = "IN_PROGRESS",
2024
+ COMPLETED = "COMPLETED",
2025
+ FAILED = "FAILED"
2026
+ }
2027
+ interface ImportJob {
2028
+ id: string;
2029
+ status: ImportJobStatus;
2030
+ importJobRows: ImportJobRow[];
2031
+ entityType: EntityType;
2032
+ createdAt: string | Date;
2033
+ createdBy: User;
2034
+ }
2035
+
2036
+ interface User {
2037
+ id: string;
2038
+ photo?: string;
2039
+ fullName?: string;
2040
+ email: string;
2041
+ isAutomationUser: boolean;
2042
+ username?: string;
2043
+ phoneNumber?: string;
2044
+ address?: string;
2045
+ driverLicenseNo?: string;
2046
+ ktpNo?: string;
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[];
2075
+ signature?: string;
2076
+ expoPushToken?: string;
2077
+ createdAt: string | Date;
2078
+ updatedAt: string | Date;
2079
+ customEntityObjects: CustomEntityObject[];
2080
+ createdStockAdjustments: StockAdjustment[];
2081
+ incomingDeliveries: IncomingDelivery[];
2082
+ outgoingDeliveries: OutgoingDelivery[];
2083
+ importJobs: ImportJob[];
2084
+ }
2085
+
2086
+ interface Quote extends Order {
2087
+ id: string;
2088
+ validUntil?: string;
2089
+ createdBy: User;
2090
+ quoteLines: QuoteLine[];
2091
+ customer: Customer;
2092
+ subsidiary: Subsidiary;
2093
+ identifierGroup: IdentifierGroup;
2094
+ }
2095
+
2096
+ declare enum CustomerEventType {
2097
+ LINKEDIN_CONNECTION_REQUEST = "LINKEDIN_CONNECTION_REQUEST",
2098
+ LINKEDIN_MESSAGE = "LINKEDIN_MESSAGE"
2099
+ }
2100
+ interface CustomerEvent {
2101
+ id: string;
2102
+ type: CustomerEventType;
2103
+ message?: string;
2104
+ customer: Customer;
2105
+ }
2106
+
2107
+ declare enum CustomerSourceChannel {
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
+ }
2123
+ interface Customer extends Contact {
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[];
2135
+ sourceChannel?: CustomerSourceChannel;
2136
+ conversationMessages: ConversationMessage[];
2137
+ pricelist: Pricelist;
2138
+ conversations: Conversation[];
2139
+ leases: Lease[];
2140
+ isDefaultSalesOrderCustomer: boolean;
2141
+ }
2142
+
2143
+ declare enum ActivityType {
2144
+ CALL = "CALL",
2145
+ MEETING = "MEETING",
2146
+ EMAIL = "EMAIL",
2147
+ WHATSAPP = "WHATSAPP"
2148
+ }
2149
+ interface Activity {
2150
+ id: string;
2151
+ type: ActivityType;
2152
+ title: string;
2153
+ description: string;
2154
+ startTime?: string | Date;
2155
+ endTime?: string | Date;
2156
+ customer: Customer;
2157
+ createdAt: string | Date;
2158
+ }
2159
+
2160
+ interface Deal {
2161
+ id: string;
2162
+ }
2163
+
2164
+ declare enum CompanyVariableName {
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
+ }
2172
+ interface CompanyVariable {
2173
+ id: string;
2174
+ name: CompanyVariableName;
2175
+ value: string;
2176
+ isSecret: boolean;
2177
+ createdAt: string | Date;
2178
+ updatedAt: string | Date;
2179
+ }
2180
+
2181
+ declare enum CompanyFeatureName {
2182
+ DATE_LOCALIZATION = "DATE_LOCALIZATION"
2183
+ }
2184
+ interface CompanyFeature {
2185
+ id: string;
2186
+ name: CompanyFeatureName;
2187
+ }
2188
+
2189
+ declare enum CompanyOptionName {
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
+ }
2250
+ interface CompanyOption {
2251
+ id: string;
2252
+ name: CompanyOptionName;
2253
+ valueNumber?: number;
2254
+ }
2255
+
2256
+ declare enum CompanyPermissionName {
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
+ }
2291
+ interface CompanyPermission {
2292
+ id: string;
2293
+ name: CompanyPermissionName;
2294
+ }
2295
+
2296
+ declare enum CustomDocumentOrientation {
2297
+ PORTRAIT = "PORTRAIT",
2298
+ LANDSCAPE = "LANDSCAPE"
2299
+ }
2300
+ declare enum CustomDocumentType {
2301
+ PDF = "PDF",
2302
+ XLSX = "XLSX"
2303
+ }
2304
+ interface CustomDocument {
2305
+ id: string;
2306
+ headerPdfDocId?: string;
2307
+ footerPdfDocId?: string;
2308
+ entityType: EntityType;
2309
+ name: string;
2310
+ type: CustomDocumentType;
2311
+ excelUrl?: string;
2312
+ showCompanyLetterhead: boolean;
2313
+ headerPdfUrl?: string;
2314
+ footerPdfUrl?: string;
2315
+ orientation: CustomDocumentOrientation;
2316
+ showQrCode: boolean;
2317
+ pageWidth?: number;
2318
+ pageHeight?: number;
2319
+ hidePriceFields: boolean;
2320
+ }
2321
+
2322
+ interface EntityFieldPermission {
2323
+ id: string;
2324
+ read: boolean;
2325
+ update: boolean;
2326
+ }
2327
+
2328
+ interface EntityPermission {
2329
+ id: string;
2330
+ read: boolean;
2331
+ create: boolean;
2332
+ update: boolean;
2333
+ delete: boolean;
2334
+ }
2335
+
2336
+ interface ExchangeRate {
2337
+ id: string;
2338
+ date: string;
2339
+ base: Currency;
2340
+ target: Currency;
2341
+ rate: number;
2342
+ }
2343
+
2344
+ interface Invitation {
2345
+ id: string;
2346
+ email: string;
2347
+ createdAt: string | Date;
2348
+ }
2349
+
2350
+ interface View {
2351
+ id: string;
2352
+ entityType: EntityType;
2353
+ }
2354
+
2355
+ interface ChatSession {
2356
+ id: string;
2357
+ title?: string;
2358
+ chatMessages: ChatMessage[];
2359
+ createdAt: string | Date;
2360
+ }
2361
+
2362
+ declare enum ChatMessageRole {
2363
+ USER = "user",
2364
+ AI = "ai"
2365
+ }
2366
+ interface ChatMessage {
2367
+ id: string;
2368
+ role: ChatMessageRole;
2369
+ files: string[];
2370
+ content: string;
2371
+ metadata: any;
2372
+ chatSession: ChatSession;
2373
+ createdAt: string | Date;
2374
+ }
2375
+
2376
+ interface BusinessIntelligenceDashboard {
2377
+ }
2378
+
2379
+ declare enum RuleEventType {
2380
+ AI_NOTIFICATION = "AI_NOTIFICATION",
2381
+ BULK = "BULK"
2382
+ }
2383
+ interface Rule {
2384
+ id: string;
2385
+ name: string;
2386
+ description: string;
2387
+ trigger?: AutomationScriptTrigger;
2388
+ businessIntelligenceReport: BusinessIntelligenceReport;
2389
+ precomputedFacts: any;
2390
+ data?: any;
2391
+ isActive: boolean;
2392
+ }
2393
+
2394
+ interface BusinessIntelligenceReport {
2395
+ id: string;
2396
+ name: string;
2397
+ config?: any;
2398
+ sql?: string;
2399
+ rules: Rule[];
2400
+ }
2401
+
2402
+ declare enum FieldName {
2403
+ serialNumber = "serialNumber"
2404
+ }
2405
+ interface CompanyAlias {
2406
+ id: string;
2407
+ entityType: EntityType;
2408
+ fieldName: FieldName;
2409
+ label: string;
2410
+ }
2411
+
2412
+ interface WhatsappAccount {
2413
+ id: string;
2414
+ name: string;
2415
+ qrCode?: string;
2416
+ isConnected: boolean;
2417
+ createdAt: string | Date;
2418
+ updatedAt: string | Date;
2419
+ }
2420
+
2421
+ interface ReturnInvoice {
2422
+ id: string;
2423
+ }
2424
+
2425
+ interface ReturnInvoiceLine {
2426
+ id: string;
2427
+ }
2428
+
2429
+ declare enum IotHubPlatform {
2430
+ WINDOWS = "WINDOWS",
2431
+ LINUX = "LINUX"
2432
+ }
2433
+ interface IotHub {
2434
+ id: string;
2435
+ name: string;
2436
+ platform: IotHubPlatform;
2437
+ createdAt: string | Date;
2438
+ }
2439
+
2440
+ interface UserPersonaEntityAccessStatus {
2441
+ id: string;
2442
+ entityType: EntityType;
2443
+ isEnabled: boolean;
2444
+ }
2445
+
173
2446
  declare function call(axiosRequest: AxiosRequestConfig): Promise<axios.AxiosResponse<any, any>>;
174
2447
  declare function getAllCustomObjects(schemaName: string, queryParams?: any): Promise<any>;
175
2448
  declare function getCustomObjectById(schemaName: string, id: string): Promise<any>;
@@ -183,6 +2456,776 @@ declare function createObject(entity: any, data: any): Promise<any>;
183
2456
  declare function deleteObject(entity: any, id: string): Promise<any>;
184
2457
  declare function runScript(scriptNameOrId: string, input: any, sync?: boolean): Promise<any>;
185
2458
  declare const konversiAPI: {
2459
+ notification: {
2460
+ findAll: (options?: {
2461
+ where?: Partial<NotificationEntity>;
2462
+ relations?: Record<string, boolean>;
2463
+ }) => Promise<NotificationEntity[]>;
2464
+ findOne: (id: string) => Promise<NotificationEntity>;
2465
+ create: (data?: Partial<NotificationEntity>) => Promise<NotificationEntity>;
2466
+ update: (id: string, newData: Partial<NotificationEntity>) => Promise<NotificationEntity>;
2467
+ remove: (id: string) => Promise<NotificationEntity>;
2468
+ };
2469
+ account: {
2470
+ findAll: (options?: {
2471
+ where?: Partial<Account>;
2472
+ relations?: Record<string, boolean>;
2473
+ }) => Promise<Account[]>;
2474
+ findOne: (id: string) => Promise<Account>;
2475
+ create: (data?: Partial<Account>) => Promise<Account>;
2476
+ update: (id: string, newData: Partial<Account>) => Promise<Account>;
2477
+ remove: (id: string) => Promise<Account>;
2478
+ };
2479
+ journalEntryLine: {
2480
+ findAll: (options?: {
2481
+ where?: Partial<JournalEntryLine>;
2482
+ relations?: Record<string, boolean>;
2483
+ }) => Promise<JournalEntryLine[]>;
2484
+ findOne: (id: string) => Promise<JournalEntryLine>;
2485
+ create: (data?: Partial<JournalEntryLine>) => Promise<JournalEntryLine>;
2486
+ update: (id: string, newData: Partial<JournalEntryLine>) => Promise<JournalEntryLine>;
2487
+ remove: (id: string) => Promise<JournalEntryLine>;
2488
+ };
2489
+ journalEntry: {
2490
+ findAll: (options?: {
2491
+ where?: Partial<JournalEntry>;
2492
+ relations?: Record<string, boolean>;
2493
+ }) => Promise<JournalEntry[]>;
2494
+ findOne: (id: string) => Promise<JournalEntry>;
2495
+ create: (data?: Partial<JournalEntry>) => Promise<JournalEntry>;
2496
+ update: (id: string, newData: Partial<JournalEntry>) => Promise<JournalEntry>;
2497
+ remove: (id: string) => Promise<JournalEntry>;
2498
+ };
2499
+ auditLog: {
2500
+ findAll: (options?: {
2501
+ where?: Partial<AuditLog>;
2502
+ relations?: Record<string, boolean>;
2503
+ }) => Promise<AuditLog[]>;
2504
+ findOne: (id: string) => Promise<AuditLog>;
2505
+ create: (data?: Partial<AuditLog>) => Promise<AuditLog>;
2506
+ update: (id: string, newData: Partial<AuditLog>) => Promise<AuditLog>;
2507
+ remove: (id: string) => Promise<AuditLog>;
2508
+ };
2509
+ subsidiary: {
2510
+ findAll: (options?: {
2511
+ where?: Partial<Subsidiary>;
2512
+ relations?: Record<string, boolean>;
2513
+ }) => Promise<Subsidiary[]>;
2514
+ findOne: (id: string) => Promise<Subsidiary>;
2515
+ create: (data?: Partial<Subsidiary>) => Promise<Subsidiary>;
2516
+ update: (id: string, newData: Partial<Subsidiary>) => Promise<Subsidiary>;
2517
+ remove: (id: string) => Promise<Subsidiary>;
2518
+ };
2519
+ companyOption: {
2520
+ findAll: (options?: {
2521
+ where?: Partial<CompanyOption>;
2522
+ relations?: Record<string, boolean>;
2523
+ }) => Promise<CompanyOption[]>;
2524
+ findOne: (id: string) => Promise<CompanyOption>;
2525
+ create: (data?: Partial<CompanyOption>) => Promise<CompanyOption>;
2526
+ update: (id: string, newData: Partial<CompanyOption>) => Promise<CompanyOption>;
2527
+ remove: (id: string) => Promise<CompanyOption>;
2528
+ };
2529
+ companyPermission: {
2530
+ findAll: (options?: {
2531
+ where?: Partial<CompanyPermission>;
2532
+ relations?: Record<string, boolean>;
2533
+ }) => Promise<CompanyPermission[]>;
2534
+ findOne: (id: string) => Promise<CompanyPermission>;
2535
+ create: (data?: Partial<CompanyPermission>) => Promise<CompanyPermission>;
2536
+ update: (id: string, newData: Partial<CompanyPermission>) => Promise<CompanyPermission>;
2537
+ remove: (id: string) => Promise<CompanyPermission>;
2538
+ };
2539
+ customer: {
2540
+ findAll: (options?: {
2541
+ where?: Partial<Customer>;
2542
+ relations?: Record<string, boolean>;
2543
+ }) => Promise<Customer[]>;
2544
+ findOne: (id: string) => Promise<Customer>;
2545
+ create: (data?: Partial<Customer>) => Promise<Customer>;
2546
+ update: (id: string, newData: Partial<Customer>) => Promise<Customer>;
2547
+ remove: (id: string) => Promise<Customer>;
2548
+ };
2549
+ supplier: {
2550
+ findAll: (options?: {
2551
+ where?: Partial<Supplier>;
2552
+ relations?: Record<string, boolean>;
2553
+ }) => Promise<Supplier[]>;
2554
+ findOne: (id: string) => Promise<Supplier>;
2555
+ create: (data?: Partial<Supplier>) => Promise<Supplier>;
2556
+ update: (id: string, newData: Partial<Supplier>) => Promise<Supplier>;
2557
+ remove: (id: string) => Promise<Supplier>;
2558
+ };
2559
+ customEntityField: {
2560
+ findAll: (options?: {
2561
+ where?: Partial<CustomEntityField>;
2562
+ relations?: Record<string, boolean>;
2563
+ }) => Promise<CustomEntityField[]>;
2564
+ findOne: (id: string) => Promise<CustomEntityField>;
2565
+ create: (data?: Partial<CustomEntityField>) => Promise<CustomEntityField>;
2566
+ update: (id: string, newData: Partial<CustomEntityField>) => Promise<CustomEntityField>;
2567
+ remove: (id: string) => Promise<CustomEntityField>;
2568
+ };
2569
+ customEntityObject: {
2570
+ findAll: (options?: {
2571
+ where?: Partial<CustomEntityObject>;
2572
+ relations?: Record<string, boolean>;
2573
+ }) => Promise<CustomEntityObject[]>;
2574
+ findOne: (id: string) => Promise<CustomEntityObject>;
2575
+ create: (data?: Partial<CustomEntityObject>) => Promise<CustomEntityObject>;
2576
+ update: (id: string, newData: Partial<CustomEntityObject>) => Promise<CustomEntityObject>;
2577
+ remove: (id: string) => Promise<CustomEntityObject>;
2578
+ };
2579
+ customEntitySchema: {
2580
+ findAll: (options?: {
2581
+ where?: Partial<CustomEntitySchema>;
2582
+ relations?: Record<string, boolean>;
2583
+ }) => Promise<CustomEntitySchema[]>;
2584
+ findOne: (id: string) => Promise<CustomEntitySchema>;
2585
+ create: (data?: Partial<CustomEntitySchema>) => Promise<CustomEntitySchema>;
2586
+ update: (id: string, newData: Partial<CustomEntitySchema>) => Promise<CustomEntitySchema>;
2587
+ remove: (id: string) => Promise<CustomEntitySchema>;
2588
+ };
2589
+ customField: {
2590
+ findAll: (options?: {
2591
+ where?: Partial<CustomField>;
2592
+ relations?: Record<string, boolean>;
2593
+ }) => Promise<CustomField[]>;
2594
+ findOne: (id: string) => Promise<CustomField>;
2595
+ create: (data?: Partial<CustomField>) => Promise<CustomField>;
2596
+ update: (id: string, newData: Partial<CustomField>) => Promise<CustomField>;
2597
+ remove: (id: string) => Promise<CustomField>;
2598
+ };
2599
+ incomingDeliveryLine: {
2600
+ findAll: (options?: {
2601
+ where?: Partial<IncomingDeliveryLine>;
2602
+ relations?: Record<string, boolean>;
2603
+ }) => Promise<IncomingDeliveryLine[]>;
2604
+ findOne: (id: string) => Promise<IncomingDeliveryLine>;
2605
+ create: (data?: Partial<IncomingDeliveryLine>) => Promise<IncomingDeliveryLine>;
2606
+ update: (id: string, newData: Partial<IncomingDeliveryLine>) => Promise<IncomingDeliveryLine>;
2607
+ remove: (id: string) => Promise<IncomingDeliveryLine>;
2608
+ };
2609
+ incomingDelivery: {
2610
+ findAll: (options?: {
2611
+ where?: Partial<IncomingDelivery>;
2612
+ relations?: Record<string, boolean>;
2613
+ }) => Promise<IncomingDelivery[]>;
2614
+ findOne: (id: string) => Promise<IncomingDelivery>;
2615
+ create: (data?: Partial<IncomingDelivery>) => Promise<IncomingDelivery>;
2616
+ update: (id: string, newData: Partial<IncomingDelivery>) => Promise<IncomingDelivery>;
2617
+ remove: (id: string) => Promise<IncomingDelivery>;
2618
+ };
2619
+ internalDeliveryLine: {
2620
+ findAll: (options?: {
2621
+ where?: Partial<InternalDeliveryLine>;
2622
+ relations?: Record<string, boolean>;
2623
+ }) => Promise<InternalDeliveryLine[]>;
2624
+ findOne: (id: string) => Promise<InternalDeliveryLine>;
2625
+ create: (data?: Partial<InternalDeliveryLine>) => Promise<InternalDeliveryLine>;
2626
+ update: (id: string, newData: Partial<InternalDeliveryLine>) => Promise<InternalDeliveryLine>;
2627
+ remove: (id: string) => Promise<InternalDeliveryLine>;
2628
+ };
2629
+ internalDelivery: {
2630
+ findAll: (options?: {
2631
+ where?: Partial<InternalDelivery>;
2632
+ relations?: Record<string, boolean>;
2633
+ }) => Promise<InternalDelivery[]>;
2634
+ findOne: (id: string) => Promise<InternalDelivery>;
2635
+ create: (data?: Partial<InternalDelivery>) => Promise<InternalDelivery>;
2636
+ update: (id: string, newData: Partial<InternalDelivery>) => Promise<InternalDelivery>;
2637
+ remove: (id: string) => Promise<InternalDelivery>;
2638
+ };
2639
+ outgoingDeliveryLine: {
2640
+ findAll: (options?: {
2641
+ where?: Partial<OutgoingDeliveryLine>;
2642
+ relations?: Record<string, boolean>;
2643
+ }) => Promise<OutgoingDeliveryLine[]>;
2644
+ findOne: (id: string) => Promise<OutgoingDeliveryLine>;
2645
+ create: (data?: Partial<OutgoingDeliveryLine>) => Promise<OutgoingDeliveryLine>;
2646
+ update: (id: string, newData: Partial<OutgoingDeliveryLine>) => Promise<OutgoingDeliveryLine>;
2647
+ remove: (id: string) => Promise<OutgoingDeliveryLine>;
2648
+ };
2649
+ outgoingDelivery: {
2650
+ findAll: (options?: {
2651
+ where?: Partial<OutgoingDelivery>;
2652
+ relations?: Record<string, boolean>;
2653
+ }) => Promise<OutgoingDelivery[]>;
2654
+ findOne: (id: string) => Promise<OutgoingDelivery>;
2655
+ create: (data?: Partial<OutgoingDelivery>) => Promise<OutgoingDelivery>;
2656
+ update: (id: string, newData: Partial<OutgoingDelivery>) => Promise<OutgoingDelivery>;
2657
+ remove: (id: string) => Promise<OutgoingDelivery>;
2658
+ };
2659
+ customDocument: {
2660
+ findAll: (options?: {
2661
+ where?: Partial<CustomDocument>;
2662
+ relations?: Record<string, boolean>;
2663
+ }) => Promise<CustomDocument[]>;
2664
+ findOne: (id: string) => Promise<CustomDocument>;
2665
+ create: (data?: Partial<CustomDocument>) => Promise<CustomDocument>;
2666
+ update: (id: string, newData: Partial<CustomDocument>) => Promise<CustomDocument>;
2667
+ remove: (id: string) => Promise<CustomDocument>;
2668
+ };
2669
+ identifierGroup: {
2670
+ findAll: (options?: {
2671
+ where?: Partial<IdentifierGroup>;
2672
+ relations?: Record<string, boolean>;
2673
+ }) => Promise<IdentifierGroup[]>;
2674
+ findOne: (id: string) => Promise<IdentifierGroup>;
2675
+ create: (data?: Partial<IdentifierGroup>) => Promise<IdentifierGroup>;
2676
+ update: (id: string, newData: Partial<IdentifierGroup>) => Promise<IdentifierGroup>;
2677
+ remove: (id: string) => Promise<IdentifierGroup>;
2678
+ };
2679
+ identifierToken: {
2680
+ findAll: (options?: {
2681
+ where?: Partial<IdentifierToken>;
2682
+ relations?: Record<string, boolean>;
2683
+ }) => Promise<IdentifierToken[]>;
2684
+ findOne: (id: string) => Promise<IdentifierToken>;
2685
+ create: (data?: Partial<IdentifierToken>) => Promise<IdentifierToken>;
2686
+ update: (id: string, newData: Partial<IdentifierToken>) => Promise<IdentifierToken>;
2687
+ remove: (id: string) => Promise<IdentifierToken>;
2688
+ };
2689
+ invoiceLine: {
2690
+ findAll: (options?: {
2691
+ where?: Partial<InvoiceLine>;
2692
+ relations?: Record<string, boolean>;
2693
+ }) => Promise<InvoiceLine[]>;
2694
+ findOne: (id: string) => Promise<InvoiceLine>;
2695
+ create: (data?: Partial<InvoiceLine>) => Promise<InvoiceLine>;
2696
+ update: (id: string, newData: Partial<InvoiceLine>) => Promise<InvoiceLine>;
2697
+ remove: (id: string) => Promise<InvoiceLine>;
2698
+ };
2699
+ invoice: {
2700
+ findAll: (options?: {
2701
+ where?: Partial<Invoice>;
2702
+ relations?: Record<string, boolean>;
2703
+ }) => Promise<Invoice[]>;
2704
+ findOne: (id: string) => Promise<Invoice>;
2705
+ create: (data?: Partial<Invoice>) => Promise<Invoice>;
2706
+ update: (id: string, newData: Partial<Invoice>) => Promise<Invoice>;
2707
+ remove: (id: string) => Promise<Invoice>;
2708
+ };
2709
+ purchaseOrderLine: {
2710
+ findAll: (options?: {
2711
+ where?: Partial<PurchaseOrderLine>;
2712
+ relations?: Record<string, boolean>;
2713
+ }) => Promise<PurchaseOrderLine[]>;
2714
+ findOne: (id: string) => Promise<PurchaseOrderLine>;
2715
+ create: (data?: Partial<PurchaseOrderLine>) => Promise<PurchaseOrderLine>;
2716
+ update: (id: string, newData: Partial<PurchaseOrderLine>) => Promise<PurchaseOrderLine>;
2717
+ remove: (id: string) => Promise<PurchaseOrderLine>;
2718
+ };
2719
+ purchaseOrder: {
2720
+ findAll: (options?: {
2721
+ where?: Partial<PurchaseOrder>;
2722
+ relations?: Record<string, boolean>;
2723
+ }) => Promise<PurchaseOrder[]>;
2724
+ findOne: (id: string) => Promise<PurchaseOrder>;
2725
+ create: (data?: Partial<PurchaseOrder>) => Promise<PurchaseOrder>;
2726
+ update: (id: string, newData: Partial<PurchaseOrder>) => Promise<PurchaseOrder>;
2727
+ remove: (id: string) => Promise<PurchaseOrder>;
2728
+ };
2729
+ salesOrderLine: {
2730
+ findAll: (options?: {
2731
+ where?: Partial<SalesOrderLine>;
2732
+ relations?: Record<string, boolean>;
2733
+ }) => Promise<SalesOrderLine[]>;
2734
+ findOne: (id: string) => Promise<SalesOrderLine>;
2735
+ create: (data?: Partial<SalesOrderLine>) => Promise<SalesOrderLine>;
2736
+ update: (id: string, newData: Partial<SalesOrderLine>) => Promise<SalesOrderLine>;
2737
+ remove: (id: string) => Promise<SalesOrderLine>;
2738
+ };
2739
+ salesOrder: {
2740
+ findAll: (options?: {
2741
+ where?: Partial<SalesOrder>;
2742
+ relations?: Record<string, boolean>;
2743
+ }) => Promise<SalesOrder[]>;
2744
+ findOne: (id: string) => Promise<SalesOrder>;
2745
+ create: (data?: Partial<SalesOrder>) => Promise<SalesOrder>;
2746
+ update: (id: string, newData: Partial<SalesOrder>) => Promise<SalesOrder>;
2747
+ remove: (id: string) => Promise<SalesOrder>;
2748
+ };
2749
+ productItem: {
2750
+ findAll: (options?: {
2751
+ where?: Partial<ProductItem>;
2752
+ relations?: Record<string, boolean>;
2753
+ }) => Promise<ProductItem[]>;
2754
+ findOne: (id: string) => Promise<ProductItem>;
2755
+ create: (data?: Partial<ProductItem>) => Promise<ProductItem>;
2756
+ update: (id: string, newData: Partial<ProductItem>) => Promise<ProductItem>;
2757
+ remove: (id: string) => Promise<ProductItem>;
2758
+ };
2759
+ productSupplier: {
2760
+ findAll: (options?: {
2761
+ where?: Partial<ProductSupplier>;
2762
+ relations?: Record<string, boolean>;
2763
+ }) => Promise<ProductSupplier[]>;
2764
+ findOne: (id: string) => Promise<ProductSupplier>;
2765
+ create: (data?: Partial<ProductSupplier>) => Promise<ProductSupplier>;
2766
+ update: (id: string, newData: Partial<ProductSupplier>) => Promise<ProductSupplier>;
2767
+ remove: (id: string) => Promise<ProductSupplier>;
2768
+ };
2769
+ product: {
2770
+ findAll: (options?: {
2771
+ where?: Partial<Product>;
2772
+ relations?: Record<string, boolean>;
2773
+ }) => Promise<Product[]>;
2774
+ findOne: (id: string) => Promise<Product>;
2775
+ create: (data?: Partial<Product>) => Promise<Product>;
2776
+ update: (id: string, newData: Partial<Product>) => Promise<Product>;
2777
+ remove: (id: string) => Promise<Product>;
2778
+ };
2779
+ productGroup: {
2780
+ findAll: (options?: {
2781
+ where?: Partial<ProductGroup>;
2782
+ relations?: Record<string, boolean>;
2783
+ }) => Promise<ProductGroup[]>;
2784
+ findOne: (id: string) => Promise<ProductGroup>;
2785
+ create: (data?: Partial<ProductGroup>) => Promise<ProductGroup>;
2786
+ update: (id: string, newData: Partial<ProductGroup>) => Promise<ProductGroup>;
2787
+ remove: (id: string) => Promise<ProductGroup>;
2788
+ };
2789
+ quoteLine: {
2790
+ findAll: (options?: {
2791
+ where?: Partial<QuoteLine>;
2792
+ relations?: Record<string, boolean>;
2793
+ }) => Promise<QuoteLine[]>;
2794
+ findOne: (id: string) => Promise<QuoteLine>;
2795
+ create: (data?: Partial<QuoteLine>) => Promise<QuoteLine>;
2796
+ update: (id: string, newData: Partial<QuoteLine>) => Promise<QuoteLine>;
2797
+ remove: (id: string) => Promise<QuoteLine>;
2798
+ };
2799
+ quote: {
2800
+ findAll: (options?: {
2801
+ where?: Partial<Quote>;
2802
+ relations?: Record<string, boolean>;
2803
+ }) => Promise<Quote[]>;
2804
+ findOne: (id: string) => Promise<Quote>;
2805
+ create: (data?: Partial<Quote>) => Promise<Quote>;
2806
+ update: (id: string, newData: Partial<Quote>) => Promise<Quote>;
2807
+ remove: (id: string) => Promise<Quote>;
2808
+ };
2809
+ customReport: {
2810
+ findAll: (options?: {
2811
+ where?: Partial<CustomReport>;
2812
+ relations?: Record<string, boolean>;
2813
+ }) => Promise<CustomReport[]>;
2814
+ findOne: (id: string) => Promise<CustomReport>;
2815
+ create: (data?: Partial<CustomReport>) => Promise<CustomReport>;
2816
+ update: (id: string, newData: Partial<CustomReport>) => Promise<CustomReport>;
2817
+ remove: (id: string) => Promise<CustomReport>;
2818
+ };
2819
+ incomingShipment: {
2820
+ findAll: (options?: {
2821
+ where?: Partial<IncomingShipment>;
2822
+ relations?: Record<string, boolean>;
2823
+ }) => Promise<IncomingShipment[]>;
2824
+ findOne: (id: string) => Promise<IncomingShipment>;
2825
+ create: (data?: Partial<IncomingShipment>) => Promise<IncomingShipment>;
2826
+ update: (id: string, newData: Partial<IncomingShipment>) => Promise<IncomingShipment>;
2827
+ remove: (id: string) => Promise<IncomingShipment>;
2828
+ };
2829
+ outgoingShipment: {
2830
+ findAll: (options?: {
2831
+ where?: Partial<OutgoingShipment>;
2832
+ relations?: Record<string, boolean>;
2833
+ }) => Promise<OutgoingShipment[]>;
2834
+ findOne: (id: string) => Promise<OutgoingShipment>;
2835
+ create: (data?: Partial<OutgoingShipment>) => Promise<OutgoingShipment>;
2836
+ update: (id: string, newData: Partial<OutgoingShipment>) => Promise<OutgoingShipment>;
2837
+ remove: (id: string) => Promise<OutgoingShipment>;
2838
+ };
2839
+ stockAdjustment: {
2840
+ findAll: (options?: {
2841
+ where?: Partial<StockAdjustment>;
2842
+ relations?: Record<string, boolean>;
2843
+ }) => Promise<StockAdjustment[]>;
2844
+ findOne: (id: string) => Promise<StockAdjustment>;
2845
+ create: (data?: Partial<StockAdjustment>) => Promise<StockAdjustment>;
2846
+ update: (id: string, newData: Partial<StockAdjustment>) => Promise<StockAdjustment>;
2847
+ remove: (id: string) => Promise<StockAdjustment>;
2848
+ };
2849
+ storeProductAttributeValue: {
2850
+ findAll: (options?: {
2851
+ where?: Partial<StoreProductAttributeValue>;
2852
+ relations?: Record<string, boolean>;
2853
+ }) => Promise<StoreProductAttributeValue[]>;
2854
+ findOne: (id: string) => Promise<StoreProductAttributeValue>;
2855
+ create: (data?: Partial<StoreProductAttributeValue>) => Promise<StoreProductAttributeValue>;
2856
+ update: (id: string, newData: Partial<StoreProductAttributeValue>) => Promise<StoreProductAttributeValue>;
2857
+ remove: (id: string) => Promise<StoreProductAttributeValue>;
2858
+ };
2859
+ storeProductAttribute: {
2860
+ findAll: (options?: {
2861
+ where?: Partial<StoreProductAttribute>;
2862
+ relations?: Record<string, boolean>;
2863
+ }) => Promise<StoreProductAttribute[]>;
2864
+ findOne: (id: string) => Promise<StoreProductAttribute>;
2865
+ create: (data?: Partial<StoreProductAttribute>) => Promise<StoreProductAttribute>;
2866
+ update: (id: string, newData: Partial<StoreProductAttribute>) => Promise<StoreProductAttribute>;
2867
+ remove: (id: string) => Promise<StoreProductAttribute>;
2868
+ };
2869
+ storeProductGroup: {
2870
+ findAll: (options?: {
2871
+ where?: Partial<StoreProductGroup>;
2872
+ relations?: Record<string, boolean>;
2873
+ }) => Promise<StoreProductGroup[]>;
2874
+ findOne: (id: string) => Promise<StoreProductGroup>;
2875
+ create: (data?: Partial<StoreProductGroup>) => Promise<StoreProductGroup>;
2876
+ update: (id: string, newData: Partial<StoreProductGroup>) => Promise<StoreProductGroup>;
2877
+ remove: (id: string) => Promise<StoreProductGroup>;
2878
+ };
2879
+ storeProduct: {
2880
+ findAll: (options?: {
2881
+ where?: Partial<StoreProduct>;
2882
+ relations?: Record<string, boolean>;
2883
+ }) => Promise<StoreProduct[]>;
2884
+ findOne: (id: string) => Promise<StoreProduct>;
2885
+ create: (data?: Partial<StoreProduct>) => Promise<StoreProduct>;
2886
+ update: (id: string, newData: Partial<StoreProduct>) => Promise<StoreProduct>;
2887
+ remove: (id: string) => Promise<StoreProduct>;
2888
+ };
2889
+ store: {
2890
+ findAll: (options?: {
2891
+ where?: Partial<Store>;
2892
+ relations?: Record<string, boolean>;
2893
+ }) => Promise<Store[]>;
2894
+ findOne: (id: string) => Promise<Store>;
2895
+ create: (data?: Partial<Store>) => Promise<Store>;
2896
+ update: (id: string, newData: Partial<Store>) => Promise<Store>;
2897
+ remove: (id: string) => Promise<Store>;
2898
+ };
2899
+ printJob: {
2900
+ findAll: (options?: {
2901
+ where?: Partial<PrintJob>;
2902
+ relations?: Record<string, boolean>;
2903
+ }) => Promise<PrintJob[]>;
2904
+ findOne: (id: string) => Promise<PrintJob>;
2905
+ create: (data?: Partial<PrintJob>) => Promise<PrintJob>;
2906
+ update: (id: string, newData: Partial<PrintJob>) => Promise<PrintJob>;
2907
+ remove: (id: string) => Promise<PrintJob>;
2908
+ };
2909
+ invitation: {
2910
+ findAll: (options?: {
2911
+ where?: Partial<Invitation>;
2912
+ relations?: Record<string, boolean>;
2913
+ }) => Promise<Invitation[]>;
2914
+ findOne: (id: string) => Promise<Invitation>;
2915
+ create: (data?: Partial<Invitation>) => Promise<Invitation>;
2916
+ update: (id: string, newData: Partial<Invitation>) => Promise<Invitation>;
2917
+ remove: (id: string) => Promise<Invitation>;
2918
+ };
2919
+ warehouse: {
2920
+ findAll: (options?: {
2921
+ where?: Partial<Warehouse>;
2922
+ relations?: Record<string, boolean>;
2923
+ }) => Promise<Warehouse[]>;
2924
+ findOne: (id: string) => Promise<Warehouse>;
2925
+ create: (data?: Partial<Warehouse>) => Promise<Warehouse>;
2926
+ update: (id: string, newData: Partial<Warehouse>) => Promise<Warehouse>;
2927
+ remove: (id: string) => Promise<Warehouse>;
2928
+ };
2929
+ expenseLine: {
2930
+ findAll: (options?: {
2931
+ where?: Partial<ExpenseLine>;
2932
+ relations?: Record<string, boolean>;
2933
+ }) => Promise<ExpenseLine[]>;
2934
+ findOne: (id: string) => Promise<ExpenseLine>;
2935
+ create: (data?: Partial<ExpenseLine>) => Promise<ExpenseLine>;
2936
+ update: (id: string, newData: Partial<ExpenseLine>) => Promise<ExpenseLine>;
2937
+ remove: (id: string) => Promise<ExpenseLine>;
2938
+ };
2939
+ expense: {
2940
+ findAll: (options?: {
2941
+ where?: Partial<Expense>;
2942
+ relations?: Record<string, boolean>;
2943
+ }) => Promise<Expense[]>;
2944
+ findOne: (id: string) => Promise<Expense>;
2945
+ create: (data?: Partial<Expense>) => Promise<Expense>;
2946
+ update: (id: string, newData: Partial<Expense>) => Promise<Expense>;
2947
+ remove: (id: string) => Promise<Expense>;
2948
+ };
2949
+ fixedAsset: {
2950
+ findAll: (options?: {
2951
+ where?: Partial<FixedAsset>;
2952
+ relations?: Record<string, boolean>;
2953
+ }) => Promise<FixedAsset[]>;
2954
+ findOne: (id: string) => Promise<FixedAsset>;
2955
+ create: (data?: Partial<FixedAsset>) => Promise<FixedAsset>;
2956
+ update: (id: string, newData: Partial<FixedAsset>) => Promise<FixedAsset>;
2957
+ remove: (id: string) => Promise<FixedAsset>;
2958
+ };
2959
+ incomingPaymentMethod: {
2960
+ findAll: (options?: {
2961
+ where?: Partial<IncomingPaymentMethod>;
2962
+ relations?: Record<string, boolean>;
2963
+ }) => Promise<IncomingPaymentMethod[]>;
2964
+ findOne: (id: string) => Promise<IncomingPaymentMethod>;
2965
+ create: (data?: Partial<IncomingPaymentMethod>) => Promise<IncomingPaymentMethod>;
2966
+ update: (id: string, newData: Partial<IncomingPaymentMethod>) => Promise<IncomingPaymentMethod>;
2967
+ remove: (id: string) => Promise<IncomingPaymentMethod>;
2968
+ };
2969
+ payment: {
2970
+ findAll: (options?: {
2971
+ where?: Partial<Payment>;
2972
+ relations?: Record<string, boolean>;
2973
+ }) => Promise<Payment[]>;
2974
+ findOne: (id: string) => Promise<Payment>;
2975
+ create: (data?: Partial<Payment>) => Promise<Payment>;
2976
+ update: (id: string, newData: Partial<Payment>) => Promise<Payment>;
2977
+ remove: (id: string) => Promise<Payment>;
2978
+ };
2979
+ automationJob: {
2980
+ findAll: (options?: {
2981
+ where?: Partial<AutomationJob>;
2982
+ relations?: Record<string, boolean>;
2983
+ }) => Promise<AutomationJob[]>;
2984
+ findOne: (id: string) => Promise<AutomationJob>;
2985
+ create: (data?: Partial<AutomationJob>) => Promise<AutomationJob>;
2986
+ update: (id: string, newData: Partial<AutomationJob>) => Promise<AutomationJob>;
2987
+ remove: (id: string) => Promise<AutomationJob>;
2988
+ };
2989
+ automationScript: {
2990
+ findAll: (options?: {
2991
+ where?: Partial<AutomationScript>;
2992
+ relations?: Record<string, boolean>;
2993
+ }) => Promise<AutomationScript[]>;
2994
+ findOne: (id: string) => Promise<AutomationScript>;
2995
+ create: (data?: Partial<AutomationScript>) => Promise<AutomationScript>;
2996
+ update: (id: string, newData: Partial<AutomationScript>) => Promise<AutomationScript>;
2997
+ remove: (id: string) => Promise<AutomationScript>;
2998
+ };
2999
+ userAction: {
3000
+ findAll: (options?: {
3001
+ where?: Partial<UserAction>;
3002
+ relations?: Record<string, boolean>;
3003
+ }) => Promise<UserAction[]>;
3004
+ findOne: (id: string) => Promise<UserAction>;
3005
+ create: (data?: Partial<UserAction>) => Promise<UserAction>;
3006
+ update: (id: string, newData: Partial<UserAction>) => Promise<UserAction>;
3007
+ remove: (id: string) => Promise<UserAction>;
3008
+ };
3009
+ companyAlias: {
3010
+ findAll: (options?: {
3011
+ where?: Partial<CompanyAlias>;
3012
+ relations?: Record<string, boolean>;
3013
+ }) => Promise<CompanyAlias[]>;
3014
+ findOne: (id: string) => Promise<CompanyAlias>;
3015
+ create: (data?: Partial<CompanyAlias>) => Promise<CompanyAlias>;
3016
+ update: (id: string, newData: Partial<CompanyAlias>) => Promise<CompanyAlias>;
3017
+ remove: (id: string) => Promise<CompanyAlias>;
3018
+ };
3019
+ form: {
3020
+ findAll: (options?: {
3021
+ where?: Partial<Form>;
3022
+ relations?: Record<string, boolean>;
3023
+ }) => Promise<Form[]>;
3024
+ findOne: (id: string) => Promise<Form>;
3025
+ create: (data?: Partial<Form>) => Promise<Form>;
3026
+ update: (id: string, newData: Partial<Form>) => Promise<Form>;
3027
+ remove: (id: string) => Promise<Form>;
3028
+ };
3029
+ deliveryJob: {
3030
+ findAll: (options?: {
3031
+ where?: Partial<DeliveryJob>;
3032
+ relations?: Record<string, boolean>;
3033
+ }) => Promise<DeliveryJob[]>;
3034
+ findOne: (id: string) => Promise<DeliveryJob>;
3035
+ create: (data?: Partial<DeliveryJob>) => Promise<DeliveryJob>;
3036
+ update: (id: string, newData: Partial<DeliveryJob>) => Promise<DeliveryJob>;
3037
+ remove: (id: string) => Promise<DeliveryJob>;
3038
+ };
3039
+ vehicle: {
3040
+ findAll: (options?: {
3041
+ where?: Partial<Vehicle>;
3042
+ relations?: Record<string, boolean>;
3043
+ }) => Promise<Vehicle[]>;
3044
+ findOne: (id: string) => Promise<Vehicle>;
3045
+ create: (data?: Partial<Vehicle>) => Promise<Vehicle>;
3046
+ update: (id: string, newData: Partial<Vehicle>) => Promise<Vehicle>;
3047
+ remove: (id: string) => Promise<Vehicle>;
3048
+ };
3049
+ attendance: {
3050
+ findAll: (options?: {
3051
+ where?: Partial<Attendance>;
3052
+ relations?: Record<string, boolean>;
3053
+ }) => Promise<Attendance[]>;
3054
+ findOne: (id: string) => Promise<Attendance>;
3055
+ create: (data?: Partial<Attendance>) => Promise<Attendance>;
3056
+ update: (id: string, newData: Partial<Attendance>) => Promise<Attendance>;
3057
+ remove: (id: string) => Promise<Attendance>;
3058
+ };
3059
+ employee: {
3060
+ findAll: (options?: {
3061
+ where?: Partial<Employee>;
3062
+ relations?: Record<string, boolean>;
3063
+ }) => Promise<Employee[]>;
3064
+ findOne: (id: string) => Promise<Employee>;
3065
+ create: (data?: Partial<Employee>) => Promise<Employee>;
3066
+ update: (id: string, newData: Partial<Employee>) => Promise<Employee>;
3067
+ remove: (id: string) => Promise<Employee>;
3068
+ };
3069
+ geofence: {
3070
+ findAll: (options?: {
3071
+ where?: Partial<Geofence>;
3072
+ relations?: Record<string, boolean>;
3073
+ }) => Promise<Geofence[]>;
3074
+ findOne: (id: string) => Promise<Geofence>;
3075
+ create: (data?: Partial<Geofence>) => Promise<Geofence>;
3076
+ update: (id: string, newData: Partial<Geofence>) => Promise<Geofence>;
3077
+ remove: (id: string) => Promise<Geofence>;
3078
+ };
3079
+ iotDevice: {
3080
+ findAll: (options?: {
3081
+ where?: Partial<IotDevice>;
3082
+ relations?: Record<string, boolean>;
3083
+ }) => Promise<IotDevice[]>;
3084
+ findOne: (id: string) => Promise<IotDevice>;
3085
+ create: (data?: Partial<IotDevice>) => Promise<IotDevice>;
3086
+ update: (id: string, newData: Partial<IotDevice>) => Promise<IotDevice>;
3087
+ remove: (id: string) => Promise<IotDevice>;
3088
+ };
3089
+ iotJob: {
3090
+ findAll: (options?: {
3091
+ where?: Partial<IotJob>;
3092
+ relations?: Record<string, boolean>;
3093
+ }) => Promise<IotJob[]>;
3094
+ findOne: (id: string) => Promise<IotJob>;
3095
+ create: (data?: Partial<IotJob>) => Promise<IotJob>;
3096
+ update: (id: string, newData: Partial<IotJob>) => Promise<IotJob>;
3097
+ remove: (id: string) => Promise<IotJob>;
3098
+ };
3099
+ bomComponent: {
3100
+ findAll: (options?: {
3101
+ where?: Partial<BOMComponent>;
3102
+ relations?: Record<string, boolean>;
3103
+ }) => Promise<BOMComponent[]>;
3104
+ findOne: (id: string) => Promise<BOMComponent>;
3105
+ create: (data?: Partial<BOMComponent>) => Promise<BOMComponent>;
3106
+ update: (id: string, newData: Partial<BOMComponent>) => Promise<BOMComponent>;
3107
+ remove: (id: string) => Promise<BOMComponent>;
3108
+ };
3109
+ bomOperation: {
3110
+ findAll: (options?: {
3111
+ where?: Partial<BOMOperation>;
3112
+ relations?: Record<string, boolean>;
3113
+ }) => Promise<BOMOperation[]>;
3114
+ findOne: (id: string) => Promise<BOMOperation>;
3115
+ create: (data?: Partial<BOMOperation>) => Promise<BOMOperation>;
3116
+ update: (id: string, newData: Partial<BOMOperation>) => Promise<BOMOperation>;
3117
+ remove: (id: string) => Promise<BOMOperation>;
3118
+ };
3119
+ jobCard: {
3120
+ findAll: (options?: {
3121
+ where?: Partial<JobCard>;
3122
+ relations?: Record<string, boolean>;
3123
+ }) => Promise<JobCard[]>;
3124
+ findOne: (id: string) => Promise<JobCard>;
3125
+ create: (data?: Partial<JobCard>) => Promise<JobCard>;
3126
+ update: (id: string, newData: Partial<JobCard>) => Promise<JobCard>;
3127
+ remove: (id: string) => Promise<JobCard>;
3128
+ };
3129
+ productionOrder: {
3130
+ findAll: (options?: {
3131
+ where?: Partial<ProductionOrder>;
3132
+ relations?: Record<string, boolean>;
3133
+ }) => Promise<ProductionOrder[]>;
3134
+ findOne: (id: string) => Promise<ProductionOrder>;
3135
+ create: (data?: Partial<ProductionOrder>) => Promise<ProductionOrder>;
3136
+ update: (id: string, newData: Partial<ProductionOrder>) => Promise<ProductionOrder>;
3137
+ remove: (id: string) => Promise<ProductionOrder>;
3138
+ };
3139
+ productionOrderLine: {
3140
+ findAll: (options?: {
3141
+ where?: Partial<ProductionOrderLine>;
3142
+ relations?: Record<string, boolean>;
3143
+ }) => Promise<ProductionOrderLine[]>;
3144
+ findOne: (id: string) => Promise<ProductionOrderLine>;
3145
+ create: (data?: Partial<ProductionOrderLine>) => Promise<ProductionOrderLine>;
3146
+ update: (id: string, newData: Partial<ProductionOrderLine>) => Promise<ProductionOrderLine>;
3147
+ remove: (id: string) => Promise<ProductionOrderLine>;
3148
+ };
3149
+ workstation: {
3150
+ findAll: (options?: {
3151
+ where?: Partial<Workstation>;
3152
+ relations?: Record<string, boolean>;
3153
+ }) => Promise<Workstation[]>;
3154
+ findOne: (id: string) => Promise<Workstation>;
3155
+ create: (data?: Partial<Workstation>) => Promise<Workstation>;
3156
+ update: (id: string, newData: Partial<Workstation>) => Promise<Workstation>;
3157
+ remove: (id: string) => Promise<Workstation>;
3158
+ };
3159
+ rentalOrderLine: {
3160
+ findAll: (options?: {
3161
+ where?: Partial<RentalOrderLine>;
3162
+ relations?: Record<string, boolean>;
3163
+ }) => Promise<RentalOrderLine[]>;
3164
+ findOne: (id: string) => Promise<RentalOrderLine>;
3165
+ create: (data?: Partial<RentalOrderLine>) => Promise<RentalOrderLine>;
3166
+ update: (id: string, newData: Partial<RentalOrderLine>) => Promise<RentalOrderLine>;
3167
+ remove: (id: string) => Promise<RentalOrderLine>;
3168
+ };
3169
+ rentalOrder: {
3170
+ findAll: (options?: {
3171
+ where?: Partial<RentalOrder>;
3172
+ relations?: Record<string, boolean>;
3173
+ }) => Promise<RentalOrder[]>;
3174
+ findOne: (id: string) => Promise<RentalOrder>;
3175
+ create: (data?: Partial<RentalOrder>) => Promise<RentalOrder>;
3176
+ update: (id: string, newData: Partial<RentalOrder>) => Promise<RentalOrder>;
3177
+ remove: (id: string) => Promise<RentalOrder>;
3178
+ };
3179
+ userPersonaCustomSchemaPermission: {
3180
+ findAll: (options?: {
3181
+ where?: Partial<UserPersonaCustomSchemaPermission>;
3182
+ relations?: Record<string, boolean>;
3183
+ }) => Promise<UserPersonaCustomSchemaPermission[]>;
3184
+ findOne: (id: string) => Promise<UserPersonaCustomSchemaPermission>;
3185
+ create: (data?: Partial<UserPersonaCustomSchemaPermission>) => Promise<UserPersonaCustomSchemaPermission>;
3186
+ update: (id: string, newData: Partial<UserPersonaCustomSchemaPermission>) => Promise<UserPersonaCustomSchemaPermission>;
3187
+ remove: (id: string) => Promise<UserPersonaCustomSchemaPermission>;
3188
+ };
3189
+ userPersonaEntityAccessStatus: {
3190
+ findAll: (options?: {
3191
+ where?: Partial<UserPersonaEntityAccessStatus>;
3192
+ relations?: Record<string, boolean>;
3193
+ }) => Promise<UserPersonaEntityAccessStatus[]>;
3194
+ findOne: (id: string) => Promise<UserPersonaEntityAccessStatus>;
3195
+ create: (data?: Partial<UserPersonaEntityAccessStatus>) => Promise<UserPersonaEntityAccessStatus>;
3196
+ update: (id: string, newData: Partial<UserPersonaEntityAccessStatus>) => Promise<UserPersonaEntityAccessStatus>;
3197
+ remove: (id: string) => Promise<UserPersonaEntityAccessStatus>;
3198
+ };
3199
+ userPersonaEntityPermission: {
3200
+ findAll: (options?: {
3201
+ where?: Partial<UserPersonaEntityPermission>;
3202
+ relations?: Record<string, boolean>;
3203
+ }) => Promise<UserPersonaEntityPermission[]>;
3204
+ findOne: (id: string) => Promise<UserPersonaEntityPermission>;
3205
+ create: (data?: Partial<UserPersonaEntityPermission>) => Promise<UserPersonaEntityPermission>;
3206
+ update: (id: string, newData: Partial<UserPersonaEntityPermission>) => Promise<UserPersonaEntityPermission>;
3207
+ remove: (id: string) => Promise<UserPersonaEntityPermission>;
3208
+ };
3209
+ userPersona: {
3210
+ findAll: (options?: {
3211
+ where?: Partial<UserPersona>;
3212
+ relations?: Record<string, boolean>;
3213
+ }) => Promise<UserPersona[]>;
3214
+ findOne: (id: string) => Promise<UserPersona>;
3215
+ create: (data?: Partial<UserPersona>) => Promise<UserPersona>;
3216
+ update: (id: string, newData: Partial<UserPersona>) => Promise<UserPersona>;
3217
+ remove: (id: string) => Promise<UserPersona>;
3218
+ };
3219
+ shift: {
3220
+ findAll: (options?: {
3221
+ where?: Partial<Shift>;
3222
+ relations?: Record<string, boolean>;
3223
+ }) => Promise<Shift[]>;
3224
+ findOne: (id: string) => Promise<Shift>;
3225
+ create: (data?: Partial<Shift>) => Promise<Shift>;
3226
+ update: (id: string, newData: Partial<Shift>) => Promise<Shift>;
3227
+ remove: (id: string) => Promise<Shift>;
3228
+ };
186
3229
  setToken: (token: string) => void;
187
3230
  setCompanyId: (companyId: string) => void;
188
3231
  setBaseUrl: (baseUrl: string) => void;
@@ -205,4 +3248,4 @@ declare const konversiAPI: {
205
3248
 
206
3249
  declare const Entity: typeof crudEndpoints;
207
3250
 
208
- export { Entity, konversiAPI as default, runScript };
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 };