@konversi/konversi-client 1.1.1 → 1.1.3

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
@@ -61,6 +61,72 @@ declare const WORK_ORDER = "order/sales-order?type=WORK_ORDER";
61
61
  declare const INCOMING_SHIPMENT = "shipment/incoming-shipment";
62
62
  declare const OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
63
63
 
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 };
128
+ }
129
+
64
130
  declare function getAllObjects(entity: any, queryParams?: any): Promise<any>;
65
131
  declare function getObjectById(entity: any, id: string): Promise<any>;
66
132
  declare function updateObject(entity: any, id: string, newData: any): Promise<any>;
@@ -76,4 +142,6 @@ declare const konversiAPI: {
76
142
  deleteObject: typeof deleteObject;
77
143
  };
78
144
 
79
- export { ACCOUNT, ATTENDANCE, AUDIT_LOG, AUTOMATION_JOB, AUTOMATION_SCRIPT, BILL_OF_MATERIALS, BOM_COMPONENT, BOM_OPERATION, COMPANY_ALIAS, COMPANY_OPTION, COMPANY_PERMISSION, CUSTOMER, CUSTOM_DOCUMENT, CUSTOM_ENTITY_FIELD, CUSTOM_ENTITY_OBJECT, CUSTOM_ENTITY_SCHEMA, CUSTOM_FIELD, DELIVERY_JOB, EMPLOYEE, EXPENSE, EXPENSE_LINE, FIXED_ASSET, INCOMING_DELIVERY, INCOMING_DELIVERY_LINE, INCOMING_PAYMENT_METHOD, INCOMING_SHIPMENT, INTERNAL_DELIVERY, INTERNAL_DELIVERY_LINE, INVITATION, INVOICE, INVOICE_LINE, JOURNAL_ENTRY, JOURNAL_ENTRY_LINE, OUTGOING_DELIVERY, OUTGOING_DELIVERY_LINE, OUTGOING_SHIPMENT, PAYMENT, PRINT_JOB, PRODUCT, PRODUCTION_ORDER, PRODUCTION_ORDER_LINE, PRODUCT_GROUP, PRODUCT_ITEM, PURCHASE_ORDER, PURCHASE_ORDER_APPROVER, PURCHASE_ORDER_LINE, QUOTE, QUOTE_LINE, RENTAL_ORDER, RENTAL_ORDER_LINE, SALES_ORDER, SALES_ORDER_APPROVER, SALES_ORDER_LINE, STOCK_ADJUSTMENT, STORE, STORE_PRODUCT, STORE_PRODUCT_GROUP, SUBSIDIARY, SUPPLIER, VEHICLE, WAREHOUSE, WORK_ORDER, konversiAPI as default };
145
+ declare const crudEndpoints: typeof crudEndpointsImported;
146
+
147
+ export { crudEndpoints, konversiAPI as default };
package/dist/index.d.ts CHANGED
@@ -61,6 +61,72 @@ declare const WORK_ORDER = "order/sales-order?type=WORK_ORDER";
61
61
  declare const INCOMING_SHIPMENT = "shipment/incoming-shipment";
62
62
  declare const OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
63
63
 
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 };
128
+ }
129
+
64
130
  declare function getAllObjects(entity: any, queryParams?: any): Promise<any>;
65
131
  declare function getObjectById(entity: any, id: string): Promise<any>;
66
132
  declare function updateObject(entity: any, id: string, newData: any): Promise<any>;
@@ -76,4 +142,6 @@ declare const konversiAPI: {
76
142
  deleteObject: typeof deleteObject;
77
143
  };
78
144
 
