@konversi/konversi-client 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/axiosAPI.ts CHANGED
@@ -1,23 +1,23 @@
1
- import axios from 'axios';
2
-
3
- const baseURL = 'https://us.api.konversi.net/api'
4
- const timeout = 30000
5
-
6
- const instance = axios.create({
7
- baseURL,
8
- timeout
9
- })
10
-
11
- export const setAuthToken = (token: string) => {
12
- instance.defaults.headers.common.authorization = `Bearer ${token}`
13
- }
14
-
15
- export const setCompanyId = (companyId: string) => {
16
- instance.defaults.headers.common['Company'] = companyId;
17
- }
18
-
19
- export const clearAuthToken = () => {
20
- instance.defaults.headers.common.authorization = ''
21
- }
22
-
1
+ import axios from 'axios';
2
+
3
+ const baseURL = 'https://us.api.konversi.net/api'
4
+ const timeout = 30000
5
+
6
+ const instance = axios.create({
7
+ baseURL,
8
+ timeout
9
+ })
10
+
11
+ export const setAuthToken = (token: string) => {
12
+ instance.defaults.headers.common.authorization = `Bearer ${token}`
13
+ }
14
+
15
+ export const setCompanyId = (companyId: string) => {
16
+ instance.defaults.headers.common['Company'] = companyId;
17
+ }
18
+
19
+ export const clearAuthToken = () => {
20
+ instance.defaults.headers.common.authorization = ''
21
+ }
22
+
23
23
  export default instance;
package/crudEndpoints.ts CHANGED
@@ -1,96 +1,96 @@
1
- export const COMPANY_PERMISSION = 'company-permission';
2
- export const COMPANY_OPTION = 'company-option';
3
- export const INVITATION = 'user/invitation';
4
-
5
- export const CUSTOMER = 'contact/customer';
6
-
7
- export const PRODUCT = 'product'
8
- export const PRODUCT_ITEM = 'product/product-item'
9
- export const PRODUCT_GROUP = 'product-group'
10
-
11
- export const PURCHASE_ORDER = 'order/purchase-order'
12
- export const PURCHASE_ORDER_LINE = 'order/purchase-order-line'
13
- export const QUOTE = 'order/quote'
14
- export const QUOTE_LINE = 'order/quote-line'
15
- export const SALES_ORDER = 'order/sales-order'
16
- export const SALES_ORDER_LINE = 'order/sales-order-line'
17
- export const RENTAL_ORDER = 'order/rental-order'
18
- export const RENTAL_ORDER_LINE = 'order/rental-order-line'
19
- export const SUPPLIER = 'contact/supplier'
20
- export const WAREHOUSE = 'warehouse'
21
-
22
- // Deliveries
23
- export const INCOMING_DELIVERY = 'delivery/incoming-delivery'
24
- export const INCOMING_DELIVERY_LINE = 'delivery/incoming-delivery-line'
25
- export const OUTGOING_DELIVERY = 'delivery/outgoing-delivery'
26
- export const OUTGOING_DELIVERY_LINE = 'delivery/outgoing-delivery-line'
27
- export const INTERNAL_DELIVERY = 'delivery/internal-delivery'
28
- export const INTERNAL_DELIVERY_LINE = 'delivery/internal-delivery-line'
29
-
30
- // Finance
31
- export const INVOICE = 'invoice'
32
- export const INVOICE_LINE = 'invoice/invoice-line'
33
- export const EXPENSE = 'expense'
34
- export const EXPENSE_LINE = 'expense/expense-line'
35
- export const PAYMENT = 'accounting/payment'
36
- export const INCOMING_PAYMENT_METHOD = 'accounting/incoming-payment-method'
37
- export const FIXED_ASSET = 'fixed-asset'
38
-
39
- // ECommerce
40
- export const STORE = 'store'
41
- export const STORE_PRODUCT = 'store/store-product'
42
- export const STORE_PRODUCT_GROUP = 'store/store-product-group'
43
-
44
- // Accounting
45
- export const ACCOUNT = 'accounting/account';
46
- export const JOURNAL_ENTRY = 'accounting/journal-entry';
47
- export const JOURNAL_ENTRY_LINE = 'accounting/journal-entry-line';
48
-
49
- // Manufacturing
50
- export const BILL_OF_MATERIALS = 'manufacturing/bill-of-materials'
51
- export const BOM_COMPONENT = 'manufacturing/bom-component'
52
- export const BOM_OPERATION = 'manufacturing/bom-operation'
53
- export const PRODUCTION_ORDER = 'manufacturing/production-order'
54
- export const PRODUCTION_ORDER_LINE = 'manufacturing/production-order-line'
55
-
56
- export const SUBSIDIARY = 'subsidiary'
57
-
58
- // HR
59
- export const EMPLOYEE = 'human-resources/employee'
60
- export const ATTENDANCE = 'human-resources/attendance'
61
-
62
- // Fleet Management
63
- export const VEHICLE = 'fleet/vehicle'
64
- export const DELIVERY_JOB = 'fleet/delivery-job'
65
-
66
- // Custom Objects
67
- export const CUSTOM_ENTITY_SCHEMA = 'custom-entity/schema'
68
- export const CUSTOM_ENTITY_OBJECT = 'custom-entity'; // Need to add schemaName after this
69
- export const CUSTOM_ENTITY_FIELD = 'custom-entity/field'; // Need to add schemaName after this
70
-
71
- // Automation
72
- export const AUTOMATION_JOB = 'automation/job'
73
- export const AUTOMATION_SCRIPT = 'automation/script'
74
-
75
- export const STOCK_ADJUSTMENT = 'stock-adjustment'
76
-
77
- export const PURCHASE_ORDER_APPROVER = 'approval/approver/purchase-order'
78
- export const SALES_ORDER_APPROVER = 'approval/approver/sales-order'
79
-
80
- // Document Generation
81
- export const CUSTOM_DOCUMENT = 'document-generator/custom-document';
82
-
83
- export const CUSTOM_FIELD = 'custom-field'
84
-
85
- export const AUDIT_LOG = 'audit-log'
86
-
87
- export const COMPANY_ALIAS = 'company-alias'
88
-
89
- export const PRINT_JOB = 'thermal-printer/print-job'
90
-
91
- export const WORK_ORDER = 'order/sales-order?type=WORK_ORDER';
92
-
93
- // TODO: Deprecate
94
- export const INCOMING_SHIPMENT = 'shipment/incoming-shipment'
95
- export const OUTGOING_SHIPMENT = 'shipment/outgoing-shipment'
1
+ export const COMPANY_PERMISSION = 'company-permission';
2
+ export const COMPANY_OPTION = 'company-option';
3
+ export const INVITATION = 'user/invitation';
4
+
5
+ export const CUSTOMER = 'contact/customer';
6
+
7
+ export const PRODUCT = 'product'
8
+ export const PRODUCT_ITEM = 'product/product-item'
9
+ export const PRODUCT_GROUP = 'product-group'
10
+
11
+ export const PURCHASE_ORDER = 'order/purchase-order'
12
+ export const PURCHASE_ORDER_LINE = 'order/purchase-order-line'
13
+ export const QUOTE = 'order/quote'
14
+ export const QUOTE_LINE = 'order/quote-line'
15
+ export const SALES_ORDER = 'order/sales-order'
16
+ export const SALES_ORDER_LINE = 'order/sales-order-line'
17
+ export const RENTAL_ORDER = 'order/rental-order'
18
+ export const RENTAL_ORDER_LINE = 'order/rental-order-line'
19
+ export const SUPPLIER = 'contact/supplier'
20
+ export const WAREHOUSE = 'warehouse'
21
+
22
+ // Deliveries
23
+ export const INCOMING_DELIVERY = 'delivery/incoming-delivery'
24
+ export const INCOMING_DELIVERY_LINE = 'delivery/incoming-delivery-line'
25
+ export const OUTGOING_DELIVERY = 'delivery/outgoing-delivery'
26
+ export const OUTGOING_DELIVERY_LINE = 'delivery/outgoing-delivery-line'
27
+ export const INTERNAL_DELIVERY = 'delivery/internal-delivery'
28
+ export const INTERNAL_DELIVERY_LINE = 'delivery/internal-delivery-line'
29
+
30
+ // Finance
31
+ export const INVOICE = 'invoice'
32
+ export const INVOICE_LINE = 'invoice/invoice-line'
33
+ export const EXPENSE = 'expense'
34
+ export const EXPENSE_LINE = 'expense/expense-line'
35
+ export const PAYMENT = 'accounting/payment'
36
+ export const INCOMING_PAYMENT_METHOD = 'accounting/incoming-payment-method'
37
+ export const FIXED_ASSET = 'fixed-asset'
38
+
39
+ // ECommerce
40
+ export const STORE = 'store'
41
+ export const STORE_PRODUCT = 'store/store-product'
42
+ export const STORE_PRODUCT_GROUP = 'store/store-product-group'
43
+
44
+ // Accounting
45
+ export const ACCOUNT = 'accounting/account';
46
+ export const JOURNAL_ENTRY = 'accounting/journal-entry';
47
+ export const JOURNAL_ENTRY_LINE = 'accounting/journal-entry-line';
48
+
49
+ // Manufacturing
50
+ export const BILL_OF_MATERIALS = 'manufacturing/bill-of-materials'
51
+ export const BOM_COMPONENT = 'manufacturing/bom-component'
52
+ export const BOM_OPERATION = 'manufacturing/bom-operation'
53
+ export const PRODUCTION_ORDER = 'manufacturing/production-order'
54
+ export const PRODUCTION_ORDER_LINE = 'manufacturing/production-order-line'
55
+
56
+ export const SUBSIDIARY = 'subsidiary'
57
+
58
+ // HR
59
+ export const EMPLOYEE = 'human-resources/employee'
60
+ export const ATTENDANCE = 'human-resources/attendance'
61
+
62
+ // Fleet Management
63
+ export const VEHICLE = 'fleet/vehicle'
64
+ export const DELIVERY_JOB = 'fleet/delivery-job'
65
+
66
+ // Custom Objects
67
+ export const CUSTOM_ENTITY_SCHEMA = 'custom-entity/schema'
68
+ export const CUSTOM_ENTITY_OBJECT = 'custom-entity'; // Need to add schemaName after this
69
+ export const CUSTOM_ENTITY_FIELD = 'custom-entity/field'; // Need to add schemaName after this
70
+
71
+ // Automation
72
+ export const AUTOMATION_JOB = 'automation/job'
73
+ export const AUTOMATION_SCRIPT = 'automation/script'
74
+
75
+ export const STOCK_ADJUSTMENT = 'stock-adjustment'
76
+
77
+ export const PURCHASE_ORDER_APPROVER = 'approval/approver/purchase-order'
78
+ export const SALES_ORDER_APPROVER = 'approval/approver/sales-order'
79
+
80
+ // Document Generation
81
+ export const CUSTOM_DOCUMENT = 'document-generator/custom-document';
82
+
83
+ export const CUSTOM_FIELD = 'custom-field'
84
+
85
+ export const AUDIT_LOG = 'audit-log'
86
+
87
+ export const COMPANY_ALIAS = 'company-alias'
88
+
89
+ export const PRINT_JOB = 'thermal-printer/print-job'
90
+
91
+ export const WORK_ORDER = 'order/sales-order?type=WORK_ORDER';
92
+
93
+ // TODO: Deprecate
94
+ export const INCOMING_SHIPMENT = 'shipment/incoming-shipment'
95
+ export const OUTGOING_SHIPMENT = 'shipment/outgoing-shipment'
96
96
  ///
