@konversi/konversi-client 1.1.1 → 1.1.2

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 crudEndpoints_ACCOUNT: typeof ACCOUNT;
65
+ declare const crudEndpoints_ATTENDANCE: typeof ATTENDANCE;
66
+ declare const crudEndpoints_AUDIT_LOG: typeof AUDIT_LOG;
67
+ declare const crudEndpoints_AUTOMATION_JOB: typeof AUTOMATION_JOB;
68
+ declare const crudEndpoints_AUTOMATION_SCRIPT: typeof AUTOMATION_SCRIPT;
69
+ declare const crudEndpoints_BILL_OF_MATERIALS: typeof BILL_OF_MATERIALS;
70
+ declare const crudEndpoints_BOM_COMPONENT: typeof BOM_COMPONENT;
71
+ declare const crudEndpoints_BOM_OPERATION: typeof BOM_OPERATION;
72
+ declare const crudEndpoints_COMPANY_ALIAS: typeof COMPANY_ALIAS;
73
+ declare const crudEndpoints_COMPANY_OPTION: typeof COMPANY_OPTION;
74
+ declare const crudEndpoints_COMPANY_PERMISSION: typeof COMPANY_PERMISSION;
75
+ declare const crudEndpoints_CUSTOMER: typeof CUSTOMER;
76
+ declare const crudEndpoints_CUSTOM_DOCUMENT: typeof CUSTOM_DOCUMENT;
77
+ declare const crudEndpoints_CUSTOM_ENTITY_FIELD: typeof CUSTOM_ENTITY_FIELD;
78
+ declare const crudEndpoints_CUSTOM_ENTITY_OBJECT: typeof CUSTOM_ENTITY_OBJECT;
79
+ declare const crudEndpoints_CUSTOM_ENTITY_SCHEMA: typeof CUSTOM_ENTITY_SCHEMA;
80
+ declare const crudEndpoints_CUSTOM_FIELD: typeof CUSTOM_FIELD;
81
+ declare const crudEndpoints_DELIVERY_JOB: typeof DELIVERY_JOB;
82
+ declare const crudEndpoints_EMPLOYEE: typeof EMPLOYEE;
83
+ declare const crudEndpoints_EXPENSE: typeof EXPENSE;
84
+ declare const crudEndpoints_EXPENSE_LINE: typeof EXPENSE_LINE;
85
+ declare const crudEndpoints_FIXED_ASSET: typeof FIXED_ASSET;
86
+ declare const crudEndpoints_INCOMING_DELIVERY: typeof INCOMING_DELIVERY;
87
+ declare const crudEndpoints_INCOMING_DELIVERY_LINE: typeof INCOMING_DELIVERY_LINE;
88
+ declare const crudEndpoints_INCOMING_PAYMENT_METHOD: typeof INCOMING_PAYMENT_METHOD;
89
+ declare const crudEndpoints_INCOMING_SHIPMENT: typeof INCOMING_SHIPMENT;
90
+ declare const crudEndpoints_INTERNAL_DELIVERY: typeof INTERNAL_DELIVERY;
91
+ declare const crudEndpoints_INTERNAL_DELIVERY_LINE: typeof INTERNAL_DELIVERY_LINE;
92
+ declare const crudEndpoints_INVITATION: typeof INVITATION;
93
+ declare const crudEndpoints_INVOICE: typeof INVOICE;
94
+ declare const crudEndpoints_INVOICE_LINE: typeof INVOICE_LINE;
95
+ declare const crudEndpoints_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
96
+ declare const crudEndpoints_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
97
+ declare const crudEndpoints_OUTGOING_DELIVERY: typeof OUTGOING_DELIVERY;
98
+ declare const crudEndpoints_OUTGOING_DELIVERY_LINE: typeof OUTGOING_DELIVERY_LINE;
99
+ declare const crudEndpoints_OUTGOING_SHIPMENT: typeof OUTGOING_SHIPMENT;
100
+ declare const crudEndpoints_PAYMENT: typeof PAYMENT;
101
+ declare const crudEndpoints_PRINT_JOB: typeof PRINT_JOB;
102
+ declare const crudEndpoints_PRODUCT: typeof PRODUCT;
103
+ declare const crudEndpoints_PRODUCTION_ORDER: typeof PRODUCTION_ORDER;
104
+ declare const crudEndpoints_PRODUCTION_ORDER_LINE: typeof PRODUCTION_ORDER_LINE;
105
+ declare const crudEndpoints_PRODUCT_GROUP: typeof PRODUCT_GROUP;
106
+ declare const crudEndpoints_PRODUCT_ITEM: typeof PRODUCT_ITEM;
107
+ declare const crudEndpoints_PURCHASE_ORDER: typeof PURCHASE_ORDER;
108
+ declare const crudEndpoints_PURCHASE_ORDER_APPROVER: typeof PURCHASE_ORDER_APPROVER;
109
+ declare const crudEndpoints_PURCHASE_ORDER_LINE: typeof PURCHASE_ORDER_LINE;
110
+ declare const crudEndpoints_QUOTE: typeof QUOTE;
111
+ declare const crudEndpoints_QUOTE_LINE: typeof QUOTE_LINE;
112
+ declare const crudEndpoints_RENTAL_ORDER: typeof RENTAL_ORDER;
113
+ declare const crudEndpoints_RENTAL_ORDER_LINE: typeof RENTAL_ORDER_LINE;
114
+ declare const crudEndpoints_SALES_ORDER: typeof SALES_ORDER;
115
+ declare const crudEndpoints_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
116
+ declare const crudEndpoints_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
117
+ declare const crudEndpoints_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
118
+ declare const crudEndpoints_STORE: typeof STORE;
119
+ declare const crudEndpoints_STORE_PRODUCT: typeof STORE_PRODUCT;
120
+ declare const crudEndpoints_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
121
+ declare const crudEndpoints_SUBSIDIARY: typeof SUBSIDIARY;
122
+ declare const crudEndpoints_SUPPLIER: typeof SUPPLIER;
123
+ declare const crudEndpoints_VEHICLE: typeof VEHICLE;
124
+ declare const crudEndpoints_WAREHOUSE: typeof WAREHOUSE;
125
+ declare const crudEndpoints_WORK_ORDER: typeof WORK_ORDER;
126
+ declare namespace crudEndpoints {
127
+ 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
+ }
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>;
@@ -74,6 +140,7 @@ declare const konversiAPI: {
74
140
  updateObject: typeof updateObject;
75
141
  createObject: typeof createObject;
76
142
  deleteObject: typeof deleteObject;
143
+ crudEndpoints: typeof crudEndpoints;
77
144
  };