79
- export { ACCOUNT, ATTENDANCE, AUDIT_LOG, AUTOMATION_JOB, AUTOMATION_SCRIPT, BILL_OF_MATERIALS, BOM_COMPONENT, BOM_OPERATION, COMPANY_ALIAS, COMPANY_OPTION, COMPANY_PERMISSION, CUSTOMER, CUSTOM_DOCUMENT, CUSTOM_ENTITY_FIELD, CUSTOM_ENTITY_OBJECT, CUSTOM_ENTITY_SCHEMA, CUSTOM_FIELD, DELIVERY_JOB, EMPLOYEE, EXPENSE, EXPENSE_LINE, FIXED_ASSET, INCOMING_DELIVERY, INCOMING_DELIVERY_LINE, INCOMING_PAYMENT_METHOD, INCOMING_SHIPMENT, INTERNAL_DELIVERY, INTERNAL_DELIVERY_LINE, INVITATION, INVOICE, INVOICE_LINE, JOURNAL_ENTRY, JOURNAL_ENTRY_LINE, OUTGOING_DELIVERY, OUTGOING_DELIVERY_LINE, OUTGOING_SHIPMENT, PAYMENT, PRINT_JOB, PRODUCT, PRODUCTION_ORDER, PRODUCTION_ORDER_LINE, PRODUCT_GROUP, PRODUCT_ITEM, PURCHASE_ORDER, PURCHASE_ORDER_APPROVER, PURCHASE_ORDER_LINE, QUOTE, QUOTE_LINE, RENTAL_ORDER, RENTAL_ORDER_LINE, SALES_ORDER, SALES_ORDER_APPROVER, SALES_ORDER_LINE, STOCK_ADJUSTMENT, STORE, STORE_PRODUCT, STORE_PRODUCT_GROUP, SUBSIDIARY, SUPPLIER, VEHICLE, WAREHOUSE, WORK_ORDER, konversiAPI as default };
145
+ declare const crudEndpoints: typeof crudEndpointsImported;
146
+
147
+ export { crudEndpoints, konversiAPI as default };
package/dist/index.js CHANGED
@@ -50,6 +50,30 @@ var __async = (__this, __arguments, generator) => {
50
50
  // index.ts
51
51
  var konversi_client_exports = {};
52
52
  __export(konversi_client_exports, {
53
+ crudEndpoints: () => crudEndpoints,
54
+ default: () => konversi_client_default
55
+ });
56
+ module.exports = __toCommonJS(konversi_client_exports);
57
+
58
+ // axiosAPI.ts
59
+ var import_axios = __toESM(require("axios"));
60
+ var baseURL = "https://us.api.konversi.net/api";
61
+ var timeout = 3e4;
62
+ var instance = import_axios.default.create({
63
+ baseURL,
64
+ timeout
65
+ });
66
+ var setAuthToken = (token) => {
67
+ instance.defaults.headers.common.authorization = `Bearer ${token}`;
68
+ };
69
+ var setCompanyId = (companyId) => {
70
+ instance.defaults.headers.common["Company"] = companyId;
71
+ };
72
+ var axiosAPI_default = instance;
73
+
74
+ // crudEndpoints.ts
75
+ var crudEndpoints_exports = {};
76
+ __export(crudEndpoints_exports, {
53
77
  ACCOUNT: () => ACCOUNT,
54
78
  ATTENDANCE: () => ATTENDANCE,
55
79
  AUDIT_LOG: () => AUDIT_LOG,
@@ -111,28 +135,8 @@ __export(konversi_client_exports, {
111
135
  SUPPLIER: () => SUPPLIER,
112
136
  VEHICLE: () => VEHICLE,
113
137
  WAREHOUSE: () => WAREHOUSE,
114
- WORK_ORDER: () => WORK_ORDER,
115
- default: () => konversi_client_default
116
- });
117
- module.exports = __toCommonJS(konversi_client_exports);
118
-
119
- // axiosAPI.ts
120
- var import_axios = __toESM(require("axios"));
121
- var baseURL = "https://us.api.konversi.net/api";
122
- var timeout = 3e4;
123
- var instance = import_axios.default.create({
124
- baseURL,
125
- timeout
138
+ WORK_ORDER: () => WORK_ORDER
126
139
  });
127
- var setAuthToken = (token) => {
128
- instance.defaults.headers.common.authorization = `Bearer ${token}`;
129
- };
130
- var setCompanyId = (companyId) => {
131
- instance.defaults.headers.common["Company"] = companyId;
132
- };
133
- var axiosAPI_default = instance;
134
-
135
- // crudEndpoints.ts
136
140
  var COMPANY_PERMISSION = "company-permission";
137
141
  var COMPANY_OPTION = "company-option";
138
142
  var INVITATION = "user/invitation";
@@ -239,68 +243,8 @@ var konversiAPI = {
239
243
  deleteObject
240
244
  };
241
245
  var konversi_client_default = konversiAPI;
246
+ var crudEndpoints = crudEndpoints_exports;
242
247
  // Annotate the CommonJS export names for ESM import in node:
243
248
  0 && (module.exports = {
244
- ACCOUNT,
245
- ATTENDANCE,
246
- AUDIT_LOG,
247
- AUTOMATION_JOB,
248
- AUTOMATION_SCRIPT,
249
- BILL_OF_MATERIALS,
250
- BOM_COMPONENT,
251
- BOM_OPERATION,
252
- COMPANY_ALIAS,
253
- COMPANY_OPTION,
254
- COMPANY_PERMISSION,
255
- CUSTOMER,
256
- CUSTOM_DOCUMENT,
257
- CUSTOM_ENTITY_FIELD,
258
- CUSTOM_ENTITY_OBJECT,
259
- CUSTOM_ENTITY_SCHEMA,
260
- CUSTOM_FIELD,
261
- DELIVERY_JOB,
262
- EMPLOYEE,
263
- EXPENSE,
264
- EXPENSE_LINE,
265
- FIXED_ASSET,
266
- INCOMING_DELIVERY,
267
- INCOMING_DELIVERY_LINE,
268
- INCOMING_PAYMENT_METHOD,
269
- INCOMING_SHIPMENT,
270
- INTERNAL_DELIVERY,
271
- INTERNAL_DELIVERY_LINE,
272
- INVITATION,
273
- INVOICE,
274
- INVOICE_LINE,
275
- JOURNAL_ENTRY,
276
- JOURNAL_ENTRY_LINE,
277
- OUTGOING_DELIVERY,
278
- OUTGOING_DELIVERY_LINE,
279
- OUTGOING_SHIPMENT,
280
- PAYMENT,
281
- PRINT_JOB,
282
- PRODUCT,
283
- PRODUCTION_ORDER,
284
- PRODUCTION_ORDER_LINE,
285
- PRODUCT_GROUP,
286
- PRODUCT_ITEM,
287
- PURCHASE_ORDER,
288
- PURCHASE_ORDER_APPROVER,
289
- PURCHASE_ORDER_LINE,
290
- QUOTE,
291
- QUOTE_LINE,
292
- RENTAL_ORDER,
293
- RENTAL_ORDER_LINE,
294
- SALES_ORDER,
295
- SALES_ORDER_APPROVER,
296
- SALES_ORDER_LINE,
297
- STOCK_ADJUSTMENT,
298
- STORE,
299
- STORE_PRODUCT,
300
- STORE_PRODUCT_GROUP,
301
- SUBSIDIARY,
302
- SUPPLIER,
303
- VEHICLE,
304
- WAREHOUSE,
305
- WORK_ORDER
249
+ crudEndpoints
306
250
  });
package/dist/index.mjs CHANGED
@@ -1,3 +1,8 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
1
6
  var __async = (__this, __arguments, generator) => {
2
7
  return new Promise((resolve, reject) => {
3
8
  var fulfilled = (value) => {
@@ -36,6 +41,71 @@ var setCompanyId = (companyId) => {
36
41
  var axiosAPI_default = instance;
37
42
 
38
43
  // crudEndpoints.ts
44
+ var crudEndpoints_exports = {};
45
+ __export(crudEndpoints_exports, {
46
+ ACCOUNT: () => ACCOUNT,
47
+ ATTENDANCE: () => ATTENDANCE,
48
+ AUDIT_LOG: () => AUDIT_LOG,
49
+ AUTOMATION_JOB: () => AUTOMATION_JOB,
50
+ AUTOMATION_SCRIPT: () => AUTOMATION_SCRIPT,
51
+ BILL_OF_MATERIALS: () => BILL_OF_MATERIALS,
52
+ BOM_COMPONENT: () => BOM_COMPONENT,
53
+ BOM_OPERATION: () => BOM_OPERATION,
54
+ COMPANY_ALIAS: () => COMPANY_ALIAS,
55
+ COMPANY_OPTION: () => COMPANY_OPTION,
56
+ COMPANY_PERMISSION: () => COMPANY_PERMISSION,
57
+ CUSTOMER: () => CUSTOMER,
58
+ CUSTOM_DOCUMENT: () => CUSTOM_DOCUMENT,
59
+ CUSTOM_ENTITY_FIELD: () => CUSTOM_ENTITY_FIELD,
60
+ CUSTOM_ENTITY_OBJECT: () => CUSTOM_ENTITY_OBJECT,
61
+ CUSTOM_ENTITY_SCHEMA: () => CUSTOM_ENTITY_SCHEMA,
62
+ CUSTOM_FIELD: () => CUSTOM_FIELD,
63
+ DELIVERY_JOB: () => DELIVERY_JOB,
64
+ EMPLOYEE: () => EMPLOYEE,
65
+ EXPENSE: () => EXPENSE,
66
+ EXPENSE_LINE: () => EXPENSE_LINE,
67
+ FIXED_ASSET: () => FIXED_ASSET,
68
+ INCOMING_DELIVERY: () => INCOMING_DELIVERY,
69
+ INCOMING_DELIVERY_LINE: () => INCOMING_DELIVERY_LINE,
70
+ INCOMING_PAYMENT_METHOD: () => INCOMING_PAYMENT_METHOD,
71
+ INCOMING_SHIPMENT: () => INCOMING_SHIPMENT,
72
+ INTERNAL_DELIVERY: () => INTERNAL_DELIVERY,
73
+ INTERNAL_DELIVERY_LINE: () => INTERNAL_DELIVERY_LINE,
74
+ INVITATION: () => INVITATION,
75
+ INVOICE: () => INVOICE,
76
+ INVOICE_LINE: () => INVOICE_LINE,
77
+ JOURNAL_ENTRY: () => JOURNAL_ENTRY,
78
+ JOURNAL_ENTRY_LINE: () => JOURNAL_ENTRY_LINE,
79
+ OUTGOING_DELIVERY: () => OUTGOING_DELIVERY,
80
+ OUTGOING_DELIVERY_LINE: () => OUTGOING_DELIVERY_LINE,
81
+ OUTGOING_SHIPMENT: () => OUTGOING_SHIPMENT,
82
+ PAYMENT: () => PAYMENT,
83
+ PRINT_JOB: () => PRINT_JOB,
84
+ PRODUCT: () => PRODUCT,
85
+ PRODUCTION_ORDER: () => PRODUCTION_ORDER,
86
+ PRODUCTION_ORDER_LINE: () => PRODUCTION_ORDER_LINE,
87
+ PRODUCT_GROUP: () => PRODUCT_GROUP,
88
+ PRODUCT_ITEM: () => PRODUCT_ITEM,
89
+ PURCHASE_ORDER: () => PURCHASE_ORDER,
90
+ PURCHASE_ORDER_APPROVER: () => PURCHASE_ORDER_APPROVER,
91
+ PURCHASE_ORDER_LINE: () => PURCHASE_ORDER_LINE,
92
+ QUOTE: () => QUOTE,
93
+ QUOTE_LINE: () => QUOTE_LINE,
94
+ RENTAL_ORDER: () => RENTAL_ORDER,
95
+ RENTAL_ORDER_LINE: () => RENTAL_ORDER_LINE,
96
+ SALES_ORDER: () => SALES_ORDER,
97
+ SALES_ORDER_APPROVER: () => SALES_ORDER_APPROVER,
98
+ SALES_ORDER_LINE: () => SALES_ORDER_LINE,
99
+ STOCK_ADJUSTMENT: () => STOCK_ADJUSTMENT,
100
+ STORE: () => STORE,
101
+ STORE_PRODUCT: () => STORE_PRODUCT,
102
+ STORE_PRODUCT_GROUP: () => STORE_PRODUCT_GROUP,
103
+ SUBSIDIARY: () => SUBSIDIARY,
104
+ SUPPLIER: () => SUPPLIER,
105
+ VEHICLE: () => VEHICLE,
106
+ WAREHOUSE: () => WAREHOUSE,
107
+ WORK_ORDER: () => WORK_ORDER
108
+ });
39
109
  var COMPANY_PERMISSION = "company-permission";
40
110
  var COMPANY_OPTION = "company-option";
41
111
  var INVITATION = "user/invitation";
@@ -142,68 +212,8 @@ var konversiAPI = {
142
212
  deleteObject
143
213
  };
144
214
  var konversi_client_default = konversiAPI;
215
+ var crudEndpoints = crudEndpoints_exports;
145
216
  export {
146
- ACCOUNT,
147
- ATTENDANCE,
148
- AUDIT_LOG,
149
- AUTOMATION_JOB,
150
- AUTOMATION_SCRIPT,
151
- BILL_OF_MATERIALS,
152
- BOM_COMPONENT,
153
- BOM_OPERATION,
154
- COMPANY_ALIAS,
155
- COMPANY_OPTION,
156
- COMPANY_PERMISSION,
157
- CUSTOMER,
158
- CUSTOM_DOCUMENT,
159
- CUSTOM_ENTITY_FIELD,
160
- CUSTOM_ENTITY_OBJECT,
161
- CUSTOM_ENTITY_SCHEMA,
162
- CUSTOM_FIELD,
163
- DELIVERY_JOB,
164
- EMPLOYEE,
165
- EXPENSE,
166
- EXPENSE_LINE,
167
- FIXED_ASSET,
168
- INCOMING_DELIVERY,
169
- INCOMING_DELIVERY_LINE,
170
- INCOMING_PAYMENT_METHOD,
171
- INCOMING_SHIPMENT,
172
- INTERNAL_DELIVERY,
173
- INTERNAL_DELIVERY_LINE,
174
- INVITATION,
175
- INVOICE,
176
- INVOICE_LINE,
177
- JOURNAL_ENTRY,
178
- JOURNAL_ENTRY_LINE,
179
- OUTGOING_DELIVERY,
180
- OUTGOING_DELIVERY_LINE,
181
- OUTGOING_SHIPMENT,
182
- PAYMENT,
183
- PRINT_JOB,
184
- PRODUCT,
185
- PRODUCTION_ORDER,
186
- PRODUCTION_ORDER_LINE,
187
- PRODUCT_GROUP,
188
- PRODUCT_ITEM,
189
- PURCHASE_ORDER,
190
- PURCHASE_ORDER_APPROVER,
191
- PURCHASE_ORDER_LINE,
192
- QUOTE,
193
- QUOTE_LINE,
194
- RENTAL_ORDER,
195
- RENTAL_ORDER_LINE,
196
- SALES_ORDER,
197
- SALES_ORDER_APPROVER,
198
- SALES_ORDER_LINE,
199
- STOCK_ADJUSTMENT,
200
- STORE,
201
- STORE_PRODUCT,
202
- STORE_PRODUCT_GROUP,
203
- SUBSIDIARY,
204
- SUPPLIER,
205
- VEHICLE,
206
- WAREHOUSE,
207
- WORK_ORDER,
217
+ crudEndpoints,
208
218
  konversi_client_default as default
209
219
  };
package/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import axiosAPI, { setAuthToken, setCompanyId } from "./axiosAPI";
2
2
 
3
- export * from "./crudEndpoints";
3
+ import * as crudEndpointsImported from "./crudEndpoints";
4
4
 
5
5
  async function getAllObjects(entity: any, queryParams: any = {}) {
6
6
  const response = await axiosAPI.get(`${entity}`, {
@@ -41,4 +41,5 @@ const konversiAPI = {
41
41
  deleteObject
42
42
  }
43
43
 
44
- export default konversiAPI;
44
+ export default konversiAPI;
45
+ export const crudEndpoints = crudEndpointsImported;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konversi/konversi-client",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",