@konversi/konversi-client 1.5.7 → 1.5.10

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
@@ -349,63 +349,45 @@ interface SalesOrderLine extends OrderLine {
349
349
  averageCost?: number;
350
350
  }
351
351
 
352
- interface InvoiceLine extends OrderLine {
353
- invoice: Partial<Invoice>;
354
- product: Partial<Product>;
355
- productItem: Partial<ProductItem>;
356
- startDate?: string | Date;
357
- endDate?: string | Date;
358
- dailyUnitPrice?: number;
359
- }
360
-
361
- interface PropertyGroup {
352
+ type DepreciationPeriod = 'MONTHLY' | 'YEARLY';
353
+ interface FixedAsset {
354
+ journalEntrySources: Partial<JournalEntrySource>[];
362
355
  id: string;
363
356
  name: string;
364
- mapImage?: string;
365
- properties: Partial<Property>[];
357
+ date?: string;
358
+ description: string;
359
+ purchasePrice: number;
360
+ nonDepreciableValue: number;
361
+ quantity: number;
362
+ depreciationDuration: number;
363
+ depreciationPeriod?: DepreciationPeriod;
364
+ assetAccount: Partial<Account>;
365
+ depreciationAccount: Partial<Account>;
366
+ expenseAccount: Partial<Account>;
367
+ journalEntries: Partial<JournalEntry>[];
366
368
  }
367
369
 
368
- interface MaintenanceOrderLine extends OrderLine {
369
- id: string;
370
+ interface PurchaseOrderLine extends OrderLine {
371
+ purchaseOrder: Partial<PurchaseOrder>;
370
372
  product: Partial<Product>;
371
- maintenanceOrder: Partial<MaintenanceOrder>;
372
- }
373
-
374
- interface MaintenanceOrder extends Order {
375
- id: string;
376
- maintenanceOrderLines: Partial<MaintenanceOrderLine>[];
377
- vehicle: Partial<Vehicle>;
378
- property: Partial<Property>;
379
- customFields: any;
380
- }
381
-
382
- interface Property {
383
- id: string;
384
- name: string;
385
- files: string[];
386
- mapPolygon: number[][];
387
- propertyGroup: Partial<PropertyGroup>;
388
- leases: Partial<Lease>[];
389
- maintenanceOrders: Partial<MaintenanceOrder>[];
390
373
  }
391
374
 
392
- type LeasePaymentStatus = 'NOT_INVOICED' | 'PARTIALLY_INVOICED' | 'FULLY_INVOICED' | 'PARTIALLY_PAID' | 'FULLY_PAID' | 'OVERDUE';
393
- interface Lease {
375
+ type EntityType = 'CUSTOMER' | 'SUPPLIER' | 'ACCOUNT' | 'PRODUCT' | 'SERVICE' | 'PRODUCT_ITEM' | 'RENTAL_ORDER' | 'SALES_ORDER' | 'SALES_ORDER_LINE' | 'WORK_ORDER' | 'WORK_ORDER_LINE' | 'SERVICE_ORDER' | 'SERVICE_ORDER_LINE' | 'PURCHASE_ORDER' | 'PURCHASE_ORDER_LINE' | 'INVOICE' | 'INVOICE_LINE' | 'QUOTE' | 'QUOTE_LINE' | 'OUTGOING_DELIVERY' | 'OUTGOING_DELIVERY_LINE' | 'INCOMING_DELIVERY' | 'INCOMING_DELIVERY_LINE' | 'INTERNAL_DELIVERY' | 'STOCK_ADJUSTMENT' | 'PAYMENT' | 'EXPENSE' | 'PRODUCTION_ORDER' | 'PRODUCTION_ORDER_LINE' | 'JOB_CARD' | 'DELIVERY_JOB' | 'VEHICLE' | 'MAINTENANCE_ORDER' | 'MAINTENANCE_ORDER_LINE' | 'FUEL_ENTRY' | 'USER' | 'IDENTIFIER_GROUP' | 'WAREHOUSE' | 'POINT_OF_SALE' | 'BANK_ACCOUNT' | 'BANK_TRANSACTION' | 'JOURNAL_ENTRY' | 'FIXED_ASSET' | 'RULE' | 'BILL' | 'BILL_LINE' | 'LEASE' | 'PROPERTY' | 'PRICELIST' | 'PRICELIST_LINE' | 'CUSTOM_REPORT' | 'PRODUCT_LOCATION' | 'BOM_COMPONENT' | 'BOM_OPERATION' | 'RETURN_INVOICE' | 'RETURN_SALES_ORDER' | 'STORE_PRODUCT';
376
+ type DataType = 'TEXT' | 'NUMBER' | 'CURRENCY' | 'DATE' | 'DATETIME' | 'DROPDOWN' | 'SELECT' | 'JSON' | 'BOOLEAN' | 'FILE' | 'FILE_ARRAY' | 'REFERENCE';
377
+ interface CustomField {
394
378
  id: string;
395
- properties: Partial<Property>[];
396
- customer: Partial<Customer>;
397
- startDate?: string;
398
- endDate?: string;
399
- files: string[];
400
- totalAmount: number;
401
- paymentStatus?: LeasePaymentStatus;
402
- customFields: any;
403
- isProfitSharing: boolean;
404
- profitSharingPercentage: number;
405
- invoices: Partial<Invoice>[];
406
- createdAt: string | Date;
407
- createdBy: Partial<User>;
408
- updatedAt: string | Date;
379
+ entityType: EntityType;
380
+ dataType: DataType;
381
+ label: string;
382
+ key: string;
383
+ referenceEntityType?: EntityType;
384
+ jsonSchema?: any;
385
+ dropdownOptions: string[];
386
+ docgenFieldName?: string;
387
+ showOnMainTable: boolean;
388
+ isHidden: boolean;
389
+ isReadOnly: boolean;
390
+ isRequired: boolean;
409
391
  }
410
392
 
411
393
  interface RentalOrderLine extends OrderLine {
@@ -614,211 +596,391 @@ interface Shipment {
614
596
  description: string;
615
597
  }
616
598
 
617
- type DepreciationPeriod = 'MONTHLY' | 'YEARLY';
618
- interface FixedAsset {
599
+ interface IncomingShipment extends Shipment {
619
600
  id: string;
620
- name: string;
621
- date?: string;
622
- description: string;
623
- purchasePrice: number;
624
- nonDepreciableValue: number;
625
- quantity: number;
626
- depreciationDuration: number;
627
- depreciationPeriod?: DepreciationPeriod;
628
- assetAccount: Partial<Account>;
629
- depreciationAccount: Partial<Account>;
630
- expenseAccount: Partial<Account>;
631
- journalEntries: Partial<JournalEntry>[];
601
+ destinationWarehouse: Partial<Warehouse>;
602
+ product: Partial<Product>;
603
+ purchaseOrder: Partial<PurchaseOrder>;
632
604
  }
633
605
 
634
- interface ExpenseLine extends OrderLine {
606
+ interface OutgoingShipment extends Shipment {
607
+ id: string;
608
+ sourceWarehouse: Partial<Warehouse>;
635
609
  product: Partial<Product>;
636
- account: Partial<Account>;
637
- expense: Partial<Expense>;
610
+ salesOrder: Partial<SalesOrder>;
638
611
  }
639
612
 
640
- type EntityType = 'CUSTOMER' | 'SUPPLIER' | 'ACCOUNT' | 'PRODUCT' | 'SERVICE' | 'PRODUCT_ITEM' | 'RENTAL_ORDER' | 'SALES_ORDER' | 'SALES_ORDER_LINE' | 'WORK_ORDER' | 'WORK_ORDER_LINE' | 'SERVICE_ORDER' | 'SERVICE_ORDER_LINE' | 'PURCHASE_ORDER' | 'PURCHASE_ORDER_LINE' | 'INVOICE' | 'INVOICE_LINE' | 'QUOTE' | 'QUOTE_LINE' | 'OUTGOING_DELIVERY' | 'OUTGOING_DELIVERY_LINE' | 'INCOMING_DELIVERY' | 'INCOMING_DELIVERY_LINE' | 'INTERNAL_DELIVERY' | 'STOCK_ADJUSTMENT' | 'PAYMENT' | 'EXPENSE' | 'PRODUCTION_ORDER' | 'PRODUCTION_ORDER_LINE' | 'JOB_CARD' | 'DELIVERY_JOB' | 'VEHICLE' | 'MAINTENANCE_ORDER' | 'MAINTENANCE_ORDER_LINE' | 'FUEL_ENTRY' | 'USER' | 'IDENTIFIER_GROUP' | 'WAREHOUSE' | 'POINT_OF_SALE' | 'BANK_ACCOUNT' | 'BANK_TRANSACTION' | 'JOURNAL_ENTRY' | 'FIXED_ASSET' | 'RULE' | 'BILL' | 'BILL_LINE' | 'LEASE' | 'PROPERTY' | 'PRICELIST' | 'PRICELIST_LINE' | 'CUSTOM_REPORT' | 'PRODUCT_LOCATION' | 'BOM_COMPONENT' | 'BOM_OPERATION' | 'RETURN_SALES_ORDER' | 'RETURN_INVOICE';
641
- type DataType = 'TEXT' | 'NUMBER' | 'CURRENCY' | 'DATE' | 'DATETIME' | 'DROPDOWN' | 'SELECT' | 'JSON' | 'BOOLEAN' | 'FILE_ARRAY' | 'REFERENCE';
642
- interface CustomField {
643
- id: string;
644
- entityType: EntityType;
645
- dataType: DataType;
646
- label: string;
647
- key: string;
648
- referenceEntityType?: EntityType;
649
- jsonSchema?: any;
650
- dropdownOptions: string[];
651
- docgenFieldName?: string;
652
- showOnMainTable: boolean;
653
- isHidden: boolean;
654
- isReadOnly: boolean;
655
- isRequired: boolean;
613
+ interface IncomingDeliveryLine extends DeliveryLine {
614
+ product: Partial<Product>;
615
+ incomingDelivery: Partial<IncomingDelivery>;
616
+ productItem: Partial<ProductItem>;
656
617
  }
657
618
 
658
- interface PointOfSale {
659
- id: string;
660
- name: string;
661
- identifierGroup: Partial<IdentifierGroup>;
662
- warehouse: Partial<Warehouse>;
663
- salesOrders: Partial<SalesOrder>[];
619
+ interface IncomingDelivery extends Delivery {
620
+ incomingDeliveryLines: Partial<IncomingDeliveryLine>[];
621
+ destinationWarehouse: Partial<Warehouse>;
622
+ purchaseOrder: Partial<PurchaseOrder>;
623
+ salesOrder: Partial<SalesOrder>;
624
+ supplier: Partial<Supplier>;
625
+ customer: Partial<Customer>;
626
+ subsidiary: Partial<Subsidiary>;
627
+ rentalOrder: Partial<RentalOrder>;
628
+ journalEntrySources: Partial<JournalEntrySource>[];
629
+ createdBy: Partial<User>;
664
630
  }
665
631
 
666
- interface IdentifierGroup {
667
- id: string;
668
- name: string;
669
- nextNum: number;
670
- nextNumMonthly: number;
671
- nextNumYearly: number;
672
- identifierTokens: Partial<IdentifierToken>[];
673
- entityType?: EntityType;
674
- pointOfSales: Partial<PointOfSale>[];
675
- salesOrders: Partial<SalesOrder>[];
676
- quotes: Partial<Quote>[];
677
- invoices: Partial<Invoice>[];
678
- purchaseOrders: Partial<PurchaseOrder>[];
679
- bills: Partial<Bill>[];
632
+ interface InternalDeliveryLine extends DeliveryLine {
633
+ product: Partial<Product>;
634
+ productItem: Partial<ProductItem>;
635
+ internalDelivery: Partial<InternalDelivery>;
680
636
  }
681
637
 
682
- type IdentifierTokenType = 'SLASH' | 'DASH' | 'UNDERSCORE' | 'DATE' | 'YEAR' | 'YEAR_TWO_DIGITS' | 'MONTH' | 'MONTH_ROMAN' | 'DOCUMENT_NUMBER' | 'DOCUMENT_NUMBER_YEARLY' | 'DOCUMENT_NUMBER_MONTHLY' | 'COMPANY_PREFIX' | 'TEXT';
683
- interface IdentifierToken {
638
+ interface InternalDelivery extends Delivery {
639
+ internalDeliveryLines: Partial<InternalDeliveryLine>[];
640
+ sourceWarehouse: Partial<Warehouse>;
641
+ destinationWarehouse: Partial<Warehouse>;
642
+ createdBy: Partial<User>;
643
+ }
644
+
645
+ type StockAdjustmentType = 'IN' | 'OUT';
646
+ interface StockAdjustment {
684
647
  id: string;
685
- order: number;
686
- type: IdentifierTokenType;
687
- text?: string;
688
- entityType?: EntityType;
689
- numberPadding: number;
690
- subsidiary: Partial<Subsidiary>;
691
- identifierGroup: Partial<IdentifierGroup>;
648
+ date?: string;
649
+ warehouse: Partial<Warehouse>;
650
+ product: Partial<Product>;
651
+ productItem: Partial<ProductItem>;
652
+ type: StockAdjustmentType;
653
+ memo: string;
654
+ user: Partial<User>;
655
+ quantity: number;
656
+ createdAt: string | Date;
657
+ createdBy: Partial<User>;
692
658
  }
693
659
 
694
- interface Subsidiary {
660
+ interface PointOfSale {
695
661
  id: string;
696
662
  name: string;
697
- address: string;
698
- documentPrefix?: string;
663
+ identifierGroup: Partial<IdentifierGroup>;
664
+ warehouse: Partial<Warehouse>;
699
665
  salesOrders: Partial<SalesOrder>[];
700
- rentalOrders: Partial<RentalOrder>[];
701
- deliveryJobs: Partial<DeliveryJob>[];
702
- quotes: Partial<Quote>[];
703
- purchaseOrders: Partial<PurchaseOrder>[];
704
- invoices: Partial<Invoice>[];
705
- expenses: Partial<Expense>[];
706
- identifierTokens: Partial<IdentifierToken>[];
707
- outgoingDeliveries: Partial<OutgoingDelivery>[];
708
- incomingDeliveries: Partial<OutgoingDelivery>[];
709
666
  }
710
667
 
711
- interface Expense extends Order {
712
- pphAmount: number;
713
- supplier: Partial<Supplier>;
714
- purchaseOrder: Partial<PurchaseOrder>;
715
- expenseLines: Partial<ExpenseLine>[];
716
- account: Partial<Account>;
717
- createdBy: Partial<User>;
718
- journalEntry: Partial<JournalEntry>;
719
- subsidiary: Partial<Subsidiary>;
720
- payments: Partial<Payment>[];
668
+ interface CustomEntityObject {
669
+ id: string;
670
+ identifier?: string;
671
+ customEntitySchema: Partial<CustomEntitySchema>;
672
+ customEntityFieldValues: Partial<CustomEntityFieldValue>[];
721
673
  createdAt: string | Date;
722
674
  updatedAt: string | Date;
675
+ createdBy: Partial<User>;
723
676
  }
724
677
 
725
- interface BankAccount {
678
+ interface CustomEntityFieldValue {
726
679
  id: string;
727
- name: string;
728
- accountNumber?: string;
729
- currentBalance: number;
730
- account: Partial<Account>;
731
- bankTransactions: Partial<BankTransaction>[];
680
+ customEntityObject: Partial<CustomEntityObject>;
681
+ customEntityField: Partial<CustomEntityField>;
682
+ valueText?: string;
683
+ valueNumber?: number;
684
+ valueCurrency?: number;
685
+ valueBoolean?: boolean;
686
+ valueDate?: string | Date;
687
+ valueJson?: any;
688
+ valueFile?: string;
689
+ valueFileArray: string[];
690
+ valueLatitude?: number;
691
+ valueLongitude?: number;
692
+ valueSelect?: string;
693
+ valueReferenceId?: string;
694
+ valueReferenceIds: string[];
695
+ valueCustomReferenceId?: string;
696
+ valueCustomReferenceIds: string[];
732
697
  }
733
698
 
734
- interface BankTransaction {
699
+ interface CustomEntityFieldPermission {
735
700
  id: string;
736
- bankAccount: Partial<BankAccount>;
737
- date?: string;
738
- amount: number;
739
- memo: string;
740
- customFields: any;
741
- payments: Partial<Payment>[];
742
- createdAt: string | Date;
701
+ customEntityField: Partial<CustomEntityField>;
702
+ userPersona: Partial<UserPersona>;
703
+ read: boolean;
704
+ update: boolean;
743
705
  }
744
706
 
745
- type PaymentMethodEnum = 'CASH' | 'DEBIT_CARD' | 'CREDIT_CARD' | 'QRIS';
746
- type PaymentType = 'IN' | 'OUT';
747
- interface Payment {
707
+ type CustomEntityFieldType = 'TEXT' | 'NUMBER' | 'CURRENCY' | 'BOOLEAN' | 'FILE' | 'FILE_ARRAY' | 'DATE' | 'JSON' | 'LOCATION' | 'SELECT' | 'REFERENCE' | 'REFERENCE_ARRAY' | 'CUSTOM_ENTITY_REFERENCE' | 'CUSTOM_ENTITY_REFERENCE_ARRAY';
708
+ interface CustomEntityField {
748
709
  id: string;
749
- type: PaymentType;
750
- paymentMethod?: PaymentMethodEnum;
751
- incomingPaymentMethod: Partial<IncomingPaymentMethod>;
752
- date?: string;
753
- amount: number;
754
- memo: string;
755
- invoice: Partial<Invoice>;
756
- expense: Partial<Expense>;
757
- bill: Partial<Bill>;
758
- currency: Currency;
759
- bankTransaction: Partial<BankTransaction>;
760
- customFields: any;
761
- journalEntry: Partial<JournalEntry>;
710
+ key: string;
711
+ order: number;
712
+ type: CustomEntityFieldType;
713
+ label: string;
714
+ description: string;
715
+ isReadOnly: boolean;
716
+ isHidden: boolean;
717
+ isRequired: boolean;
718
+ isFilterable: boolean;
719
+ isShownOnMainTable: boolean;
720
+ entityType?: EntityType;
721
+ customEntitySchemaReference: Partial<CustomEntitySchema>;
722
+ jsonSchema?: any;
723
+ options: string[];
724
+ customEntitySchema: Partial<CustomEntitySchema>;
725
+ customEntityFieldValues: Partial<CustomEntityFieldValue>[];
726
+ customEntityFieldPermissions: Partial<CustomEntityFieldPermission>[];
727
+ }
728
+
729
+ type AutomationScriptTriggerName = 'QUOTE' | 'PURCHASE_ORDER' | 'SALES_ORDER' | 'PURCHASE_ORDER_LINE' | 'SALES_ORDER_LINE' | 'DELIVERY_JOB' | 'INVOICE' | 'PRODUCT' | 'CUSTOM_OBJECT' | 'DAILY' | 'HOURLY' | 'MINUTE' | 'BUSINESS_INTELLIGENCE_REPORT';
730
+ interface AutomationScriptTriggerEntity {
731
+ id: string;
732
+ name: AutomationScriptTriggerName;
733
+ automationScript: Partial<AutomationScript>;
734
+ }
735
+
736
+ type AutomationJobStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
737
+ interface AutomationJob {
738
+ id: string;
739
+ stdout: string;
740
+ stderr: string;
741
+ status: AutomationJobStatus;
742
+ input: any;
743
+ output: any;
744
+ errorMessage?: string;
745
+ createdAt: string | Date;
746
+ completedAt?: string | Date;
762
747
  createdBy: Partial<User>;
748
+ automationScript: Partial<AutomationScript>;
763
749
  }
764
750
 
765
- type PaymentGatewayType = 'QRIS';
766
- interface IncomingPaymentMethod {
751
+ type EntityEvent = 'CREATE' | 'BEFORE_UPDATE' | 'AFTER_UPDATE' | 'DELETE';
752
+ type AutomationScriptTrigger = 'QUOTE' | 'PURCHASE_ORDER' | 'SALES_ORDER' | 'PURCHASE_ORDER_LINE' | 'SALES_ORDER_LINE' | 'DELIVERY_JOB' | 'INVOICE' | 'PRODUCT' | 'INCOMING_DELIVERY' | 'INCOMING_DELIVERY_LINE' | 'CUSTOM_OBJECT' | 'DAILY' | 'HOURLY' | 'MINUTE' | 'BUSINESS_INTELLIGENCE_REPORT';
753
+ interface AutomationScript {
767
754
  id: string;
755
+ isSync: boolean;
756
+ isTimeoutDisabled: boolean;
768
757
  name: string;
769
- payments: Partial<Payment>[];
770
- paymentGatewayType?: PaymentGatewayType;
771
- account: Partial<Account>;
758
+ script: string;
759
+ triggers: AutomationScriptTrigger[];
760
+ automationScriptTriggers: Partial<AutomationScriptTriggerEntity>[];
761
+ customSchemaNames: string[];
762
+ createdBy: Partial<User>;
763
+ automationJobs: Partial<AutomationJob>[];
764
+ userActions: Partial<UserAction>[];
765
+ customReports: Partial<CustomReport>[];
772
766
  }
773
767
 
774
- type AccountType = 'DIVIDEND' | 'EXPENSE' | 'ASSET' | 'LIABILITY' | 'EQUITY' | 'REVENUE';
775
- type AccountDefaultEnum = 'PRODUCT_INVENTORY' | 'PRODUCT_EXPENSE' | 'PRODUCT_INCOME' | 'REVENUE' | 'EXPENSE' | 'ACCOUNTS_RECEIVABLE' | 'ACCOUNTS_PAYABLE' | 'EXCHANGE_GAIN_OR_LOSS' | 'VAT_INPUT' | 'VAT_OUTPUT';
776
- type AccountSubtype = 'CASH_AND_BANK' | 'CURRENT_ASSETS' | 'NON_CURRENT_ASSETS' | 'CURRENT_LIABILITIES' | 'NON_CURRENT_LIABILITIES' | 'OTHER_INCOME' | 'COST_OF_REVENUE' | 'DEPRECIATION' | 'OTHER_EXPENSES';
777
- interface Account {
768
+ interface CustomReport {
769
+ id: string;
770
+ title: string;
771
+ description: string;
772
+ config: any;
773
+ filters: any;
774
+ automationScript: Partial<AutomationScript>;
775
+ form: Partial<Form>;
776
+ }
777
+
778
+ type FormLocation = 'CUSTOM_ENTITY' | 'CHECKOUT';
779
+ interface Form {
780
+ id: string;
781
+ name: string;
782
+ template: any;
783
+ customEntitySchema: Partial<CustomEntitySchema>;
784
+ userActions: Partial<UserAction>[];
785
+ customReports: Partial<CustomReport>[];
786
+ }
787
+
788
+ interface CustomEntitySchemaPermission {
789
+ id: string;
790
+ userPersona: Partial<UserPersona>;
791
+ create: boolean;
792
+ read: boolean;
793
+ update: boolean;
794
+ delete: boolean;
795
+ customEntitySchema: Partial<CustomEntitySchema>;
796
+ }
797
+
798
+ type UserPersonaCustomSchemaPermissionType = 'CREATE' | 'READ' | 'UPDATE' | 'DELETE';
799
+ interface UserPersonaCustomSchemaPermission {
778
800
  id: string;
801
+ userPersona: Partial<UserPersona>;
802
+ customEntitySchema: Partial<CustomEntitySchema>;
803
+ type: UserPersonaCustomSchemaPermissionType;
804
+ }
805
+
806
+ type Module = 'SALES' | 'ACCOUNTING' | 'PURCHASING' | 'INVENTORY' | 'FLEET' | 'AUTOMATION';
807
+ type CustomEntitySchemaType = 'LEGACY' | 'DOCUMENT';
808
+ interface CustomEntitySchema {
809
+ id: string;
810
+ name: string;
811
+ type: CustomEntitySchemaType;
812
+ label: string;
813
+ module?: Module;
814
+ isFilterableByCreatedAt: boolean;
815
+ customEntityFields: Partial<CustomEntityField>[];
816
+ customEntityObjects: Partial<CustomEntityObject>[];
817
+ forms: Partial<Form>[];
818
+ userActions: Partial<UserAction>[];
819
+ referencingCustomEntityFields: Partial<CustomEntityField>[];
820
+ customEntitySchemaPermissions: Partial<CustomEntitySchemaPermission>[];
821
+ userPersonaCustomSchemaPermissions: Partial<UserPersonaCustomSchemaPermission>[];
822
+ }
823
+
824
+ type WebComponentSlotName = 'LEASE_EDIT_MODAL_FOOTER' | 'LEASE_EDIT_MODAL_HEADER';
825
+ interface WebComponentSlot {
826
+ id: string;
827
+ webComponent: Partial<WebComponent>;
828
+ name: WebComponentSlotName;
829
+ createdAt: string | Date;
830
+ }
831
+
832
+ interface WebComponent {
833
+ id: string;
834
+ name: string;
835
+ label?: string;
779
836
  code: string;
837
+ slots: Partial<WebComponentSlot>[];
838
+ userActions: Partial<UserAction>[];
839
+ }
840
+
841
+ type UserActionType = 'SALES_ORDER' | 'QUICK_ACTION' | 'INVOICE' | 'CUSTOM_OBJECT';
842
+ interface UserAction {
843
+ id: string;
844
+ type: UserActionType;
845
+ customEntitySchema: Partial<CustomEntitySchema>;
780
846
  name: string;
781
- type: AccountType;
782
- subtype?: AccountSubtype;
783
- default?: AccountDefaultEnum;
784
- inventoryProducts: Partial<Product>[];
785
- incomeProducts: Partial<Product>[];
786
- expenseProducts: Partial<Product>[];
787
- assetFixedAssets: Partial<FixedAsset>[];
788
- depreciationFixedAssets: Partial<FixedAsset>[];
789
- expenseFixedAssets: Partial<FixedAsset>[];
790
- journalEntryLines: Partial<JournalEntryLine>[];
791
- incomingPaymentMethods: Partial<IncomingPaymentMethod>[];
792
- expenses: Partial<Expense>[];
793
- expenseLines: Partial<ExpenseLine>[];
794
- bankAccounts: Partial<BankAccount>[];
847
+ form: Partial<Form>;
848
+ automationScript: Partial<AutomationScript>;
849
+ webComponent: Partial<WebComponent>;
850
+ userPersona: Partial<UserPersona>;
795
851
  }
796
852
 
797
- interface JournalEntryLine {
853
+ type UserPersonaEntityPermissionType = 'CREATE' | 'READ' | 'UPDATE' | 'DELETE';
854
+ interface UserPersonaEntityPermission {
798
855
  id: string;
799
- account: Partial<Account>;
800
- description: string;
801
- debit: number;
802
- credit: number;
803
- journalEntry: Partial<JournalEntry>;
856
+ userPersona: Partial<UserPersona>;
857
+ entityType: EntityType;
858
+ entityId?: string;
859
+ type: UserPersonaEntityPermissionType;
804
860
  }
805
861
 
806
- interface JournalEntry {
862
+ interface EntityObjectPermission {
807
863
  id: string;
808
- date?: string;
809
- journalEntryLines: Partial<JournalEntryLine>[];
810
- purchaseOrder: Partial<PurchaseOrder>;
811
- bill: Partial<Bill>;
864
+ entityType: EntityType;
865
+ entityId: string;
866
+ read: boolean;
867
+ update: boolean;
868
+ delete: boolean;
869
+ userPersona: Partial<UserPersona>;
870
+ }
871
+
872
+ interface UserPersonaProductPermission {
873
+ id: string;
874
+ userPersona: Partial<UserPersona>;
875
+ product: Partial<Product>;
876
+ }
877
+
878
+ interface UserPersona {
879
+ id: string;
880
+ name: string;
881
+ users: Partial<User>[];
882
+ userActions: Partial<UserAction>[];
883
+ userPersonaEntityPermissions: Partial<UserPersonaEntityPermission>[];
884
+ customEntitySchemaPermissions: Partial<CustomEntitySchemaPermission>[];
885
+ customEntityFieldPermissions: Partial<CustomEntityFieldPermission>[];
886
+ entityObjectPermissions: Partial<EntityObjectPermission>[];
887
+ userPersonaCustomSchemaPermissions: Partial<UserPersonaCustomSchemaPermission>[];
888
+ userPersonaProductPermissions: Partial<UserPersonaProductPermission>[];
889
+ userPersonaWarehousePermissions: Partial<UserPersonaWarehousePermission>[];
890
+ }
891
+
892
+ interface UserPersonaWarehousePermission {
893
+ id: string;
894
+ userPersona: Partial<UserPersona>;
895
+ warehouse: Partial<Warehouse>;
896
+ }
897
+
898
+ interface Warehouse {
899
+ id: string;
900
+ name: string;
901
+ address: string;
902
+ isDefault: boolean;
903
+ warehouseProducts: Partial<WarehouseProduct>[];
904
+ productItems: Partial<ProductItem>[];
905
+ productLocations: Partial<ProductLocation>[];
906
+ workstations: Partial<Workstation>[];
907
+ incomingShipments: Partial<IncomingShipment>[];
908
+ outgoingShipments: Partial<OutgoingShipment>[];
909
+ incomingDeliveries: Partial<IncomingDelivery>[];
910
+ outgoingDeliveries: Partial<OutgoingDelivery>[];
911
+ internalSourceDeliveries: Partial<InternalDelivery>[];
912
+ internalDestinationDeliveries: Partial<InternalDelivery>[];
913
+ stockAdjustments: Partial<StockAdjustment>[];
914
+ productionOrders: Partial<ProductionOrder>[];
915
+ salesOrders: Partial<SalesOrder>[];
916
+ pointOfSales: Partial<PointOfSale>[];
917
+ userPersonaWarehousePermissions: Partial<UserPersonaWarehousePermission>[];
918
+ }
919
+
920
+ interface OutgoingDelivery extends Delivery {
921
+ outgoingDeliveryLines: Partial<OutgoingDeliveryLine>[];
922
+ sourceWarehouse: Partial<Warehouse>;
923
+ customer: Partial<Customer>;
812
924
  salesOrder: Partial<SalesOrder>;
813
- expense: Partial<Expense>;
814
- payments: Partial<Payment>[];
815
- invoice: Partial<Invoice>;
816
- fixedAsset: Partial<FixedAsset>;
925
+ rentalOrder: Partial<RentalOrder>;
926
+ subsidiary: Partial<Subsidiary>;
927
+ journalEntrySources: Partial<JournalEntrySource>[];
817
928
  createdBy: Partial<User>;
818
- memo: string;
819
- isAutomated: boolean;
820
- createdAt: string | Date;
821
- updatedAt: string | Date;
929
+ }
930
+
931
+ interface RentalOrder extends Order {
932
+ id: string;
933
+ rentalOrderLines: Partial<RentalOrderLine>[];
934
+ customer: Partial<Customer>;
935
+ invoices: Partial<Invoice>;
936
+ outgoingDeliveries: Partial<OutgoingDelivery>[];
937
+ incomingDeliveries: Partial<IncomingDelivery>[];
938
+ subsidiary: Partial<Subsidiary>;
939
+ }
940
+
941
+ interface Subsidiary {
942
+ id: string;
943
+ name: string;
944
+ address: string;
945
+ documentPrefix?: string;
946
+ salesOrders: Partial<SalesOrder>[];
947
+ rentalOrders: Partial<RentalOrder>[];
948
+ deliveryJobs: Partial<DeliveryJob>[];
949
+ quotes: Partial<Quote>[];
950
+ purchaseOrders: Partial<PurchaseOrder>[];
951
+ invoices: Partial<Invoice>[];
952
+ expenses: Partial<Expense>[];
953
+ identifierTokens: Partial<IdentifierToken>[];
954
+ outgoingDeliveries: Partial<OutgoingDelivery>[];
955
+ incomingDeliveries: Partial<OutgoingDelivery>[];
956
+ }
957
+
958
+ type IdentifierTokenType = 'SLASH' | 'DASH' | 'UNDERSCORE' | 'DATE' | 'YEAR' | 'YEAR_TWO_DIGITS' | 'MONTH' | 'MONTH_ROMAN' | 'DOCUMENT_NUMBER' | 'DOCUMENT_NUMBER_YEARLY' | 'DOCUMENT_NUMBER_MONTHLY' | 'COMPANY_PREFIX' | 'TEXT';
959
+ interface IdentifierToken {
960
+ id: string;
961
+ order: number;
962
+ type: IdentifierTokenType;
963
+ text?: string;
964
+ entityType?: EntityType;
965
+ numberPadding: number;
966
+ subsidiary: Partial<Subsidiary>;
967
+ identifierGroup: Partial<IdentifierGroup>;
968
+ }
969
+
970
+ interface IdentifierGroup {
971
+ id: string;
972
+ name: string;
973
+ nextNum: number;
974
+ nextNumMonthly: number;
975
+ nextNumYearly: number;
976
+ identifierTokens: Partial<IdentifierToken>[];
977
+ entityType?: EntityType;
978
+ pointOfSales: Partial<PointOfSale>[];
979
+ salesOrders: Partial<SalesOrder>[];
980
+ quotes: Partial<Quote>[];
981
+ invoices: Partial<Invoice>[];
982
+ purchaseOrders: Partial<PurchaseOrder>[];
983
+ bills: Partial<Bill>[];
822
984
  }
823
985
 
824
986
  interface BillLine extends OrderLine {
@@ -828,6 +990,7 @@ interface BillLine extends OrderLine {
828
990
  }
829
991
 
830
992
  interface Bill extends Order {
993
+ journalEntrySources: Partial<JournalEntrySource>[];
831
994
  id: string;
832
995
  supplier: Partial<Supplier>;
833
996
  downpayment: number;
@@ -839,22 +1002,31 @@ interface Bill extends Order {
839
1002
  payments: Partial<Payment>[];
840
1003
  }
841
1004
 
842
- interface IncomingDeliveryLine extends DeliveryLine {
843
- product: Partial<Product>;
844
- incomingDelivery: Partial<IncomingDelivery>;
845
- productItem: Partial<ProductItem>;
1005
+ interface Approval {
1006
+ id: string;
1007
+ createdAt: string | Date;
1008
+ updatedAt?: string | Date;
846
1009
  }
847
1010
 
848
- interface IncomingDelivery extends Delivery {
849
- incomingDeliveryLines: Partial<IncomingDeliveryLine>[];
850
- destinationWarehouse: Partial<Warehouse>;
1011
+ interface PurchaseOrderApproval extends Approval {
851
1012
  purchaseOrder: Partial<PurchaseOrder>;
852
- salesOrder: Partial<SalesOrder>;
1013
+ user: Partial<User>;
1014
+ }
1015
+
1016
+ interface PurchaseOrder extends Order {
1017
+ exchangeRate: number;
853
1018
  supplier: Partial<Supplier>;
854
- customer: Partial<Customer>;
855
- subsidiary: Partial<Subsidiary>;
856
- rentalOrder: Partial<RentalOrder>;
1019
+ purchaseOrderLines: Partial<PurchaseOrderLine>[];
857
1020
  createdBy: Partial<User>;
1021
+ expenses: Partial<Expense>[];
1022
+ bills: Partial<Bill>[];
1023
+ incomingShipments: Partial<IncomingShipment>[];
1024
+ incomingDeliveries: Partial<IncomingDelivery>[];
1025
+ purchaseOrderApprovals: Partial<PurchaseOrderApproval>;
1026
+ journalEntry: Partial<JournalEntry>;
1027
+ identifierGroup: Partial<IdentifierGroup>;
1028
+ subsidiary: Partial<Subsidiary>;
1029
+ dropshipSalesOrder: Partial<SalesOrder>;
858
1030
  }
859
1031
 
860
1032
  interface PricelistLine {
@@ -893,349 +1065,203 @@ interface Supplier extends Contact {
893
1065
  productSuppliers: Partial<ProductSupplier>[];
894
1066
  }
895
1067
 
896
- interface PurchaseOrderLine extends OrderLine {
897
- purchaseOrder: Partial<PurchaseOrder>;
1068
+ interface ExpenseLine extends OrderLine {
898
1069
  product: Partial<Product>;
1070
+ account: Partial<Account>;
1071
+ expense: Partial<Expense>;
899
1072
  }
900
1073
 
901
- interface Approval {
902
- id: string;
903
- createdAt: string | Date;
904
- updatedAt?: string | Date;
905
- }
906
-
907
- interface PurchaseOrderApproval extends Approval {
908
- purchaseOrder: Partial<PurchaseOrder>;
909
- user: Partial<User>;
910
- }
911
-
912
- interface PurchaseOrder extends Order {
913
- exchangeRate: number;
1074
+ interface Expense extends Order {
1075
+ journalEntrySources: Partial<JournalEntrySource>[];
1076
+ pphAmount: number;
914
1077
  supplier: Partial<Supplier>;
915
- purchaseOrderLines: Partial<PurchaseOrderLine>[];
1078
+ purchaseOrder: Partial<PurchaseOrder>;
1079
+ expenseLines: Partial<ExpenseLine>[];
1080
+ account: Partial<Account>;
916
1081
  createdBy: Partial<User>;
917
- expenses: Partial<Expense>[];
918
- bills: Partial<Bill>[];
919
- incomingShipments: Partial<IncomingShipment>[];
920
- incomingDeliveries: Partial<IncomingDelivery>[];
921
- purchaseOrderApprovals: Partial<PurchaseOrderApproval>;
922
1082
  journalEntry: Partial<JournalEntry>;
923
- identifierGroup: Partial<IdentifierGroup>;
924
1083
  subsidiary: Partial<Subsidiary>;
925
- dropshipSalesOrder: Partial<SalesOrder>;
926
- }
927
-
928
- interface IncomingShipment extends Shipment {
929
- id: string;
930
- destinationWarehouse: Partial<Warehouse>;
931
- product: Partial<Product>;
932
- purchaseOrder: Partial<PurchaseOrder>;
933
- }
934
-
935
- interface OutgoingShipment extends Shipment {
936
- id: string;
937
- sourceWarehouse: Partial<Warehouse>;
938
- product: Partial<Product>;
939
- salesOrder: Partial<SalesOrder>;
940
- }
941
-
942
- interface InternalDeliveryLine extends DeliveryLine {
943
- product: Partial<Product>;
944
- productItem: Partial<ProductItem>;
945
- internalDelivery: Partial<InternalDelivery>;
946
- }
947
-
948
- interface InternalDelivery extends Delivery {
949
- internalDeliveryLines: Partial<InternalDeliveryLine>[];
950
- sourceWarehouse: Partial<Warehouse>;
951
- destinationWarehouse: Partial<Warehouse>;
952
- createdBy: Partial<User>;
953
- }
954
-
955
- type StockAdjustmentType = 'IN' | 'OUT';
956
- interface StockAdjustment {
957
- id: string;
958
- date?: string;
959
- warehouse: Partial<Warehouse>;
960
- product: Partial<Product>;
961
- productItem: Partial<ProductItem>;
962
- type: StockAdjustmentType;
963
- memo: string;
964
- user: Partial<User>;
965
- quantity: number;
966
- createdAt: string | Date;
967
- createdBy: Partial<User>;
968
- }
969
-
970
- interface CustomEntityObject {
971
- id: string;
972
- customEntitySchema: Partial<CustomEntitySchema>;
973
- customEntityFieldValues: Partial<CustomEntityFieldValue>[];
1084
+ payments: Partial<Payment>[];
974
1085
  createdAt: string | Date;
975
1086
  updatedAt: string | Date;
976
- createdBy: Partial<User>;
977
- }
978
-
979
- interface CustomEntityFieldValue {
980
- id: string;
981
- customEntityObject: Partial<CustomEntityObject>;
982
- customEntityField: Partial<CustomEntityField>;
983
- valueText?: string;
984
- valueNumber?: number;
985
- valueCurrency?: number;
986
- valueBoolean?: boolean;
987
- valueDate?: string | Date;
988
- valueJson?: any;
989
- valueFile?: string;
990
- valueFileArray: string[];
991
- valueLatitude?: number;
992
- valueLongitude?: number;
993
- valueSelect?: string;
994
- valueReferenceId?: string;
995
- valueReferenceIds: string[];
996
- valueCustomReferenceId?: string;
997
- valueCustomReferenceIds: string[];
998
- }
999
-
1000
- interface CustomEntityFieldPermission {
1001
- id: string;
1002
- customEntityField: Partial<CustomEntityField>;
1003
- userPersona: Partial<UserPersona>;
1004
- read: boolean;
1005
- update: boolean;
1006
- }
1007
-
1008
- type CustomEntityFieldType = 'TEXT' | 'NUMBER' | 'CURRENCY' | 'BOOLEAN' | 'FILE' | 'FILE_ARRAY' | 'DATE' | 'JSON' | 'LOCATION' | 'SELECT' | 'REFERENCE' | 'REFERENCE_ARRAY' | 'CUSTOM_ENTITY_REFERENCE' | 'CUSTOM_ENTITY_REFERENCE_ARRAY';
1009
- interface CustomEntityField {
1010
- id: string;
1011
- key: string;
1012
- order: number;
1013
- type: CustomEntityFieldType;
1014
- label: string;
1015
- description: string;
1016
- isReadOnly: boolean;
1017
- isHidden: boolean;
1018
- isRequired: boolean;
1019
- isFilterable: boolean;
1020
- isShownOnMainTable: boolean;
1021
- entityType?: EntityType;
1022
- customEntitySchemaReference: Partial<CustomEntitySchema>;
1023
- jsonSchema?: any;
1024
- options: string[];
1025
- customEntitySchema: Partial<CustomEntitySchema>;
1026
- customEntityFieldValues: Partial<CustomEntityFieldValue>[];
1027
- customEntityFieldPermissions: Partial<CustomEntityFieldPermission>[];
1028
- }
1029
-
1030
- type AutomationScriptTriggerName = 'QUOTE' | 'PURCHASE_ORDER' | 'SALES_ORDER' | 'PURCHASE_ORDER_LINE' | 'SALES_ORDER_LINE' | 'DELIVERY_JOB' | 'INVOICE' | 'PRODUCT' | 'CUSTOM_OBJECT' | 'DAILY' | 'HOURLY' | 'MINUTE' | 'BUSINESS_INTELLIGENCE_REPORT';
1031
- interface AutomationScriptTriggerEntity {
1032
- id: string;
1033
- name: AutomationScriptTriggerName;
1034
- automationScript: Partial<AutomationScript>;
1035
- }
1036
-
1037
- type AutomationJobStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
1038
- interface AutomationJob {
1039
- id: string;
1040
- stdout: string;
1041
- stderr: string;
1042
- status: AutomationJobStatus;
1043
- input: any;
1044
- output: any;
1045
- errorMessage?: string;
1046
- createdAt: string | Date;
1047
- completedAt?: string | Date;
1048
- createdBy: Partial<User>;
1049
- automationScript: Partial<AutomationScript>;
1050
- }
1051
-
1052
- type EntityEvent = 'CREATE' | 'BEFORE_UPDATE' | 'AFTER_UPDATE' | 'DELETE';
1053
- type AutomationScriptTrigger = 'QUOTE' | 'PURCHASE_ORDER' | 'SALES_ORDER' | 'PURCHASE_ORDER_LINE' | 'SALES_ORDER_LINE' | 'DELIVERY_JOB' | 'INVOICE' | 'PRODUCT' | 'INCOMING_DELIVERY' | 'INCOMING_DELIVERY_LINE' | 'CUSTOM_OBJECT' | 'DAILY' | 'HOURLY' | 'MINUTE' | 'BUSINESS_INTELLIGENCE_REPORT';
1054
- interface AutomationScript {
1055
- id: string;
1056
- isSync: boolean;
1057
- isTimeoutDisabled: boolean;
1058
- name: string;
1059
- script: string;
1060
- triggers: AutomationScriptTrigger[];
1061
- automationScriptTriggers: Partial<AutomationScriptTriggerEntity>[];
1062
- customSchemaNames: string[];
1063
- createdBy: Partial<User>;
1064
- automationJobs: Partial<AutomationJob>[];
1065
- userActions: Partial<UserAction>[];
1066
- customReports: Partial<CustomReport>[];
1067
- }
1068
-
1069
- interface CustomReport {
1070
- id: string;
1071
- title: string;
1072
- description: string;
1073
- config: any;
1074
- filters: any;
1075
- automationScript: Partial<AutomationScript>;
1076
- form: Partial<Form>;
1077
1087
  }
1078
1088
 
1079
- type FormLocation = 'CUSTOM_ENTITY' | 'CHECKOUT';
1080
- interface Form {
1089
+ interface BankAccount {
1081
1090
  id: string;
1082
1091
  name: string;
1083
- template: any;
1084
- customEntitySchema: Partial<CustomEntitySchema>;
1085
- userActions: Partial<UserAction>[];
1086
- customReports: Partial<CustomReport>[];
1092
+ accountNumber?: string;
1093
+ currentBalance: number;
1094
+ account: Partial<Account>;
1095
+ bankTransactions: Partial<BankTransaction>[];
1087
1096
  }
1088
1097
 
1089
- interface CustomEntitySchemaPermission {
1090
- id: string;
1091
- userPersona: Partial<UserPersona>;
1092
- create: boolean;
1093
- read: boolean;
1094
- update: boolean;
1095
- delete: boolean;
1096
- customEntitySchema: Partial<CustomEntitySchema>;
1098
+ interface BankTransaction {
1099
+ id: string;
1100
+ bankAccount: Partial<BankAccount>;
1101
+ date?: string;
1102
+ amount: number;
1103
+ memo: string;
1104
+ customFields: any;
1105
+ payments: Partial<Payment>[];
1106
+ createdAt: string | Date;
1097
1107
  }
1098
1108
 
1099
- type UserPersonaCustomSchemaPermissionType = 'CREATE' | 'READ' | 'UPDATE' | 'DELETE';
1100
- interface UserPersonaCustomSchemaPermission {
1109
+ type PaymentMethodEnum = 'CASH' | 'DEBIT_CARD' | 'CREDIT_CARD' | 'QRIS';
1110
+ type PaymentType = 'IN' | 'OUT';
1111
+ interface Payment {
1101
1112
  id: string;
1102
- userPersona: Partial<UserPersona>;
1103
- customEntitySchema: Partial<CustomEntitySchema>;
1104
- type: UserPersonaCustomSchemaPermissionType;
1113
+ type: PaymentType;
1114
+ paymentMethod?: PaymentMethodEnum;
1115
+ incomingPaymentMethod: Partial<IncomingPaymentMethod>;
1116
+ date?: string;
1117
+ amount: number;
1118
+ memo: string;
1119
+ invoice: Partial<Invoice>;
1120
+ expense: Partial<Expense>;
1121
+ bill: Partial<Bill>;
1122
+ currency: Currency;
1123
+ bankTransaction: Partial<BankTransaction>;
1124
+ customFields: any;
1125
+ journalEntry: Partial<JournalEntry>;
1126
+ createdBy: Partial<User>;
1105
1127
  }
1106
1128
 
1107
- type Module = 'SALES' | 'ACCOUNTING' | 'PURCHASING' | 'INVENTORY' | 'FLEET' | 'AUTOMATION';
1108
- type CustomEntitySchemaType = 'LEGACY' | 'DOCUMENT';
1109
- interface CustomEntitySchema {
1129
+ type PaymentGatewayType = 'QRIS';
1130
+ interface IncomingPaymentMethod {
1110
1131
  id: string;
1111
1132
  name: string;
1112
- type: CustomEntitySchemaType;
1113
- label: string;
1114
- module?: Module;
1115
- isFilterableByCreatedAt: boolean;
1116
- customEntityFields: Partial<CustomEntityField>[];
1117
- customEntityObjects: Partial<CustomEntityObject>[];
1118
- forms: Partial<Form>[];
1119
- userActions: Partial<UserAction>[];
1120
- referencingCustomEntityFields: Partial<CustomEntityField>[];
1121
- customEntitySchemaPermissions: Partial<CustomEntitySchemaPermission>[];
1122
- userPersonaCustomSchemaPermissions: Partial<UserPersonaCustomSchemaPermission>[];
1133
+ payments: Partial<Payment>[];
1134
+ paymentGatewayType?: PaymentGatewayType;
1135
+ account: Partial<Account>;
1123
1136
  }
1124
1137
 
1125
- type WebComponentSlotName = 'LEASE_EDIT_MODAL_FOOTER' | 'LEASE_EDIT_MODAL_HEADER';
1126
- interface WebComponentSlot {
1138
+ type DefaultAccountName = 'ACCOUNTS_PAYABLE' | 'ACCOUNTS_RECEIVABLE' | 'VAT_INPUT' | 'VAT_OUTPUT' | 'SALES_DISCOUNT' | 'SALES_REVENUE' | 'SALES_RETURN' | 'COST_OF_GOODS_SOLD' | 'INVENTORY' | 'INVENTORY_ADJUSTMENT';
1139
+ interface DefaultAccount {
1127
1140
  id: string;
1128
- webComponent: Partial<WebComponent>;
1129
- name: WebComponentSlotName;
1130
- createdAt: string | Date;
1141
+ name: DefaultAccountName;
1142
+ account: Partial<Account>;
1131
1143
  }
1132
1144
 
1133
- interface WebComponent {
1145
+ type AccountType = 'DIVIDEND' | 'EXPENSE' | 'ASSET' | 'LIABILITY' | 'EQUITY' | 'REVENUE';
1146
+ type AccountDefaultEnum = 'PRODUCT_INVENTORY' | 'PRODUCT_EXPENSE' | 'PRODUCT_INCOME' | 'REVENUE' | 'EXPENSE' | 'ACCOUNTS_RECEIVABLE' | 'ACCOUNTS_PAYABLE' | 'EXCHANGE_GAIN_OR_LOSS' | 'VAT_INPUT' | 'VAT_OUTPUT';
1147
+ type AccountSubtype = 'CASH_AND_BANK' | 'CURRENT_ASSETS' | 'NON_CURRENT_ASSETS' | 'CURRENT_LIABILITIES' | 'NON_CURRENT_LIABILITIES' | 'OTHER_INCOME' | 'COST_OF_REVENUE' | 'DEPRECIATION' | 'OTHER_EXPENSES';
1148
+ interface Account {
1134
1149
  id: string;
1135
- name: string;
1136
- label?: string;
1137
1150
  code: string;
1138
- slots: Partial<WebComponentSlot>[];
1139
- userActions: Partial<UserAction>[];
1151
+ name: string;
1152
+ type: AccountType;
1153
+ subtype?: AccountSubtype;
1154
+ default?: AccountDefaultEnum;
1155
+ inventoryProducts: Partial<Product>[];
1156
+ incomeProducts: Partial<Product>[];
1157
+ expenseProducts: Partial<Product>[];
1158
+ assetFixedAssets: Partial<FixedAsset>[];
1159
+ depreciationFixedAssets: Partial<FixedAsset>[];
1160
+ expenseFixedAssets: Partial<FixedAsset>[];
1161
+ journalEntryLines: Partial<JournalEntryLine>[];
1162
+ incomingPaymentMethods: Partial<IncomingPaymentMethod>[];
1163
+ expenses: Partial<Expense>[];
1164
+ expenseLines: Partial<ExpenseLine>[];
1165
+ bankAccounts: Partial<BankAccount>[];
1166
+ defaultAccounts: Partial<DefaultAccount>[];
1140
1167
  }
1141
1168
 
1142
- type UserActionType = 'SALES_ORDER' | 'QUICK_ACTION' | 'INVOICE' | 'CUSTOM_OBJECT';
1143
- interface UserAction {
1169
+ interface JournalEntryLine {
1144
1170
  id: string;
1145
- type: UserActionType;
1146
- customEntitySchema: Partial<CustomEntitySchema>;
1147
- name: string;
1148
- form: Partial<Form>;
1149
- automationScript: Partial<AutomationScript>;
1150
- webComponent: Partial<WebComponent>;
1151
- userPersona: Partial<UserPersona>;
1171
+ account: Partial<Account>;
1172
+ description: string;
1173
+ debit: number;
1174
+ credit: number;
1175
+ journalEntry: Partial<JournalEntry>;
1152
1176
  }
1153
1177
 
1154
- type UserPersonaEntityPermissionType = 'CREATE' | 'READ' | 'UPDATE' | 'DELETE';
1155
- interface UserPersonaEntityPermission {
1178
+ interface JournalEntry {
1156
1179
  id: string;
1157
- userPersona: Partial<UserPersona>;
1158
- entityType: EntityType;
1159
- entityId?: string;
1160
- type: UserPersonaEntityPermissionType;
1180
+ date?: string;
1181
+ journalEntryLines: Partial<JournalEntryLine>[];
1182
+ purchaseOrder: Partial<PurchaseOrder>;
1183
+ bill: Partial<Bill>;
1184
+ salesOrder: Partial<SalesOrder>;
1185
+ expense: Partial<Expense>;
1186
+ payment: Partial<Payment>;
1187
+ invoice: Partial<Invoice>;
1188
+ fixedAsset: Partial<FixedAsset>;
1189
+ createdBy: Partial<User>;
1190
+ memo: string;
1191
+ isAutomated: boolean;
1192
+ journalEntrySources: Partial<JournalEntrySource>[];
1193
+ createdAt: string | Date;
1194
+ updatedAt: string | Date;
1161
1195
  }
1162
1196
 
1163
- interface EntityObjectPermission {
1197
+ interface JournalEntrySource {
1164
1198
  id: string;
1165
- entityType: EntityType;
1166
- entityId: string;
1167
- read: boolean;
1168
- update: boolean;
1169
- delete: boolean;
1170
- userPersona: Partial<UserPersona>;
1199
+ journalEntry: Partial<JournalEntry>;
1200
+ outgoingDelivery: Partial<OutgoingDelivery>;
1201
+ incomingDelivery: Partial<IncomingDelivery>;
1202
+ invoice: Partial<Invoice>;
1203
+ bill: Partial<Bill>;
1204
+ expense: Partial<Expense>;
1205
+ fixedAsset: Partial<FixedAsset>;
1171
1206
  }
1172
1207
 
1173
- interface UserPersonaProductPermission {
1174
- id: string;
1175
- userPersona: Partial<UserPersona>;
1208
+ interface InvoiceLine extends OrderLine {
1209
+ invoice: Partial<Invoice>;
1176
1210
  product: Partial<Product>;
1211
+ productItem: Partial<ProductItem>;
1212
+ startDate?: string | Date;
1213
+ endDate?: string | Date;
1214
+ dailyUnitPrice?: number;
1177
1215
  }
1178
1216
 
1179
- interface UserPersona {
1217
+ interface PropertyGroup {
1180
1218
  id: string;
1181
1219
  name: string;
1182
- users: Partial<User>[];
1183
- userActions: Partial<UserAction>[];
1184
- userPersonaEntityPermissions: Partial<UserPersonaEntityPermission>[];
1185
- customEntitySchemaPermissions: Partial<CustomEntitySchemaPermission>[];
1186
- customEntityFieldPermissions: Partial<CustomEntityFieldPermission>[];
1187
- entityObjectPermissions: Partial<EntityObjectPermission>[];
1188
- userPersonaCustomSchemaPermissions: Partial<UserPersonaCustomSchemaPermission>[];
1189
- userPersonaProductPermissions: Partial<UserPersonaProductPermission>[];
1190
- userPersonaWarehousePermissions: Partial<UserPersonaWarehousePermission>[];
1220
+ mapImage?: string;
1221
+ properties: Partial<Property>[];
1191
1222
  }
1192
1223
 
1193
- interface UserPersonaWarehousePermission {
1224
+ interface MaintenanceOrderLine extends OrderLine {
1194
1225
  id: string;
1195
- userPersona: Partial<UserPersona>;
1196
- warehouse: Partial<Warehouse>;
1226
+ product: Partial<Product>;
1227
+ maintenanceOrder: Partial<MaintenanceOrder>;
1197
1228
  }
1198
1229
 
1199
- interface Warehouse {
1230
+ interface MaintenanceOrder extends Order {
1200
1231
  id: string;
1201
- name: string;
1202
- address: string;
1203
- isDefault: boolean;
1204
- warehouseProducts: Partial<WarehouseProduct>[];
1205
- productItems: Partial<ProductItem>[];
1206
- productLocations: Partial<ProductLocation>[];
1207
- workstations: Partial<Workstation>[];
1208
- incomingShipments: Partial<IncomingShipment>[];
1209
- outgoingShipments: Partial<OutgoingShipment>[];
1210
- incomingDeliveries: Partial<IncomingDelivery>[];
1211
- outgoingDeliveries: Partial<OutgoingDelivery>[];
1212
- internalSourceDeliveries: Partial<InternalDelivery>[];
1213
- internalDestinationDeliveries: Partial<InternalDelivery>[];
1214
- stockAdjustments: Partial<StockAdjustment>[];
1215
- productionOrders: Partial<ProductionOrder>[];
1216
- salesOrders: Partial<SalesOrder>[];
1217
- pointOfSales: Partial<PointOfSale>[];
1218
- userPersonaWarehousePermissions: Partial<UserPersonaWarehousePermission>[];
1232
+ maintenanceOrderLines: Partial<MaintenanceOrderLine>[];
1233
+ vehicle: Partial<Vehicle>;
1234
+ property: Partial<Property>;
1235
+ customFields: any;
1219
1236
  }
1220
1237
 
1221
- interface OutgoingDelivery extends Delivery {
1222
- outgoingDeliveryLines: Partial<OutgoingDeliveryLine>[];
1223
- sourceWarehouse: Partial<Warehouse>;
1224
- customer: Partial<Customer>;
1225
- salesOrder: Partial<SalesOrder>;
1226
- rentalOrder: Partial<RentalOrder>;
1227
- subsidiary: Partial<Subsidiary>;
1228
- createdBy: Partial<User>;
1238
+ interface Property {
1239
+ id: string;
1240
+ name: string;
1241
+ files: string[];
1242
+ mapPolygon: number[][];
1243
+ propertyGroup: Partial<PropertyGroup>;
1244
+ leases: Partial<Lease>[];
1245
+ maintenanceOrders: Partial<MaintenanceOrder>[];
1229
1246
  }
1230
1247
 
1231
- interface RentalOrder extends Order {
1248
+ type LeasePaymentStatus = 'NOT_INVOICED' | 'PARTIALLY_INVOICED' | 'FULLY_INVOICED' | 'PARTIALLY_PAID' | 'FULLY_PAID' | 'OVERDUE';
1249
+ interface Lease {
1232
1250
  id: string;
1233
- rentalOrderLines: Partial<RentalOrderLine>[];
1251
+ properties: Partial<Property>[];
1234
1252
  customer: Partial<Customer>;
1235
- invoices: Partial<Invoice>;
1236
- outgoingDeliveries: Partial<OutgoingDelivery>[];
1237
- incomingDeliveries: Partial<IncomingDelivery>[];
1238
- subsidiary: Partial<Subsidiary>;
1253
+ startDate?: string;
1254
+ endDate?: string;
1255
+ files: string[];
1256
+ totalAmount: number;
1257
+ paymentStatus?: LeasePaymentStatus;
1258
+ customFields: any;
1259
+ isProfitSharing: boolean;
1260
+ profitSharingPercentage: number;
1261
+ invoices: Partial<Invoice>[];
1262
+ createdAt: string | Date;
1263
+ createdBy: Partial<User>;
1264
+ updatedAt: string | Date;
1239
1265
  }
1240
1266
 
1241
1267
  interface InvoiceApproval extends Approval {
@@ -1248,6 +1274,7 @@ interface InvoiceApproval extends Approval {
1248
1274
 
1249
1275
  type PaymentStatus = 'NOT_PAID' | 'PARTIALLY_PAID' | 'FULLY_PAID';
1250
1276
  interface Invoice extends Order {
1277
+ journalEntrySources: Partial<JournalEntrySource>[];
1251
1278
  paymentStatus?: PaymentStatus;
1252
1279
  pphAmount: number;
1253
1280
  downpayment: number;
@@ -1269,6 +1296,9 @@ interface Invoice extends Order {
1269
1296
  interface SalesOrderApproval extends Approval {
1270
1297
  salesOrder: Partial<SalesOrder>;
1271
1298
  user: Partial<User>;
1299
+ signature?: string;
1300
+ signedAt?: string | Date;
1301
+ signatureMethod?: 'STORED' | 'CAPTURED';
1272
1302
  }
1273
1303
 
1274
1304
  interface StoreProductVariant {
@@ -1329,16 +1359,28 @@ interface Store {
1329
1359
  carts: Partial<Cart>[];
1330
1360
  }
1331
1361
 
1362
+ type StoreProductSyncMappingType = 'MEDUSA_PRODUCT';
1363
+ interface StoreProductSyncMapping {
1364
+ id: string;
1365
+ storeProduct: Partial<StoreProduct>;
1366
+ type: StoreProductSyncMappingType;
1367
+ externalId: string;
1368
+ createdAt: string | Date;
1369
+ updatedAt: string | Date;
1370
+ }
1371
+
1332
1372
  interface StoreProduct {
1333
1373
  id: string;
1334
1374
  name: string;
1335
1375
  description: string;
1376
+ isActive: boolean;
1336
1377
  product: Partial<Product>;
1337
1378
  storeProductAttributes: Partial<StoreProductAttribute>[];
1338
1379
  storeProductVariants: Partial<StoreProductVariant>[];
1339
1380
  images: string[];
1340
1381
  store: Partial<Store>;
1341
1382
  cartLines: Partial<CartLine>[];
1383
+ storeProductSyncMappings: Partial<StoreProductSyncMapping>[];
1342
1384
  storeProductGroup: Partial<StoreProductGroup>;
1343
1385
  }
1344
1386
 
@@ -1440,6 +1482,19 @@ interface QuoteLine extends OrderLine {
1440
1482
  product: Partial<Product>;
1441
1483
  }
1442
1484
 
1485
+ interface SyncMapping {
1486
+ id: string;
1487
+ externalId: string;
1488
+ createdAt: string | Date;
1489
+ updatedAt: string | Date;
1490
+ }
1491
+
1492
+ type ProductSyncMappingType = 'MEDUSA_DEFAULT_PRICELIST_PRICE' | 'MEDUSA_VARIANT';
1493
+ interface ProductSyncMapping extends SyncMapping {
1494
+ type: ProductSyncMappingType;
1495
+ product: Partial<Product>;
1496
+ }
1497
+
1443
1498
  interface Product {
1444
1499
  id: string;
1445
1500
  productCode: string;
@@ -1503,6 +1558,7 @@ interface Product {
1503
1558
  customFields: any;
1504
1559
  pricelistLines: Partial<PricelistLine>[];
1505
1560
  returnSalesOrderLines: Partial<ReturnSalesOrderLine>[];
1561
+ productSyncMappings: Partial<ProductSyncMapping>[];
1506
1562
  }
1507
1563
 
1508
1564
  interface ProductItem {
@@ -1874,7 +1930,21 @@ interface Deal {
1874
1930
  id: string;
1875
1931
  }
1876
1932
 
1877
- type CompanyVariableName = 'MATRIX_BEARER_TOKEN' | 'MATRIX_WHATSAPP_BOT_ROOM_ID' | 'MATRIX_USERNAME' | 'MATRIX_PASSWORD' | 'MATRIX_NEXT_BATCH' | 'ACCESS_CONTROL_POLICY_CSV';
1933
+ type BackupJobStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
1934
+ interface BackupJob {
1935
+ id: string;
1936
+ status: BackupJobStatus;
1937
+ totalEntities: number;
1938
+ processedEntities: number;
1939
+ startedAt?: string | Date;
1940
+ completedAt?: string | Date;
1941
+ link?: string;
1942
+ expiresAt?: string | Date;
1943
+ error?: string;
1944
+ createdAt: string | Date;
1945
+ }
1946
+
1947
+ type CompanyVariableName = 'MATRIX_BEARER_TOKEN' | 'MATRIX_WHATSAPP_BOT_ROOM_ID' | 'MATRIX_USERNAME' | 'MATRIX_PASSWORD' | 'MATRIX_NEXT_BATCH' | 'ACCESS_CONTROL_POLICY_CSV' | 'MEDUSA_STORE_API_BASE_URL' | 'MEDUSA_STORE_API_SECRET_API_KEY' | 'MEDUSA_STORE_API_EMAIL' | 'MEDUSA_STORE_API_PASSWORD';
1878
1948
  interface CompanyVariable {
1879
1949
  id: string;
1880
1950
  name: CompanyVariableName;
@@ -1884,13 +1954,13 @@ interface CompanyVariable {
1884
1954
  updatedAt: string | Date;
1885
1955
  }
1886
1956
 
1887
- type CompanyFeatureName = 'DATE_LOCALIZATION';
1957
+ type CompanyFeatureName = 'DATE_LOCALIZATION' | 'JOURNAL_ENTRY_ORPHAN_PREVENTION' | 'ACCOUNTING_POLICY_ENABLED' | 'DEFAULT_CUSTOM_ENTITY_SCHEMA_TYPE_DOCUMENT' | 'CUSTOM_ENTITY_NEW_UI';
1888
1958
  interface CompanyFeature {
1889
1959
  id: string;
1890
1960
  name: CompanyFeatureName;
1891
1961
  }
1892
1962
 
1893
- type CompanyOptionName = 'AUTOCREATE_PRODUCTION_ORDER' | 'AUTOUPDATE_INVOICE' | 'PRODUCT_CATALOG' | 'HIDE_CUSTOMER_OVERDUE_BALANCE' | 'DISABLE_PRODUCT_DELETION' | 'DISABLE_AUTOREMOVE_QUOTE_DURING_ORDER_CONVERSION' | 'ONLY_ADMINS_CAN_DELETE_INVOICE' | 'ONLY_ADMINS_CAN_EDIT_ORDER_DATE' | 'VAT_DEFAULT_ZERO' | 'DEFAULT_DISCOUNT_AMOUNT' | 'NO_LETTERHEAD_DOCS' | 'SHOW_CUSTOM_FIELDS_IN_MAIN_TABLE' | 'LINES_PER_PAGE_INVOICE' | 'LINES_PER_PAGE_RENTAL_ORDER' | 'LINES_PER_PAGE_SALES_ORDER' | 'LINES_PER_PAGE_PURCHASE_ORDER' | 'LINES_PER_PAGE_QUOTATION' | 'LINES_PER_PAGE_DELIVERY_ORDER' | 'NO_FOOTER' | 'HIDE_DELIVERIES' | 'PRODUCT_ACCESS_BY_PERSONA' | 'SIMPLE_UI' | 'LANDSCAPE_DELIVERY_ORDERS' | 'MULTI_PAGE_DOCS' | 'SMALL_SOURCE_DOCS' | 'HIDE_DASHBOARD' | 'DESCRIPTION_LINE' | 'MOVEUP_TABLE' | 'CUSTOM_LINES_PER_PAGE_MULT' | 'MOVEDOWN_TABLE' | 'INVOICE_DOWNPAYMENT_DEDUCTION_PROPORTIONAL' | 'AUTO_DELIVER_SALES_ORDER' | 'AUTO_INVOICE_SALES_ORDER' | 'HIDE_CUSTOMER_FIELD_DELIVERY_JOB' | 'HIDE DISCOUNTS' | 'MOVEUP_TABLE_INVOICE' | 'HIDE_VAT_PERCENTAGE_ON_INVOICE' | 'REMOVE_BRAND' | 'MERGE_JOURNAL_ENTRIES' | 'MOVEDOWN_INVOICE' | 'BILL' | 'BILL_DEBITS_INVENTORY_ACCOUNT' | 'HIDE_DELIVERY_JOB_COST_LINES' | 'HIDE_DELIVERY_JOB_ADDRESS' | 'HIDE_INVOICE_FOR_SALES' | 'HIDE_MAINTAINANCE_ORDER' | 'PAYMENT_DOCGEN_SHOWS_JOURNAL_ENTRIES' | 'HIDE_EDIT_DELIVERY' | 'EXPENSE_VAT_ZERO' | 'SHOW_IN_STOCK_ON_DELIVERIES' | 'SHOW_SKU' | 'DELIVERY_COST' | 'AUTOMATION_TRIGGER_V2' | 'ACCESS_CONTROL_ADMIN_DEFAULT_UNALLOW' | 'REMOVE_QTY_IN_INVOICES' | 'DEFAULT_CUSTOM_ENTITY_SCHEMA_TYPE_DOCUMENT' | 'HIDE_ALL_REPORTS' | 'RETURN_SALES_ORDER' | 'SHOW_LINE_DISCOUNT';
1963
+ type CompanyOptionName = 'AUTOCREATE_PRODUCTION_ORDER' | 'AUTOUPDATE_INVOICE' | 'PRODUCT_CATALOG' | 'HIDE_CUSTOMER_OVERDUE_BALANCE' | 'DISABLE_PRODUCT_DELETION' | 'DISABLE_AUTOREMOVE_QUOTE_DURING_ORDER_CONVERSION' | 'ONLY_ADMINS_CAN_DELETE_INVOICE' | 'ONLY_ADMINS_CAN_EDIT_ORDER_DATE' | 'VAT_DEFAULT_ZERO' | 'DEFAULT_DISCOUNT_AMOUNT' | 'NO_LETTERHEAD_DOCS' | 'SHOW_CUSTOM_FIELDS_IN_MAIN_TABLE' | 'LINES_PER_PAGE_INVOICE' | 'LINES_PER_PAGE_RENTAL_ORDER' | 'LINES_PER_PAGE_SALES_ORDER' | 'LINES_PER_PAGE_PURCHASE_ORDER' | 'LINES_PER_PAGE_QUOTATION' | 'LINES_PER_PAGE_DELIVERY_ORDER' | 'NO_FOOTER' | 'HIDE_DELIVERIES' | 'PRODUCT_ACCESS_BY_PERSONA' | 'SIMPLE_UI' | 'LANDSCAPE_DELIVERY_ORDERS' | 'MULTI_PAGE_DOCS' | 'SMALL_SOURCE_DOCS' | 'HIDE_DASHBOARD' | 'DESCRIPTION_LINE' | 'MOVEUP_TABLE' | 'CUSTOM_LINES_PER_PAGE_MULT' | 'CUSTOM_LINES_PER_PAGE_MULT_INVOICE' | 'MOVEDOWN_TABLE' | 'INVOICE_DOWNPAYMENT_DEDUCTION_PROPORTIONAL' | 'AUTO_DELIVER_SALES_ORDER' | 'AUTO_INVOICE_SALES_ORDER' | 'HIDE_CUSTOMER_FIELD_DELIVERY_JOB' | 'HIDE DISCOUNTS' | 'MOVEUP_TABLE_INVOICE' | 'HIDE_VAT_PERCENTAGE_ON_INVOICE' | 'REMOVE_BRAND' | 'MERGE_JOURNAL_ENTRIES' | 'MOVEDOWN_INVOICE' | 'BILL' | 'BILL_DEBITS_INVENTORY_ACCOUNT' | 'HIDE_DELIVERY_JOB_COST_LINES' | 'HIDE_DELIVERY_JOB_ADDRESS' | 'HIDE_INVOICE_FOR_SALES' | 'HIDE_MAINTAINANCE_ORDER' | 'PAYMENT_DOCGEN_SHOWS_JOURNAL_ENTRIES' | 'HIDE_EDIT_DELIVERY' | 'EXPENSE_VAT_ZERO' | 'SHOW_IN_STOCK_ON_DELIVERIES' | 'SHOW_SKU' | 'DELIVERY_COST' | 'AUTOMATION_TRIGGER_V2' | 'ACCESS_CONTROL_ADMIN_DEFAULT_UNALLOW' | 'REMOVE_QTY_IN_INVOICES' | 'DEFAULT_CUSTOM_ENTITY_SCHEMA_TYPE_DOCUMENT' | 'HIDE_ALL_REPORTS' | 'RETURN_SALES_ORDER' | 'SHOW_LINE_DISCOUNT';
1894
1964
  interface CompanyOption {
1895
1965
  id: string;
1896
1966
  name: CompanyOptionName;
@@ -1903,13 +1973,35 @@ interface CompanyPermission {
1903
1973
  name: CompanyPermissionName;
1904
1974
  }
1905
1975
 
1976
+ interface CustomIdentifierTemplate {
1977
+ id: string;
1978
+ entityName: string;
1979
+ template: string;
1980
+ name: string;
1981
+ description?: string;
1982
+ isDefault: boolean;
1983
+ identifierTokens?: any[];
1984
+ metadata?: {
1985
+ createdBy?: string;
1986
+ updatedBy?: string;
1987
+ version?: number;
1988
+ };
1989
+ sequences?: {
1990
+ global?: number;
1991
+ yearly?: Record<number, number>;
1992
+ monthly?: Record<string, number>;
1993
+ };
1994
+ createdAt: string | Date;
1995
+ updatedAt: string | Date;
1996
+ }
1997
+
1906
1998
  type CustomDocumentOrientation = 'PORTRAIT' | 'LANDSCAPE';
1907
1999
  type CustomDocumentType = 'PDF' | 'XLSX';
1908
2000
  interface CustomDocument {
1909
2001
  id: string;
1910
2002
  headerPdfDocId?: string;
1911
2003
  footerPdfDocId?: string;
1912
- entityType: EntityType;
2004
+ entityType: string;
1913
2005
  name: string;
1914
2006
  type: CustomDocumentType;
1915
2007
  excelUrl?: string;
@@ -1956,6 +2048,14 @@ interface View {
1956
2048
  entityType: EntityType;
1957
2049
  }
1958
2050
 
2051
+ type AccountingPolicyMode = 'AVCO_RETAIL_WITH_INVENTORY' | 'AVCO_RETAIL_WITHOUT_INVENTORY' | 'AVCO_RETAIL_WITH_INVENTORY_AND_COGS_ON_BILL_INVOICE_DELIVERIES';
2052
+ interface AccountingPolicy {
2053
+ id: string;
2054
+ mode: AccountingPolicyMode;
2055
+ createdAt: string | Date;
2056
+ updatedAt: string | Date;
2057
+ }
2058
+
1959
2059
  interface ChatSession {
1960
2060
  id: string;
1961
2061
  title?: string;
@@ -3181,4 +3281,4 @@ declare const konversiAPI: {
3181
3281
 
3182
3282
  declare const Entity: typeof crudEndpoints;
3183
3283
 
3184
- export { type Account, type AccountDefaultEnum, type AccountSubtype, type AccountType, type Activity, type ActivityType, type Approval, type Approver, type ApproverType, type Attendance, type AuditLog, type AuditLogAction, type AutomationJob, type AutomationJobStatus, type AutomationScript, type AutomationScriptTrigger, type AutomationScriptTriggerEntity, type AutomationScriptTriggerName, type BOMComponent, type BOMOperation, type BankAccount, type BankTransaction, type Bill, type BillLine, type BillOfMaterials, type BusinessIntelligenceDashboard, type BusinessIntelligenceReport, type Cart, type CartLine, type ChatMessage, type ChatMessageRole, type ChatSession, type CompanyAlias, type CompanyFeature, type CompanyFeatureName, type CompanyOption, type CompanyOptionName, type CompanyPermission, type CompanyPermissionName, type CompanyUser, type CompanyVariable, type CompanyVariableName, type Contact, type Conversation, type ConversationMessage, type CostLine, type Currency, type CustomDocument, type CustomDocumentOrientation, type CustomDocumentType, type CustomEntityField, type CustomEntityFieldPermission, type CustomEntityFieldType, type CustomEntityFieldValue, type CustomEntityObject, type CustomEntitySchema, type CustomEntitySchemaPermission, type CustomEntitySchemaType, type CustomField, type CustomReport, type Customer, type CustomerEvent, type CustomerEventType, type CustomerSourceChannel, type DataType, type Day, type Deal, type Delivery, type DeliveryJob, type DeliveryJobStatus, type DeliveryLine, type DeliveryStatus, type DeliveryType, type DepreciationPeriod, type Employee, Entity, type EntityEvent, type EntityFieldPermission, type EntityObjectPermission, type EntityPermission, type EntityType, type ExchangeRate, type Expense, type ExpenseLine, type FieldName, type FixedAsset, type Form, type FormLocation, type FuelEntry, type Geofence, type IdentifierGroup, type IdentifierToken, type IdentifierTokenType, type ImportJob, type ImportJobRow, type ImportJobStatus, type IncomingDelivery, type IncomingDeliveryLine, type IncomingPaymentMethod, type IncomingShipment, type InternalDelivery, type InternalDeliveryLine, type InventoryCostFlow, type Invitation, type Invoice, type InvoiceApproval, type InvoiceLine, type IotDevice, type IotDeviceType, type IotHub, type IotHubPlatform, type IotJob, type IotJobStatus, type JobCard, type JobCardStatus, type JournalEntry, type JournalEntryLine, type Lease, type LeasePaymentStatus, type LifecycleStage, type MaintenanceOrder, type MaintenanceOrderLine, type Module, type NotificationEntity, type Order, type OrderLine, type OutgoingDelivery, type OutgoingDeliveryLine, type OutgoingShipment, type Payment, type PaymentGatewayType, type PaymentMethodEnum, type PaymentStatus, type PaymentType, type PointOfSale, type Pricelist, type PricelistLine, type PrintJob, type PrintJobStatus, type PrintJobType, type Product, type ProductGroup, type ProductItem, type ProductLocation, type ProductLocationTransfer, type ProductSupplier, type ProductionOrder, type ProductionOrderLine, type ProductionOrderStatus, type Property, type PropertyGroup, type PurchaseOrder, type PurchaseOrderApproval, type PurchaseOrderLine, type QualityCheck, type QualityCheckStatus, type QualityCheckpoint, type Quote, type QuoteLine, type RentalOrder, type RentalOrderLine, type ReturnInvoice, type ReturnInvoiceLine, type ReturnSalesOrder, type ReturnSalesOrderLine, type Rule, type RuleEventType, type SalaryPeriod, type SalesOrder, type SalesOrderApproval, type SalesOrderLine, type SalesOrderLinePrintJob, type SalesOrderType, type Shift, type Shipment, type StockAdjustment, type StockAdjustmentType, type Store, type StoreProduct, type StoreProductAttribute, type StoreProductAttributeValue, type StoreProductAttributeValueMapping, type StoreProductGroup, type StoreProductVariant, type StoreUser, type Subsidiary, type Supplier, type TelemetryAttribute, type TelemetryAttributeKey, type TelemetryEvent, type ThermalPrinter, type UnitConversion, type User, type UserAction, type UserActionType, type UserLog, type UserPermission, type UserPermissionName, type UserPersona, type UserPersonaCustomSchemaPermission, type UserPersonaCustomSchemaPermissionType, type UserPersonaEntityAccessStatus, type UserPersonaEntityPermission, type UserPersonaEntityPermissionType, type UserPersonaProductPermission, type UserPersonaWarehousePermission, type Vehicle, type VehicleTelemetry, type VehicleTire, type View, type Warehouse, type WarehouseProduct, type WebComponent, type WebComponentSlot, type WebComponentSlotName, type WhatsappAccount, type Workstation, type WorkstationProduct, type WorkstationTransfer, createCustomObject, createObject, konversiAPI as default, deleteCustomObject, deleteObject, getAllObjects, getObjectById, runScript, updateObject };
3284
+ export { type Account, type AccountDefaultEnum, type AccountSubtype, type AccountType, type AccountingPolicy, type AccountingPolicyMode, type Activity, type ActivityType, type Approval, type Approver, type ApproverType, type Attendance, type AuditLog, type AuditLogAction, type AutomationJob, type AutomationJobStatus, type AutomationScript, type AutomationScriptTrigger, type AutomationScriptTriggerEntity, type AutomationScriptTriggerName, type BOMComponent, type BOMOperation, type BackupJob, type BackupJobStatus, type BankAccount, type BankTransaction, type Bill, type BillLine, type BillOfMaterials, type BusinessIntelligenceDashboard, type BusinessIntelligenceReport, type Cart, type CartLine, type ChatMessage, type ChatMessageRole, type ChatSession, type CompanyAlias, type CompanyFeature, type CompanyFeatureName, type CompanyOption, type CompanyOptionName, type CompanyPermission, type CompanyPermissionName, type CompanyUser, type CompanyVariable, type CompanyVariableName, type Contact, type Conversation, type ConversationMessage, type CostLine, type Currency, type CustomDocument, type CustomDocumentOrientation, type CustomDocumentType, type CustomEntityField, type CustomEntityFieldPermission, type CustomEntityFieldType, type CustomEntityFieldValue, type CustomEntityObject, type CustomEntitySchema, type CustomEntitySchemaPermission, type CustomEntitySchemaType, type CustomField, type CustomIdentifierTemplate, type CustomReport, type Customer, type CustomerEvent, type CustomerEventType, type CustomerSourceChannel, type DataType, type Day, type Deal, type DefaultAccount, type DefaultAccountName, type Delivery, type DeliveryJob, type DeliveryJobStatus, type DeliveryLine, type DeliveryStatus, type DeliveryType, type DepreciationPeriod, type Employee, Entity, type EntityEvent, type EntityFieldPermission, type EntityObjectPermission, type EntityPermission, type EntityType, type ExchangeRate, type Expense, type ExpenseLine, type FieldName, type FixedAsset, type Form, type FormLocation, type FuelEntry, type Geofence, type IdentifierGroup, type IdentifierToken, type IdentifierTokenType, type ImportJob, type ImportJobRow, type ImportJobStatus, type IncomingDelivery, type IncomingDeliveryLine, type IncomingPaymentMethod, type IncomingShipment, type InternalDelivery, type InternalDeliveryLine, type InventoryCostFlow, type Invitation, type Invoice, type InvoiceApproval, type InvoiceLine, type IotDevice, type IotDeviceType, type IotHub, type IotHubPlatform, type IotJob, type IotJobStatus, type JobCard, type JobCardStatus, type JournalEntry, type JournalEntryLine, type JournalEntrySource, type Lease, type LeasePaymentStatus, type LifecycleStage, type MaintenanceOrder, type MaintenanceOrderLine, type Module, type NotificationEntity, type Order, type OrderLine, type OutgoingDelivery, type OutgoingDeliveryLine, type OutgoingShipment, type Payment, type PaymentGatewayType, type PaymentMethodEnum, type PaymentStatus, type PaymentType, type PointOfSale, type Pricelist, type PricelistLine, type PrintJob, type PrintJobStatus, type PrintJobType, type Product, type ProductGroup, type ProductItem, type ProductLocation, type ProductLocationTransfer, type ProductSupplier, type ProductSyncMapping, type ProductSyncMappingType, type ProductionOrder, type ProductionOrderLine, type ProductionOrderStatus, type Property, type PropertyGroup, type PurchaseOrder, type PurchaseOrderApproval, type PurchaseOrderLine, type QualityCheck, type QualityCheckStatus, type QualityCheckpoint, type Quote, type QuoteLine, type RentalOrder, type RentalOrderLine, type ReturnInvoice, type ReturnInvoiceLine, type ReturnSalesOrder, type ReturnSalesOrderLine, type Rule, type RuleEventType, type SalaryPeriod, type SalesOrder, type SalesOrderApproval, type SalesOrderLine, type SalesOrderLinePrintJob, type SalesOrderType, type Shift, type Shipment, type StockAdjustment, type StockAdjustmentType, type Store, type StoreProduct, type StoreProductAttribute, type StoreProductAttributeValue, type StoreProductAttributeValueMapping, type StoreProductGroup, type StoreProductSyncMapping, type StoreProductSyncMappingType, type StoreProductVariant, type StoreUser, type Subsidiary, type Supplier, type SyncMapping, type TelemetryAttribute, type TelemetryAttributeKey, type TelemetryEvent, type ThermalPrinter, type UnitConversion, type User, type UserAction, type UserActionType, type UserLog, type UserPermission, type UserPermissionName, type UserPersona, type UserPersonaCustomSchemaPermission, type UserPersonaCustomSchemaPermissionType, type UserPersonaEntityAccessStatus, type UserPersonaEntityPermission, type UserPersonaEntityPermissionType, type UserPersonaProductPermission, type UserPersonaWarehousePermission, type Vehicle, type VehicleTelemetry, type VehicleTire, type View, type Warehouse, type WarehouseProduct, type WebComponent, type WebComponentSlot, type WebComponentSlotName, type WhatsappAccount, type Workstation, type WorkstationProduct, type WorkstationTransfer, createCustomObject, createObject, konversiAPI as default, deleteCustomObject, deleteObject, getAllObjects, getObjectById, runScript, updateObject };