@konversi/konversi-client 1.4.10 → 1.5.0

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
@@ -1,6 +1,2115 @@
1
1
  import * as axios from 'axios';
2
2
  import { AxiosRequestConfig } from 'axios';
3
3
 
4
+ interface Contact {
5
+ id: string;
6
+ firstName: string;
7
+ lastName?: string;
8
+ companyName?: string;
9
+ jobTitle?: string;
10
+ email?: string;
11
+ website?: string;
12
+ mobile?: string;
13
+ whatsApp?: string;
14
+ phone?: string;
15
+ address?: string;
16
+ notes: string;
17
+ taxId?: string;
18
+ paymentTerm?: string;
19
+ linkedin?: string;
20
+ googleMaps?: string;
21
+ facebook: string;
22
+ twitter: string;
23
+ instagram: string;
24
+ createdDate: string | Date;
25
+ createdAt: string | Date;
26
+ updatedDate: string | Date;
27
+ updatedAt: string | Date;
28
+ customFields: any;
29
+ isDeleted: boolean;
30
+ }
31
+
32
+ declare enum Currency {
33
+ IDR = "IDR",
34
+ USD = "USD",
35
+ EUR = "EUR",
36
+ AUD = "AUD",
37
+ CNY = "CNY",
38
+ SGD = "SGD",
39
+ VND = "VND",
40
+ THB = "THB",
41
+ MYR = "MYR",
42
+ PHP = "PHP",
43
+ KHR = "KHR",
44
+ MMK = "MMK",
45
+ BND = "BND"
46
+ }
47
+
48
+ interface Order {
49
+ id: string;
50
+ num: number;
51
+ numMonthly: number;
52
+ numYearly: number;
53
+ identifier: string;
54
+ currency: Currency;
55
+ date?: string;
56
+ dueDate?: string;
57
+ subtotal: number;
58
+ discountPercentage: number;
59
+ discountAmount: number;
60
+ vatTaxPercentage: number;
61
+ serviceChargePercentage: number;
62
+ importTaxPercentage: number;
63
+ deliveryCost: number;
64
+ totalAmount: number;
65
+ customFields: any;
66
+ memo: string;
67
+ createdAt: string | Date;
68
+ files: string[];
69
+ updatedAt: string | Date;
70
+ subsidiary: any;
71
+ }
72
+
73
+ interface CostLine {
74
+ id: string;
75
+ description: string;
76
+ amount: number;
77
+ deliveryJob: DeliveryJob;
78
+ }
79
+
80
+ interface FuelEntry {
81
+ id: string;
82
+ vehicle: Vehicle;
83
+ quantity: number;
84
+ unitPrice: number;
85
+ odometer: number;
86
+ time?: string | Date;
87
+ createdAt: string | Date;
88
+ }
89
+
90
+ interface VehicleTelemetry {
91
+ id: string;
92
+ latitude: number;
93
+ longitude: number;
94
+ speed: number;
95
+ odometer: number;
96
+ createdAt: string | Date;
97
+ vehicle: Vehicle;
98
+ }
99
+
100
+ interface OrderLine {
101
+ id: string;
102
+ lineNumber: number;
103
+ description: string;
104
+ quantity: number;
105
+ unitPrice: number;
106
+ discountPercentage: number;
107
+ totalAmount?: number;
108
+ createdAt: string | Date;
109
+ updatedAt: string | Date;
110
+ customFields: any;
111
+ }
112
+
113
+ interface SalesOrderLinePrintJob {
114
+ id: string;
115
+ salesOrderLine: SalesOrderLine;
116
+ printJob: PrintJob;
117
+ }
118
+
119
+ interface SalesOrderLine extends OrderLine {
120
+ salesOrder: SalesOrder;
121
+ product: Product;
122
+ salesOrderLinePrintJobs: SalesOrderLinePrintJob[];
123
+ averageCost?: number;
124
+ }
125
+
126
+ interface InvoiceLine extends OrderLine {
127
+ invoice: Invoice;
128
+ product: Product;
129
+ productItem: ProductItem;
130
+ startDate?: string | Date;
131
+ endDate?: string | Date;
132
+ dailyUnitPrice?: number;
133
+ }
134
+
135
+ interface PropertyGroup {
136
+ id: string;
137
+ name: string;
138
+ mapImage?: string;
139
+ properties: Property[];
140
+ }
141
+
142
+ interface MaintenanceOrderLine extends OrderLine {
143
+ id: string;
144
+ product: Product;
145
+ maintenanceOrder: MaintenanceOrder;
146
+ }
147
+
148
+ interface MaintenanceOrder extends Order {
149
+ id: string;
150
+ maintenanceOrderLines: MaintenanceOrderLine[];
151
+ vehicle: Vehicle;
152
+ property: Property;
153
+ customFields: any;
154
+ }
155
+
156
+ interface Property {
157
+ id: string;
158
+ name: string;
159
+ files: string[];
160
+ mapPolygon: number[][];
161
+ propertyGroup: PropertyGroup;
162
+ leases: Lease[];
163
+ maintenanceOrders: MaintenanceOrder[];
164
+ }
165
+
166
+ declare enum LeasePaymentStatus {
167
+ NOT_INVOICED = "NOT_INVOICED",
168
+ PARTIALLY_INVOICED = "PARTIALLY_INVOICED",
169
+ FULLY_INVOICED = "FULLY_INVOICED",
170
+ PARTIALLY_PAID = "PARTIALLY_PAID",
171
+ FULLY_PAID = "FULLY_PAID",
172
+ OVERDUE = "OVERDUE"
173
+ }
174
+ interface Lease {
175
+ id: string;
176
+ properties: Property[];
177
+ customer: Customer;
178
+ startDate?: string;
179
+ endDate?: string;
180
+ files: string[];
181
+ totalAmount: number;
182
+ paymentStatus?: LeasePaymentStatus;
183
+ customFields: any;
184
+ isProfitSharing: boolean;
185
+ profitSharingPercentage: number;
186
+ invoices: Invoice[];
187
+ createdAt: string | Date;
188
+ createdBy: User;
189
+ updatedAt: string | Date;
190
+ }
191
+
192
+ interface RentalOrderLine extends OrderLine {
193
+ id: string;
194
+ startDate?: string | Date;
195
+ endDate?: string | Date;
196
+ dailyUnitPrice?: number;
197
+ rentalOrder: RentalOrder;
198
+ productItem: ProductItem;
199
+ product: Product;
200
+ }
201
+
202
+ declare enum DeliveryStatus {
203
+ PENDING = "PENDING",
204
+ IN_PROGRESS = "IN_PROGRESS",
205
+ COMPLETED = "COMPLETED",
206
+ CANCELLED = "CANCELLED"
207
+ }
208
+ interface Delivery {
209
+ id: string;
210
+ num: number;
211
+ status: DeliveryStatus;
212
+ numMonthly: number;
213
+ numYearly: number;
214
+ identifier: string;
215
+ date?: string;
216
+ customFields: any;
217
+ memo: string;
218
+ }
219
+
220
+ interface DeliveryLine {
221
+ id: string;
222
+ quantity: number;
223
+ lineNumber: number;
224
+ description: string;
225
+ customFields: any;
226
+ createdAt: string | Date;
227
+ }
228
+
229
+ interface OutgoingDeliveryLine extends DeliveryLine {
230
+ product: Product;
231
+ outgoingDelivery: OutgoingDelivery;
232
+ productItem: ProductItem;
233
+ }
234
+
235
+ interface WarehouseProduct {
236
+ id: string;
237
+ warehouse: Warehouse;
238
+ product: Product;
239
+ inStock: number;
240
+ }
241
+
242
+ interface QualityCheckpoint {
243
+ id: string;
244
+ title: string;
245
+ instructions: string;
246
+ order: number;
247
+ isImageRequired: boolean;
248
+ bomOperation: BOMOperation;
249
+ qualityChecks: QualityCheck[];
250
+ }
251
+
252
+ declare enum QualityCheckStatus {
253
+ PENDING = "PENDING",
254
+ PASS = "PASS",
255
+ FAIL = "FAIL"
256
+ }
257
+ interface QualityCheck {
258
+ id: string;
259
+ status: QualityCheckStatus;
260
+ notes: string;
261
+ jobCard: JobCard;
262
+ qualityCheckpoint: QualityCheckpoint;
263
+ createdAt: string | Date;
264
+ updatedAt: string | Date;
265
+ }
266
+
267
+ declare enum JobCardStatus {
268
+ PENDING = "PENDING",
269
+ IN_PROGRESS = "IN_PROGRESS",
270
+ COMPLETED = "COMPLETED",
271
+ CANCELED = "CANCELED"
272
+ }
273
+ interface JobCard {
274
+ id: string;
275
+ order: number;
276
+ num: number;
277
+ numMonthly: number;
278
+ numYearly: number;
279
+ identifier: string;
280
+ title: string;
281
+ status: JobCardStatus;
282
+ workstation: Workstation;
283
+ productionOrder: ProductionOrder;
284
+ qualityChecks: QualityCheck[];
285
+ bomOperation: BOMOperation;
286
+ createdAt: string | Date;
287
+ updatedAt: string | Date;
288
+ customFields: any;
289
+ }
290
+
291
+ declare enum ProductionOrderStatus {
292
+ 'PENDING' = "PENDING",
293
+ 'IN_PROGRESS' = "IN_PROGRESS",
294
+ 'COMPLETED' = "COMPLETED",
295
+ 'CANCELED' = "CANCELED"
296
+ }
297
+ interface ProductionOrder {
298
+ id: string;
299
+ product: Product;
300
+ num: number;
301
+ numMonthly: number;
302
+ numYearly: number;
303
+ identifier?: string;
304
+ status: ProductionOrderStatus;
305
+ startDate: string | Date;
306
+ endDate: string | Date;
307
+ plannedQuantity: number;
308
+ quantity: number;
309
+ productItems: ProductItem[];
310
+ inputProductItems: ProductItem[];
311
+ productionOrderLines: ProductionOrderLine[];
312
+ billOfMaterials: BillOfMaterials;
313
+ jobCards: JobCard[];
314
+ warehouse: Warehouse;
315
+ customFields: any;
316
+ createdAt: string | Date;
317
+ }
318
+
319
+ interface ProductionOrderLine {
320
+ id: string;
321
+ product: Product;
322
+ quantity: number;
323
+ productionOrder: ProductionOrder;
324
+ bomComponent: BOMComponent;
325
+ createdAt: string | Date;
326
+ }
327
+
328
+ interface BOMComponent {
329
+ id: string;
330
+ product: Product;
331
+ quantity: number;
332
+ billOfMaterials: BillOfMaterials;
333
+ productionOrderLines: ProductionOrderLine[];
334
+ }
335
+
336
+ interface BillOfMaterials {
337
+ id: string;
338
+ name: string;
339
+ product: Product;
340
+ quantity: number;
341
+ bomComponents: BOMComponent[];
342
+ productionOrders: ProductionOrder[];
343
+ bomOperations: BOMOperation[];
344
+ }
345
+
346
+ interface BOMOperation {
347
+ id: string;
348
+ order: number;
349
+ name: string;
350
+ instructionText: string;
351
+ instructionFile?: string;
352
+ workstation: Workstation;
353
+ parentBomOperation?: BOMOperation;
354
+ childBomOperations: BOMOperation[];
355
+ billOfMaterials: BillOfMaterials;
356
+ jobCards: JobCard[];
357
+ qualityCheckpoints: QualityCheckpoint[];
358
+ }
359
+
360
+ interface WorkstationProduct {
361
+ id: string;
362
+ workstation: Workstation;
363
+ product: Product;
364
+ inStock: number;
365
+ }
366
+
367
+ interface WorkstationTransfer {
368
+ id: string;
369
+ sourceWorkstation: Workstation;
370
+ destinationWorkstation: Workstation;
371
+ product: Product;
372
+ quantity: number;
373
+ createdBy: User;
374
+ createdAt: string | Date;
375
+ }
376
+
377
+ interface Workstation {
378
+ id: string;
379
+ name: string;
380
+ bomOperations: BOMOperation[];
381
+ jobCards: JobCard[];
382
+ productLocations: ProductLocation[];
383
+ warehouse: Warehouse;
384
+ createdAt: string | Date;
385
+ workstationProducts: WorkstationProduct[];
386
+ workstationTransfersSource: WorkstationTransfer[];
387
+ workstationTransfersDestination: WorkstationTransfer[];
388
+ }
389
+
390
+ interface ProductLocationTransfer {
391
+ id: string;
392
+ productItem: ProductItem;
393
+ sourceProductLocation: ProductLocation;
394
+ destinationProductLocation: ProductLocation;
395
+ createdAt: string | Date;
396
+ }
397
+
398
+ interface ProductLocation {
399
+ id: string;
400
+ name: string;
401
+ warehouse: Warehouse;
402
+ workstation: Workstation;
403
+ productItems: ProductItem[];
404
+ createdAt: string | Date;
405
+ productLocationTransfersSource: ProductLocationTransfer[];
406
+ productLocationTransfersDestination: ProductLocationTransfer[];
407
+ }
408
+
409
+ interface Shipment {
410
+ id: string;
411
+ date: string | Date;
412
+ quantity: number;
413
+ description: string;
414
+ }
415
+
416
+ declare enum DepreciationPeriod {
417
+ MONTHLY = "MONTHLY",
418
+ YEARLY = "YEARLY"
419
+ }
420
+ interface FixedAsset {
421
+ id: string;
422
+ name: string;
423
+ date?: string;
424
+ description: string;
425
+ purchasePrice: number;
426
+ nonDepreciableValue: number;
427
+ quantity: number;
428
+ depreciationDuration: number;
429
+ depreciationPeriod?: DepreciationPeriod;
430
+ assetAccount: Account;
431
+ depreciationAccount: Account;
432
+ expenseAccount: Account;
433
+ journalEntries: JournalEntry[];
434
+ }
435
+
436
+ interface ExpenseLine extends OrderLine {
437
+ product: Product;
438
+ account: Account;
439
+ expense: Expense;
440
+ }
441
+
442
+ declare enum EntityType {
443
+ CUSTOMER = "CUSTOMER",
444
+ SUPPLIER = "SUPPLIER",
445
+ ACCOUNT = "ACCOUNT",
446
+ PRODUCT = "PRODUCT",
447
+ SERVICE = "SERVICE",
448
+ PRODUCT_ITEM = "PRODUCT_ITEM",
449
+ RENTAL_ORDER = "RENTAL_ORDER",
450
+ SALES_ORDER = "SALES_ORDER",
451
+ SALES_ORDER_LINE = "SALES_ORDER_LINE",
452
+ WORK_ORDER = "WORK_ORDER",
453
+ WORK_ORDER_LINE = "WORK_ORDER_LINE",
454
+ SERVICE_ORDER = "SERVICE_ORDER",
455
+ SERVICE_ORDER_LINE = "SERVICE_ORDER_LINE",
456
+ PURCHASE_ORDER = "PURCHASE_ORDER",
457
+ PURCHASE_ORDER_LINE = "PURCHASE_ORDER_LINE",
458
+ INVOICE = "INVOICE",
459
+ INVOICE_LINE = "INVOICE_LINE",
460
+ QUOTE = "QUOTE",
461
+ QUOTE_LINE = "QUOTE_LINE",
462
+ OUTGOING_DELIVERY = "OUTGOING_DELIVERY",
463
+ OUTGOING_DELIVERY_LINE = "OUTGOING_DELIVERY_LINE",
464
+ INCOMING_DELIVERY = "INCOMING_DELIVERY",
465
+ INCOMING_DELIVERY_LINE = "INCOMING_DELIVERY_LINE",
466
+ INTERNAL_DELIVERY = "INTERNAL_DELIVERY",
467
+ STOCK_ADJUSTMENT = "STOCK_ADJUSTMENT",
468
+ PAYMENT = "PAYMENT",
469
+ EXPENSE = "EXPENSE",
470
+ PRODUCTION_ORDER = "PRODUCTION_ORDER",
471
+ PRODUCTION_ORDER_LINE = "PRODUCTION_ORDER_LINE",
472
+ JOB_CARD = "JOB_CARD",
473
+ DELIVERY_JOB = "DELIVERY_JOB",
474
+ VEHICLE = "VEHICLE",
475
+ MAINTENANCE_ORDER = "MAINTENANCE_ORDER",
476
+ MAINTENANCE_ORDER_LINE = "MAINTENANCE_ORDER_LINE",
477
+ FUEL_ENTRY = "FUEL_ENTRY",
478
+ USER = "USER",
479
+ IDENTIFIER_GROUP = "IDENTIFIER_GROUP",
480
+ WAREHOUSE = "WAREHOUSE",
481
+ POINT_OF_SALE = "POINT_OF_SALE",
482
+ BANK_ACCOUNT = "BANK_ACCOUNT",
483
+ BANK_TRANSACTION = "BANK_TRANSACTION",
484
+ JOURNAL_ENTRY = "JOURNAL_ENTRY",
485
+ FIXED_ASSET = "FIXED_ASSET",
486
+ RULE = "RULE",
487
+ BILL = "BILL",
488
+ BILL_LINE = "BILL_LINE",
489
+ LEASE = "LEASE",
490
+ PROPERTY = "PROPERTY",
491
+ PRICELIST = "PRICELIST",
492
+ PRICELIST_LINE = "PRICELIST_LINE",
493
+ CUSTOM_REPORT = "CUSTOM_REPORT",
494
+ PRODUCT_LOCATION = "PRODUCT_LOCATION",
495
+ BOM_COMPONENT = "BOM_COMPONENT",
496
+ BOM_OPERATION = "BOM_OPERATION",
497
+ RETURN_SALES_ORDER = "RETURN_SALES_ORDER",
498
+ RETURN_INVOICE = "RETURN_INVOICE"
499
+ }
500
+ declare enum DataType {
501
+ TEXT = "TEXT",
502
+ NUMBER = "NUMBER",
503
+ CURRENCY = "CURRENCY",
504
+ DATE = "DATE",
505
+ DATETIME = "DATETIME",
506
+ DROPDOWN = "DROPDOWN",
507
+ SELECT = "SELECT",
508
+ JSON = "JSON",
509
+ BOOLEAN = "BOOLEAN",
510
+ FILE_ARRAY = "FILE_ARRAY",
511
+ REFERENCE = "REFERENCE"
512
+ }
513
+ interface CustomField {
514
+ id: string;
515
+ entityType: EntityType;
516
+ dataType: DataType;
517
+ label: string;
518
+ key: string;
519
+ referenceEntityType?: EntityType;
520
+ jsonSchema?: any;
521
+ dropdownOptions: string[];
522
+ docgenFieldName?: string;
523
+ showOnMainTable: boolean;
524
+ isHidden: boolean;
525
+ isReadOnly: boolean;
526
+ isRequired: boolean;
527
+ }
528
+
529
+ interface PointOfSale {
530
+ id: string;
531
+ name: string;
532
+ identifierGroup: IdentifierGroup;
533
+ warehouse: Warehouse;
534
+ salesOrders: SalesOrder[];
535
+ }
536
+
537
+ interface IdentifierGroup {
538
+ id: string;
539
+ name: string;
540
+ nextNum: number;
541
+ nextNumMonthly: number;
542
+ nextNumYearly: number;
543
+ identifierTokens: IdentifierToken[];
544
+ entityType?: EntityType;
545
+ pointOfSales: PointOfSale[];
546
+ salesOrders: SalesOrder[];
547
+ quotes: Quote[];
548
+ invoices: Invoice[];
549
+ purchaseOrders: PurchaseOrder[];
550
+ bills: Bill[];
551
+ }
552
+
553
+ declare enum IdentifierTokenType {
554
+ SLASH = "SLASH",
555
+ DASH = "DASH",
556
+ UNDERSCORE = "UNDERSCORE",
557
+ DATE = "DATE",
558
+ YEAR = "YEAR",
559
+ YEAR_TWO_DIGITS = "YEAR_TWO_DIGITS",
560
+ MONTH = "MONTH",
561
+ MONTH_ROMAN = "MONTH_ROMAN",
562
+ DOCUMENT_NUMBER = "DOCUMENT_NUMBER",
563
+ DOCUMENT_NUMBER_YEARLY = "DOCUMENT_NUMBER_YEARLY",
564
+ DOCUMENT_NUMBER_MONTHLY = "DOCUMENT_NUMBER_MONTHLY",
565
+ COMPANY_PREFIX = "COMPANY_PREFIX",
566
+ TEXT = "TEXT"
567
+ }
568
+ interface IdentifierToken {
569
+ id: string;
570
+ order: number;
571
+ type: IdentifierTokenType;
572
+ text?: string;
573
+ entityType?: EntityType;
574
+ numberPadding: number;
575
+ subsidiary: Subsidiary;
576
+ identifierGroup: IdentifierGroup;
577
+ }
578
+
579
+ interface Subsidiary {
580
+ id: string;
581
+ name: string;
582
+ address: string;
583
+ documentPrefix?: string;
584
+ salesOrders: SalesOrder[];
585
+ rentalOrders: RentalOrder[];
586
+ deliveryJobs: DeliveryJob[];
587
+ quotes: Quote[];
588
+ purchaseOrders: PurchaseOrder[];
589
+ invoices: Invoice[];
590
+ expenses: Expense[];
591
+ identifierTokens: IdentifierToken[];
592
+ outgoingDeliveries: OutgoingDelivery[];
593
+ incomingDeliveries: OutgoingDelivery[];
594
+ }
595
+
596
+ interface Expense extends Order {
597
+ pphAmount: number;
598
+ supplier: Supplier;
599
+ purchaseOrder: PurchaseOrder;
600
+ expenseLines: ExpenseLine[];
601
+ account: Account;
602
+ createdBy: User;
603
+ journalEntry: JournalEntry;
604
+ subsidiary: Subsidiary;
605
+ payments: Payment[];
606
+ createdAt: string | Date;
607
+ updatedAt: string | Date;
608
+ }
609
+
610
+ interface BankAccount {
611
+ id: string;
612
+ name: string;
613
+ accountNumber?: string;
614
+ currentBalance: number;
615
+ account: Account;
616
+ bankTransactions: BankTransaction[];
617
+ }
618
+
619
+ interface BankTransaction {
620
+ id: string;
621
+ bankAccount: BankAccount;
622
+ date?: string;
623
+ amount: number;
624
+ memo: string;
625
+ customFields: any;
626
+ payments: Payment[];
627
+ createdAt: string | Date;
628
+ }
629
+
630
+ declare enum PaymentMethodEnum {
631
+ CASH = "CASH",
632
+ DEBIT_CARD = "DEBIT_CARD",
633
+ CREDIT_CARD = "CREDIT_CARD",
634
+ QRIS = "QRIS"
635
+ }
636
+ declare enum PaymentType {
637
+ IN = "IN",
638
+ OUT = "OUT"
639
+ }
640
+ interface Payment {
641
+ id: string;
642
+ type: PaymentType;
643
+ paymentMethod?: PaymentMethodEnum;
644
+ incomingPaymentMethod: IncomingPaymentMethod;
645
+ date?: string;
646
+ amount: number;
647
+ memo: string;
648
+ invoice: Invoice;
649
+ expense: Expense;
650
+ bill: Bill;
651
+ currency: Currency;
652
+ bankTransaction: BankTransaction;
653
+ customFields: any;
654
+ journalEntry: JournalEntry;
655
+ createdBy: User;
656
+ }
657
+
658
+ declare enum PaymentGatewayType {
659
+ QRIS = "QRIS"
660
+ }
661
+ interface IncomingPaymentMethod {
662
+ id: string;
663
+ name: string;
664
+ payments: Payment[];
665
+ paymentGatewayType?: PaymentGatewayType;
666
+ account: Account;
667
+ }
668
+
669
+ declare enum AccountType {
670
+ DIVIDEND = "DIVIDEND",
671
+ EXPENSE = "EXPENSE",
672
+ ASSET = "ASSET",
673
+ LIABILITY = "LIABILITY",
674
+ EQUITY = "EQUITY",
675
+ REVENUE = "REVENUE"
676
+ }
677
+ declare enum AccountDefaultEnum {
678
+ PRODUCT_INVENTORY = "PRODUCT_INVENTORY",
679
+ PRODUCT_EXPENSE = "PRODUCT_EXPENSE",
680
+ PRODUCT_INCOME = "PRODUCT_INCOME",
681
+ REVENUE = "REVENUE",
682
+ EXPENSE = "EXPENSE",
683
+ ACCOUNTS_RECEIVABLE = "ACCOUNTS_RECEIVABLE",
684
+ ACCOUNTS_PAYABLE = "ACCOUNTS_PAYABLE",
685
+ EXCHANGE_GAIN_OR_LOSS = "EXCHANGE_GAIN_OR_LOSS",
686
+ VAT_INPUT = "VAT_INPUT",
687
+ VAT_OUTPUT = "VAT_OUTPUT"
688
+ }
689
+ declare enum AccountSubtype {
690
+ CASH_AND_BANK = "CASH_AND_BANK",
691
+ CURRENT_ASSETS = "CURRENT_ASSETS",
692
+ NON_CURRENT_ASSETS = "NON_CURRENT_ASSETS",
693
+ CURRENT_LIABILITIES = "CURRENT_LIABILITIES",
694
+ NON_CURRENT_LIABILITIES = "NON_CURRENT_LIABILITIES",
695
+ OTHER_INCOME = "OTHER_INCOME",
696
+ COST_OF_REVENUE = "COST_OF_REVENUE",
697
+ DEPRECIATION = "DEPRECIATION",
698
+ OTHER_EXPENSES = "OTHER_EXPENSES"
699
+ }
700
+ interface Account {
701
+ id: string;
702
+ code: string;
703
+ name: string;
704
+ type: AccountType;
705
+ subtype?: AccountSubtype;
706
+ default?: AccountDefaultEnum;
707
+ inventoryProducts: Product[];
708
+ incomeProducts: Product[];
709
+ expenseProducts: Product[];
710
+ assetFixedAssets: FixedAsset[];
711
+ depreciationFixedAssets: FixedAsset[];
712
+ expenseFixedAssets: FixedAsset[];
713
+ journalEntryLines: JournalEntryLine[];
714
+ incomingPaymentMethods: IncomingPaymentMethod[];
715
+ expenses: Expense[];
716
+ expenseLines: ExpenseLine[];
717
+ bankAccounts: BankAccount[];
718
+ }
719
+
720
+ interface JournalEntryLine {
721
+ id: string;
722
+ account: Account;
723
+ description: string;
724
+ debit: number;
725
+ credit: number;
726
+ journalEntry: JournalEntry;
727
+ }
728
+
729
+ interface JournalEntry {
730
+ id: string;
731
+ date?: string;
732
+ journalEntryLines: JournalEntryLine[];
733
+ purchaseOrder: PurchaseOrder;
734
+ bill: Bill;
735
+ salesOrder: SalesOrder;
736
+ expense: Expense;
737
+ payment: Payment;
738
+ invoice: Invoice;
739
+ fixedAsset: FixedAsset;
740
+ createdBy: User;
741
+ memo: string;
742
+ isAutomated: boolean;
743
+ createdAt: string | Date;
744
+ updatedAt: string | Date;
745
+ }
746
+
747
+ interface BillLine extends OrderLine {
748
+ id: string;
749
+ bill: Bill;
750
+ product: Product;
751
+ }
752
+
753
+ interface Bill extends Order {
754
+ id: string;
755
+ supplier: Supplier;
756
+ downpayment: number;
757
+ downpaymentDeductions: number;
758
+ journalEntry: JournalEntry;
759
+ identifierGroup: IdentifierGroup;
760
+ purchaseOrder: PurchaseOrder;
761
+ billLines: BillLine[];
762
+ payments: Payment[];
763
+ }
764
+
765
+ interface IncomingDeliveryLine extends DeliveryLine {
766
+ product: Product;
767
+ incomingDelivery: IncomingDelivery;
768
+ productItem: ProductItem;
769
+ }
770
+
771
+ interface IncomingDelivery extends Delivery {
772
+ incomingDeliveryLines: IncomingDeliveryLine[];
773
+ destinationWarehouse: Warehouse;
774
+ purchaseOrder: PurchaseOrder;
775
+ salesOrder: SalesOrder;
776
+ supplier: Supplier;
777
+ customer: Customer;
778
+ subsidiary: Subsidiary;
779
+ rentalOrder: RentalOrder;
780
+ createdBy: User;
781
+ }
782
+
783
+ interface PricelistLine {
784
+ id: string;
785
+ pricelist: Pricelist;
786
+ product: Product;
787
+ price?: number;
788
+ customFields: any;
789
+ }
790
+
791
+ interface Pricelist {
792
+ id: string;
793
+ name: string;
794
+ customers: Customer[];
795
+ suppliers: Supplier[];
796
+ pricelistLines: PricelistLine[];
797
+ customFields: any;
798
+ currency: Currency;
799
+ }
800
+
801
+ interface ProductSupplier {
802
+ id: string;
803
+ quantity?: number;
804
+ price?: number;
805
+ product: Product;
806
+ supplier: Supplier;
807
+ }
808
+
809
+ interface Supplier extends Contact {
810
+ purchaseOrders: PurchaseOrder;
811
+ bills: Bill[];
812
+ expenses: Expense[];
813
+ incomingDeliveries: IncomingDelivery[];
814
+ importTaxPercentage: number;
815
+ pricelist: Pricelist;
816
+ productSuppliers: ProductSupplier[];
817
+ }
818
+
819
+ interface PurchaseOrderLine extends OrderLine {
820
+ purchaseOrder: PurchaseOrder;
821
+ product: Product;
822
+ }
823
+
824
+ interface Approval {
825
+ id: string;
826
+ createdAt: string | Date;
827
+ updatedAt?: string | Date;
828
+ }
829
+
830
+ interface PurchaseOrderApproval extends Approval {
831
+ purchaseOrder: PurchaseOrder;
832
+ user: User;
833
+ }
834
+
835
+ interface PurchaseOrder extends Order {
836
+ exchangeRate: number;
837
+ supplier: Supplier;
838
+ purchaseOrderLines: PurchaseOrderLine[];
839
+ createdBy: User;
840
+ expenses: Expense[];
841
+ bills: Bill[];
842
+ incomingShipments: IncomingShipment[];
843
+ incomingDeliveries: IncomingDelivery[];
844
+ purchaseOrderApprovals: PurchaseOrderApproval;
845
+ journalEntry: JournalEntry;
846
+ identifierGroup: IdentifierGroup;
847
+ subsidiary: Subsidiary;
848
+ dropshipSalesOrder: SalesOrder;
849
+ }
850
+
851
+ interface IncomingShipment extends Shipment {
852
+ id: string;
853
+ destinationWarehouse: Warehouse;
854
+ product: Product;
855
+ purchaseOrder: PurchaseOrder;
856
+ }
857
+
858
+ interface OutgoingShipment extends Shipment {
859
+ id: string;
860
+ sourceWarehouse: Warehouse;
861
+ product: Product;
862
+ salesOrder: SalesOrder;
863
+ }
864
+
865
+ interface InternalDeliveryLine extends DeliveryLine {
866
+ product: Product;
867
+ productItem: ProductItem;
868
+ internalDelivery: InternalDelivery;
869
+ }
870
+
871
+ interface InternalDelivery extends Delivery {
872
+ internalDeliveryLines: InternalDeliveryLine[];
873
+ sourceWarehouse: Warehouse;
874
+ destinationWarehouse: Warehouse;
875
+ createdBy: User;
876
+ }
877
+
878
+ declare enum StockAdjustmentType {
879
+ IN = "IN",
880
+ OUT = "OUT"
881
+ }
882
+ interface StockAdjustment {
883
+ id: string;
884
+ date?: string;
885
+ warehouse: Warehouse;
886
+ product: Product;
887
+ type: StockAdjustmentType;
888
+ memo: string;
889
+ user: User;
890
+ quantity: number;
891
+ createdAt: string | Date;
892
+ createdBy: User;
893
+ }
894
+
895
+ interface CustomEntityObject {
896
+ id: string;
897
+ customEntitySchema: CustomEntitySchema;
898
+ customEntityFieldValues: CustomEntityFieldValue[];
899
+ createdAt: string | Date;
900
+ updatedAt: string | Date;
901
+ createdBy: User;
902
+ }
903
+
904
+ interface CustomEntityFieldValue {
905
+ id: string;
906
+ customEntityObject: CustomEntityObject;
907
+ customEntityField: CustomEntityField;
908
+ valueText?: string;
909
+ valueNumber?: number;
910
+ valueCurrency?: number;
911
+ valueBoolean?: boolean;
912
+ valueDate?: string | Date;
913
+ valueJson?: any;
914
+ valueFile?: string;
915
+ valueFileArray: string[];
916
+ valueLatitude?: number;
917
+ valueLongitude?: number;
918
+ valueSelect?: string;
919
+ valueReferenceId?: string;
920
+ valueReferenceIds: string[];
921
+ valueCustomReferenceId?: string;
922
+ valueCustomReferenceIds: string[];
923
+ }
924
+
925
+ interface CustomEntityFieldPermission {
926
+ id: string;
927
+ customEntityField: CustomEntityField;
928
+ userPersona: UserPersona;
929
+ read: boolean;
930
+ update: boolean;
931
+ }
932
+
933
+ declare enum CustomEntityFieldType {
934
+ TEXT = "TEXT",
935
+ NUMBER = "NUMBER",
936
+ CURRENCY = "CURRENCY",
937
+ BOOLEAN = "BOOLEAN",
938
+ FILE = "FILE",
939
+ FILE_ARRAY = "FILE_ARRAY",
940
+ DATE = "DATE",
941
+ JSON = "JSON",
942
+ LOCATION = "LOCATION",
943
+ SELECT = "SELECT",
944
+ REFERENCE = "REFERENCE",
945
+ REFERENCE_ARRAY = "REFERENCE_ARRAY",
946
+ CUSTOM_ENTITY_REFERENCE = "CUSTOM_ENTITY_REFERENCE",
947
+ CUSTOM_ENTITY_REFERENCE_ARRAY = "CUSTOM_ENTITY_REFERENCE_ARRAY"
948
+ }
949
+ interface CustomEntityField {
950
+ id: string;
951
+ key: string;
952
+ order: number;
953
+ type: CustomEntityFieldType;
954
+ label: string;
955
+ description: string;
956
+ isReadOnly: boolean;
957
+ isHidden: boolean;
958
+ isRequired: boolean;
959
+ isFilterable: boolean;
960
+ isShownOnMainTable: boolean;
961
+ entityType?: EntityType;
962
+ customEntitySchemaReference: CustomEntitySchema;
963
+ jsonSchema?: any;
964
+ options: string[];
965
+ customEntitySchema: CustomEntitySchema;
966
+ customEntityFieldValues: CustomEntityFieldValue[];
967
+ customEntityFieldPermissions: CustomEntityFieldPermission[];
968
+ }
969
+
970
+ declare enum AutomationScriptTriggerName {
971
+ QUOTE = "QUOTE",
972
+ PURCHASE_ORDER = "PURCHASE_ORDER",
973
+ SALES_ORDER = "SALES_ORDER",
974
+ PURCHASE_ORDER_LINE = "PURCHASE_ORDER_LINE",
975
+ SALES_ORDER_LINE = "SALES_ORDER_LINE",
976
+ DELIVERY_JOB = "DELIVERY_JOB",
977
+ INVOICE = "INVOICE",
978
+ PRODUCT = "PRODUCT",
979
+ CUSTOM_OBJECT = "CUSTOM_OBJECT",
980
+ DAILY = "DAILY",
981
+ HOURLY = "HOURLY",
982
+ MINUTE = "MINUTE",
983
+ BUSINESS_INTELLIGENCE_REPORT = "BUSINESS_INTELLIGENCE_REPORT"
984
+ }
985
+ interface AutomationScriptTriggerEntity {
986
+ id: string;
987
+ name: AutomationScriptTriggerName;
988
+ automationScript: AutomationScript;
989
+ }
990
+
991
+ declare enum AutomationJobStatus {
992
+ PENDING = "PENDING",
993
+ IN_PROGRESS = "IN_PROGRESS",
994
+ COMPLETED = "COMPLETED",
995
+ FAILED = "FAILED"
996
+ }
997
+ interface AutomationJob {
998
+ id: string;
999
+ stdout: string;
1000
+ stderr: string;
1001
+ status: AutomationJobStatus;
1002
+ input: any;
1003
+ output: any;
1004
+ errorMessage?: string;
1005
+ createdAt: string | Date;
1006
+ completedAt?: string | Date;
1007
+ createdBy: User;
1008
+ automationScript: AutomationScript;
1009
+ }
1010
+
1011
+ declare enum AutomationScriptTrigger {
1012
+ QUOTE = "QUOTE",
1013
+ PURCHASE_ORDER = "PURCHASE_ORDER",
1014
+ SALES_ORDER = "SALES_ORDER",
1015
+ PURCHASE_ORDER_LINE = "PURCHASE_ORDER_LINE",
1016
+ SALES_ORDER_LINE = "SALES_ORDER_LINE",
1017
+ DELIVERY_JOB = "DELIVERY_JOB",
1018
+ INVOICE = "INVOICE",
1019
+ PRODUCT = "PRODUCT",
1020
+ INCOMING_DELIVERY = "INCOMING_DELIVERY",
1021
+ INCOMING_DELIVERY_LINE = "INCOMING_DELIVERY_LINE",
1022
+ CUSTOM_OBJECT = "CUSTOM_OBJECT",
1023
+ DAILY = "DAILY",
1024
+ HOURLY = "HOURLY",
1025
+ MINUTE = "MINUTE",
1026
+ BUSINESS_INTELLIGENCE_REPORT = "BUSINESS_INTELLIGENCE_REPORT"
1027
+ }
1028
+ interface AutomationScript {
1029
+ id: string;
1030
+ isSync: boolean;
1031
+ isTimeoutDisabled: boolean;
1032
+ name: string;
1033
+ script: string;
1034
+ triggers: AutomationScriptTrigger[];
1035
+ automationScriptTriggers: AutomationScriptTriggerEntity[];
1036
+ customSchemaNames: string[];
1037
+ createdBy: User;
1038
+ automationJobs: AutomationJob[];
1039
+ userActions: UserAction[];
1040
+ customReports: CustomReport[];
1041
+ }
1042
+
1043
+ interface CustomReport {
1044
+ id: string;
1045
+ title: string;
1046
+ description: string;
1047
+ config: any;
1048
+ filters: any;
1049
+ automationScript: AutomationScript;
1050
+ form: Form;
1051
+ }
1052
+
1053
+ interface Form {
1054
+ id: string;
1055
+ name: string;
1056
+ template: any;
1057
+ customEntitySchema: CustomEntitySchema;
1058
+ userActions: UserAction[];
1059
+ customReports: CustomReport[];
1060
+ }
1061
+
1062
+ interface CustomEntitySchemaPermission {
1063
+ id: string;
1064
+ userPersona: UserPersona;
1065
+ create: boolean;
1066
+ read: boolean;
1067
+ update: boolean;
1068
+ delete: boolean;
1069
+ customEntitySchema: CustomEntitySchema;
1070
+ }
1071
+
1072
+ declare enum UserPersonaCustomSchemaPermissionType {
1073
+ CREATE = "CREATE",
1074
+ READ = "READ",
1075
+ UPDATE = "UPDATE",
1076
+ DELETE = "DELETE"
1077
+ }
1078
+ interface UserPersonaCustomSchemaPermission {
1079
+ id: string;
1080
+ userPersona: UserPersona;
1081
+ customEntitySchema: CustomEntitySchema;
1082
+ type: UserPersonaCustomSchemaPermissionType;
1083
+ }
1084
+
1085
+ declare enum Module {
1086
+ SALES = "SALES",
1087
+ ACCOUNTING = "ACCOUNTING",
1088
+ PURCHASING = "PURCHASING",
1089
+ INVENTORY = "INVENTORY",
1090
+ FLEET = "FLEET",
1091
+ AUTOMATION = "AUTOMATION"
1092
+ }
1093
+ declare enum CustomEntitySchemaType {
1094
+ LEGACY = "LEGACY",
1095
+ DOCUMENT = "DOCUMENT"
1096
+ }
1097
+ interface CustomEntitySchema {
1098
+ id: string;
1099
+ name: string;
1100
+ type: CustomEntitySchemaType;
1101
+ label: string;
1102
+ module?: Module;
1103
+ isFilterableByCreatedAt: boolean;
1104
+ customEntityFields: CustomEntityField[];
1105
+ customEntityObjects: CustomEntityObject[];
1106
+ forms: Form[];
1107
+ userActions: UserAction[];
1108
+ referencingCustomEntityFields: CustomEntityField[];
1109
+ customEntitySchemaPermissions: CustomEntitySchemaPermission[];
1110
+ userPersonaCustomSchemaPermissions: UserPersonaCustomSchemaPermission[];
1111
+ }
1112
+
1113
+ declare enum WebComponentSlotName {
1114
+ LEASE_EDIT_MODAL_FOOTER = "LEASE_EDIT_MODAL_FOOTER",
1115
+ LEASE_EDIT_MODAL_HEADER = "LEASE_EDIT_MODAL_HEADER"
1116
+ }
1117
+ interface WebComponentSlot {
1118
+ id: string;
1119
+ webComponent: WebComponent;
1120
+ name: WebComponentSlotName;
1121
+ createdAt: string | Date;
1122
+ }
1123
+
1124
+ interface WebComponent {
1125
+ id: string;
1126
+ name: string;
1127
+ label?: string;
1128
+ code: string;
1129
+ slots: WebComponentSlot[];
1130
+ userActions: UserAction[];
1131
+ }
1132
+
1133
+ declare enum UserActionType {
1134
+ SALES_ORDER = "SALES_ORDER",
1135
+ QUICK_ACTION = "QUICK_ACTION",
1136
+ INVOICE = "INVOICE",
1137
+ CUSTOM_OBJECT = "CUSTOM_OBJECT"
1138
+ }
1139
+ interface UserAction {
1140
+ id: string;
1141
+ type: UserActionType;
1142
+ customEntitySchema: CustomEntitySchema;
1143
+ name: string;
1144
+ form: Form;
1145
+ automationScript: AutomationScript;
1146
+ webComponent: WebComponent;
1147
+ userPersona: UserPersona;
1148
+ }
1149
+
1150
+ declare enum UserPersonaEntityPermissionType {
1151
+ CREATE = "CREATE",
1152
+ READ = "READ",
1153
+ UPDATE = "UPDATE",
1154
+ DELETE = "DELETE"
1155
+ }
1156
+ interface UserPersonaEntityPermission {
1157
+ id: string;
1158
+ userPersona: UserPersona;
1159
+ entityType: EntityType;
1160
+ entityId?: string;
1161
+ type: UserPersonaEntityPermissionType;
1162
+ }
1163
+
1164
+ interface EntityObjectPermission {
1165
+ id: string;
1166
+ entityType: EntityType;
1167
+ entityId: string;
1168
+ read: boolean;
1169
+ update: boolean;
1170
+ delete: boolean;
1171
+ userPersona: UserPersona;
1172
+ }
1173
+
1174
+ interface UserPersonaProductPermission {
1175
+ id: string;
1176
+ userPersona: UserPersona;
1177
+ product: Product;
1178
+ }
1179
+
1180
+ interface UserPersona {
1181
+ id: string;
1182
+ name: string;
1183
+ users: User[];
1184
+ userActions: UserAction[];
1185
+ userPersonaEntityPermissions: UserPersonaEntityPermission[];
1186
+ customEntitySchemaPermissions: CustomEntitySchemaPermission[];
1187
+ customEntityFieldPermissions: CustomEntityFieldPermission[];
1188
+ entityObjectPermissions: EntityObjectPermission[];
1189
+ userPersonaCustomSchemaPermissions: UserPersonaCustomSchemaPermission[];
1190
+ userPersonaProductPermissions: UserPersonaProductPermission[];
1191
+ userPersonaWarehousePermissions: UserPersonaWarehousePermission[];
1192
+ }
1193
+
1194
+ interface UserPersonaWarehousePermission {
1195
+ id: string;
1196
+ userPersona: UserPersona;
1197
+ warehouse: Warehouse;
1198
+ }
1199
+
1200
+ interface Warehouse {
1201
+ id: string;
1202
+ name: string;
1203
+ address: string;
1204
+ isDefault: boolean;
1205
+ warehouseProducts: WarehouseProduct[];
1206
+ productItems: ProductItem[];
1207
+ productLocations: ProductLocation[];
1208
+ workstations: Workstation[];
1209
+ incomingShipments: IncomingShipment[];
1210
+ outgoingShipments: OutgoingShipment[];
1211
+ incomingDeliveries: IncomingDelivery[];
1212
+ outgoingDeliveries: OutgoingDelivery[];
1213
+ internalSourceDeliveries: InternalDelivery[];
1214
+ internalDestinationDeliveries: InternalDelivery[];
1215
+ stockAdjustments: StockAdjustment[];
1216
+ productionOrders: ProductionOrder[];
1217
+ salesOrders: SalesOrder[];
1218
+ pointOfSales: PointOfSale[];
1219
+ userPersonaWarehousePermissions: UserPersonaWarehousePermission[];
1220
+ }
1221
+
1222
+ interface OutgoingDelivery extends Delivery {
1223
+ outgoingDeliveryLines: OutgoingDeliveryLine[];
1224
+ sourceWarehouse: Warehouse;
1225
+ customer: Customer;
1226
+ salesOrder: SalesOrder;
1227
+ rentalOrder: RentalOrder;
1228
+ subsidiary: Subsidiary;
1229
+ createdBy: User;
1230
+ }
1231
+
1232
+ interface RentalOrder extends Order {
1233
+ id: string;
1234
+ rentalOrderLines: RentalOrderLine[];
1235
+ customer: Customer;
1236
+ invoices: Invoice;
1237
+ outgoingDeliveries: OutgoingDelivery[];
1238
+ incomingDeliveries: IncomingDelivery[];
1239
+ subsidiary: Subsidiary;
1240
+ }
1241
+
1242
+ interface InvoiceApproval extends Approval {
1243
+ invoice: Invoice;
1244
+ user: User;
1245
+ signature?: string;
1246
+ signedAt?: string | Date;
1247
+ signatureMethod?: 'STORED' | 'CAPTURED';
1248
+ }
1249
+
1250
+ declare enum PaymentStatus {
1251
+ NOT_PAID = "NOT_PAID",
1252
+ PARTIALLY_PAID = "PARTIALLY_PAID",
1253
+ FULLY_PAID = "FULLY_PAID"
1254
+ }
1255
+ interface Invoice extends Order {
1256
+ paymentStatus?: PaymentStatus;
1257
+ pphAmount: number;
1258
+ downpayment: number;
1259
+ downpaymentDeductions: number;
1260
+ invoiceLines: InvoiceLine[];
1261
+ salesOrder: SalesOrder;
1262
+ lease: Lease;
1263
+ rentalOrder: RentalOrder;
1264
+ customer: Customer;
1265
+ payments: Payment[];
1266
+ printJobs: PrintJob[];
1267
+ subsidiary: Subsidiary;
1268
+ createdBy: User;
1269
+ identifierGroup: IdentifierGroup;
1270
+ journalEntry: JournalEntry;
1271
+ invoiceApprovals: InvoiceApproval[];
1272
+ }
1273
+
1274
+ interface SalesOrderApproval extends Approval {
1275
+ salesOrder: SalesOrder;
1276
+ user: User;
1277
+ }
1278
+
1279
+ interface StoreProductVariant {
1280
+ id: string;
1281
+ storeProduct: StoreProduct;
1282
+ storeProductAttributeValues: StoreProductAttributeValue[];
1283
+ product: Product;
1284
+ cartLines: CartLine[];
1285
+ }
1286
+
1287
+ interface StoreProductAttributeValueMapping {
1288
+ id: string;
1289
+ product: Product;
1290
+ storeProductAttributeValue: StoreProductAttributeValue;
1291
+ }
1292
+
1293
+ interface StoreProductAttributeValue {
1294
+ id: string;
1295
+ name?: string;
1296
+ storeProductAttribute: StoreProductAttribute;
1297
+ storeProductVariants: StoreProductVariant[];
1298
+ label?: string;
1299
+ storeProductAttributeValueMappings: StoreProductAttributeValueMapping[];
1300
+ }
1301
+
1302
+ interface StoreProductAttribute {
1303
+ id: string;
1304
+ label?: string;
1305
+ name?: string;
1306
+ order: number;
1307
+ storeProduct: StoreProduct;
1308
+ storeProductAttributeValues: StoreProductAttributeValue[];
1309
+ }
1310
+
1311
+ interface StoreProductGroup {
1312
+ id: string;
1313
+ name: string;
1314
+ ancestry?: string;
1315
+ store: Store;
1316
+ storeProducts: StoreProduct[];
1317
+ }
1318
+
1319
+ interface StoreUser {
1320
+ id: string;
1321
+ store: Store;
1322
+ carts: Cart[];
1323
+ }
1324
+
1325
+ interface Store {
1326
+ id: string;
1327
+ name: string;
1328
+ currency: Currency;
1329
+ description: string;
1330
+ layout: any;
1331
+ storeProductGroups: StoreProductGroup[];
1332
+ storeProducts: StoreProduct[];
1333
+ storeUsers: StoreUser[];
1334
+ carts: Cart[];
1335
+ }
1336
+
1337
+ interface StoreProduct {
1338
+ id: string;
1339
+ name: string;
1340
+ description: string;
1341
+ product: Product;
1342
+ storeProductAttributes: StoreProductAttribute[];
1343
+ storeProductVariants: StoreProductVariant[];
1344
+ images: string[];
1345
+ store: Store;
1346
+ cartLines: CartLine[];
1347
+ storeProductGroup: StoreProductGroup;
1348
+ }
1349
+
1350
+ interface CartLine extends OrderLine {
1351
+ cart: Cart;
1352
+ storeProduct: StoreProduct;
1353
+ storeProductVariant: StoreProductVariant;
1354
+ product: Product;
1355
+ }
1356
+
1357
+ interface Cart extends Order {
1358
+ customer: Customer;
1359
+ cartLines: CartLine[];
1360
+ storeUser: StoreUser;
1361
+ store: Store;
1362
+ salesOrders: SalesOrder[];
1363
+ createdAt: string | Date;
1364
+ }
1365
+
1366
+ interface ReturnSalesOrderLine extends OrderLine {
1367
+ id: string;
1368
+ returnSalesOrder: ReturnSalesOrder;
1369
+ product: Product;
1370
+ }
1371
+
1372
+ interface ReturnSalesOrder extends Order {
1373
+ id: string;
1374
+ returnSalesOrderLines: ReturnSalesOrderLine[];
1375
+ salesOrder: SalesOrder;
1376
+ }
1377
+
1378
+ declare enum SalesOrderType {
1379
+ WORK_ORDER = "WORK_ORDER",
1380
+ SERVICE_ORDER = "SERVICE_ORDER"
1381
+ }
1382
+ interface SalesOrder extends Order {
1383
+ type?: SalesOrderType;
1384
+ salesOrderLines: SalesOrderLine[];
1385
+ createdBy: User;
1386
+ customer: Customer;
1387
+ invoices: Invoice[];
1388
+ outgoingShipments: OutgoingShipment[];
1389
+ outgoingDeliveries: OutgoingDelivery[];
1390
+ incomingDeliveries: IncomingDelivery[];
1391
+ salesOrderApprovals: SalesOrderApproval[];
1392
+ printJobs: PrintJob[];
1393
+ subsidiary: Subsidiary;
1394
+ identifierGroup: IdentifierGroup;
1395
+ journalEntry: JournalEntry;
1396
+ parentRefundSalesOrder: SalesOrder;
1397
+ refundSalesOrders: SalesOrder[];
1398
+ warehouse: Warehouse;
1399
+ pointOfSale: PointOfSale;
1400
+ dropshipPurchaseOrders: PurchaseOrder[];
1401
+ cart: Cart;
1402
+ returnSalesOrders: ReturnSalesOrder[];
1403
+ }
1404
+
1405
+ declare enum PrintJobStatus {
1406
+ QUEUED = "QUEUED",
1407
+ IN_PROGRESS = "IN_PROGRESS",
1408
+ COMPLETED = "COMPLETED",
1409
+ FAILED = "FAILED"
1410
+ }
1411
+ declare enum PrintJobType {
1412
+ INVOICE = "INVOICE",
1413
+ SALES_ORDER = "SALES_ORDER",
1414
+ REPORT = "REPORT"
1415
+ }
1416
+ interface PrintJob {
1417
+ id: string;
1418
+ type?: PrintJobType;
1419
+ status: PrintJobStatus;
1420
+ thermalPrinter: ThermalPrinter;
1421
+ errorMessage?: string;
1422
+ salesOrder: SalesOrder;
1423
+ salesOrderLinePrintJobs: SalesOrderLinePrintJob[];
1424
+ additionalData?: any;
1425
+ invoice: Invoice;
1426
+ createdAt: string | Date;
1427
+ }
1428
+
1429
+ interface ThermalPrinter {
1430
+ id: string;
1431
+ name: string;
1432
+ ipAddress: string;
1433
+ printJobs: PrintJob[];
1434
+ products: Product[];
1435
+ productGroups: ProductGroup[];
1436
+ }
1437
+
1438
+ interface ProductGroup {
1439
+ id: string;
1440
+ name: string;
1441
+ ancestry?: string;
1442
+ products: Product[];
1443
+ thermalPrinter: ThermalPrinter;
1444
+ }
1445
+
1446
+ interface UnitConversion {
1447
+ id: string;
1448
+ fromUnit: string;
1449
+ toUnit: string;
1450
+ factor: number;
1451
+ product: Product;
1452
+ }
1453
+
1454
+ interface QuoteLine extends OrderLine {
1455
+ id: string;
1456
+ quote: Quote;
1457
+ product: Product;
1458
+ }
1459
+
1460
+ interface Product {
1461
+ id: string;
1462
+ productCode: string;
1463
+ name: string;
1464
+ barcode: string;
1465
+ description: string;
1466
+ unit: string;
1467
+ minQuantity?: number;
1468
+ status?: string;
1469
+ purchasePrice?: number;
1470
+ price?: number;
1471
+ images: string[];
1472
+ productGroup: ProductGroup;
1473
+ productItems: ProductItem[];
1474
+ unitConversions: UnitConversion[];
1475
+ salesOrderLines: SalesOrderLine;
1476
+ purchaseOrderLines: PurchaseOrderLine;
1477
+ invoiceLines: InvoiceLine;
1478
+ expenseLines: ExpenseLine;
1479
+ billLines: BillLine[];
1480
+ maintenanceOrderLines: MaintenanceOrderLine[];
1481
+ quoteLines: QuoteLine;
1482
+ rentalOrderLines: RentalOrderLine[];
1483
+ warehouseProducts: WarehouseProduct[];
1484
+ workstationProducts: WorkstationProduct[];
1485
+ workstationTransfers: WorkstationTransfer[];
1486
+ stockAdjustments: StockAdjustment[];
1487
+ incomingShipments: IncomingShipment[];
1488
+ outgoingShipments: OutgoingShipment[];
1489
+ incomingDeliveryLines: IncomingDeliveryLine[];
1490
+ outgoingDeliveryLines: OutgoingDeliveryLine[];
1491
+ internalDeliveryLines: InternalDeliveryLine[];
1492
+ incomingStock: number;
1493
+ inStock: number;
1494
+ outgoingStock: number;
1495
+ totalCostOfAvailableStock: number;
1496
+ billOfMaterials: BillOfMaterials[];
1497
+ bomComponents: BOMComponent[];
1498
+ productionOrders: ProductionOrder[];
1499
+ productionOrderLines: ProductionOrderLine[];
1500
+ storeProducts: StoreProduct[];
1501
+ storeProductAttributeValueMappings: StoreProductAttributeValueMapping[];
1502
+ cartLines: CartLine[];
1503
+ storeProductVariants: StoreProductVariant[];
1504
+ thermalPrinter: ThermalPrinter;
1505
+ inventoryAccount: Account;
1506
+ incomeAccount: Account;
1507
+ expenseAccount: Account;
1508
+ userPersonaProductPermissions: UserPersonaProductPermission[];
1509
+ productSuppliers: ProductSupplier[];
1510
+ isService: boolean;
1511
+ isDeleted: boolean;
1512
+ createdAt: string | Date;
1513
+ updatedAt: string | Date;
1514
+ isSellable: boolean;
1515
+ isPurchasable: boolean;
1516
+ isRentable: boolean;
1517
+ isManufacturable: boolean;
1518
+ isTrackable: boolean;
1519
+ automatedInventoryValuationEnabled: boolean;
1520
+ customFields: any;
1521
+ pricelistLines: PricelistLine[];
1522
+ returnSalesOrderLines: ReturnSalesOrderLine[];
1523
+ }
1524
+
1525
+ interface ProductItem {
1526
+ id: string;
1527
+ serialNumber: string;
1528
+ description: string;
1529
+ quantity: number;
1530
+ product: Product;
1531
+ warehouse: Warehouse;
1532
+ customFields: any;
1533
+ rentalOrderLines: RentalOrderLine[];
1534
+ incomingDeliveryLines: IncomingDeliveryLine[];
1535
+ outgoingDeliveryLines: OutgoingDeliveryLine[];
1536
+ internalDeliveryLines: InternalDeliveryLine[];
1537
+ invoiceLines: InvoiceLine[];
1538
+ productionOrder: ProductionOrder;
1539
+ productLocation: ProductLocation | null;
1540
+ productionOrderInput: ProductionOrder | null;
1541
+ productLocationTransfers: ProductLocationTransfer[];
1542
+ vehicleTires: VehicleTire[];
1543
+ createdAt: string | Date;
1544
+ }
1545
+
1546
+ interface VehicleTire {
1547
+ id: string;
1548
+ position: string;
1549
+ productItem: ProductItem;
1550
+ vehicle: Vehicle;
1551
+ }
1552
+
1553
+ declare enum TelemetryAttributeKey {
1554
+ latitude = "latitude",
1555
+ longitude = "longitude",
1556
+ odometer = "odometer"
1557
+ }
1558
+ interface TelemetryAttribute {
1559
+ id: string;
1560
+ key: TelemetryAttributeKey;
1561
+ value: number;
1562
+ telemetryEvent: TelemetryEvent;
1563
+ }
1564
+
1565
+ interface TelemetryEvent {
1566
+ id: string;
1567
+ telemetryAttributes: TelemetryAttribute[];
1568
+ vehicle: Vehicle;
1569
+ createdAt: string | Date;
1570
+ }
1571
+
1572
+ interface Vehicle {
1573
+ id: string;
1574
+ name: string;
1575
+ fuelEntries: FuelEntry[];
1576
+ driver: User;
1577
+ registrationNumber?: string;
1578
+ licensePlate?: string;
1579
+ vin?: string;
1580
+ customFields: any;
1581
+ deliveryJobs: DeliveryJob[];
1582
+ axleConfiguration?: number[];
1583
+ vehicleTelemetries: VehicleTelemetry[];
1584
+ vehicleTires: VehicleTire[];
1585
+ telemetryEvents: TelemetryEvent[];
1586
+ maintenanceOrders: MaintenanceOrder[];
1587
+ }
1588
+
1589
+ declare enum DeliveryJobStatus {
1590
+ PENDING = "PENDING",
1591
+ IN_PROGRESS = "IN_PROGRESS",
1592
+ COMPLETED = "COMPLETED"
1593
+ }
1594
+ interface DeliveryJob {
1595
+ id: string;
1596
+ identifier?: string;
1597
+ date?: string;
1598
+ startTime?: string | Date;
1599
+ endTime?: string | Date;
1600
+ num: number;
1601
+ numMonthly: number;
1602
+ numYearly: number;
1603
+ startAddress?: string;
1604
+ endAddress?: string;
1605
+ status: DeliveryJobStatus;
1606
+ customFields: any;
1607
+ costLines: CostLine[];
1608
+ customer: Customer;
1609
+ revenue: number;
1610
+ vehicle: Vehicle;
1611
+ user: User;
1612
+ subsidiary: Subsidiary;
1613
+ createdAt: string | Date;
1614
+ }
1615
+
1616
+ interface CompanyUser {
1617
+ id: string;
1618
+ user: User;
1619
+ }
1620
+
1621
+ declare enum UserPermissionName {
1622
+ ADMIN = "ADMIN",
1623
+ PURCHASING = "PURCHASING",
1624
+ SALES = "SALES",
1625
+ INVENTORY = "INVENTORY",
1626
+ SERVICE = "SERVICE",
1627
+ ACCOUNTING = "ACCOUNTING",
1628
+ FINANCE = "FINANCE",
1629
+ MANUFACTURING = "MANUFACTURING",
1630
+ ECOMMERCE = "ECOMMERCE",
1631
+ FLEET = "FLEET",
1632
+ AUTOMATION = "AUTOMATION",
1633
+ HUMAN_RESOURCES = "HUMAN_RESOURCES",
1634
+ CUSTOMER_SERVICE = "CUSTOMER_SERVICE",
1635
+ POINT_OF_SALE = "POINT_OF_SALE",
1636
+ RULES_ENGINE = "RULES_ENGINE"
1637
+ }
1638
+ interface UserPermission {
1639
+ id: string;
1640
+ name: UserPermissionName;
1641
+ user: User;
1642
+ }
1643
+
1644
+ declare enum AuditLogAction {
1645
+ CREATE = "CREATE",
1646
+ UPDATE = "UPDATE",
1647
+ DELETE = "DELETE",
1648
+ READ = "READ"
1649
+ }
1650
+ interface AuditLog {
1651
+ id: string;
1652
+ action: AuditLogAction;
1653
+ entityType: string;
1654
+ entityId: string;
1655
+ entityValue?: any;
1656
+ relatedEntityType?: string;
1657
+ relatedEntityId?: string;
1658
+ relatedEntityValue?: any;
1659
+ user: User;
1660
+ createdAt: string | Date;
1661
+ }
1662
+
1663
+ interface NotificationEntity {
1664
+ id: string;
1665
+ isDismissed: boolean;
1666
+ isRead: boolean;
1667
+ title: string;
1668
+ files: string[];
1669
+ description: string;
1670
+ icon?: string;
1671
+ isAi: boolean;
1672
+ entityId?: string;
1673
+ level: string;
1674
+ user: User;
1675
+ createdAt: string | Date;
1676
+ }
1677
+
1678
+ declare enum ApproverType {
1679
+ PurchaseOrder = "PurchaseOrder",
1680
+ SalesOrder = "SalesOrder",
1681
+ Invoice = "Invoice"
1682
+ }
1683
+ interface Approver {
1684
+ id: string;
1685
+ user: User;
1686
+ type: ApproverType;
1687
+ }
1688
+
1689
+ interface Attendance {
1690
+ id: string;
1691
+ imageIn: string;
1692
+ imageOut?: string;
1693
+ timeIn: string | Date;
1694
+ timeOut?: string | Date;
1695
+ latitudeIn?: number;
1696
+ longitudeIn?: number;
1697
+ latitudeOut?: number;
1698
+ longitudeOut?: number;
1699
+ isFaceVerified: boolean;
1700
+ employee: Employee;
1701
+ geofence: Geofence;
1702
+ }
1703
+
1704
+ interface Geofence {
1705
+ id: string;
1706
+ name: string;
1707
+ latitude?: number;
1708
+ longitude?: number;
1709
+ radius?: number;
1710
+ employees: Employee[];
1711
+ attendances: Attendance[];
1712
+ }
1713
+
1714
+ declare enum Day {
1715
+ MONDAY = "MONDAY",
1716
+ TUESDAY = "TUESDAY",
1717
+ WEDNESDAY = "WEDNESDAY",
1718
+ THURSDAY = "THURSDAY",
1719
+ FRIDAY = "FRIDAY",
1720
+ SATURDAY = "SATURDAY",
1721
+ SUNDAY = "SUNDAY"
1722
+ }
1723
+ interface Shift {
1724
+ id: string;
1725
+ startTime: string;
1726
+ endTime: string;
1727
+ day: Day;
1728
+ employee: Employee;
1729
+ }
1730
+
1731
+ declare enum SalaryPeriod {
1732
+ HOUR = "hour",
1733
+ DAY = "day",
1734
+ WEEK = "week",
1735
+ MONTH = "month",
1736
+ YEAR = "year"
1737
+ }
1738
+ interface Employee {
1739
+ id: string;
1740
+ firstName: string;
1741
+ lastName: string;
1742
+ employeeId?: string;
1743
+ phone?: string;
1744
+ email?: string;
1745
+ images: string[];
1746
+ salaryAmount?: number;
1747
+ salaryPeriod?: SalaryPeriod;
1748
+ assignedLocation: Geofence;
1749
+ user: User;
1750
+ attendances: Attendance[];
1751
+ shifts: Shift[];
1752
+ }
1753
+
1754
+ declare enum IotJobStatus {
1755
+ QUEUED = "QUEUED",
1756
+ IN_PROGRESS = "IN_PROGRESS",
1757
+ COMPLETED = "COMPLETED",
1758
+ FAILED = "FAILED"
1759
+ }
1760
+ interface IotJob {
1761
+ id: string;
1762
+ status: IotJobStatus;
1763
+ data: any;
1764
+ iotDevice: IotDevice;
1765
+ createdAt: string | Date;
1766
+ }
1767
+
1768
+ declare enum IotDeviceType {
1769
+ BARCODE_SCANNER = "BARCODE_SCANNER",
1770
+ BRACELET_PRINTER = "BRACELET_PRINTER",
1771
+ THERMAL_PRINTER = "THERMAL_PRINTER"
1772
+ }
1773
+ interface IotDevice {
1774
+ id: string;
1775
+ name: string;
1776
+ vendorId?: number;
1777
+ productId?: number;
1778
+ serialNumber?: string;
1779
+ type: IotDeviceType;
1780
+ lastActive?: string | Date;
1781
+ properties: any;
1782
+ iotJobs: IotJob[];
1783
+ lastActiveAt: string | Date;
1784
+ lastJobStatus?: IotJobStatus;
1785
+ user: User;
1786
+ }
1787
+
1788
+ interface Conversation {
1789
+ id: string;
1790
+ title?: string;
1791
+ conversationMessages: ConversationMessage[];
1792
+ customer: Customer;
1793
+ createdAt: string | Date;
1794
+ }
1795
+
1796
+ interface ConversationMessage {
1797
+ id: string;
1798
+ files: string[];
1799
+ content: string;
1800
+ conversation: Conversation;
1801
+ isDelivered: boolean;
1802
+ user: User;
1803
+ customer: Customer;
1804
+ time?: string | Date;
1805
+ createdAt: string | Date;
1806
+ }
1807
+
1808
+ interface UserLog {
1809
+ id: string;
1810
+ user: User;
1811
+ method: string;
1812
+ path: string;
1813
+ query?: Record<string, any>;
1814
+ params?: Record<string, any>;
1815
+ body?: Record<string, any>;
1816
+ ipAddress?: string;
1817
+ createdAt: string | Date;
1818
+ response?: any;
1819
+ statusCode?: number;
1820
+ responseTime?: number;
1821
+ }
1822
+
1823
+ interface ImportJobRow {
1824
+ id: string;
1825
+ status: ImportJobStatus;
1826
+ importJob: ImportJob;
1827
+ errorMessage?: string;
1828
+ errorColumnName?: string;
1829
+ index: number;
1830
+ data: any;
1831
+ }
1832
+
1833
+ declare enum ImportJobStatus {
1834
+ PENDING = "PENDING",
1835
+ IN_PROGRESS = "IN_PROGRESS",
1836
+ COMPLETED = "COMPLETED",
1837
+ FAILED = "FAILED"
1838
+ }
1839
+ interface ImportJob {
1840
+ id: string;
1841
+ status: ImportJobStatus;
1842
+ importJobRows: ImportJobRow[];
1843
+ entityType: EntityType;
1844
+ createdAt: string | Date;
1845
+ createdBy: User;
1846
+ }
1847
+
1848
+ interface User {
1849
+ id: string;
1850
+ photo?: string;
1851
+ fullName?: string;
1852
+ email: string;
1853
+ isAutomationUser: boolean;
1854
+ username?: string;
1855
+ phoneNumber?: string;
1856
+ address?: string;
1857
+ driverLicenseNo?: string;
1858
+ ktpNo?: string;
1859
+ password: string;
1860
+ deliveryJobs: DeliveryJob[];
1861
+ companyUsers: CompanyUser[];
1862
+ userPermissions: UserPermission[];
1863
+ auditLogs: AuditLog[];
1864
+ notifications: NotificationEntity[];
1865
+ approvers: Approver[];
1866
+ purchaseOrderApprovals: PurchaseOrderApproval[];
1867
+ salesOrderApprovals: SalesOrderApproval[];
1868
+ invoiceApprovals: InvoiceApproval[];
1869
+ salesOrders: SalesOrder[];
1870
+ purchaseOrders: PurchaseOrder[];
1871
+ quotes: Quote[];
1872
+ invoices: Invoice[];
1873
+ payments: Payment[];
1874
+ journalEntries: JournalEntry[];
1875
+ workstationTransfers: WorkstationTransfer[];
1876
+ internalDeliveries: InternalDelivery[];
1877
+ leases: Lease[];
1878
+ stockAdjustments: StockAdjustment[];
1879
+ employees: Employee[];
1880
+ vehicles: Vehicle[];
1881
+ automationScripts: AutomationScript[];
1882
+ automationJobs: AutomationJob[];
1883
+ iotDevices: IotDevice[];
1884
+ userPersonas: UserPersona[];
1885
+ conversationMessages: ConversationMessage[];
1886
+ userLogs: UserLog[];
1887
+ signature?: string;
1888
+ expoPushToken?: string;
1889
+ createdAt: string | Date;
1890
+ updatedAt: string | Date;
1891
+ customEntityObjects: CustomEntityObject[];
1892
+ createdStockAdjustments: StockAdjustment[];
1893
+ incomingDeliveries: IncomingDelivery[];
1894
+ outgoingDeliveries: OutgoingDelivery[];
1895
+ importJobs: ImportJob[];
1896
+ }
1897
+
1898
+ interface Quote extends Order {
1899
+ id: string;
1900
+ validUntil?: string;
1901
+ createdBy: User;
1902
+ quoteLines: QuoteLine[];
1903
+ customer: Customer;
1904
+ subsidiary: Subsidiary;
1905
+ identifierGroup: IdentifierGroup;
1906
+ }
1907
+
1908
+ declare enum CustomerEventType {
1909
+ LINKEDIN_CONNECTION_REQUEST = "LINKEDIN_CONNECTION_REQUEST",
1910
+ LINKEDIN_MESSAGE = "LINKEDIN_MESSAGE"
1911
+ }
1912
+ interface CustomerEvent {
1913
+ id: string;
1914
+ type: CustomerEventType;
1915
+ message?: string;
1916
+ customer: Customer;
1917
+ }
1918
+
1919
+ declare enum CustomerSourceChannel {
1920
+ }
1921
+ interface Customer extends Contact {
1922
+ lifecycleStage?: string;
1923
+ quotes: Quote[];
1924
+ salesOrders: SalesOrder[];
1925
+ rentalOrders: RentalOrder[];
1926
+ carts: Cart[];
1927
+ invoices: Invoice[];
1928
+ outgoingDeliveries: OutgoingDelivery[];
1929
+ customerEvents: CustomerEvent[];
1930
+ deliveryJobs: DeliveryJob[];
1931
+ activities: Activity[];
1932
+ incomingDeliveries: IncomingDelivery[];
1933
+ sourceChannel?: CustomerSourceChannel;
1934
+ conversationMessages: ConversationMessage[];
1935
+ pricelist: Pricelist;
1936
+ conversations: Conversation[];
1937
+ leases: Lease[];
1938
+ isDefaultSalesOrderCustomer: boolean;
1939
+ }
1940
+
1941
+ declare enum ActivityType {
1942
+ CALL = "CALL",
1943
+ MEETING = "MEETING",
1944
+ EMAIL = "EMAIL",
1945
+ WHATSAPP = "WHATSAPP"
1946
+ }
1947
+ interface Activity {
1948
+ id: string;
1949
+ type: ActivityType;
1950
+ title: string;
1951
+ description: string;
1952
+ startTime?: string | Date;
1953
+ endTime?: string | Date;
1954
+ customer: Customer;
1955
+ createdAt: string | Date;
1956
+ }
1957
+
1958
+ declare enum CompanyOptionName {
1959
+ AUTOCREATE_PRODUCTION_ORDER = "AUTOCREATE_PRODUCTION_ORDER",
1960
+ AUTOUPDATE_INVOICE = "AUTOUPDATE_INVOICE",
1961
+ PRODUCT_CATALOG = "PRODUCT_CATALOG",
1962
+ HIDE_CUSTOMER_OVERDUE_BALANCE = "HIDE_CUSTOMER_OVERDUE_BALANCE",
1963
+ DISABLE_PRODUCT_DELETION = "DISABLE_PRODUCT_DELETION",
1964
+ DISABLE_AUTOREMOVE_QUOTE_DURING_ORDER_CONVERSION = "DISABLE_AUTOREMOVE_QUOTE_DURING_ORDER_CONVERSION",
1965
+ ONLY_ADMINS_CAN_DELETE_INVOICE = "ONLY_ADMINS_CAN_DELETE_INVOICE",
1966
+ ONLY_ADMINS_CAN_EDIT_ORDER_DATE = "ONLY_ADMINS_CAN_EDIT_ORDER_DATE",
1967
+ VAT_DEFAULT_ZERO = "VAT_DEFAULT_ZERO",
1968
+ DEFAULT_DISCOUNT_AMOUNT = "DEFAULT_DISCOUNT_AMOUNT",
1969
+ NO_LETTERHEAD_DOCS = "NO_LETTERHEAD_DOCS",
1970
+ SHOW_CUSTOM_FIELDS_IN_MAIN_TABLE = "SHOW_CUSTOM_FIELDS_IN_MAIN_TABLE",
1971
+ LINES_PER_PAGE_INVOICE = "LINES_PER_PAGE_INVOICE",
1972
+ LINES_PER_PAGE_RENTAL_ORDER = "LINES_PER_PAGE_RENTAL_ORDER",
1973
+ LINES_PER_PAGE_SALES_ORDER = "LINES_PER_PAGE_SALES_ORDER",
1974
+ LINES_PER_PAGE_PURCHASE_ORDER = "LINES_PER_PAGE_PURCHASE_ORDER",
1975
+ LINES_PER_PAGE_QUOTATION = "LINES_PER_PAGE_QUOTATION",
1976
+ LINES_PER_PAGE_DELIVERY_ORDER = "LINES_PER_PAGE_DELIVERY_ORDER",
1977
+ NO_FOOTER = "NO_FOOTER",
1978
+ HIDE_DELIVERIES = "HIDE_DELIVERIES",
1979
+ PRODUCT_ACCESS_BY_PERSONA = "PRODUCT_ACCESS_BY_PERSONA",
1980
+ SIMPLE_UI = "SIMPLE_UI",
1981
+ LANDSCAPE_DELIVERY_ORDERS = "LANDSCAPE_DELIVERY_ORDERS",
1982
+ MULTI_PAGE_DOCS = "MULTI_PAGE_DOCS",
1983
+ SMALL_SOURCE_DOCS = "SMALL_SOURCE_DOCS",
1984
+ HIDE_DASHBOARD = "HIDE_DASHBOARD",
1985
+ DESCRIPTION_LINE = "DESCRIPTION_LINE",
1986
+ MOVEUP_TABLE = "MOVEUP_TABLE",
1987
+ CUSTOM_LINES_PER_PAGE_MULT = "CUSTOM_LINES_PER_PAGE_MULT",
1988
+ MOVEDOWN_TABLE = "MOVEDOWN_TABLE",
1989
+ INVOICE_DOWNPAYMENT_DEDUCTION_PROPORTIONAL = "INVOICE_DOWNPAYMENT_DEDUCTION_PROPORTIONAL",
1990
+ AUTO_DELIVER_SALES_ORDER = "AUTO_DELIVER_SALES_ORDER",
1991
+ AUTO_INVOICE_SALES_ORDER = "AUTO_INVOICE_SALES_ORDER",
1992
+ HIDE_CUSTOMER_FIELD_DELIVERY_JOB = "HIDE_CUSTOMER_FIELD_DELIVERY_JOB",
1993
+ HIDE_DISCOUNTS = "HIDE DISCOUNTS",
1994
+ MOVEUP_TABLE_INVOICE = "MOVEUP_TABLE_INVOICE",
1995
+ HIDE_VAT_PERCENTAGE_ON_INVOICE = "HIDE_VAT_PERCENTAGE_ON_INVOICE",
1996
+ REMOVE_BRAND = "REMOVE_BRAND",
1997
+ MERGE_JOURNAL_ENTRIES = "MERGE_JOURNAL_ENTRIES",
1998
+ MOVEDOWN_INVOICE = "MOVEDOWN_INVOICE",
1999
+ BILL = "BILL",
2000
+ BILL_DEBITS_INVENTORY_ACCOUNT = "BILL_DEBITS_INVENTORY_ACCOUNT",
2001
+ HIDE_DELIVERY_JOB_COST_LINES = "HIDE_DELIVERY_JOB_COST_LINES",
2002
+ HIDE_DELIVERY_JOB_ADDRESS = "HIDE_DELIVERY_JOB_ADDRESS",
2003
+ HIDE_INVOICE_FOR_SALES = "HIDE_INVOICE_FOR_SALES",
2004
+ HIDE_MAINTAINANCE_ORDER = "HIDE_MAINTAINANCE_ORDER",
2005
+ PAYMENT_DOCGEN_SHOWS_JOURNAL_ENTRIES = "PAYMENT_DOCGEN_SHOWS_JOURNAL_ENTRIES",
2006
+ HIDE_EDIT_DELIVERY = "HIDE_EDIT_DELIVERY",
2007
+ EXPENSE_VAT_ZERO = "EXPENSE_VAT_ZERO",
2008
+ SHOW_IN_STOCK_ON_DELIVERIES = "SHOW_IN_STOCK_ON_DELIVERIES",
2009
+ SHOW_SKU = "SHOW_SKU",
2010
+ DELIVERY_COST = "DELIVERY_COST",
2011
+ AUTOMATION_TRIGGER_V2 = "AUTOMATION_TRIGGER_V2",
2012
+ ACCESS_CONTROL_ADMIN_DEFAULT_UNALLOW = "ACCESS_CONTROL_ADMIN_DEFAULT_UNALLOW",
2013
+ REMOVE_QTY_IN_INVOICES = "REMOVE_QTY_IN_INVOICES",
2014
+ DEFAULT_CUSTOM_ENTITY_SCHEMA_TYPE_DOCUMENT = "DEFAULT_CUSTOM_ENTITY_SCHEMA_TYPE_DOCUMENT",
2015
+ HIDE_ALL_REPORTS = "HIDE_ALL_REPORTS",
2016
+ RETURN_SALES_ORDER = "RETURN_SALES_ORDER",
2017
+ SHOW_LINE_DISCOUNT = "SHOW_LINE_DISCOUNT"
2018
+ }
2019
+ interface CompanyOption {
2020
+ id: string;
2021
+ name: CompanyOptionName;
2022
+ valueNumber?: number;
2023
+ }
2024
+
2025
+ declare enum CompanyPermissionName {
2026
+ ACCOUNTING = "ACCOUNTING",
2027
+ INVENTORY = "INVENTORY",
2028
+ MULTIWAREHOUSE = "MULTIWAREHOUSE",
2029
+ RENTAL = "RENTAL",
2030
+ ECOMMERCE = "ECOMMERCE",
2031
+ MANUFACTURING = "MANUFACTURING",
2032
+ PRICELIST = "PRICELIST",
2033
+ SERVICE = "SERVICE",
2034
+ QUOTE = "QUOTE",
2035
+ WORK_ORDER = "WORK_ORDER",
2036
+ SERVICE_ORDER = "SERVICE_ORDER",
2037
+ SERIAL_NUMBERS = "SERIAL_NUMBERS",
2038
+ THERMAL_PRINTER = "THERMAL_PRINTER",
2039
+ THERMAL_PRINTER_WIRED = "THERMAL_PRINTER_WIRED",
2040
+ CHECKOUT = "CHECKOUT",
2041
+ SERVICE_CHARGE = "SERVICE_CHARGE",
2042
+ SUBSIDIARY = "SUBSIDIARY",
2043
+ MULTICURRENCY = "MULTICURRENCY",
2044
+ CRM = "CRM",
2045
+ IMPORTS = "IMPORTS",
2046
+ POINT_OF_SALE = "POINT_OF_SALE",
2047
+ FLEET = "FLEET",
2048
+ AUTOMATION = "AUTOMATION",
2049
+ DROPSHIP = "DROPSHIP",
2050
+ HUMAN_RESOURCES = "HUMAN_RESOURCES",
2051
+ BUSINESS_INTELLIGENCE = "BUSINESS_INTELLIGENCE",
2052
+ ARTIFICIAL_INTELLIGENCE = "ARTIFICIAL_INTELLIGENCE",
2053
+ RULES_ENGINE = "RULES_ENGINE",
2054
+ PROPERTY_MANAGEMENT = "PROPERTY_MANAGEMENT",
2055
+ CUSTOMER_SERVICE = "CUSTOMER_SERVICE",
2056
+ CHAT = "CHAT",
2057
+ ACCESS_CONTROL = "ACCESS_CONTROL",
2058
+ QUALITY = "QUALITY"
2059
+ }
2060
+ interface CompanyPermission {
2061
+ id: string;
2062
+ name: CompanyPermissionName;
2063
+ }
2064
+
2065
+ declare enum CustomDocumentOrientation {
2066
+ PORTRAIT = "PORTRAIT",
2067
+ LANDSCAPE = "LANDSCAPE"
2068
+ }
2069
+ declare enum CustomDocumentType {
2070
+ PDF = "PDF",
2071
+ XLSX = "XLSX"
2072
+ }
2073
+ interface CustomDocument {
2074
+ id: string;
2075
+ headerPdfDocId?: string;
2076
+ footerPdfDocId?: string;
2077
+ entityType: EntityType;
2078
+ name: string;
2079
+ type: CustomDocumentType;
2080
+ excelUrl?: string;
2081
+ showCompanyLetterhead: boolean;
2082
+ headerPdfUrl?: string;
2083
+ footerPdfUrl?: string;
2084
+ orientation: CustomDocumentOrientation;
2085
+ showQrCode: boolean;
2086
+ pageWidth?: number;
2087
+ pageHeight?: number;
2088
+ hidePriceFields: boolean;
2089
+ }
2090
+
2091
+ interface Invitation {
2092
+ id: string;
2093
+ email: string;
2094
+ createdAt: string | Date;
2095
+ }
2096
+
2097
+ declare enum FieldName {
2098
+ serialNumber = "serialNumber"
2099
+ }
2100
+ interface CompanyAlias {
2101
+ id: string;
2102
+ entityType: EntityType;
2103
+ fieldName: FieldName;
2104
+ label: string;
2105
+ }
2106
+
2107
+ interface UserPersonaEntityAccessStatus {
2108
+ id: string;
2109
+ entityType: EntityType;
2110
+ isEnabled: boolean;
2111
+ }
2112
+
4
2113
  declare const NOTIFICATION = "notification";