78
145
 
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 };
146
+ export { 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 crudEndpoints_ACCOUNT: typeof ACCOUNT;
65
+ declare const crudEndpoints_ATTENDANCE: typeof ATTENDANCE;
66
+ declare const crudEndpoints_AUDIT_LOG: typeof AUDIT_LOG;
67
+ declare const crudEndpoints_AUTOMATION_JOB: typeof AUTOMATION_JOB;
68
+ declare const crudEndpoints_AUTOMATION_SCRIPT: typeof AUTOMATION_SCRIPT;
69
+ declare const crudEndpoints_BILL_OF_MATERIALS: typeof BILL_OF_MATERIALS;
70
+ declare const crudEndpoints_BOM_COMPONENT: typeof BOM_COMPONENT;
71
+ declare const crudEndpoints_BOM_OPERATION: typeof BOM_OPERATION;
72
+ declare const crudEndpoints_COMPANY_ALIAS: typeof COMPANY_ALIAS;
73
+ declare const crudEndpoints_COMPANY_OPTION: typeof COMPANY_OPTION;
74
+ declare const crudEndpoints_COMPANY_PERMISSION: typeof COMPANY_PERMISSION;
75
+ declare const crudEndpoints_CUSTOMER: typeof CUSTOMER;
76
+ declare const crudEndpoints_CUSTOM_DOCUMENT: typeof CUSTOM_DOCUMENT;
77
+ declare const crudEndpoints_CUSTOM_ENTITY_FIELD: typeof CUSTOM_ENTITY_FIELD;
78
+ declare const crudEndpoints_CUSTOM_ENTITY_OBJECT: typeof CUSTOM_ENTITY_OBJECT;
79
+ declare const crudEndpoints_CUSTOM_ENTITY_SCHEMA: typeof CUSTOM_ENTITY_SCHEMA;
80
+ declare const crudEndpoints_CUSTOM_FIELD: typeof CUSTOM_FIELD;
81
+ declare const crudEndpoints_DELIVERY_JOB: typeof DELIVERY_JOB;
82
+ declare const crudEndpoints_EMPLOYEE: typeof EMPLOYEE;
83
+ declare const crudEndpoints_EXPENSE: typeof EXPENSE;
84
+ declare const crudEndpoints_EXPENSE_LINE: typeof EXPENSE_LINE;
85
+ declare const crudEndpoints_FIXED_ASSET: typeof FIXED_ASSET;
86
+ declare const crudEndpoints_INCOMING_DELIVERY: typeof INCOMING_DELIVERY;
87
+ declare const crudEndpoints_INCOMING_DELIVERY_LINE: typeof INCOMING_DELIVERY_LINE;
88
+ declare const crudEndpoints_INCOMING_PAYMENT_METHOD: typeof INCOMING_PAYMENT_METHOD;
89
+ declare const crudEndpoints_INCOMING_SHIPMENT: typeof INCOMING_SHIPMENT;
90
+ declare const crudEndpoints_INTERNAL_DELIVERY: typeof INTERNAL_DELIVERY;
91
+ declare const crudEndpoints_INTERNAL_DELIVERY_LINE: typeof INTERNAL_DELIVERY_LINE;
92
+ declare const crudEndpoints_INVITATION: typeof INVITATION;
93
+ declare const crudEndpoints_INVOICE: typeof INVOICE;
94
+ declare const crudEndpoints_INVOICE_LINE: typeof INVOICE_LINE;
95
+ declare const crudEndpoints_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
96
+ declare const crudEndpoints_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
97
+ declare const crudEndpoints_OUTGOING_DELIVERY: typeof OUTGOING_DELIVERY;
98
+ declare const crudEndpoints_OUTGOING_DELIVERY_LINE: typeof OUTGOING_DELIVERY_LINE;
99
+ declare const crudEndpoints_OUTGOING_SHIPMENT: typeof OUTGOING_SHIPMENT;
100
+ declare const crudEndpoints_PAYMENT: typeof PAYMENT;
101
+ declare const crudEndpoints_PRINT_JOB: typeof PRINT_JOB;
102
+ declare const crudEndpoints_PRODUCT: typeof PRODUCT;
103
+ declare const crudEndpoints_PRODUCTION_ORDER: typeof PRODUCTION_ORDER;
104
+ declare const crudEndpoints_PRODUCTION_ORDER_LINE: typeof PRODUCTION_ORDER_LINE;
105
+ declare const crudEndpoints_PRODUCT_GROUP: typeof PRODUCT_GROUP;
106
+ declare const crudEndpoints_PRODUCT_ITEM: typeof PRODUCT_ITEM;
107
+ declare const crudEndpoints_PURCHASE_ORDER: typeof PURCHASE_ORDER;
108
+ declare const crudEndpoints_PURCHASE_ORDER_APPROVER: typeof PURCHASE_ORDER_APPROVER;
109
+ declare const crudEndpoints_PURCHASE_ORDER_LINE: typeof PURCHASE_ORDER_LINE;
110
+ declare const crudEndpoints_QUOTE: typeof QUOTE;
111
+ declare const crudEndpoints_QUOTE_LINE: typeof QUOTE_LINE;
112
+ declare const crudEndpoints_RENTAL_ORDER: typeof RENTAL_ORDER;
113
+ declare const crudEndpoints_RENTAL_ORDER_LINE: typeof RENTAL_ORDER_LINE;
114
+ declare const crudEndpoints_SALES_ORDER: typeof SALES_ORDER;
115
+ declare const crudEndpoints_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
116
+ declare const crudEndpoints_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
117
+ declare const crudEndpoints_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
118
+ declare const crudEndpoints_STORE: typeof STORE;
119
+ declare const crudEndpoints_STORE_PRODUCT: typeof STORE_PRODUCT;
120
+ declare const crudEndpoints_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
121
+ declare const crudEndpoints_SUBSIDIARY: typeof SUBSIDIARY;
122
+ declare const crudEndpoints_SUPPLIER: typeof SUPPLIER;
123
+ declare const crudEndpoints_VEHICLE: typeof VEHICLE;
124
+ declare const crudEndpoints_WAREHOUSE: typeof WAREHOUSE;
125
+ declare const crudEndpoints_WORK_ORDER: typeof WORK_ORDER;
126
+ declare namespace crudEndpoints {
127
+ 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
+ }
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>;
@@ -74,6 +140,7 @@ declare const konversiAPI: {
74
140
  updateObject: typeof updateObject;
75
141
  createObject: typeof createObject;
76
142
  deleteObject: typeof deleteObject;
143
+ crudEndpoints: typeof crudEndpoints;
77
144
  };
78
145
 
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 };
146
+ export { konversiAPI as default };
package/dist/index.js CHANGED
@@ -50,6 +50,29 @@ var __async = (__this, __arguments, generator) => {
50
50
  // index.ts
51
51
  var konversi_client_exports = {};
52
52
  __export(konversi_client_exports, {
53
+ default: () => konversi_client_default
54
+ });
55
+ module.exports = __toCommonJS(konversi_client_exports);
56
+
57
+ // axiosAPI.ts
58
+ var import_axios = __toESM(require("axios"));
59
+ var baseURL = "https://us.api.konversi.net/api";
60
+ var timeout = 3e4;
61
+ var instance = import_axios.default.create({
62
+ baseURL,
63
+ timeout
64
+ });
65
+ var setAuthToken = (token) => {
66
+ instance.defaults.headers.common.authorization = `Bearer ${token}`;
67
+ };
68
+ var setCompanyId = (companyId) => {
69
+ instance.defaults.headers.common["Company"] = companyId;
70
+ };
71
+ var axiosAPI_default = instance;
72
+
73
+ // crudEndpoints.ts
74
+ var crudEndpoints_exports = {};
75
+ __export(crudEndpoints_exports, {
53
76
  ACCOUNT: () => ACCOUNT,
54
77
  ATTENDANCE: () => ATTENDANCE,
55
78
  AUDIT_LOG: () => AUDIT_LOG,
@@ -111,28 +134,8 @@ __export(konversi_client_exports, {
111
134
  SUPPLIER: () => SUPPLIER,
112
135
  VEHICLE: () => VEHICLE,
113
136
  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
137
+ WORK_ORDER: () => WORK_ORDER
126
138
  });
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
139
  var COMPANY_PERMISSION = "company-permission";
137
140
  var COMPANY_OPTION = "company-option";
138
141
  var INVITATION = "user/invitation";
@@ -236,71 +239,7 @@ var konversiAPI = {
236
239
  getObjectById,
237
240
  updateObject,
238
241
  createObject,
239
- deleteObject
242
+ deleteObject,
243
+ crudEndpoints: crudEndpoints_exports
240
244
  };
241
245
  var konversi_client_default = konversiAPI;
242
- // Annotate the CommonJS export names for ESM import in node:
243
- 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
306
- });
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";
@@ -139,71 +209,10 @@ var konversiAPI = {
139
209
  getObjectById,
140
210
  updateObject,
141
211
  createObject,
142
- deleteObject
212
+ deleteObject,
213
+ crudEndpoints: crudEndpoints_exports
143
214
  };
144
215
  var konversi_client_default = konversiAPI;
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,
208
217
  konversi_client_default as default
209
218
  };
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 crudEndpoints from "./crudEndpoints";
4
4
 
5
5
  async function getAllObjects(entity: any, queryParams: any = {}) {
6
6
  const response = await axiosAPI.get(`${entity}`, {
@@ -38,7 +38,8 @@ const konversiAPI = {
38
38
  getObjectById,
39
39
  updateObject,
40
40
  createObject,
41
- deleteObject
41
+ deleteObject,
42
+ crudEndpoints
42
43
  }
43
44
 
44
45
  export default konversiAPI;
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.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",