@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.
Files changed (48) hide show
  1. package/LICENSE +27 -15
  2. package/dist/LICENSE +27 -15
  3. package/dist/credentials/PriorityErpApi.credentials.js +134 -1
  4. package/dist/credentials/PriorityErpWebSdk.credentials.js +134 -1
  5. package/dist/nodes/PriorityERP/PriorityERP.node.js +311 -1
  6. package/dist/nodes/PriorityERP/actions/batch/batch.properties.js +83 -1
  7. package/dist/nodes/PriorityERP/actions/batch/execute.operation.js +43 -1
  8. package/dist/nodes/PriorityERP/actions/batch/index.js +8 -1
  9. package/dist/nodes/PriorityERP/actions/entity/create.operation.js +13 -1
  10. package/dist/nodes/PriorityERP/actions/entity/delete.operation.js +12 -1
  11. package/dist/nodes/PriorityERP/actions/entity/entity.properties.js +296 -1
  12. package/dist/nodes/PriorityERP/actions/entity/get.operation.js +35 -1
  13. package/dist/nodes/PriorityERP/actions/entity/getMany.operation.js +43 -1
  14. package/dist/nodes/PriorityERP/actions/entity/index.js +16 -1
  15. package/dist/nodes/PriorityERP/actions/entity/update.operation.js +14 -1
  16. package/dist/nodes/PriorityERP/actions/file/download.operation.js +23 -1
  17. package/dist/nodes/PriorityERP/actions/file/file.properties.js +123 -1
  18. package/dist/nodes/PriorityERP/actions/file/getFiles.operation.js +16 -1
  19. package/dist/nodes/PriorityERP/actions/file/index.js +12 -1
  20. package/dist/nodes/PriorityERP/actions/file/upload.operation.js +26 -1
  21. package/dist/nodes/PriorityERP/actions/procedure/activate.operation.js +33 -1
  22. package/dist/nodes/PriorityERP/actions/procedure/activateSubForm.operation.js +37 -1
  23. package/dist/nodes/PriorityERP/actions/procedure/index.js +10 -1
  24. package/dist/nodes/PriorityERP/actions/procedure/procedure.properties.js +157 -1
  25. package/dist/nodes/PriorityERP/actions/subForm/create.operation.js +15 -1
  26. package/dist/nodes/PriorityERP/actions/subForm/delete.operation.js +14 -1
  27. package/dist/nodes/PriorityERP/actions/subForm/get.operation.js +37 -1
  28. package/dist/nodes/PriorityERP/actions/subForm/getMany.operation.js +45 -1
  29. package/dist/nodes/PriorityERP/actions/subForm/index.js +16 -1
  30. package/dist/nodes/PriorityERP/actions/subForm/subForm.properties.js +304 -1
  31. package/dist/nodes/PriorityERP/actions/subForm/update.operation.js +16 -1
  32. package/dist/nodes/PriorityERP/actions/subSubForm/create.operation.js +17 -1
  33. package/dist/nodes/PriorityERP/actions/subSubForm/delete.operation.js +16 -1
  34. package/dist/nodes/PriorityERP/actions/subSubForm/get.operation.js +39 -1
  35. package/dist/nodes/PriorityERP/actions/subSubForm/getMany.operation.js +47 -1
  36. package/dist/nodes/PriorityERP/actions/subSubForm/index.js +16 -1
  37. package/dist/nodes/PriorityERP/actions/subSubForm/subSubForm.properties.js +296 -1
  38. package/dist/nodes/PriorityERP/actions/subSubForm/update.operation.js +18 -1
  39. package/dist/nodes/PriorityERP/actions/text/getText.operation.js +16 -1
  40. package/dist/nodes/PriorityERP/actions/text/index.js +10 -1
  41. package/dist/nodes/PriorityERP/actions/text/setText.operation.js +19 -1
  42. package/dist/nodes/PriorityERP/actions/text/text.properties.js +107 -1
  43. package/dist/nodes/PriorityERP/helpers/odata.js +54 -1
  44. package/dist/nodes/PriorityERP/helpers/utils.js +62 -1
  45. package/dist/nodes/PriorityERP/methods/loadOptions.js +643 -1
  46. package/dist/nodes/PriorityERP/transport/priorityApi.js +203 -1
  47. package/dist/package.json +2 -2
  48. package/package.json +3 -3