package/dist/index.d.mts CHANGED
@@ -1,3 +1,5 @@
1
+ import * as axios from 'axios';
2
+
1
3
  declare const COMPANY_PERMISSION = "company-permission";
2
4
  declare const COMPANY_OPTION = "company-option";
3
5
  declare const INVITATION = "user/invitation";
@@ -61,70 +63,70 @@ declare const WORK_ORDER = "order/sales-order?type=WORK_ORDER";
61
63
  declare const INCOMING_SHIPMENT = "shipment/incoming-shipment";
62
64
  declare const OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
63
65
 
64
- declare const crudEndpointsImported_ACCOUNT: typeof ACCOUNT;
65
- declare const crudEndpointsImported_ATTENDANCE: typeof ATTENDANCE;
66
- declare const crudEndpointsImported_AUDIT_LOG: typeof AUDIT_LOG;
67
- declare const crudEndpointsImported_AUTOMATION_JOB: typeof AUTOMATION_JOB;
68
- declare const crudEndpointsImported_AUTOMATION_SCRIPT: typeof AUTOMATION_SCRIPT;
69
- declare const crudEndpointsImported_BILL_OF_MATERIALS: typeof BILL_OF_MATERIALS;
70
- declare const crudEndpointsImported_BOM_COMPONENT: typeof BOM_COMPONENT;
71
- declare const crudEndpointsImported_BOM_OPERATION: typeof BOM_OPERATION;
72
- declare const crudEndpointsImported_COMPANY_ALIAS: typeof COMPANY_ALIAS;
73
- declare const crudEndpointsImported_COMPANY_OPTION: typeof COMPANY_OPTION;
74
- declare const crudEndpointsImported_COMPANY_PERMISSION: typeof COMPANY_PERMISSION;
75
- declare const crudEndpointsImported_CUSTOMER: typeof CUSTOMER;
76
- declare const crudEndpointsImported_CUSTOM_DOCUMENT: typeof CUSTOM_DOCUMENT;
77
- declare const crudEndpointsImported_CUSTOM_ENTITY_FIELD: typeof CUSTOM_ENTITY_FIELD;
78
- declare const crudEndpointsImported_CUSTOM_ENTITY_OBJECT: typeof CUSTOM_ENTITY_OBJECT;
79
- declare const crudEndpointsImported_CUSTOM_ENTITY_SCHEMA: typeof CUSTOM_ENTITY_SCHEMA;
80
- declare const crudEndpointsImported_CUSTOM_FIELD: typeof CUSTOM_FIELD;
81
- declare const crudEndpointsImported_DELIVERY_JOB: typeof DELIVERY_JOB;
82
- declare const crudEndpointsImported_EMPLOYEE: typeof EMPLOYEE;
83
- declare const crudEndpointsImported_EXPENSE: typeof EXPENSE;
84
- declare const crudEndpointsImported_EXPENSE_LINE: typeof EXPENSE_LINE;
85
- declare const crudEndpointsImported_FIXED_ASSET: typeof FIXED_ASSET;
86
- declare const crudEndpointsImported_INCOMING_DELIVERY: typeof INCOMING_DELIVERY;
87
- declare const crudEndpointsImported_INCOMING_DELIVERY_LINE: typeof INCOMING_DELIVERY_LINE;
88
- declare const crudEndpointsImported_INCOMING_PAYMENT_METHOD: typeof INCOMING_PAYMENT_METHOD;
89
- declare const crudEndpointsImported_INCOMING_SHIPMENT: typeof INCOMING_SHIPMENT;
90
- declare const crudEndpointsImported_INTERNAL_DELIVERY: typeof INTERNAL_DELIVERY;
91
- declare const crudEndpointsImported_INTERNAL_DELIVERY_LINE: typeof INTERNAL_DELIVERY_LINE;
92
- declare const crudEndpointsImported_INVITATION: typeof INVITATION;
93
- declare const crudEndpointsImported_INVOICE: typeof INVOICE;
94
- declare const crudEndpointsImported_INVOICE_LINE: typeof INVOICE_LINE;
95
- declare const crudEndpointsImported_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
96
- declare const crudEndpointsImported_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
97
- declare const crudEndpointsImported_OUTGOING_DELIVERY: typeof OUTGOING_DELIVERY;
98
- declare const crudEndpointsImported_OUTGOING_DELIVERY_LINE: typeof OUTGOING_DELIVERY_LINE;
99
- declare const crudEndpointsImported_OUTGOING_SHIPMENT: typeof OUTGOING_SHIPMENT;
100
- declare const crudEndpointsImported_PAYMENT: typeof PAYMENT;
101
- declare const crudEndpointsImported_PRINT_JOB: typeof PRINT_JOB;
102
- declare const crudEndpointsImported_PRODUCT: typeof PRODUCT;
103
- declare const crudEndpointsImported_PRODUCTION_ORDER: typeof PRODUCTION_ORDER;
104
- declare const crudEndpointsImported_PRODUCTION_ORDER_LINE: typeof PRODUCTION_ORDER_LINE;
105
- declare const crudEndpointsImported_PRODUCT_GROUP: typeof PRODUCT_GROUP;
106
- declare const crudEndpointsImported_PRODUCT_ITEM: typeof PRODUCT_ITEM;
107
- declare const crudEndpointsImported_PURCHASE_ORDER: typeof PURCHASE_ORDER;
108
- declare const crudEndpointsImported_PURCHASE_ORDER_APPROVER: typeof PURCHASE_ORDER_APPROVER;
109
- declare const crudEndpointsImported_PURCHASE_ORDER_LINE: typeof PURCHASE_ORDER_LINE;
110
- declare const crudEndpointsImported_QUOTE: typeof QUOTE;
111
- declare const crudEndpointsImported_QUOTE_LINE: typeof QUOTE_LINE;
112
- declare const crudEndpointsImported_RENTAL_ORDER: typeof RENTAL_ORDER;
113
- declare const crudEndpointsImported_RENTAL_ORDER_LINE: typeof RENTAL_ORDER_LINE;
114
- declare const crudEndpointsImported_SALES_ORDER: typeof SALES_ORDER;
115
- declare const crudEndpointsImported_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
116
- declare const crudEndpointsImported_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
117
- declare const crudEndpointsImported_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
118
- declare const crudEndpointsImported_STORE: typeof STORE;
119
- declare const crudEndpointsImported_STORE_PRODUCT: typeof STORE_PRODUCT;
120
- declare const crudEndpointsImported_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
121
- declare const crudEndpointsImported_SUBSIDIARY: typeof SUBSIDIARY;
122
- declare const crudEndpointsImported_SUPPLIER: typeof SUPPLIER;
123
- declare const crudEndpointsImported_VEHICLE: typeof VEHICLE;
124
- declare const crudEndpointsImported_WAREHOUSE: typeof WAREHOUSE;
125
- declare const crudEndpointsImported_WORK_ORDER: typeof WORK_ORDER;
126
- declare namespace crudEndpointsImported {
127
- export { crudEndpointsImported_ACCOUNT as ACCOUNT, crudEndpointsImported_ATTENDANCE as ATTENDANCE, crudEndpointsImported_AUDIT_LOG as AUDIT_LOG, crudEndpointsImported_AUTOMATION_JOB as AUTOMATION_JOB, crudEndpointsImported_AUTOMATION_SCRIPT as AUTOMATION_SCRIPT, crudEndpointsImported_BILL_OF_MATERIALS as BILL_OF_MATERIALS, crudEndpointsImported_BOM_COMPONENT as BOM_COMPONENT, crudEndpointsImported_BOM_OPERATION as BOM_OPERATION, crudEndpointsImported_COMPANY_ALIAS as COMPANY_ALIAS, crudEndpointsImported_COMPANY_OPTION as COMPANY_OPTION, crudEndpointsImported_COMPANY_PERMISSION as COMPANY_PERMISSION, crudEndpointsImported_CUSTOMER as CUSTOMER, crudEndpointsImported_CUSTOM_DOCUMENT as CUSTOM_DOCUMENT, crudEndpointsImported_CUSTOM_ENTITY_FIELD as CUSTOM_ENTITY_FIELD, crudEndpointsImported_CUSTOM_ENTITY_OBJECT as CUSTOM_ENTITY_OBJECT, crudEndpointsImported_CUSTOM_ENTITY_SCHEMA as CUSTOM_ENTITY_SCHEMA, crudEndpointsImported_CUSTOM_FIELD as CUSTOM_FIELD, crudEndpointsImported_DELIVERY_JOB as DELIVERY_JOB, crudEndpointsImported_EMPLOYEE as EMPLOYEE, crudEndpointsImported_EXPENSE as EXPENSE, crudEndpointsImported_EXPENSE_LINE as EXPENSE_LINE, crudEndpointsImported_FIXED_ASSET as FIXED_ASSET, crudEndpointsImported_INCOMING_DELIVERY as INCOMING_DELIVERY, crudEndpointsImported_INCOMING_DELIVERY_LINE as INCOMING_DELIVERY_LINE, crudEndpointsImported_INCOMING_PAYMENT_METHOD as INCOMING_PAYMENT_METHOD, crudEndpointsImported_INCOMING_SHIPMENT as INCOMING_SHIPMENT, crudEndpointsImported_INTERNAL_DELIVERY as INTERNAL_DELIVERY, crudEndpointsImported_INTERNAL_DELIVERY_LINE as INTERNAL_DELIVERY_LINE, crudEndpointsImported_INVITATION as INVITATION, crudEndpointsImported_INVOICE as INVOICE, crudEndpointsImported_INVOICE_LINE as INVOICE_LINE, crudEndpointsImported_JOURNAL_ENTRY as JOURNAL_ENTRY, crudEndpointsImported_JOURNAL_ENTRY_LINE as JOURNAL_ENTRY_LINE, crudEndpointsImported_OUTGOING_DELIVERY as OUTGOING_DELIVERY, crudEndpointsImported_OUTGOING_DELIVERY_LINE as OUTGOING_DELIVERY_LINE, crudEndpointsImported_OUTGOING_SHIPMENT as OUTGOING_SHIPMENT, crudEndpointsImported_PAYMENT as PAYMENT, crudEndpointsImported_PRINT_JOB as PRINT_JOB, crudEndpointsImported_PRODUCT as PRODUCT, crudEndpointsImported_PRODUCTION_ORDER as PRODUCTION_ORDER, crudEndpointsImported_PRODUCTION_ORDER_LINE as PRODUCTION_ORDER_LINE, crudEndpointsImported_PRODUCT_GROUP as PRODUCT_GROUP, crudEndpointsImported_PRODUCT_ITEM as PRODUCT_ITEM, crudEndpointsImported_PURCHASE_ORDER as PURCHASE_ORDER, crudEndpointsImported_PURCHASE_ORDER_APPROVER as PURCHASE_ORDER_APPROVER, crudEndpointsImported_PURCHASE_ORDER_LINE as PURCHASE_ORDER_LINE, crudEndpointsImported_QUOTE as QUOTE, crudEndpointsImported_QUOTE_LINE as QUOTE_LINE, crudEndpointsImported_RENTAL_ORDER as RENTAL_ORDER, crudEndpointsImported_RENTAL_ORDER_LINE as RENTAL_ORDER_LINE, crudEndpointsImported_SALES_ORDER as SALES_ORDER, crudEndpointsImported_SALES_ORDER_APPROVER as SALES_ORDER_APPROVER, crudEndpointsImported_SALES_ORDER_LINE as SALES_ORDER_LINE, crudEndpointsImported_STOCK_ADJUSTMENT as STOCK_ADJUSTMENT, crudEndpointsImported_STORE as STORE, crudEndpointsImported_STORE_PRODUCT as STORE_PRODUCT, crudEndpointsImported_STORE_PRODUCT_GROUP as STORE_PRODUCT_GROUP, crudEndpointsImported_SUBSIDIARY as SUBSIDIARY, crudEndpointsImported_SUPPLIER as SUPPLIER, crudEndpointsImported_VEHICLE as VEHICLE, crudEndpointsImported_WAREHOUSE as WAREHOUSE, crudEndpointsImported_WORK_ORDER as WORK_ORDER };
66
+ declare const crudEndpoints_ACCOUNT: typeof ACCOUNT;
67
+ declare const crudEndpoints_ATTENDANCE: typeof ATTENDANCE;
68
+ declare const crudEndpoints_AUDIT_LOG: typeof AUDIT_LOG;
69
+ declare const crudEndpoints_AUTOMATION_JOB: typeof AUTOMATION_JOB;
70
+ declare const crudEndpoints_AUTOMATION_SCRIPT: typeof AUTOMATION_SCRIPT;
71
+ declare const crudEndpoints_BILL_OF_MATERIALS: typeof BILL_OF_MATERIALS;
72
+ declare const crudEndpoints_BOM_COMPONENT: typeof BOM_COMPONENT;
73
+ declare const crudEndpoints_BOM_OPERATION: typeof BOM_OPERATION;
74
+ declare const crudEndpoints_COMPANY_ALIAS: typeof COMPANY_ALIAS;
75
+ declare const crudEndpoints_COMPANY_OPTION: typeof COMPANY_OPTION;
76
+ declare const crudEndpoints_COMPANY_PERMISSION: typeof COMPANY_PERMISSION;
77
+ declare const crudEndpoints_CUSTOMER: typeof CUSTOMER;
78
+ declare const crudEndpoints_CUSTOM_DOCUMENT: typeof CUSTOM_DOCUMENT;
79
+ declare const crudEndpoints_CUSTOM_ENTITY_FIELD: typeof CUSTOM_ENTITY_FIELD;
80
+ declare const crudEndpoints_CUSTOM_ENTITY_OBJECT: typeof CUSTOM_ENTITY_OBJECT;
81
+ declare const crudEndpoints_CUSTOM_ENTITY_SCHEMA: typeof CUSTOM_ENTITY_SCHEMA;
82
+ declare const crudEndpoints_CUSTOM_FIELD: typeof CUSTOM_FIELD;
83
+ declare const crudEndpoints_DELIVERY_JOB: typeof DELIVERY_JOB;
84
+ declare const crudEndpoints_EMPLOYEE: typeof EMPLOYEE;
85
+ declare const crudEndpoints_EXPENSE: typeof EXPENSE;
86
+ declare const crudEndpoints_EXPENSE_LINE: typeof EXPENSE_LINE;
87
+ declare const crudEndpoints_FIXED_ASSET: typeof FIXED_ASSET;
88
+ declare const crudEndpoints_INCOMING_DELIVERY: typeof INCOMING_DELIVERY;
89
+ declare const crudEndpoints_INCOMING_DELIVERY_LINE: typeof INCOMING_DELIVERY_LINE;
90
+ declare const crudEndpoints_INCOMING_PAYMENT_METHOD: typeof INCOMING_PAYMENT_METHOD;
91
+ declare const crudEndpoints_INCOMING_SHIPMENT: typeof INCOMING_SHIPMENT;
92
+ declare const crudEndpoints_INTERNAL_DELIVERY: typeof INTERNAL_DELIVERY;
93
+ declare const crudEndpoints_INTERNAL_DELIVERY_LINE: typeof INTERNAL_DELIVERY_LINE;
94
+ declare const crudEndpoints_INVITATION: typeof INVITATION;
95
+ declare const crudEndpoints_INVOICE: typeof INVOICE;
96
+ declare const crudEndpoints_INVOICE_LINE: typeof INVOICE_LINE;
97
+ declare const crudEndpoints_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
98
+ declare const crudEndpoints_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
99
+ declare const crudEndpoints_OUTGOING_DELIVERY: typeof OUTGOING_DELIVERY;
100
+ declare const crudEndpoints_OUTGOING_DELIVERY_LINE: typeof OUTGOING_DELIVERY_LINE;
101
+ declare const crudEndpoints_OUTGOING_SHIPMENT: typeof OUTGOING_SHIPMENT;
102
+ declare const crudEndpoints_PAYMENT: typeof PAYMENT;
103
+ declare const crudEndpoints_PRINT_JOB: typeof PRINT_JOB;
104
+ declare const crudEndpoints_PRODUCT: typeof PRODUCT;
105
+ declare const crudEndpoints_PRODUCTION_ORDER: typeof PRODUCTION_ORDER;
106
+ declare const crudEndpoints_PRODUCTION_ORDER_LINE: typeof PRODUCTION_ORDER_LINE;
107
+ declare const crudEndpoints_PRODUCT_GROUP: typeof PRODUCT_GROUP;
108
+ declare const crudEndpoints_PRODUCT_ITEM: typeof PRODUCT_ITEM;
109
+ declare const crudEndpoints_PURCHASE_ORDER: typeof PURCHASE_ORDER;
110
+ declare const crudEndpoints_PURCHASE_ORDER_APPROVER: typeof PURCHASE_ORDER_APPROVER;
111
+ declare const crudEndpoints_PURCHASE_ORDER_LINE: typeof PURCHASE_ORDER_LINE;
112
+ declare const crudEndpoints_QUOTE: typeof QUOTE;
113
+ declare const crudEndpoints_QUOTE_LINE: typeof QUOTE_LINE;
114
+ declare const crudEndpoints_RENTAL_ORDER: typeof RENTAL_ORDER;
115
+ declare const crudEndpoints_RENTAL_ORDER_LINE: typeof RENTAL_ORDER_LINE;
116
+ declare const crudEndpoints_SALES_ORDER: typeof SALES_ORDER;
117
+ declare const crudEndpoints_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
118
+ declare const crudEndpoints_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
119
+ declare const crudEndpoints_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
120
+ declare const crudEndpoints_STORE: typeof STORE;
121
+ declare const crudEndpoints_STORE_PRODUCT: typeof STORE_PRODUCT;
122
+ declare const crudEndpoints_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
123
+ declare const crudEndpoints_SUBSIDIARY: typeof SUBSIDIARY;
124
+ declare const crudEndpoints_SUPPLIER: typeof SUPPLIER;
125
+ declare const crudEndpoints_VEHICLE: typeof VEHICLE;
126
+ declare const crudEndpoints_WAREHOUSE: typeof WAREHOUSE;
127
+ declare const crudEndpoints_WORK_ORDER: typeof WORK_ORDER;
128
+ declare namespace crudEndpoints {
129
+ export { crudEndpoints_ACCOUNT as ACCOUNT, crudEndpoints_ATTENDANCE as ATTENDANCE, crudEndpoints_AUDIT_LOG as AUDIT_LOG, crudEndpoints_AUTOMATION_JOB as AUTOMATION_JOB, crudEndpoints_AUTOMATION_SCRIPT as AUTOMATION_SCRIPT, crudEndpoints_BILL_OF_MATERIALS as BILL_OF_MATERIALS, crudEndpoints_BOM_COMPONENT as BOM_COMPONENT, crudEndpoints_BOM_OPERATION as BOM_OPERATION, crudEndpoints_COMPANY_ALIAS as COMPANY_ALIAS, crudEndpoints_COMPANY_OPTION as COMPANY_OPTION, crudEndpoints_COMPANY_PERMISSION as COMPANY_PERMISSION, crudEndpoints_CUSTOMER as CUSTOMER, crudEndpoints_CUSTOM_DOCUMENT as CUSTOM_DOCUMENT, crudEndpoints_CUSTOM_ENTITY_FIELD as CUSTOM_ENTITY_FIELD, crudEndpoints_CUSTOM_ENTITY_OBJECT as CUSTOM_ENTITY_OBJECT, crudEndpoints_CUSTOM_ENTITY_SCHEMA as CUSTOM_ENTITY_SCHEMA, crudEndpoints_CUSTOM_FIELD as CUSTOM_FIELD, crudEndpoints_DELIVERY_JOB as DELIVERY_JOB, crudEndpoints_EMPLOYEE as EMPLOYEE, crudEndpoints_EXPENSE as EXPENSE, crudEndpoints_EXPENSE_LINE as EXPENSE_LINE, crudEndpoints_FIXED_ASSET as FIXED_ASSET, crudEndpoints_INCOMING_DELIVERY as INCOMING_DELIVERY, crudEndpoints_INCOMING_DELIVERY_LINE as INCOMING_DELIVERY_LINE, crudEndpoints_INCOMING_PAYMENT_METHOD as INCOMING_PAYMENT_METHOD, crudEndpoints_INCOMING_SHIPMENT as INCOMING_SHIPMENT, crudEndpoints_INTERNAL_DELIVERY as INTERNAL_DELIVERY, crudEndpoints_INTERNAL_DELIVERY_LINE as INTERNAL_DELIVERY_LINE, crudEndpoints_INVITATION as INVITATION, crudEndpoints_INVOICE as INVOICE, crudEndpoints_INVOICE_LINE as INVOICE_LINE, crudEndpoints_JOURNAL_ENTRY as JOURNAL_ENTRY, crudEndpoints_JOURNAL_ENTRY_LINE as JOURNAL_ENTRY_LINE, crudEndpoints_OUTGOING_DELIVERY as OUTGOING_DELIVERY, crudEndpoints_OUTGOING_DELIVERY_LINE as OUTGOING_DELIVERY_LINE, crudEndpoints_OUTGOING_SHIPMENT as OUTGOING_SHIPMENT, crudEndpoints_PAYMENT as PAYMENT, crudEndpoints_PRINT_JOB as PRINT_JOB, crudEndpoints_PRODUCT as PRODUCT, crudEndpoints_PRODUCTION_ORDER as PRODUCTION_ORDER, crudEndpoints_PRODUCTION_ORDER_LINE as PRODUCTION_ORDER_LINE, crudEndpoints_PRODUCT_GROUP as PRODUCT_GROUP, crudEndpoints_PRODUCT_ITEM as PRODUCT_ITEM, crudEndpoints_PURCHASE_ORDER as PURCHASE_ORDER, crudEndpoints_PURCHASE_ORDER_APPROVER as PURCHASE_ORDER_APPROVER, crudEndpoints_PURCHASE_ORDER_LINE as PURCHASE_ORDER_LINE, crudEndpoints_QUOTE as QUOTE, crudEndpoints_QUOTE_LINE as QUOTE_LINE, crudEndpoints_RENTAL_ORDER as RENTAL_ORDER, crudEndpoints_RENTAL_ORDER_LINE as RENTAL_ORDER_LINE, crudEndpoints_SALES_ORDER as SALES_ORDER, crudEndpoints_SALES_ORDER_APPROVER as SALES_ORDER_APPROVER, crudEndpoints_SALES_ORDER_LINE as SALES_ORDER_LINE, crudEndpoints_STOCK_ADJUSTMENT as STOCK_ADJUSTMENT, crudEndpoints_STORE as STORE, crudEndpoints_STORE_PRODUCT as STORE_PRODUCT, crudEndpoints_STORE_PRODUCT_GROUP as STORE_PRODUCT_GROUP, crudEndpoints_SUBSIDIARY as SUBSIDIARY, crudEndpoints_SUPPLIER as SUPPLIER, crudEndpoints_VEHICLE as VEHICLE, crudEndpoints_WAREHOUSE as WAREHOUSE, crudEndpoints_WORK_ORDER as WORK_ORDER };
128
130
  }
129
131
 
130
132
  declare function getAllObjects(entity: any, queryParams?: any): Promise<any>;
@@ -140,8 +142,11 @@ declare const konversiAPI: {
140
142
  updateObject: typeof updateObject;
141
143
  createObject: typeof createObject;
142
144
  deleteObject: typeof deleteObject;
145
+ baseUrl: string | undefined;
146
+ token: string;
147
+ companyId: axios.AxiosHeaderValue | undefined;
143
148
  };
144
149
 
145
- declare const crudEndpoints: typeof crudEndpointsImported;
150
+ declare const Entity: typeof crudEndpoints;
146
151
 
147
- export { crudEndpoints, konversiAPI as default };
152
+ export { Entity, konversiAPI as default };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import * as axios from 'axios';
2
+
1
3
  declare const COMPANY_PERMISSION = "company-permission";
2
4
  declare const COMPANY_OPTION = "company-option";
3
5
  declare const INVITATION = "user/invitation";
@@ -61,70 +63,70 @@ declare const WORK_ORDER = "order/sales-order?type=WORK_ORDER";
61
63
  declare const INCOMING_SHIPMENT = "shipment/incoming-shipment";
62
64
  declare const OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
63
65
 
64
- declare const crudEndpointsImported_ACCOUNT: typeof ACCOUNT;
65
- declare const crudEndpointsImported_ATTENDANCE: typeof ATTENDANCE;
66
- declare const crudEndpointsImported_AUDIT_LOG: typeof AUDIT_LOG;
67
- declare const crudEndpointsImported_AUTOMATION_JOB: typeof AUTOMATION_JOB;
68
- declare const crudEndpointsImported_AUTOMATION_SCRIPT: typeof AUTOMATION_SCRIPT;
69
- declare const crudEndpointsImported_BILL_OF_MATERIALS: typeof BILL_OF_MATERIALS;
70
- declare const crudEndpointsImported_BOM_COMPONENT: typeof BOM_COMPONENT;
71
- declare const crudEndpointsImported_BOM_OPERATION: typeof BOM_OPERATION;
72
- declare const crudEndpointsImported_COMPANY_ALIAS: typeof COMPANY_ALIAS;
73
- declare const crudEndpointsImported_COMPANY_OPTION: typeof COMPANY_OPTION;
74
- declare const crudEndpointsImported_COMPANY_PERMISSION: typeof COMPANY_PERMISSION;
75
- declare const crudEndpointsImported_CUSTOMER: typeof CUSTOMER;
76
- declare const crudEndpointsImported_CUSTOM_DOCUMENT: typeof CUSTOM_DOCUMENT;
77
- declare const crudEndpointsImported_CUSTOM_ENTITY_FIELD: typeof CUSTOM_ENTITY_FIELD;
78
- declare const crudEndpointsImported_CUSTOM_ENTITY_OBJECT: typeof CUSTOM_ENTITY_OBJECT;
79
- declare const crudEndpointsImported_CUSTOM_ENTITY_SCHEMA: typeof CUSTOM_ENTITY_SCHEMA;
80
- declare const crudEndpointsImported_CUSTOM_FIELD: typeof CUSTOM_FIELD;
81
- declare const crudEndpointsImported_DELIVERY_JOB: typeof DELIVERY_JOB;
82
- declare const crudEndpointsImported_EMPLOYEE: typeof EMPLOYEE;
83
- declare const crudEndpointsImported_EXPENSE: typeof EXPENSE;
84
- declare const crudEndpointsImported_EXPENSE_LINE: typeof EXPENSE_LINE;
85
- declare const crudEndpointsImported_FIXED_ASSET: typeof FIXED_ASSET;
86
- declare const crudEndpointsImported_INCOMING_DELIVERY: typeof INCOMING_DELIVERY;
87
- declare const crudEndpointsImported_INCOMING_DELIVERY_LINE: typeof INCOMING_DELIVERY_LINE;
88
- declare const crudEndpointsImported_INCOMING_PAYMENT_METHOD: typeof INCOMING_PAYMENT_METHOD;
89
- declare const crudEndpointsImported_INCOMING_SHIPMENT: typeof INCOMING_SHIPMENT;
90
- declare const crudEndpointsImported_INTERNAL_DELIVERY: typeof INTERNAL_DELIVERY;
91
- declare const crudEndpointsImported_INTERNAL_DELIVERY_LINE: typeof INTERNAL_DELIVERY_LINE;
92
- declare const crudEndpointsImported_INVITATION: typeof INVITATION;
93
- declare const crudEndpointsImported_INVOICE: typeof INVOICE;
94
- declare const crudEndpointsImported_INVOICE_LINE: typeof INVOICE_LINE;
95
- declare const crudEndpointsImported_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
96
- declare const crudEndpointsImported_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
97
- declare const crudEndpointsImported_OUTGOING_DELIVERY: typeof OUTGOING_DELIVERY;
98
- declare const crudEndpointsImported_OUTGOING_DELIVERY_LINE: typeof OUTGOING_DELIVERY_LINE;
99
- declare const crudEndpointsImported_OUTGOING_SHIPMENT: typeof OUTGOING_SHIPMENT;
100
- declare const crudEndpointsImported_PAYMENT: typeof PAYMENT;
101
- declare const crudEndpointsImported_PRINT_JOB: typeof PRINT_JOB;
102
- declare const crudEndpointsImported_PRODUCT: typeof PRODUCT;
103
- declare const crudEndpointsImported_PRODUCTION_ORDER: typeof PRODUCTION_ORDER;
104
- declare const crudEndpointsImported_PRODUCTION_ORDER_LINE: typeof PRODUCTION_ORDER_LINE;
105
- declare const crudEndpointsImported_PRODUCT_GROUP: typeof PRODUCT_GROUP;
106
- declare const crudEndpointsImported_PRODUCT_ITEM: typeof PRODUCT_ITEM;
107
- declare const crudEndpointsImported_PURCHASE_ORDER: typeof PURCHASE_ORDER;
108
- declare const crudEndpointsImported_PURCHASE_ORDER_APPROVER: typeof PURCHASE_ORDER_APPROVER;
109
- declare const crudEndpointsImported_PURCHASE_ORDER_LINE: typeof PURCHASE_ORDER_LINE;
110
- declare const crudEndpointsImported_QUOTE: typeof QUOTE;
111
- declare const crudEndpointsImported_QUOTE_LINE: typeof QUOTE_LINE;
112
- declare const crudEndpointsImported_RENTAL_ORDER: typeof RENTAL_ORDER;
113
- declare const crudEndpointsImported_RENTAL_ORDER_LINE: typeof RENTAL_ORDER_LINE;
114
- declare const crudEndpointsImported_SALES_ORDER: typeof SALES_ORDER;
115
- declare const crudEndpointsImported_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
116
- declare const crudEndpointsImported_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
117
- declare const crudEndpointsImported_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
118
- declare const crudEndpointsImported_STORE: typeof STORE;
119
- declare const crudEndpointsImported_STORE_PRODUCT: typeof STORE_PRODUCT;
120
- declare const crudEndpointsImported_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
121
- declare const crudEndpointsImported_SUBSIDIARY: typeof SUBSIDIARY;
122
- declare const crudEndpointsImported_SUPPLIER: typeof SUPPLIER;
123
- declare const crudEndpointsImported_VEHICLE: typeof VEHICLE;
124
- declare const crudEndpointsImported_WAREHOUSE: typeof WAREHOUSE;
125
- declare const crudEndpointsImported_WORK_ORDER: typeof WORK_ORDER;
126
- declare namespace crudEndpointsImported {
127
- export { crudEndpointsImported_ACCOUNT as ACCOUNT, crudEndpointsImported_ATTENDANCE as ATTENDANCE, crudEndpointsImported_AUDIT_LOG as AUDIT_LOG, crudEndpointsImported_AUTOMATION_JOB as AUTOMATION_JOB, crudEndpointsImported_AUTOMATION_SCRIPT as AUTOMATION_SCRIPT, crudEndpointsImported_BILL_OF_MATERIALS as BILL_OF_MATERIALS, crudEndpointsImported_BOM_COMPONENT as BOM_COMPONENT, crudEndpointsImported_BOM_OPERATION as BOM_OPERATION, crudEndpointsImported_COMPANY_ALIAS as COMPANY_ALIAS, crudEndpointsImported_COMPANY_OPTION as COMPANY_OPTION, crudEndpointsImported_COMPANY_PERMISSION as COMPANY_PERMISSION, crudEndpointsImported_CUSTOMER as CUSTOMER, crudEndpointsImported_CUSTOM_DOCUMENT as CUSTOM_DOCUMENT, crudEndpointsImported_CUSTOM_ENTITY_FIELD as CUSTOM_ENTITY_FIELD, crudEndpointsImported_CUSTOM_ENTITY_OBJECT as CUSTOM_ENTITY_OBJECT, crudEndpointsImported_CUSTOM_ENTITY_SCHEMA as CUSTOM_ENTITY_SCHEMA, crudEndpointsImported_CUSTOM_FIELD as CUSTOM_FIELD, crudEndpointsImported_DELIVERY_JOB as DELIVERY_JOB, crudEndpointsImported_EMPLOYEE as EMPLOYEE, crudEndpointsImported_EXPENSE as EXPENSE, crudEndpointsImported_EXPENSE_LINE as EXPENSE_LINE, crudEndpointsImported_FIXED_ASSET as FIXED_ASSET, crudEndpointsImported_INCOMING_DELIVERY as INCOMING_DELIVERY, crudEndpointsImported_INCOMING_DELIVERY_LINE as INCOMING_DELIVERY_LINE, crudEndpointsImported_INCOMING_PAYMENT_METHOD as INCOMING_PAYMENT_METHOD, crudEndpointsImported_INCOMING_SHIPMENT as INCOMING_SHIPMENT, crudEndpointsImported_INTERNAL_DELIVERY as INTERNAL_DELIVERY, crudEndpointsImported_INTERNAL_DELIVERY_LINE as INTERNAL_DELIVERY_LINE, crudEndpointsImported_INVITATION as INVITATION, crudEndpointsImported_INVOICE as INVOICE, crudEndpointsImported_INVOICE_LINE as INVOICE_LINE, crudEndpointsImported_JOURNAL_ENTRY as JOURNAL_ENTRY, crudEndpointsImported_JOURNAL_ENTRY_LINE as JOURNAL_ENTRY_LINE, crudEndpointsImported_OUTGOING_DELIVERY as OUTGOING_DELIVERY, crudEndpointsImported_OUTGOING_DELIVERY_LINE as OUTGOING_DELIVERY_LINE, crudEndpointsImported_OUTGOING_SHIPMENT as OUTGOING_SHIPMENT, crudEndpointsImported_PAYMENT as PAYMENT, crudEndpointsImported_PRINT_JOB as PRINT_JOB, crudEndpointsImported_PRODUCT as PRODUCT, crudEndpointsImported_PRODUCTION_ORDER as PRODUCTION_ORDER, crudEndpointsImported_PRODUCTION_ORDER_LINE as PRODUCTION_ORDER_LINE, crudEndpointsImported_PRODUCT_GROUP as PRODUCT_GROUP, crudEndpointsImported_PRODUCT_ITEM as PRODUCT_ITEM, crudEndpointsImported_PURCHASE_ORDER as PURCHASE_ORDER, crudEndpointsImported_PURCHASE_ORDER_APPROVER as PURCHASE_ORDER_APPROVER, crudEndpointsImported_PURCHASE_ORDER_LINE as PURCHASE_ORDER_LINE, crudEndpointsImported_QUOTE as QUOTE, crudEndpointsImported_QUOTE_LINE as QUOTE_LINE, crudEndpointsImported_RENTAL_ORDER as RENTAL_ORDER, crudEndpointsImported_RENTAL_ORDER_LINE as RENTAL_ORDER_LINE, crudEndpointsImported_SALES_ORDER as SALES_ORDER, crudEndpointsImported_SALES_ORDER_APPROVER as SALES_ORDER_APPROVER, crudEndpointsImported_SALES_ORDER_LINE as SALES_ORDER_LINE, crudEndpointsImported_STOCK_ADJUSTMENT as STOCK_ADJUSTMENT, crudEndpointsImported_STORE as STORE, crudEndpointsImported_STORE_PRODUCT as STORE_PRODUCT, crudEndpointsImported_STORE_PRODUCT_GROUP as STORE_PRODUCT_GROUP, crudEndpointsImported_SUBSIDIARY as SUBSIDIARY, crudEndpointsImported_SUPPLIER as SUPPLIER, crudEndpointsImported_VEHICLE as VEHICLE, crudEndpointsImported_WAREHOUSE as WAREHOUSE, crudEndpointsImported_WORK_ORDER as WORK_ORDER };
66
+ declare const crudEndpoints_ACCOUNT: typeof ACCOUNT;
67
+ declare const crudEndpoints_ATTENDANCE: typeof ATTENDANCE;
68
+ declare const crudEndpoints_AUDIT_LOG: typeof AUDIT_LOG;
69
+ declare const crudEndpoints_AUTOMATION_JOB: typeof AUTOMATION_JOB;
70
+ declare const crudEndpoints_AUTOMATION_SCRIPT: typeof AUTOMATION_SCRIPT;
71
+ declare const crudEndpoints_BILL_OF_MATERIALS: typeof BILL_OF_MATERIALS;
72
+ declare const crudEndpoints_BOM_COMPONENT: typeof BOM_COMPONENT;
73
+ declare const crudEndpoints_BOM_OPERATION: typeof BOM_OPERATION;
74
+ declare const crudEndpoints_COMPANY_ALIAS: typeof COMPANY_ALIAS;
75
+ declare const crudEndpoints_COMPANY_OPTION: typeof COMPANY_OPTION;
76
+ declare const crudEndpoints_COMPANY_PERMISSION: typeof COMPANY_PERMISSION;
77
+ declare const crudEndpoints_CUSTOMER: typeof CUSTOMER;
78
+ declare const crudEndpoints_CUSTOM_DOCUMENT: typeof CUSTOM_DOCUMENT;
79
+ declare const crudEndpoints_CUSTOM_ENTITY_FIELD: typeof CUSTOM_ENTITY_FIELD;
80
+ declare const crudEndpoints_CUSTOM_ENTITY_OBJECT: typeof CUSTOM_ENTITY_OBJECT;
81
+ declare const crudEndpoints_CUSTOM_ENTITY_SCHEMA: typeof CUSTOM_ENTITY_SCHEMA;
82
+ declare const crudEndpoints_CUSTOM_FIELD: typeof CUSTOM_FIELD;
83
+ declare const crudEndpoints_DELIVERY_JOB: typeof DELIVERY_JOB;
84
+ declare const crudEndpoints_EMPLOYEE: typeof EMPLOYEE;
85
+ declare const crudEndpoints_EXPENSE: typeof EXPENSE;
86
+ declare const crudEndpoints_EXPENSE_LINE: typeof EXPENSE_LINE;
87
+ declare const crudEndpoints_FIXED_ASSET: typeof FIXED_ASSET;
88
+ declare const crudEndpoints_INCOMING_DELIVERY: typeof INCOMING_DELIVERY;
89
+ declare const crudEndpoints_INCOMING_DELIVERY_LINE: typeof INCOMING_DELIVERY_LINE;
90
+ declare const crudEndpoints_INCOMING_PAYMENT_METHOD: typeof INCOMING_PAYMENT_METHOD;
91
+ declare const crudEndpoints_INCOMING_SHIPMENT: typeof INCOMING_SHIPMENT;
92
+ declare const crudEndpoints_INTERNAL_DELIVERY: typeof INTERNAL_DELIVERY;
93
+ declare const crudEndpoints_INTERNAL_DELIVERY_LINE: typeof INTERNAL_DELIVERY_LINE;
94
+ declare const crudEndpoints_INVITATION: typeof INVITATION;
95
+ declare const crudEndpoints_INVOICE: typeof INVOICE;
96
+ declare const crudEndpoints_INVOICE_LINE: typeof INVOICE_LINE;
97
+ declare const crudEndpoints_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
98
+ declare const crudEndpoints_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
99
+ declare const crudEndpoints_OUTGOING_DELIVERY: typeof OUTGOING_DELIVERY;
100
+ declare const crudEndpoints_OUTGOING_DELIVERY_LINE: typeof OUTGOING_DELIVERY_LINE;
101
+ declare const crudEndpoints_OUTGOING_SHIPMENT: typeof OUTGOING_SHIPMENT;
102
+ declare const crudEndpoints_PAYMENT: typeof PAYMENT;
103
+ declare const crudEndpoints_PRINT_JOB: typeof PRINT_JOB;
104
+ declare const crudEndpoints_PRODUCT: typeof PRODUCT;
105
+ declare const crudEndpoints_PRODUCTION_ORDER: typeof PRODUCTION_ORDER;
106
+ declare const crudEndpoints_PRODUCTION_ORDER_LINE: typeof PRODUCTION_ORDER_LINE;
107
+ declare const crudEndpoints_PRODUCT_GROUP: typeof PRODUCT_GROUP;
108
+ declare const crudEndpoints_PRODUCT_ITEM: typeof PRODUCT_ITEM;
109
+ declare const crudEndpoints_PURCHASE_ORDER: typeof PURCHASE_ORDER;
110
+ declare const crudEndpoints_PURCHASE_ORDER_APPROVER: typeof PURCHASE_ORDER_APPROVER;
111
+ declare const crudEndpoints_PURCHASE_ORDER_LINE: typeof PURCHASE_ORDER_LINE;
112
+ declare const crudEndpoints_QUOTE: typeof QUOTE;
113
+ declare const crudEndpoints_QUOTE_LINE: typeof QUOTE_LINE;
114
+ declare const crudEndpoints_RENTAL_ORDER: typeof RENTAL_ORDER;
115
+ declare const crudEndpoints_RENTAL_ORDER_LINE: typeof RENTAL_ORDER_LINE;
116
+ declare const crudEndpoints_SALES_ORDER: typeof SALES_ORDER;
117
+ declare const crudEndpoints_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
118
+ declare const crudEndpoints_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
119
+ declare const crudEndpoints_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
120
+ declare const crudEndpoints_STORE: typeof STORE;
121
+ declare const crudEndpoints_STORE_PRODUCT: typeof STORE_PRODUCT;
122
+ declare const crudEndpoints_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
123
+ declare const crudEndpoints_SUBSIDIARY: typeof SUBSIDIARY;
124
+ declare const crudEndpoints_SUPPLIER: typeof SUPPLIER;
125
+ declare const crudEndpoints_VEHICLE: typeof VEHICLE;
126
+ declare const crudEndpoints_WAREHOUSE: typeof WAREHOUSE;
127
+ declare const crudEndpoints_WORK_ORDER: typeof WORK_ORDER;
128
+ declare namespace crudEndpoints {
129
+ export { crudEndpoints_ACCOUNT as ACCOUNT, crudEndpoints_ATTENDANCE as ATTENDANCE, crudEndpoints_AUDIT_LOG as AUDIT_LOG, crudEndpoints_AUTOMATION_JOB as AUTOMATION_JOB, crudEndpoints_AUTOMATION_SCRIPT as AUTOMATION_SCRIPT, crudEndpoints_BILL_OF_MATERIALS as BILL_OF_MATERIALS, crudEndpoints_BOM_COMPONENT as BOM_COMPONENT, crudEndpoints_BOM_OPERATION as BOM_OPERATION, crudEndpoints_COMPANY_ALIAS as COMPANY_ALIAS, crudEndpoints_COMPANY_OPTION as COMPANY_OPTION, crudEndpoints_COMPANY_PERMISSION as COMPANY_PERMISSION, crudEndpoints_CUSTOMER as CUSTOMER, crudEndpoints_CUSTOM_DOCUMENT as CUSTOM_DOCUMENT, crudEndpoints_CUSTOM_ENTITY_FIELD as CUSTOM_ENTITY_FIELD, crudEndpoints_CUSTOM_ENTITY_OBJECT as CUSTOM_ENTITY_OBJECT, crudEndpoints_CUSTOM_ENTITY_SCHEMA as CUSTOM_ENTITY_SCHEMA, crudEndpoints_CUSTOM_FIELD as CUSTOM_FIELD, crudEndpoints_DELIVERY_JOB as DELIVERY_JOB, crudEndpoints_EMPLOYEE as EMPLOYEE, crudEndpoints_EXPENSE as EXPENSE, crudEndpoints_EXPENSE_LINE as EXPENSE_LINE, crudEndpoints_FIXED_ASSET as FIXED_ASSET, crudEndpoints_INCOMING_DELIVERY as INCOMING_DELIVERY, crudEndpoints_INCOMING_DELIVERY_LINE as INCOMING_DELIVERY_LINE, crudEndpoints_INCOMING_PAYMENT_METHOD as INCOMING_PAYMENT_METHOD, crudEndpoints_INCOMING_SHIPMENT as INCOMING_SHIPMENT, crudEndpoints_INTERNAL_DELIVERY as INTERNAL_DELIVERY, crudEndpoints_INTERNAL_DELIVERY_LINE as INTERNAL_DELIVERY_LINE, crudEndpoints_INVITATION as INVITATION, crudEndpoints_INVOICE as INVOICE, crudEndpoints_INVOICE_LINE as INVOICE_LINE, crudEndpoints_JOURNAL_ENTRY as JOURNAL_ENTRY, crudEndpoints_JOURNAL_ENTRY_LINE as JOURNAL_ENTRY_LINE, crudEndpoints_OUTGOING_DELIVERY as OUTGOING_DELIVERY, crudEndpoints_OUTGOING_DELIVERY_LINE as OUTGOING_DELIVERY_LINE, crudEndpoints_OUTGOING_SHIPMENT as OUTGOING_SHIPMENT, crudEndpoints_PAYMENT as PAYMENT, crudEndpoints_PRINT_JOB as PRINT_JOB, crudEndpoints_PRODUCT as PRODUCT, crudEndpoints_PRODUCTION_ORDER as PRODUCTION_ORDER, crudEndpoints_PRODUCTION_ORDER_LINE as PRODUCTION_ORDER_LINE, crudEndpoints_PRODUCT_GROUP as PRODUCT_GROUP, crudEndpoints_PRODUCT_ITEM as PRODUCT_ITEM, crudEndpoints_PURCHASE_ORDER as PURCHASE_ORDER, crudEndpoints_PURCHASE_ORDER_APPROVER as PURCHASE_ORDER_APPROVER, crudEndpoints_PURCHASE_ORDER_LINE as PURCHASE_ORDER_LINE, crudEndpoints_QUOTE as QUOTE, crudEndpoints_QUOTE_LINE as QUOTE_LINE, crudEndpoints_RENTAL_ORDER as RENTAL_ORDER, crudEndpoints_RENTAL_ORDER_LINE as RENTAL_ORDER_LINE, crudEndpoints_SALES_ORDER as SALES_ORDER, crudEndpoints_SALES_ORDER_APPROVER as SALES_ORDER_APPROVER, crudEndpoints_SALES_ORDER_LINE as SALES_ORDER_LINE, crudEndpoints_STOCK_ADJUSTMENT as STOCK_ADJUSTMENT, crudEndpoints_STORE as STORE, crudEndpoints_STORE_PRODUCT as STORE_PRODUCT, crudEndpoints_STORE_PRODUCT_GROUP as STORE_PRODUCT_GROUP, crudEndpoints_SUBSIDIARY as SUBSIDIARY, crudEndpoints_SUPPLIER as SUPPLIER, crudEndpoints_VEHICLE as VEHICLE, crudEndpoints_WAREHOUSE as WAREHOUSE, crudEndpoints_WORK_ORDER as WORK_ORDER };
128
130
  }
129
131
 
130
132
  declare function getAllObjects(entity: any, queryParams?: any): Promise<any>;
@@ -140,8 +142,11 @@ declare const konversiAPI: {
140
142
  updateObject: typeof updateObject;
141
143
  createObject: typeof createObject;
142
144
  deleteObject: typeof deleteObject;
145
+ baseUrl: string | undefined;
146
+ token: string;
147
+ companyId: axios.AxiosHeaderValue | undefined;
143
148
  };
144
149
 
145
- declare const crudEndpoints: typeof crudEndpointsImported;
150
+ declare const Entity: typeof crudEndpoints;
146
151
 
147
- export { crudEndpoints, konversiAPI as default };
152
+ export { Entity, konversiAPI as default };
package/dist/index.js CHANGED
@@ -50,7 +50,7 @@ var __async = (__this, __arguments, generator) => {
50
50
  // index.ts
51
51
  var konversi_client_exports = {};
52
52
  __export(konversi_client_exports, {
53
- crudEndpoints: () => crudEndpoints,
53
+ Entity: () => Entity,
54
54
  default: () => konversi_client_default
55
55
  });
56
56
  module.exports = __toCommonJS(konversi_client_exports);
@@ -233,6 +233,7 @@ function deleteObject(entity, id) {
233
233
  return response.data;
234
234
  });
235
235
  }
236
+ var _a;
236
237
  var konversiAPI = {
237
238
  setToken: setAuthToken,
238
239
  setCompanyId,
@@ -240,11 +241,14 @@ var konversiAPI = {
240
241
  getObjectById,
241
242
  updateObject,
242
243
  createObject,
243
- deleteObject
244
+ deleteObject,
245
+ baseUrl: axiosAPI_default.defaults.baseURL,
246
+ token: ((_a = axiosAPI_default.defaults.headers.common["Authorization"]) == null ? void 0 : _a.toString().split(" ")[1]) || "",
247
+ companyId: axiosAPI_default.defaults.headers.common["Company"]
244
248
  };
245
249
  var konversi_client_default = konversiAPI;
246
- var crudEndpoints = crudEndpoints_exports;
250
+ var Entity = crudEndpoints_exports;
247
251
  // Annotate the CommonJS export names for ESM import in node:
248
252
  0 && (module.exports = {
249
- crudEndpoints
253
+ Entity
250
254
  });
package/dist/index.mjs CHANGED
@@ -202,6 +202,7 @@ function deleteObject(entity, id) {
202
202
  return response.data;
203
203
  });
204
204
  }
