@konversi/konversi-client 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -198,25 +198,8 @@ interface Contact {
198
198
  isDeleted: boolean;
199
199
  }
200
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
- }
201
+ type InventoryCostFlow = 'AVCO' | 'FIFO';
202
+ type Currency = 'IDR' | 'USD' | 'EUR' | 'AUD' | 'CNY' | 'SGD' | 'VND' | 'THB' | 'MYR' | 'PHP' | 'KHR' | 'MMK' | 'BND';
220
203
 
221
204
  interface Order {
222
205
  id: string;
@@ -336,14 +319,7 @@ interface Property {
336
319
  maintenanceOrders: Partial<MaintenanceOrder>[];
337
320
  }
338
321
 
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
- }
322
+ type LeasePaymentStatus = 'NOT_INVOICED' | 'PARTIALLY_INVOICED' | 'FULLY_INVOICED' | 'PARTIALLY_PAID' | 'FULLY_PAID' | 'OVERDUE';
347
323
  interface Lease {
348
324
  id: string;
349
325
  properties: Partial<Property>[];
@@ -372,17 +348,8 @@ interface RentalOrderLine extends OrderLine {
372
348
  product: Partial<Product>;
373
349
  }
374
350
 
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
- }
351
+ type DeliveryType = 'incoming' | 'outgoing' | 'internal';
352
+ type DeliveryStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'CANCELLED';
386
353
  interface Delivery {
387
354
  id: string;
388
355
  num: number;
@@ -427,11 +394,7 @@ interface QualityCheckpoint {
427
394
  qualityChecks: Partial<QualityCheck>[];
428
395
  }
429
396
 
430
- declare enum QualityCheckStatus {
431
- PENDING = "PENDING",
432
- PASS = "PASS",
433
- FAIL = "FAIL"
434
- }
397
+ type QualityCheckStatus = 'PENDING' | 'PASS' | 'FAIL';
435
398
  interface QualityCheck {
436
399
  id: string;
437
400
  status: QualityCheckStatus;
@@ -442,12 +405,7 @@ interface QualityCheck {
442
405
  updatedAt: string | Date;
443
406
  }
444
407
 
445
- declare enum JobCardStatus {
446
- PENDING = "PENDING",
447
- IN_PROGRESS = "IN_PROGRESS",
448
- COMPLETED = "COMPLETED",
449
- CANCELED = "CANCELED"
450
- }
408
+ type JobCardStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'CANCELED';
451
409
  interface JobCard {
452
410
  id: string;
453
411
  order: number;
@@ -466,12 +424,7 @@ interface JobCard {
466
424
  customFields: any;
467
425
  }
468
426
 
469
- declare enum ProductionOrderStatus {
470
- 'PENDING' = "PENDING",
471
- 'IN_PROGRESS' = "IN_PROGRESS",
472
- 'COMPLETED' = "COMPLETED",
473
- 'CANCELED' = "CANCELED"
474
- }
427
+ type ProductionOrderStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'CANCELED';
475
428
  interface ProductionOrder {
476
429
  id: string;
477
430
  product: Partial<Product>;
@@ -591,10 +544,7 @@ interface Shipment {
591
544
  description: string;
592
545
  }
593
546
 
594
- declare enum DepreciationPeriod {
595
- MONTHLY = "MONTHLY",
596
- YEARLY = "YEARLY"
597
- }
547
+ type DepreciationPeriod = 'MONTHLY' | 'YEARLY';
598
548
  interface FixedAsset {
599
549
  id: string;
600
550
  name: string;
@@ -617,77 +567,8 @@ interface ExpenseLine extends OrderLine {
617
567
  expense: Partial<Expense>;
618
568
  }
619
569
 
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
- }
570
+ type EntityType = 'CUSTOMER' | 'SUPPLIER' | 'ACCOUNT' | 'PRODUCT' | 'SERVICE' | 'PRODUCT_ITEM' | 'RENTAL_ORDER' | 'SALES_ORDER' | 'SALES_ORDER_LINE' | 'WORK_ORDER' | 'WORK_ORDER_LINE' | 'SERVICE_ORDER' | 'SERVICE_ORDER_LINE' | 'PURCHASE_ORDER' | 'PURCHASE_ORDER_LINE' | 'INVOICE' | 'INVOICE_LINE' | 'QUOTE' | 'QUOTE_LINE' | 'OUTGOING_DELIVERY' | 'OUTGOING_DELIVERY_LINE' | 'INCOMING_DELIVERY' | 'INCOMING_DELIVERY_LINE' | 'INTERNAL_DELIVERY' | 'STOCK_ADJUSTMENT' | 'PAYMENT' | 'EXPENSE' | 'PRODUCTION_ORDER' | 'PRODUCTION_ORDER_LINE' | 'JOB_CARD' | 'DELIVERY_JOB' | 'VEHICLE' | 'MAINTENANCE_ORDER' | 'MAINTENANCE_ORDER_LINE' | 'FUEL_ENTRY' | 'USER' | 'IDENTIFIER_GROUP' | 'WAREHOUSE' | 'POINT_OF_SALE' | 'BANK_ACCOUNT' | 'BANK_TRANSACTION' | 'JOURNAL_ENTRY' | 'FIXED_ASSET' | 'RULE' | 'BILL' | 'BILL_LINE' | 'LEASE' | 'PROPERTY' | 'PRICELIST' | 'PRICELIST_LINE' | 'CUSTOM_REPORT' | 'PRODUCT_LOCATION' | 'BOM_COMPONENT' | 'BOM_OPERATION' | 'RETURN_SALES_ORDER' | 'RETURN_INVOICE';
571
+ type DataType = 'TEXT' | 'NUMBER' | 'CURRENCY' | 'DATE' | 'DATETIME' | 'DROPDOWN' | 'SELECT' | 'JSON' | 'BOOLEAN' | 'FILE_ARRAY' | 'REFERENCE';
691
572
  interface CustomField {
692
573
  id: string;
693
574
  entityType: EntityType;
@@ -728,21 +609,7 @@ interface IdentifierGroup {
728
609
  bills: Partial<Bill>[];
729
610
  }
730
611
 
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
- }
612
+ type IdentifierTokenType = 'SLASH' | 'DASH' | 'UNDERSCORE' | 'DATE' | 'YEAR' | 'YEAR_TWO_DIGITS' | 'MONTH' | 'MONTH_ROMAN' | 'DOCUMENT_NUMBER' | 'DOCUMENT_NUMBER_YEARLY' | 'DOCUMENT_NUMBER_MONTHLY' | 'COMPANY_PREFIX' | 'TEXT';
746
613
  interface IdentifierToken {
747
614
  id: string;
748
615
  order: number;
@@ -805,16 +672,8 @@ interface BankTransaction {
805
672
  createdAt: string | Date;
806
673
  }
807
674
 
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
- }
675
+ type PaymentMethodEnum = 'CASH' | 'DEBIT_CARD' | 'CREDIT_CARD' | 'QRIS';
676
+ type PaymentType = 'IN' | 'OUT';
818
677
  interface Payment {
819
678
  id: string;
820
679
  type: PaymentType;
@@ -833,9 +692,7 @@ interface Payment {
833
692
  createdBy: Partial<User>;
834
693
  }
835
694
 
836
- declare enum PaymentGatewayType {
837
- QRIS = "QRIS"
838
- }
695
+ type PaymentGatewayType = 'QRIS';
839
696
  interface IncomingPaymentMethod {
840
697
  id: string;
841
698
  name: string;
@@ -844,37 +701,9 @@ interface IncomingPaymentMethod {
844
701
  account: Partial<Account>;
845
702
  }
846
703
 
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
- }
704
+ type AccountType = 'DIVIDEND' | 'EXPENSE' | 'ASSET' | 'LIABILITY' | 'EQUITY' | 'REVENUE';
705
+ type AccountDefaultEnum = 'PRODUCT_INVENTORY' | 'PRODUCT_EXPENSE' | 'PRODUCT_INCOME' | 'REVENUE' | 'EXPENSE' | 'ACCOUNTS_RECEIVABLE' | 'ACCOUNTS_PAYABLE' | 'EXCHANGE_GAIN_OR_LOSS' | 'VAT_INPUT' | 'VAT_OUTPUT';
706
+ type AccountSubtype = 'CASH_AND_BANK' | 'CURRENT_ASSETS' | 'NON_CURRENT_ASSETS' | 'CURRENT_LIABILITIES' | 'NON_CURRENT_LIABILITIES' | 'OTHER_INCOME' | 'COST_OF_REVENUE' | 'DEPRECIATION' | 'OTHER_EXPENSES';
878
707
  interface Account {
879
708
  id: string;
880
709
  code: string;
@@ -1053,10 +882,7 @@ interface InternalDelivery extends Delivery {
1053
882
  createdBy: Partial<User>;
1054
883
  }
1055
884
 
1056
- declare enum StockAdjustmentType {
1057
- IN = "IN",
1058
- OUT = "OUT"
1059
- }
885
+ type StockAdjustmentType = 'IN' | 'OUT';
1060
886
  interface StockAdjustment {
1061
887
  id: string;
1062
888
  date?: string;
@@ -1108,22 +934,7 @@ interface CustomEntityFieldPermission {
1108
934
  update: boolean;
1109
935
  }
1110
936
 
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
- }
937
+ type CustomEntityFieldType = 'TEXT' | 'NUMBER' | 'CURRENCY' | 'BOOLEAN' | 'FILE' | 'FILE_ARRAY' | 'DATE' | 'JSON' | 'LOCATION' | 'SELECT' | 'REFERENCE' | 'REFERENCE_ARRAY' | 'CUSTOM_ENTITY_REFERENCE' | 'CUSTOM_ENTITY_REFERENCE_ARRAY';
1127
938
  interface CustomEntityField {
1128
939
  id: string;
1129
940
  key: string;
@@ -1145,33 +956,14 @@ interface CustomEntityField {
1145
956
  customEntityFieldPermissions: Partial<CustomEntityFieldPermission>[];
1146
957
  }
1147
958
 
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
- }
959
+ type AutomationScriptTriggerName = 'QUOTE' | 'PURCHASE_ORDER' | 'SALES_ORDER' | 'PURCHASE_ORDER_LINE' | 'SALES_ORDER_LINE' | 'DELIVERY_JOB' | 'INVOICE' | 'PRODUCT' | 'CUSTOM_OBJECT' | 'DAILY' | 'HOURLY' | 'MINUTE' | 'BUSINESS_INTELLIGENCE_REPORT';
1163
960
  interface AutomationScriptTriggerEntity {
1164
961
  id: string;
1165
962
  name: AutomationScriptTriggerName;
1166
963
  automationScript: Partial<AutomationScript>;
1167
964
  }
1168
965
 
1169
- declare enum AutomationJobStatus {
1170
- PENDING = "PENDING",
1171
- IN_PROGRESS = "IN_PROGRESS",
1172
- COMPLETED = "COMPLETED",
1173
- FAILED = "FAILED"
1174
- }
966
+ type AutomationJobStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
1175
967
  interface AutomationJob {
1176
968
  id: string;
1177
969
  stdout: string;
@@ -1186,29 +978,8 @@ interface AutomationJob {
1186
978
  automationScript: Partial<AutomationScript>;
1187
979
  }
1188
980
 
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
- }
981
+ type EntityEvent = 'CREATE' | 'BEFORE_UPDATE' | 'AFTER_UPDATE' | 'DELETE';
982
+ type AutomationScriptTrigger = 'QUOTE' | 'PURCHASE_ORDER' | 'SALES_ORDER' | 'PURCHASE_ORDER_LINE' | 'SALES_ORDER_LINE' | 'DELIVERY_JOB' | 'INVOICE' | 'PRODUCT' | 'INCOMING_DELIVERY' | 'INCOMING_DELIVERY_LINE' | 'CUSTOM_OBJECT' | 'DAILY' | 'HOURLY' | 'MINUTE' | 'BUSINESS_INTELLIGENCE_REPORT';
1212
983
  interface AutomationScript {
1213
984
  id: string;
1214
985
  isSync: boolean;
@@ -1234,10 +1005,7 @@ interface CustomReport {
1234
1005
  form: Partial<Form>;
1235
1006
  }
1236
1007
 
1237
- declare enum FormLocation {
1238
- CUSTOM_ENTITY = "CUSTOM_ENTITY",
1239
- CHECKOUT = "CHECKOUT"
1240
- }
1008
+ type FormLocation = 'CUSTOM_ENTITY' | 'CHECKOUT';
1241
1009
  interface Form {
1242
1010
  id: string;
1243
1011
  name: string;
@@ -1257,12 +1025,7 @@ interface CustomEntitySchemaPermission {
1257
1025
  customEntitySchema: Partial<CustomEntitySchema>;
1258
1026
  }
1259
1027
 
1260
- declare enum UserPersonaCustomSchemaPermissionType {
1261
- CREATE = "CREATE",
1262
- READ = "READ",
1263
- UPDATE = "UPDATE",
1264
- DELETE = "DELETE"
1265
- }
1028
+ type UserPersonaCustomSchemaPermissionType = 'CREATE' | 'READ' | 'UPDATE' | 'DELETE';
1266
1029
  interface UserPersonaCustomSchemaPermission {
1267
1030
  id: string;
1268
1031
  userPersona: Partial<UserPersona>;
@@ -1270,18 +1033,8 @@ interface UserPersonaCustomSchemaPermission {
1270
1033
  type: UserPersonaCustomSchemaPermissionType;
1271
1034
  }
1272
1035
 
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
- }
1036
+ type Module = 'SALES' | 'ACCOUNTING' | 'PURCHASING' | 'INVENTORY' | 'FLEET' | 'AUTOMATION';
1037
+ type CustomEntitySchemaType = 'LEGACY' | 'DOCUMENT';
1285
1038
  interface CustomEntitySchema {
1286
1039
  id: string;
1287
1040
  name: string;
@@ -1298,10 +1051,7 @@ interface CustomEntitySchema {
1298
1051
  userPersonaCustomSchemaPermissions: Partial<UserPersonaCustomSchemaPermission>[];
1299
1052
  }
1300
1053
 
1301
- declare enum WebComponentSlotName {
1302
- LEASE_EDIT_MODAL_FOOTER = "LEASE_EDIT_MODAL_FOOTER",
1303
- LEASE_EDIT_MODAL_HEADER = "LEASE_EDIT_MODAL_HEADER"
1304
- }
1054
+ type WebComponentSlotName = 'LEASE_EDIT_MODAL_FOOTER' | 'LEASE_EDIT_MODAL_HEADER';
1305
1055
  interface WebComponentSlot {
1306
1056
  id: string;
1307
1057
  webComponent: Partial<WebComponent>;
@@ -1318,12 +1068,7 @@ interface WebComponent {
1318
1068
  userActions: Partial<UserAction>[];
1319
1069
  }
1320
1070
 
1321
- declare enum UserActionType {
1322
- SALES_ORDER = "SALES_ORDER",
1323
- QUICK_ACTION = "QUICK_ACTION",
1324
- INVOICE = "INVOICE",
1325
- CUSTOM_OBJECT = "CUSTOM_OBJECT"
1326
- }
1071
+ type UserActionType = 'SALES_ORDER' | 'QUICK_ACTION' | 'INVOICE' | 'CUSTOM_OBJECT';
1327
1072
  interface UserAction {
1328
1073
  id: string;
1329
1074
  type: UserActionType;
@@ -1335,12 +1080,7 @@ interface UserAction {
1335
1080
  userPersona: Partial<UserPersona>;
1336
1081
  }
1337
1082
 
1338
- declare enum UserPersonaEntityPermissionType {
1339
- CREATE = "CREATE",
1340
- READ = "READ",
1341
- UPDATE = "UPDATE",
1342
- DELETE = "DELETE"
1343
- }
1083
+ type UserPersonaEntityPermissionType = 'CREATE' | 'READ' | 'UPDATE' | 'DELETE';
1344
1084
  interface UserPersonaEntityPermission {
1345
1085
  id: string;
1346
1086
  userPersona: Partial<UserPersona>;
@@ -1435,11 +1175,7 @@ interface InvoiceApproval extends Approval {
1435
1175
  signatureMethod?: 'STORED' | 'CAPTURED';
1436
1176
  }
1437
1177
 
1438
- declare enum PaymentStatus {
1439
- NOT_PAID = "NOT_PAID",
1440
- PARTIALLY_PAID = "PARTIALLY_PAID",
1441
- FULLY_PAID = "FULLY_PAID"
1442
- }
1178
+ type PaymentStatus = 'NOT_PAID' | 'PARTIALLY_PAID' | 'FULLY_PAID';
1443
1179
  interface Invoice extends Order {
1444
1180
  paymentStatus?: PaymentStatus;
1445
1181
  pphAmount: number;
@@ -1563,10 +1299,7 @@ interface ReturnSalesOrder extends Order {
1563
1299
  salesOrder: Partial<SalesOrder>;
1564
1300
  }
1565
1301
 
1566
- declare enum SalesOrderType {
1567
- WORK_ORDER = "WORK_ORDER",
1568
- SERVICE_ORDER = "SERVICE_ORDER"
1569
- }
1302
+ type SalesOrderType = 'WORK_ORDER' | 'SERVICE_ORDER';
1570
1303
  interface SalesOrder extends Order {
1571
1304
  type?: SalesOrderType;
1572
1305
  salesOrderLines: Partial<SalesOrderLine>[];
@@ -1590,17 +1323,8 @@ interface SalesOrder extends Order {
1590
1323
  returnSalesOrders: Partial<ReturnSalesOrder>[];
1591
1324
  }
1592
1325
 
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
- }
1326
+ type PrintJobStatus = 'QUEUED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
1327
+ type PrintJobType = 'INVOICE' | 'SALES_ORDER' | 'REPORT';
1604
1328
  interface PrintJob {
1605
1329
  id: string;
1606
1330
  type?: PrintJobType;
@@ -1738,11 +1462,7 @@ interface VehicleTire {
1738
1462
  vehicle: Partial<Vehicle>;
1739
1463
  }
1740
1464
 
1741
- declare enum TelemetryAttributeKey {
1742
- latitude = "latitude",
1743
- longitude = "longitude",
1744
- odometer = "odometer"
1745
- }
1465
+ type TelemetryAttributeKey = 'latitude' | 'longitude' | 'odometer';
1746
1466
  interface TelemetryAttribute {
1747
1467
  id: string;
1748
1468
  key: TelemetryAttributeKey;
@@ -1774,11 +1494,7 @@ interface Vehicle {
1774
1494
  maintenanceOrders: Partial<MaintenanceOrder>[];
1775
1495
  }
1776
1496
 
1777
- declare enum DeliveryJobStatus {
1778
- PENDING = "PENDING",
1779
- IN_PROGRESS = "IN_PROGRESS",
1780
- COMPLETED = "COMPLETED"
1781
- }
1497
+ type DeliveryJobStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED';
1782
1498
  interface DeliveryJob {
1783
1499
  id: string;
1784
1500
  identifier?: string;
@@ -1806,35 +1522,14 @@ interface CompanyUser {
1806
1522
  user: Partial<User>;
1807
1523
  }
1808
1524
 
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
- }
1525
+ type UserPermissionName = 'ADMIN' | 'PURCHASING' | 'SALES' | 'INVENTORY' | 'SERVICE' | 'ACCOUNTING' | 'FINANCE' | 'MANUFACTURING' | 'ECOMMERCE' | 'FLEET' | 'AUTOMATION' | 'HUMAN_RESOURCES' | 'CUSTOMER_SERVICE' | 'POINT_OF_SALE' | 'RULES_ENGINE';
1826
1526
  interface UserPermission {
1827
1527
  id: string;
1828
1528
  name: UserPermissionName;
1829
1529
  user: Partial<User>;
1830
1530
  }
1831
1531
 
1832
- declare enum AuditLogAction {
1833
- CREATE = "CREATE",
1834
- UPDATE = "UPDATE",
1835
- DELETE = "DELETE",
1836
- READ = "READ"
1837
- }
1532
+ type AuditLogAction = 'CREATE' | 'UPDATE' | 'DELETE' | 'READ';
1838
1533
  interface AuditLog {
1839
1534
  id: string;
1840
1535
  action: AuditLogAction;
@@ -1863,11 +1558,7 @@ interface NotificationEntity {
1863
1558
  createdAt: string | Date;
1864
1559
  }
1865
1560
 
1866
- declare enum ApproverType {
1867
- PurchaseOrder = "PurchaseOrder",
1868
- SalesOrder = "SalesOrder",
1869
- Invoice = "Invoice"
1870
- }
1561
+ type ApproverType = 'PurchaseOrder' | 'SalesOrder' | 'Invoice';
1871
1562
  interface Approver {
1872
1563
  id: string;
1873
1564
  user: Partial<User>;
@@ -1899,15 +1590,7 @@ interface Geofence {
1899
1590
  attendances: Partial<Attendance>[];
1900
1591
  }
1901
1592
 
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
- }
1593
+ type Day = 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
1911
1594
  interface Shift {
1912
1595
  id: string;
1913
1596
  startTime: string;
@@ -1916,13 +1599,7 @@ interface Shift {
1916
1599
  employee: Partial<Employee>;
1917
1600
  }
1918
1601
 
1919
- declare enum SalaryPeriod {
1920
- HOUR = "hour",
1921
- DAY = "day",
1922
- WEEK = "week",
1923
- MONTH = "month",
1924
- YEAR = "year"
1925
- }
1602
+ type SalaryPeriod = 'hour' | 'day' | 'week' | 'month' | 'year';
1926
1603
  interface Employee {
1927
1604
  id: string;
1928
1605
  firstName: string;
@@ -1939,12 +1616,7 @@ interface Employee {
1939
1616
  shifts: Partial<Shift>[];
1940
1617
  }
1941
1618
 
1942
- declare enum IotJobStatus {
1943
- QUEUED = "QUEUED",
1944
- IN_PROGRESS = "IN_PROGRESS",
1945
- COMPLETED = "COMPLETED",
1946
- FAILED = "FAILED"
1947
- }
1619
+ type IotJobStatus = 'QUEUED' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
1948
1620
  interface IotJob {
1949
1621
  id: string;
1950
1622
  status: IotJobStatus;
@@ -1953,11 +1625,7 @@ interface IotJob {
1953
1625
  createdAt: string | Date;
1954
1626
  }
1955
1627
 
1956
- declare enum IotDeviceType {
1957
- BARCODE_SCANNER = "BARCODE_SCANNER",
1958
- BRACELET_PRINTER = "BRACELET_PRINTER",
1959
- THERMAL_PRINTER = "THERMAL_PRINTER"
1960
- }
1628
+ type IotDeviceType = 'BARCODE_SCANNER' | 'BRACELET_PRINTER' | 'THERMAL_PRINTER';
1961
1629
  interface IotDevice {
1962
1630
  id: string;
1963
1631
  name: string;
@@ -2018,12 +1686,7 @@ interface ImportJobRow {
2018
1686
  data: any;
2019
1687
  }
2020
1688
 
2021
- declare enum ImportJobStatus {
2022
- PENDING = "PENDING",
2023
- IN_PROGRESS = "IN_PROGRESS",
2024
- COMPLETED = "COMPLETED",
2025
- FAILED = "FAILED"
2026
- }
1689
+ type ImportJobStatus = 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
2027
1690
  interface ImportJob {
2028
1691
  id: string;
2029
1692
  status: ImportJobStatus;
@@ -2093,10 +1756,7 @@ interface Quote extends Order {
2093
1756
  identifierGroup: Partial<IdentifierGroup>;
2094
1757
  }
2095
1758
 
2096
- declare enum CustomerEventType {
2097
- LINKEDIN_CONNECTION_REQUEST = "LINKEDIN_CONNECTION_REQUEST",
2098
- LINKEDIN_MESSAGE = "LINKEDIN_MESSAGE"
2099
- }
1759
+ type CustomerEventType = 'LINKEDIN_CONNECTION_REQUEST' | 'LINKEDIN_MESSAGE';
2100
1760
  interface CustomerEvent {
2101
1761
  id: string;
2102
1762
  type: CustomerEventType;
@@ -2104,22 +1764,8 @@ interface CustomerEvent {
2104
1764
  customer: Partial<Customer>;
2105
1765
  }
2106
1766
 
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
- }
1767
+ type CustomerSourceChannel = any;
1768
+ type LifecycleStage = 'LEAD' | 'OPPORTUNITY' | 'CUSTOMER' | 'WhatsApp' | 'Toko' | 'Modern Trade' | 'End User Marketplace' | 'End User Offline' | 'Reseller' | 'Customize' | 'Instagram' | 'Website';
2123
1769
  interface Customer extends Contact {
2124
1770
  lifecycleStage?: string;
2125
1771
  quotes: Partial<Quote>[];
@@ -2140,12 +1786,7 @@ interface Customer extends Contact {
2140
1786
  isDefaultSalesOrderCustomer: boolean;
2141
1787
  }
2142
1788
 
2143
- declare enum ActivityType {
2144
- CALL = "CALL",
2145
- MEETING = "MEETING",
2146
- EMAIL = "EMAIL",
2147
- WHATSAPP = "WHATSAPP"
2148
- }
1789
+ type ActivityType = 'CALL' | 'MEETING' | 'EMAIL' | 'WHATSAPP';
2149
1790
  interface Activity {
2150
1791
  id: string;
2151
1792
  type: ActivityType;
@@ -2161,14 +1802,7 @@ interface Deal {
2161
1802
  id: string;
2162
1803
  }
2163
1804
 
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
- }
1805
+ type CompanyVariableName = 'MATRIX_BEARER_TOKEN' | 'MATRIX_WHATSAPP_BOT_ROOM_ID' | 'MATRIX_USERNAME' | 'MATRIX_PASSWORD' | 'MATRIX_NEXT_BATCH' | 'ACCESS_CONTROL_POLICY_CSV';
2172
1806
  interface CompanyVariable {
2173
1807
  id: string;
2174
1808
  name: CompanyVariableName;
@@ -2178,129 +1812,27 @@ interface CompanyVariable {
2178
1812
  updatedAt: string | Date;
2179
1813
  }
2180
1814
 
2181
- declare enum CompanyFeatureName {
2182
- DATE_LOCALIZATION = "DATE_LOCALIZATION"
2183
- }
1815
+ type CompanyFeatureName = 'DATE_LOCALIZATION';
2184
1816
  interface CompanyFeature {
2185
1817
  id: string;
2186
1818
  name: CompanyFeatureName;
2187
1819
  }
2188
1820
 
2189
- 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
- }
1821
+ type CompanyOptionName = 'AUTOCREATE_PRODUCTION_ORDER' | 'AUTOUPDATE_INVOICE' | 'PRODUCT_CATALOG' | 'HIDE_CUSTOMER_OVERDUE_BALANCE' | 'DISABLE_PRODUCT_DELETION' | 'DISABLE_AUTOREMOVE_QUOTE_DURING_ORDER_CONVERSION' | 'ONLY_ADMINS_CAN_DELETE_INVOICE' | 'ONLY_ADMINS_CAN_EDIT_ORDER_DATE' | 'VAT_DEFAULT_ZERO' | 'DEFAULT_DISCOUNT_AMOUNT' | 'NO_LETTERHEAD_DOCS' | 'SHOW_CUSTOM_FIELDS_IN_MAIN_TABLE' | 'LINES_PER_PAGE_INVOICE' | 'LINES_PER_PAGE_RENTAL_ORDER' | 'LINES_PER_PAGE_SALES_ORDER' | 'LINES_PER_PAGE_PURCHASE_ORDER' | 'LINES_PER_PAGE_QUOTATION' | 'LINES_PER_PAGE_DELIVERY_ORDER' | 'NO_FOOTER' | 'HIDE_DELIVERIES' | 'PRODUCT_ACCESS_BY_PERSONA' | 'SIMPLE_UI' | 'LANDSCAPE_DELIVERY_ORDERS' | 'MULTI_PAGE_DOCS' | 'SMALL_SOURCE_DOCS' | 'HIDE_DASHBOARD' | 'DESCRIPTION_LINE' | 'MOVEUP_TABLE' | 'CUSTOM_LINES_PER_PAGE_MULT' | 'MOVEDOWN_TABLE' | 'INVOICE_DOWNPAYMENT_DEDUCTION_PROPORTIONAL' | 'AUTO_DELIVER_SALES_ORDER' | 'AUTO_INVOICE_SALES_ORDER' | 'HIDE_CUSTOMER_FIELD_DELIVERY_JOB' | 'HIDE DISCOUNTS' | 'MOVEUP_TABLE_INVOICE' | 'HIDE_VAT_PERCENTAGE_ON_INVOICE' | 'REMOVE_BRAND' | 'MERGE_JOURNAL_ENTRIES' | 'MOVEDOWN_INVOICE' | 'BILL' | 'BILL_DEBITS_INVENTORY_ACCOUNT' | 'HIDE_DELIVERY_JOB_COST_LINES' | 'HIDE_DELIVERY_JOB_ADDRESS' | 'HIDE_INVOICE_FOR_SALES' | 'HIDE_MAINTAINANCE_ORDER' | 'PAYMENT_DOCGEN_SHOWS_JOURNAL_ENTRIES' | 'HIDE_EDIT_DELIVERY' | 'EXPENSE_VAT_ZERO' | 'SHOW_IN_STOCK_ON_DELIVERIES' | 'SHOW_SKU' | 'DELIVERY_COST' | 'AUTOMATION_TRIGGER_V2' | 'ACCESS_CONTROL_ADMIN_DEFAULT_UNALLOW' | 'REMOVE_QTY_IN_INVOICES' | 'DEFAULT_CUSTOM_ENTITY_SCHEMA_TYPE_DOCUMENT' | 'HIDE_ALL_REPORTS' | 'RETURN_SALES_ORDER' | 'SHOW_LINE_DISCOUNT';
2250
1822
  interface CompanyOption {
2251
1823
  id: string;
2252
1824
  name: CompanyOptionName;
2253
1825
  valueNumber?: number;
2254
1826
  }
2255
1827
 
2256
- 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
- }
1828
+ type CompanyPermissionName = 'ACCOUNTING' | 'INVENTORY' | 'MULTIWAREHOUSE' | 'RENTAL' | 'ECOMMERCE' | 'MANUFACTURING' | 'PRICELIST' | 'SERVICE' | 'QUOTE' | 'WORK_ORDER' | 'SERVICE_ORDER' | 'SERIAL_NUMBERS' | 'THERMAL_PRINTER' | 'THERMAL_PRINTER_WIRED' | 'CHECKOUT' | 'SERVICE_CHARGE' | 'SUBSIDIARY' | 'MULTICURRENCY' | 'CRM' | 'IMPORTS' | 'POINT_OF_SALE' | 'FLEET' | 'AUTOMATION' | 'DROPSHIP' | 'HUMAN_RESOURCES' | 'BUSINESS_INTELLIGENCE' | 'ARTIFICIAL_INTELLIGENCE' | 'RULES_ENGINE' | 'PROPERTY_MANAGEMENT' | 'CUSTOMER_SERVICE' | 'CHAT' | 'ACCESS_CONTROL' | 'QUALITY';
2291
1829
  interface CompanyPermission {
2292
1830
  id: string;
2293
1831
  name: CompanyPermissionName;
2294
1832
  }
2295
1833
 
2296
- declare enum CustomDocumentOrientation {
2297
- PORTRAIT = "PORTRAIT",
2298
- LANDSCAPE = "LANDSCAPE"
2299
- }
2300
- declare enum CustomDocumentType {
2301
- PDF = "PDF",
2302
- XLSX = "XLSX"
2303
- }
1834
+ type CustomDocumentOrientation = 'PORTRAIT' | 'LANDSCAPE';
1835
+ type CustomDocumentType = 'PDF' | 'XLSX';
2304
1836
  interface CustomDocument {
2305
1837
  id: string;
2306
1838
  headerPdfDocId?: string;
@@ -2359,10 +1891,7 @@ interface ChatSession {
2359
1891
  createdAt: string | Date;
2360
1892
  }
2361
1893
 
2362
- declare enum ChatMessageRole {
2363
- USER = "user",
2364
- AI = "ai"
2365
- }
1894
+ type ChatMessageRole = 'user' | 'ai';
2366
1895
  interface ChatMessage {
2367
1896
  id: string;
2368
1897
  role: ChatMessageRole;
@@ -2376,10 +1905,7 @@ interface ChatMessage {
2376
1905
  interface BusinessIntelligenceDashboard {
2377
1906
  }
2378
1907
 
2379
- declare enum RuleEventType {
2380
- AI_NOTIFICATION = "AI_NOTIFICATION",
2381
- BULK = "BULK"
2382
- }
1908
+ type RuleEventType = 'AI_NOTIFICATION' | 'BULK';
2383
1909
  interface Rule {
2384
1910
  id: string;
2385
1911
  name: string;
@@ -2399,9 +1925,7 @@ interface BusinessIntelligenceReport {
2399
1925
  rules: Partial<Rule>[];
2400
1926
  }
2401
1927
 
2402
- declare enum FieldName {
2403
- serialNumber = "serialNumber"
2404
- }
1928
+ type FieldName = 'serialNumber';
2405
1929
  interface CompanyAlias {
2406
1930
  id: string;
2407
1931
  entityType: EntityType;
@@ -2426,10 +1950,7 @@ interface ReturnInvoiceLine {
2426
1950
  id: string;
2427
1951
  }
2428
1952
 
2429
- declare enum IotHubPlatform {
2430
- WINDOWS = "WINDOWS",
2431
- LINUX = "LINUX"
2432
- }
1953
+ type IotHubPlatform = 'WINDOWS' | 'LINUX';
2433
1954
  interface IotHub {
2434
1955
  id: string;
2435
1956
  name: string;
@@ -3248,4 +2769,4 @@ declare const konversiAPI: {
3248
2769
 
3249
2770
  declare const Entity: typeof crudEndpoints;
3250
2771
 
3251
- export { type Account, AccountDefaultEnum, AccountSubtype, AccountType, type Activity, ActivityType, type Approval, type Approver, ApproverType, type Attendance, type AuditLog, AuditLogAction, type AutomationJob, AutomationJobStatus, type AutomationScript, AutomationScriptTrigger, type AutomationScriptTriggerEntity, AutomationScriptTriggerName, type BOMComponent, type BOMOperation, type BankAccount, type BankTransaction, type Bill, type BillLine, type BillOfMaterials, type BusinessIntelligenceDashboard, type BusinessIntelligenceReport, type Cart, type CartLine, type ChatMessage, ChatMessageRole, type ChatSession, type CompanyAlias, type CompanyFeature, CompanyFeatureName, type CompanyOption, CompanyOptionName, type CompanyPermission, CompanyPermissionName, type CompanyUser, type CompanyVariable, CompanyVariableName, type Contact, type Conversation, type ConversationMessage, type CostLine, Currency, type CustomDocument, CustomDocumentOrientation, CustomDocumentType, type CustomEntityField, type CustomEntityFieldPermission, CustomEntityFieldType, type CustomEntityFieldValue, type CustomEntityObject, type CustomEntitySchema, type CustomEntitySchemaPermission, CustomEntitySchemaType, type CustomField, type CustomReport, type Customer, type CustomerEvent, CustomerEventType, CustomerSourceChannel, DataType, Day, type Deal, type Delivery, type DeliveryJob, DeliveryJobStatus, type DeliveryLine, DeliveryStatus, DeliveryType, DepreciationPeriod, type Employee, Entity, EntityEvent, type EntityFieldPermission, type EntityObjectPermission, type EntityPermission, EntityType, type ExchangeRate, type Expense, type ExpenseLine, FieldName, type FixedAsset, type Form, FormLocation, type FuelEntry, type Geofence, type IdentifierGroup, type IdentifierToken, IdentifierTokenType, type ImportJob, type ImportJobRow, ImportJobStatus, type IncomingDelivery, type IncomingDeliveryLine, type IncomingPaymentMethod, type IncomingShipment, type InternalDelivery, type InternalDeliveryLine, InventoryCostFlow, type Invitation, type Invoice, type InvoiceApproval, type InvoiceLine, type IotDevice, IotDeviceType, type IotHub, IotHubPlatform, type IotJob, IotJobStatus, type JobCard, JobCardStatus, type JournalEntry, type JournalEntryLine, type Lease, LeasePaymentStatus, LifecycleStage, type MaintenanceOrder, type MaintenanceOrderLine, Module, type NotificationEntity, type Order, type OrderLine, type OutgoingDelivery, type OutgoingDeliveryLine, type OutgoingShipment, type Payment, PaymentGatewayType, PaymentMethodEnum, PaymentStatus, PaymentType, type PointOfSale, type Pricelist, type PricelistLine, type PrintJob, PrintJobStatus, PrintJobType, type Product, type ProductGroup, type ProductItem, type ProductLocation, type ProductLocationTransfer, type ProductSupplier, type ProductionOrder, type ProductionOrderLine, ProductionOrderStatus, type Property, type PropertyGroup, type PurchaseOrder, type PurchaseOrderApproval, type PurchaseOrderLine, type QualityCheck, QualityCheckStatus, type QualityCheckpoint, type Quote, type QuoteLine, type RentalOrder, type RentalOrderLine, type ReturnInvoice, type ReturnInvoiceLine, type ReturnSalesOrder, type ReturnSalesOrderLine, type Rule, RuleEventType, SalaryPeriod, type SalesOrder, type SalesOrderApproval, type SalesOrderLine, type SalesOrderLinePrintJob, SalesOrderType, type Shift, type Shipment, type StockAdjustment, StockAdjustmentType, type Store, type StoreProduct, type StoreProductAttribute, type StoreProductAttributeValue, type StoreProductAttributeValueMapping, type StoreProductGroup, type StoreProductVariant, type StoreUser, type Subsidiary, type Supplier, type TelemetryAttribute, TelemetryAttributeKey, type TelemetryEvent, type ThermalPrinter, type UnitConversion, type User, type UserAction, UserActionType, type UserLog, type UserPermission, UserPermissionName, type UserPersona, type UserPersonaCustomSchemaPermission, UserPersonaCustomSchemaPermissionType, type UserPersonaEntityAccessStatus, type UserPersonaEntityPermission, UserPersonaEntityPermissionType, type UserPersonaProductPermission, type UserPersonaWarehousePermission, type Vehicle, type VehicleTelemetry, type VehicleTire, type View, type Warehouse, type WarehouseProduct, type WebComponent, type WebComponentSlot, WebComponentSlotName, type WhatsappAccount, type Workstation, type WorkstationProduct, type WorkstationTransfer, createCustomObject, createObject, konversiAPI as default, deleteCustomObject, deleteObject, getAllObjects, getObjectById, runScript, updateObject };
2772
+ export { type Account, type AccountDefaultEnum, type AccountSubtype, type AccountType, type Activity, type ActivityType, type Approval, type Approver, type ApproverType, type Attendance, type AuditLog, type AuditLogAction, type AutomationJob, type AutomationJobStatus, type AutomationScript, type AutomationScriptTrigger, type AutomationScriptTriggerEntity, type AutomationScriptTriggerName, type BOMComponent, type BOMOperation, type BankAccount, type BankTransaction, type Bill, type BillLine, type BillOfMaterials, type BusinessIntelligenceDashboard, type BusinessIntelligenceReport, type Cart, type CartLine, type ChatMessage, type ChatMessageRole, type ChatSession, type CompanyAlias, type CompanyFeature, type CompanyFeatureName, type CompanyOption, type CompanyOptionName, type CompanyPermission, type CompanyPermissionName, type CompanyUser, type CompanyVariable, type CompanyVariableName, type Contact, type Conversation, type ConversationMessage, type CostLine, type Currency, type CustomDocument, type CustomDocumentOrientation, type CustomDocumentType, type CustomEntityField, type CustomEntityFieldPermission, type CustomEntityFieldType, type CustomEntityFieldValue, type CustomEntityObject, type CustomEntitySchema, type CustomEntitySchemaPermission, type CustomEntitySchemaType, type CustomField, type CustomReport, type Customer, type CustomerEvent, type CustomerEventType, type CustomerSourceChannel, type DataType, type Day, type Deal, type Delivery, type DeliveryJob, type DeliveryJobStatus, type DeliveryLine, type DeliveryStatus, type DeliveryType, type DepreciationPeriod, type Employee, Entity, type EntityEvent, type EntityFieldPermission, type EntityObjectPermission, type EntityPermission, type EntityType, type ExchangeRate, type Expense, type ExpenseLine, type FieldName, type FixedAsset, type Form, type FormLocation, type FuelEntry, type Geofence, type IdentifierGroup, type IdentifierToken, type IdentifierTokenType, type ImportJob, type ImportJobRow, type ImportJobStatus, type IncomingDelivery, type IncomingDeliveryLine, type IncomingPaymentMethod, type IncomingShipment, type InternalDelivery, type InternalDeliveryLine, type InventoryCostFlow, type Invitation, type Invoice, type InvoiceApproval, type InvoiceLine, type IotDevice, type IotDeviceType, type IotHub, type IotHubPlatform, type IotJob, type IotJobStatus, type JobCard, type JobCardStatus, type JournalEntry, type JournalEntryLine, type Lease, type LeasePaymentStatus, type LifecycleStage, type MaintenanceOrder, type MaintenanceOrderLine, type Module, type NotificationEntity, type Order, type OrderLine, type OutgoingDelivery, type OutgoingDeliveryLine, type OutgoingShipment, type Payment, type PaymentGatewayType, type PaymentMethodEnum, type PaymentStatus, type PaymentType, type PointOfSale, type Pricelist, type PricelistLine, type PrintJob, type PrintJobStatus, type PrintJobType, type Product, type ProductGroup, type ProductItem, type ProductLocation, type ProductLocationTransfer, type ProductSupplier, type ProductionOrder, type ProductionOrderLine, type ProductionOrderStatus, type Property, type PropertyGroup, type PurchaseOrder, type PurchaseOrderApproval, type PurchaseOrderLine, type QualityCheck, type QualityCheckStatus, type QualityCheckpoint, type Quote, type QuoteLine, type RentalOrder, type RentalOrderLine, type ReturnInvoice, type ReturnInvoiceLine, type ReturnSalesOrder, type ReturnSalesOrderLine, type Rule, type RuleEventType, type SalaryPeriod, type SalesOrder, type SalesOrderApproval, type SalesOrderLine, type SalesOrderLinePrintJob, type SalesOrderType, type Shift, type Shipment, type StockAdjustment, type StockAdjustmentType, type Store, type StoreProduct, type StoreProductAttribute, type StoreProductAttributeValue, type StoreProductAttributeValueMapping, type StoreProductGroup, type StoreProductVariant, type StoreUser, type Subsidiary, type Supplier, type TelemetryAttribute, type TelemetryAttributeKey, type TelemetryEvent, type ThermalPrinter, type UnitConversion, type User, type UserAction, type UserActionType, type UserLog, type UserPermission, type UserPermissionName, type UserPersona, type UserPersonaCustomSchemaPermission, type UserPersonaCustomSchemaPermissionType, type UserPersonaEntityAccessStatus, type UserPersonaEntityPermission, type UserPersonaEntityPermissionType, type UserPersonaProductPermission, type UserPersonaWarehousePermission, type Vehicle, type VehicleTelemetry, type VehicleTire, type View, type Warehouse, type WarehouseProduct, type WebComponent, type WebComponentSlot, type WebComponentSlotName, type WhatsappAccount, type Workstation, type WorkstationProduct, type WorkstationTransfer, createCustomObject, createObject, konversiAPI as default, deleteCustomObject, deleteObject, getAllObjects, getObjectById, runScript, updateObject };