@@ -1 +1,203 @@
1
- 'use strict';const _0xa3e9fd=_0x5e29;(function(_0x5d79b3,_0x457775){const _0x7ce825={_0x5edabb:0x218,_0x270a3b:0x233},_0x2054fe=_0x5e29,_0x1d70c1=_0x5d79b3();while(!![]){try{const _0x98104f=parseInt(_0x2054fe(0x1c2))/0x1+parseInt(_0x2054fe(0x1d6))/0x2+parseInt(_0x2054fe(0x1f4))/0x3*(parseInt(_0x2054fe(0x210))/0x4)+-parseInt(_0x2054fe(_0x7ce825._0x5edabb))/0x5+-parseInt(_0x2054fe(0x240))/0x6*(parseInt(_0x2054fe(0x23d))/0x7)+parseInt(_0x2054fe(0x22b))/0x8*(-parseInt(_0x2054fe(_0x7ce825._0x270a3b))/0x9)+-parseInt(_0x2054fe(0x216))/0xa*(-parseInt(_0x2054fe(0x1fd))/0xb);if(_0x98104f===_0x457775)break;else _0x1d70c1['push'](_0x1d70c1['shift']());}catch(_0x20c3a1){_0x1d70c1['push'](_0x1d70c1['shift']());}}}(_0x14ee,0x378e5));const _0x584aea={};_0x584aea[_0xa3e9fd(0x1cf)]=!![],Object[_0xa3e9fd(0x206)](exports,'__esModule',_0x584aea),exports[_0xa3e9fd(0x20f)]=getConnectionContext,exports['priorityApiRequest']=priorityApiRequest,exports['priorityWebSdkRequest']=priorityWebSdkRequest,exports[_0xa3e9fd(0x1db)]=parsePriorityError,exports['executeWithErrorHandling']=executeWithErrorHandling;function _0x14ee(){const _0x16d4e7=['DhLWzq','z2v0tM9Kzq','zxH0CMfJDgvKqM9KEq','zgvMAw5LuhjVCgvYDhK','xsbjBNrLCM5HBcbtzxj2zxiGrxjYB3i','Ahr0Chm6lY9MDw5JDgLVBNmTotqXntC0nJq2mtm4lM1LlxDLC3qXlNj1BI5HCha','wLfUwg4','Ahr0Chm6lY9WAhaTyxbPltK0mtu3ndy0nJeZoc5Tzs13zxn0ms5YDw4UyxbWl2fWAs9WCMLVCML0Eq','yxzvsLO','rgf0yuvYCM9Y','BwvZC2fNzq','BJHUlxDVCMTMBg93','z2v0q29UBMvJDgLVBKnVBNrLEhq','ndCYBvvpyNjq','Ahr0CenVzgu','B29jtgi','zgH4wgi','C0zpANK','vfrpC1G','mtbdB2vHsfu','zgvZy3jPChrPB24','mte2mJm2nu9PDvfOzW','zxjYB3i','Ahr0CfjLCxvLC3rxAxrOqxv0AgvUDgLJyxrPB24','B2fUCKW','yK9ksfy','vw5RBM93BIbLCNjVCIbVy2n1CNjLza','zgv0ywLSCW','uu9UwLG','s3zlwNm','ruvYD2O','t0Dfzwe','xsbszxf1zxn0igzHAwXLza','rfj4yu8','yvrhvK0','r01Kqvm','CM91DgvY','xsbbDxrOzw50AwnHDgLVBIbgywLSzwqGlsbdAgvJAYb5B3vYignYzwrLBNrPywXZ','xsbmzw5NDgGGuMvXDwLYzwqGlsbuAguGCMvXDwvZDcbPCYbTAxnZAw5NihjLCxvPCMvKigHLywrLCNm','D2XivK8','mZqZnZe1mKzVDhrjyW','Bwf0y2G','DhrdwKO','C3rHDhvZ','r0vbtfy','Aw5JBhvKzxm','sfvoAvK','zw1py3O','ovbmvwToCa','vLPPBwK','vgzqCLC','yNvPBgrszxf1zxn0vxjS','tM9Kzu9WzxjHDgLVBKvYCM9Y','A2v5CW','B2jQzwn0','rK9stq','DvLTvhq','DuPUwgK','mti1ntHkvxblD3e','y2f1C2u','tfbHzwC','mti0ohzUAvPYtW','wKLpCue','uMvXDwvZDevYCM9Y','lI4VAgvSCgvYCY91DgLSCW','mte2ntiYDuTlz2zm','CgfYC2u','C1vTuuK','q0rVz3O','Dfr2AhO','ugXLyxnLihzLCMLMEsb5B3vYignYzwrLBNrPywXZigLUihrOzsbUB2rLignVBMzPz3vYyxrPB24','xsbcywqGuMvXDwvZDcaTieLUDMfSAwqGCgfYyw1LDgvYCW','t2HXCuC','y29UBMvJDgLVBLr5Cgu','Aw50zxjMywnLrxjYB3i','B3f1s2G','DgLTzw91Da','yMfZzvvYBa','DMfSDwu','yM9KEq','uhHOB0m','seTVDui','DLP5y0W','vKPstg4','CMvZCg9UC2u','mZu4mdu2BxbWsMDu','y2fSBa','B3bLCMf0Aw9U','ANnVBG','zw50Axr5','CgfYC2vqCMLVCML0EuvYCM9Y','AgvSCgvYCW','y29UDgLUDwvpBKzHAwW','DNzqrLm','tenVA2S','DxjS','s2T5uMC','BMnAC0y','whDhDgS','EM1ouMW','zMz4q3q','thftt1i','ChjPB3jPDhLfCNbxzwjtzgS','ufv2wha','yMfZzvvsta','Bwv0Ag9K','qxv0AevYCM9Y','BKvYt2y','CuTpC2q','Dg10Dgu','CwrzAgy','ugXLyxnLignOzwnRihLVDxiGy29UBMvJDgLVBIbZzxr0Aw5NCYbHBMqGDhj5igfNywLU','C3rHDhvZq29Kzq','C3rYAw5N','ugXLyxnLignOzwnRihLVDxiGAw5WDxqGzgf0ysbHBMqGzMLLBgqGBMfTzxm','ndi4n0nqEvjlsa','zgf0yq','rMLytwG','vvDnuuu','DLz5EwS','BxP1rLC','ww1qq2u','zM9YBq','zhfVsMO','odC4nte5ngXVvhLlrG','uhDOBMy','rhbmCwi','sw50zxjMywnLrxjYB3jZ','BgvUz3rO','Dgv4Da'];_0x14ee=function(){return _0x16d4e7;};return _0x14ee();}const n8n_workflow_1=require(_0xa3e9fd(0x20e)),utils_1=require(_0xa3e9fd(0x1c1));function _0x5e29(_0xc458a,_0x50e566){_0xc458a=_0xc458a-0x1c0;const _0x14eee2=_0x14ee();let _0x5e29f5=_0x14eee2[_0xc458a];if(_0x5e29['tedtNQ']===undefined){var _0x44a287=function(_0x5644af){const _0x1407ba='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4a6b4a='',_0x29134f='';for(let _0x380064=0x0,_0x170ac9,_0x372fae,_0x2cbb11=0x0;_0x372fae=_0x5644af['charAt'](_0x2cbb11++);~_0x372fae&&(_0x170ac9=_0x380064%0x4?_0x170ac9*0x40+_0x372fae:_0x372fae,_0x380064++%0x4)?_0x4a6b4a+=String['fromCharCode'](0xff&_0x170ac9>>(-0x2*_0x380064&0x6)):0x0){_0x372fae=_0x1407ba['indexOf'](_0x372fae);}for(let _0x321163=0x0,_0xf4b056=_0x4a6b4a['length'];_0x321163<_0xf4b056;_0x321163++){_0x29134f+='%'+('00'+_0x4a6b4a['charCodeAt'](_0x321163)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x29134f);};_0x5e29['EVicTY']=_0x44a287,_0x5e29['OfzFoh']={},_0x5e29['tedtNQ']=!![];}const _0xc49780=_0x14eee2[0x0],_0x5e36f7=_0xc458a+_0xc49780,_0x3948b8=_0x5e29['OfzFoh'][_0x5e36f7];return!_0x3948b8?(_0x5e29f5=_0x5e29['EVicTY'](_0x5e29f5),_0x5e29['OfzFoh'][_0x5e36f7]=_0x5e29f5):_0x5e29f5=_0x3948b8,_0x5e29f5;}function getConnectionContext(_0x1f5079){const _0x5dc517={_0x590bda:0x20a,_0x352757:0x1ce},_0x125917=_0xa3e9fd,_0x58e35c={};_0x58e35c[_0x125917(0x1de)]=_0x125917(_0x5dc517._0x590bda);const _0x227575=_0x58e35c,_0xccce08=_0x125917(0x227),_0x5a69dd=_0x227575['vvPFS'],_0x3bdd4b={};return _0x3bdd4b[_0x125917(0x1ca)]=_0xccce08,_0x3bdd4b[_0x125917(_0x5dc517._0x352757)]=_0x5a69dd,_0x3bdd4b;}async function priorityApiRequest(_0x18d123,_0x57dbe6,_0x2ac715,_0x58d9d4,_0x210c27,_0x3eb272){const _0x304433={_0x13ae42:0x1d4,_0x4158d4:0x1e9,_0x2607bb:0x1cd,_0x168c64:0x238,_0x4bbf94:0x201},_0x2c310f=_0xa3e9fd,_0x76cf21={};_0x76cf21[_0x2c310f(_0x304433._0x13ae42)]=function(_0x28e187,_0x2c79c2){return _0x28e187>_0x2c79c2;},_0x76cf21[_0x2c310f(0x1cc)]='priorityErpApi';const _0x3984ce=_0x76cf21,{url:_0xa3a3b8,baseURL:_0xe9b025}=(0x0,utils_1[_0x2c310f(0x236)])(_0x58d9d4,_0x2ac715),_0x229b63={};_0x229b63['method']=_0x57dbe6,_0x229b63['url']=_0xa3a3b8,_0x229b63[_0x2c310f(_0x304433._0x4158d4)]=_0xe9b025,_0x229b63[_0x2c310f(0x1d9)]=!![],_0x229b63[_0x2c310f(_0x304433._0x2607bb)]=0x493e0;const _0x35a111=_0x229b63;return _0x210c27&&_0x3984ce['VJRLn'](Object[_0x2c310f(_0x304433._0x168c64)](_0x210c27)[_0x2c310f(0x201)],0x0)&&(_0x35a111[_0x2c310f(0x1d0)]=_0x210c27),_0x3eb272&&Object[_0x2c310f(0x238)](_0x3eb272)[_0x2c310f(_0x304433._0x4bbf94)]>0x0&&(_0x35a111['qs']=_0x3eb272),_0x18d123['helpers'][_0x2c310f(0x21a)]['call'](_0x18d123,_0x3984ce['oquKh'],_0x35a111);}const WEBSDK_BASE_URL=_0xa3e9fd(0x208);async function priorityWebSdkRequest(_0x1211eb,_0x55c811,_0x42083d,_0x8127fe,_0x7c73db){const _0x73eddd={_0x2fd67b:0x232,_0x263ec2:0x234,_0xfcb852:0x1ff,_0x576b75:0x1cd,_0x2e4a2d:0x238,_0x13eed5:0x201,_0x5baa2b:0x1d0,_0x181efc:0x1e2,_0xf043d4:0x201,_0x35e34a:0x1d2,_0x1c2b13:0x1f1,_0x390123:0x22e,_0x45beaf:0x1dc,_0x28a13a:0x21a,_0x2590c9:0x1ff},_0x5de3c0=_0xa3e9fd,_0x5b8de8={};_0x5b8de8[_0x5de3c0(0x1e2)]=function(_0x36eeda,_0xd1bdc0){return _0x36eeda>_0xd1bdc0;},_0x5b8de8[_0x5de3c0(0x1d2)]=function(_0x4b2b66,_0x48d1e0){return _0x4b2b66!==_0x48d1e0;},_0x5b8de8[_0x5de3c0(_0x73eddd._0x2fd67b)]=_0x5de3c0(0x214),_0x5b8de8[_0x5de3c0(_0x73eddd._0x263ec2)]=_0x5de3c0(0x212),_0x5b8de8[_0x5de3c0(_0x73eddd._0xfcb852)]=_0x5de3c0(0x1e7);const _0x16f9f3=_0x5b8de8,_0x3e291e=''+WEBSDK_BASE_URL+_0x42083d,_0x85f037={};_0x85f037[_0x5de3c0(0x1ea)]=_0x55c811,_0x85f037[_0x5de3c0(0x1e0)]=_0x3e291e,_0x85f037[_0x5de3c0(0x1d9)]=!![],_0x85f037[_0x5de3c0(_0x73eddd._0x576b75)]=0x493e0;const _0x56b899=_0x85f037;return _0x8127fe&&Object[_0x5de3c0(_0x73eddd._0x2e4a2d)](_0x8127fe)[_0x5de3c0(_0x73eddd._0x13eed5)]>0x0&&(_0x56b899[_0x5de3c0(_0x73eddd._0x5baa2b)]=_0x8127fe),_0x7c73db&&_0x16f9f3[_0x5de3c0(_0x73eddd._0x181efc)](Object[_0x5de3c0(0x238)](_0x7c73db)[_0x5de3c0(_0x73eddd._0xf043d4)],0x0)&&(_0x16f9f3[_0x5de3c0(_0x73eddd._0x35e34a)](_0x16f9f3[_0x5de3c0(_0x73eddd._0x2fd67b)],_0x16f9f3[_0x5de3c0(0x234)])?_0x56b899['qs']=_0x7c73db:(_0x3458c1=_0x42a15f[_0x5de3c0(0x1d5)][_0x5de3c0(_0x73eddd._0x1c2b13)]||_0x435d48[_0x5de3c0(0x1d5)][_0x5de3c0(_0x73eddd._0x390123)]||0x1f4,_0x3114cd=_0x4322e7['response'][_0x5de3c0(0x1d0)]||_0x1cb00a['response'][_0x5de3c0(0x1f5)]||{})),_0x1211eb[_0x5de3c0(_0x73eddd._0x45beaf)][_0x5de3c0(_0x73eddd._0x28a13a)][_0x5de3c0(0x1d7)](_0x1211eb,_0x16f9f3[_0x5de3c0(_0x73eddd._0x2590c9)],_0x56b899);}function parsePriorityError(_0x169d26){const _0x403148={_0x3a02e5:0x1f3,_0x198a7b:0x1f0,_0x281955:0x22a,_0x3f623c:0x1f2,_0x225f23:0x1e4,_0x8654c4:0x1e3,_0x30282c:0x1e1,_0x115467:0x1fc,_0x23357e:0x1f6,_0x5417b2:0x23e,_0xb401d7:0x1d5,_0x3fbb58:0x1f1,_0x37d4d8:0x23e,_0x5a8af4:0x1d5,_0x3d6266:0x1d5,_0xe6e74e:0x1d0,_0x3ee515:0x1d5,_0x456b8c:0x1d5,_0x1e42e0:0x1f5,_0x3d8d5a:0x1f1,_0x1068ec:0x211,_0x2d3892:0x20d,_0x15304a:0x230,_0xe48386:0x221,_0x530bb0:0x20d,_0x2132e8:0x20d,_0x1dbc4e:0x1e6,_0xf695c:0x1c5,_0x9667cf:0x238,_0x12b48f:0x209,_0x2d1070:0x201,_0x35cdd8:0x1d7,_0x443032:0x20d,_0x4eb77a:0x217,_0x1a0cfd:0x202,_0x9117a:0x200,_0x49b4f2:0x1cb,_0xb2706b:0x200,_0x40c653:0x202,_0x508e67:0x20d,_0x1b027c:0x1c9,_0x58d7ec:0x235,_0x472e46:0x235,_0x2d75db:0x20c,_0x3b9157:0x20d,_0x41752e:0x1eb,_0x310dcd:0x203,_0x1c8690:0x229,_0x578c1d:0x1c0,_0x251ce4:0x215,_0x1fd17e:0x219,_0x4cbb66:0x1df,_0x101850:0x231,_0x4f514e:0x219,_0x22fe2d:0x1e8,_0x4f4e6d:0x22c,_0x306837:0x1d1,_0x4c9510:0x219,_0x22f5b0:0x20d,_0x5650ee:0x23f,_0x2972dd:0x219,_0x3cd9b5:0x219,_0x388c2d:0x22d,_0x1a425c:0x20d,_0x422623:0x21e,_0x36dc25:0x23a,_0x271c9c:0x20d},_0x8b6c80=_0xa3e9fd,_0x506f4c={'ZQnXn':function(_0x320298,_0x8fec71){return _0x320298>_0x8fec71;},'mzuFW':'DataError','QOnZX':_0x8b6c80(_0x403148._0x3a02e5),'DRxaO':'AuthError','TTOsX':_0x8b6c80(_0x403148._0x198a7b),'PxhoC':function(_0x403b6e,_0x338adc,_0x2629db){return _0x403b6e(_0x338adc,_0x2629db);},'YMMxr':function(_0x59322e,_0x5936e9){return _0x59322e(_0x5936e9);},'KkyRg':_0x8b6c80(0x21d),'oanrL':function(_0x886758,_0x3dbc90){return _0x886758===_0x3dbc90;},'dqoJj':_0x8b6c80(0x239),'LCokk':function(_0x3f7415,_0x45c277){return _0x3f7415===_0x45c277;},'sLWtg':'EErwj','mnJvE':function(_0xb5b6ce,_0x24cd33){return _0xb5b6ce===_0x24cd33;},'LqSOR':_0x8b6c80(0x1ec),'CDogz':function(_0xea3d24,_0x48f5a1){return _0xea3d24!==_0x48f5a1;},'JirXq':_0x8b6c80(_0x403148._0x281955),'qdYhf':_0x8b6c80(0x241),'OhqqG':function(_0x107077,_0x3b96ec){return _0x107077===_0x3b96ec;},'TfPrW':_0x8b6c80(0x1ee),'HUNiY':_0x8b6c80(_0x403148._0x3f623c),'dhxXb':_0x8b6c80(0x222),'hIVjg':'Fyzjo','nGutz':_0x8b6c80(0x220),'PUvXp':_0x8b6c80(_0x403148._0x225f23),'olcQZ':_0x8b6c80(_0x403148._0x8654c4),'LPaeg':_0x8b6c80(0x1c4),'ttCZJ':function(_0x4ef4eb,_0x5c5016){return _0x4ef4eb!==_0x5c5016;},'UWMQE':_0x8b6c80(0x1ed),'ffxCt':_0x8b6c80(0x20b),'YmPCe':'wCVtv','GEALV':'RuntimeError'};let _0x56cf1b=_0x506f4c[_0x8b6c80(_0x403148._0x30282c)];const _0xeb7ba9={};let _0x56f972=0x1f4,_0x4812cd={};if(_0x169d26&&_0x506f4c[_0x8b6c80(0x21b)](typeof _0x169d26,_0x506f4c[_0x8b6c80(_0x403148._0x115467)])){if(_0x8b6c80(0x21c)!==_0x8b6c80(_0x403148._0x23357e)){const _0x5071d9=_0x169d26;if(_0x5071d9['cause']?.[_0x8b6c80(0x1d5)])_0x56f972=_0x5071d9[_0x8b6c80(_0x403148._0x5417b2)][_0x8b6c80(_0x403148._0xb401d7)][_0x8b6c80(_0x403148._0x3fbb58)]||_0x5071d9[_0x8b6c80(_0x403148._0x37d4d8)][_0x8b6c80(_0x403148._0x5a8af4)]['status']||0x1f4,_0x4812cd=_0x5071d9['cause'][_0x8b6c80(_0x403148._0x3d6266)][_0x8b6c80(_0x403148._0xe6e74e)]||{};else{if(_0x5071d9[_0x8b6c80(_0x403148._0x3ee515)])_0x56f972=_0x5071d9['response'][_0x8b6c80(_0x403148._0x3fbb58)]||_0x5071d9[_0x8b6c80(0x1d5)][_0x8b6c80(0x22e)]||0x1f4,_0x4812cd=_0x5071d9[_0x8b6c80(0x1d5)]['body']||_0x5071d9[_0x8b6c80(_0x403148._0x456b8c)][_0x8b6c80(_0x403148._0x1e42e0)]||{};else{if(_0x5071d9[_0x8b6c80(0x211)]||_0x5071d9[_0x8b6c80(_0x403148._0x3d8d5a)])_0x56f972=_0x5071d9[_0x8b6c80(_0x403148._0x1068ec)]||_0x5071d9['statusCode'],_0x4812cd=_0x5071d9['body']||_0x5071d9['responseBody']||{};else{if(_0x5071d9[_0x8b6c80(_0x403148._0x2d3892)]&&_0x5071d9[_0x8b6c80(0x20d)][_0x8b6c80(0x230)]('[')&&_0x5071d9['message'][_0x8b6c80(_0x403148._0x15304a)](']')){if(_0x506f4c['LCokk'](_0x8b6c80(_0x403148._0xe48386),_0x506f4c['sLWtg'])){const _0x2cd29c=_0x5071d9['message'][_0x8b6c80(0x22c)](/\[(\d+)\]/);_0x2cd29c&&(_0x56f972=parseInt(_0x2cd29c[0x1],0xa));const _0x112fc6={};_0x112fc6['message']=_0x5071d9[_0x8b6c80(_0x403148._0x530bb0)],_0x4812cd=_0x112fc6;}else _0x3bafab='['+_0x563b00+']\x20'+_0x44462b[_0x8b6c80(_0x403148._0x2132e8)];}}}}if(_0x506f4c['mnJvE'](typeof _0x4812cd,'string')){if(_0x506f4c['LCokk'](_0x506f4c[_0x8b6c80(_0x403148._0x1dbc4e)],_0x506f4c['LqSOR']))try{_0x4812cd=JSON[_0x8b6c80(0x1c3)](_0x4812cd);}catch{if(_0x506f4c[_0x8b6c80(_0x403148._0xf695c)](_0x506f4c['JirXq'],_0x506f4c[_0x8b6c80(0x1ef)]))_0x4812cd={'message':_0x4812cd};else{const _0x560241=''+_0xb38d03+_0x44a596,_0x35544a={};_0x35544a[_0x8b6c80(0x1ea)]=_0x5731b2,_0x35544a[_0x8b6c80(0x1e0)]=_0x560241,_0x35544a[_0x8b6c80(0x1d9)]=!![],_0x35544a[_0x8b6c80(0x1cd)]=0x493e0;const _0x5561a3=_0x35544a;return _0x130373&&lEIXbJ['ZQnXn'](_0x47e05f[_0x8b6c80(_0x403148._0x9667cf)](_0x45754e)[_0x8b6c80(0x201)],0x0)&&(_0x5561a3[_0x8b6c80(0x1d0)]=_0x108d8e),_0x297c8c&&lEIXbJ[_0x8b6c80(_0x403148._0x12b48f)](_0xb7368a[_0x8b6c80(0x238)](_0x48a53b)[_0x8b6c80(_0x403148._0x2d1070)],0x0)&&(_0x5561a3['qs']=_0x2f9f66),_0xa5062[_0x8b6c80(0x1dc)][_0x8b6c80(0x21a)][_0x8b6c80(_0x403148._0x35cdd8)](_0x195c6f,_0x8b6c80(0x1e7),_0x5561a3);}}else _0x1a06af='['+_0x2c6d61+_0x8b6c80(0x228);}if(!_0x4812cd['error']&&!_0x4812cd[_0x8b6c80(_0x403148._0x443032)]&&_0x5071d9[_0x8b6c80(_0x403148._0x4eb77a)]){const _0x1d943a={};_0x1d943a['message']=_0x5071d9[_0x8b6c80(0x217)],_0x4812cd=_0x1d943a;}}else{const _0x1e0cf5={};_0x1e0cf5[_0x8b6c80(0x20d)]=_0x312d05,_0x5cfe6e=_0x1e0cf5;}}switch(_0x56f972){case 0x190:if(_0x4812cd?.['FORM']?.['InterfaceErrors']?.[_0x8b6c80(_0x403148._0x1a0cfd)])_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd['FORM'][_0x8b6c80(_0x403148._0x9117a)][_0x8b6c80(0x202)],_0xeb7ba9[_0x8b6c80(_0x403148._0x49b4f2)]=_0x4812cd[_0x8b6c80(0x23a)][_0x8b6c80(_0x403148._0xb2706b)][_0x8b6c80(_0x403148._0x40c653)];else{if(_0x4812cd?.['error']?.[_0x8b6c80(_0x403148._0x2d3892)])_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd[_0x8b6c80(0x219)][_0x8b6c80(0x20d)];else{if(_0x4812cd?.[_0x8b6c80(_0x403148._0x508e67)])_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd[_0x8b6c80(0x20d)];else{if(_0x4812cd?.['error']&&_0x506f4c[_0x8b6c80(_0x403148._0x1b027c)](typeof _0x4812cd[_0x8b6c80(0x219)],_0x8b6c80(_0x403148._0x3f623c)))_0x506f4c[_0x8b6c80(_0x403148._0x58d7ec)]===_0x506f4c[_0x8b6c80(_0x403148._0x472e46)]?_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd[_0x8b6c80(0x219)]:_0x29c512['qs']=_0x1c5986;else typeof _0x4812cd===_0x506f4c[_0x8b6c80(0x231)]?_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd:_0x506f4c['CDogz'](_0x506f4c[_0x8b6c80(0x213)],_0x506f4c['hIVjg'])?_0x56cf1b='['+_0x56f972+_0x8b6c80(0x1c8):_0x3ea6f8='['+_0x589d8b+']\x20'+_0x2d7cd6;}}}_0xeb7ba9[_0x8b6c80(0x203)]=_0x8b6c80(_0x403148._0x2d75db);break;case 0x191:_0x4812cd?.[_0x8b6c80(_0x403148._0x3b9157)]?_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd[_0x8b6c80(0x20d)]:_0x56cf1b='['+_0x56f972+']\x20Authentication\x20Failed\x20-\x20Check\x20your\x20credentials';_0xeb7ba9[_0x8b6c80(0x203)]=_0x8b6c80(_0x403148._0x41752e);break;case 0x194:_0x56cf1b='Not\x20Found\x20Error\x20[404]:\x20Entity\x20not\x20found.\x20If\x20the\x20connection\x20is\x20new,\x20wait\x20for\x20synchronization.\x20If\x20the\x20error\x20persists,\x20verify\x20the\x20form\x20is\x20included\x20in\x20your\x20FORMLIMITED\x20API\x20permissions.',_0xeb7ba9[_0x8b6c80(_0x403148._0x310dcd)]=_0x8b6c80(0x20c);break;case 0x19b:_0x56cf1b='['+_0x56f972+_0x8b6c80(_0x403148._0x1c8690),_0xeb7ba9[_0x8b6c80(0x203)]=_0x8b6c80(_0x403148._0x578c1d);break;case 0x1f4:if(_0x4812cd?.[_0x8b6c80(0x219)]?.[_0x8b6c80(0x20d)]){if(_0x506f4c[_0x8b6c80(0x1c5)](_0x506f4c['nGutz'],'KvKZs'))switch(_0x41e5ef){case _0x506f4c[_0x8b6c80(0x1f9)]:return _0x506f4c[_0x8b6c80(0x21f)];case _0x506f4c[_0x8b6c80(0x224)]:return _0x8b6c80(0x1c7);default:return _0x506f4c[_0x8b6c80(_0x403148._0x251ce4)];}else _0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd[_0x8b6c80(_0x403148._0x1fd17e)]['message'];}else{if(_0x4812cd?.[_0x8b6c80(0x20d)])_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd[_0x8b6c80(0x20d)];else _0x4812cd?.[_0x8b6c80(0x219)]&&_0x506f4c[_0x8b6c80(_0x403148._0x4cbb66)](typeof _0x4812cd[_0x8b6c80(0x219)],_0x506f4c[_0x8b6c80(_0x403148._0x101850)])?_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd[_0x8b6c80(_0x403148._0x4f514e)]:_0x56cf1b='['+_0x56f972+_0x8b6c80(0x207);}_0xeb7ba9['type']='ConnectionError';break;default:if(_0x4812cd?.[_0x8b6c80(0x23a)]?.['InterfaceErrors']?.[_0x8b6c80(0x202)]){if(_0x506f4c[_0x8b6c80(_0x403148._0x22fe2d)]!==_0x506f4c['olcQZ'])_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd[_0x8b6c80(0x23a)][_0x8b6c80(0x200)]['text'];else{const _0x3797e1=_0x4de90e['message'][_0x8b6c80(_0x403148._0x4f4e6d)](/\[(\d+)\]/);_0x3797e1&&(_0x305968=_0x506f4c[_0x8b6c80(_0x403148._0x306837)](_0x8b7a63,_0x3797e1[0x1],0xa));const _0x115747={};_0x115747[_0x8b6c80(_0x403148._0x2d3892)]=_0x26bf1b[_0x8b6c80(0x20d)],_0x3a9d79=_0x115747;}}else{if(_0x4812cd?.[_0x8b6c80(_0x403148._0x4c9510)]?.[_0x8b6c80(_0x403148._0x22f5b0)])_0x506f4c[_0x8b6c80(0x21b)](_0x506f4c[_0x8b6c80(_0x403148._0x5650ee)],_0x8b6c80(0x1c4))?_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd[_0x8b6c80(0x219)]['message']:_0x121727='['+_0x19c8dc+']\x20'+_0x4abadb[_0x8b6c80(0x20d)];else{if(_0x4812cd?.['message'])_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd[_0x8b6c80(_0x403148._0x443032)];else{if(_0x4812cd?.[_0x8b6c80(_0x403148._0x2972dd)]&&typeof _0x4812cd[_0x8b6c80(_0x403148._0x3cd9b5)]===_0x506f4c[_0x8b6c80(0x231)])_0x56cf1b='['+_0x56f972+']\x20'+_0x4812cd[_0x8b6c80(0x219)];else{if(_0x169d26?.['message'])_0x506f4c[_0x8b6c80(_0x403148._0x388c2d)](_0x506f4c[_0x8b6c80(0x1f7)],_0x506f4c[_0x8b6c80(0x1f7)])?_0x16770b='['+_0x377d38+']\x20'+_0x4da121[_0x8b6c80(0x219)][_0x8b6c80(0x20d)]:_0x56cf1b='['+_0x56f972+']\x20'+_0x169d26[_0x8b6c80(_0x403148._0x1a425c)];else{if(_0x506f4c[_0x8b6c80(0x1e5)]!==_0x506f4c[_0x8b6c80(0x1fa)])_0x56cf1b='['+_0x56f972+_0x8b6c80(0x223);else{const _0x43c273=_0x2fbaa3(_0x11a04a);if(_0xe473ca[_0x8b6c80(0x1dd)]()){const _0x57f7bd={};_0x57f7bd['error']=_0x43c273[_0x8b6c80(_0x403148._0x22f5b0)],_0x57f7bd[_0x8b6c80(0x21e)]=_0x43c273['details'],_0x57f7bd[_0x8b6c80(0x1d8)]=_0x15ae8b,_0x57f7bd['entity']=_0x4858b7;const _0x59d529={};return _0x59d529['error']=_0x57f7bd,_0x59d529;}throw new _0x3d8d23[(_0x8b6c80(0x237))](_0x5088ea[_0x8b6c80(0x204)](),_0x43c273[_0x8b6c80(0x20d)],{'description':_0x506f4c['YMMxr'](_0x2219c4,_0x43c273[_0x8b6c80(_0x403148._0x422623)][_0x8b6c80(_0x403148._0x310dcd)]),'itemIndex':_0x870b3e});}}}}}}_0xeb7ba9[_0x8b6c80(_0x403148._0x310dcd)]=_0x506f4c[_0x8b6c80(0x22f)];}_0xeb7ba9[_0x8b6c80(0x1f1)]=_0x56f972,_0xeb7ba9[_0x8b6c80(0x205)]=_0x4812cd;if(_0x4812cd?.['error'])_0xeb7ba9['error']=_0x4812cd[_0x8b6c80(_0x403148._0x3cd9b5)];if(_0x4812cd?.[_0x8b6c80(_0x403148._0x36dc25)])_0xeb7ba9[_0x8b6c80(0x1fb)]=_0x4812cd['FORM'];const _0x4474d5={};return _0x4474d5[_0x8b6c80(_0x403148._0x271c9c)]=_0x56cf1b,_0x4474d5[_0x8b6c80(0x1f1)]=_0x56f972,_0x4474d5[_0x8b6c80(0x21e)]=_0xeb7ba9,_0x4474d5;}function getErrorDescription(_0x470b3a){const _0x3d5fe7={_0x3693b9:0x1f3,_0x5da71e:0x1c6,_0x1bc5e8:0x1eb,_0x16eb17:0x1f8,_0x3cbf28:0x1c6},_0x2d5edc=_0xa3e9fd,_0x4b0be0={};_0x4b0be0[_0x2d5edc(0x23c)]=_0x2d5edc(0x20c),_0x4b0be0[_0x2d5edc(0x1d3)]=_0x2d5edc(_0x3d5fe7._0x3693b9),_0x4b0be0[_0x2d5edc(_0x3d5fe7._0x5da71e)]=_0x2d5edc(_0x3d5fe7._0x1bc5e8),_0x4b0be0[_0x2d5edc(_0x3d5fe7._0x16eb17)]='Please\x20verify\x20your\x20credentials\x20in\x20the\x20node\x20configuration';const _0x3826ec=_0x4b0be0;switch(_0x470b3a){case _0x3826ec[_0x2d5edc(0x23c)]:return _0x3826ec[_0x2d5edc(0x1d3)];case _0x3826ec[_0x2d5edc(_0x3d5fe7._0x3cbf28)]:return _0x3826ec[_0x2d5edc(0x1f8)];default:return _0x2d5edc(0x1f0);}}async function executeWithErrorHandling(_0x2a8b38,_0x11f0f3,_0x341cf8,_0x561157,_0x30a56e){const _0x1d8b27={_0x3ebb7f:0x1fe,_0x2eee74:0x1fe,_0x365dd1:0x225,_0xb6115:0x20d,_0x1c3e90:0x20d},_0x26afeb=_0xa3e9fd,_0x56d0a2={'GMdAS':function(_0x32aad7,_0x2b411b){return _0x32aad7===_0x2b411b;},'Pwhnf':_0x26afeb(0x23b),'aTGVM':function(_0x4d3d24){return _0x4d3d24();},'TjymN':function(_0x446e3f,_0x3c4391){return _0x446e3f(_0x3c4391);}};try{if(_0x56d0a2[_0x26afeb(0x226)](_0x56d0a2[_0x26afeb(_0x1d8b27._0x3ebb7f)],_0x56d0a2[_0x26afeb(_0x1d8b27._0x2eee74)])){const _0x104bfd=await _0x56d0a2[_0x26afeb(_0x1d8b27._0x365dd1)](_0x30a56e),_0x5de519={};return _0x5de519[_0x26afeb(0x1f5)]=_0x104bfd,_0x5de519;}else _0x291250='['+_0x11f8fb+']\x20Internal\x20Server\x20Error';}catch(_0x22902a){const _0x4a871d=_0x56d0a2['TjymN'](parsePriorityError,_0x22902a);if(_0x2a8b38[_0x26afeb(0x1dd)]()){const _0x268b94={};_0x268b94['error']=_0x4a871d[_0x26afeb(_0x1d8b27._0xb6115)],_0x268b94['details']=_0x4a871d['details'],_0x268b94[_0x26afeb(0x1d8)]=_0x341cf8,_0x268b94[_0x26afeb(0x1da)]=_0x561157;const _0x5795c8={};return _0x5795c8['error']=_0x268b94,_0x5795c8;}throw new n8n_workflow_1['NodeOperationError'](_0x2a8b38['getNode'](),_0x4a871d[_0x26afeb(_0x1d8b27._0x1c3e90)],{'description':_0x56d0a2['TjymN'](getErrorDescription,_0x4a871d['details']['type']),'itemIndex':_0x11f0f3});}}
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getConnectionContext = getConnectionContext;
4
+ exports.priorityApiRequest = priorityApiRequest;
5
+ exports.priorityWebSdkRequest = priorityWebSdkRequest;
6
+ exports.parsePriorityError = parsePriorityError;
7
+ exports.executeWithErrorHandling = executeWithErrorHandling;
8
+ const n8n_workflow_1 = require("n8n-workflow");
9
+ const utils_1 = require("../helpers/utils");
10
+ function getConnectionContext(credentials) {
11
+ const connectionType = 'router';
12
+ const baseUrl = 'https://php-api-941574646138.me-west1.run.app/api/priority';
13
+ return { connectionType, baseUrl };
14
+ }
15
+ async function priorityApiRequest(execFns, method, path, context, body, qs) {
16
+ const { url, baseURL } = (0, utils_1.buildRequestUrl)(context, path);
17
+ const requestOptions = {
18
+ method: method,
19
+ url,
20
+ baseURL,
21
+ json: true,
22
+ timeout: 300000,
23
+ };
24
+ if (body && Object.keys(body).length > 0) {
25
+ requestOptions.body = body;
26
+ }
27
+ if (qs && Object.keys(qs).length > 0) {
28
+ requestOptions.qs = qs;
29
+ }
30
+ return execFns.helpers.httpRequestWithAuthentication.call(execFns, 'priorityErpApi', requestOptions);
31
+ }
32
+ const WEBSDK_BASE_URL = 'https://functions-941574646138.me-west1.run.app';
33
+ async function priorityWebSdkRequest(execFns, method, path, body, qs) {
34
+ const url = `${WEBSDK_BASE_URL}${path}`;
35
+ const requestOptions = {
36
+ method: method,
37
+ url,
38
+ json: true,
39
+ timeout: 300000,
40
+ };
41
+ if (body && Object.keys(body).length > 0) {
42
+ requestOptions.body = body;
43
+ }
44
+ if (qs && Object.keys(qs).length > 0) {
45
+ requestOptions.qs = qs;
46
+ }
47
+ return execFns.helpers.httpRequestWithAuthentication.call(execFns, 'priorityErpWebSdk', requestOptions);
48
+ }
49
+ function parsePriorityError(error) {
50
+ let errorMessage = 'Unknown error occurred';
51
+ const errorDetails = {};
52
+ let statusCode = 500;
53
+ let body = {};
54
+ if (error && typeof error === 'object') {
55
+ const err = error;
56
+ if (err.cause?.response) {
57
+ statusCode = err.cause.response.statusCode || err.cause.response.status || 500;
58
+ body = err.cause.response.body || {};
59
+ }
60
+ else if (err.response) {
61
+ statusCode = err.response.statusCode || err.response.status || 500;
62
+ body = err.response.body || err.response.data || {};
63
+ }
64
+ else if (err.httpCode || err.statusCode) {
65
+ statusCode = err.httpCode || err.statusCode;
66
+ body = err.body || err.responseBody || {};
67
+ }
68
+ else if (err.message && err.message.includes('[') && err.message.includes(']')) {
69
+ const match = err.message.match(/\[(\d+)\]/);
70
+ if (match) {
71
+ statusCode = parseInt(match[1], 10);
72
+ }
73
+ body = { message: err.message };
74
+ }
75
+ if (typeof body === 'string') {
76
+ try {
77
+ body = JSON.parse(body);
78
+ }
79
+ catch {
80
+ body = { message: body };
81
+ }
82
+ }
83
+ if (!body.error && !body.message && err.description) {
84
+ body = { message: err.description };
85
+ }
86
+ }
87
+ switch (statusCode) {
88
+ case 400:
89
+ if (body?.FORM?.InterfaceErrors?.text) {
90
+ errorMessage = `[${statusCode}] ${body.FORM.InterfaceErrors.text}`;
91
+ errorDetails.interfaceError = body.FORM.InterfaceErrors.text;
92
+ }
93
+ else if (body?.error?.message) {
94
+ errorMessage = `[${statusCode}] ${body.error.message}`;
95
+ }
96
+ else if (body?.message) {
97
+ errorMessage = `[${statusCode}] ${body.message}`;
98
+ }
99
+ else if (body?.error && typeof body.error === 'string') {
100
+ errorMessage = `[${statusCode}] ${body.error}`;
101
+ }
102
+ else if (typeof body === 'string') {
103
+ errorMessage = `[${statusCode}] ${body}`;
104
+ }
105
+ else {
106
+ errorMessage = `[${statusCode}] Bad Request - Invalid parameters`;
107
+ }
108
+ errorDetails.type = 'DataError';
109
+ break;
110
+ case 401:
111
+ if (body?.message) {
112
+ errorMessage = `[${statusCode}] ${body.message}`;
113
+ }
114
+ else {
115
+ errorMessage = `[${statusCode}] Authentication Failed - Check your credentials`;
116
+ }
117
+ errorDetails.type = 'AuthError';
118
+ break;
119
+ case 404:
120
+ errorMessage = `Not Found Error [404]: Entity not found. If the connection is new, wait for synchronization. If the error persists, verify the form is included in your FORMLIMITED API permissions.`;
121
+ errorDetails.type = 'DataError';
122
+ break;
123
+ case 411:
124
+ errorMessage = `[${statusCode}] Length Required - The request is missing required headers`;
125
+ errorDetails.type = 'RequestError';
126
+ break;
127
+ case 500:
128
+ if (body?.error?.message) {
129
+ errorMessage = `[${statusCode}] ${body.error.message}`;
130
+ }
131
+ else if (body?.message) {
132
+ errorMessage = `[${statusCode}] ${body.message}`;
133
+ }
134
+ else if (body?.error && typeof body.error === 'string') {
135
+ errorMessage = `[${statusCode}] ${body.error}`;
136
+ }
137
+ else {
138
+ errorMessage = `[${statusCode}] Internal Server Error`;
139
+ }
140
+ errorDetails.type = 'ConnectionError';
141
+ break;
142
+ default:
143
+ if (body?.FORM?.InterfaceErrors?.text) {
144
+ errorMessage = `[${statusCode}] ${body.FORM.InterfaceErrors.text}`;
145
+ }
146
+ else if (body?.error?.message) {
147
+ errorMessage = `[${statusCode}] ${body.error.message}`;
148
+ }
149
+ else if (body?.message) {
150
+ errorMessage = `[${statusCode}] ${body.message}`;
151
+ }
152
+ else if (body?.error && typeof body.error === 'string') {
153
+ errorMessage = `[${statusCode}] ${body.error}`;
154
+ }
155
+ else if (error?.message) {
156
+ errorMessage = `[${statusCode}] ${error.message}`;
157
+ }
158
+ else {
159
+ errorMessage = `[${statusCode}] Request failed`;
160
+ }
161
+ errorDetails.type = 'RuntimeError';
162
+ }
163
+ errorDetails.statusCode = statusCode;
164
+ errorDetails.extractedBody = body;
165
+ if (body?.error)
166
+ errorDetails.error = body.error;
167
+ if (body?.FORM)
168
+ errorDetails.form = body.FORM;
169
+ return { message: errorMessage, statusCode, details: errorDetails };
170
+ }
171
+ function getErrorDescription(type) {
172
+ switch (type) {
173
+ case 'DataError':
174
+ return 'Please check your input data and field names';
175
+ case 'AuthError':
176
+ return 'Please verify your credentials in the node configuration';
177
+ default:
178
+ return 'Please check your connection settings and try again';
179
+ }
180
+ }
181
+ async function executeWithErrorHandling(execFns, itemIndex, operation, entityName, fn) {
182
+ try {
183
+ const data = await fn();
184
+ return { data };
185
+ }
186
+ catch (error) {
187
+ const parsed = parsePriorityError(error);
188
+ if (execFns.continueOnFail()) {
189
+ return {
190
+ error: {
191
+ error: parsed.message,
192
+ details: parsed.details,
193
+ operation,
194
+ entity: entityName,
195
+ },
196
+ };
197
+ }
198
+ throw new n8n_workflow_1.NodeOperationError(execFns.getNode(), parsed.message, {
199
+ description: getErrorDescription(parsed.details.type),
200
+ itemIndex,
201
+ });
202
+ }
203
+ }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leonailtd/n8n-nodes-priority-erp",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "n8n node for Priority ERP integration",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -8,7 +8,7 @@
8
8
  "erp",
9
9
  "api"
10
10
  ],
11
- "license": "MIT",
11
+ "license": "SEE LICENSE IN LICENSE",
12
12
  "homepage": "https://github.com/LeonAI-LTD/n8n-priority-node",
13
13
  "author": {
14
14
  "name": "LeonAI",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leonailtd/n8n-nodes-priority-erp",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "n8n node for Priority ERP integration",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",
@@ -8,7 +8,7 @@
8
8
  "erp",
9
9
  "api"
10
10
  ],
11
- "license": "MIT",
11
+ "license": "SEE LICENSE IN LICENSE",
12
12
  "homepage": "https://github.com/LeonAI-LTD/n8n-priority-node",
13
13
  "author": {
14
14
  "name": "LeonAI",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "main": "index.js",
22
22
  "scripts": {
23
- "build": "node node_modules/typescript/bin/tsc && node scripts/clean-package.js && cp README.md dist/ && cp LICENSE dist/ && mkdir -p dist/nodes/PriorityERP && cp nodes/PriorityERP/priority.svg dist/nodes/PriorityERP/",
23
+ "build": "node node_modules/typescript/bin/tsc && node scripts/clean-package.js",
24
24
  "dev": "tsc --watch",
25
25
  "format": "prettier --write \"**/*.ts\"",
26
26
  "lint": "eslint nodes credentials --ext .ts",