@konversi/konversi-client 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,14 +16,14 @@ export async function execute(input) {
16
16
  ```ts
17
17
  import K, { Entity } from '@konversi/konversi-client';
18
18
 
19
- async function execute(input) {
20
- let result = await k.createObject(Entity.SALES_ORDER, {})
19
+ export async function execute(input) {
20
+ let result = await K.createObject(Entity.SALES_ORDER, {})
21
21
  console.log(result);
22
22
 
23
- result = await k.getAllObjects(Entity.SALES_ORDER)
23
+ result = await K.getAllObjects(Entity.SALES_ORDER)
24
24
  console.log(result);
25
25
 
26
- result = await k.updateObject(Entity.SALES_ORDER, result[0].id, { memo: 'New memo' })
26
+ result = await K.updateObject(Entity.SALES_ORDER, result[0].id, { memo: 'New memo' })
27
27
  console.log(result);
28
28
  }
29
29
  ```
@@ -33,7 +33,7 @@ async function execute(input) {
33
33
  ```ts
34
34
  import K, { Entity } from '@konversi/konversi-client';
35
35
 
36
- async function execute(input) {
36
+ export async function execute(input) {
37
37
  let createdObject = await K.createCustomObject('ticket', {numEntries: 100, amount: 500000, code: "TICKET-123456"})
38
38
  console.log(`created object`, createdObject);
39
39
 
package/crudEndpoints.ts CHANGED
@@ -40,6 +40,8 @@ export const FIXED_ASSET = 'fixed-asset'
40
40
  export const STORE = 'store'
41
41
  export const STORE_PRODUCT = 'store/store-product'
42
42
  export const STORE_PRODUCT_GROUP = 'store/store-product-group'
43
+ export const STORE_PRODUCT_ATTRIBUTE = 'store/store-product-attribute'
44
+ export const STORE_PRODUCT_ATTRIBUTE_VALUE = 'store/store-product-attribute-value'
43
45
 
44
46
  // Accounting
45
47
  export const ACCOUNT = 'accounting/account';
@@ -71,6 +73,11 @@ export const CUSTOM_ENTITY_FIELD = 'custom-entity/field'; // Need to add schemaN
71
73
  // Automation
72
74
  export const AUTOMATION_JOB = 'automation/job'
73
75
  export const AUTOMATION_SCRIPT = 'automation/script'
76
+ export const USER_ACTION = 'automation/user-action'
77
+
78
+ // IOT
79
+ export const IOT_DEVICE = 'iot/device';
80
+ export const IOT_JOB = 'iot/job';
74
81
 
75
82
  export const STOCK_ADJUSTMENT = 'stock-adjustment'
76
83
 
@@ -90,6 +97,8 @@ export const PRINT_JOB = 'thermal-printer/print-job'
90
97
 
91
98
  export const WORK_ORDER = 'order/sales-order?type=WORK_ORDER';
92
99
 
100
+ export const SERVICE_ORDER = 'order/sales-order?type=SERVICE_ORDER';
101
+
93
102
  // TODO: Deprecate
94
103
  export const INCOMING_SHIPMENT = 'shipment/incoming-shipment'
95
104
  export const OUTGOING_SHIPMENT = 'shipment/outgoing-shipment'
package/dist/index.d.mts CHANGED
@@ -33,6 +33,8 @@ declare const FIXED_ASSET = "fixed-asset";
33
33
  declare const STORE = "store";
34
34
  declare const STORE_PRODUCT = "store/store-product";
35
35
  declare const STORE_PRODUCT_GROUP = "store/store-product-group";
36
+ declare const STORE_PRODUCT_ATTRIBUTE = "store/store-product-attribute";
37
+ declare const STORE_PRODUCT_ATTRIBUTE_VALUE = "store/store-product-attribute-value";
36
38
  declare const ACCOUNT = "accounting/account";
37
39
  declare const JOURNAL_ENTRY = "accounting/journal-entry";
38
40
  declare const JOURNAL_ENTRY_LINE = "accounting/journal-entry-line";
@@ -51,6 +53,9 @@ declare const CUSTOM_ENTITY_OBJECT = "custom-entity";
51
53
  declare const CUSTOM_ENTITY_FIELD = "custom-entity/field";
52
54
  declare const AUTOMATION_JOB = "automation/job";
53
55
  declare const AUTOMATION_SCRIPT = "automation/script";
56
+ declare const USER_ACTION = "automation/user-action";
57
+ declare const IOT_DEVICE = "iot/device";
58
+ declare const IOT_JOB = "iot/job";
54
59
  declare const STOCK_ADJUSTMENT = "stock-adjustment";
55
60
  declare const PURCHASE_ORDER_APPROVER = "approval/approver/purchase-order";
56
61
  declare const SALES_ORDER_APPROVER = "approval/approver/sales-order";
@@ -60,6 +65,7 @@ declare const AUDIT_LOG = "audit-log";
60
65
  declare const COMPANY_ALIAS = "company-alias";
61
66
  declare const PRINT_JOB = "thermal-printer/print-job";
62
67
  declare const WORK_ORDER = "order/sales-order?type=WORK_ORDER";
68
+ declare const SERVICE_ORDER = "order/sales-order?type=SERVICE_ORDER";
63
69
  declare const INCOMING_SHIPMENT = "shipment/incoming-shipment";
64
70
  declare const OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
65
71
 
@@ -94,6 +100,8 @@ declare const crudEndpoints_INTERNAL_DELIVERY_LINE: typeof INTERNAL_DELIVERY_LIN
94
100
  declare const crudEndpoints_INVITATION: typeof INVITATION;
95
101
  declare const crudEndpoints_INVOICE: typeof INVOICE;
96
102
  declare const crudEndpoints_INVOICE_LINE: typeof INVOICE_LINE;
103
+ declare const crudEndpoints_IOT_DEVICE: typeof IOT_DEVICE;
104
+ declare const crudEndpoints_IOT_JOB: typeof IOT_JOB;
97
105
  declare const crudEndpoints_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
98
106
  declare const crudEndpoints_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
99
107
  declare const crudEndpoints_OUTGOING_DELIVERY: typeof OUTGOING_DELIVERY;
@@ -116,17 +124,21 @@ declare const crudEndpoints_RENTAL_ORDER_LINE: typeof RENTAL_ORDER_LINE;
116
124
  declare const crudEndpoints_SALES_ORDER: typeof SALES_ORDER;
117
125
  declare const crudEndpoints_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
118
126
  declare const crudEndpoints_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
127
+ declare const crudEndpoints_SERVICE_ORDER: typeof SERVICE_ORDER;
119
128
  declare const crudEndpoints_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
120
129
  declare const crudEndpoints_STORE: typeof STORE;
121
130
  declare const crudEndpoints_STORE_PRODUCT: typeof STORE_PRODUCT;
131
+ declare const crudEndpoints_STORE_PRODUCT_ATTRIBUTE: typeof STORE_PRODUCT_ATTRIBUTE;
132
+ declare const crudEndpoints_STORE_PRODUCT_ATTRIBUTE_VALUE: typeof STORE_PRODUCT_ATTRIBUTE_VALUE;
122
133
  declare const crudEndpoints_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
123
134
  declare const crudEndpoints_SUBSIDIARY: typeof SUBSIDIARY;
124
135
  declare const crudEndpoints_SUPPLIER: typeof SUPPLIER;
136
+ declare const crudEndpoints_USER_ACTION: typeof USER_ACTION;
125
137
  declare const crudEndpoints_VEHICLE: typeof VEHICLE;
126
138
  declare const crudEndpoints_WAREHOUSE: typeof WAREHOUSE;
127
139
  declare const crudEndpoints_WORK_ORDER: typeof WORK_ORDER;
128
140
  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 };
141
+ 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_IOT_DEVICE as IOT_DEVICE, crudEndpoints_IOT_JOB as IOT_JOB, 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_SERVICE_ORDER as SERVICE_ORDER, crudEndpoints_STOCK_ADJUSTMENT as STOCK_ADJUSTMENT, crudEndpoints_STORE as STORE, crudEndpoints_STORE_PRODUCT as STORE_PRODUCT, crudEndpoints_STORE_PRODUCT_ATTRIBUTE as STORE_PRODUCT_ATTRIBUTE, crudEndpoints_STORE_PRODUCT_ATTRIBUTE_VALUE as STORE_PRODUCT_ATTRIBUTE_VALUE, crudEndpoints_STORE_PRODUCT_GROUP as STORE_PRODUCT_GROUP, crudEndpoints_SUBSIDIARY as SUBSIDIARY, crudEndpoints_SUPPLIER as SUPPLIER, crudEndpoints_USER_ACTION as USER_ACTION, crudEndpoints_VEHICLE as VEHICLE, crudEndpoints_WAREHOUSE as WAREHOUSE, crudEndpoints_WORK_ORDER as WORK_ORDER };
130
142
  }
131
143
 
132
144
  declare function getAllCustomObjects(schemaName: string, queryParams?: any): Promise<any>;
package/dist/index.d.ts CHANGED
@@ -33,6 +33,8 @@ declare const FIXED_ASSET = "fixed-asset";
33
33
  declare const STORE = "store";
34
34
  declare const STORE_PRODUCT = "store/store-product";
35
35
  declare const STORE_PRODUCT_GROUP = "store/store-product-group";
36
+ declare const STORE_PRODUCT_ATTRIBUTE = "store/store-product-attribute";
37
+ declare const STORE_PRODUCT_ATTRIBUTE_VALUE = "store/store-product-attribute-value";
36
38
  declare const ACCOUNT = "accounting/account";
37
39
  declare const JOURNAL_ENTRY = "accounting/journal-entry";
38
40
  declare const JOURNAL_ENTRY_LINE = "accounting/journal-entry-line";
@@ -51,6 +53,9 @@ declare const CUSTOM_ENTITY_OBJECT = "custom-entity";
51
53
  declare const CUSTOM_ENTITY_FIELD = "custom-entity/field";
52
54
  declare const AUTOMATION_JOB = "automation/job";
53
55
  declare const AUTOMATION_SCRIPT = "automation/script";
56
+ declare const USER_ACTION = "automation/user-action";
57
+ declare const IOT_DEVICE = "iot/device";
58
+ declare const IOT_JOB = "iot/job";
54
59
  declare const STOCK_ADJUSTMENT = "stock-adjustment";
55
60
  declare const PURCHASE_ORDER_APPROVER = "approval/approver/purchase-order";
56
61
  declare const SALES_ORDER_APPROVER = "approval/approver/sales-order";
@@ -60,6 +65,7 @@ declare const AUDIT_LOG = "audit-log";
60
65
  declare const COMPANY_ALIAS = "company-alias";
61
66
  declare const PRINT_JOB = "thermal-printer/print-job";
62
67
  declare const WORK_ORDER = "order/sales-order?type=WORK_ORDER";
68
+ declare const SERVICE_ORDER = "order/sales-order?type=SERVICE_ORDER";
63
69
  declare const INCOMING_SHIPMENT = "shipment/incoming-shipment";
64
70
  declare const OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
65
71
 
@@ -94,6 +100,8 @@ declare const crudEndpoints_INTERNAL_DELIVERY_LINE: typeof INTERNAL_DELIVERY_LIN
94
100
  declare const crudEndpoints_INVITATION: typeof INVITATION;
95
101
  declare const crudEndpoints_INVOICE: typeof INVOICE;
96
102
  declare const crudEndpoints_INVOICE_LINE: typeof INVOICE_LINE;
103
+ declare const crudEndpoints_IOT_DEVICE: typeof IOT_DEVICE;
104
+ declare const crudEndpoints_IOT_JOB: typeof IOT_JOB;
97
105
  declare const crudEndpoints_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
98
106
  declare const crudEndpoints_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
99
107
  declare const crudEndpoints_OUTGOING_DELIVERY: typeof OUTGOING_DELIVERY;
@@ -116,17 +124,21 @@ declare const crudEndpoints_RENTAL_ORDER_LINE: typeof RENTAL_ORDER_LINE;
116
124
  declare const crudEndpoints_SALES_ORDER: typeof SALES_ORDER;
117
125
  declare const crudEndpoints_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
118
126
  declare const crudEndpoints_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
127
+ declare const crudEndpoints_SERVICE_ORDER: typeof SERVICE_ORDER;
119
128
  declare const crudEndpoints_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
120
129
  declare const crudEndpoints_STORE: typeof STORE;
121
130
  declare const crudEndpoints_STORE_PRODUCT: typeof STORE_PRODUCT;
131
+ declare const crudEndpoints_STORE_PRODUCT_ATTRIBUTE: typeof STORE_PRODUCT_ATTRIBUTE;
132
+ declare const crudEndpoints_STORE_PRODUCT_ATTRIBUTE_VALUE: typeof STORE_PRODUCT_ATTRIBUTE_VALUE;
122
133
  declare const crudEndpoints_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
123
134
  declare const crudEndpoints_SUBSIDIARY: typeof SUBSIDIARY;
124
135
  declare const crudEndpoints_SUPPLIER: typeof SUPPLIER;
136
+ declare const crudEndpoints_USER_ACTION: typeof USER_ACTION;
125
137
  declare const crudEndpoints_VEHICLE: typeof VEHICLE;
126
138
  declare const crudEndpoints_WAREHOUSE: typeof WAREHOUSE;
127
139
  declare const crudEndpoints_WORK_ORDER: typeof WORK_ORDER;
128
140
  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 };
141
+ 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_IOT_DEVICE as IOT_DEVICE, crudEndpoints_IOT_JOB as IOT_JOB, 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_SERVICE_ORDER as SERVICE_ORDER, crudEndpoints_STOCK_ADJUSTMENT as STOCK_ADJUSTMENT, crudEndpoints_STORE as STORE, crudEndpoints_STORE_PRODUCT as STORE_PRODUCT, crudEndpoints_STORE_PRODUCT_ATTRIBUTE as STORE_PRODUCT_ATTRIBUTE, crudEndpoints_STORE_PRODUCT_ATTRIBUTE_VALUE as STORE_PRODUCT_ATTRIBUTE_VALUE, crudEndpoints_STORE_PRODUCT_GROUP as STORE_PRODUCT_GROUP, crudEndpoints_SUBSIDIARY as SUBSIDIARY, crudEndpoints_SUPPLIER as SUPPLIER, crudEndpoints_USER_ACTION as USER_ACTION, crudEndpoints_VEHICLE as VEHICLE, crudEndpoints_WAREHOUSE as WAREHOUSE, crudEndpoints_WORK_ORDER as WORK_ORDER };
130
142
  }
131
143
 
132
144
  declare function getAllCustomObjects(schemaName: string, queryParams?: any): Promise<any>;
package/dist/index.js CHANGED
@@ -105,6 +105,8 @@ __export(crudEndpoints_exports, {
105
105
  INVITATION: () => INVITATION,
106
106
  INVOICE: () => INVOICE,
107
107
  INVOICE_LINE: () => INVOICE_LINE,
108
+ IOT_DEVICE: () => IOT_DEVICE,
109
+ IOT_JOB: () => IOT_JOB,
108
110
  JOURNAL_ENTRY: () => JOURNAL_ENTRY,
109
111
  JOURNAL_ENTRY_LINE: () => JOURNAL_ENTRY_LINE,
110
112
  OUTGOING_DELIVERY: () => OUTGOING_DELIVERY,
@@ -127,12 +129,16 @@ __export(crudEndpoints_exports, {
127
129
  SALES_ORDER: () => SALES_ORDER,
128
130
  SALES_ORDER_APPROVER: () => SALES_ORDER_APPROVER,
129
131
  SALES_ORDER_LINE: () => SALES_ORDER_LINE,
132
+ SERVICE_ORDER: () => SERVICE_ORDER,
130
133
  STOCK_ADJUSTMENT: () => STOCK_ADJUSTMENT,
131
134
  STORE: () => STORE,
132
135
  STORE_PRODUCT: () => STORE_PRODUCT,
136
+ STORE_PRODUCT_ATTRIBUTE: () => STORE_PRODUCT_ATTRIBUTE,
137
+ STORE_PRODUCT_ATTRIBUTE_VALUE: () => STORE_PRODUCT_ATTRIBUTE_VALUE,
133
138
  STORE_PRODUCT_GROUP: () => STORE_PRODUCT_GROUP,
134
139
  SUBSIDIARY: () => SUBSIDIARY,
135
140
  SUPPLIER: () => SUPPLIER,
141
+ USER_ACTION: () => USER_ACTION,
136
142
  VEHICLE: () => VEHICLE,
137
143
  WAREHOUSE: () => WAREHOUSE,
138
144
  WORK_ORDER: () => WORK_ORDER
@@ -170,6 +176,8 @@ var FIXED_ASSET = "fixed-asset";
170
176
  var STORE = "store";
171
177
  var STORE_PRODUCT = "store/store-product";
172
178
  var STORE_PRODUCT_GROUP = "store/store-product-group";
179
+ var STORE_PRODUCT_ATTRIBUTE = "store/store-product-attribute";
180
+ var STORE_PRODUCT_ATTRIBUTE_VALUE = "store/store-product-attribute-value";
173
181
  var ACCOUNT = "accounting/account";
174
182
  var JOURNAL_ENTRY = "accounting/journal-entry";
175
183
  var JOURNAL_ENTRY_LINE = "accounting/journal-entry-line";
@@ -188,6 +196,9 @@ var CUSTOM_ENTITY_OBJECT = "custom-entity";
188
196
  var CUSTOM_ENTITY_FIELD = "custom-entity/field";
189
197
  var AUTOMATION_JOB = "automation/job";
190
198
  var AUTOMATION_SCRIPT = "automation/script";
199
+ var USER_ACTION = "automation/user-action";
200
+ var IOT_DEVICE = "iot/device";
201
+ var IOT_JOB = "iot/job";
191
202
  var STOCK_ADJUSTMENT = "stock-adjustment";
192
203
  var PURCHASE_ORDER_APPROVER = "approval/approver/purchase-order";
193
204
  var SALES_ORDER_APPROVER = "approval/approver/sales-order";
@@ -197,6 +208,7 @@ var AUDIT_LOG = "audit-log";
197
208
  var COMPANY_ALIAS = "company-alias";
198
209
  var PRINT_JOB = "thermal-printer/print-job";
199
210
  var WORK_ORDER = "order/sales-order?type=WORK_ORDER";
211
+ var SERVICE_ORDER = "order/sales-order?type=SERVICE_ORDER";
200
212
  var INCOMING_SHIPMENT = "shipment/incoming-shipment";
201
213
  var OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
202
214
 
@@ -205,7 +217,8 @@ function getAllCustomObjects(_0) {
205
217
  return __async(this, arguments, function* (schemaName, queryParams = {}) {
206
218
  const response = yield axiosAPI_default.request({
207
219
  method: "get",
208
- url: `custom-entity/${schemaName}`
220
+ url: `custom-entity/${schemaName}`,
221
+ params: queryParams
209
222
  });
210
223
  return response.data;
211
224
  });
package/dist/index.mjs CHANGED
@@ -74,6 +74,8 @@ __export(crudEndpoints_exports, {
74
74
  INVITATION: () => INVITATION,
75
75
  INVOICE: () => INVOICE,
76
76
  INVOICE_LINE: () => INVOICE_LINE,
77
+ IOT_DEVICE: () => IOT_DEVICE,
78
+ IOT_JOB: () => IOT_JOB,
77
79
  JOURNAL_ENTRY: () => JOURNAL_ENTRY,
78
80
  JOURNAL_ENTRY_LINE: () => JOURNAL_ENTRY_LINE,
79
81
  OUTGOING_DELIVERY: () => OUTGOING_DELIVERY,
@@ -96,12 +98,16 @@ __export(crudEndpoints_exports, {
96
98
  SALES_ORDER: () => SALES_ORDER,
97
99
  SALES_ORDER_APPROVER: () => SALES_ORDER_APPROVER,
98
100
  SALES_ORDER_LINE: () => SALES_ORDER_LINE,
101
+ SERVICE_ORDER: () => SERVICE_ORDER,
99
102
  STOCK_ADJUSTMENT: () => STOCK_ADJUSTMENT,
100
103
  STORE: () => STORE,
101
104
  STORE_PRODUCT: () => STORE_PRODUCT,
105
+ STORE_PRODUCT_ATTRIBUTE: () => STORE_PRODUCT_ATTRIBUTE,
106
+ STORE_PRODUCT_ATTRIBUTE_VALUE: () => STORE_PRODUCT_ATTRIBUTE_VALUE,
102
107
  STORE_PRODUCT_GROUP: () => STORE_PRODUCT_GROUP,
103
108
  SUBSIDIARY: () => SUBSIDIARY,
104
109
  SUPPLIER: () => SUPPLIER,
110
+ USER_ACTION: () => USER_ACTION,
105
111
  VEHICLE: () => VEHICLE,
106
112
  WAREHOUSE: () => WAREHOUSE,
107
113
  WORK_ORDER: () => WORK_ORDER
@@ -139,6 +145,8 @@ var FIXED_ASSET = "fixed-asset";
139
145
  var STORE = "store";
140
146
  var STORE_PRODUCT = "store/store-product";
141
147
  var STORE_PRODUCT_GROUP = "store/store-product-group";
148
+ var STORE_PRODUCT_ATTRIBUTE = "store/store-product-attribute";
149
+ var STORE_PRODUCT_ATTRIBUTE_VALUE = "store/store-product-attribute-value";
142
150
  var ACCOUNT = "accounting/account";
143
151
  var JOURNAL_ENTRY = "accounting/journal-entry";
144
152
  var JOURNAL_ENTRY_LINE = "accounting/journal-entry-line";
@@ -157,6 +165,9 @@ var CUSTOM_ENTITY_OBJECT = "custom-entity";
157
165
  var CUSTOM_ENTITY_FIELD = "custom-entity/field";
158
166
  var AUTOMATION_JOB = "automation/job";
159
167
  var AUTOMATION_SCRIPT = "automation/script";
168
+ var USER_ACTION = "automation/user-action";
169
+ var IOT_DEVICE = "iot/device";
170
+ var IOT_JOB = "iot/job";
160
171
  var STOCK_ADJUSTMENT = "stock-adjustment";
161
172
  var PURCHASE_ORDER_APPROVER = "approval/approver/purchase-order";
162
173
  var SALES_ORDER_APPROVER = "approval/approver/sales-order";
@@ -166,6 +177,7 @@ var AUDIT_LOG = "audit-log";
166
177
  var COMPANY_ALIAS = "company-alias";
167
178
  var PRINT_JOB = "thermal-printer/print-job";
168
179
  var WORK_ORDER = "order/sales-order?type=WORK_ORDER";
180
+ var SERVICE_ORDER = "order/sales-order?type=SERVICE_ORDER";
169
181
  var INCOMING_SHIPMENT = "shipment/incoming-shipment";
170
182
  var OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
171
183
 
@@ -174,7 +186,8 @@ function getAllCustomObjects(_0) {
174
186
  return __async(this, arguments, function* (schemaName, queryParams = {}) {
175
187
  const response = yield axiosAPI_default.request({
176
188
  method: "get",
177
- url: `custom-entity/${schemaName}`
189
+ url: `custom-entity/${schemaName}`,
190
+ params: queryParams
178
191
  });
179
192
  return response.data;
180
193
  });
package/index.ts CHANGED
@@ -6,6 +6,7 @@ async function getAllCustomObjects(schemaName: string, queryParams: any = {}) {
6
6
  const response = await axiosAPI.request({
7
7
  method: 'get',
8
8
  url: `custom-entity/${schemaName}`,
9
+ params: queryParams
9
10
  })
10
11
  return response.data;
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konversi/konversi-client",
3
- "version": "1.1.6",
3
+ "version": "1.2.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",