205
+ var _a;
205
206
  var konversiAPI = {
206
207
  setToken: setAuthToken,
207
208
  setCompanyId,
@@ -209,11 +210,14 @@ var konversiAPI = {
209
210
  getObjectById,
210
211
  updateObject,
211
212
  createObject,
212
- deleteObject
213
+ deleteObject,
214
+ baseUrl: axiosAPI_default.defaults.baseURL,
215
+ token: ((_a = axiosAPI_default.defaults.headers.common["Authorization"]) == null ? void 0 : _a.toString().split(" ")[1]) || "",
216
+ companyId: axiosAPI_default.defaults.headers.common["Company"]
213
217
  };
214
218
  var konversi_client_default = konversiAPI;
215
- var crudEndpoints = crudEndpoints_exports;
219
+ var Entity = crudEndpoints_exports;
216
220
  export {
217
- crudEndpoints,
221
+ Entity,
218
222
  konversi_client_default as default
219
223
  };
package/index.ts CHANGED
@@ -1,45 +1,51 @@
1
- import axiosAPI, { setAuthToken, setCompanyId } from "./axiosAPI";
2
-
3
- import * as crudEndpointsImported from "./crudEndpoints";
4
-
5
- async function getAllObjects(entity: any, queryParams: any = {}) {
6
- const response = await axiosAPI.get(`${entity}`, {
7
- params: queryParams
8
- })
9
- return response.data;
10
- }
11
-
12
- async function getObjectById(entity: any, id: string) {
13
- const response = await axiosAPI.get(`${entity}/${id}`)
14
- return response.data;
15
- }
16
-
17
- async function updateObject(entity: any, id: string, newData: any) {
18
- const response = await axiosAPI.put(`${entity}/${id}`, newData)
19
- return response.data;
20
- }
21
-
22
- async function createObject(entity: any, data: any) {
23
- const response = await axiosAPI.post(`${entity}`, data)
24
-
25
- return response.data;
26
- }
27
-
28
- async function deleteObject(entity: any, id: string) {
29
- const response = await axiosAPI.delete(`${entity}/${id}`)
30
-
31
- return response.data;
32
- }
33
-
34
- const konversiAPI = {
35
- setToken: setAuthToken,
36
- setCompanyId,
37
- getAllObjects,
38
- getObjectById,
39
- updateObject,
40
- createObject,
41
- deleteObject
42
- }
43
-
44
- export default konversiAPI;
45
- export const crudEndpoints = crudEndpointsImported;
1
+ import axiosAPI, { setAuthToken, setCompanyId } from "./axiosAPI";
2
+
3
+ import * as crudEndpoints from "./crudEndpoints";
4
+
5
+ async function getAllObjects(entity: any, queryParams: any = {}) {
6
+ const response = await axiosAPI.get(`${entity}`, {
7
+ params: queryParams
8
+ })
9
+ return response.data;
10
+ }
11
+
12
+ async function getObjectById(entity: any, id: string) {
13
+ const response = await axiosAPI.get(`${entity}/${id}`)
14
+ return response.data;
15
+ }
16
+
17
+ async function updateObject(entity: any, id: string, newData: any) {
18
+ const response = await axiosAPI.put(`${entity}/${id}`, newData)
19
+ return response.data;
20
+ }
21
+
22
+ async function createObject(entity: any, data: any) {
23
+ const response = await axiosAPI.post(`${entity}`, data)
24
+
25
+ return response.data;
26
+ }
27
+
28
+ async function deleteObject(entity: any, id: string) {
29
+ const response = await axiosAPI.delete(`${entity}/${id}`)
30
+
31
+ return response.data;
32
+ }
33
+
34
+ const konversiAPI = {
35
+ setToken: setAuthToken,
36
+ setCompanyId,
37
+
38
+ getAllObjects,
39
+ getObjectById,
40
+ updateObject,
41
+ createObject,
42
+ deleteObject,
43
+
44
+ baseUrl: axiosAPI.defaults.baseURL,
45
+ token: axiosAPI.defaults.headers.common['Authorization']?.toString().split(' ')[1] || '',
46
+ companyId: axiosAPI.defaults.headers.common['Company'],
47
+ }
48
+
49
+ export default konversiAPI;
50
+
51
+ export const Entity = crudEndpoints;
package/package.json CHANGED
@@ -1,14 +1,9 @@
1
1
  {
2
2
  "name": "@konversi/konversi-client",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
7
- "scripts": {
8
- "test": "echo \"Error: no test specified\" && exit 1",
9
- "build": "tsup index.ts --format cjs,esm --dts",
10
- "lint": "tsc"
11
- },
12
7
  "keywords": [],
13
8
  "author": "",
14
9
  "license": "ISC",
@@ -20,5 +15,10 @@
20
15
  "devDependencies": {
21
16
  "tsup": "^8.2.4",
22
17
  "typescript": "^5.4.5"
18
+ },
19
+ "scripts": {
20
+ "test": "echo \"Error: no test specified\" && exit 1",
21
+ "build": "tsup index.ts --format cjs,esm --dts",
22
+ "lint": "tsc"
23
23
  }
24
- }
24
+ }
@@ -1,5 +1,5 @@
1
- import { CUSTOMER } from "../crudEndpoints";
2
- import K from "../index";
3
-
4
-
1
+ import { CUSTOMER } from "../crudEndpoints";
2
+ import K from "../index";
3
+
4
+
5
5
  K.createObject(CUSTOMER, {});
