@konversi/konversi-client 1.4.6 → 1.4.8

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.
@@ -0,0 +1,208 @@
1
+ import * as axios from 'axios';
2
+ import { AxiosRequestConfig } from 'axios';
3
+
4
+ declare const NOTIFICATION = "notification";
5
+ declare const USER_PERSONA = "user/user-persona";
6
+ declare const USER_PERSONA_CUSTOM_SCHEMA_PERMISSION = "user/user-persona-custom-schema-permission";
7
+ declare const USER_PERSONA_ENTITY_PERMISSION = "user/user-persona-entity-permission";
8
+ declare const USER_PERSONA_ENTITY_ACCESS_STATUS = "user/user-persona-entity-access-status";
9
+ declare const COMPANY_PERMISSION = "company-permission";
10
+ declare const COMPANY_OPTION = "company-option";
11
+ declare const INVITATION = "user/invitation";
12
+ declare const CUSTOMER = "contact/customer";
13
+ declare const PRODUCT = "product";
14
+ declare const PRODUCT_ITEM = "product/product-item";
15
+ declare const PRODUCT_GROUP = "product-group";
16
+ declare const PRODUCT_SUPPLIER = "product/product-supplier";
17
+ declare const PURCHASE_ORDER = "order/purchase-order";
18
+ declare const PURCHASE_ORDER_LINE = "order/purchase-order-line";
19
+ declare const QUOTE = "order/quote";
20
+ declare const QUOTE_LINE = "order/quote-line";
21
+ declare const SALES_ORDER = "order/sales-order";
22
+ declare const SALES_ORDER_LINE = "order/sales-order-line";
23
+ declare const RENTAL_ORDER = "order/rental-order";
24
+ declare const RENTAL_ORDER_LINE = "order/rental-order-line";
25
+ declare const SUPPLIER = "contact/supplier";
26
+ declare const WAREHOUSE = "warehouse";
27
+ declare const INCOMING_DELIVERY = "delivery/incoming-delivery";
28
+ declare const INCOMING_DELIVERY_LINE = "delivery/incoming-delivery-line";
29
+ declare const OUTGOING_DELIVERY = "delivery/outgoing-delivery";
30
+ declare const OUTGOING_DELIVERY_LINE = "delivery/outgoing-delivery-line";
31
+ declare const INTERNAL_DELIVERY = "delivery/internal-delivery";
32
+ declare const INTERNAL_DELIVERY_LINE = "delivery/internal-delivery-line";
33
+ declare const INVOICE = "invoice";
34
+ declare const INVOICE_LINE = "invoice/invoice-line";
35
+ declare const EXPENSE = "expense";
36
+ declare const EXPENSE_LINE = "expense/expense-line";
37
+ declare const PAYMENT = "accounting/payment";
38
+ declare const INCOMING_PAYMENT_METHOD = "accounting/incoming-payment-method";
39
+ declare const FIXED_ASSET = "fixed-asset";
40
+ declare const STORE = "store";
41
+ declare const STORE_PRODUCT = "store/store-product";
42
+ declare const STORE_PRODUCT_GROUP = "store/store-product-group";
43
+ declare const STORE_PRODUCT_ATTRIBUTE = "store/store-product-attribute";
44
+ declare const STORE_PRODUCT_ATTRIBUTE_VALUE = "store/store-product-attribute-value";
45
+ declare const ACCOUNT = "accounting/account";
46
+ declare const JOURNAL_ENTRY = "accounting/journal-entry";
47
+ declare const JOURNAL_ENTRY_LINE = "accounting/journal-entry-line";
48
+ declare const BILL_OF_MATERIALS = "manufacturing/bill-of-materials";
49
+ declare const BOM_COMPONENT = "manufacturing/bom-component";
50
+ declare const BOM_OPERATION = "manufacturing/bom-operation";
51
+ declare const PRODUCTION_ORDER = "manufacturing/production-order";
52
+ declare const PRODUCTION_ORDER_LINE = "manufacturing/production-order-line";
53
+ declare const JOB_CARD = "manufacturing/job-card";
54
+ declare const WORKSTATION = "manufacturing/workstation";
55
+ declare const SUBSIDIARY = "subsidiary";
56
+ declare const EMPLOYEE = "human-resources/employee";
57
+ declare const GEOFENCE = "geofence";
58
+ declare const SHIFT = "human-resources/employee/shift";
59
+ declare const ATTENDANCE = "human-resources/attendance";
60
+ declare const VEHICLE = "fleet/vehicle";
61
+ declare const DELIVERY_JOB = "fleet/delivery-job";
62
+ declare const CUSTOM_ENTITY_SCHEMA = "custom-entity/schema";
63
+ declare const CUSTOM_ENTITY_OBJECT = "custom-entity/object";
64
+ declare const CUSTOM_ENTITY_FIELD = "custom-entity/field";
65
+ declare const FORM = "form";
66
+ declare const CUSTOM_REPORT = "report/custom-report";
67
+ declare const AUTOMATION_JOB = "automation/job";
68
+ declare const AUTOMATION_SCRIPT = "automation/script";
69
+ declare const USER_ACTION = "automation/user-action";
70
+ declare const IOT_DEVICE = "iot/device";
71
+ declare const IOT_JOB = "iot/job";
72
+ declare const STOCK_ADJUSTMENT = "stock-adjustment";
73
+ declare const PURCHASE_ORDER_APPROVER = "approval/approver/purchase-order";
74
+ declare const SALES_ORDER_APPROVER = "approval/approver/sales-order";
75
+ declare const CUSTOM_DOCUMENT = "document-generator/custom-document";
76
+ declare const CUSTOM_FIELD = "custom-field";
77
+ declare const AUDIT_LOG = "audit-log";
78
+ declare const COMPANY_ALIAS = "company-alias";
79
+ declare const PRINT_JOB = "thermal-printer/print-job";
80
+ declare const WORK_ORDER = "order/sales-order?type=WORK_ORDER";
81
+ declare const SERVICE_ORDER = "order/sales-order?type=SERVICE_ORDER";
82
+ declare const IDENTIFIER_GROUP = "identifier/identifier-group";
83
+ declare const IDENTIFIER_TOKEN = "identifier/identifier-token";
84
+ declare const INCOMING_SHIPMENT = "shipment/incoming-shipment";
85
+ declare const OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
86
+
87
+ declare const crudEndpoints_ACCOUNT: typeof ACCOUNT;
88
+ declare const crudEndpoints_ATTENDANCE: typeof ATTENDANCE;
89
+ declare const crudEndpoints_AUDIT_LOG: typeof AUDIT_LOG;
90
+ declare const crudEndpoints_AUTOMATION_JOB: typeof AUTOMATION_JOB;
91
+ declare const crudEndpoints_AUTOMATION_SCRIPT: typeof AUTOMATION_SCRIPT;
92
+ declare const crudEndpoints_BILL_OF_MATERIALS: typeof BILL_OF_MATERIALS;
93
+ declare const crudEndpoints_BOM_COMPONENT: typeof BOM_COMPONENT;
94
+ declare const crudEndpoints_BOM_OPERATION: typeof BOM_OPERATION;
95
+ declare const crudEndpoints_COMPANY_ALIAS: typeof COMPANY_ALIAS;
96
+ declare const crudEndpoints_COMPANY_OPTION: typeof COMPANY_OPTION;
97
+ declare const crudEndpoints_COMPANY_PERMISSION: typeof COMPANY_PERMISSION;
98
+ declare const crudEndpoints_CUSTOMER: typeof CUSTOMER;
99
+ declare const crudEndpoints_CUSTOM_DOCUMENT: typeof CUSTOM_DOCUMENT;
100
+ declare const crudEndpoints_CUSTOM_ENTITY_FIELD: typeof CUSTOM_ENTITY_FIELD;
101
+ declare const crudEndpoints_CUSTOM_ENTITY_OBJECT: typeof CUSTOM_ENTITY_OBJECT;
102
+ declare const crudEndpoints_CUSTOM_ENTITY_SCHEMA: typeof CUSTOM_ENTITY_SCHEMA;
103
+ declare const crudEndpoints_CUSTOM_FIELD: typeof CUSTOM_FIELD;
104
+ declare const crudEndpoints_CUSTOM_REPORT: typeof CUSTOM_REPORT;
105
+ declare const crudEndpoints_DELIVERY_JOB: typeof DELIVERY_JOB;
106
+ declare const crudEndpoints_EMPLOYEE: typeof EMPLOYEE;
107
+ declare const crudEndpoints_EXPENSE: typeof EXPENSE;
108
+ declare const crudEndpoints_EXPENSE_LINE: typeof EXPENSE_LINE;
109
+ declare const crudEndpoints_FIXED_ASSET: typeof FIXED_ASSET;
110
+ declare const crudEndpoints_FORM: typeof FORM;
111
+ declare const crudEndpoints_GEOFENCE: typeof GEOFENCE;
112
+ declare const crudEndpoints_IDENTIFIER_GROUP: typeof IDENTIFIER_GROUP;
113
+ declare const crudEndpoints_IDENTIFIER_TOKEN: typeof IDENTIFIER_TOKEN;
114
+ declare const crudEndpoints_INCOMING_DELIVERY: typeof INCOMING_DELIVERY;
115
+ declare const crudEndpoints_INCOMING_DELIVERY_LINE: typeof INCOMING_DELIVERY_LINE;
116
+ declare const crudEndpoints_INCOMING_PAYMENT_METHOD: typeof INCOMING_PAYMENT_METHOD;
117
+ declare const crudEndpoints_INCOMING_SHIPMENT: typeof INCOMING_SHIPMENT;
118
+ declare const crudEndpoints_INTERNAL_DELIVERY: typeof INTERNAL_DELIVERY;
119
+ declare const crudEndpoints_INTERNAL_DELIVERY_LINE: typeof INTERNAL_DELIVERY_LINE;
120
+ declare const crudEndpoints_INVITATION: typeof INVITATION;
121
+ declare const crudEndpoints_INVOICE: typeof INVOICE;
122
+ declare const crudEndpoints_INVOICE_LINE: typeof INVOICE_LINE;
123
+ declare const crudEndpoints_IOT_DEVICE: typeof IOT_DEVICE;
124
+ declare const crudEndpoints_IOT_JOB: typeof IOT_JOB;
125
+ declare const crudEndpoints_JOB_CARD: typeof JOB_CARD;
126
+ declare const crudEndpoints_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
127
+ declare const crudEndpoints_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
128
+ declare const crudEndpoints_NOTIFICATION: typeof NOTIFICATION;
129
+ declare const crudEndpoints_OUTGOING_DELIVERY: typeof OUTGOING_DELIVERY;
130
+ declare const crudEndpoints_OUTGOING_DELIVERY_LINE: typeof OUTGOING_DELIVERY_LINE;
131
+ declare const crudEndpoints_OUTGOING_SHIPMENT: typeof OUTGOING_SHIPMENT;
132
+ declare const crudEndpoints_PAYMENT: typeof PAYMENT;
133
+ declare const crudEndpoints_PRINT_JOB: typeof PRINT_JOB;
134
+ declare const crudEndpoints_PRODUCT: typeof PRODUCT;
135
+ declare const crudEndpoints_PRODUCTION_ORDER: typeof PRODUCTION_ORDER;
136
+ declare const crudEndpoints_PRODUCTION_ORDER_LINE: typeof PRODUCTION_ORDER_LINE;
137
+ declare const crudEndpoints_PRODUCT_GROUP: typeof PRODUCT_GROUP;
138
+ declare const crudEndpoints_PRODUCT_ITEM: typeof PRODUCT_ITEM;
139
+ declare const crudEndpoints_PRODUCT_SUPPLIER: typeof PRODUCT_SUPPLIER;
140
+ declare const crudEndpoints_PURCHASE_ORDER: typeof PURCHASE_ORDER;
141
+ declare const crudEndpoints_PURCHASE_ORDER_APPROVER: typeof PURCHASE_ORDER_APPROVER;
142
+ declare const crudEndpoints_PURCHASE_ORDER_LINE: typeof PURCHASE_ORDER_LINE;
143
+ declare const crudEndpoints_QUOTE: typeof QUOTE;
144
+ declare const crudEndpoints_QUOTE_LINE: typeof QUOTE_LINE;
145
+ declare const crudEndpoints_RENTAL_ORDER: typeof RENTAL_ORDER;
146
+ declare const crudEndpoints_RENTAL_ORDER_LINE: typeof RENTAL_ORDER_LINE;
147
+ declare const crudEndpoints_SALES_ORDER: typeof SALES_ORDER;
148
+ declare const crudEndpoints_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
149
+ declare const crudEndpoints_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
150
+ declare const crudEndpoints_SERVICE_ORDER: typeof SERVICE_ORDER;
151
+ declare const crudEndpoints_SHIFT: typeof SHIFT;
152
+ declare const crudEndpoints_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
153
+ declare const crudEndpoints_STORE: typeof STORE;
154
+ declare const crudEndpoints_STORE_PRODUCT: typeof STORE_PRODUCT;
155
+ declare const crudEndpoints_STORE_PRODUCT_ATTRIBUTE: typeof STORE_PRODUCT_ATTRIBUTE;
156
+ declare const crudEndpoints_STORE_PRODUCT_ATTRIBUTE_VALUE: typeof STORE_PRODUCT_ATTRIBUTE_VALUE;
157
+ declare const crudEndpoints_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
158
+ declare const crudEndpoints_SUBSIDIARY: typeof SUBSIDIARY;
159
+ declare const crudEndpoints_SUPPLIER: typeof SUPPLIER;
160
+ declare const crudEndpoints_USER_ACTION: typeof USER_ACTION;
161
+ declare const crudEndpoints_USER_PERSONA: typeof USER_PERSONA;
162
+ declare const crudEndpoints_USER_PERSONA_CUSTOM_SCHEMA_PERMISSION: typeof USER_PERSONA_CUSTOM_SCHEMA_PERMISSION;
163
+ declare const crudEndpoints_USER_PERSONA_ENTITY_ACCESS_STATUS: typeof USER_PERSONA_ENTITY_ACCESS_STATUS;
164
+ declare const crudEndpoints_USER_PERSONA_ENTITY_PERMISSION: typeof USER_PERSONA_ENTITY_PERMISSION;
165
+ declare const crudEndpoints_VEHICLE: typeof VEHICLE;
166
+ declare const crudEndpoints_WAREHOUSE: typeof WAREHOUSE;
167
+ declare const crudEndpoints_WORKSTATION: typeof WORKSTATION;
168
+ declare const crudEndpoints_WORK_ORDER: typeof WORK_ORDER;
169
+ declare namespace crudEndpoints {
170
+ 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_CUSTOM_REPORT as CUSTOM_REPORT, 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_FORM as FORM, crudEndpoints_GEOFENCE as GEOFENCE, crudEndpoints_IDENTIFIER_GROUP as IDENTIFIER_GROUP, crudEndpoints_IDENTIFIER_TOKEN as IDENTIFIER_TOKEN, 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_JOB_CARD as JOB_CARD, crudEndpoints_JOURNAL_ENTRY as JOURNAL_ENTRY, crudEndpoints_JOURNAL_ENTRY_LINE as JOURNAL_ENTRY_LINE, crudEndpoints_NOTIFICATION as NOTIFICATION, 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_PRODUCT_SUPPLIER as PRODUCT_SUPPLIER, 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_SHIFT as SHIFT, 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_USER_PERSONA as USER_PERSONA, crudEndpoints_USER_PERSONA_CUSTOM_SCHEMA_PERMISSION as USER_PERSONA_CUSTOM_SCHEMA_PERMISSION, crudEndpoints_USER_PERSONA_ENTITY_ACCESS_STATUS as USER_PERSONA_ENTITY_ACCESS_STATUS, crudEndpoints_USER_PERSONA_ENTITY_PERMISSION as USER_PERSONA_ENTITY_PERMISSION, crudEndpoints_VEHICLE as VEHICLE, crudEndpoints_WAREHOUSE as WAREHOUSE, crudEndpoints_WORKSTATION as WORKSTATION, crudEndpoints_WORK_ORDER as WORK_ORDER };
171
+ }
172
+
173
+ declare function call(axiosRequest: AxiosRequestConfig): Promise<axios.AxiosResponse<any, any>>;
174
+ declare function getAllCustomObjects(schemaName: string, queryParams?: any): Promise<any>;
175
+ declare function getCustomObjectById(schemaName: string, id: string): Promise<any>;
176
+ declare function updateCustomObject(schemaName: string, id: string, newData: any): Promise<any>;
177
+ declare function createCustomObject(schemaName: string, data: any): Promise<any>;
178
+ declare function deleteCustomObject(schemaName: string, id: string): Promise<any>;
179
+ declare function getAllObjects(entity: any, queryParams?: any): Promise<any>;
180
+ declare function getObjectById(entity: any, id: string): Promise<any>;
181
+ declare function updateObject(entity: any, id: string, newData: any): Promise<any>;
182
+ declare function createObject(entity: any, data: any): Promise<any>;
183
+ declare function deleteObject(entity: any, id: string): Promise<any>;
184
+ declare function runScript(scriptNameOrId: string, input: any, sync?: boolean): Promise<any>;
185
+ declare const konversiAPI: {
186
+ setToken: (token: string) => void;
187
+ setCompanyId: (companyId: string) => void;
188
+ setBaseUrl: (baseUrl: string) => void;
189
+ getAllCustomObjects: typeof getAllCustomObjects;
190
+ getCustomObjectById: typeof getCustomObjectById;
191
+ updateCustomObject: typeof updateCustomObject;
192
+ deleteCustomObject: typeof deleteCustomObject;
193
+ createCustomObject: typeof createCustomObject;
194
+ getAllObjects: typeof getAllObjects;
195
+ getObjectById: typeof getObjectById;
196
+ updateObject: typeof updateObject;
197
+ createObject: typeof createObject;
198
+ deleteObject: typeof deleteObject;
199
+ runScript: typeof runScript;
200
+ call: typeof call;
201
+ baseUrl: string | undefined;
202
+ token: string;
203
+ companyId: axios.AxiosHeaderValue | undefined;
204
+ };
205
+
206
+ declare const Entity: typeof crudEndpoints;
207
+
208
+ export { Entity, konversiAPI as default, runScript };
@@ -0,0 +1,208 @@
1
+ import * as axios from 'axios';
2
+ import { AxiosRequestConfig } from 'axios';
3
+
4
+ declare const NOTIFICATION = "notification";
5
+ declare const USER_PERSONA = "user/user-persona";
6
+ declare const USER_PERSONA_CUSTOM_SCHEMA_PERMISSION = "user/user-persona-custom-schema-permission";
7
+ declare const USER_PERSONA_ENTITY_PERMISSION = "user/user-persona-entity-permission";
8
+ declare const USER_PERSONA_ENTITY_ACCESS_STATUS = "user/user-persona-entity-access-status";
9
+ declare const COMPANY_PERMISSION = "company-permission";
10
+ declare const COMPANY_OPTION = "company-option";
11
+ declare const INVITATION = "user/invitation";
12
+ declare const CUSTOMER = "contact/customer";
13
+ declare const PRODUCT = "product";
14
+ declare const PRODUCT_ITEM = "product/product-item";
15
+ declare const PRODUCT_GROUP = "product-group";
16
+ declare const PRODUCT_SUPPLIER = "product/product-supplier";
17
+ declare const PURCHASE_ORDER = "order/purchase-order";
18
+ declare const PURCHASE_ORDER_LINE = "order/purchase-order-line";
19
+ declare const QUOTE = "order/quote";
20
+ declare const QUOTE_LINE = "order/quote-line";
21
+ declare const SALES_ORDER = "order/sales-order";
22
+ declare const SALES_ORDER_LINE = "order/sales-order-line";
23
+ declare const RENTAL_ORDER = "order/rental-order";
24
+ declare const RENTAL_ORDER_LINE = "order/rental-order-line";
25
+ declare const SUPPLIER = "contact/supplier";
26
+ declare const WAREHOUSE = "warehouse";
27
+ declare const INCOMING_DELIVERY = "delivery/incoming-delivery";
28
+ declare const INCOMING_DELIVERY_LINE = "delivery/incoming-delivery-line";
29
+ declare const OUTGOING_DELIVERY = "delivery/outgoing-delivery";
30
+ declare const OUTGOING_DELIVERY_LINE = "delivery/outgoing-delivery-line";
31
+ declare const INTERNAL_DELIVERY = "delivery/internal-delivery";
32
+ declare const INTERNAL_DELIVERY_LINE = "delivery/internal-delivery-line";
33
+ declare const INVOICE = "invoice";
34
+ declare const INVOICE_LINE = "invoice/invoice-line";
35
+ declare const EXPENSE = "expense";
36
+ declare const EXPENSE_LINE = "expense/expense-line";
37
+ declare const PAYMENT = "accounting/payment";
38
+ declare const INCOMING_PAYMENT_METHOD = "accounting/incoming-payment-method";
39
+ declare const FIXED_ASSET = "fixed-asset";
40
+ declare const STORE = "store";
41
+ declare const STORE_PRODUCT = "store/store-product";
42
+ declare const STORE_PRODUCT_GROUP = "store/store-product-group";
43
+ declare const STORE_PRODUCT_ATTRIBUTE = "store/store-product-attribute";
44
+ declare const STORE_PRODUCT_ATTRIBUTE_VALUE = "store/store-product-attribute-value";
45
+ declare const ACCOUNT = "accounting/account";
46
+ declare const JOURNAL_ENTRY = "accounting/journal-entry";
47
+ declare const JOURNAL_ENTRY_LINE = "accounting/journal-entry-line";
48
+ declare const BILL_OF_MATERIALS = "manufacturing/bill-of-materials";
49
+ declare const BOM_COMPONENT = "manufacturing/bom-component";
50
+ declare const BOM_OPERATION = "manufacturing/bom-operation";
51
+ declare const PRODUCTION_ORDER = "manufacturing/production-order";
52
+ declare const PRODUCTION_ORDER_LINE = "manufacturing/production-order-line";
53
+ declare const JOB_CARD = "manufacturing/job-card";
54
+ declare const WORKSTATION = "manufacturing/workstation";
55
+ declare const SUBSIDIARY = "subsidiary";
56
+ declare const EMPLOYEE = "human-resources/employee";
57
+ declare const GEOFENCE = "geofence";
58
+ declare const SHIFT = "human-resources/employee/shift";
59
+ declare const ATTENDANCE = "human-resources/attendance";
60
+ declare const VEHICLE = "fleet/vehicle";
61
+ declare const DELIVERY_JOB = "fleet/delivery-job";
62
+ declare const CUSTOM_ENTITY_SCHEMA = "custom-entity/schema";
63
+ declare const CUSTOM_ENTITY_OBJECT = "custom-entity/object";
64
+ declare const CUSTOM_ENTITY_FIELD = "custom-entity/field";
65
+ declare const FORM = "form";
66
+ declare const CUSTOM_REPORT = "report/custom-report";
67
+ declare const AUTOMATION_JOB = "automation/job";
68
+ declare const AUTOMATION_SCRIPT = "automation/script";
69
+ declare const USER_ACTION = "automation/user-action";
70
+ declare const IOT_DEVICE = "iot/device";
71
+ declare const IOT_JOB = "iot/job";
72
+ declare const STOCK_ADJUSTMENT = "stock-adjustment";
73
+ declare const PURCHASE_ORDER_APPROVER = "approval/approver/purchase-order";
74
+ declare const SALES_ORDER_APPROVER = "approval/approver/sales-order";
75
+ declare const CUSTOM_DOCUMENT = "document-generator/custom-document";
76
+ declare const CUSTOM_FIELD = "custom-field";
77
+ declare const AUDIT_LOG = "audit-log";
78
+ declare const COMPANY_ALIAS = "company-alias";
79
+ declare const PRINT_JOB = "thermal-printer/print-job";
80
+ declare const WORK_ORDER = "order/sales-order?type=WORK_ORDER";
81
+ declare const SERVICE_ORDER = "order/sales-order?type=SERVICE_ORDER";
82
+ declare const IDENTIFIER_GROUP = "identifier/identifier-group";
83
+ declare const IDENTIFIER_TOKEN = "identifier/identifier-token";
84
+ declare const INCOMING_SHIPMENT = "shipment/incoming-shipment";
85
+ declare const OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
86
+
87
+ declare const crudEndpoints_ACCOUNT: typeof ACCOUNT;
88
+ declare const crudEndpoints_ATTENDANCE: typeof ATTENDANCE;
89
+ declare const crudEndpoints_AUDIT_LOG: typeof AUDIT_LOG;
90
+ declare const crudEndpoints_AUTOMATION_JOB: typeof AUTOMATION_JOB;
91
+ declare const crudEndpoints_AUTOMATION_SCRIPT: typeof AUTOMATION_SCRIPT;
92
+ declare const crudEndpoints_BILL_OF_MATERIALS: typeof BILL_OF_MATERIALS;
93
+ declare const crudEndpoints_BOM_COMPONENT: typeof BOM_COMPONENT;
94
+ declare const crudEndpoints_BOM_OPERATION: typeof BOM_OPERATION;
95
+ declare const crudEndpoints_COMPANY_ALIAS: typeof COMPANY_ALIAS;
96
+ declare const crudEndpoints_COMPANY_OPTION: typeof COMPANY_OPTION;
97
+ declare const crudEndpoints_COMPANY_PERMISSION: typeof COMPANY_PERMISSION;
98
+ declare const crudEndpoints_CUSTOMER: typeof CUSTOMER;
99
+ declare const crudEndpoints_CUSTOM_DOCUMENT: typeof CUSTOM_DOCUMENT;
100
+ declare const crudEndpoints_CUSTOM_ENTITY_FIELD: typeof CUSTOM_ENTITY_FIELD;
101
+ declare const crudEndpoints_CUSTOM_ENTITY_OBJECT: typeof CUSTOM_ENTITY_OBJECT;
102
+ declare const crudEndpoints_CUSTOM_ENTITY_SCHEMA: typeof CUSTOM_ENTITY_SCHEMA;
103
+ declare const crudEndpoints_CUSTOM_FIELD: typeof CUSTOM_FIELD;
104
+ declare const crudEndpoints_CUSTOM_REPORT: typeof CUSTOM_REPORT;
105
+ declare const crudEndpoints_DELIVERY_JOB: typeof DELIVERY_JOB;
106
+ declare const crudEndpoints_EMPLOYEE: typeof EMPLOYEE;
107
+ declare const crudEndpoints_EXPENSE: typeof EXPENSE;
108
+ declare const crudEndpoints_EXPENSE_LINE: typeof EXPENSE_LINE;
109
+ declare const crudEndpoints_FIXED_ASSET: typeof FIXED_ASSET;
110
+ declare const crudEndpoints_FORM: typeof FORM;
111
+ declare const crudEndpoints_GEOFENCE: typeof GEOFENCE;
112
+ declare const crudEndpoints_IDENTIFIER_GROUP: typeof IDENTIFIER_GROUP;
113
+ declare const crudEndpoints_IDENTIFIER_TOKEN: typeof IDENTIFIER_TOKEN;
114
+ declare const crudEndpoints_INCOMING_DELIVERY: typeof INCOMING_DELIVERY;
115
+ declare const crudEndpoints_INCOMING_DELIVERY_LINE: typeof INCOMING_DELIVERY_LINE;
116
+ declare const crudEndpoints_INCOMING_PAYMENT_METHOD: typeof INCOMING_PAYMENT_METHOD;
117
+ declare const crudEndpoints_INCOMING_SHIPMENT: typeof INCOMING_SHIPMENT;
118
+ declare const crudEndpoints_INTERNAL_DELIVERY: typeof INTERNAL_DELIVERY;
119
+ declare const crudEndpoints_INTERNAL_DELIVERY_LINE: typeof INTERNAL_DELIVERY_LINE;
120
+ declare const crudEndpoints_INVITATION: typeof INVITATION;
121
+ declare const crudEndpoints_INVOICE: typeof INVOICE;
122
+ declare const crudEndpoints_INVOICE_LINE: typeof INVOICE_LINE;
123
+ declare const crudEndpoints_IOT_DEVICE: typeof IOT_DEVICE;
124
+ declare const crudEndpoints_IOT_JOB: typeof IOT_JOB;
125
+ declare const crudEndpoints_JOB_CARD: typeof JOB_CARD;
126
+ declare const crudEndpoints_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
127
+ declare const crudEndpoints_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
128
+ declare const crudEndpoints_NOTIFICATION: typeof NOTIFICATION;
129
+ declare const crudEndpoints_OUTGOING_DELIVERY: typeof OUTGOING_DELIVERY;
130
+ declare const crudEndpoints_OUTGOING_DELIVERY_LINE: typeof OUTGOING_DELIVERY_LINE;
131
+ declare const crudEndpoints_OUTGOING_SHIPMENT: typeof OUTGOING_SHIPMENT;
132
+ declare const crudEndpoints_PAYMENT: typeof PAYMENT;
133
+ declare const crudEndpoints_PRINT_JOB: typeof PRINT_JOB;
134
+ declare const crudEndpoints_PRODUCT: typeof PRODUCT;
135
+ declare const crudEndpoints_PRODUCTION_ORDER: typeof PRODUCTION_ORDER;
136
+ declare const crudEndpoints_PRODUCTION_ORDER_LINE: typeof PRODUCTION_ORDER_LINE;
137
+ declare const crudEndpoints_PRODUCT_GROUP: typeof PRODUCT_GROUP;
138
+ declare const crudEndpoints_PRODUCT_ITEM: typeof PRODUCT_ITEM;
139
+ declare const crudEndpoints_PRODUCT_SUPPLIER: typeof PRODUCT_SUPPLIER;
140
+ declare const crudEndpoints_PURCHASE_ORDER: typeof PURCHASE_ORDER;
141
+ declare const crudEndpoints_PURCHASE_ORDER_APPROVER: typeof PURCHASE_ORDER_APPROVER;
142
+ declare const crudEndpoints_PURCHASE_ORDER_LINE: typeof PURCHASE_ORDER_LINE;
143
+ declare const crudEndpoints_QUOTE: typeof QUOTE;
144
+ declare const crudEndpoints_QUOTE_LINE: typeof QUOTE_LINE;
145
+ declare const crudEndpoints_RENTAL_ORDER: typeof RENTAL_ORDER;
146
+ declare const crudEndpoints_RENTAL_ORDER_LINE: typeof RENTAL_ORDER_LINE;
147
+ declare const crudEndpoints_SALES_ORDER: typeof SALES_ORDER;
148
+ declare const crudEndpoints_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
149
+ declare const crudEndpoints_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
150
+ declare const crudEndpoints_SERVICE_ORDER: typeof SERVICE_ORDER;
151
+ declare const crudEndpoints_SHIFT: typeof SHIFT;
152
+ declare const crudEndpoints_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
153
+ declare const crudEndpoints_STORE: typeof STORE;
154
+ declare const crudEndpoints_STORE_PRODUCT: typeof STORE_PRODUCT;
155
+ declare const crudEndpoints_STORE_PRODUCT_ATTRIBUTE: typeof STORE_PRODUCT_ATTRIBUTE;
156
+ declare const crudEndpoints_STORE_PRODUCT_ATTRIBUTE_VALUE: typeof STORE_PRODUCT_ATTRIBUTE_VALUE;
157
+ declare const crudEndpoints_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
158
+ declare const crudEndpoints_SUBSIDIARY: typeof SUBSIDIARY;
159
+ declare const crudEndpoints_SUPPLIER: typeof SUPPLIER;
160
+ declare const crudEndpoints_USER_ACTION: typeof USER_ACTION;
161
+ declare const crudEndpoints_USER_PERSONA: typeof USER_PERSONA;
162
+ declare const crudEndpoints_USER_PERSONA_CUSTOM_SCHEMA_PERMISSION: typeof USER_PERSONA_CUSTOM_SCHEMA_PERMISSION;
163
+ declare const crudEndpoints_USER_PERSONA_ENTITY_ACCESS_STATUS: typeof USER_PERSONA_ENTITY_ACCESS_STATUS;
164
+ declare const crudEndpoints_USER_PERSONA_ENTITY_PERMISSION: typeof USER_PERSONA_ENTITY_PERMISSION;
165
+ declare const crudEndpoints_VEHICLE: typeof VEHICLE;
166
+ declare const crudEndpoints_WAREHOUSE: typeof WAREHOUSE;
167
+ declare const crudEndpoints_WORKSTATION: typeof WORKSTATION;
168
+ declare const crudEndpoints_WORK_ORDER: typeof WORK_ORDER;
169
+ declare namespace crudEndpoints {
170
+ 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_CUSTOM_REPORT as CUSTOM_REPORT, 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_FORM as FORM, crudEndpoints_GEOFENCE as GEOFENCE, crudEndpoints_IDENTIFIER_GROUP as IDENTIFIER_GROUP, crudEndpoints_IDENTIFIER_TOKEN as IDENTIFIER_TOKEN, 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_JOB_CARD as JOB_CARD, crudEndpoints_JOURNAL_ENTRY as JOURNAL_ENTRY, crudEndpoints_JOURNAL_ENTRY_LINE as JOURNAL_ENTRY_LINE, crudEndpoints_NOTIFICATION as NOTIFICATION, 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_PRODUCT_SUPPLIER as PRODUCT_SUPPLIER, 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_SHIFT as SHIFT, 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_USER_PERSONA as USER_PERSONA, crudEndpoints_USER_PERSONA_CUSTOM_SCHEMA_PERMISSION as USER_PERSONA_CUSTOM_SCHEMA_PERMISSION, crudEndpoints_USER_PERSONA_ENTITY_ACCESS_STATUS as USER_PERSONA_ENTITY_ACCESS_STATUS, crudEndpoints_USER_PERSONA_ENTITY_PERMISSION as USER_PERSONA_ENTITY_PERMISSION, crudEndpoints_VEHICLE as VEHICLE, crudEndpoints_WAREHOUSE as WAREHOUSE, crudEndpoints_WORKSTATION as WORKSTATION, crudEndpoints_WORK_ORDER as WORK_ORDER };
171
+ }
172
+
173
+ declare function call(axiosRequest: AxiosRequestConfig): Promise<axios.AxiosResponse<any, any>>;
174
+ declare function getAllCustomObjects(schemaName: string, queryParams?: any): Promise<any>;
175
+ declare function getCustomObjectById(schemaName: string, id: string): Promise<any>;
176
+ declare function updateCustomObject(schemaName: string, id: string, newData: any): Promise<any>;
177
+ declare function createCustomObject(schemaName: string, data: any): Promise<any>;
178
+ declare function deleteCustomObject(schemaName: string, id: string): Promise<any>;
179
+ declare function getAllObjects(entity: any, queryParams?: any): Promise<any>;
180
+ declare function getObjectById(entity: any, id: string): Promise<any>;
181
+ declare function updateObject(entity: any, id: string, newData: any): Promise<any>;
182
+ declare function createObject(entity: any, data: any): Promise<any>;
183
+ declare function deleteObject(entity: any, id: string): Promise<any>;
184
+ declare function runScript(scriptNameOrId: string, input: any, sync?: boolean): Promise<any>;
185
+ declare const konversiAPI: {
186
+ setToken: (token: string) => void;
187
+ setCompanyId: (companyId: string) => void;
188
+ setBaseUrl: (baseUrl: string) => void;
189
+ getAllCustomObjects: typeof getAllCustomObjects;
190
+ getCustomObjectById: typeof getCustomObjectById;
191
+ updateCustomObject: typeof updateCustomObject;
192
+ deleteCustomObject: typeof deleteCustomObject;
193
+ createCustomObject: typeof createCustomObject;
194
+ getAllObjects: typeof getAllObjects;
195
+ getObjectById: typeof getObjectById;
196
+ updateObject: typeof updateObject;
197
+ createObject: typeof createObject;
198
+ deleteObject: typeof deleteObject;
199
+ runScript: typeof runScript;
200
+ call: typeof call;
201
+ baseUrl: string | undefined;
202
+ token: string;
203
+ companyId: axios.AxiosHeaderValue | undefined;
204
+ };
205
+
206
+ declare const Entity: typeof crudEndpoints;
207
+
208
+ export { Entity, konversiAPI as default, runScript };