@leonailtd/n8n-nodes-priority-erp 3.1.1 → 3.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/LICENSE +27 -15
- package/dist/LICENSE +27 -15
- package/dist/credentials/PriorityErpApi.credentials.js +134 -1
- package/dist/credentials/PriorityErpWebSdk.credentials.js +134 -1
- package/dist/nodes/PriorityERP/PriorityERP.node.js +311 -1
- package/dist/nodes/PriorityERP/actions/batch/batch.properties.js +83 -1
- package/dist/nodes/PriorityERP/actions/batch/execute.operation.js +43 -1
- package/dist/nodes/PriorityERP/actions/batch/index.js +8 -1
- package/dist/nodes/PriorityERP/actions/entity/create.operation.js +13 -1
- package/dist/nodes/PriorityERP/actions/entity/delete.operation.js +12 -1
- package/dist/nodes/PriorityERP/actions/entity/entity.properties.js +296 -1
- package/dist/nodes/PriorityERP/actions/entity/get.operation.js +35 -1
- package/dist/nodes/PriorityERP/actions/entity/getMany.operation.js +43 -1
- package/dist/nodes/PriorityERP/actions/entity/index.js +16 -1
- package/dist/nodes/PriorityERP/actions/entity/update.operation.js +14 -1
- package/dist/nodes/PriorityERP/actions/file/download.operation.js +23 -1
- package/dist/nodes/PriorityERP/actions/file/file.properties.js +123 -1
- package/dist/nodes/PriorityERP/actions/file/getFiles.operation.js +16 -1
- package/dist/nodes/PriorityERP/actions/file/index.js +12 -1
- package/dist/nodes/PriorityERP/actions/file/upload.operation.js +26 -1
- package/dist/nodes/PriorityERP/actions/procedure/activate.operation.js +33 -1
- package/dist/nodes/PriorityERP/actions/procedure/activateSubForm.operation.js +37 -1
- package/dist/nodes/PriorityERP/actions/procedure/index.js +10 -1
- package/dist/nodes/PriorityERP/actions/procedure/procedure.properties.js +157 -1
- package/dist/nodes/PriorityERP/actions/subForm/create.operation.js +15 -1
- package/dist/nodes/PriorityERP/actions/subForm/delete.operation.js +14 -1
- package/dist/nodes/PriorityERP/actions/subForm/get.operation.js +37 -1
- package/dist/nodes/PriorityERP/actions/subForm/getMany.operation.js +45 -1
- package/dist/nodes/PriorityERP/actions/subForm/index.js +16 -1
- package/dist/nodes/PriorityERP/actions/subForm/subForm.properties.js +304 -1
- package/dist/nodes/PriorityERP/actions/subForm/update.operation.js +16 -1
- package/dist/nodes/PriorityERP/actions/subSubForm/create.operation.js +17 -1
- package/dist/nodes/PriorityERP/actions/subSubForm/delete.operation.js +16 -1
- package/dist/nodes/PriorityERP/actions/subSubForm/get.operation.js +39 -1
- package/dist/nodes/PriorityERP/actions/subSubForm/getMany.operation.js +47 -1
- package/dist/nodes/PriorityERP/actions/subSubForm/index.js +16 -1
- package/dist/nodes/PriorityERP/actions/subSubForm/subSubForm.properties.js +296 -1
- package/dist/nodes/PriorityERP/actions/subSubForm/update.operation.js +18 -1
- package/dist/nodes/PriorityERP/actions/text/getText.operation.js +16 -1
- package/dist/nodes/PriorityERP/actions/text/index.js +10 -1
- package/dist/nodes/PriorityERP/actions/text/setText.operation.js +19 -1
- package/dist/nodes/PriorityERP/actions/text/text.properties.js +107 -1
- package/dist/nodes/PriorityERP/helpers/odata.js +54 -1
- package/dist/nodes/PriorityERP/helpers/utils.js +62 -1
- package/dist/nodes/PriorityERP/methods/loadOptions.js +643 -1
- package/dist/nodes/PriorityERP/transport/priorityApi.js +203 -1
- package/dist/package.json +2 -2
- package/package.json +3 -3
|
@@ -1 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.get = get;
|
|
4
|
+
const odata_1 = require("../../helpers/odata");
|
|
5
|
+
const priorityApi_1 = require("../../transport/priorityApi");
|
|
6
|
+
async function get(execFns, index, context) {
|
|
7
|
+
const parentForm = execFns.getNodeParameter('parentForm', index);
|
|
8
|
+
const parentId = execFns.getNodeParameter('parentId', index);
|
|
9
|
+
const subFormName = execFns.getNodeParameter('subFormName', index);
|
|
10
|
+
const subFormId = execFns.getNodeParameter('subFormId', index);
|
|
11
|
+
const additionalOptions = execFns.getNodeParameter('additionalOptions', index);
|
|
12
|
+
let filterString = '';
|
|
13
|
+
if (additionalOptions.filters) {
|
|
14
|
+
const filtersObj = additionalOptions.filters;
|
|
15
|
+
const filterValues = filtersObj.filterValues;
|
|
16
|
+
if (filterValues?.length) {
|
|
17
|
+
filterString = (0, odata_1.buildFilterString)(filterValues);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
let orderbyString = '';
|
|
21
|
+
if (additionalOptions.orderBy) {
|
|
22
|
+
const orderByObj = additionalOptions.orderBy;
|
|
23
|
+
const sortValues = orderByObj.sortValues;
|
|
24
|
+
if (sortValues?.length) {
|
|
25
|
+
orderbyString = (0, odata_1.buildOrderByString)(sortValues);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
const qs = (0, odata_1.buildODataQuery)({
|
|
29
|
+
select: additionalOptions.select,
|
|
30
|
+
filter: filterString || undefined,
|
|
31
|
+
orderby: orderbyString || undefined,
|
|
32
|
+
expand: additionalOptions.expand,
|
|
33
|
+
});
|
|
34
|
+
const prefix = context.connectionType === 'router' ? '' : '/api';
|
|
35
|
+
const urlPath = `${prefix}/${parentForm}('${parentId}')/${subFormName}('${subFormId}')`;
|
|
36
|
+
return (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context, undefined, qs);
|
|
37
|
+
}
|
|
@@ -1 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMany = getMany;
|
|
4
|
+
const odata_1 = require("../../helpers/odata");
|
|
5
|
+
const priorityApi_1 = require("../../transport/priorityApi");
|
|
6
|
+
async function getMany(execFns, index, context) {
|
|
7
|
+
const parentForm = execFns.getNodeParameter('parentForm', index);
|
|
8
|
+
const parentId = execFns.getNodeParameter('parentId', index);
|
|
9
|
+
const subFormName = execFns.getNodeParameter('subFormName', index);
|
|
10
|
+
const limit = execFns.getNodeParameter('limit', index);
|
|
11
|
+
const skip = execFns.getNodeParameter('skip', index, 0);
|
|
12
|
+
const additionalOptions = execFns.getNodeParameter('additionalOptions', index);
|
|
13
|
+
let filterString = '';
|
|
14
|
+
if (additionalOptions.filters) {
|
|
15
|
+
const filtersObj = additionalOptions.filters;
|
|
16
|
+
const filterValues = filtersObj.filterValues;
|
|
17
|
+
if (filterValues?.length) {
|
|
18
|
+
filterString = (0, odata_1.buildFilterString)(filterValues);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
let orderbyString = '';
|
|
22
|
+
if (additionalOptions.orderBy) {
|
|
23
|
+
const orderByObj = additionalOptions.orderBy;
|
|
24
|
+
const sortValues = orderByObj.sortValues;
|
|
25
|
+
if (sortValues?.length) {
|
|
26
|
+
orderbyString = (0, odata_1.buildOrderByString)(sortValues);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const qs = (0, odata_1.buildODataQuery)({
|
|
30
|
+
top: limit,
|
|
31
|
+
skip: skip || undefined,
|
|
32
|
+
select: additionalOptions.select,
|
|
33
|
+
filter: filterString || undefined,
|
|
34
|
+
orderby: orderbyString || undefined,
|
|
35
|
+
expand: additionalOptions.expand,
|
|
36
|
+
since: additionalOptions.since,
|
|
37
|
+
});
|
|
38
|
+
const prefix = context.connectionType === 'router' ? '' : '/api';
|
|
39
|
+
const urlPath = `${prefix}/${parentForm}('${parentId}')/${subFormName}`;
|
|
40
|
+
const response = await (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context, undefined, qs);
|
|
41
|
+
if (response.value && Array.isArray(response.value)) {
|
|
42
|
+
return response.value;
|
|
43
|
+
}
|
|
44
|
+
return [response];
|
|
45
|
+
}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteSubForm = exports.update = exports.getMany = exports.get = exports.create = exports.subFormFields = exports.subFormOperations = void 0;
|
|
4
|
+
var subForm_properties_1 = require("./subForm.properties");
|
|
5
|
+
Object.defineProperty(exports, "subFormOperations", { enumerable: true, get: function () { return subForm_properties_1.subFormOperations; } });
|
|
6
|
+
Object.defineProperty(exports, "subFormFields", { enumerable: true, get: function () { return subForm_properties_1.subFormFields; } });
|
|
7
|
+
var create_operation_1 = require("./create.operation");
|
|
8
|
+
Object.defineProperty(exports, "create", { enumerable: true, get: function () { return create_operation_1.create; } });
|
|
9
|
+
var get_operation_1 = require("./get.operation");
|
|
10
|
+
Object.defineProperty(exports, "get", { enumerable: true, get: function () { return get_operation_1.get; } });
|
|
11
|
+
var getMany_operation_1 = require("./getMany.operation");
|
|
12
|
+
Object.defineProperty(exports, "getMany", { enumerable: true, get: function () { return getMany_operation_1.getMany; } });
|
|
13
|
+
var update_operation_1 = require("./update.operation");
|
|
14
|
+
Object.defineProperty(exports, "update", { enumerable: true, get: function () { return update_operation_1.update; } });
|
|
15
|
+
var delete_operation_1 = require("./delete.operation");
|
|
16
|
+
Object.defineProperty(exports, "deleteSubForm", { enumerable: true, get: function () { return delete_operation_1.deleteSubForm; } });
|
|
@@ -1 +1,304 @@
|
|
|
1
|
-
'use strict';var _0x59b5fa=_0x5d86;(function(_0x5a6d19,_0x1c2ed3){var _0x3dedec={_0x5c1d93:0x1c4,_0x36fc58:0x217,_0x207617:0x1fd,_0x46f44c:0x1ad,_0x509727:0x1b2},_0x1b35b0=_0x5d86,_0x280698=_0x5a6d19();while(!![]){try{var _0x403a25=-parseInt(_0x1b35b0(_0x3dedec._0x5c1d93))/0x1*(parseInt(_0x1b35b0(0x1fa))/0x2)+-parseInt(_0x1b35b0(0x1c9))/0x3+parseInt(_0x1b35b0(0x214))/0x4*(parseInt(_0x1b35b0(0x1bc))/0x5)+parseInt(_0x1b35b0(0x1f5))/0x6*(parseInt(_0x1b35b0(0x20f))/0x7)+parseInt(_0x1b35b0(_0x3dedec._0x36fc58))/0x8*(-parseInt(_0x1b35b0(_0x3dedec._0x207617))/0x9)+parseInt(_0x1b35b0(_0x3dedec._0x46f44c))/0xa+parseInt(_0x1b35b0(_0x3dedec._0x509727))/0xb;if(_0x403a25===_0x1c2ed3)break;else _0x280698['push'](_0x280698['shift']());}catch(_0x28b0d9){_0x280698['push'](_0x280698['shift']());}}}(_0x45de,0x42956));var _0x542e45={};_0x542e45['value']=!![],Object[_0x59b5fa(0x1f0)](exports,_0x59b5fa(0x1d9),_0x542e45),exports[_0x59b5fa(0x1c3)]=exports[_0x59b5fa(0x1be)]=void 0x0;var _0x2bc945={};_0x2bc945[_0x59b5fa(0x1b6)]=[_0x59b5fa(0x1f1)];var _0x7784b8={};_0x7784b8[_0x59b5fa(0x1b3)]=_0x2bc945;var _0x11008f={};_0x11008f[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1a3),_0x11008f[_0x59b5fa(0x1c7)]=_0x59b5fa(0x1aa),_0x11008f[_0x59b5fa(0x20c)]=_0x59b5fa(0x1e2),_0x11008f[_0x59b5fa(0x1c0)]=_0x59b5fa(0x1b9);var _0x48a236={};_0x48a236['name']=_0x59b5fa(0x1d7),_0x48a236[_0x59b5fa(0x1c7)]=_0x59b5fa(0x209),_0x48a236[_0x59b5fa(0x20c)]=_0x59b5fa(0x1a6),_0x48a236[_0x59b5fa(0x1c0)]=_0x59b5fa(0x1b7);var _0x412c6b={};_0x412c6b[_0x59b5fa(0x1f9)]='Get',_0x412c6b[_0x59b5fa(0x1c7)]=_0x59b5fa(0x216),_0x412c6b[_0x59b5fa(0x20c)]='Get\x20a\x20sub-form\x20record',_0x412c6b[_0x59b5fa(0x1c0)]='Get\x20a\x20sub\x20form\x20record';var _0x112443={};_0x112443['name']=_0x59b5fa(0x205),_0x112443[_0x59b5fa(0x1c7)]=_0x59b5fa(0x1ca),_0x112443[_0x59b5fa(0x20c)]='Get\x20many\x20sub-form\x20records',_0x112443['action']='Get\x20many\x20sub\x20form\x20records';var _0x5deb50={};_0x5deb50[_0x59b5fa(0x1f9)]='Update',_0x5deb50[_0x59b5fa(0x1c7)]=_0x59b5fa(0x1d6),_0x5deb50[_0x59b5fa(0x20c)]=_0x59b5fa(0x1c2),_0x5deb50[_0x59b5fa(0x1c0)]=_0x59b5fa(0x218);var _0x16c3b7={};_0x16c3b7[_0x59b5fa(0x1f3)]=_0x59b5fa(0x1ae),_0x16c3b7['name']='operation',_0x16c3b7[_0x59b5fa(0x1e3)]=_0x59b5fa(0x1f4),_0x16c3b7[_0x59b5fa(0x1a5)]=!![],_0x16c3b7[_0x59b5fa(0x1af)]=_0x7784b8,_0x16c3b7['options']=[_0x11008f,_0x48a236,_0x412c6b,_0x112443,_0x5deb50],_0x16c3b7[_0x59b5fa(0x1cd)]='get',exports[_0x59b5fa(0x1be)]=_0x16c3b7;var _0x8870e7={};_0x8870e7[_0x59b5fa(0x1ed)]=_0x59b5fa(0x1a7);var _0x22d298={};_0x22d298[_0x59b5fa(0x1b6)]=['subForm'];var _0x48b179={};_0x48b179[_0x59b5fa(0x1b3)]=_0x22d298;var _0x2a19cc={};_0x2a19cc[_0x59b5fa(0x1f3)]=_0x59b5fa(0x1bd),_0x2a19cc['name']=_0x59b5fa(0x1f6),_0x2a19cc[_0x59b5fa(0x1e3)]=_0x59b5fa(0x1f4),_0x2a19cc[_0x59b5fa(0x212)]=_0x8870e7,_0x2a19cc[_0x59b5fa(0x203)]=!![],_0x2a19cc['displayOptions']=_0x48b179,_0x2a19cc[_0x59b5fa(0x1cd)]='',_0x2a19cc[_0x59b5fa(0x20c)]='The\x20parent\x20form\x20name\x20in\x20Priority.\x20Switch\x20to\x20expression\x20mode\x20to\x20type\x20manually.';function _0x45de(){var _0x5596ff=['zgvZy3jPChrPB24','BNvTyMvY','C2TPCa','mtC1nty3y3PVthDw','y29SBgvJDgLVBG','u3rHCNrZifDPDgG','DhLWzu9WDgLVBNm','t3jKzxiGqNK','oty0otK2CufZC0vX','tgvZCYbuAgfU','z2v0','mJmYwufgy2vx','vxbKyxrLigeGC3vIigzVCM0GCMvJB3jK','zML4zwrdB2XSzwn0Aw9U','z2v0u3vIrM9YBxm','q3jLyxrL','tNvTyMvYig9MihjLC3vSDhmGDg8GC2TPCcaOzM9YihbHz2LUyxrPB24P','BM9eyxrHrxHWCMvZC2LVBG','rgvSzxrLigeGC3vIlwzVCM0GCMvJB3jK','z2v0rM9YBxm','vgHLieLeig9MihrOzsbWyxjLBNqGCMvJB3jK','zw5KC3DPDgG','y3jLyxrL','zMLSDgvYCW','C2vSzwn0','mJa4mJC2mhzWrejKBa','t3bLCMf0Aw9U','zgLZCgXHEu9WDgLVBNm','C3vIrM9YBuLK','rMLLBgrZ','odK0nti5oxzKBw5NCq','C2HVDW','CgXHy2vOB2XKzxi','BwLUvMfSDwu','CMvZB3vYy2u','rgvSzxrLigeGC3vIigzVCM0GCMvJB3jK','DMfSDwvZ','q3jLyxrLigeGC3vIigzVCM0GCMvJB3jK','r3jLyxrLCIbVCIbfCxvHBa','B3bLCMf0Aw9U','mtbrBwfPzuG','ugfYzw50iezVCM0','C3vIrM9YBu9WzxjHDgLVBNm','rw5KCYbxAxrO','ywn0Aw9U','u3vIluzVCM0GuMvJB3jKieLe','vxbKyxrLigeGC3vIlwzVCM0GCMvJB3jK','C3vIrM9YBuzPzwXKCW','odK2CuTqyLrR','rgvZy2vUzgLUzW','qwrKiezPzwXK','DMfSDwu','u2vSzwn0iezPzwXKCW','mti0mZK3n25hrhz5BW','z2v0qwXS','BxvSDgLWBgvwywX1zxm','qwrKAxrPB25HBcbpChrPB25Z','zgvMyxvSDa','CgfYzw50swq','q29SDw1U','BxvSDgLpChrPB25Z','vgHLig5HBwuGB2yGDgHLigzPzwXKigLUifbYAw9YAxr5lIbtD2L0y2GGDg8GzxHWCMvZC2LVBIbTB2rLihrVihr5CguGBwfUDwfSBhKU','zgf0zvrPBwu','ywrKAxrPB25HBe9WDgLVBNm','zgvZyW','u3vIluzVCM0GtMfTzq','DxbKyxrL','rgvSzxrL','y29SDw1U','x19LC01VzhvSzq','y29UDgfPBNm','zMLLBgrwywX1zxm','u29YDa','rMLLBgqGvMfSDwu','ugfYzw50ieLe','zMLLBgrZvwK','zs5NlIWGu08YmZaWmdaX','qxnJzw5KAw5N','q3jLyxrLigeGC3vIlwzVCM0GCMvJB3jK','DhLWzq','vgHLignVBhvTBIb0BYbMAwX0zxiGB24Uifn3AxrJAcb0BYbLEhbYzxnZAw9Uig1VzguGDg8GDhLWzsbTyw51ywXSEs4','tgvZCYbVCIbfCxvHBa','B3jKzxjcEq','vgHLihn1yI1MB3jTig5HBwuGkg5HDMLNyxrPB24GChjVCgvYDhKPigLUifbYAw9YAxr5lIbtD2L0y2GGDg8GzxHWCMvZC2LVBIbTB2rLihrVihr5CguGBwfUDwfSBhKU','tM90ievXDwfSCW','rMLLBgq','C3vIrM9YBu5HBwu','zxHWyw5K','vMfSDwu','Bg9Hze9WDgLVBNnnzxrOB2q','rMLLBgrZihrVihjLDhvYBI4Gu3DPDgnOihrVigv4ChjLC3nPB24GBw9Kzsb0BYb0ExbLig1HBNvHBgX5lG','vgHLieLeig9MihrOzsbZDwiTzM9YBsbYzwnVCMq','zgvMAw5LuhjVCgvYDhK','C3vIrM9YBq','rxHWyw5K','zgLZCgXHEu5HBwu','B3b0Aw9UCW','mZblwLDvreG','CgfYzw50rM9YBq','t3bLCMf0B3i','C3rHCNrZD2L0Aa','BMfTzq','odKYwvvAu1DW','z2v0twLUAvn1yKzVCM1Z','t25SEsbYzxr1CM4GCMvJB3jKCYbTB2rPzMLLzcbZAw5Jzsb0AgLZigrHDguVDgLTzsaOzM9YigLUy3jLBwvUDgfSihn5BMmP','mty4mZi3EhHMzxvI','C2LUy2u','uMvSyxrLzcbZDwiTC3vIlwzVCM1ZihrVigLUy2X1zguUifn3AxrJAcb0BYbLEhbYzxnZAw9Uig1VzguGDg8GDhLWzsbTyw51ywXSEs4','zgLYzwn0Aw9U','z2v0u3vIrM9YBunVBhvTBNm','rMLSDgvYCW','CMvXDwLYzwq','yxnJ','r2v0ie1HBNK','vgHLihzHBhvLihrVihnLDcbMB3iGDgHLigzPzwXK','Bwf4vMfSDwu','rxf1ywXZ','zgvSzxrL','C3rYAw5N','sg93ig1HBNKGCMvZDwX0CYb0BYbYzxr1CM4'];_0x45de=function(){return _0x5596ff;};return _0x45de();}var _0x47c61c={};_0x47c61c[_0x59b5fa(0x1b6)]=['subForm'];var _0x2a1887={};_0x2a1887[_0x59b5fa(0x1b3)]=_0x47c61c;var _0x5a86d1={};_0x5a86d1[_0x59b5fa(0x1f3)]=_0x59b5fa(0x1de),_0x5a86d1['name']=_0x59b5fa(0x1ce),_0x5a86d1[_0x59b5fa(0x1e3)]=_0x59b5fa(0x20a),_0x5a86d1[_0x59b5fa(0x203)]=!![],_0x5a86d1[_0x59b5fa(0x1af)]=_0x2a1887,_0x5a86d1[_0x59b5fa(0x1cd)]='',_0x5a86d1['placeholder']=_0x59b5fa(0x1e0),_0x5a86d1['description']=_0x59b5fa(0x1a8);var _0x6bbc58={};_0x6bbc58['loadOptionsMethod']=_0x59b5fa(0x21a);var _0x313376={};_0x313376['resource']=['subForm'];var _0x468a0e={};_0x468a0e[_0x59b5fa(0x1b3)]=_0x313376;var _0x41de17={};_0x41de17['displayName']=_0x59b5fa(0x1d5),_0x41de17[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1ea),_0x41de17['type']=_0x59b5fa(0x1f4),_0x41de17[_0x59b5fa(0x212)]=_0x6bbc58,_0x41de17[_0x59b5fa(0x203)]=!![],_0x41de17[_0x59b5fa(0x1af)]=_0x468a0e,_0x41de17[_0x59b5fa(0x1cd)]='',_0x41de17[_0x59b5fa(0x20c)]=_0x59b5fa(0x1e7);var _0x594265={};_0x594265[_0x59b5fa(0x1b6)]=[_0x59b5fa(0x1f1)],_0x594265[_0x59b5fa(0x1bb)]=[_0x59b5fa(0x216),_0x59b5fa(0x1d6),_0x59b5fa(0x209)];var _0x807671={};_0x807671[_0x59b5fa(0x1b3)]=_0x594265;var _0x15404c={};_0x15404c['displayName']=_0x59b5fa(0x1c1),_0x15404c[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1b0),_0x15404c[_0x59b5fa(0x1e3)]=_0x59b5fa(0x20a),_0x15404c['required']=!![],_0x15404c[_0x59b5fa(0x1af)]=_0x807671,_0x15404c['default']='',_0x15404c['description']=_0x59b5fa(0x1ef);var _0x342bd1={};_0x342bd1[_0x59b5fa(0x1cb)]=!![];var _0x1c8064={};_0x1c8064[_0x59b5fa(0x1b6)]=[_0x59b5fa(0x1f1)],_0x1c8064['operation']=[_0x59b5fa(0x1aa),_0x59b5fa(0x1d6)];var _0x1aaa2b={};_0x1aaa2b[_0x59b5fa(0x1b3)]=_0x1c8064;var _0x275074={};_0x275074[_0x59b5fa(0x1ed)]=_0x59b5fa(0x201);var _0x1d5c70={};_0x1d5c70[_0x59b5fa(0x1f3)]='Field\x20Name',_0x1d5c70[_0x59b5fa(0x1f9)]='fieldName',_0x1d5c70[_0x59b5fa(0x1e3)]=_0x59b5fa(0x1f4),_0x1d5c70['typeOptions']=_0x275074,_0x1d5c70[_0x59b5fa(0x1cd)]='',_0x1d5c70[_0x59b5fa(0x20c)]=_0x59b5fa(0x1d1);var _0x1539a6={};_0x1539a6['displayName']=_0x59b5fa(0x1dd),_0x1539a6[_0x59b5fa(0x1f9)]='fieldValue',_0x1539a6[_0x59b5fa(0x1e3)]=_0x59b5fa(0x20a),_0x1539a6[_0x59b5fa(0x1cd)]='',_0x1539a6['description']=_0x59b5fa(0x206);var _0x53013e={};_0x53013e['name']=_0x59b5fa(0x1db),_0x53013e[_0x59b5fa(0x1f3)]=_0x59b5fa(0x1e9),_0x53013e['values']=[_0x1d5c70,_0x1539a6];var _0x40c210={};_0x40c210['displayName']=_0x59b5fa(0x1b1),_0x40c210[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1df),_0x40c210[_0x59b5fa(0x1b4)]=_0x59b5fa(0x1c6),_0x40c210['type']=_0x59b5fa(0x219),_0x40c210['typeOptions']=_0x342bd1,_0x40c210[_0x59b5fa(0x1af)]=_0x1aaa2b,_0x40c210[_0x59b5fa(0x1cd)]={},_0x40c210[_0x59b5fa(0x1f4)]=[_0x53013e];var _0x550862={};_0x550862[_0x59b5fa(0x1b6)]=['subForm'],_0x550862['operation']=['get','getAll'];var _0x6b66f2={};_0x6b66f2[_0x59b5fa(0x1b3)]=_0x550862;var _0x515ce0={};_0x515ce0[_0x59b5fa(0x1ed)]='getSubFormColumns';var _0x1bd75f={};_0x1bd75f[_0x59b5fa(0x1f3)]=_0x59b5fa(0x1c8),_0x1bd75f[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1ac),_0x1bd75f['type']=_0x59b5fa(0x1d0),_0x1bd75f[_0x59b5fa(0x212)]=_0x515ce0,_0x1bd75f[_0x59b5fa(0x1cd)]=[],_0x1bd75f[_0x59b5fa(0x20c)]=_0x59b5fa(0x1ee);var _0x34ce4f={};_0x34ce4f['multipleValues']=!![];var _0x69645a={};_0x69645a[_0x59b5fa(0x1ed)]=_0x59b5fa(0x201);var _0x5997a4={};_0x5997a4[_0x59b5fa(0x1f3)]=_0x59b5fa(0x1cf),_0x5997a4[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1d8),_0x5997a4['type']='options',_0x5997a4['typeOptions']=_0x69645a,_0x5997a4[_0x59b5fa(0x1cd)]='',_0x5997a4[_0x59b5fa(0x20c)]=_0x59b5fa(0x1e4);var _0x2183ac={};_0x2183ac['name']=_0x59b5fa(0x208),_0x2183ac[_0x59b5fa(0x1c7)]='eq';var _0x444e53={};_0x444e53[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1e8),_0x444e53['value']='ne';var _0x31dd1c={};_0x31dd1c[_0x59b5fa(0x1f9)]='Greater\x20Than',_0x31dd1c['value']='gt';var _0x5b292b={};_0x5b292b[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1ba),_0x5b292b[_0x59b5fa(0x1c7)]='ge';var _0x32a59b={};_0x32a59b[_0x59b5fa(0x1f9)]=_0x59b5fa(0x215),_0x32a59b[_0x59b5fa(0x1c7)]='lt';var _0x71600c={};_0x71600c['name']=_0x59b5fa(0x1e5),_0x71600c[_0x59b5fa(0x1c7)]='le';var _0x1d9ea7={};_0x1d9ea7[_0x59b5fa(0x1f9)]='Contains',_0x1d9ea7[_0x59b5fa(0x1c7)]=_0x59b5fa(0x1da);var _0x44138f={};_0x44138f['name']=_0x59b5fa(0x211),_0x44138f[_0x59b5fa(0x1c7)]=_0x59b5fa(0x1f8);var _0x2affe6={};_0x2affe6[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1bf),_0x2affe6[_0x59b5fa(0x1c7)]=_0x59b5fa(0x1a9);var _0x445773={};_0x445773[_0x59b5fa(0x1f3)]=_0x59b5fa(0x1f7),_0x445773[_0x59b5fa(0x1f9)]='operator',_0x445773['type']='options',_0x445773[_0x59b5fa(0x1f4)]=[_0x2183ac,_0x444e53,_0x31dd1c,_0x5b292b,_0x32a59b,_0x71600c,_0x1d9ea7,_0x44138f,_0x2affe6],_0x445773[_0x59b5fa(0x1cd)]='eq';var _0x524f7e={};_0x524f7e[_0x59b5fa(0x1f3)]=_0x59b5fa(0x1ec),_0x524f7e[_0x59b5fa(0x1f9)]='value',_0x524f7e[_0x59b5fa(0x1e3)]='string',_0x524f7e[_0x59b5fa(0x1cd)]='';var _0x56ee6f={};_0x56ee6f[_0x59b5fa(0x1f3)]='Filter',_0x56ee6f[_0x59b5fa(0x1f9)]='filterValues',_0x56ee6f[_0x59b5fa(0x1b8)]=[_0x5997a4,_0x445773,_0x524f7e];var _0x5de580={};_0x5de580[_0x59b5fa(0x1f3)]=_0x59b5fa(0x202),_0x5de580[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1ab),_0x5de580[_0x59b5fa(0x1e3)]=_0x59b5fa(0x219),_0x5de580[_0x59b5fa(0x212)]=_0x34ce4f,_0x5de580[_0x59b5fa(0x1cd)]={},_0x5de580[_0x59b5fa(0x1f4)]=[_0x56ee6f];var _0x405cda={};function _0x5d86(_0x5180f4,_0x5dfb5a){_0x5180f4=_0x5180f4-0x1a3;var _0x45de80=_0x45de();var _0x5d8665=_0x45de80[_0x5180f4];if(_0x5d86['tQVWhF']===undefined){var _0x15a1d2=function(_0x157ca6){var _0x387da4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x542e45='',_0x2bc945='';for(var _0x7784b8=0x0,_0x11008f,_0x48a236,_0x412c6b=0x0;_0x48a236=_0x157ca6['charAt'](_0x412c6b++);~_0x48a236&&(_0x11008f=_0x7784b8%0x4?_0x11008f*0x40+_0x48a236:_0x48a236,_0x7784b8++%0x4)?_0x542e45+=String['fromCharCode'](0xff&_0x11008f>>(-0x2*_0x7784b8&0x6)):0x0){_0x48a236=_0x387da4['indexOf'](_0x48a236);}for(var _0x112443=0x0,_0x5deb50=_0x542e45['length'];_0x112443<_0x5deb50;_0x112443++){_0x2bc945+='%'+('00'+_0x542e45['charCodeAt'](_0x112443)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2bc945);};_0x5d86['PZXYFH']=_0x15a1d2,_0x5d86['DCsFTw']={},_0x5d86['tQVWhF']=!![];}var _0x5bee56=_0x45de80[0x0],_0x3ae1bc=_0x5180f4+_0x5bee56,_0x32fee0=_0x5d86['DCsFTw'][_0x3ae1bc];return!_0x32fee0?(_0x5d8665=_0x5d86['PZXYFH'](_0x5d8665),_0x5d86['DCsFTw'][_0x3ae1bc]=_0x5d8665):_0x5d8665=_0x32fee0,_0x5d8665;}_0x405cda[_0x59b5fa(0x1cb)]=!![];var _0xe2a159={};_0xe2a159['loadOptionsMethod']=_0x59b5fa(0x201);var _0x430e8f={};_0x430e8f['displayName']=_0x59b5fa(0x1cf),_0x430e8f[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1d8),_0x430e8f[_0x59b5fa(0x1e3)]='options',_0x430e8f[_0x59b5fa(0x212)]=_0xe2a159,_0x430e8f[_0x59b5fa(0x1cd)]='',_0x430e8f[_0x59b5fa(0x20c)]='The\x20column\x20to\x20sort\x20by.\x20Switch\x20to\x20expression\x20mode\x20to\x20type\x20manually.';var _0x4059bb={};_0x4059bb[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1e1),_0x4059bb[_0x59b5fa(0x1c7)]=_0x59b5fa(0x204);var _0x5ed277={};_0x5ed277[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1c5),_0x5ed277[_0x59b5fa(0x1c7)]=_0x59b5fa(0x1d4);var _0x54514e={};_0x54514e[_0x59b5fa(0x1f3)]='Direction',_0x54514e[_0x59b5fa(0x1f9)]=_0x59b5fa(0x200),_0x54514e[_0x59b5fa(0x1e3)]=_0x59b5fa(0x1f4),_0x54514e[_0x59b5fa(0x1f4)]=[_0x4059bb,_0x5ed277],_0x54514e[_0x59b5fa(0x1cd)]=_0x59b5fa(0x204);var _0x1c978b={};_0x1c978b[_0x59b5fa(0x1f3)]=_0x59b5fa(0x1dc),_0x1c978b[_0x59b5fa(0x1f9)]='sortValues',_0x1c978b[_0x59b5fa(0x1b8)]=[_0x430e8f,_0x54514e];var _0x52bf33={};_0x52bf33[_0x59b5fa(0x1f3)]=_0x59b5fa(0x213),_0x52bf33[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1e6),_0x52bf33[_0x59b5fa(0x1e3)]=_0x59b5fa(0x219),_0x52bf33[_0x59b5fa(0x212)]=_0x405cda,_0x52bf33[_0x59b5fa(0x1cd)]={},_0x52bf33[_0x59b5fa(0x1f4)]=[_0x1c978b];var _0x191133={};_0x191133['loadOptionsMethod']=_0x59b5fa(0x1fb);var _0x2d6c88={};_0x2d6c88[_0x59b5fa(0x1f3)]=_0x59b5fa(0x1f2),_0x2d6c88['name']=_0x59b5fa(0x1eb),_0x2d6c88['type']=_0x59b5fa(0x1d0),_0x2d6c88[_0x59b5fa(0x212)]=_0x191133,_0x2d6c88[_0x59b5fa(0x1cd)]=[],_0x2d6c88[_0x59b5fa(0x20c)]=_0x59b5fa(0x1ff);var _0x291bb1={};_0x291bb1[_0x59b5fa(0x1f3)]='Since\x20(Change\x20Tracking)',_0x291bb1['name']=_0x59b5fa(0x1fe),_0x291bb1[_0x59b5fa(0x1e3)]=_0x59b5fa(0x1d2),_0x291bb1[_0x59b5fa(0x1cd)]='',_0x291bb1[_0x59b5fa(0x20c)]=_0x59b5fa(0x1fc);var _0x453e06={};_0x453e06[_0x59b5fa(0x1f3)]=_0x59b5fa(0x1cc),_0x453e06[_0x59b5fa(0x1f9)]=_0x59b5fa(0x1d3),_0x453e06[_0x59b5fa(0x1e3)]=_0x59b5fa(0x210),_0x453e06[_0x59b5fa(0x1b4)]='Add\x20Option',_0x453e06[_0x59b5fa(0x1cd)]={},_0x453e06[_0x59b5fa(0x1af)]=_0x6b66f2,_0x453e06[_0x59b5fa(0x1f4)]=[_0x1bd75f,_0x5de580,_0x52bf33,_0x2d6c88,_0x291bb1];var _0x34cfe5={};_0x34cfe5[_0x59b5fa(0x1b6)]=[_0x59b5fa(0x1f1)],_0x34cfe5[_0x59b5fa(0x1bb)]=['getAll'];var _0x595867={};_0x595867[_0x59b5fa(0x1b3)]=_0x34cfe5;var _0x5040e5={};_0x5040e5['minValue']=0x1,_0x5040e5[_0x59b5fa(0x207)]=0x3e8;var _0x1faaba={};_0x1faaba['displayName']='Limit',_0x1faaba['name']='limit',_0x1faaba['type']='number',_0x1faaba['displayOptions']=_0x595867,_0x1faaba[_0x59b5fa(0x212)]=_0x5040e5,_0x1faaba[_0x59b5fa(0x1cd)]=0x32,_0x1faaba[_0x59b5fa(0x20c)]=_0x59b5fa(0x20b);var _0x4ddab3={};_0x4ddab3['resource']=[_0x59b5fa(0x1f1)],_0x4ddab3[_0x59b5fa(0x1bb)]=[_0x59b5fa(0x1ca)];var _0x4f4d48={};_0x4f4d48[_0x59b5fa(0x1b3)]=_0x4ddab3;var _0x563fcb={};_0x563fcb[_0x59b5fa(0x1b5)]=0x0;var _0x51971b={};_0x51971b[_0x59b5fa(0x1f3)]='Skip',_0x51971b['name']=_0x59b5fa(0x20e),_0x51971b[_0x59b5fa(0x1e3)]=_0x59b5fa(0x20d),_0x51971b[_0x59b5fa(0x1af)]=_0x4f4d48,_0x51971b[_0x59b5fa(0x212)]=_0x563fcb,_0x51971b[_0x59b5fa(0x1cd)]=0x0,_0x51971b['description']=_0x59b5fa(0x1a4),exports[_0x59b5fa(0x1c3)]=[_0x2a19cc,_0x5a86d1,_0x41de17,_0x15404c,_0x40c210,_0x453e06,_0x1faaba,_0x51971b];
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subFormFields = exports.subFormOperations = void 0;
|
|
4
|
+
exports.subFormOperations = {
|
|
5
|
+
displayName: 'Operation',
|
|
6
|
+
name: 'operation',
|
|
7
|
+
type: 'options',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['subForm'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Create',
|
|
17
|
+
value: 'create',
|
|
18
|
+
description: 'Create a sub-form record',
|
|
19
|
+
action: 'Create a sub form record',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Delete',
|
|
23
|
+
value: 'delete',
|
|
24
|
+
description: 'Delete a sub-form record',
|
|
25
|
+
action: 'Delete a sub form record',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'Get',
|
|
29
|
+
value: 'get',
|
|
30
|
+
description: 'Get a sub-form record',
|
|
31
|
+
action: 'Get a sub form record',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Get Many',
|
|
35
|
+
value: 'getAll',
|
|
36
|
+
description: 'Get many sub-form records',
|
|
37
|
+
action: 'Get many sub form records',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Update',
|
|
41
|
+
value: 'update',
|
|
42
|
+
description: 'Update a sub-form record',
|
|
43
|
+
action: 'Update a sub form record',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
default: 'get',
|
|
47
|
+
};
|
|
48
|
+
exports.subFormFields = [
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Parent Form',
|
|
51
|
+
name: 'parentForm',
|
|
52
|
+
type: 'options',
|
|
53
|
+
typeOptions: {
|
|
54
|
+
loadOptionsMethod: 'getForms',
|
|
55
|
+
},
|
|
56
|
+
required: true,
|
|
57
|
+
displayOptions: {
|
|
58
|
+
show: {
|
|
59
|
+
resource: ['subForm'],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
default: '',
|
|
63
|
+
description: 'The parent form name in Priority. Switch to expression mode to type manually.',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Parent ID',
|
|
67
|
+
name: 'parentId',
|
|
68
|
+
type: 'string',
|
|
69
|
+
required: true,
|
|
70
|
+
displayOptions: {
|
|
71
|
+
show: {
|
|
72
|
+
resource: ['subForm'],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
default: '',
|
|
76
|
+
placeholder: "e.g., SO2300001",
|
|
77
|
+
description: 'The ID of the parent record',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Sub-Form Name',
|
|
81
|
+
name: 'subFormName',
|
|
82
|
+
type: 'options',
|
|
83
|
+
typeOptions: {
|
|
84
|
+
loadOptionsMethod: 'getSubForms',
|
|
85
|
+
},
|
|
86
|
+
required: true,
|
|
87
|
+
displayOptions: {
|
|
88
|
+
show: {
|
|
89
|
+
resource: ['subForm'],
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
default: '',
|
|
93
|
+
description: 'The sub-form name (navigation property) in Priority. Switch to expression mode to type manually.',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Sub-Form Record ID',
|
|
97
|
+
name: 'subFormId',
|
|
98
|
+
type: 'string',
|
|
99
|
+
required: true,
|
|
100
|
+
displayOptions: {
|
|
101
|
+
show: {
|
|
102
|
+
resource: ['subForm'],
|
|
103
|
+
operation: ['get', 'update', 'delete'],
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
default: '',
|
|
107
|
+
description: 'The ID of the sub-form record',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Fields',
|
|
111
|
+
name: 'fieldsUi',
|
|
112
|
+
placeholder: 'Add Field',
|
|
113
|
+
type: 'fixedCollection',
|
|
114
|
+
typeOptions: {
|
|
115
|
+
multipleValues: true,
|
|
116
|
+
},
|
|
117
|
+
displayOptions: {
|
|
118
|
+
show: {
|
|
119
|
+
resource: ['subForm'],
|
|
120
|
+
operation: ['create', 'update'],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
default: {},
|
|
124
|
+
options: [
|
|
125
|
+
{
|
|
126
|
+
name: 'fieldValues',
|
|
127
|
+
displayName: 'Field',
|
|
128
|
+
values: [
|
|
129
|
+
{
|
|
130
|
+
displayName: 'Field Name',
|
|
131
|
+
name: 'fieldName',
|
|
132
|
+
type: 'options',
|
|
133
|
+
typeOptions: {
|
|
134
|
+
loadOptionsMethod: 'getSubFormColumns',
|
|
135
|
+
},
|
|
136
|
+
default: '',
|
|
137
|
+
description: 'The name of the field in Priority. Switch to expression mode to type manually.',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
displayName: 'Field Value',
|
|
141
|
+
name: 'fieldValue',
|
|
142
|
+
type: 'string',
|
|
143
|
+
default: '',
|
|
144
|
+
description: 'The value to set for the field',
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
displayName: 'Additional Options',
|
|
152
|
+
name: 'additionalOptions',
|
|
153
|
+
type: 'collection',
|
|
154
|
+
placeholder: 'Add Option',
|
|
155
|
+
default: {},
|
|
156
|
+
displayOptions: {
|
|
157
|
+
show: {
|
|
158
|
+
resource: ['subForm'],
|
|
159
|
+
operation: ['get', 'getAll'],
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
options: [
|
|
163
|
+
{
|
|
164
|
+
displayName: 'Select Fields',
|
|
165
|
+
name: 'select',
|
|
166
|
+
type: 'multiOptions',
|
|
167
|
+
typeOptions: {
|
|
168
|
+
loadOptionsMethod: 'getSubFormColumns',
|
|
169
|
+
},
|
|
170
|
+
default: [],
|
|
171
|
+
description: 'Fields to return. Switch to expression mode to type manually.',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
displayName: 'Filters',
|
|
175
|
+
name: 'filters',
|
|
176
|
+
type: 'fixedCollection',
|
|
177
|
+
typeOptions: { multipleValues: true },
|
|
178
|
+
default: {},
|
|
179
|
+
options: [
|
|
180
|
+
{
|
|
181
|
+
displayName: 'Filter',
|
|
182
|
+
name: 'filterValues',
|
|
183
|
+
values: [
|
|
184
|
+
{
|
|
185
|
+
displayName: 'Column',
|
|
186
|
+
name: 'column',
|
|
187
|
+
type: 'options',
|
|
188
|
+
typeOptions: { loadOptionsMethod: 'getSubFormColumns' },
|
|
189
|
+
default: '',
|
|
190
|
+
description: 'The column to filter on. Switch to expression mode to type manually.',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Operator',
|
|
194
|
+
name: 'operator',
|
|
195
|
+
type: 'options',
|
|
196
|
+
options: [
|
|
197
|
+
{ name: 'Equals', value: 'eq' },
|
|
198
|
+
{ name: 'Not Equals', value: 'ne' },
|
|
199
|
+
{ name: 'Greater Than', value: 'gt' },
|
|
200
|
+
{ name: 'Greater or Equal', value: 'ge' },
|
|
201
|
+
{ name: 'Less Than', value: 'lt' },
|
|
202
|
+
{ name: 'Less or Equal', value: 'le' },
|
|
203
|
+
{ name: 'Contains', value: 'contains' },
|
|
204
|
+
{ name: 'Starts With', value: 'startswith' },
|
|
205
|
+
{ name: 'Ends With', value: 'endswith' },
|
|
206
|
+
],
|
|
207
|
+
default: 'eq',
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
displayName: 'Value',
|
|
211
|
+
name: 'value',
|
|
212
|
+
type: 'string',
|
|
213
|
+
default: '',
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
displayName: 'Order By',
|
|
221
|
+
name: 'orderBy',
|
|
222
|
+
type: 'fixedCollection',
|
|
223
|
+
typeOptions: { multipleValues: true },
|
|
224
|
+
default: {},
|
|
225
|
+
options: [
|
|
226
|
+
{
|
|
227
|
+
displayName: 'Sort',
|
|
228
|
+
name: 'sortValues',
|
|
229
|
+
values: [
|
|
230
|
+
{
|
|
231
|
+
displayName: 'Column',
|
|
232
|
+
name: 'column',
|
|
233
|
+
type: 'options',
|
|
234
|
+
typeOptions: { loadOptionsMethod: 'getSubFormColumns' },
|
|
235
|
+
default: '',
|
|
236
|
+
description: 'The column to sort by. Switch to expression mode to type manually.',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
displayName: 'Direction',
|
|
240
|
+
name: 'direction',
|
|
241
|
+
type: 'options',
|
|
242
|
+
options: [
|
|
243
|
+
{ name: 'Ascending', value: 'asc' },
|
|
244
|
+
{ name: 'Descending', value: 'desc' },
|
|
245
|
+
],
|
|
246
|
+
default: 'asc',
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
displayName: 'Expand',
|
|
254
|
+
name: 'expand',
|
|
255
|
+
type: 'multiOptions',
|
|
256
|
+
typeOptions: {
|
|
257
|
+
loadOptionsMethod: 'getMiniSubForms',
|
|
258
|
+
},
|
|
259
|
+
default: [],
|
|
260
|
+
description: 'Related sub-sub-forms to include. Switch to expression mode to type manually.',
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
displayName: 'Since (Change Tracking)',
|
|
264
|
+
name: 'since',
|
|
265
|
+
type: 'dateTime',
|
|
266
|
+
default: '',
|
|
267
|
+
description: 'Only return records modified since this date/time (for incremental sync)',
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
displayName: 'Limit',
|
|
273
|
+
name: 'limit',
|
|
274
|
+
type: 'number',
|
|
275
|
+
displayOptions: {
|
|
276
|
+
show: {
|
|
277
|
+
resource: ['subForm'],
|
|
278
|
+
operation: ['getAll'],
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
typeOptions: {
|
|
282
|
+
minValue: 1,
|
|
283
|
+
maxValue: 1000,
|
|
284
|
+
},
|
|
285
|
+
default: 50,
|
|
286
|
+
description: 'How many results to return',
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
displayName: 'Skip',
|
|
290
|
+
name: 'skip',
|
|
291
|
+
type: 'number',
|
|
292
|
+
displayOptions: {
|
|
293
|
+
show: {
|
|
294
|
+
resource: ['subForm'],
|
|
295
|
+
operation: ['getAll'],
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
typeOptions: {
|
|
299
|
+
minValue: 0,
|
|
300
|
+
},
|
|
301
|
+
default: 0,
|
|
302
|
+
description: 'Number of results to skip (for pagination)',
|
|
303
|
+
},
|
|
304
|
+
];
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update = update;
|
|
4
|
+
const utils_1 = require("../../helpers/utils");
|
|
5
|
+
const priorityApi_1 = require("../../transport/priorityApi");
|
|
6
|
+
async function update(execFns, index, context) {
|
|
7
|
+
const parentForm = execFns.getNodeParameter('parentForm', index);
|
|
8
|
+
const parentId = execFns.getNodeParameter('parentId', index);
|
|
9
|
+
const subFormName = execFns.getNodeParameter('subFormName', index);
|
|
10
|
+
const subFormId = execFns.getNodeParameter('subFormId', index);
|
|
11
|
+
const fieldsUi = execFns.getNodeParameter('fieldsUi', index);
|
|
12
|
+
const body = (0, utils_1.extractFieldValues)(fieldsUi);
|
|
13
|
+
const prefix = context.connectionType === 'router' ? '' : '/api';
|
|
14
|
+
const urlPath = `${prefix}/${parentForm}('${parentId}')/${subFormName}('${subFormId}')`;
|
|
15
|
+
return (0, priorityApi_1.priorityApiRequest)(execFns, 'PATCH', urlPath, context, body);
|
|
16
|
+
}
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = create;
|
|
4
|
+
const utils_1 = require("../../helpers/utils");
|
|
5
|
+
const priorityApi_1 = require("../../transport/priorityApi");
|
|
6
|
+
async function create(execFns, index, context) {
|
|
7
|
+
const parentForm = execFns.getNodeParameter('parentForm', index);
|
|
8
|
+
const parentId = execFns.getNodeParameter('parentId', index);
|
|
9
|
+
const subFormName = execFns.getNodeParameter('subFormName', index);
|
|
10
|
+
const subFormId = execFns.getNodeParameter('subFormId', index);
|
|
11
|
+
const subSubFormName = execFns.getNodeParameter('subSubFormName', index);
|
|
12
|
+
const fieldsUi = execFns.getNodeParameter('fieldsUi', index);
|
|
13
|
+
const body = (0, utils_1.extractFieldValues)(fieldsUi);
|
|
14
|
+
const prefix = context.connectionType === 'router' ? '' : '/api';
|
|
15
|
+
const urlPath = `${prefix}/${parentForm}('${parentId}')/${subFormName}('${subFormId}')/${subSubFormName}`;
|
|
16
|
+
return (0, priorityApi_1.priorityApiRequest)(execFns, 'POST', urlPath, context, body);
|
|
17
|
+
}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteSubSubForm = deleteSubSubForm;
|
|
4
|
+
const priorityApi_1 = require("../../transport/priorityApi");
|
|
5
|
+
async function deleteSubSubForm(execFns, index, context) {
|
|
6
|
+
const parentForm = execFns.getNodeParameter('parentForm', index);
|
|
7
|
+
const parentId = execFns.getNodeParameter('parentId', index);
|
|
8
|
+
const subFormName = execFns.getNodeParameter('subFormName', index);
|
|
9
|
+
const subFormId = execFns.getNodeParameter('subFormId', index);
|
|
10
|
+
const subSubFormName = execFns.getNodeParameter('subSubFormName', index);
|
|
11
|
+
const subSubFormId = execFns.getNodeParameter('subSubFormId', index);
|
|
12
|
+
const prefix = context.connectionType === 'router' ? '' : '/api';
|
|
13
|
+
const urlPath = `${prefix}/${parentForm}('${parentId}')/${subFormName}('${subFormId}')/${subSubFormName}('${subSubFormId}')`;
|
|
14
|
+
await (0, priorityApi_1.priorityApiRequest)(execFns, 'DELETE', urlPath, context);
|
|
15
|
+
return { success: true, subSubFormId };
|
|
16
|
+
}
|
|
@@ -1 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.get = get;
|
|
4
|
+
const odata_1 = require("../../helpers/odata");
|
|
5
|
+
const priorityApi_1 = require("../../transport/priorityApi");
|
|
6
|
+
async function get(execFns, index, context) {
|
|
7
|
+
const parentForm = execFns.getNodeParameter('parentForm', index);
|
|
8
|
+
const parentId = execFns.getNodeParameter('parentId', index);
|
|
9
|
+
const subFormName = execFns.getNodeParameter('subFormName', index);
|
|
10
|
+
const subFormId = execFns.getNodeParameter('subFormId', index);
|
|
11
|
+
const subSubFormName = execFns.getNodeParameter('subSubFormName', index);
|
|
12
|
+
const subSubFormId = execFns.getNodeParameter('subSubFormId', index);
|
|
13
|
+
const additionalOptions = execFns.getNodeParameter('additionalOptions', index);
|
|
14
|
+
let filterString = '';
|
|
15
|
+
if (additionalOptions.filters) {
|
|
16
|
+
const filtersObj = additionalOptions.filters;
|
|
17
|
+
const filterValues = filtersObj.filterValues;
|
|
18
|
+
if (filterValues?.length) {
|
|
19
|
+
filterString = (0, odata_1.buildFilterString)(filterValues);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
let orderbyString = '';
|
|
23
|
+
if (additionalOptions.orderBy) {
|
|
24
|
+
const orderByObj = additionalOptions.orderBy;
|
|
25
|
+
const sortValues = orderByObj.sortValues;
|
|
26
|
+
if (sortValues?.length) {
|
|
27
|
+
orderbyString = (0, odata_1.buildOrderByString)(sortValues);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const qs = (0, odata_1.buildODataQuery)({
|
|
31
|
+
select: additionalOptions.select,
|
|
32
|
+
filter: filterString || undefined,
|
|
33
|
+
orderby: orderbyString || undefined,
|
|
34
|
+
expand: additionalOptions.expand,
|
|
35
|
+
});
|
|
36
|
+
const prefix = context.connectionType === 'router' ? '' : '/api';
|
|
37
|
+
const urlPath = `${prefix}/${parentForm}('${parentId}')/${subFormName}('${subFormId}')/${subSubFormName}('${subSubFormId}')`;
|
|
38
|
+
return (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context, undefined, qs);
|
|
39
|
+
}
|