@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,47 @@
|
|
|
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 subFormId = execFns.getNodeParameter('subFormId', index);
|
|
11
|
+
const subSubFormName = execFns.getNodeParameter('subSubFormName', index);
|
|
12
|
+
const limit = execFns.getNodeParameter('limit', index);
|
|
13
|
+
const skip = execFns.getNodeParameter('skip', index, 0);
|
|
14
|
+
const additionalOptions = execFns.getNodeParameter('additionalOptions', index);
|
|
15
|
+
let filterString = '';
|
|
16
|
+
if (additionalOptions.filters) {
|
|
17
|
+
const filtersObj = additionalOptions.filters;
|
|
18
|
+
const filterValues = filtersObj.filterValues;
|
|
19
|
+
if (filterValues?.length) {
|
|
20
|
+
filterString = (0, odata_1.buildFilterString)(filterValues);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
let orderbyString = '';
|
|
24
|
+
if (additionalOptions.orderBy) {
|
|
25
|
+
const orderByObj = additionalOptions.orderBy;
|
|
26
|
+
const sortValues = orderByObj.sortValues;
|
|
27
|
+
if (sortValues?.length) {
|
|
28
|
+
orderbyString = (0, odata_1.buildOrderByString)(sortValues);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const qs = (0, odata_1.buildODataQuery)({
|
|
32
|
+
top: limit,
|
|
33
|
+
skip: skip || undefined,
|
|
34
|
+
select: additionalOptions.select,
|
|
35
|
+
filter: filterString || undefined,
|
|
36
|
+
orderby: orderbyString || undefined,
|
|
37
|
+
expand: additionalOptions.expand,
|
|
38
|
+
since: additionalOptions.since,
|
|
39
|
+
});
|
|
40
|
+
const prefix = context.connectionType === 'router' ? '' : '/api';
|
|
41
|
+
const urlPath = `${prefix}/${parentForm}('${parentId}')/${subFormName}('${subFormId}')/${subSubFormName}`;
|
|
42
|
+
const response = await (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context, undefined, qs);
|
|
43
|
+
if (response.value && Array.isArray(response.value)) {
|
|
44
|
+
return response.value;
|
|
45
|
+
}
|
|
46
|
+
return [response];
|
|
47
|
+
}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteSubSubForm = exports.update = exports.getMany = exports.get = exports.create = exports.subSubFormFields = exports.subSubFormOperations = void 0;
|
|
4
|
+
var subSubForm_properties_1 = require("./subSubForm.properties");
|
|
5
|
+
Object.defineProperty(exports, "subSubFormOperations", { enumerable: true, get: function () { return subSubForm_properties_1.subSubFormOperations; } });
|
|
6
|
+
Object.defineProperty(exports, "subSubFormFields", { enumerable: true, get: function () { return subSubForm_properties_1.subSubFormFields; } });
|
|
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, "deleteSubSubForm", { enumerable: true, get: function () { return delete_operation_1.deleteSubSubForm; } });
|
|
@@ -1 +1,296 @@
|
|
|
1
|
-
'use strict';var _0x8a00a5=_0x54bf;(function(_0x14c6e1,_0x48a4c0){var _0xb4b7e8={_0x4004ef:0x171,_0x14d0e5:0x173,_0xdba011:0x19d,_0x293660:0x162,_0x4b1cf8:0x151,_0x4c9e58:0x164,_0x40fa4f:0x150,_0x3d050f:0x1a5},_0x406ebf=_0x54bf,_0x326aff=_0x14c6e1();while(!![]){try{var _0x61afa6=parseInt(_0x406ebf(0x189))/0x1*(parseInt(_0x406ebf(_0xb4b7e8._0x4004ef))/0x2)+parseInt(_0x406ebf(_0xb4b7e8._0x14d0e5))/0x3+parseInt(_0x406ebf(0x1c1))/0x4*(-parseInt(_0x406ebf(_0xb4b7e8._0xdba011))/0x5)+parseInt(_0x406ebf(_0xb4b7e8._0x293660))/0x6*(-parseInt(_0x406ebf(_0xb4b7e8._0x4b1cf8))/0x7)+-parseInt(_0x406ebf(_0xb4b7e8._0x4c9e58))/0x8+-parseInt(_0x406ebf(0x1ac))/0x9*(parseInt(_0x406ebf(_0xb4b7e8._0x40fa4f))/0xa)+-parseInt(_0x406ebf(_0xb4b7e8._0x3d050f))/0xb*(-parseInt(_0x406ebf(0x186))/0xc);if(_0x61afa6===_0x48a4c0)break;else _0x326aff['push'](_0x326aff['shift']());}catch(_0x5cdf26){_0x326aff['push'](_0x326aff['shift']());}}}(_0x108f,0x81090));var _0x59bf84={};_0x59bf84[_0x8a00a5(0x1ba)]=!![],Object[_0x8a00a5(0x18c)](exports,'__esModule',_0x59bf84),exports['subSubFormFields']=exports[_0x8a00a5(0x15a)]=void 0x0;var _0xeb5516={};_0xeb5516[_0x8a00a5(0x1a2)]=[_0x8a00a5(0x19a)];var _0x14e6a4={};_0x14e6a4[_0x8a00a5(0x17c)]=_0xeb5516;var _0x54aa1b={};_0x54aa1b[_0x8a00a5(0x183)]='Create',_0x54aa1b['value']=_0x8a00a5(0x1c3),_0x54aa1b['description']=_0x8a00a5(0x156),_0x54aa1b[_0x8a00a5(0x154)]=_0x8a00a5(0x15d);var _0x1d2802={};_0x1d2802[_0x8a00a5(0x183)]=_0x8a00a5(0x16f),_0x1d2802[_0x8a00a5(0x1ba)]=_0x8a00a5(0x196),_0x1d2802['description']=_0x8a00a5(0x1ad),_0x1d2802[_0x8a00a5(0x154)]=_0x8a00a5(0x17a);var _0xe25dce={};_0xe25dce[_0x8a00a5(0x183)]=_0x8a00a5(0x1a3),_0xe25dce[_0x8a00a5(0x1ba)]=_0x8a00a5(0x1a1),_0xe25dce['description']=_0x8a00a5(0x168),_0xe25dce[_0x8a00a5(0x154)]='Get\x20a\x20sub\x20sub\x20form\x20record';var _0x529abc={};_0x529abc[_0x8a00a5(0x183)]=_0x8a00a5(0x166),_0x529abc[_0x8a00a5(0x1ba)]=_0x8a00a5(0x1c2),_0x529abc['description']='Get\x20many\x20sub-sub-form\x20records',_0x529abc[_0x8a00a5(0x154)]='Get\x20many\x20sub\x20sub\x20form\x20records';var _0x590bae={};_0x590bae[_0x8a00a5(0x183)]=_0x8a00a5(0x1b3),_0x590bae[_0x8a00a5(0x1ba)]=_0x8a00a5(0x18b),_0x590bae['description']='Update\x20a\x20sub-sub-form\x20record',_0x590bae[_0x8a00a5(0x154)]='Update\x20a\x20sub\x20sub\x20form\x20record';function _0x54bf(_0x149522,_0x1974b9){_0x149522=_0x149522-0x14e;var _0x108f03=_0x108f();var _0x54bfac=_0x108f03[_0x149522];if(_0x54bf['BKhtJf']===undefined){var _0x116aa0=function(_0xec69f9){var _0x4c40e9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x59bf84='',_0xeb5516='';for(var _0x14e6a4=0x0,_0x54aa1b,_0x1d2802,_0xe25dce=0x0;_0x1d2802=_0xec69f9['charAt'](_0xe25dce++);~_0x1d2802&&(_0x54aa1b=_0x14e6a4%0x4?_0x54aa1b*0x40+_0x1d2802:_0x1d2802,_0x14e6a4++%0x4)?_0x59bf84+=String['fromCharCode'](0xff&_0x54aa1b>>(-0x2*_0x14e6a4&0x6)):0x0){_0x1d2802=_0x4c40e9['indexOf'](_0x1d2802);}for(var _0x529abc=0x0,_0x590bae=_0x59bf84['length'];_0x529abc<_0x590bae;_0x529abc++){_0xeb5516+='%'+('00'+_0x59bf84['charCodeAt'](_0x529abc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xeb5516);};_0x54bf['ozfUnd']=_0x116aa0,_0x54bf['syyBSN']={},_0x54bf['BKhtJf']=!![];}var _0x5a96fc=_0x108f03[0x0],_0x532efc=_0x149522+_0x5a96fc,_0x642071=_0x54bf['syyBSN'][_0x532efc];return!_0x642071?(_0x54bfac=_0x54bf['ozfUnd'](_0x54bfac),_0x54bf['syyBSN'][_0x532efc]=_0x54bfac):_0x54bfac=_0x642071,_0x54bfac;}var _0x558625={};_0x558625[_0x8a00a5(0x1a4)]=_0x8a00a5(0x184),_0x558625['name']=_0x8a00a5(0x18f),_0x558625[_0x8a00a5(0x17f)]=_0x8a00a5(0x1a9),_0x558625[_0x8a00a5(0x1b8)]=!![],_0x558625[_0x8a00a5(0x155)]=_0x14e6a4,_0x558625[_0x8a00a5(0x1a9)]=[_0x54aa1b,_0x1d2802,_0xe25dce,_0x529abc,_0x590bae],_0x558625[_0x8a00a5(0x153)]=_0x8a00a5(0x1a1),exports[_0x8a00a5(0x15a)]=_0x558625;var _0x3e5b47={};_0x3e5b47[_0x8a00a5(0x178)]='getForms';var _0x505c04={};_0x505c04['resource']=[_0x8a00a5(0x19a)];var _0x407e03={};_0x407e03[_0x8a00a5(0x17c)]=_0x505c04;var _0xa0e0d8={};_0xa0e0d8['displayName']=_0x8a00a5(0x1aa),_0xa0e0d8[_0x8a00a5(0x183)]=_0x8a00a5(0x163),_0xa0e0d8['type']=_0x8a00a5(0x1a9),_0xa0e0d8[_0x8a00a5(0x18e)]=_0x3e5b47,_0xa0e0d8[_0x8a00a5(0x16b)]=!![],_0xa0e0d8['displayOptions']=_0x407e03,_0xa0e0d8[_0x8a00a5(0x153)]='',_0xa0e0d8['description']='The\x20top-level\x20parent\x20form\x20name.\x20Switch\x20to\x20expression\x20mode\x20to\x20type\x20manually.';var _0x51c13f={};_0x51c13f[_0x8a00a5(0x1a2)]=[_0x8a00a5(0x19a)];var _0x3fbda6={};_0x3fbda6[_0x8a00a5(0x17c)]=_0x51c13f;var _0xfdb7e8={};_0xfdb7e8[_0x8a00a5(0x1a4)]=_0x8a00a5(0x15b),_0xfdb7e8[_0x8a00a5(0x183)]=_0x8a00a5(0x177),_0xfdb7e8[_0x8a00a5(0x17f)]=_0x8a00a5(0x18d),_0xfdb7e8['required']=!![],_0xfdb7e8['displayOptions']=_0x3fbda6,_0xfdb7e8[_0x8a00a5(0x153)]='',_0xfdb7e8[_0x8a00a5(0x158)]='e.g.,\x20SO2300001',_0xfdb7e8['description']=_0x8a00a5(0x15f);var _0x3d9526={};_0x3d9526[_0x8a00a5(0x178)]=_0x8a00a5(0x174);var _0x4f3493={};_0x4f3493['resource']=[_0x8a00a5(0x19a)];var _0x13a947={};_0x13a947['show']=_0x4f3493;var _0x177b2e={};_0x177b2e['displayName']='Sub-Form\x20Name',_0x177b2e[_0x8a00a5(0x183)]='subFormName',_0x177b2e[_0x8a00a5(0x17f)]=_0x8a00a5(0x1a9),_0x177b2e[_0x8a00a5(0x18e)]=_0x3d9526,_0x177b2e['required']=!![],_0x177b2e[_0x8a00a5(0x155)]=_0x13a947,_0x177b2e[_0x8a00a5(0x153)]='',_0x177b2e[_0x8a00a5(0x17e)]=_0x8a00a5(0x19c);var _0x1c46c0={};_0x1c46c0[_0x8a00a5(0x1a2)]=['subSubForm'];var _0x524afc={};_0x524afc[_0x8a00a5(0x17c)]=_0x1c46c0;var _0x2685ff={};_0x2685ff['displayName']=_0x8a00a5(0x191),_0x2685ff[_0x8a00a5(0x183)]=_0x8a00a5(0x197),_0x2685ff[_0x8a00a5(0x17f)]=_0x8a00a5(0x18d),_0x2685ff['required']=!![],_0x2685ff[_0x8a00a5(0x155)]=_0x524afc,_0x2685ff[_0x8a00a5(0x153)]='',_0x2685ff[_0x8a00a5(0x17e)]='The\x20ID\x20of\x20the\x20sub-form\x20record';var _0x461453={};_0x461453[_0x8a00a5(0x178)]=_0x8a00a5(0x17d);var _0x289748={};_0x289748[_0x8a00a5(0x1a2)]=[_0x8a00a5(0x19a)];var _0x41c2a1={};_0x41c2a1[_0x8a00a5(0x17c)]=_0x289748;var _0x1748b4={};_0x1748b4[_0x8a00a5(0x1a4)]=_0x8a00a5(0x19b),_0x1748b4['name']='subSubFormName',_0x1748b4['type']=_0x8a00a5(0x1a9),_0x1748b4['typeOptions']=_0x461453,_0x1748b4[_0x8a00a5(0x16b)]=!![],_0x1748b4['displayOptions']=_0x41c2a1,_0x1748b4[_0x8a00a5(0x153)]='',_0x1748b4[_0x8a00a5(0x17e)]='The\x20sub-sub-form\x20name\x20(second\x20level).\x20Switch\x20to\x20expression\x20mode\x20to\x20type\x20manually.';var _0x5b49aa={};_0x5b49aa['resource']=[_0x8a00a5(0x19a)],_0x5b49aa[_0x8a00a5(0x18f)]=['get',_0x8a00a5(0x18b),'delete'];var _0x420a97={};_0x420a97[_0x8a00a5(0x17c)]=_0x5b49aa;var _0x2c5274={};_0x2c5274[_0x8a00a5(0x1a4)]=_0x8a00a5(0x1be),_0x2c5274[_0x8a00a5(0x183)]=_0x8a00a5(0x19f),_0x2c5274[_0x8a00a5(0x17f)]='string',_0x2c5274[_0x8a00a5(0x16b)]=!![],_0x2c5274[_0x8a00a5(0x155)]=_0x420a97,_0x2c5274['default']='',_0x2c5274['description']=_0x8a00a5(0x16e);var _0x5578dc={};_0x5578dc[_0x8a00a5(0x16c)]=!![];var _0x343658={};_0x343658[_0x8a00a5(0x1a2)]=['subSubForm'],_0x343658[_0x8a00a5(0x18f)]=[_0x8a00a5(0x1c3),_0x8a00a5(0x18b)];var _0xa26934={};_0xa26934[_0x8a00a5(0x17c)]=_0x343658;var _0x2d5369={};_0x2d5369[_0x8a00a5(0x178)]='getSubSubFormColumns';var _0x1a5e63={};_0x1a5e63['displayName']=_0x8a00a5(0x14e),_0x1a5e63[_0x8a00a5(0x183)]=_0x8a00a5(0x1a6),_0x1a5e63[_0x8a00a5(0x17f)]=_0x8a00a5(0x1a9),_0x1a5e63[_0x8a00a5(0x18e)]=_0x2d5369,_0x1a5e63[_0x8a00a5(0x153)]='',_0x1a5e63[_0x8a00a5(0x17e)]=_0x8a00a5(0x1b4);var _0x21c172={};_0x21c172[_0x8a00a5(0x1a4)]=_0x8a00a5(0x1b5),_0x21c172[_0x8a00a5(0x183)]='fieldValue',_0x21c172['type']=_0x8a00a5(0x18d),_0x21c172['default']='';var _0x1c6472={};_0x1c6472[_0x8a00a5(0x183)]='fieldValues',_0x1c6472['displayName']=_0x8a00a5(0x195),_0x1c6472['values']=[_0x1a5e63,_0x21c172];var _0x505320={};_0x505320[_0x8a00a5(0x1a4)]=_0x8a00a5(0x15e),_0x505320['name']=_0x8a00a5(0x179),_0x505320['placeholder']=_0x8a00a5(0x1b1),_0x505320['type']=_0x8a00a5(0x187),_0x505320[_0x8a00a5(0x18e)]=_0x5578dc,_0x505320[_0x8a00a5(0x155)]=_0xa26934,_0x505320[_0x8a00a5(0x153)]={},_0x505320[_0x8a00a5(0x1a9)]=[_0x1c6472];var _0x4d9493={};_0x4d9493[_0x8a00a5(0x1a2)]=[_0x8a00a5(0x19a)],_0x4d9493['operation']=['get','getAll'];var _0x3c3f0d={};_0x3c3f0d[_0x8a00a5(0x17c)]=_0x4d9493;var _0x1dd212={};_0x1dd212['loadOptionsMethod']=_0x8a00a5(0x181);var _0x3905df={};_0x3905df[_0x8a00a5(0x1a4)]=_0x8a00a5(0x193),_0x3905df[_0x8a00a5(0x183)]=_0x8a00a5(0x1b9),_0x3905df[_0x8a00a5(0x17f)]=_0x8a00a5(0x152),_0x3905df[_0x8a00a5(0x18e)]=_0x1dd212,_0x3905df['default']=[],_0x3905df[_0x8a00a5(0x17e)]=_0x8a00a5(0x188);var _0x57cf24={};_0x57cf24['multipleValues']=!![];var _0x1e2533={};_0x1e2533[_0x8a00a5(0x178)]=_0x8a00a5(0x181);var _0x119c91={};_0x119c91[_0x8a00a5(0x1a4)]=_0x8a00a5(0x180),_0x119c91['name']=_0x8a00a5(0x1bf),_0x119c91['type']='options',_0x119c91[_0x8a00a5(0x18e)]=_0x1e2533,_0x119c91[_0x8a00a5(0x153)]='',_0x119c91[_0x8a00a5(0x17e)]=_0x8a00a5(0x1ab);var _0xcb7c7a={};_0xcb7c7a['name']=_0x8a00a5(0x1a0),_0xcb7c7a['value']='eq';var _0x142311={};_0x142311[_0x8a00a5(0x183)]=_0x8a00a5(0x17b),_0x142311[_0x8a00a5(0x1ba)]='ne';var _0x29d132={};_0x29d132[_0x8a00a5(0x183)]=_0x8a00a5(0x194),_0x29d132['value']='gt';var _0x2bb42c={};_0x2bb42c[_0x8a00a5(0x183)]=_0x8a00a5(0x1ae),_0x2bb42c[_0x8a00a5(0x1ba)]='ge';var _0xba9e19={};_0xba9e19['name']='Less\x20Than',_0xba9e19[_0x8a00a5(0x1ba)]='lt';var _0x173682={};_0x173682[_0x8a00a5(0x183)]=_0x8a00a5(0x1b2),_0x173682[_0x8a00a5(0x1ba)]='le';var _0x2536a4={};_0x2536a4[_0x8a00a5(0x183)]='Contains',_0x2536a4['value']=_0x8a00a5(0x182);var _0x1c0dbf={};_0x1c0dbf[_0x8a00a5(0x183)]=_0x8a00a5(0x1bb),_0x1c0dbf['value']='startswith';var _0x425ec5={};_0x425ec5[_0x8a00a5(0x183)]=_0x8a00a5(0x1a8),_0x425ec5[_0x8a00a5(0x1ba)]=_0x8a00a5(0x1b6);var _0x114221={};_0x114221[_0x8a00a5(0x1a4)]='Operator',_0x114221[_0x8a00a5(0x183)]=_0x8a00a5(0x192),_0x114221['type']=_0x8a00a5(0x1a9),_0x114221[_0x8a00a5(0x1a9)]=[_0xcb7c7a,_0x142311,_0x29d132,_0x2bb42c,_0xba9e19,_0x173682,_0x2536a4,_0x1c0dbf,_0x425ec5],_0x114221['default']='eq';var _0x3b46f8={};_0x3b46f8[_0x8a00a5(0x1a4)]=_0x8a00a5(0x1b0),_0x3b46f8[_0x8a00a5(0x183)]=_0x8a00a5(0x1ba),_0x3b46f8['type']=_0x8a00a5(0x18d),_0x3b46f8[_0x8a00a5(0x153)]='';var _0x1c09c7={};_0x1c09c7['displayName']=_0x8a00a5(0x159),_0x1c09c7[_0x8a00a5(0x183)]=_0x8a00a5(0x199),_0x1c09c7[_0x8a00a5(0x14f)]=[_0x119c91,_0x114221,_0x3b46f8];var _0x10dfbe={};_0x10dfbe['displayName']=_0x8a00a5(0x172),_0x10dfbe['name']=_0x8a00a5(0x19e),_0x10dfbe['type']=_0x8a00a5(0x187),_0x10dfbe[_0x8a00a5(0x18e)]=_0x57cf24,_0x10dfbe[_0x8a00a5(0x153)]={},_0x10dfbe[_0x8a00a5(0x1a9)]=[_0x1c09c7];var _0x18108a={};_0x18108a[_0x8a00a5(0x16c)]=!![];var _0xd287c2={};_0xd287c2[_0x8a00a5(0x178)]='getSubSubFormColumns';var _0x190782={};_0x190782[_0x8a00a5(0x1a4)]=_0x8a00a5(0x180),_0x190782[_0x8a00a5(0x183)]='column',_0x190782[_0x8a00a5(0x17f)]=_0x8a00a5(0x1a9),_0x190782['typeOptions']=_0xd287c2,_0x190782['default']='',_0x190782[_0x8a00a5(0x17e)]='The\x20column\x20to\x20sort\x20by.\x20Switch\x20to\x20expression\x20mode\x20to\x20type\x20manually.';var _0x36921f={};_0x36921f[_0x8a00a5(0x183)]=_0x8a00a5(0x175),_0x36921f['value']=_0x8a00a5(0x18a);var _0x17c269={};_0x17c269['name']=_0x8a00a5(0x16d),_0x17c269[_0x8a00a5(0x1ba)]='desc';var _0x7377cf={};function _0x108f(){var _0x343e5d=['C2HVDW','z2v0twLUAvn1yKzVCM1Z','zgvZy3jPChrPB24','DhLWzq','q29SDw1U','z2v0u3vIu3vIrM9YBunVBhvTBNm','y29UDgfPBNm','BMfTzq','t3bLCMf0Aw9U','BwLUvMfSDwu','mZq0ng9ht1zSuW','zML4zwrdB2XSzwn0Aw9U','rMLLBgrZihrVihjLDhvYBI4Gu3DPDgnOihrVigv4ChjLC3nPB24GBw9Kzsb0BYb0ExbLig1HBNvHBgX5lG','mtuXngPcvKjtrW','yxnJ','DxbKyxrL','zgvMAw5LuhjVCgvYDhK','C3rYAw5N','DhLWzu9WDgLVBNm','B3bLCMf0Aw9U','zgLYzwn0Aw9U','u3vIluzVCM0Gsuq','B3bLCMf0B3i','u2vSzwn0iezPzwXKCW','r3jLyxrLCIbuAgfU','rMLLBgq','zgvSzxrL','C3vIrM9YBuLK','C2LUy2u','zMLSDgvYvMfSDwvZ','C3vIu3vIrM9YBq','u3vIlvn1yI1gB3jTie5HBwu','vgHLihn1yI1MB3jTig5HBwuGkgzPCNn0igXLDMvSks4Gu3DPDgnOihrVigv4ChjLC3nPB24GBw9Kzsb0BYb0ExbLig1HBNvHBgX5lG','mJmWnxPgsKzPqG','zMLSDgvYCW','C3vIu3vIrM9YBuLK','rxf1ywXZ','z2v0','CMvZB3vYy2u','r2v0','zgLZCgXHEu5HBwu','nJa3odz6zxnJzgi','zMLLBgroyw1L','uMvSyxrLzcbLBNrPDgLLCYb0BYbPBMnSDwrL','rw5KCYbxAxrO','B3b0Aw9UCW','ugfYzw50iezVCM0','vgHLignVBhvTBIb0BYbMAwX0zxiGB24Uifn3AxrJAcb0BYbLEhbYzxnZAw9Uig1VzguGDg8GDhLWzsbTyw51ywXSEs4','mZzOBef5BMS','rgvSzxrLigeGC3vIlxn1yI1MB3jTihjLy29Yza','r3jLyxrLCIbVCIbfCxvHBa','qwrKie9WDgLVBG','vMfSDwu','qwrKiezPzwXK','tgvZCYbVCIbfCxvHBa','vxbKyxrL','vgHLig5HBwuGB2yGDgHLigzPzwXKigLUifbYAw9YAxr5lIbtD2L0y2GGDg8GzxHWCMvZC2LVBIbTB2rLihrVihr5CguGBwfUDwfSBhKU','rMLLBgqGvMfSDwu','zw5KC3DPDgG','B3jKzxjcEq','BM9eyxrHrxHWCMvZC2LVBG','C2vSzwn0','DMfSDwu','u3rHCNrZifDPDgG','qwrKAxrPB25HBcbpChrPB25Z','BgLTAxq','u3vIlvn1yI1gB3jTifjLy29Yzcbjra','y29SDw1U','tgLTAxq','nJyWnfLTAenIvG','z2v0qwXS','y3jLyxrL','u29YDa','rMLLBgqGtMfTzq','DMfSDwvZ','oda4nZyWvvLyDMzZ','nJm4oty3yKjczM56','BxvSDgLpChrPB25Z','zgvMyxvSDa','ywn0Aw9U','zgLZCgXHEu9WDgLVBNm','q3jLyxrLigeGC3vIlxn1yI1MB3jTihjLy29Yza','C2TPCa','CgXHy2vOB2XKzxi','rMLSDgvY','C3vIu3vIrM9YBu9WzxjHDgLVBNm','ugfYzw50ieLe','C29YDfzHBhvLCW','q3jLyxrLigeGC3vIihn1yIbMB3jTihjLy29Yza','rMLLBgrZ','vgHLieLeig9MihrOzsbWyxjLBNqGCMvJB3jK','y29SBgvJDgLVBG','u2TPCa','mZb4wNvtuKq','CgfYzw50rM9YBq','nJG5ode0neP3wLfrza','Bwf4vMfSDwu','r2v0ie1HBNK','rgLYzwn0Aw9U','r2v0igeGC3vIlxn1yI1MB3jTihjLy29Yza','t25SEsbYzxr1CM4GCMvJB3jKCYbTB2rPzMLLzcbZAw5Jzsb0AgLZigrHDguVDgLTzsaOzM9YigLUy3jLBwvUDgfSihn5BMmP','tNvTyMvYig9MihjLC3vSDhmGDg8GC2TPCcaOzM9YihbHz2LUyxrPB24P','CMvXDwLYzwq','BxvSDgLWBgvwywX1zxm','rgvZy2vUzgLUzW','vgHLieLeig9MihrOzsbZDwiTC3vIlwzVCM0GCMvJB3jK','rgvSzxrL','BNvTyMvY','nJu4qLPishfe','rMLSDgvYCW','mJu0mZi0nhzXCe1JwG','z2v0u3vIrM9YBxm','qxnJzw5KAw5N','sg93ig1HBNKGCMvZDwX0CYb0BYbYzxr1CM4','CgfYzw50swq','Bg9Hze9WDgLVBNnnzxrOB2q','zMLLBgrZvwK','rgvSzxrLigeGC3vIihn1yIbMB3jTihjLy29Yza','tM90ievXDwfSCW'];_0x108f=function(){return _0x343e5d;};return _0x108f();}_0x7377cf[_0x8a00a5(0x1a4)]=_0x8a00a5(0x167),_0x7377cf[_0x8a00a5(0x183)]=_0x8a00a5(0x190),_0x7377cf[_0x8a00a5(0x17f)]='options',_0x7377cf[_0x8a00a5(0x1a9)]=[_0x36921f,_0x17c269],_0x7377cf[_0x8a00a5(0x153)]='asc';var _0x2ae892={};_0x2ae892[_0x8a00a5(0x1a4)]=_0x8a00a5(0x1c4),_0x2ae892[_0x8a00a5(0x183)]=_0x8a00a5(0x15c),_0x2ae892[_0x8a00a5(0x14f)]=[_0x190782,_0x7377cf];var _0x377032={};_0x377032[_0x8a00a5(0x1a4)]='Order\x20By',_0x377032[_0x8a00a5(0x183)]=_0x8a00a5(0x1b7),_0x377032[_0x8a00a5(0x17f)]=_0x8a00a5(0x187),_0x377032[_0x8a00a5(0x18e)]=_0x18108a,_0x377032[_0x8a00a5(0x153)]={},_0x377032['options']=[_0x2ae892];var _0xf7a9cd={};_0xf7a9cd[_0x8a00a5(0x1a4)]='Expand',_0xf7a9cd[_0x8a00a5(0x183)]='expand',_0xf7a9cd[_0x8a00a5(0x17f)]='string',_0xf7a9cd['default']='',_0xf7a9cd[_0x8a00a5(0x17e)]=_0x8a00a5(0x1a7);var _0x78a7c5={};_0x78a7c5[_0x8a00a5(0x1a4)]='Since\x20(Change\x20Tracking)',_0x78a7c5[_0x8a00a5(0x183)]=_0x8a00a5(0x198),_0x78a7c5[_0x8a00a5(0x17f)]='dateTime',_0x78a7c5[_0x8a00a5(0x153)]='',_0x78a7c5[_0x8a00a5(0x17e)]=_0x8a00a5(0x169);var _0x51edc5={};_0x51edc5[_0x8a00a5(0x1a4)]=_0x8a00a5(0x1bc),_0x51edc5[_0x8a00a5(0x183)]='additionalOptions',_0x51edc5[_0x8a00a5(0x17f)]=_0x8a00a5(0x160),_0x51edc5['placeholder']=_0x8a00a5(0x1af),_0x51edc5[_0x8a00a5(0x153)]={},_0x51edc5[_0x8a00a5(0x155)]=_0x3c3f0d,_0x51edc5[_0x8a00a5(0x1a9)]=[_0x3905df,_0x10dfbe,_0x377032,_0xf7a9cd,_0x78a7c5];var _0x38767a={};_0x38767a[_0x8a00a5(0x1a2)]=['subSubForm'],_0x38767a[_0x8a00a5(0x18f)]=[_0x8a00a5(0x1c2)];var _0x4e49e6={};_0x4e49e6[_0x8a00a5(0x17c)]=_0x38767a;var _0x59d79f={};_0x59d79f['minValue']=0x1,_0x59d79f[_0x8a00a5(0x165)]=0x3e8;var _0x4e4ede={};_0x4e4ede[_0x8a00a5(0x1a4)]=_0x8a00a5(0x1c0),_0x4e4ede[_0x8a00a5(0x183)]=_0x8a00a5(0x1bd),_0x4e4ede[_0x8a00a5(0x17f)]=_0x8a00a5(0x170),_0x4e4ede[_0x8a00a5(0x155)]=_0x4e49e6,_0x4e4ede[_0x8a00a5(0x18e)]=_0x59d79f,_0x4e4ede[_0x8a00a5(0x153)]=0x32,_0x4e4ede[_0x8a00a5(0x17e)]=_0x8a00a5(0x176);var _0xf87ae8={};_0xf87ae8[_0x8a00a5(0x1a2)]=[_0x8a00a5(0x19a)],_0xf87ae8[_0x8a00a5(0x18f)]=[_0x8a00a5(0x1c2)];var _0x1e91ca={};_0x1e91ca['show']=_0xf87ae8;var _0x4efe70={};_0x4efe70[_0x8a00a5(0x185)]=0x0;var _0x22babd={};_0x22babd[_0x8a00a5(0x1a4)]=_0x8a00a5(0x161),_0x22babd[_0x8a00a5(0x183)]=_0x8a00a5(0x157),_0x22babd[_0x8a00a5(0x17f)]=_0x8a00a5(0x170),_0x22babd[_0x8a00a5(0x155)]=_0x1e91ca,_0x22babd[_0x8a00a5(0x18e)]=_0x4efe70,_0x22babd[_0x8a00a5(0x153)]=0x0,_0x22babd['description']=_0x8a00a5(0x16a),exports['subSubFormFields']=[_0xa0e0d8,_0xfdb7e8,_0x177b2e,_0x2685ff,_0x1748b4,_0x2c5274,_0x505320,_0x51edc5,_0x4e4ede,_0x22babd];
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subSubFormFields = exports.subSubFormOperations = void 0;
|
|
4
|
+
exports.subSubFormOperations = {
|
|
5
|
+
displayName: 'Operation',
|
|
6
|
+
name: 'operation',
|
|
7
|
+
type: 'options',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['subSubForm'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Create',
|
|
17
|
+
value: 'create',
|
|
18
|
+
description: 'Create a sub-sub-form record',
|
|
19
|
+
action: 'Create a sub sub form record',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Delete',
|
|
23
|
+
value: 'delete',
|
|
24
|
+
description: 'Delete a sub-sub-form record',
|
|
25
|
+
action: 'Delete a sub sub form record',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'Get',
|
|
29
|
+
value: 'get',
|
|
30
|
+
description: 'Get a sub-sub-form record',
|
|
31
|
+
action: 'Get a sub sub form record',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Get Many',
|
|
35
|
+
value: 'getAll',
|
|
36
|
+
description: 'Get many sub-sub-form records',
|
|
37
|
+
action: 'Get many sub sub form records',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Update',
|
|
41
|
+
value: 'update',
|
|
42
|
+
description: 'Update a sub-sub-form record',
|
|
43
|
+
action: 'Update a sub sub form record',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
default: 'get',
|
|
47
|
+
};
|
|
48
|
+
exports.subSubFormFields = [
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Parent Form',
|
|
51
|
+
name: 'parentForm',
|
|
52
|
+
type: 'options',
|
|
53
|
+
typeOptions: {
|
|
54
|
+
loadOptionsMethod: 'getForms',
|
|
55
|
+
},
|
|
56
|
+
required: true,
|
|
57
|
+
displayOptions: { show: { resource: ['subSubForm'] } },
|
|
58
|
+
default: '',
|
|
59
|
+
description: 'The top-level parent form name. Switch to expression mode to type manually.',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Parent ID',
|
|
63
|
+
name: 'parentId',
|
|
64
|
+
type: 'string',
|
|
65
|
+
required: true,
|
|
66
|
+
displayOptions: { show: { resource: ['subSubForm'] } },
|
|
67
|
+
default: '',
|
|
68
|
+
placeholder: "e.g., SO2300001",
|
|
69
|
+
description: 'The ID of the parent record',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
displayName: 'Sub-Form Name',
|
|
73
|
+
name: 'subFormName',
|
|
74
|
+
type: 'options',
|
|
75
|
+
typeOptions: {
|
|
76
|
+
loadOptionsMethod: 'getSubForms',
|
|
77
|
+
},
|
|
78
|
+
required: true,
|
|
79
|
+
displayOptions: { show: { resource: ['subSubForm'] } },
|
|
80
|
+
default: '',
|
|
81
|
+
description: 'The sub-form name (first level). Switch to expression mode to type manually.',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Sub-Form ID',
|
|
85
|
+
name: 'subFormId',
|
|
86
|
+
type: 'string',
|
|
87
|
+
required: true,
|
|
88
|
+
displayOptions: { show: { resource: ['subSubForm'] } },
|
|
89
|
+
default: '',
|
|
90
|
+
description: 'The ID of the sub-form record',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
displayName: 'Sub-Sub-Form Name',
|
|
94
|
+
name: 'subSubFormName',
|
|
95
|
+
type: 'options',
|
|
96
|
+
typeOptions: {
|
|
97
|
+
loadOptionsMethod: 'getMiniSubForms',
|
|
98
|
+
},
|
|
99
|
+
required: true,
|
|
100
|
+
displayOptions: { show: { resource: ['subSubForm'] } },
|
|
101
|
+
default: '',
|
|
102
|
+
description: 'The sub-sub-form name (second level). Switch to expression mode to type manually.',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
displayName: 'Sub-Sub-Form Record ID',
|
|
106
|
+
name: 'subSubFormId',
|
|
107
|
+
type: 'string',
|
|
108
|
+
required: true,
|
|
109
|
+
displayOptions: {
|
|
110
|
+
show: {
|
|
111
|
+
resource: ['subSubForm'],
|
|
112
|
+
operation: ['get', 'update', 'delete'],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
default: '',
|
|
116
|
+
description: 'The ID of the sub-sub-form record',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
displayName: 'Fields',
|
|
120
|
+
name: 'fieldsUi',
|
|
121
|
+
placeholder: 'Add Field',
|
|
122
|
+
type: 'fixedCollection',
|
|
123
|
+
typeOptions: { multipleValues: true },
|
|
124
|
+
displayOptions: {
|
|
125
|
+
show: {
|
|
126
|
+
resource: ['subSubForm'],
|
|
127
|
+
operation: ['create', 'update'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
default: {},
|
|
131
|
+
options: [
|
|
132
|
+
{
|
|
133
|
+
name: 'fieldValues',
|
|
134
|
+
displayName: 'Field',
|
|
135
|
+
values: [
|
|
136
|
+
{
|
|
137
|
+
displayName: 'Field Name',
|
|
138
|
+
name: 'fieldName',
|
|
139
|
+
type: 'options',
|
|
140
|
+
typeOptions: {
|
|
141
|
+
loadOptionsMethod: 'getSubSubFormColumns',
|
|
142
|
+
},
|
|
143
|
+
default: '',
|
|
144
|
+
description: 'The name of the field in Priority. Switch to expression mode to type manually.',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Field Value',
|
|
148
|
+
name: 'fieldValue',
|
|
149
|
+
type: 'string',
|
|
150
|
+
default: '',
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
displayName: 'Additional Options',
|
|
158
|
+
name: 'additionalOptions',
|
|
159
|
+
type: 'collection',
|
|
160
|
+
placeholder: 'Add Option',
|
|
161
|
+
default: {},
|
|
162
|
+
displayOptions: {
|
|
163
|
+
show: {
|
|
164
|
+
resource: ['subSubForm'],
|
|
165
|
+
operation: ['get', 'getAll'],
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
options: [
|
|
169
|
+
{
|
|
170
|
+
displayName: 'Select Fields',
|
|
171
|
+
name: 'select',
|
|
172
|
+
type: 'multiOptions',
|
|
173
|
+
typeOptions: {
|
|
174
|
+
loadOptionsMethod: 'getSubSubFormColumns',
|
|
175
|
+
},
|
|
176
|
+
default: [],
|
|
177
|
+
description: 'Fields to return. Switch to expression mode to type manually.',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
displayName: 'Filters',
|
|
181
|
+
name: 'filters',
|
|
182
|
+
type: 'fixedCollection',
|
|
183
|
+
typeOptions: { multipleValues: true },
|
|
184
|
+
default: {},
|
|
185
|
+
options: [
|
|
186
|
+
{
|
|
187
|
+
displayName: 'Filter',
|
|
188
|
+
name: 'filterValues',
|
|
189
|
+
values: [
|
|
190
|
+
{
|
|
191
|
+
displayName: 'Column',
|
|
192
|
+
name: 'column',
|
|
193
|
+
type: 'options',
|
|
194
|
+
typeOptions: { loadOptionsMethod: 'getSubSubFormColumns' },
|
|
195
|
+
default: '',
|
|
196
|
+
description: 'The column to filter on. Switch to expression mode to type manually.',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
displayName: 'Operator',
|
|
200
|
+
name: 'operator',
|
|
201
|
+
type: 'options',
|
|
202
|
+
options: [
|
|
203
|
+
{ name: 'Equals', value: 'eq' },
|
|
204
|
+
{ name: 'Not Equals', value: 'ne' },
|
|
205
|
+
{ name: 'Greater Than', value: 'gt' },
|
|
206
|
+
{ name: 'Greater or Equal', value: 'ge' },
|
|
207
|
+
{ name: 'Less Than', value: 'lt' },
|
|
208
|
+
{ name: 'Less or Equal', value: 'le' },
|
|
209
|
+
{ name: 'Contains', value: 'contains' },
|
|
210
|
+
{ name: 'Starts With', value: 'startswith' },
|
|
211
|
+
{ name: 'Ends With', value: 'endswith' },
|
|
212
|
+
],
|
|
213
|
+
default: 'eq',
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
displayName: 'Value',
|
|
217
|
+
name: 'value',
|
|
218
|
+
type: 'string',
|
|
219
|
+
default: '',
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
displayName: 'Order By',
|
|
227
|
+
name: 'orderBy',
|
|
228
|
+
type: 'fixedCollection',
|
|
229
|
+
typeOptions: { multipleValues: true },
|
|
230
|
+
default: {},
|
|
231
|
+
options: [
|
|
232
|
+
{
|
|
233
|
+
displayName: 'Sort',
|
|
234
|
+
name: 'sortValues',
|
|
235
|
+
values: [
|
|
236
|
+
{
|
|
237
|
+
displayName: 'Column',
|
|
238
|
+
name: 'column',
|
|
239
|
+
type: 'options',
|
|
240
|
+
typeOptions: { loadOptionsMethod: 'getSubSubFormColumns' },
|
|
241
|
+
default: '',
|
|
242
|
+
description: 'The column to sort by. Switch to expression mode to type manually.',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
displayName: 'Direction',
|
|
246
|
+
name: 'direction',
|
|
247
|
+
type: 'options',
|
|
248
|
+
options: [
|
|
249
|
+
{ name: 'Ascending', value: 'asc' },
|
|
250
|
+
{ name: 'Descending', value: 'desc' },
|
|
251
|
+
],
|
|
252
|
+
default: 'asc',
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
displayName: 'Expand',
|
|
260
|
+
name: 'expand',
|
|
261
|
+
type: 'string',
|
|
262
|
+
default: '',
|
|
263
|
+
description: 'Related entities to include',
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
displayName: 'Since (Change Tracking)',
|
|
267
|
+
name: 'since',
|
|
268
|
+
type: 'dateTime',
|
|
269
|
+
default: '',
|
|
270
|
+
description: 'Only return records modified since this date/time (for incremental sync)',
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
displayName: 'Limit',
|
|
276
|
+
name: 'limit',
|
|
277
|
+
type: 'number',
|
|
278
|
+
displayOptions: {
|
|
279
|
+
show: { resource: ['subSubForm'], operation: ['getAll'] },
|
|
280
|
+
},
|
|
281
|
+
typeOptions: { minValue: 1, maxValue: 1000 },
|
|
282
|
+
default: 50,
|
|
283
|
+
description: 'How many results to return',
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
displayName: 'Skip',
|
|
287
|
+
name: 'skip',
|
|
288
|
+
type: 'number',
|
|
289
|
+
displayOptions: {
|
|
290
|
+
show: { resource: ['subSubForm'], operation: ['getAll'] },
|
|
291
|
+
},
|
|
292
|
+
typeOptions: { minValue: 0 },
|
|
293
|
+
default: 0,
|
|
294
|
+
description: 'Number of results to skip (for pagination)',
|
|
295
|
+
},
|
|
296
|
+
];
|
|
@@ -1 +1,18 @@
|
|
|
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 subSubFormName = execFns.getNodeParameter('subSubFormName', index);
|
|
12
|
+
const subSubFormId = execFns.getNodeParameter('subSubFormId', index);
|
|
13
|
+
const fieldsUi = execFns.getNodeParameter('fieldsUi', index);
|
|
14
|
+
const body = (0, utils_1.extractFieldValues)(fieldsUi);
|
|
15
|
+
const prefix = context.connectionType === 'router' ? '' : '/api';
|
|
16
|
+
const urlPath = `${prefix}/${parentForm}('${parentId}')/${subFormName}('${subFormId}')/${subSubFormName}('${subSubFormId}')`;
|
|
17
|
+
return (0, priorityApi_1.priorityApiRequest)(execFns, 'PATCH', urlPath, context, body);
|
|
18
|
+
}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getText = getText;
|
|
4
|
+
const priorityApi_1 = require("../../transport/priorityApi");
|
|
5
|
+
async function getText(execFns, index, context) {
|
|
6
|
+
const formName = execFns.getNodeParameter('formName', index);
|
|
7
|
+
const recordId = execFns.getNodeParameter('recordId', index);
|
|
8
|
+
const subFormName = execFns.getNodeParameter('subFormName', index);
|
|
9
|
+
const subFormId = execFns.getNodeParameter('subFormId', index);
|
|
10
|
+
const textSubFormName = execFns.getNodeParameter('textSubFormName', index);
|
|
11
|
+
const textFieldName = execFns.getNodeParameter('textFieldName', index, 'TEXT');
|
|
12
|
+
const prefix = context.connectionType === 'router' ? '' : '/api';
|
|
13
|
+
const urlPath = `${prefix}/${formName}('${recordId}')/${subFormName}('${subFormId}')/${textSubFormName}`;
|
|
14
|
+
const qs = { $select: textFieldName };
|
|
15
|
+
return (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context, undefined, qs);
|
|
16
|
+
}
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setText = exports.getText = exports.textFields = exports.textOperations = void 0;
|
|
4
|
+
var text_properties_1 = require("./text.properties");
|
|
5
|
+
Object.defineProperty(exports, "textOperations", { enumerable: true, get: function () { return text_properties_1.textOperations; } });
|
|
6
|
+
Object.defineProperty(exports, "textFields", { enumerable: true, get: function () { return text_properties_1.textFields; } });
|
|
7
|
+
var getText_operation_1 = require("./getText.operation");
|
|
8
|
+
Object.defineProperty(exports, "getText", { enumerable: true, get: function () { return getText_operation_1.getText; } });
|
|
9
|
+
var setText_operation_1 = require("./setText.operation");
|
|
10
|
+
Object.defineProperty(exports, "setText", { enumerable: true, get: function () { return setText_operation_1.setText; } });
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setText = setText;
|
|
4
|
+
const priorityApi_1 = require("../../transport/priorityApi");
|
|
5
|
+
async function setText(execFns, index, context) {
|
|
6
|
+
const formName = execFns.getNodeParameter('formName', index);
|
|
7
|
+
const recordId = execFns.getNodeParameter('recordId', index);
|
|
8
|
+
const subFormName = execFns.getNodeParameter('subFormName', index);
|
|
9
|
+
const subFormId = execFns.getNodeParameter('subFormId', index);
|
|
10
|
+
const textSubFormName = execFns.getNodeParameter('textSubFormName', index);
|
|
11
|
+
const textContent = execFns.getNodeParameter('textContent', index);
|
|
12
|
+
const textFieldName = execFns.getNodeParameter('textFieldName', index, 'TEXT');
|
|
13
|
+
const prefix = context.connectionType === 'router' ? '' : '/api';
|
|
14
|
+
const urlPath = `${prefix}/${formName}('${recordId}')/${subFormName}('${subFormId}')/${textSubFormName}`;
|
|
15
|
+
const body = {
|
|
16
|
+
[textFieldName]: textContent,
|
|
17
|
+
};
|
|
18
|
+
return (0, priorityApi_1.priorityApiRequest)(execFns, 'PATCH', urlPath, context, body);
|
|
19
|
+
}
|