@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,296 @@
|
|
|
1
|
-
'use strict';var _0x2a0c67=_0x4435;(function(_0x1e2e0e,_0x2e3141){var _0x44d3a1={_0x55981a:0xe8,_0x3c991f:0x140,_0x48178c:0x159,_0x4d6215:0x11c,_0x14c6ab:0x124},_0x1984a5=_0x4435,_0x542aab=_0x1e2e0e();while(!![]){try{var _0x1b8c9e=parseInt(_0x1984a5(0xf6))/0x1*(parseInt(_0x1984a5(0x151))/0x2)+-parseInt(_0x1984a5(0x109))/0x3+-parseInt(_0x1984a5(0x153))/0x4+-parseInt(_0x1984a5(0x13b))/0x5+parseInt(_0x1984a5(_0x44d3a1._0x55981a))/0x6*(-parseInt(_0x1984a5(_0x44d3a1._0x3c991f))/0x7)+parseInt(_0x1984a5(_0x44d3a1._0x48178c))/0x8*(-parseInt(_0x1984a5(_0x44d3a1._0x4d6215))/0x9)+-parseInt(_0x1984a5(_0x44d3a1._0x14c6ab))/0xa*(-parseInt(_0x1984a5(0x14a))/0xb);if(_0x1b8c9e===_0x2e3141)break;else _0x542aab['push'](_0x542aab['shift']());}catch(_0x3feabc){_0x542aab['push'](_0x542aab['shift']());}}}(_0x5b19,0x6966f));var _0x1f5a13={};_0x1f5a13[_0x2a0c67(0x129)]=!![],Object[_0x2a0c67(0xee)](exports,_0x2a0c67(0x148),_0x1f5a13),exports['entityFields']=exports[_0x2a0c67(0x146)]=void 0x0;var _0x3a0e82={};_0x3a0e82[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)];var _0x1deea6={};_0x1deea6['show']=_0x3a0e82;var _0x25ce11={};_0x25ce11[_0x2a0c67(0xfe)]=_0x2a0c67(0x115),_0x25ce11[_0x2a0c67(0x129)]=_0x2a0c67(0x150),_0x25ce11[_0x2a0c67(0x12d)]=_0x2a0c67(0x15b),_0x25ce11[_0x2a0c67(0xf5)]=_0x2a0c67(0x135);var _0x37f0e6={};_0x37f0e6[_0x2a0c67(0xfe)]=_0x2a0c67(0x118),_0x37f0e6[_0x2a0c67(0x129)]=_0x2a0c67(0x14f),_0x37f0e6[_0x2a0c67(0x12d)]=_0x2a0c67(0x10d),_0x37f0e6[_0x2a0c67(0xf5)]=_0x2a0c67(0x10d);var _0x458a72={};_0x458a72[_0x2a0c67(0xfe)]=_0x2a0c67(0x104),_0x458a72[_0x2a0c67(0x129)]=_0x2a0c67(0x126),_0x458a72['description']='Get\x20an\x20entity',_0x458a72[_0x2a0c67(0xf5)]=_0x2a0c67(0x142);var _0x60310d={};_0x60310d[_0x2a0c67(0xfe)]='Get\x20Many',_0x60310d[_0x2a0c67(0x129)]=_0x2a0c67(0x116),_0x60310d[_0x2a0c67(0x12d)]=_0x2a0c67(0xf3),_0x60310d[_0x2a0c67(0xf5)]='Get\x20many\x20entities';var _0x316a59={};_0x316a59[_0x2a0c67(0xfe)]='Update',_0x316a59[_0x2a0c67(0x129)]='update',_0x316a59['description']=_0x2a0c67(0x15d),_0x316a59['action']=_0x2a0c67(0x15d);var _0x114c2={};_0x114c2[_0x2a0c67(0x127)]=_0x2a0c67(0xeb),_0x114c2[_0x2a0c67(0xfe)]=_0x2a0c67(0xf9),_0x114c2['type']='options',_0x114c2[_0x2a0c67(0x149)]=!![],_0x114c2[_0x2a0c67(0xfd)]=_0x1deea6,_0x114c2['options']=[_0x25ce11,_0x37f0e6,_0x458a72,_0x60310d,_0x316a59],_0x114c2[_0x2a0c67(0x14b)]=_0x2a0c67(0x126),exports[_0x2a0c67(0x146)]=_0x114c2;var _0x2c373f={};_0x2c373f[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)];var _0x4d4c9e={};_0x4d4c9e[_0x2a0c67(0xe5)]=_0x2c373f;var _0x410c00={};_0x410c00[_0x2a0c67(0xfe)]='Customers',_0x410c00[_0x2a0c67(0x129)]='CUSTOMERS';var _0x54a9da={};_0x54a9da[_0x2a0c67(0xfe)]='Items',_0x54a9da[_0x2a0c67(0x129)]=_0x2a0c67(0x13f);var _0x377a50={};_0x377a50['name']='Orders',_0x377a50[_0x2a0c67(0x129)]=_0x2a0c67(0x130);var _0x304a57={};_0x304a57[_0x2a0c67(0xfe)]='Invoices',_0x304a57['value']='INVOICES';var _0x97b562={};_0x97b562['name']=_0x2a0c67(0x10b),_0x97b562[_0x2a0c67(0x129)]=_0x2a0c67(0x125);var _0x5233ac={};_0x5233ac[_0x2a0c67(0xfe)]=_0x2a0c67(0xf7),_0x5233ac[_0x2a0c67(0x129)]=_0x2a0c67(0x155);var _0x3710a9={};_0x3710a9[_0x2a0c67(0x127)]='Entity\x20Type',_0x3710a9[_0x2a0c67(0xfe)]=_0x2a0c67(0x144),_0x3710a9[_0x2a0c67(0x12c)]=_0x2a0c67(0x106),_0x3710a9['required']=!![],_0x3710a9[_0x2a0c67(0xfd)]=_0x4d4c9e,_0x3710a9[_0x2a0c67(0x106)]=[_0x410c00,_0x54a9da,_0x377a50,_0x304a57,_0x97b562,_0x5233ac],_0x3710a9['default']=_0x2a0c67(0x147),_0x3710a9[_0x2a0c67(0x12d)]=_0x2a0c67(0x11d);var _0x52b79f={};_0x52b79f[_0x2a0c67(0x131)]=_0x2a0c67(0x13d);var _0xa7105f={};_0xa7105f['resource']=['entity'],_0xa7105f[_0x2a0c67(0x144)]=[_0x2a0c67(0x155)];var _0x55ae7a={};_0x55ae7a[_0x2a0c67(0xe5)]=_0xa7105f;var _0x46c810={};_0x46c810[_0x2a0c67(0x127)]=_0x2a0c67(0x15c),_0x46c810[_0x2a0c67(0xfe)]='customEntityName',_0x46c810['type']=_0x2a0c67(0x106),_0x46c810['typeOptions']=_0x52b79f,_0x46c810[_0x2a0c67(0x110)]=!![],_0x46c810[_0x2a0c67(0xfd)]=_0x55ae7a,_0x46c810[_0x2a0c67(0x14b)]='',_0x46c810['description']=_0x2a0c67(0x11e);var _0x40d15e={};_0x40d15e[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)],_0x40d15e[_0x2a0c67(0xf9)]=[_0x2a0c67(0x126),_0x2a0c67(0x12f),'delete'];var _0x8d0365={};_0x8d0365['show']=_0x40d15e;var _0x3ce10b={};_0x3ce10b[_0x2a0c67(0x127)]=_0x2a0c67(0xe4),_0x3ce10b['name']=_0x2a0c67(0x128),_0x3ce10b[_0x2a0c67(0x12c)]=_0x2a0c67(0x12e),_0x3ce10b[_0x2a0c67(0x110)]=!![],_0x3ce10b[_0x2a0c67(0xfd)]=_0x8d0365,_0x3ce10b['default']='',_0x3ce10b[_0x2a0c67(0x12d)]=_0x2a0c67(0x119);var _0x3e5a44={};_0x3e5a44['multipleValues']=!![];var _0x32cdd0={};_0x32cdd0['resource']=[_0x2a0c67(0x120)],_0x32cdd0[_0x2a0c67(0xf9)]=[_0x2a0c67(0x150),_0x2a0c67(0x12f)];var _0x3c69e2={};_0x3c69e2['show']=_0x32cdd0;var _0x3d56db={};_0x3d56db['loadOptionsMethod']=_0x2a0c67(0x157);var _0x1e1daa={};_0x1e1daa[_0x2a0c67(0x127)]=_0x2a0c67(0xff),_0x1e1daa[_0x2a0c67(0xfe)]=_0x2a0c67(0x121),_0x1e1daa[_0x2a0c67(0x12c)]=_0x2a0c67(0x106),_0x1e1daa[_0x2a0c67(0x12b)]=_0x3d56db,_0x1e1daa[_0x2a0c67(0x14b)]='',_0x1e1daa[_0x2a0c67(0x12d)]=_0x2a0c67(0x100);var _0x557e6d={};_0x557e6d[_0x2a0c67(0x127)]='Field\x20Value',_0x557e6d['name']='fieldValue',_0x557e6d[_0x2a0c67(0x12c)]=_0x2a0c67(0x12e),_0x557e6d[_0x2a0c67(0x14b)]='',_0x557e6d[_0x2a0c67(0x12d)]=_0x2a0c67(0x122);var _0x162288={};_0x162288[_0x2a0c67(0xfe)]=_0x2a0c67(0x107),_0x162288[_0x2a0c67(0x127)]='Field',_0x162288[_0x2a0c67(0x139)]=[_0x1e1daa,_0x557e6d];var _0x570880={};_0x570880[_0x2a0c67(0x127)]=_0x2a0c67(0xea),_0x570880['name']='fieldsUi',_0x570880['placeholder']=_0x2a0c67(0x14c),_0x570880['type']='fixedCollection',_0x570880[_0x2a0c67(0x12b)]=_0x3e5a44,_0x570880[_0x2a0c67(0xfd)]=_0x3c69e2,_0x570880[_0x2a0c67(0x14b)]={},_0x570880['options']=[_0x162288];var _0xd9e641={};_0xd9e641[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)],_0xd9e641[_0x2a0c67(0xf9)]=[_0x2a0c67(0x126),_0x2a0c67(0x116)];var _0x2c7530={};_0x2c7530['show']=_0xd9e641;var _0x17094d={};_0x17094d['loadOptionsMethod']=_0x2a0c67(0x157);var _0x33ce25={};_0x33ce25[_0x2a0c67(0x127)]=_0x2a0c67(0x15a),_0x33ce25[_0x2a0c67(0xfe)]='select',_0x33ce25['type']='multiOptions',_0x33ce25[_0x2a0c67(0x12b)]=_0x17094d,_0x33ce25[_0x2a0c67(0x14b)]=[],_0x33ce25['description']='Fields\x20to\x20return.\x20Switch\x20to\x20expression\x20mode\x20to\x20type\x20manually.';var _0x3cfe38={};_0x3cfe38['multipleValues']=!![];var _0x4afe7b={};_0x4afe7b[_0x2a0c67(0x131)]=_0x2a0c67(0x157);var _0x3a6706={};_0x3a6706[_0x2a0c67(0x127)]='Column',_0x3a6706[_0x2a0c67(0xfe)]=_0x2a0c67(0x11f),_0x3a6706[_0x2a0c67(0x12c)]=_0x2a0c67(0x106),_0x3a6706[_0x2a0c67(0x12b)]=_0x4afe7b,_0x3a6706[_0x2a0c67(0x14b)]='',_0x3a6706[_0x2a0c67(0x12d)]=_0x2a0c67(0xfa);var _0x27154a={};_0x27154a[_0x2a0c67(0xfe)]='Equals',_0x27154a[_0x2a0c67(0x129)]='eq';var _0x5f1818={};_0x5f1818[_0x2a0c67(0xfe)]='Not\x20Equals',_0x5f1818['value']='ne';var _0x137daf={};_0x137daf[_0x2a0c67(0xfe)]=_0x2a0c67(0xf2),_0x137daf['value']='gt';var _0x350e30={};_0x350e30[_0x2a0c67(0xfe)]='Greater\x20or\x20Equal',_0x350e30['value']='ge';var _0x355892={};_0x355892['name']=_0x2a0c67(0x158),_0x355892['value']='lt';var _0x5d0c8c={};_0x5d0c8c[_0x2a0c67(0xfe)]=_0x2a0c67(0x102),_0x5d0c8c[_0x2a0c67(0x129)]='le';var _0xd8011d={};_0xd8011d[_0x2a0c67(0xfe)]=_0x2a0c67(0xec),_0xd8011d[_0x2a0c67(0x129)]=_0x2a0c67(0xfc);var _0x17a156={};_0x17a156[_0x2a0c67(0xfe)]='Starts\x20With',_0x17a156[_0x2a0c67(0x129)]=_0x2a0c67(0x123);var _0x367697={};_0x367697['name']=_0x2a0c67(0x138),_0x367697[_0x2a0c67(0x129)]=_0x2a0c67(0x152);var _0xe5a633={};_0xe5a633[_0x2a0c67(0x127)]='Operator',_0xe5a633[_0x2a0c67(0xfe)]=_0x2a0c67(0x14d),_0xe5a633[_0x2a0c67(0x12c)]=_0x2a0c67(0x106),_0xe5a633[_0x2a0c67(0x106)]=[_0x27154a,_0x5f1818,_0x137daf,_0x350e30,_0x355892,_0x5d0c8c,_0xd8011d,_0x17a156,_0x367697],_0xe5a633[_0x2a0c67(0x14b)]='eq';var _0x1195b2={};_0x1195b2[_0x2a0c67(0x127)]=_0x2a0c67(0x114),_0x1195b2['name']=_0x2a0c67(0x129),_0x1195b2['type']=_0x2a0c67(0x12e),_0x1195b2[_0x2a0c67(0x14b)]='';var _0x10e525={};_0x10e525['displayName']=_0x2a0c67(0x143),_0x10e525[_0x2a0c67(0xfe)]='filterValues',_0x10e525['values']=[_0x3a6706,_0xe5a633,_0x1195b2];var _0x413423={};_0x413423[_0x2a0c67(0x127)]=_0x2a0c67(0x137),_0x413423[_0x2a0c67(0xfe)]=_0x2a0c67(0x11b),_0x413423[_0x2a0c67(0x12c)]=_0x2a0c67(0xf1),_0x413423[_0x2a0c67(0x12b)]=_0x3cfe38,_0x413423[_0x2a0c67(0x14b)]={},_0x413423[_0x2a0c67(0x106)]=[_0x10e525];var _0x22dfeb={};_0x22dfeb['multipleValues']=!![];var _0x5b1741={};_0x5b1741[_0x2a0c67(0x131)]=_0x2a0c67(0x157);var _0x35bd9a={};_0x35bd9a[_0x2a0c67(0x127)]=_0x2a0c67(0x101),_0x35bd9a[_0x2a0c67(0xfe)]=_0x2a0c67(0x11f),_0x35bd9a[_0x2a0c67(0x12c)]=_0x2a0c67(0x106),_0x35bd9a[_0x2a0c67(0x12b)]=_0x5b1741,_0x35bd9a[_0x2a0c67(0x14b)]='',_0x35bd9a[_0x2a0c67(0x12d)]=_0x2a0c67(0x10f);var _0x23f6f8={};_0x23f6f8[_0x2a0c67(0xfe)]=_0x2a0c67(0x10a),_0x23f6f8['value']='asc';var _0xbf0bed={};function _0x4435(_0x2cb1cb,_0x2b864c){_0x2cb1cb=_0x2cb1cb-0xe4;var _0x5b1982=_0x5b19();var _0x44352a=_0x5b1982[_0x2cb1cb];if(_0x4435['dzUdMh']===undefined){var _0x298f49=function(_0x2779b3){var _0x67409a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1f5a13='',_0x3a0e82='';for(var _0x1deea6=0x0,_0x25ce11,_0x37f0e6,_0x458a72=0x0;_0x37f0e6=_0x2779b3['charAt'](_0x458a72++);~_0x37f0e6&&(_0x25ce11=_0x1deea6%0x4?_0x25ce11*0x40+_0x37f0e6:_0x37f0e6,_0x1deea6++%0x4)?_0x1f5a13+=String['fromCharCode'](0xff&_0x25ce11>>(-0x2*_0x1deea6&0x6)):0x0){_0x37f0e6=_0x67409a['indexOf'](_0x37f0e6);}for(var _0x60310d=0x0,_0x316a59=_0x1f5a13['length'];_0x60310d<_0x316a59;_0x60310d++){_0x3a0e82+='%'+('00'+_0x1f5a13['charCodeAt'](_0x60310d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a0e82);};_0x4435['HkcYpd']=_0x298f49,_0x4435['YdWuxR']={},_0x4435['dzUdMh']=!![];}var _0x3da017=_0x5b1982[0x0],_0x45c24f=_0x2cb1cb+_0x3da017,_0xa4d189=_0x4435['YdWuxR'][_0x45c24f];return!_0xa4d189?(_0x44352a=_0x4435['HkcYpd'](_0x44352a),_0x4435['YdWuxR'][_0x45c24f]=_0x44352a):_0x44352a=_0xa4d189,_0x44352a;}_0xbf0bed[_0x2a0c67(0xfe)]=_0x2a0c67(0x154),_0xbf0bed['value']=_0x2a0c67(0x13a);var _0x5e6195={};_0x5e6195[_0x2a0c67(0x127)]=_0x2a0c67(0xfb),_0x5e6195['name']=_0x2a0c67(0x13e),_0x5e6195['type']=_0x2a0c67(0x106),_0x5e6195['options']=[_0x23f6f8,_0xbf0bed],_0x5e6195[_0x2a0c67(0x14b)]=_0x2a0c67(0x141);var _0x53b184={};_0x53b184['displayName']=_0x2a0c67(0x12a),_0x53b184[_0x2a0c67(0xfe)]=_0x2a0c67(0xf8),_0x53b184[_0x2a0c67(0x139)]=[_0x35bd9a,_0x5e6195];var _0x3e3143={};_0x3e3143[_0x2a0c67(0x127)]='Order\x20By',_0x3e3143[_0x2a0c67(0xfe)]=_0x2a0c67(0x13c),_0x3e3143[_0x2a0c67(0x12c)]=_0x2a0c67(0xf1),_0x3e3143['typeOptions']=_0x22dfeb,_0x3e3143[_0x2a0c67(0x14b)]={},_0x3e3143[_0x2a0c67(0x106)]=[_0x53b184];var _0x2b54ef={};_0x2b54ef[_0x2a0c67(0x131)]=_0x2a0c67(0x156);var _0x85067c={};_0x85067c[_0x2a0c67(0x127)]=_0x2a0c67(0x10c),_0x85067c[_0x2a0c67(0xfe)]=_0x2a0c67(0x108),_0x85067c[_0x2a0c67(0x12c)]=_0x2a0c67(0x113),_0x85067c[_0x2a0c67(0x12b)]=_0x2b54ef,_0x85067c[_0x2a0c67(0x14b)]=[],_0x85067c['description']=_0x2a0c67(0xe9);var _0x308fb3={};_0x308fb3[_0x2a0c67(0x127)]=_0x2a0c67(0x134),_0x308fb3[_0x2a0c67(0xfe)]=_0x2a0c67(0xf0),_0x308fb3['type']=_0x2a0c67(0x10e),_0x308fb3[_0x2a0c67(0x14b)]='',_0x308fb3[_0x2a0c67(0x12d)]=_0x2a0c67(0x117);var _0x4d5169={};_0x4d5169['displayName']=_0x2a0c67(0x145),_0x4d5169[_0x2a0c67(0xfe)]=_0x2a0c67(0xe7),_0x4d5169['type']=_0x2a0c67(0x111),_0x4d5169[_0x2a0c67(0xf4)]='Add\x20Option',_0x4d5169[_0x2a0c67(0x14b)]={},_0x4d5169[_0x2a0c67(0xfd)]=_0x2c7530,_0x4d5169[_0x2a0c67(0x106)]=[_0x33ce25,_0x413423,_0x3e3143,_0x85067c,_0x308fb3];var _0x58b71e={};_0x58b71e[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)],_0x58b71e[_0x2a0c67(0xf9)]=[_0x2a0c67(0x116)];var _0x4b98ab={};_0x4b98ab[_0x2a0c67(0xe5)]=_0x58b71e;var _0x544155={};_0x544155[_0x2a0c67(0x14e)]=0x1,_0x544155[_0x2a0c67(0x132)]=0x3e8;var _0x1dca37={};_0x1dca37[_0x2a0c67(0x127)]=_0x2a0c67(0x103),_0x1dca37[_0x2a0c67(0xfe)]=_0x2a0c67(0xef),_0x1dca37['type']='number',_0x1dca37[_0x2a0c67(0xfd)]=_0x4b98ab,_0x1dca37[_0x2a0c67(0x12b)]=_0x544155,_0x1dca37[_0x2a0c67(0x14b)]=0x32,_0x1dca37[_0x2a0c67(0x12d)]=_0x2a0c67(0x136);function _0x5b19(){var _0x4a7cee=['BgLTAxq','C2LUy2u','zML4zwrdB2XSzwn0Aw9U','r3jLyxrLCIbuAgfU','r2v0ig1HBNKGzw50AxrPzxm','CgXHy2vOB2XKzxi','ywn0Aw9U','mtu4mffmBuj4Dq','q3vZDg9TievUDgL0Eq','C29YDfzHBhvLCW','B3bLCMf0Aw9U','vgHLignVBhvTBIb0BYbMAwX0zxiGB24Uifn3AxrJAcb0BYbLEhbYzxnZAw9Uig1VzguGDg8GDhLWzsbTyw51ywXSEs4','rgLYzwn0Aw9U','y29UDgfPBNm','zgLZCgXHEu9WDgLVBNm','BMfTzq','rMLLBgqGtMfTzq','vgHLig5HBwuGB2yGDgHLigzPzwXKigLUifbYAw9YAxr5lIbtD2L0y2GGDg8GzxHWCMvZC2LVBIbTB2rLihrVihr5CguGBwfUDwfSBhKU','q29SDw1U','tgvZCYbVCIbfCxvHBa','tgLTAxq','r2v0','C2TPCa','B3b0Aw9UCW','zMLLBgrwywX1zxm','zxHWyw5K','mtCWntm0nhb6vuHptG','qxnJzw5KAw5N','u3vWCgXPzxjZ','rxHWyw5K','rgvSzxrLigfUigvUDgL0Eq','zgf0zvrPBwu','vgHLignVBhvTBIb0BYbZB3j0igj5lIbtD2L0y2GGDg8GzxHWCMvZC2LVBIbTB2rLihrVihr5CguGBwfUDwfSBhKU','CMvXDwLYzwq','y29SBgvJDgLVBG','CMvZB3vYy2u','BxvSDgLpChrPB25Z','vMfSDwu','q3jLyxrL','z2v0qwXS','t25SEsbYzxr1CM4GCMvJB3jKCYbTB2rPzMLLzcbZAw5Jzsb0AgLZigrHDguVDgLTzsaOzM9YigLUy3jLBwvUDgfSihn5BMmP','rgvSzxrL','vgHLieLeig9MihrOzsbLBNrPDhK','zw50Axr5rMLLBgrZ','zMLSDgvYCW','mJC1ngjeDhP2Aq','vgHLihr5CguGB2yGzw50Axr5ihrVihDVCMSGD2L0Aa','vgHLig5HBwuGB2yGDgHLign1C3rVBsbLBNrPDhKGAw4GuhjPB3jPDhKUifn3AxrJAcb0BYbLEhbYzxnZAw9Uig1VzguGDg8GDhLWzsbTyw51ywXSEs4','y29SDw1U','zw50Axr5','zMLLBgroyw1L','vgHLihzHBhvLihrVihnLDcbMB3iGDgHLigzPzwXK','C3rHCNrZD2L0Aa','mtKWt2HlvxH5','u1vqueXjrvjt','z2v0','zgLZCgXHEu5HBwu','zw50Axr5swq','DMfSDwu','u29YDa','DhLWzu9WDgLVBNm','DhLWzq','zgvZy3jPChrPB24','C3rYAw5N','DxbKyxrL','t1jervjt','Bg9Hze9WDgLVBNnnzxrOB2q','Bwf4vMfSDwu','BNvTyMvY','u2LUy2uGkenOyw5NzsbuCMfJA2LUzYK','q3jLyxrLigfUigvUDgL0Eq','sg93ig1HBNKGCMvZDwX0CYb0BYbYzxr1CM4','rMLSDgvYCW','rw5KCYbxAxrO','DMfSDwvZ','zgvZyW','mZC2nJG3meLSCgrhEG','B3jKzxjcEq','z2v0rM9YBxm','zgLYzwn0Aw9U','svrftvm','mJy2otq5ovz2qNvYBW','yxnJ','r2v0igfUigvUDgL0Eq','rMLSDgvY','zw50Axr5vhLWzq','qwrKAxrPB25HBcbpChrPB25Z','zw50Axr5t3bLCMf0Aw9UCW','q1vtve9nrvjt','x19LC01VzhvSzq','BM9eyxrHrxHWCMvZC2LVBG','mtu3mteWog1RCKXPqq','zgvMyxvSDa','qwrKiezPzwXK','B3bLCMf0B3i','BwLUvMfSDwu','zgvSzxrL','y3jLyxrL','otaWExrtCKff','zw5KC3DPDgG','mJaYnJC2nfrADxL4rq','rgvZy2vUzgLUzW','y3vZDg9T','z2v0u3vIrM9YBxm','z2v0rM9YBunVBhvTBNm','tgvZCYbuAgfU','mta1mdrJy1zAtwe','u2vSzwn0iezPzwXKCW','q3jLyxrLigeGBMv3igvUDgL0Eq','q3vZDg9TievUDgL0Esboyw1L','vxbKyxrLigfUigvUDgL0Eq','rw50Axr5ieLe','C2HVDW','u2TPCa','ywrKAxrPB25HBe9WDgLVBNm','mtjtzeneyNu','uMvSyxrLzcbZDwiTzM9YBxmGDg8GAw5JBhvKzs4Gu3DPDgnOihrVigv4ChjLC3nPB24GBw9Kzsb0BYb0ExbLig1HBNvHBgX5lG','rMLLBgrZ','t3bLCMf0Aw9U','q29UDgfPBNm','tNvTyMvYig9MihjLC3vSDhmGDg8GC2TPCcaOzM9YihbHz2LUyxrPB24P','zgvMAw5LuhjVCgvYDhK'];_0x5b19=function(){return _0x4a7cee;};return _0x5b19();}var _0x46db78={};_0x46db78[_0x2a0c67(0x112)]=[_0x2a0c67(0x120)],_0x46db78['operation']=['getAll'];var _0x1bfa09={};_0x1bfa09[_0x2a0c67(0xe5)]=_0x46db78;var _0x3a4079={};_0x3a4079[_0x2a0c67(0x14e)]=0x0;var _0x3ecfc7={};_0x3ecfc7['displayName']=_0x2a0c67(0xe6),_0x3ecfc7[_0x2a0c67(0xfe)]=_0x2a0c67(0x105),_0x3ecfc7[_0x2a0c67(0x12c)]=_0x2a0c67(0x133),_0x3ecfc7[_0x2a0c67(0xfd)]=_0x1bfa09,_0x3ecfc7[_0x2a0c67(0x12b)]=_0x3a4079,_0x3ecfc7['default']=0x0,_0x3ecfc7[_0x2a0c67(0x12d)]=_0x2a0c67(0xed),exports[_0x2a0c67(0x11a)]=[_0x3710a9,_0x46c810,_0x3ce10b,_0x570880,_0x4d5169,_0x1dca37,_0x3ecfc7];
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.entityFields = exports.entityOperations = void 0;
|
|
4
|
+
exports.entityOperations = {
|
|
5
|
+
displayName: 'Operation',
|
|
6
|
+
name: 'operation',
|
|
7
|
+
type: 'options',
|
|
8
|
+
noDataExpression: true,
|
|
9
|
+
displayOptions: {
|
|
10
|
+
show: {
|
|
11
|
+
resource: ['entity'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Create',
|
|
17
|
+
value: 'create',
|
|
18
|
+
description: 'Create a new entity',
|
|
19
|
+
action: 'Create an entity',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Delete',
|
|
23
|
+
value: 'delete',
|
|
24
|
+
description: 'Delete an entity',
|
|
25
|
+
action: 'Delete an entity',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'Get',
|
|
29
|
+
value: 'get',
|
|
30
|
+
description: 'Get an entity',
|
|
31
|
+
action: 'Get an entity',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Get Many',
|
|
35
|
+
value: 'getAll',
|
|
36
|
+
description: 'Get many entities',
|
|
37
|
+
action: 'Get many entities',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Update',
|
|
41
|
+
value: 'update',
|
|
42
|
+
description: 'Update an entity',
|
|
43
|
+
action: 'Update an entity',
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
default: 'get',
|
|
47
|
+
};
|
|
48
|
+
exports.entityFields = [
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Entity Type',
|
|
51
|
+
name: 'entityType',
|
|
52
|
+
type: 'options',
|
|
53
|
+
required: true,
|
|
54
|
+
displayOptions: {
|
|
55
|
+
show: {
|
|
56
|
+
resource: ['entity'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
options: [
|
|
60
|
+
{ name: 'Customers', value: 'CUSTOMERS' },
|
|
61
|
+
{ name: 'Items', value: 'ITEMS' },
|
|
62
|
+
{ name: 'Orders', value: 'ORDERS' },
|
|
63
|
+
{ name: 'Invoices', value: 'INVOICES' },
|
|
64
|
+
{ name: 'Suppliers', value: 'SUPPLIERS' },
|
|
65
|
+
{ name: 'Custom Entity', value: 'custom' },
|
|
66
|
+
],
|
|
67
|
+
default: 'CUSTOMERS',
|
|
68
|
+
description: 'The type of entity to work with',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: 'Custom Entity Name',
|
|
72
|
+
name: 'customEntityName',
|
|
73
|
+
type: 'options',
|
|
74
|
+
typeOptions: {
|
|
75
|
+
loadOptionsMethod: 'getForms',
|
|
76
|
+
},
|
|
77
|
+
required: true,
|
|
78
|
+
displayOptions: {
|
|
79
|
+
show: {
|
|
80
|
+
resource: ['entity'],
|
|
81
|
+
entityType: ['custom'],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
default: '',
|
|
85
|
+
description: 'The name of the custom entity in Priority. Switch to expression mode to type manually.',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
displayName: 'Entity ID',
|
|
89
|
+
name: 'entityId',
|
|
90
|
+
type: 'string',
|
|
91
|
+
required: true,
|
|
92
|
+
displayOptions: {
|
|
93
|
+
show: {
|
|
94
|
+
resource: ['entity'],
|
|
95
|
+
operation: ['get', 'update', 'delete'],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
default: '',
|
|
99
|
+
description: 'The ID of the entity',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
displayName: 'Fields',
|
|
103
|
+
name: 'fieldsUi',
|
|
104
|
+
placeholder: 'Add Field',
|
|
105
|
+
type: 'fixedCollection',
|
|
106
|
+
typeOptions: {
|
|
107
|
+
multipleValues: true,
|
|
108
|
+
},
|
|
109
|
+
displayOptions: {
|
|
110
|
+
show: {
|
|
111
|
+
resource: ['entity'],
|
|
112
|
+
operation: ['create', 'update'],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
default: {},
|
|
116
|
+
options: [
|
|
117
|
+
{
|
|
118
|
+
name: 'fieldValues',
|
|
119
|
+
displayName: 'Field',
|
|
120
|
+
values: [
|
|
121
|
+
{
|
|
122
|
+
displayName: 'Field Name',
|
|
123
|
+
name: 'fieldName',
|
|
124
|
+
type: 'options',
|
|
125
|
+
typeOptions: {
|
|
126
|
+
loadOptionsMethod: 'getFormColumns',
|
|
127
|
+
},
|
|
128
|
+
default: '',
|
|
129
|
+
description: 'The name of the field in Priority. Switch to expression mode to type manually.',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'Field Value',
|
|
133
|
+
name: 'fieldValue',
|
|
134
|
+
type: 'string',
|
|
135
|
+
default: '',
|
|
136
|
+
description: 'The value to set for the field',
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
displayName: 'Additional Options',
|
|
144
|
+
name: 'additionalOptions',
|
|
145
|
+
type: 'collection',
|
|
146
|
+
placeholder: 'Add Option',
|
|
147
|
+
default: {},
|
|
148
|
+
displayOptions: {
|
|
149
|
+
show: {
|
|
150
|
+
resource: ['entity'],
|
|
151
|
+
operation: ['get', 'getAll'],
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
options: [
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Select Fields',
|
|
157
|
+
name: 'select',
|
|
158
|
+
type: 'multiOptions',
|
|
159
|
+
typeOptions: {
|
|
160
|
+
loadOptionsMethod: 'getFormColumns',
|
|
161
|
+
},
|
|
162
|
+
default: [],
|
|
163
|
+
description: 'Fields to return. Switch to expression mode to type manually.',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
displayName: 'Filters',
|
|
167
|
+
name: 'filters',
|
|
168
|
+
type: 'fixedCollection',
|
|
169
|
+
typeOptions: { multipleValues: true },
|
|
170
|
+
default: {},
|
|
171
|
+
options: [
|
|
172
|
+
{
|
|
173
|
+
displayName: 'Filter',
|
|
174
|
+
name: 'filterValues',
|
|
175
|
+
values: [
|
|
176
|
+
{
|
|
177
|
+
displayName: 'Column',
|
|
178
|
+
name: 'column',
|
|
179
|
+
type: 'options',
|
|
180
|
+
typeOptions: { loadOptionsMethod: 'getFormColumns' },
|
|
181
|
+
default: '',
|
|
182
|
+
description: 'The column to filter on. Switch to expression mode to type manually.',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
displayName: 'Operator',
|
|
186
|
+
name: 'operator',
|
|
187
|
+
type: 'options',
|
|
188
|
+
options: [
|
|
189
|
+
{ name: 'Equals', value: 'eq' },
|
|
190
|
+
{ name: 'Not Equals', value: 'ne' },
|
|
191
|
+
{ name: 'Greater Than', value: 'gt' },
|
|
192
|
+
{ name: 'Greater or Equal', value: 'ge' },
|
|
193
|
+
{ name: 'Less Than', value: 'lt' },
|
|
194
|
+
{ name: 'Less or Equal', value: 'le' },
|
|
195
|
+
{ name: 'Contains', value: 'contains' },
|
|
196
|
+
{ name: 'Starts With', value: 'startswith' },
|
|
197
|
+
{ name: 'Ends With', value: 'endswith' },
|
|
198
|
+
],
|
|
199
|
+
default: 'eq',
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
displayName: 'Value',
|
|
203
|
+
name: 'value',
|
|
204
|
+
type: 'string',
|
|
205
|
+
default: '',
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
displayName: 'Order By',
|
|
213
|
+
name: 'orderBy',
|
|
214
|
+
type: 'fixedCollection',
|
|
215
|
+
typeOptions: { multipleValues: true },
|
|
216
|
+
default: {},
|
|
217
|
+
options: [
|
|
218
|
+
{
|
|
219
|
+
displayName: 'Sort',
|
|
220
|
+
name: 'sortValues',
|
|
221
|
+
values: [
|
|
222
|
+
{
|
|
223
|
+
displayName: 'Column',
|
|
224
|
+
name: 'column',
|
|
225
|
+
type: 'options',
|
|
226
|
+
typeOptions: { loadOptionsMethod: 'getFormColumns' },
|
|
227
|
+
default: '',
|
|
228
|
+
description: 'The column to sort by. Switch to expression mode to type manually.',
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
displayName: 'Direction',
|
|
232
|
+
name: 'direction',
|
|
233
|
+
type: 'options',
|
|
234
|
+
options: [
|
|
235
|
+
{ name: 'Ascending', value: 'asc' },
|
|
236
|
+
{ name: 'Descending', value: 'desc' },
|
|
237
|
+
],
|
|
238
|
+
default: 'asc',
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
displayName: 'Expand',
|
|
246
|
+
name: 'expand',
|
|
247
|
+
type: 'multiOptions',
|
|
248
|
+
typeOptions: {
|
|
249
|
+
loadOptionsMethod: 'getSubForms',
|
|
250
|
+
},
|
|
251
|
+
default: [],
|
|
252
|
+
description: 'Related sub-forms to include. Switch to expression mode to type manually.',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
displayName: 'Since (Change Tracking)',
|
|
256
|
+
name: 'since',
|
|
257
|
+
type: 'dateTime',
|
|
258
|
+
default: '',
|
|
259
|
+
description: 'Only return records modified since this date/time (for incremental sync)',
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
displayName: 'Limit',
|
|
265
|
+
name: 'limit',
|
|
266
|
+
type: 'number',
|
|
267
|
+
displayOptions: {
|
|
268
|
+
show: {
|
|
269
|
+
resource: ['entity'],
|
|
270
|
+
operation: ['getAll'],
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
typeOptions: {
|
|
274
|
+
minValue: 1,
|
|
275
|
+
maxValue: 1000,
|
|
276
|
+
},
|
|
277
|
+
default: 50,
|
|
278
|
+
description: 'How many results to return',
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
displayName: 'Skip',
|
|
282
|
+
name: 'skip',
|
|
283
|
+
type: 'number',
|
|
284
|
+
displayOptions: {
|
|
285
|
+
show: {
|
|
286
|
+
resource: ['entity'],
|
|
287
|
+
operation: ['getAll'],
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
typeOptions: {
|
|
291
|
+
minValue: 0,
|
|
292
|
+
},
|
|
293
|
+
default: 0,
|
|
294
|
+
description: 'Number of results to skip (for pagination)',
|
|
295
|
+
},
|
|
296
|
+
];
|
|
@@ -1 +1,35 @@
|
|
|
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, entityName) {
|
|
7
|
+
const entityId = execFns.getNodeParameter('entityId', index);
|
|
8
|
+
const additionalOptions = execFns.getNodeParameter('additionalOptions', index);
|
|
9
|
+
let filterString = '';
|
|
10
|
+
if (additionalOptions.filters) {
|
|
11
|
+
const filtersObj = additionalOptions.filters;
|
|
12
|
+
const filterValues = filtersObj.filterValues;
|
|
13
|
+
if (filterValues?.length) {
|
|
14
|
+
filterString = (0, odata_1.buildFilterString)(filterValues);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
let orderbyString = '';
|
|
18
|
+
if (additionalOptions.orderBy) {
|
|
19
|
+
const orderByObj = additionalOptions.orderBy;
|
|
20
|
+
const sortValues = orderByObj.sortValues;
|
|
21
|
+
if (sortValues?.length) {
|
|
22
|
+
orderbyString = (0, odata_1.buildOrderByString)(sortValues);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const qs = (0, odata_1.buildODataQuery)({
|
|
26
|
+
select: additionalOptions.select,
|
|
27
|
+
filter: filterString || undefined,
|
|
28
|
+
orderby: orderbyString || undefined,
|
|
29
|
+
expand: additionalOptions.expand,
|
|
30
|
+
});
|
|
31
|
+
const urlPath = context.connectionType === 'router'
|
|
32
|
+
? `/${entityName}('${entityId}')`
|
|
33
|
+
: `/api/${entityName}('${entityId}')`;
|
|
34
|
+
return (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context, undefined, qs);
|
|
35
|
+
}
|
|
@@ -1 +1,43 @@
|
|
|
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, entityName) {
|
|
7
|
+
const limit = execFns.getNodeParameter('limit', index);
|
|
8
|
+
const skip = execFns.getNodeParameter('skip', index, 0);
|
|
9
|
+
const additionalOptions = execFns.getNodeParameter('additionalOptions', index);
|
|
10
|
+
let filterString = '';
|
|
11
|
+
if (additionalOptions.filters) {
|
|
12
|
+
const filtersObj = additionalOptions.filters;
|
|
13
|
+
const filterValues = filtersObj.filterValues;
|
|
14
|
+
if (filterValues?.length) {
|
|
15
|
+
filterString = (0, odata_1.buildFilterString)(filterValues);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
let orderbyString = '';
|
|
19
|
+
if (additionalOptions.orderBy) {
|
|
20
|
+
const orderByObj = additionalOptions.orderBy;
|
|
21
|
+
const sortValues = orderByObj.sortValues;
|
|
22
|
+
if (sortValues?.length) {
|
|
23
|
+
orderbyString = (0, odata_1.buildOrderByString)(sortValues);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const qs = (0, odata_1.buildODataQuery)({
|
|
27
|
+
top: limit,
|
|
28
|
+
skip: skip || undefined,
|
|
29
|
+
select: additionalOptions.select,
|
|
30
|
+
filter: filterString || undefined,
|
|
31
|
+
orderby: orderbyString || undefined,
|
|
32
|
+
expand: additionalOptions.expand,
|
|
33
|
+
since: additionalOptions.since,
|
|
34
|
+
});
|
|
35
|
+
const urlPath = context.connectionType === 'router'
|
|
36
|
+
? `/${entityName}`
|
|
37
|
+
: `/api/${entityName}`;
|
|
38
|
+
const response = await (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context, undefined, qs);
|
|
39
|
+
if (response.value && Array.isArray(response.value)) {
|
|
40
|
+
return response.value;
|
|
41
|
+
}
|
|
42
|
+
return [response];
|
|
43
|
+
}
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteEntity = exports.update = exports.getMany = exports.get = exports.create = exports.entityFields = exports.entityOperations = void 0;
|
|
4
|
+
var entity_properties_1 = require("./entity.properties");
|
|
5
|
+
Object.defineProperty(exports, "entityOperations", { enumerable: true, get: function () { return entity_properties_1.entityOperations; } });
|
|
6
|
+
Object.defineProperty(exports, "entityFields", { enumerable: true, get: function () { return entity_properties_1.entityFields; } });
|
|
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, "deleteEntity", { enumerable: true, get: function () { return delete_operation_1.deleteEntity; } });
|
|
@@ -1 +1,14 @@
|
|
|
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, entityName) {
|
|
7
|
+
const entityId = execFns.getNodeParameter('entityId', index);
|
|
8
|
+
const fieldsUi = execFns.getNodeParameter('fieldsUi', index);
|
|
9
|
+
const body = (0, utils_1.extractFieldValues)(fieldsUi);
|
|
10
|
+
const urlPath = context.connectionType === 'router'
|
|
11
|
+
? `/${entityName}('${entityId}')`
|
|
12
|
+
: `/api/${entityName}('${entityId}')`;
|
|
13
|
+
return (0, priorityApi_1.priorityApiRequest)(execFns, 'PATCH', urlPath, context, body);
|
|
14
|
+
}
|
|
@@ -1 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.download = download;
|
|
4
|
+
const priorityApi_1 = require("../../transport/priorityApi");
|
|
5
|
+
async function download(execFns, index, context) {
|
|
6
|
+
const formName = execFns.getNodeParameter('formName', index);
|
|
7
|
+
const recordId = execFns.getNodeParameter('recordId', index);
|
|
8
|
+
const filesSubForm = execFns.getNodeParameter('filesSubForm', index);
|
|
9
|
+
const fileId = execFns.getNodeParameter('fileId', index);
|
|
10
|
+
const outputBinaryProperty = execFns.getNodeParameter('outputBinaryProperty', index);
|
|
11
|
+
const prefix = context.connectionType === 'router' ? '' : '/api';
|
|
12
|
+
const urlPath = `${prefix}/${formName}('${recordId}')/${filesSubForm}('${fileId}')`;
|
|
13
|
+
const qs = { $select: 'EXTFILENAME,EXTFILEDATA' };
|
|
14
|
+
const response = await (0, priorityApi_1.priorityApiRequest)(execFns, 'GET', urlPath, context, undefined, qs);
|
|
15
|
+
const fileName = response.EXTFILENAME || 'file';
|
|
16
|
+
const base64Data = response.EXTFILEDATA;
|
|
17
|
+
const buffer = Buffer.from(base64Data, 'base64');
|
|
18
|
+
const binaryData = await execFns.helpers.prepareBinaryData(buffer, fileName);
|
|
19
|
+
return {
|
|
20
|
+
json: { fileName, fileSize: buffer.length },
|
|
21
|
+
binary: { [outputBinaryProperty]: binaryData },
|
|
22
|
+
};
|
|
23
|
+
}
|