package/tsconfig.json CHANGED
@@ -1,109 +1,109 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig to read more about this file */
4
-
5
- /* Projects */
6
- // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
- // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
- // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
-
13
- /* Language and Environment */
14
- "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
- // "jsx": "preserve", /* Specify what JSX code is generated. */
17
- // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
18
- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
- // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
-
27
- /* Modules */
28
- "module": "commonjs", /* Specify what module code is generated. */
29
- // "rootDir": "./", /* Specify the root folder within your source files. */
30
- // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
31
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34
- // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
35
- // "types": [], /* Specify type package names to be included without being referenced in a source file. */
36
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
- // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
- // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39
- // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
40
- // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
41
- // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
42
- // "resolveJsonModule": true, /* Enable importing .json files. */
43
- // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
44
- // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
45
-
46
- /* JavaScript Support */
47
- // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
48
- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
49
- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
50
-
51
- /* Emit */
52
- // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
53
- // "declarationMap": true, /* Create sourcemaps for d.ts files. */
54
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55
- // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
56
- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
57
- // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58
- // "outDir": "./", /* Specify an output folder for all emitted files. */
59
- // "removeComments": true, /* Disable emitting comments. */
60
- "noEmit": true, /* Disable emitting files from a compilation. */
61
- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
62
- // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
63
- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
64
- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
65
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
66
- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
67
- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
68
- // "newLine": "crlf", /* Set the newline character for emitting files. */
69
- // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
70
- // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
71
- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
72
- // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
73
- // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
74
- // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
75
-
76
- /* Interop Constraints */
77
- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
78
- // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
79
- // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
81
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
82
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
83
-
84
- /* Type Checking */
85
- "strict": true, /* Enable all strict type-checking options. */
86
- // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
87
- // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
88
- // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
89
- // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
90
- // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
91
- // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
92
- // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
93
- // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
94
- // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
95
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
96
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
97
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
98
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
99
- "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
100
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
101
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
102
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
103
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
104
-
105
- /* Completeness */
106
- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
107
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
108
- }
109
- }
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
+
13
+ /* Language and Environment */
14
+ "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
17
+ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
18
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
+
27
+ /* Modules */
28
+ "module": "commonjs", /* Specify what module code is generated. */
29
+ // "rootDir": "./", /* Specify the root folder within your source files. */
30
+ // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
31
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
35
+ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
36
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
+ // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39
+ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
40
+ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
41
+ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
42
+ // "resolveJsonModule": true, /* Enable importing .json files. */
43
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
44
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
45
+
46
+ /* JavaScript Support */
47
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
48
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
49
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
50
+
51
+ /* Emit */
52
+ // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
53
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
54
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
56
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
57
+ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
58
+ // "outDir": "./", /* Specify an output folder for all emitted files. */
59
+ // "removeComments": true, /* Disable emitting comments. */
60
+ "noEmit": true, /* Disable emitting files from a compilation. */
61
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
62
+ // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
63
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
64
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
65
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
66
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
67
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
68
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
69
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
70
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
71
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
72
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
73
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
74
+ // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
75
+
76
+ /* Interop Constraints */
77
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
78
+ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
79
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
81
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
82
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
83
+
84
+ /* Type Checking */
85
+ "strict": true, /* Enable all strict type-checking options. */
86
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
87
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
88
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
89
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
90
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
91
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
92
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
93
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
94
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
95
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
96
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
97
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
98
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
99
+ "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
100
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
101
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
102
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
103
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
104
+
105
+ /* Completeness */
106
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
107
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
108
+ }
109
+ }