@konversi/konversi-client 1.3.0 → 1.4.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/README.md +46 -46
- package/axiosAPI.ts +26 -26
- package/crudEndpoints.ts +121 -106
- package/dist/index.d.mts +30 -1
- package/dist/index.d.ts +30 -1
- package/dist/index.js +34 -2
- package/dist/index.mjs +34 -2
- package/index.ts +127 -120
- package/package.json +24 -24
- package/test/createCustomObject.ts +19 -19
- package/test/getCustomer.ts +4 -4
- package/tsconfig.json +109 -109
package/README.md
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
# Konversi Client
|
|
2
|
-
|
|
3
|
-
## Automations Examples
|
|
4
|
-
|
|
5
|
-
### Basic Automation Example
|
|
6
|
-
```ts
|
|
7
|
-
import K from '@konversi/konversi-client';
|
|
8
|
-
|
|
9
|
-
export async function execute(input) {
|
|
10
|
-
console.log(input);
|
|
11
|
-
}
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
### Base Objects CRUD
|
|
15
|
-
|
|
16
|
-
```ts
|
|
17
|
-
import K, { Entity } from '@konversi/konversi-client';
|
|
18
|
-
|
|
19
|
-
export async function execute(input) {
|
|
20
|
-
let result = await K.createObject(Entity.SALES_ORDER, {})
|
|
21
|
-
console.log(result);
|
|
22
|
-
|
|
23
|
-
result = await K.getAllObjects(Entity.SALES_ORDER)
|
|
24
|
-
console.log(result);
|
|
25
|
-
|
|
26
|
-
result = await K.updateObject(Entity.SALES_ORDER, result[0].id, { memo: 'New memo' })
|
|
27
|
-
console.log(result);
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### Custom Objects CRUD
|
|
32
|
-
|
|
33
|
-
```ts
|
|
34
|
-
import K, { Entity } from '@konversi/konversi-client';
|
|
35
|
-
|
|
36
|
-
export async function execute(input) {
|
|
37
|
-
let createdObject = await K.createCustomObject('ticket', {numEntries: 100, amount: 500000, code: "TICKET-123456"})
|
|
38
|
-
console.log(`created object`, createdObject);
|
|
39
|
-
|
|
40
|
-
let allObjects = await K.getAllCustomObjects('ticket');
|
|
41
|
-
|
|
42
|
-
console.log(`all objects`, allObjects);
|
|
43
|
-
|
|
44
|
-
let updateResult = await K.updateCustomObject('ticket', createdObject.id, {numEntries: 200});
|
|
45
|
-
console.log(`updated object`, updateResult);
|
|
46
|
-
}
|
|
1
|
+
# Konversi Client
|
|
2
|
+
|
|
3
|
+
## Automations Examples
|
|
4
|
+
|
|
5
|
+
### Basic Automation Example
|
|
6
|
+
```ts
|
|
7
|
+
import K from '@konversi/konversi-client';
|
|
8
|
+
|
|
9
|
+
export async function execute(input) {
|
|
10
|
+
console.log(input);
|
|
11
|
+
}
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Base Objects CRUD
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import K, { Entity } from '@konversi/konversi-client';
|
|
18
|
+
|
|
19
|
+
export async function execute(input) {
|
|
20
|
+
let result = await K.createObject(Entity.SALES_ORDER, {})
|
|
21
|
+
console.log(result);
|
|
22
|
+
|
|
23
|
+
result = await K.getAllObjects(Entity.SALES_ORDER)
|
|
24
|
+
console.log(result);
|
|
25
|
+
|
|
26
|
+
result = await K.updateObject(Entity.SALES_ORDER, result[0].id, { memo: 'New memo' })
|
|
27
|
+
console.log(result);
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Custom Objects CRUD
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import K, { Entity } from '@konversi/konversi-client';
|
|
35
|
+
|
|
36
|
+
export async function execute(input) {
|
|
37
|
+
let createdObject = await K.createCustomObject('ticket', {numEntries: 100, amount: 500000, code: "TICKET-123456"})
|
|
38
|
+
console.log(`created object`, createdObject);
|
|
39
|
+
|
|
40
|
+
let allObjects = await K.getAllCustomObjects('ticket');
|
|
41
|
+
|
|
42
|
+
console.log(`all objects`, allObjects);
|
|
43
|
+
|
|
44
|
+
let updateResult = await K.updateCustomObject('ticket', createdObject.id, {numEntries: 200});
|
|
45
|
+
console.log(`updated object`, updateResult);
|
|
46
|
+
}
|
|
47
47
|
```
|
package/axiosAPI.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import axios from 'axios';
|
|
2
|
-
|
|
3
|
-
const baseURL = 'https://
|
|
4
|
-
const timeout =
|
|
5
|
-
|
|
6
|
-
const instance = axios.create({
|
|
7
|
-
baseURL,
|
|
8
|
-
timeout
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
export const setBaseUrl = (baseUrl: string) => {
|
|
12
|
-
instance.defaults.baseURL = baseUrl
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const setAuthToken = (token: string) => {
|
|
16
|
-
instance.defaults.headers.common.authorization = `Bearer ${token}`
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const setCompanyId = (companyId: string) => {
|
|
20
|
-
instance.defaults.headers.common['Company'] = companyId;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const clearAuthToken = () => {
|
|
24
|
-
instance.defaults.headers.common.authorization = ''
|
|
25
|
-
}
|
|
26
|
-
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
|
|
3
|
+
const baseURL = 'https://api.konversi.id/api'
|
|
4
|
+
const timeout = 120000
|
|
5
|
+
|
|
6
|
+
const instance = axios.create({
|
|
7
|
+
baseURL,
|
|
8
|
+
timeout
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
export const setBaseUrl = (baseUrl: string) => {
|
|
12
|
+
instance.defaults.baseURL = baseUrl
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const setAuthToken = (token: string) => {
|
|
16
|
+
instance.defaults.headers.common.authorization = `Bearer ${token}`
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const setCompanyId = (companyId: string) => {
|
|
20
|
+
instance.defaults.headers.common['Company'] = companyId;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const clearAuthToken = () => {
|
|
24
|
+
instance.defaults.headers.common.authorization = ''
|
|
25
|
+
}
|
|
26
|
+
|
|
27
27
|
export default instance;
|
package/crudEndpoints.ts
CHANGED
|
@@ -1,107 +1,122 @@
|
|
|
1
|
-
export const NOTIFICATION = 'notification';
|
|
2
|
-
|
|
3
|
-
export const
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
16
|
-
export const
|
|
17
|
-
export const
|
|
18
|
-
|
|
19
|
-
export const
|
|
20
|
-
export const
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export const
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
36
|
-
export const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
export const
|
|
43
|
-
export const
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export const
|
|
56
|
-
export const
|
|
57
|
-
export const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
export const
|
|
64
|
-
export const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
export const
|
|
69
|
-
|
|
70
|
-
//
|
|
71
|
-
export const
|
|
72
|
-
export const
|
|
73
|
-
export const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
export const
|
|
78
|
-
export const
|
|
79
|
-
|
|
80
|
-
//
|
|
81
|
-
export const
|
|
82
|
-
export const
|
|
83
|
-
|
|
84
|
-
export const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
export const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
export const
|
|
95
|
-
|
|
96
|
-
export const
|
|
97
|
-
|
|
98
|
-
export const
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
export const
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
export const
|
|
1
|
+
export const NOTIFICATION = 'notification';
|
|
2
|
+
|
|
3
|
+
export const USER_PERSONA = 'user/user-persona';
|
|
4
|
+
export const USER_PERSONA_CUSTOM_SCHEMA_PERMISSION = 'user/user-persona-custom-schema-permission';
|
|
5
|
+
export const USER_PERSONA_ENTITY_PERMISSION = 'user/user-persona-entity-permission';
|
|
6
|
+
export const USER_PERSONA_ENTITY_ACCESS_STATUS = 'user/user-persona-entity-access-status';
|
|
7
|
+
|
|
8
|
+
export const COMPANY_PERMISSION = 'company-permission';
|
|
9
|
+
export const COMPANY_OPTION = 'company-option';
|
|
10
|
+
export const INVITATION = 'user/invitation';
|
|
11
|
+
|
|
12
|
+
export const CUSTOMER = 'contact/customer';
|
|
13
|
+
|
|
14
|
+
export const PRODUCT = 'product'
|
|
15
|
+
export const PRODUCT_ITEM = 'product/product-item'
|
|
16
|
+
export const PRODUCT_GROUP = 'product-group'
|
|
17
|
+
export const PRODUCT_SUPPLIER = 'product/product-supplier'
|
|
18
|
+
|
|
19
|
+
export const PURCHASE_ORDER = 'order/purchase-order'
|
|
20
|
+
export const PURCHASE_ORDER_LINE = 'order/purchase-order-line'
|
|
21
|
+
export const QUOTE = 'order/quote'
|
|
22
|
+
export const QUOTE_LINE = 'order/quote-line'
|
|
23
|
+
export const SALES_ORDER = 'order/sales-order'
|
|
24
|
+
export const SALES_ORDER_LINE = 'order/sales-order-line'
|
|
25
|
+
export const RENTAL_ORDER = 'order/rental-order'
|
|
26
|
+
export const RENTAL_ORDER_LINE = 'order/rental-order-line'
|
|
27
|
+
export const SUPPLIER = 'contact/supplier'
|
|
28
|
+
export const WAREHOUSE = 'warehouse'
|
|
29
|
+
|
|
30
|
+
// Deliveries
|
|
31
|
+
export const INCOMING_DELIVERY = 'delivery/incoming-delivery'
|
|
32
|
+
export const INCOMING_DELIVERY_LINE = 'delivery/incoming-delivery-line'
|
|
33
|
+
export const OUTGOING_DELIVERY = 'delivery/outgoing-delivery'
|
|
34
|
+
export const OUTGOING_DELIVERY_LINE = 'delivery/outgoing-delivery-line'
|
|
35
|
+
export const INTERNAL_DELIVERY = 'delivery/internal-delivery'
|
|
36
|
+
export const INTERNAL_DELIVERY_LINE = 'delivery/internal-delivery-line'
|
|
37
|
+
|
|
38
|
+
// Finance
|
|
39
|
+
export const INVOICE = 'invoice'
|
|
40
|
+
export const INVOICE_LINE = 'invoice/invoice-line'
|
|
41
|
+
export const EXPENSE = 'expense'
|
|
42
|
+
export const EXPENSE_LINE = 'expense/expense-line'
|
|
43
|
+
export const PAYMENT = 'accounting/payment'
|
|
44
|
+
export const INCOMING_PAYMENT_METHOD = 'accounting/incoming-payment-method'
|
|
45
|
+
export const FIXED_ASSET = 'fixed-asset'
|
|
46
|
+
|
|
47
|
+
// ECommerce
|
|
48
|
+
export const STORE = 'store'
|
|
49
|
+
export const STORE_PRODUCT = 'store/store-product'
|
|
50
|
+
export const STORE_PRODUCT_GROUP = 'store/store-product-group'
|
|
51
|
+
export const STORE_PRODUCT_ATTRIBUTE = 'store/store-product-attribute'
|
|
52
|
+
export const STORE_PRODUCT_ATTRIBUTE_VALUE = 'store/store-product-attribute-value'
|
|
53
|
+
|
|
54
|
+
// Accounting
|
|
55
|
+
export const ACCOUNT = 'accounting/account';
|
|
56
|
+
export const JOURNAL_ENTRY = 'accounting/journal-entry';
|
|
57
|
+
export const JOURNAL_ENTRY_LINE = 'accounting/journal-entry-line';
|
|
58
|
+
|
|
59
|
+
// Manufacturing
|
|
60
|
+
export const BILL_OF_MATERIALS = 'manufacturing/bill-of-materials'
|
|
61
|
+
export const BOM_COMPONENT = 'manufacturing/bom-component'
|
|
62
|
+
export const BOM_OPERATION = 'manufacturing/bom-operation'
|
|
63
|
+
export const PRODUCTION_ORDER = 'manufacturing/production-order'
|
|
64
|
+
export const PRODUCTION_ORDER_LINE = 'manufacturing/production-order-line'
|
|
65
|
+
export const JOB_CARD = 'manufacturing/job-card'
|
|
66
|
+
export const WORKSTATION = 'manufacturing/workstation'
|
|
67
|
+
|
|
68
|
+
export const SUBSIDIARY = 'subsidiary'
|
|
69
|
+
|
|
70
|
+
// HR
|
|
71
|
+
export const EMPLOYEE = 'human-resources/employee'
|
|
72
|
+
export const GEOFENCE = 'geofence'
|
|
73
|
+
export const SHIFT = 'human-resources/employee/shift'
|
|
74
|
+
export const ATTENDANCE = 'human-resources/attendance'
|
|
75
|
+
|
|
76
|
+
// Fleet Management
|
|
77
|
+
export const VEHICLE = 'fleet/vehicle'
|
|
78
|
+
export const DELIVERY_JOB = 'fleet/delivery-job'
|
|
79
|
+
|
|
80
|
+
// Custom Objects
|
|
81
|
+
export const CUSTOM_ENTITY_SCHEMA = 'custom-entity/schema'
|
|
82
|
+
export const CUSTOM_ENTITY_OBJECT = 'custom-entity'; // Need to add schemaName after this
|
|
83
|
+
export const CUSTOM_ENTITY_FIELD = 'custom-entity/field'; // Need to add schemaName after this
|
|
84
|
+
export const FORM = 'form';
|
|
85
|
+
export const CUSTOM_REPORT = 'report/custom-report';
|
|
86
|
+
|
|
87
|
+
// Automation
|
|
88
|
+
export const AUTOMATION_JOB = 'automation/job'
|
|
89
|
+
export const AUTOMATION_SCRIPT = 'automation/script'
|
|
90
|
+
export const USER_ACTION = 'automation/user-action'
|
|
91
|
+
|
|
92
|
+
// IOT
|
|
93
|
+
export const IOT_DEVICE = 'iot/device';
|
|
94
|
+
export const IOT_JOB = 'iot/job';
|
|
95
|
+
|
|
96
|
+
export const STOCK_ADJUSTMENT = 'stock-adjustment'
|
|
97
|
+
|
|
98
|
+
export const PURCHASE_ORDER_APPROVER = 'approval/approver/purchase-order'
|
|
99
|
+
export const SALES_ORDER_APPROVER = 'approval/approver/sales-order'
|
|
100
|
+
|
|
101
|
+
// Document Generation
|
|
102
|
+
export const CUSTOM_DOCUMENT = 'document-generator/custom-document';
|
|
103
|
+
|
|
104
|
+
export const CUSTOM_FIELD = 'custom-field'
|
|
105
|
+
|
|
106
|
+
export const AUDIT_LOG = 'audit-log'
|
|
107
|
+
|
|
108
|
+
export const COMPANY_ALIAS = 'company-alias'
|
|
109
|
+
|
|
110
|
+
export const PRINT_JOB = 'thermal-printer/print-job'
|
|
111
|
+
|
|
112
|
+
export const WORK_ORDER = 'order/sales-order?type=WORK_ORDER';
|
|
113
|
+
|
|
114
|
+
export const SERVICE_ORDER = 'order/sales-order?type=SERVICE_ORDER';
|
|
115
|
+
export const IDENTIFIER_GROUP = 'identifier/identifier-group';
|
|
116
|
+
export const IDENTIFIER_TOKEN = 'identifier/identifier-token';
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
// TODO: Deprecate
|
|
120
|
+
export const INCOMING_SHIPMENT = 'shipment/incoming-shipment'
|
|
121
|
+
export const OUTGOING_SHIPMENT = 'shipment/outgoing-shipment'
|
|
107
122
|
///
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as axios from 'axios';
|
|
2
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
3
|
|
|
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";
|
|
4
9
|
declare const COMPANY_PERMISSION = "company-permission";
|
|
5
10
|
declare const COMPANY_OPTION = "company-option";
|
|
6
11
|
declare const INVITATION = "user/invitation";
|
|
@@ -8,6 +13,7 @@ declare const CUSTOMER = "contact/customer";
|
|
|
8
13
|
declare const PRODUCT = "product";
|
|
9
14
|
declare const PRODUCT_ITEM = "product/product-item";
|
|
10
15
|
declare const PRODUCT_GROUP = "product-group";
|
|
16
|
+
declare const PRODUCT_SUPPLIER = "product/product-supplier";
|
|
11
17
|
declare const PURCHASE_ORDER = "order/purchase-order";
|
|
12
18
|
declare const PURCHASE_ORDER_LINE = "order/purchase-order-line";
|
|
13
19
|
declare const QUOTE = "order/quote";
|
|
@@ -44,14 +50,20 @@ declare const BOM_COMPONENT = "manufacturing/bom-component";
|
|
|
44
50
|
declare const BOM_OPERATION = "manufacturing/bom-operation";
|
|
45
51
|
declare const PRODUCTION_ORDER = "manufacturing/production-order";
|
|
46
52
|
declare const PRODUCTION_ORDER_LINE = "manufacturing/production-order-line";
|
|
53
|
+
declare const JOB_CARD = "manufacturing/job-card";
|
|
54
|
+
declare const WORKSTATION = "manufacturing/workstation";
|
|
47
55
|
declare const SUBSIDIARY = "subsidiary";
|
|
48
56
|
declare const EMPLOYEE = "human-resources/employee";
|
|
57
|
+
declare const GEOFENCE = "geofence";
|
|
58
|
+
declare const SHIFT = "human-resources/employee/shift";
|
|
49
59
|
declare const ATTENDANCE = "human-resources/attendance";
|
|
50
60
|
declare const VEHICLE = "fleet/vehicle";
|
|
51
61
|
declare const DELIVERY_JOB = "fleet/delivery-job";
|
|
52
62
|
declare const CUSTOM_ENTITY_SCHEMA = "custom-entity/schema";
|
|
53
63
|
declare const CUSTOM_ENTITY_OBJECT = "custom-entity";
|
|
54
64
|
declare const CUSTOM_ENTITY_FIELD = "custom-entity/field";
|
|
65
|
+
declare const FORM = "form";
|
|
66
|
+
declare const CUSTOM_REPORT = "report/custom-report";
|
|
55
67
|
declare const AUTOMATION_JOB = "automation/job";
|
|
56
68
|
declare const AUTOMATION_SCRIPT = "automation/script";
|
|
57
69
|
declare const USER_ACTION = "automation/user-action";
|
|
@@ -67,6 +79,8 @@ declare const COMPANY_ALIAS = "company-alias";
|
|
|
67
79
|
declare const PRINT_JOB = "thermal-printer/print-job";
|
|
68
80
|
declare const WORK_ORDER = "order/sales-order?type=WORK_ORDER";
|
|
69
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";
|
|
70
84
|
declare const INCOMING_SHIPMENT = "shipment/incoming-shipment";
|
|
71
85
|
declare const OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
|
|
72
86
|
|
|
@@ -87,11 +101,16 @@ declare const crudEndpoints_CUSTOM_ENTITY_FIELD: typeof CUSTOM_ENTITY_FIELD;
|
|
|
87
101
|
declare const crudEndpoints_CUSTOM_ENTITY_OBJECT: typeof CUSTOM_ENTITY_OBJECT;
|
|
88
102
|
declare const crudEndpoints_CUSTOM_ENTITY_SCHEMA: typeof CUSTOM_ENTITY_SCHEMA;
|
|
89
103
|
declare const crudEndpoints_CUSTOM_FIELD: typeof CUSTOM_FIELD;
|
|
104
|
+
declare const crudEndpoints_CUSTOM_REPORT: typeof CUSTOM_REPORT;
|
|
90
105
|
declare const crudEndpoints_DELIVERY_JOB: typeof DELIVERY_JOB;
|
|
91
106
|
declare const crudEndpoints_EMPLOYEE: typeof EMPLOYEE;
|
|
92
107
|
declare const crudEndpoints_EXPENSE: typeof EXPENSE;
|
|
93
108
|
declare const crudEndpoints_EXPENSE_LINE: typeof EXPENSE_LINE;
|
|
94
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;
|
|
95
114
|
declare const crudEndpoints_INCOMING_DELIVERY: typeof INCOMING_DELIVERY;
|
|
96
115
|
declare const crudEndpoints_INCOMING_DELIVERY_LINE: typeof INCOMING_DELIVERY_LINE;
|
|
97
116
|
declare const crudEndpoints_INCOMING_PAYMENT_METHOD: typeof INCOMING_PAYMENT_METHOD;
|
|
@@ -103,6 +122,7 @@ declare const crudEndpoints_INVOICE: typeof INVOICE;
|
|
|
103
122
|
declare const crudEndpoints_INVOICE_LINE: typeof INVOICE_LINE;
|
|
104
123
|
declare const crudEndpoints_IOT_DEVICE: typeof IOT_DEVICE;
|
|
105
124
|
declare const crudEndpoints_IOT_JOB: typeof IOT_JOB;
|
|
125
|
+
declare const crudEndpoints_JOB_CARD: typeof JOB_CARD;
|
|
106
126
|
declare const crudEndpoints_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
|
|
107
127
|
declare const crudEndpoints_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
|
|
108
128
|
declare const crudEndpoints_NOTIFICATION: typeof NOTIFICATION;
|
|
@@ -116,6 +136,7 @@ declare const crudEndpoints_PRODUCTION_ORDER: typeof PRODUCTION_ORDER;
|
|
|
116
136
|
declare const crudEndpoints_PRODUCTION_ORDER_LINE: typeof PRODUCTION_ORDER_LINE;
|
|
117
137
|
declare const crudEndpoints_PRODUCT_GROUP: typeof PRODUCT_GROUP;
|
|
118
138
|
declare const crudEndpoints_PRODUCT_ITEM: typeof PRODUCT_ITEM;
|
|
139
|
+
declare const crudEndpoints_PRODUCT_SUPPLIER: typeof PRODUCT_SUPPLIER;
|
|
119
140
|
declare const crudEndpoints_PURCHASE_ORDER: typeof PURCHASE_ORDER;
|
|
120
141
|
declare const crudEndpoints_PURCHASE_ORDER_APPROVER: typeof PURCHASE_ORDER_APPROVER;
|
|
121
142
|
declare const crudEndpoints_PURCHASE_ORDER_LINE: typeof PURCHASE_ORDER_LINE;
|
|
@@ -127,6 +148,7 @@ declare const crudEndpoints_SALES_ORDER: typeof SALES_ORDER;
|
|
|
127
148
|
declare const crudEndpoints_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
|
|
128
149
|
declare const crudEndpoints_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
|
|
129
150
|
declare const crudEndpoints_SERVICE_ORDER: typeof SERVICE_ORDER;
|
|
151
|
+
declare const crudEndpoints_SHIFT: typeof SHIFT;
|
|
130
152
|
declare const crudEndpoints_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
|
|
131
153
|
declare const crudEndpoints_STORE: typeof STORE;
|
|
132
154
|
declare const crudEndpoints_STORE_PRODUCT: typeof STORE_PRODUCT;
|
|
@@ -136,13 +158,19 @@ declare const crudEndpoints_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
|
|
|
136
158
|
declare const crudEndpoints_SUBSIDIARY: typeof SUBSIDIARY;
|
|
137
159
|
declare const crudEndpoints_SUPPLIER: typeof SUPPLIER;
|
|
138
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;
|
|
139
165
|
declare const crudEndpoints_VEHICLE: typeof VEHICLE;
|
|
140
166
|
declare const crudEndpoints_WAREHOUSE: typeof WAREHOUSE;
|
|
167
|
+
declare const crudEndpoints_WORKSTATION: typeof WORKSTATION;
|
|
141
168
|
declare const crudEndpoints_WORK_ORDER: typeof WORK_ORDER;
|
|
142
169
|
declare namespace crudEndpoints {
|
|
143
|
-
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_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_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 };
|
|
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 };
|
|
144
171
|
}
|
|
145
172
|
|
|
173
|
+
declare function call(axiosRequest: AxiosRequestConfig): Promise<axios.AxiosResponse<any, any>>;
|
|
146
174
|
declare function getAllCustomObjects(schemaName: string, queryParams?: any): Promise<any>;
|
|
147
175
|
declare function getCustomObjectById(schemaName: string, id: string): Promise<any>;
|
|
148
176
|
declare function updateCustomObject(schemaName: string, id: string, newData: any): Promise<any>;
|
|
@@ -169,6 +197,7 @@ declare const konversiAPI: {
|
|
|
169
197
|
createObject: typeof createObject;
|
|
170
198
|
deleteObject: typeof deleteObject;
|
|
171
199
|
runScript: typeof runScript;
|
|
200
|
+
call: typeof call;
|
|
172
201
|
baseUrl: string | undefined;
|
|
173
202
|
token: string;
|
|
174
203
|
companyId: axios.AxiosHeaderValue | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import * as axios from 'axios';
|
|
2
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
3
|
|
|
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";
|
|
4
9
|
declare const COMPANY_PERMISSION = "company-permission";
|
|
5
10
|
declare const COMPANY_OPTION = "company-option";
|
|
6
11
|
declare const INVITATION = "user/invitation";
|
|
@@ -8,6 +13,7 @@ declare const CUSTOMER = "contact/customer";
|
|
|
8
13
|
declare const PRODUCT = "product";
|
|
9
14
|
declare const PRODUCT_ITEM = "product/product-item";
|
|
10
15
|
declare const PRODUCT_GROUP = "product-group";
|
|
16
|
+
declare const PRODUCT_SUPPLIER = "product/product-supplier";
|
|
11
17
|
declare const PURCHASE_ORDER = "order/purchase-order";
|
|
12
18
|
declare const PURCHASE_ORDER_LINE = "order/purchase-order-line";
|
|
13
19
|
declare const QUOTE = "order/quote";
|
|
@@ -44,14 +50,20 @@ declare const BOM_COMPONENT = "manufacturing/bom-component";
|
|
|
44
50
|
declare const BOM_OPERATION = "manufacturing/bom-operation";
|
|
45
51
|
declare const PRODUCTION_ORDER = "manufacturing/production-order";
|
|
46
52
|
declare const PRODUCTION_ORDER_LINE = "manufacturing/production-order-line";
|
|
53
|
+
declare const JOB_CARD = "manufacturing/job-card";
|
|
54
|
+
declare const WORKSTATION = "manufacturing/workstation";
|
|
47
55
|
declare const SUBSIDIARY = "subsidiary";
|
|
48
56
|
declare const EMPLOYEE = "human-resources/employee";
|
|
57
|
+
declare const GEOFENCE = "geofence";
|
|
58
|
+
declare const SHIFT = "human-resources/employee/shift";
|
|
49
59
|
declare const ATTENDANCE = "human-resources/attendance";
|
|
50
60
|
declare const VEHICLE = "fleet/vehicle";
|
|
51
61
|
declare const DELIVERY_JOB = "fleet/delivery-job";
|
|
52
62
|
declare const CUSTOM_ENTITY_SCHEMA = "custom-entity/schema";
|
|
53
63
|
declare const CUSTOM_ENTITY_OBJECT = "custom-entity";
|
|
54
64
|
declare const CUSTOM_ENTITY_FIELD = "custom-entity/field";
|
|
65
|
+
declare const FORM = "form";
|
|
66
|
+
declare const CUSTOM_REPORT = "report/custom-report";
|
|
55
67
|
declare const AUTOMATION_JOB = "automation/job";
|
|
56
68
|
declare const AUTOMATION_SCRIPT = "automation/script";
|
|
57
69
|
declare const USER_ACTION = "automation/user-action";
|
|
@@ -67,6 +79,8 @@ declare const COMPANY_ALIAS = "company-alias";
|
|
|
67
79
|
declare const PRINT_JOB = "thermal-printer/print-job";
|
|
68
80
|
declare const WORK_ORDER = "order/sales-order?type=WORK_ORDER";
|
|
69
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";
|
|
70
84
|
declare const INCOMING_SHIPMENT = "shipment/incoming-shipment";
|
|
71
85
|
declare const OUTGOING_SHIPMENT = "shipment/outgoing-shipment";
|
|
72
86
|
|
|
@@ -87,11 +101,16 @@ declare const crudEndpoints_CUSTOM_ENTITY_FIELD: typeof CUSTOM_ENTITY_FIELD;
|
|
|
87
101
|
declare const crudEndpoints_CUSTOM_ENTITY_OBJECT: typeof CUSTOM_ENTITY_OBJECT;
|
|
88
102
|
declare const crudEndpoints_CUSTOM_ENTITY_SCHEMA: typeof CUSTOM_ENTITY_SCHEMA;
|
|
89
103
|
declare const crudEndpoints_CUSTOM_FIELD: typeof CUSTOM_FIELD;
|
|
104
|
+
declare const crudEndpoints_CUSTOM_REPORT: typeof CUSTOM_REPORT;
|
|
90
105
|
declare const crudEndpoints_DELIVERY_JOB: typeof DELIVERY_JOB;
|
|
91
106
|
declare const crudEndpoints_EMPLOYEE: typeof EMPLOYEE;
|
|
92
107
|
declare const crudEndpoints_EXPENSE: typeof EXPENSE;
|
|
93
108
|
declare const crudEndpoints_EXPENSE_LINE: typeof EXPENSE_LINE;
|
|
94
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;
|
|
95
114
|
declare const crudEndpoints_INCOMING_DELIVERY: typeof INCOMING_DELIVERY;
|
|
96
115
|
declare const crudEndpoints_INCOMING_DELIVERY_LINE: typeof INCOMING_DELIVERY_LINE;
|
|
97
116
|
declare const crudEndpoints_INCOMING_PAYMENT_METHOD: typeof INCOMING_PAYMENT_METHOD;
|
|
@@ -103,6 +122,7 @@ declare const crudEndpoints_INVOICE: typeof INVOICE;
|
|
|
103
122
|
declare const crudEndpoints_INVOICE_LINE: typeof INVOICE_LINE;
|
|
104
123
|
declare const crudEndpoints_IOT_DEVICE: typeof IOT_DEVICE;
|
|
105
124
|
declare const crudEndpoints_IOT_JOB: typeof IOT_JOB;
|
|
125
|
+
declare const crudEndpoints_JOB_CARD: typeof JOB_CARD;
|
|
106
126
|
declare const crudEndpoints_JOURNAL_ENTRY: typeof JOURNAL_ENTRY;
|
|
107
127
|
declare const crudEndpoints_JOURNAL_ENTRY_LINE: typeof JOURNAL_ENTRY_LINE;
|
|
108
128
|
declare const crudEndpoints_NOTIFICATION: typeof NOTIFICATION;
|
|
@@ -116,6 +136,7 @@ declare const crudEndpoints_PRODUCTION_ORDER: typeof PRODUCTION_ORDER;
|
|
|
116
136
|
declare const crudEndpoints_PRODUCTION_ORDER_LINE: typeof PRODUCTION_ORDER_LINE;
|
|
117
137
|
declare const crudEndpoints_PRODUCT_GROUP: typeof PRODUCT_GROUP;
|
|
118
138
|
declare const crudEndpoints_PRODUCT_ITEM: typeof PRODUCT_ITEM;
|
|
139
|
+
declare const crudEndpoints_PRODUCT_SUPPLIER: typeof PRODUCT_SUPPLIER;
|
|
119
140
|
declare const crudEndpoints_PURCHASE_ORDER: typeof PURCHASE_ORDER;
|
|
120
141
|
declare const crudEndpoints_PURCHASE_ORDER_APPROVER: typeof PURCHASE_ORDER_APPROVER;
|
|
121
142
|
declare const crudEndpoints_PURCHASE_ORDER_LINE: typeof PURCHASE_ORDER_LINE;
|
|
@@ -127,6 +148,7 @@ declare const crudEndpoints_SALES_ORDER: typeof SALES_ORDER;
|
|
|
127
148
|
declare const crudEndpoints_SALES_ORDER_APPROVER: typeof SALES_ORDER_APPROVER;
|
|
128
149
|
declare const crudEndpoints_SALES_ORDER_LINE: typeof SALES_ORDER_LINE;
|
|
129
150
|
declare const crudEndpoints_SERVICE_ORDER: typeof SERVICE_ORDER;
|
|
151
|
+
declare const crudEndpoints_SHIFT: typeof SHIFT;
|
|
130
152
|
declare const crudEndpoints_STOCK_ADJUSTMENT: typeof STOCK_ADJUSTMENT;
|
|
131
153
|
declare const crudEndpoints_STORE: typeof STORE;
|
|
132
154
|
declare const crudEndpoints_STORE_PRODUCT: typeof STORE_PRODUCT;
|
|
@@ -136,13 +158,19 @@ declare const crudEndpoints_STORE_PRODUCT_GROUP: typeof STORE_PRODUCT_GROUP;
|
|
|
136
158
|
declare const crudEndpoints_SUBSIDIARY: typeof SUBSIDIARY;
|
|
137
159
|
declare const crudEndpoints_SUPPLIER: typeof SUPPLIER;
|
|
138
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;
|
|
139
165
|
declare const crudEndpoints_VEHICLE: typeof VEHICLE;
|
|
140
166
|
declare const crudEndpoints_WAREHOUSE: typeof WAREHOUSE;
|
|
167
|
+
declare const crudEndpoints_WORKSTATION: typeof WORKSTATION;
|
|
141
168
|
declare const crudEndpoints_WORK_ORDER: typeof WORK_ORDER;
|
|
142
169
|
declare namespace crudEndpoints {
|
|
143
|
-
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_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_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 };
|
|
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 };
|
|
144
171
|
}
|
|
145
172
|
|
|
173
|
+
declare function call(axiosRequest: AxiosRequestConfig): Promise<axios.AxiosResponse<any, any>>;
|
|
146
174
|
declare function getAllCustomObjects(schemaName: string, queryParams?: any): Promise<any>;
|
|
147
175
|
declare function getCustomObjectById(schemaName: string, id: string): Promise<any>;
|
|
148
176
|
declare function updateCustomObject(schemaName: string, id: string, newData: any): Promise<any>;
|
|
@@ -169,6 +197,7 @@ declare const konversiAPI: {
|
|
|
169
197
|
createObject: typeof createObject;
|
|
170
198
|
deleteObject: typeof deleteObject;
|
|
171
199
|
runScript: typeof runScript;
|
|
200
|
+
call: typeof call;
|
|
172
201
|
baseUrl: string | undefined;
|
|
173
202
|
token: string;
|
|
174
203
|
companyId: axios.AxiosHeaderValue | undefined;
|