5
2114
  declare const USER_PERSONA = "user/user-persona";
6
2115
  declare const USER_PERSONA_CUSTOM_SCHEMA_PERMISSION = "user/user-persona-custom-schema-permission";
@@ -183,6 +2292,776 @@ declare function createObject(entity: any, data: any): Promise<any>;
183
2292
  declare function deleteObject(entity: any, id: string): Promise<any>;
184
2293
  declare function runScript(scriptNameOrId: string, input: any, sync?: boolean): Promise<any>;
185
2294
  declare const konversiAPI: {
2295
+ notification: {
2296
+ findAll: (options?: {
2297
+ where?: Partial<NotificationEntity>;
2298
+ relations?: Record<string, boolean>;
2299
+ }) => Promise<NotificationEntity[]>;
2300
+ findOne: (id: string) => Promise<NotificationEntity>;
2301
+ create: (data?: Partial<NotificationEntity>) => Promise<NotificationEntity>;
2302
+ update: (id: string, newData: Partial<NotificationEntity>) => Promise<NotificationEntity>;
2303
+ remove: (id: string) => Promise<NotificationEntity>;
2304
+ };
2305
+ account: {
2306
+ findAll: (options?: {
2307
+ where?: Partial<Account>;
2308
+ relations?: Record<string, boolean>;
2309
+ }) => Promise<Account[]>;
2310
+ findOne: (id: string) => Promise<Account>;
2311
+ create: (data?: Partial<Account>) => Promise<Account>;
2312
+ update: (id: string, newData: Partial<Account>) => Promise<Account>;
2313
+ remove: (id: string) => Promise<Account>;
2314
+ };
2315
+ journalEntryLine: {
2316
+ findAll: (options?: {
2317
+ where?: Partial<JournalEntryLine>;
2318
+ relations?: Record<string, boolean>;
2319
+ }) => Promise<JournalEntryLine[]>;
2320
+ findOne: (id: string) => Promise<JournalEntryLine>;
2321
+ create: (data?: Partial<JournalEntryLine>) => Promise<JournalEntryLine>;
2322
+ update: (id: string, newData: Partial<JournalEntryLine>) => Promise<JournalEntryLine>;
2323
+ remove: (id: string) => Promise<JournalEntryLine>;
2324
+ };
2325
+ journalEntry: {
2326
+ findAll: (options?: {
2327
+ where?: Partial<JournalEntry>;
2328
+ relations?: Record<string, boolean>;
2329
+ }) => Promise<JournalEntry[]>;
2330
+ findOne: (id: string) => Promise<JournalEntry>;
2331
+ create: (data?: Partial<JournalEntry>) => Promise<JournalEntry>;
2332
+ update: (id: string, newData: Partial<JournalEntry>) => Promise<JournalEntry>;
2333
+ remove: (id: string) => Promise<JournalEntry>;
2334
+ };
2335
+ auditLog: {
2336
+ findAll: (options?: {
2337
+ where?: Partial<AuditLog>;
2338
+ relations?: Record<string, boolean>;
2339
+ }) => Promise<AuditLog[]>;
2340
+ findOne: (id: string) => Promise<AuditLog>;
2341
+ create: (data?: Partial<AuditLog>) => Promise<AuditLog>;
2342
+ update: (id: string, newData: Partial<AuditLog>) => Promise<AuditLog>;
2343
+ remove: (id: string) => Promise<AuditLog>;
2344
+ };
2345
+ subsidiary: {
2346
+ findAll: (options?: {
2347
+ where?: Partial<Subsidiary>;
2348
+ relations?: Record<string, boolean>;
2349
+ }) => Promise<Subsidiary[]>;
2350
+ findOne: (id: string) => Promise<Subsidiary>;
2351
+ create: (data?: Partial<Subsidiary>) => Promise<Subsidiary>;
2352
+ update: (id: string, newData: Partial<Subsidiary>) => Promise<Subsidiary>;
2353
+ remove: (id: string) => Promise<Subsidiary>;
2354
+ };
2355
+ companyOption: {
2356
+ findAll: (options?: {
2357
+ where?: Partial<CompanyOption>;
2358
+ relations?: Record<string, boolean>;
2359
+ }) => Promise<CompanyOption[]>;
2360
+ findOne: (id: string) => Promise<CompanyOption>;
2361
+ create: (data?: Partial<CompanyOption>) => Promise<CompanyOption>;
2362
+ update: (id: string, newData: Partial<CompanyOption>) => Promise<CompanyOption>;
2363
+ remove: (id: string) => Promise<CompanyOption>;
2364
+ };
2365
+ companyPermission: {
2366
+ findAll: (options?: {
2367
+ where?: Partial<CompanyPermission>;
2368
+ relations?: Record<string, boolean>;
2369
+ }) => Promise<CompanyPermission[]>;
2370
+ findOne: (id: string) => Promise<CompanyPermission>;
2371
+ create: (data?: Partial<CompanyPermission>) => Promise<CompanyPermission>;
2372
+ update: (id: string, newData: Partial<CompanyPermission>) => Promise<CompanyPermission>;
2373
+ remove: (id: string) => Promise<CompanyPermission>;
2374
+ };
2375
+ customer: {
2376
+ findAll: (options?: {
2377
+ where?: Partial<Customer>;
2378
+ relations?: Record<string, boolean>;
2379
+ }) => Promise<Customer[]>;
2380
+ findOne: (id: string) => Promise<Customer>;
2381
+ create: (data?: Partial<Customer>) => Promise<Customer>;
2382
+ update: (id: string, newData: Partial<Customer>) => Promise<Customer>;
2383
+ remove: (id: string) => Promise<Customer>;
2384
+ };
2385
+ supplier: {
2386
+ findAll: (options?: {
2387
+ where?: Partial<Supplier>;
2388
+ relations?: Record<string, boolean>;
2389
+ }) => Promise<Supplier[]>;
2390
+ findOne: (id: string) => Promise<Supplier>;
2391
+ create: (data?: Partial<Supplier>) => Promise<Supplier>;
2392
+ update: (id: string, newData: Partial<Supplier>) => Promise<Supplier>;
2393
+ remove: (id: string) => Promise<Supplier>;
2394
+ };
2395
+ customEntityField: {
2396
+ findAll: (options?: {
2397
+ where?: Partial<CustomEntityField>;
2398
+ relations?: Record<string, boolean>;
2399
+ }) => Promise<CustomEntityField[]>;
2400
+ findOne: (id: string) => Promise<CustomEntityField>;
2401
+ create: (data?: Partial<CustomEntityField>) => Promise<CustomEntityField>;
2402
+ update: (id: string, newData: Partial<CustomEntityField>) => Promise<CustomEntityField>;
2403
+ remove: (id: string) => Promise<CustomEntityField>;
2404
+ };
2405
+ customEntityObject: {
2406
+ findAll: (options?: {
2407
+ where?: Partial<CustomEntityObject>;
2408
+ relations?: Record<string, boolean>;
2409
+ }) => Promise<CustomEntityObject[]>;
2410
+ findOne: (id: string) => Promise<CustomEntityObject>;
2411
+ create: (data?: Partial<CustomEntityObject>) => Promise<CustomEntityObject>;
2412
+ update: (id: string, newData: Partial<CustomEntityObject>) => Promise<CustomEntityObject>;
2413
+ remove: (id: string) => Promise<CustomEntityObject>;
2414
+ };
2415
+ customEntitySchema: {
2416
+ findAll: (options?: {
2417
+ where?: Partial<CustomEntitySchema>;
2418
+ relations?: Record<string, boolean>;
2419
+ }) => Promise<CustomEntitySchema[]>;
2420
+ findOne: (id: string) => Promise<CustomEntitySchema>;
2421
+ create: (data?: Partial<CustomEntitySchema>) => Promise<CustomEntitySchema>;
2422
+ update: (id: string, newData: Partial<CustomEntitySchema>) => Promise<CustomEntitySchema>;
2423
+ remove: (id: string) => Promise<CustomEntitySchema>;
2424
+ };
2425
+ customField: {
2426
+ findAll: (options?: {
2427
+ where?: Partial<CustomField>;
2428
+ relations?: Record<string, boolean>;
2429
+ }) => Promise<CustomField[]>;
2430
+ findOne: (id: string) => Promise<CustomField>;
2431
+ create: (data?: Partial<CustomField>) => Promise<CustomField>;
2432
+ update: (id: string, newData: Partial<CustomField>) => Promise<CustomField>;
2433
+ remove: (id: string) => Promise<CustomField>;
2434
+ };
2435
+ incomingDeliveryLine: {
2436
+ findAll: (options?: {
2437
+ where?: Partial<IncomingDeliveryLine>;
2438
+ relations?: Record<string, boolean>;
2439
+ }) => Promise<IncomingDeliveryLine[]>;
2440
+ findOne: (id: string) => Promise<IncomingDeliveryLine>;
2441
+ create: (data?: Partial<IncomingDeliveryLine>) => Promise<IncomingDeliveryLine>;
2442
+ update: (id: string, newData: Partial<IncomingDeliveryLine>) => Promise<IncomingDeliveryLine>;
2443
+ remove: (id: string) => Promise<IncomingDeliveryLine>;
2444
+ };
2445
+ incomingDelivery: {
2446
+ findAll: (options?: {
2447
+ where?: Partial<IncomingDelivery>;
2448
+ relations?: Record<string, boolean>;
2449
+ }) => Promise<IncomingDelivery[]>;
2450
+ findOne: (id: string) => Promise<IncomingDelivery>;
2451
+ create: (data?: Partial<IncomingDelivery>) => Promise<IncomingDelivery>;
2452
+ update: (id: string, newData: Partial<IncomingDelivery>) => Promise<IncomingDelivery>;
2453
+ remove: (id: string) => Promise<IncomingDelivery>;
2454
+ };
2455
+ internalDeliveryLine: {
2456
+ findAll: (options?: {
2457
+ where?: Partial<InternalDeliveryLine>;
2458
+ relations?: Record<string, boolean>;
2459
+ }) => Promise<InternalDeliveryLine[]>;
2460
+ findOne: (id: string) => Promise<InternalDeliveryLine>;
2461
+ create: (data?: Partial<InternalDeliveryLine>) => Promise<InternalDeliveryLine>;
2462
+ update: (id: string, newData: Partial<InternalDeliveryLine>) => Promise<InternalDeliveryLine>;
2463
+ remove: (id: string) => Promise<InternalDeliveryLine>;
2464
+ };
2465
+ internalDelivery: {
2466
+ findAll: (options?: {
2467
+ where?: Partial<InternalDelivery>;
2468
+ relations?: Record<string, boolean>;
2469
+ }) => Promise<InternalDelivery[]>;
2470
+ findOne: (id: string) => Promise<InternalDelivery>;
2471
+ create: (data?: Partial<InternalDelivery>) => Promise<InternalDelivery>;
2472
+ update: (id: string, newData: Partial<InternalDelivery>) => Promise<InternalDelivery>;
2473
+ remove: (id: string) => Promise<InternalDelivery>;
2474
+ };
2475
+ outgoingDeliveryLine: {
2476
+ findAll: (options?: {
2477
+ where?: Partial<OutgoingDeliveryLine>;
2478
+ relations?: Record<string, boolean>;
2479
+ }) => Promise<OutgoingDeliveryLine[]>;
2480
+ findOne: (id: string) => Promise<OutgoingDeliveryLine>;
2481
+ create: (data?: Partial<OutgoingDeliveryLine>) => Promise<OutgoingDeliveryLine>;
2482
+ update: (id: string, newData: Partial<OutgoingDeliveryLine>) => Promise<OutgoingDeliveryLine>;
2483
+ remove: (id: string) => Promise<OutgoingDeliveryLine>;
2484
+ };
2485
+ outgoingDelivery: {
2486
+ findAll: (options?: {
2487
+ where?: Partial<OutgoingDelivery>;
2488
+ relations?: Record<string, boolean>;
2489
+ }) => Promise<OutgoingDelivery[]>;
2490
+ findOne: (id: string) => Promise<OutgoingDelivery>;
2491
+ create: (data?: Partial<OutgoingDelivery>) => Promise<OutgoingDelivery>;
2492
+ update: (id: string, newData: Partial<OutgoingDelivery>) => Promise<OutgoingDelivery>;
2493
+ remove: (id: string) => Promise<OutgoingDelivery>;
2494
+ };
2495
+ customDocument: {
2496
+ findAll: (options?: {
2497
+ where?: Partial<CustomDocument>;
2498
+ relations?: Record<string, boolean>;
2499
+ }) => Promise<CustomDocument[]>;
2500
+ findOne: (id: string) => Promise<CustomDocument>;
2501
+ create: (data?: Partial<CustomDocument>) => Promise<CustomDocument>;
2502
+ update: (id: string, newData: Partial<CustomDocument>) => Promise<CustomDocument>;
2503
+ remove: (id: string) => Promise<CustomDocument>;
2504
+ };
2505
+ identifierGroup: {
2506
+ findAll: (options?: {
2507
+ where?: Partial<IdentifierGroup>;
2508
+ relations?: Record<string, boolean>;
2509
+ }) => Promise<IdentifierGroup[]>;
2510
+ findOne: (id: string) => Promise<IdentifierGroup>;
2511
+ create: (data?: Partial<IdentifierGroup>) => Promise<IdentifierGroup>;
2512
+ update: (id: string, newData: Partial<IdentifierGroup>) => Promise<IdentifierGroup>;
2513
+ remove: (id: string) => Promise<IdentifierGroup>;
2514
+ };
2515
+ identifierToken: {
2516
+ findAll: (options?: {
2517
+ where?: Partial<IdentifierToken>;
2518
+ relations?: Record<string, boolean>;
2519
+ }) => Promise<IdentifierToken[]>;
2520
+ findOne: (id: string) => Promise<IdentifierToken>;
2521
+ create: (data?: Partial<IdentifierToken>) => Promise<IdentifierToken>;
2522
+ update: (id: string, newData: Partial<IdentifierToken>) => Promise<IdentifierToken>;
2523
+ remove: (id: string) => Promise<IdentifierToken>;
2524
+ };
2525
+ invoiceLine: {
2526
+ findAll: (options?: {
2527
+ where?: Partial<InvoiceLine>;
2528
+ relations?: Record<string, boolean>;
2529
+ }) => Promise<InvoiceLine[]>;
2530
+ findOne: (id: string) => Promise<InvoiceLine>;
2531
+ create: (data?: Partial<InvoiceLine>) => Promise<InvoiceLine>;
2532
+ update: (id: string, newData: Partial<InvoiceLine>) => Promise<InvoiceLine>;
2533
+ remove: (id: string) => Promise<InvoiceLine>;
2534
+ };
2535
+ invoice: {
2536
+ findAll: (options?: {
2537
+ where?: Partial<Invoice>;
2538
+ relations?: Record<string, boolean>;
2539
+ }) => Promise<Invoice[]>;
2540
+ findOne: (id: string) => Promise<Invoice>;
2541
+ create: (data?: Partial<Invoice>) => Promise<Invoice>;
2542
+ update: (id: string, newData: Partial<Invoice>) => Promise<Invoice>;
2543
+ remove: (id: string) => Promise<Invoice>;
2544
+ };
2545
+ purchaseOrderLine: {
2546
+ findAll: (options?: {
2547
+ where?: Partial<PurchaseOrderLine>;
2548
+ relations?: Record<string, boolean>;
2549
+ }) => Promise<PurchaseOrderLine[]>;
2550
+ findOne: (id: string) => Promise<PurchaseOrderLine>;
2551
+ create: (data?: Partial<PurchaseOrderLine>) => Promise<PurchaseOrderLine>;
2552
+ update: (id: string, newData: Partial<PurchaseOrderLine>) => Promise<PurchaseOrderLine>;
2553
+ remove: (id: string) => Promise<PurchaseOrderLine>;
2554
+ };
2555
+ purchaseOrder: {
2556
+ findAll: (options?: {
2557
+ where?: Partial<PurchaseOrder>;
2558
+ relations?: Record<string, boolean>;
2559
+ }) => Promise<PurchaseOrder[]>;
2560
+ findOne: (id: string) => Promise<PurchaseOrder>;
2561
+ create: (data?: Partial<PurchaseOrder>) => Promise<PurchaseOrder>;
2562
+ update: (id: string, newData: Partial<PurchaseOrder>) => Promise<PurchaseOrder>;
2563
+ remove: (id: string) => Promise<PurchaseOrder>;
2564
+ };
2565
+ salesOrderLine: {
2566
+ findAll: (options?: {
2567
+ where?: Partial<SalesOrderLine>;
2568
+ relations?: Record<string, boolean>;
2569
+ }) => Promise<SalesOrderLine[]>;
2570
+ findOne: (id: string) => Promise<SalesOrderLine>;
2571
+ create: (data?: Partial<SalesOrderLine>) => Promise<SalesOrderLine>;
2572
+ update: (id: string, newData: Partial<SalesOrderLine>) => Promise<SalesOrderLine>;
2573
+ remove: (id: string) => Promise<SalesOrderLine>;
2574
+ };
2575
+ salesOrder: {
2576
+ findAll: (options?: {
2577
+ where?: Partial<SalesOrder>;
2578
+ relations?: Record<string, boolean>;
2579
+ }) => Promise<SalesOrder[]>;
2580
+ findOne: (id: string) => Promise<SalesOrder>;
2581
+ create: (data?: Partial<SalesOrder>) => Promise<SalesOrder>;
2582
+ update: (id: string, newData: Partial<SalesOrder>) => Promise<SalesOrder>;
2583
+ remove: (id: string) => Promise<SalesOrder>;
2584
+ };
2585
+ productItem: {
2586
+ findAll: (options?: {
2587
+ where?: Partial<ProductItem>;
2588
+ relations?: Record<string, boolean>;
2589
+ }) => Promise<ProductItem[]>;
2590
+ findOne: (id: string) => Promise<ProductItem>;
2591
+ create: (data?: Partial<ProductItem>) => Promise<ProductItem>;
2592
+ update: (id: string, newData: Partial<ProductItem>) => Promise<ProductItem>;
2593
+ remove: (id: string) => Promise<ProductItem>;
2594
+ };
2595
+ productSupplier: {
2596
+ findAll: (options?: {
2597
+ where?: Partial<ProductSupplier>;
2598
+ relations?: Record<string, boolean>;
2599
+ }) => Promise<ProductSupplier[]>;
2600
+ findOne: (id: string) => Promise<ProductSupplier>;
2601
+ create: (data?: Partial<ProductSupplier>) => Promise<ProductSupplier>;
2602
+ update: (id: string, newData: Partial<ProductSupplier>) => Promise<ProductSupplier>;
2603
+ remove: (id: string) => Promise<ProductSupplier>;
2604
+ };
2605
+ product: {
2606
+ findAll: (options?: {
2607
+ where?: Partial<Product>;
2608
+ relations?: Record<string, boolean>;
2609
+ }) => Promise<Product[]>;
2610
+ findOne: (id: string) => Promise<Product>;
2611
+ create: (data?: Partial<Product>) => Promise<Product>;
2612
+ update: (id: string, newData: Partial<Product>) => Promise<Product>;
2613
+ remove: (id: string) => Promise<Product>;
2614
+ };
2615
+ productGroup: {
2616
+ findAll: (options?: {
2617
+ where?: Partial<ProductGroup>;
2618
+ relations?: Record<string, boolean>;
2619
+ }) => Promise<ProductGroup[]>;
2620
+ findOne: (id: string) => Promise<ProductGroup>;
2621
+ create: (data?: Partial<ProductGroup>) => Promise<ProductGroup>;
2622
+ update: (id: string, newData: Partial<ProductGroup>) => Promise<ProductGroup>;
2623
+ remove: (id: string) => Promise<ProductGroup>;
2624
+ };
2625
+ quoteLine: {
2626
+ findAll: (options?: {
2627
+ where?: Partial<QuoteLine>;
2628
+ relations?: Record<string, boolean>;
2629
+ }) => Promise<QuoteLine[]>;
2630
+ findOne: (id: string) => Promise<QuoteLine>;
2631
+ create: (data?: Partial<QuoteLine>) => Promise<QuoteLine>;
2632
+ update: (id: string, newData: Partial<QuoteLine>) => Promise<QuoteLine>;
2633
+ remove: (id: string) => Promise<QuoteLine>;
2634
+ };
2635
+ quote: {
2636
+ findAll: (options?: {
2637
+ where?: Partial<Quote>;
2638
+ relations?: Record<string, boolean>;
2639
+ }) => Promise<Quote[]>;
2640
+ findOne: (id: string) => Promise<Quote>;
2641
+ create: (data?: Partial<Quote>) => Promise<Quote>;
2642
+ update: (id: string, newData: Partial<Quote>) => Promise<Quote>;
2643
+ remove: (id: string) => Promise<Quote>;
2644
+ };
2645
+ customReport: {
2646
+ findAll: (options?: {
2647
+ where?: Partial<CustomReport>;
2648
+ relations?: Record<string, boolean>;
2649
+ }) => Promise<CustomReport[]>;
2650
+ findOne: (id: string) => Promise<CustomReport>;
2651
+ create: (data?: Partial<CustomReport>) => Promise<CustomReport>;
2652
+ update: (id: string, newData: Partial<CustomReport>) => Promise<CustomReport>;
2653
+ remove: (id: string) => Promise<CustomReport>;
2654
+ };
2655
+ incomingShipment: {
2656
+ findAll: (options?: {
2657
+ where?: Partial<IncomingShipment>;
2658
+ relations?: Record<string, boolean>;
2659
+ }) => Promise<IncomingShipment[]>;
2660
+ findOne: (id: string) => Promise<IncomingShipment>;
2661
+ create: (data?: Partial<IncomingShipment>) => Promise<IncomingShipment>;
2662
+ update: (id: string, newData: Partial<IncomingShipment>) => Promise<IncomingShipment>;
2663
+ remove: (id: string) => Promise<IncomingShipment>;
2664
+ };
2665
+ outgoingShipment: {
2666
+ findAll: (options?: {
2667
+ where?: Partial<OutgoingShipment>;
2668
+ relations?: Record<string, boolean>;
2669
+ }) => Promise<OutgoingShipment[]>;
2670
+ findOne: (id: string) => Promise<OutgoingShipment>;
2671
+ create: (data?: Partial<OutgoingShipment>) => Promise<OutgoingShipment>;
2672
+ update: (id: string, newData: Partial<OutgoingShipment>) => Promise<OutgoingShipment>;
2673
+ remove: (id: string) => Promise<OutgoingShipment>;
2674
+ };
2675
+ stockAdjustment: {
2676
+ findAll: (options?: {
2677
+ where?: Partial<StockAdjustment>;
2678
+ relations?: Record<string, boolean>;
2679
+ }) => Promise<StockAdjustment[]>;
2680
+ findOne: (id: string) => Promise<StockAdjustment>;
2681
+ create: (data?: Partial<StockAdjustment>) => Promise<StockAdjustment>;
2682
+ update: (id: string, newData: Partial<StockAdjustment>) => Promise<StockAdjustment>;
2683
+ remove: (id: string) => Promise<StockAdjustment>;
2684
+ };
2685
+ storeProductAttributeValue: {
2686
+ findAll: (options?: {
2687
+ where?: Partial<StoreProductAttributeValue>;
2688
+ relations?: Record<string, boolean>;
2689
+ }) => Promise<StoreProductAttributeValue[]>;
2690
+ findOne: (id: string) => Promise<StoreProductAttributeValue>;
2691
+ create: (data?: Partial<StoreProductAttributeValue>) => Promise<StoreProductAttributeValue>;
2692
+ update: (id: string, newData: Partial<StoreProductAttributeValue>) => Promise<StoreProductAttributeValue>;
2693
+ remove: (id: string) => Promise<StoreProductAttributeValue>;
2694
+ };
2695
+ storeProductAttribute: {
2696
+ findAll: (options?: {
2697
+ where?: Partial<StoreProductAttribute>;
2698
+ relations?: Record<string, boolean>;
2699
+ }) => Promise<StoreProductAttribute[]>;
2700
+ findOne: (id: string) => Promise<StoreProductAttribute>;
2701
+ create: (data?: Partial<StoreProductAttribute>) => Promise<StoreProductAttribute>;
2702
+ update: (id: string, newData: Partial<StoreProductAttribute>) => Promise<StoreProductAttribute>;
2703
+ remove: (id: string) => Promise<StoreProductAttribute>;
2704
+ };
2705
+ storeProductGroup: {
2706
+ findAll: (options?: {
2707
+ where?: Partial<StoreProductGroup>;
2708
+ relations?: Record<string, boolean>;
2709
+ }) => Promise<StoreProductGroup[]>;
2710
+ findOne: (id: string) => Promise<StoreProductGroup>;
2711
+ create: (data?: Partial<StoreProductGroup>) => Promise<StoreProductGroup>;
2712
+ update: (id: string, newData: Partial<StoreProductGroup>) => Promise<StoreProductGroup>;
2713
+ remove: (id: string) => Promise<StoreProductGroup>;
2714
+ };
2715
+ storeProduct: {
2716
+ findAll: (options?: {
2717
+ where?: Partial<StoreProduct>;
2718
+ relations?: Record<string, boolean>;
2719
+ }) => Promise<StoreProduct[]>;
2720
+ findOne: (id: string) => Promise<StoreProduct>;
2721
+ create: (data?: Partial<StoreProduct>) => Promise<StoreProduct>;
2722
+ update: (id: string, newData: Partial<StoreProduct>) => Promise<StoreProduct>;
2723
+ remove: (id: string) => Promise<StoreProduct>;
2724
+ };
2725
+ store: {
2726
+ findAll: (options?: {
2727
+ where?: Partial<Store>;
2728
+ relations?: Record<string, boolean>;
2729
+ }) => Promise<Store[]>;
2730
+ findOne: (id: string) => Promise<Store>;
2731
+ create: (data?: Partial<Store>) => Promise<Store>;
2732
+ update: (id: string, newData: Partial<Store>) => Promise<Store>;
2733
+ remove: (id: string) => Promise<Store>;
2734
+ };
2735
+ printJob: {
2736
+ findAll: (options?: {
2737
+ where?: Partial<PrintJob>;
2738
+ relations?: Record<string, boolean>;
2739
+ }) => Promise<PrintJob[]>;
2740
+ findOne: (id: string) => Promise<PrintJob>;
2741
+ create: (data?: Partial<PrintJob>) => Promise<PrintJob>;
2742
+ update: (id: string, newData: Partial<PrintJob>) => Promise<PrintJob>;
2743
+ remove: (id: string) => Promise<PrintJob>;
2744
+ };
2745
+ invitation: {
2746
+ findAll: (options?: {
2747
+ where?: Partial<Invitation>;
2748
+ relations?: Record<string, boolean>;
2749
+ }) => Promise<Invitation[]>;
2750
+ findOne: (id: string) => Promise<Invitation>;
2751
+ create: (data?: Partial<Invitation>) => Promise<Invitation>;
2752
+ update: (id: string, newData: Partial<Invitation>) => Promise<Invitation>;
2753
+ remove: (id: string) => Promise<Invitation>;
2754
+ };
2755
+ warehouse: {
2756
+ findAll: (options?: {
2757
+ where?: Partial<Warehouse>;
2758
+ relations?: Record<string, boolean>;
2759
+ }) => Promise<Warehouse[]>;
2760
+ findOne: (id: string) => Promise<Warehouse>;
2761
+ create: (data?: Partial<Warehouse>) => Promise<Warehouse>;
2762
+ update: (id: string, newData: Partial<Warehouse>) => Promise<Warehouse>;
2763
+ remove: (id: string) => Promise<Warehouse>;
2764
+ };
2765
+ expenseLine: {
2766
+ findAll: (options?: {
2767
+ where?: Partial<ExpenseLine>;
2768
+ relations?: Record<string, boolean>;
2769
+ }) => Promise<ExpenseLine[]>;
2770
+ findOne: (id: string) => Promise<ExpenseLine>;
2771
+ create: (data?: Partial<ExpenseLine>) => Promise<ExpenseLine>;
2772
+ update: (id: string, newData: Partial<ExpenseLine>) => Promise<ExpenseLine>;
2773
+ remove: (id: string) => Promise<ExpenseLine>;
2774
+ };
2775
+ expense: {
2776
+ findAll: (options?: {
2777
+ where?: Partial<Expense>;
2778
+ relations?: Record<string, boolean>;
2779
+ }) => Promise<Expense[]>;
2780
+ findOne: (id: string) => Promise<Expense>;
2781
+ create: (data?: Partial<Expense>) => Promise<Expense>;
2782
+ update: (id: string, newData: Partial<Expense>) => Promise<Expense>;
2783
+ remove: (id: string) => Promise<Expense>;
2784
+ };
2785
+ fixedAsset: {
2786
+ findAll: (options?: {
2787
+ where?: Partial<FixedAsset>;
2788
+ relations?: Record<string, boolean>;
2789
+ }) => Promise<FixedAsset[]>;
2790
+ findOne: (id: string) => Promise<FixedAsset>;
2791
+ create: (data?: Partial<FixedAsset>) => Promise<FixedAsset>;
2792
+ update: (id: string, newData: Partial<FixedAsset>) => Promise<FixedAsset>;
2793
+ remove: (id: string) => Promise<FixedAsset>;
2794
+ };
2795
+ incomingPaymentMethod: {
2796
+ findAll: (options?: {
2797
+ where?: Partial<IncomingPaymentMethod>;
2798
+ relations?: Record<string, boolean>;
2799
+ }) => Promise<IncomingPaymentMethod[]>;
2800
+ findOne: (id: string) => Promise<IncomingPaymentMethod>;
2801
+ create: (data?: Partial<IncomingPaymentMethod>) => Promise<IncomingPaymentMethod>;
2802
+ update: (id: string, newData: Partial<IncomingPaymentMethod>) => Promise<IncomingPaymentMethod>;
2803
+ remove: (id: string) => Promise<IncomingPaymentMethod>;
2804
+ };
2805
+ payment: {
2806
+ findAll: (options?: {
2807
+ where?: Partial<Payment>;
2808
+ relations?: Record<string, boolean>;
2809
+ }) => Promise<Payment[]>;
2810
+ findOne: (id: string) => Promise<Payment>;
2811
+ create: (data?: Partial<Payment>) => Promise<Payment>;
2812
+ update: (id: string, newData: Partial<Payment>) => Promise<Payment>;
2813
+ remove: (id: string) => Promise<Payment>;
2814
+ };
2815
+ automationJob: {
2816
+ findAll: (options?: {
2817
+ where?: Partial<AutomationJob>;
2818
+ relations?: Record<string, boolean>;
2819
+ }) => Promise<AutomationJob[]>;
2820
+ findOne: (id: string) => Promise<AutomationJob>;
2821
+ create: (data?: Partial<AutomationJob>) => Promise<AutomationJob>;
2822
+ update: (id: string, newData: Partial<AutomationJob>) => Promise<AutomationJob>;
2823
+ remove: (id: string) => Promise<AutomationJob>;
2824
+ };
2825
+ automationScript: {
2826
+ findAll: (options?: {
2827
+ where?: Partial<AutomationScript>;
2828
+ relations?: Record<string, boolean>;
2829
+ }) => Promise<AutomationScript[]>;
2830
+ findOne: (id: string) => Promise<AutomationScript>;
2831
+ create: (data?: Partial<AutomationScript>) => Promise<AutomationScript>;
2832
+ update: (id: string, newData: Partial<AutomationScript>) => Promise<AutomationScript>;
2833
+ remove: (id: string) => Promise<AutomationScript>;
2834
+ };
2835
+ userAction: {
2836
+ findAll: (options?: {
2837
+ where?: Partial<UserAction>;
2838
+ relations?: Record<string, boolean>;
2839
+ }) => Promise<UserAction[]>;
2840
+ findOne: (id: string) => Promise<UserAction>;
2841
+ create: (data?: Partial<UserAction>) => Promise<UserAction>;
2842
+ update: (id: string, newData: Partial<UserAction>) => Promise<UserAction>;
2843
+ remove: (id: string) => Promise<UserAction>;
2844
+ };
2845
+ companyAlias: {
2846
+ findAll: (options?: {
2847
+ where?: Partial<CompanyAlias>;
2848
+ relations?: Record<string, boolean>;
2849
+ }) => Promise<CompanyAlias[]>;
2850
+ findOne: (id: string) => Promise<CompanyAlias>;
2851
+ create: (data?: Partial<CompanyAlias>) => Promise<CompanyAlias>;
2852
+ update: (id: string, newData: Partial<CompanyAlias>) => Promise<CompanyAlias>;
2853
+ remove: (id: string) => Promise<CompanyAlias>;
2854
+ };
2855
+ form: {
2856
+ findAll: (options?: {
2857
+ where?: Partial<Form>;
2858
+ relations?: Record<string, boolean>;
2859
+ }) => Promise<Form[]>;
2860
+ findOne: (id: string) => Promise<Form>;
2861
+ create: (data?: Partial<Form>) => Promise<Form>;
2862
+ update: (id: string, newData: Partial<Form>) => Promise<Form>;
2863
+ remove: (id: string) => Promise<Form>;
2864
+ };
2865
+ deliveryJob: {
2866
+ findAll: (options?: {
2867
+ where?: Partial<DeliveryJob>;
2868
+ relations?: Record<string, boolean>;
2869
+ }) => Promise<DeliveryJob[]>;
2870
+ findOne: (id: string) => Promise<DeliveryJob>;
2871
+ create: (data?: Partial<DeliveryJob>) => Promise<DeliveryJob>;
2872
+ update: (id: string, newData: Partial<DeliveryJob>) => Promise<DeliveryJob>;
2873
+ remove: (id: string) => Promise<DeliveryJob>;
2874
+ };
2875
+ vehicle: {
2876
+ findAll: (options?: {
2877
+ where?: Partial<Vehicle>;
2878
+ relations?: Record<string, boolean>;
2879
+ }) => Promise<Vehicle[]>;
2880
+ findOne: (id: string) => Promise<Vehicle>;
2881
+ create: (data?: Partial<Vehicle>) => Promise<Vehicle>;
2882
+ update: (id: string, newData: Partial<Vehicle>) => Promise<Vehicle>;
2883
+ remove: (id: string) => Promise<Vehicle>;
2884
+ };
2885
+ attendance: {
2886
+ findAll: (options?: {
2887
+ where?: Partial<Attendance>;
2888
+ relations?: Record<string, boolean>;
2889
+ }) => Promise<Attendance[]>;
2890
+ findOne: (id: string) => Promise<Attendance>;
2891
+ create: (data?: Partial<Attendance>) => Promise<Attendance>;
2892
+ update: (id: string, newData: Partial<Attendance>) => Promise<Attendance>;
2893
+ remove: (id: string) => Promise<Attendance>;
2894
+ };
2895
+ employee: {
2896
+ findAll: (options?: {
2897
+ where?: Partial<Employee>;
2898
+ relations?: Record<string, boolean>;
2899
+ }) => Promise<Employee[]>;
2900
+ findOne: (id: string) => Promise<Employee>;
2901
+ create: (data?: Partial<Employee>) => Promise<Employee>;
2902
+ update: (id: string, newData: Partial<Employee>) => Promise<Employee>;
2903
+ remove: (id: string) => Promise<Employee>;
2904
+ };
2905
+ geofence: {
2906
+ findAll: (options?: {
2907
+ where?: Partial<Geofence>;
2908
+ relations?: Record<string, boolean>;
2909
+ }) => Promise<Geofence[]>;
2910
+ findOne: (id: string) => Promise<Geofence>;
2911
+ create: (data?: Partial<Geofence>) => Promise<Geofence>;
2912
+ update: (id: string, newData: Partial<Geofence>) => Promise<Geofence>;
2913
+ remove: (id: string) => Promise<Geofence>;
2914
+ };
2915
+ iotDevice: {
2916
+ findAll: (options?: {
2917
+ where?: Partial<IotDevice>;
2918
+ relations?: Record<string, boolean>;
2919
+ }) => Promise<IotDevice[]>;
2920
+ findOne: (id: string) => Promise<IotDevice>;
2921
+ create: (data?: Partial<IotDevice>) => Promise<IotDevice>;
2922
+ update: (id: string, newData: Partial<IotDevice>) => Promise<IotDevice>;
2923
+ remove: (id: string) => Promise<IotDevice>;
2924
+ };
2925
+ iotJob: {
2926
+ findAll: (options?: {
2927
+ where?: Partial<IotJob>;
2928
+ relations?: Record<string, boolean>;
2929
+ }) => Promise<IotJob[]>;
2930
+ findOne: (id: string) => Promise<IotJob>;
2931
+ create: (data?: Partial<IotJob>) => Promise<IotJob>;
2932
+ update: (id: string, newData: Partial<IotJob>) => Promise<IotJob>;
2933
+ remove: (id: string) => Promise<IotJob>;
2934
+ };
2935
+ bomComponent: {
2936
+ findAll: (options?: {
2937
+ where?: Partial<BOMComponent>;
2938
+ relations?: Record<string, boolean>;
2939
+ }) => Promise<BOMComponent[]>;
2940
+ findOne: (id: string) => Promise<BOMComponent>;
2941
+ create: (data?: Partial<BOMComponent>) => Promise<BOMComponent>;
2942
+ update: (id: string, newData: Partial<BOMComponent>) => Promise<BOMComponent>;
2943
+ remove: (id: string) => Promise<BOMComponent>;
2944
+ };
2945
+ bomOperation: {
2946
+ findAll: (options?: {
2947
+ where?: Partial<BOMOperation>;
2948
+ relations?: Record<string, boolean>;
2949
+ }) => Promise<BOMOperation[]>;
2950
+ findOne: (id: string) => Promise<BOMOperation>;
2951
+ create: (data?: Partial<BOMOperation>) => Promise<BOMOperation>;
2952
+ update: (id: string, newData: Partial<BOMOperation>) => Promise<BOMOperation>;
2953
+ remove: (id: string) => Promise<BOMOperation>;
2954
+ };
2955
+ jobCard: {
2956
+ findAll: (options?: {
2957
+ where?: Partial<JobCard>;
2958
+ relations?: Record<string, boolean>;
2959
+ }) => Promise<JobCard[]>;
2960
+ findOne: (id: string) => Promise<JobCard>;
2961
+ create: (data?: Partial<JobCard>) => Promise<JobCard>;
2962
+ update: (id: string, newData: Partial<JobCard>) => Promise<JobCard>;
2963
+ remove: (id: string) => Promise<JobCard>;
2964
+ };
2965
+ productionOrder: {
2966
+ findAll: (options?: {
2967
+ where?: Partial<ProductionOrder>;
2968
+ relations?: Record<string, boolean>;
2969
+ }) => Promise<ProductionOrder[]>;
2970
+ findOne: (id: string) => Promise<ProductionOrder>;
2971
+ create: (data?: Partial<ProductionOrder>) => Promise<ProductionOrder>;
2972
+ update: (id: string, newData: Partial<ProductionOrder>) => Promise<ProductionOrder>;
2973
+ remove: (id: string) => Promise<ProductionOrder>;
2974
+ };
2975
+ productionOrderLine: {
2976
+ findAll: (options?: {
2977
+ where?: Partial<ProductionOrderLine>;
2978
+ relations?: Record<string, boolean>;
2979
+ }) => Promise<ProductionOrderLine[]>;
2980
+ findOne: (id: string) => Promise<ProductionOrderLine>;
2981
+ create: (data?: Partial<ProductionOrderLine>) => Promise<ProductionOrderLine>;
2982
+ update: (id: string, newData: Partial<ProductionOrderLine>) => Promise<ProductionOrderLine>;
2983
+ remove: (id: string) => Promise<ProductionOrderLine>;
2984
+ };
2985
+ workstation: {
2986
+ findAll: (options?: {
2987
+ where?: Partial<Workstation>;
2988
+ relations?: Record<string, boolean>;
2989
+ }) => Promise<Workstation[]>;
2990
+ findOne: (id: string) => Promise<Workstation>;
2991
+ create: (data?: Partial<Workstation>) => Promise<Workstation>;
2992
+ update: (id: string, newData: Partial<Workstation>) => Promise<Workstation>;
2993
+ remove: (id: string) => Promise<Workstation>;
2994
+ };
2995
+ rentalOrderLine: {
2996
+ findAll: (options?: {
2997
+ where?: Partial<RentalOrderLine>;
2998
+ relations?: Record<string, boolean>;
2999
+ }) => Promise<RentalOrderLine[]>;
3000
+ findOne: (id: string) => Promise<RentalOrderLine>;
3001
+ create: (data?: Partial<RentalOrderLine>) => Promise<RentalOrderLine>;
3002
+ update: (id: string, newData: Partial<RentalOrderLine>) => Promise<RentalOrderLine>;
3003
+ remove: (id: string) => Promise<RentalOrderLine>;
3004
+ };
3005
+ rentalOrder: {
3006
+ findAll: (options?: {
3007
+ where?: Partial<RentalOrder>;
3008
+ relations?: Record<string, boolean>;
3009
+ }) => Promise<RentalOrder[]>;
3010
+ findOne: (id: string) => Promise<RentalOrder>;
3011
+ create: (data?: Partial<RentalOrder>) => Promise<RentalOrder>;
3012
+ update: (id: string, newData: Partial<RentalOrder>) => Promise<RentalOrder>;
3013
+ remove: (id: string) => Promise<RentalOrder>;
3014
+ };
3015
+ userPersonaCustomSchemaPermission: {
3016
+ findAll: (options?: {
3017
+ where?: Partial<UserPersonaCustomSchemaPermission>;
3018
+ relations?: Record<string, boolean>;
3019
+ }) => Promise<UserPersonaCustomSchemaPermission[]>;
3020
+ findOne: (id: string) => Promise<UserPersonaCustomSchemaPermission>;
3021
+ create: (data?: Partial<UserPersonaCustomSchemaPermission>) => Promise<UserPersonaCustomSchemaPermission>;
3022
+ update: (id: string, newData: Partial<UserPersonaCustomSchemaPermission>) => Promise<UserPersonaCustomSchemaPermission>;
3023
+ remove: (id: string) => Promise<UserPersonaCustomSchemaPermission>;
3024
+ };
3025
+ userPersonaEntityAccessStatus: {
3026
+ findAll: (options?: {
3027
+ where?: Partial<UserPersonaEntityAccessStatus>;
3028
+ relations?: Record<string, boolean>;
3029
+ }) => Promise<UserPersonaEntityAccessStatus[]>;
3030
+ findOne: (id: string) => Promise<UserPersonaEntityAccessStatus>;
3031
+ create: (data?: Partial<UserPersonaEntityAccessStatus>) => Promise<UserPersonaEntityAccessStatus>;
3032
+ update: (id: string, newData: Partial<UserPersonaEntityAccessStatus>) => Promise<UserPersonaEntityAccessStatus>;
3033
+ remove: (id: string) => Promise<UserPersonaEntityAccessStatus>;
3034
+ };
3035
+ userPersonaEntityPermission: {
3036
+ findAll: (options?: {
3037
+ where?: Partial<UserPersonaEntityPermission>;
3038
+ relations?: Record<string, boolean>;
3039
+ }) => Promise<UserPersonaEntityPermission[]>;
3040
+ findOne: (id: string) => Promise<UserPersonaEntityPermission>;
3041
+ create: (data?: Partial<UserPersonaEntityPermission>) => Promise<UserPersonaEntityPermission>;
3042
+ update: (id: string, newData: Partial<UserPersonaEntityPermission>) => Promise<UserPersonaEntityPermission>;
3043
+ remove: (id: string) => Promise<UserPersonaEntityPermission>;
3044
+ };
3045
+ userPersona: {
3046
+ findAll: (options?: {
3047
+ where?: Partial<UserPersona>;
3048
+ relations?: Record<string, boolean>;
3049
+ }) => Promise<UserPersona[]>;
3050
+ findOne: (id: string) => Promise<UserPersona>;
3051
+ create: (data?: Partial<UserPersona>) => Promise<UserPersona>;
3052
+ update: (id: string, newData: Partial<UserPersona>) => Promise<UserPersona>;
3053
+ remove: (id: string) => Promise<UserPersona>;
3054
+ };
3055
+ shift: {
3056
+ findAll: (options?: {
3057
+ where?: Partial<Shift>;
3058
+ relations?: Record<string, boolean>;
3059
+ }) => Promise<Shift[]>;
3060
+ findOne: (id: string) => Promise<Shift>;
3061
+ create: (data?: Partial<Shift>) => Promise<Shift>;
3062
+ update: (id: string, newData: Partial<Shift>) => Promise<Shift>;
3063
+ remove: (id: string) => Promise<Shift>;
3064
+ };
186
3065
  setToken: (token: string) => void;
187
3066
  setCompanyId: (companyId: string) => void;
188
3067
  setBaseUrl: (baseUrl: string) => void;
@@ -205,4 +3084,4 @@ declare const konversiAPI: {
205
3084
 
206
3085
  declare const Entity: typeof crudEndpoints;
207
3086
 
208
- export { Entity, konversiAPI as default, runScript };
3087
+ export { Entity, createCustomObject, createObject, konversiAPI as default, deleteCustomObject, deleteObject, getAllObjects, getObjectById, runScript, updateObject };